Class: SwaggerClient::ServerApi
- Inherits:
-
Object
- Object
- SwaggerClient::ServerApi
- Defined in:
- lib/puppet_x/modules/server/server_api.rb,
lib/puppet_x/swagger_client/api/server_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#initialize(url) ⇒ ServerApi
constructor
A new instance of ServerApi.
-
#servers_get(authorization, web_application_name, opts = {}) ⇒ nil
FETCH Information of Server.
-
#servers_get_with_http_info(authorization, web_application_name, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
FETCH Information of Server.
-
#servers_post(authorization, web_application_name, server, opts = {}) ⇒ nil
ADD Information of Server.
-
#servers_post_with_http_info(authorization, web_application_name, server, _opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
ADD Information of Server.
-
#servers_server_name_delete(authorization, web_application_name, server_name, opts = {}) ⇒ nil
DELETE Information of Server.
-
#servers_server_name_delete_with_http_info(authorization, web_application_name, server_name, _opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
DELETE Information of Server.
-
#servers_server_name_get(authorization, web_application_name, server_name, opts = {}) ⇒ nil
FETCH Information of Server.
-
#servers_server_name_get_with_http_info(authorization, web_application_name, server_name, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
FETCH Information of Server.
-
#servers_server_name_put(authorization, web_application_name, server_name, server, opts = {}) ⇒ nil
EDIT Information of Server.
-
#servers_server_name_put_with_http_info(authorization, web_application_name, server_name, server, _opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
EDIT Information of Server.
-
#services_web_application_name_servers_get(authorization, web_application_name, opts = {}) ⇒ nil
FETCH Information of Server.
-
#services_web_application_name_servers_get_with_http_info(authorization, web_application_name, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
FETCH Information of Server.
-
#services_web_application_name_servers_post(authorization, web_application_name, server, opts = {}) ⇒ nil
ADD Information of Server.
-
#services_web_application_name_servers_post_with_http_info(authorization, web_application_name, server, _opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
ADD Information of Server.
-
#services_web_application_name_servers_server_name_delete(authorization, web_application_name, server_name, opts = {}) ⇒ nil
DELETE Information of Server.
-
#services_web_application_name_servers_server_name_delete_with_http_info(authorization, web_application_name, server_name, _opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
DELETE Information of Server.
-
#services_web_application_name_servers_server_name_get(authorization, web_application_name, server_name, opts = {}) ⇒ nil
FETCH Information of Server.
-
#services_web_application_name_servers_server_name_get_with_http_info(authorization, web_application_name, server_name, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
FETCH Information of Server.
-
#services_web_application_name_servers_server_name_put(authorization, web_application_name, server_name, server, opts = {}) ⇒ nil
EDIT Information of Server.
-
#services_web_application_name_servers_server_name_put_with_http_info(authorization, web_application_name, server_name, server, _opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
EDIT Information of Server.
Constructor Details
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
17 18 19 |
# File 'lib/puppet_x/modules/server/server_api.rb', line 17 def api_client @api_client end |
Instance Method Details
#servers_get(authorization, web_application_name, opts = {}) ⇒ nil
FETCH Information of Server
30 31 32 33 |
# File 'lib/puppet_x/modules/server/server_api.rb', line 30 def servers_get(, web_application_name, opts = {}) data, status_code, headers = servers_get_with_http_info(, web_application_name, opts) [data, status_code, headers] end |
#servers_get_with_http_info(authorization, web_application_name, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
FETCH Information of Server
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/puppet_x/modules/server/server_api.rb', line 42 def servers_get_with_http_info(, web_application_name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ServerApi.servers_get ...' end # verify the required parameter 'authorization' is set if @api_client.config.client_side_validation && .nil? raise ArgumentError, "Missing the required parameter 'authorization' when calling ServerApi.servers_get" end # verify the required parameter 'web_application_name' is set if @api_client.config.client_side_validation && web_application_name.nil? raise ArgumentError, "Missing the required parameter 'web_application_name' when calling ServerApi.servers_get" end # resource path local_var_path = '/services/{Web Application Name}/servers'.sub('{' + 'Web Application Name' + '}', web_application_name.to_s) # query parameters query_params = {} query_params[:fields] = @api_client.build_collection_param(opts[:fields], :multi) unless opts[:fields].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:Authorization] = # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, header_params: header_params, query_params: query_params, form_params: form_params, body: post_body, auth_names: auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ServerApi#servers_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end |
#servers_post(authorization, web_application_name, server, opts = {}) ⇒ nil
ADD Information of Server
91 92 93 94 |
# File 'lib/puppet_x/modules/server/server_api.rb', line 91 def servers_post(, web_application_name, server, opts = {}) servers_post_with_http_info(, web_application_name, server, opts) nil end |
#servers_post_with_http_info(authorization, web_application_name, server, _opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
ADD Information of Server
103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 |
# File 'lib/puppet_x/modules/server/server_api.rb', line 103 def servers_post_with_http_info(, web_application_name, server, _opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ServerApi.servers_post ...' end # verify the required parameter 'authorization' is set if @api_client.config.client_side_validation && .nil? raise ArgumentError, "Missing the required parameter 'authorization' when calling ServerApi.servers_post" end # verify the required parameter 'web_application_name' is set if @api_client.config.client_side_validation && web_application_name.nil? raise ArgumentError, "Missing the required parameter 'web_application_name' when calling ServerApi.servers_post" end # verify the required parameter 'server' is set if @api_client.config.client_side_validation && server.nil? raise ArgumentError, "Missing the required parameter 'server' when calling ServerApi.servers_post" end # resource path local_var_path = '/services/{Web Application Name}/servers'.sub('{' + 'Web Application Name' + '}', web_application_name.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:Authorization] = # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(server) auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, header_params: header_params, query_params: query_params, form_params: form_params, body: post_body, auth_names: auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ServerApi#servers_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end |
#servers_server_name_delete(authorization, web_application_name, server_name, opts = {}) ⇒ nil
DELETE Information of Server
156 157 158 159 |
# File 'lib/puppet_x/modules/server/server_api.rb', line 156 def servers_server_name_delete(, web_application_name, server_name, opts = {}) servers_server_name_delete_with_http_info(, web_application_name, server_name, opts) nil end |
#servers_server_name_delete_with_http_info(authorization, web_application_name, server_name, _opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
DELETE Information of Server
168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 |
# File 'lib/puppet_x/modules/server/server_api.rb', line 168 def servers_server_name_delete_with_http_info(, web_application_name, server_name, _opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ServerApi.servers_server_name_delete ...' end # verify the required parameter 'authorization' is set if @api_client.config.client_side_validation && .nil? raise ArgumentError, "Missing the required parameter 'authorization' when calling ServerApi.servers_server_name_delete" end # verify the required parameter 'web_application_name' is set if @api_client.config.client_side_validation && web_application_name.nil? raise ArgumentError, "Missing the required parameter 'web_application_name' when calling ServerApi.servers_server_name_delete" end # verify the required parameter 'server_name' is set if @api_client.config.client_side_validation && server_name.nil? raise ArgumentError, "Missing the required parameter 'server_name' when calling ServerApi.servers_server_name_delete" end # resource path local_var_path = '/services/{Web Application Name}/servers/{Server Name}'.sub('{' + 'Web Application Name' + '}', web_application_name.to_s).sub('{' + 'Server Name' + '}', server_name.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:Authorization] = # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, header_params: header_params, query_params: query_params, form_params: form_params, body: post_body, auth_names: auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ServerApi#servers_server_name_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end |
#servers_server_name_get(authorization, web_application_name, server_name, opts = {}) ⇒ nil
FETCH Information of Server
222 223 224 225 |
# File 'lib/puppet_x/modules/server/server_api.rb', line 222 def servers_server_name_get(, web_application_name, server_name, opts = {}) data, status_code, headers = servers_server_name_get_with_http_info(, web_application_name, server_name, opts) [data, status_code, headers] end |
#servers_server_name_get_with_http_info(authorization, web_application_name, server_name, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
FETCH Information of Server
235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 |
# File 'lib/puppet_x/modules/server/server_api.rb', line 235 def servers_server_name_get_with_http_info(, web_application_name, server_name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ServerApi.servers_server_name_get ...' end # verify the required parameter 'authorization' is set if @api_client.config.client_side_validation && .nil? raise ArgumentError, "Missing the required parameter 'authorization' when calling ServerApi.servers_server_name_get" end # verify the required parameter 'web_application_name' is set if @api_client.config.client_side_validation && web_application_name.nil? raise ArgumentError, "Missing the required parameter 'web_application_name' when calling ServerApi.servers_server_name_get" end # verify the required parameter 'server_name' is set if @api_client.config.client_side_validation && server_name.nil? raise ArgumentError, "Missing the required parameter 'server_name' when calling ServerApi.servers_server_name_get" end # resource path local_var_path = '/services/{Web Application Name}/servers/{Server Name}'.sub('{' + 'Web Application Name' + '}', web_application_name.to_s).sub('{' + 'Server Name' + '}', server_name.to_s) # query parameters query_params = {} query_params[:fields] = @api_client.build_collection_param(opts[:fields], :multi) unless opts[:fields].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:Authorization] = # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, header_params: header_params, query_params: query_params, form_params: form_params, body: post_body, auth_names: auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ServerApi#servers_server_name_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end |
#servers_server_name_put(authorization, web_application_name, server_name, server, opts = {}) ⇒ nil
EDIT Information of Server
289 290 291 292 |
# File 'lib/puppet_x/modules/server/server_api.rb', line 289 def servers_server_name_put(, web_application_name, server_name, server, opts = {}) data, status_code, headers = servers_server_name_put_with_http_info(, web_application_name, server_name, server, opts) [data, status_code, headers] end |
#servers_server_name_put_with_http_info(authorization, web_application_name, server_name, server, _opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
EDIT Information of Server
302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 |
# File 'lib/puppet_x/modules/server/server_api.rb', line 302 def servers_server_name_put_with_http_info(, web_application_name, server_name, server, _opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ServerApi.servers_server_name_put ...' end # verify the required parameter 'authorization' is set if @api_client.config.client_side_validation && .nil? raise ArgumentError, "Missing the required parameter 'authorization' when calling ServerApi.servers_server_name_put" end # verify the required parameter 'web_application_name' is set if @api_client.config.client_side_validation && web_application_name.nil? raise ArgumentError, "Missing the required parameter 'web_application_name' when calling ServerApi.servers_server_name_put" end # verify the required parameter 'server_name' is set if @api_client.config.client_side_validation && server_name.nil? raise ArgumentError, "Missing the required parameter 'server_name' when calling ServerApi.servers_server_name_put" end # verify the required parameter 'server' is set if @api_client.config.client_side_validation && server.nil? raise ArgumentError, "Missing the required parameter 'server' when calling ServerApi.servers_server_name_put" end # resource path local_var_path = '/services/{Web Application Name}/servers/{Server Name}'.sub('{' + 'Web Application Name' + '}', web_application_name.to_s).sub('{' + 'Server Name' + '}', server_name.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:Authorization] = # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(server) auth_names = [] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, header_params: header_params, query_params: query_params, form_params: form_params, body: post_body, auth_names: auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ServerApi#servers_server_name_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end |
#services_web_application_name_servers_get(authorization, web_application_name, opts = {}) ⇒ nil
FETCH Information of Server
28 29 30 31 |
# File 'lib/puppet_x/swagger_client/api/server_api.rb', line 28 def services_web_application_name_servers_get(, web_application_name, opts = {}) services_web_application_name_servers_get_with_http_info(, web_application_name, opts) nil end |
#services_web_application_name_servers_get_with_http_info(authorization, web_application_name, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
FETCH Information of Server
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
# File 'lib/puppet_x/swagger_client/api/server_api.rb', line 40 def services_web_application_name_servers_get_with_http_info(, web_application_name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ServerApi.services_web_application_name_servers_get ...' end # verify the required parameter 'authorization' is set if @api_client.config.client_side_validation && .nil? raise ArgumentError, "Missing the required parameter 'authorization' when calling ServerApi.services_web_application_name_servers_get" end # verify the required parameter 'web_application_name' is set if @api_client.config.client_side_validation && web_application_name.nil? raise ArgumentError, "Missing the required parameter 'web_application_name' when calling ServerApi.services_web_application_name_servers_get" end # resource path local_var_path = '/services/{Web Application Name}/servers'.sub('{' + 'Web Application Name' + '}', web_application_name.to_s) # query parameters query_params = {} query_params[:fields] = @api_client.build_collection_param(opts[:fields], :multi) unless opts[:fields].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:Authorization] = # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, header_params: header_params, query_params: query_params, form_params: form_params, body: post_body, auth_names: auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ServerApi#services_web_application_name_servers_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end |
#services_web_application_name_servers_post(authorization, web_application_name, server, opts = {}) ⇒ nil
ADD Information of Server
90 91 92 93 |
# File 'lib/puppet_x/swagger_client/api/server_api.rb', line 90 def services_web_application_name_servers_post(, web_application_name, server, opts = {}) services_web_application_name_servers_post_with_http_info(, web_application_name, server, opts) nil end |
#services_web_application_name_servers_post_with_http_info(authorization, web_application_name, server, _opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
ADD Information of Server
102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 |
# File 'lib/puppet_x/swagger_client/api/server_api.rb', line 102 def services_web_application_name_servers_post_with_http_info(, web_application_name, server, _opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ServerApi.services_web_application_name_servers_post ...' end # verify the required parameter 'authorization' is set if @api_client.config.client_side_validation && .nil? raise ArgumentError, "Missing the required parameter 'authorization' when calling ServerApi.services_web_application_name_servers_post" end # verify the required parameter 'web_application_name' is set if @api_client.config.client_side_validation && web_application_name.nil? raise ArgumentError, "Missing the required parameter 'web_application_name' when calling ServerApi.services_web_application_name_servers_post" end # verify the required parameter 'server' is set if @api_client.config.client_side_validation && server.nil? raise ArgumentError, "Missing the required parameter 'server' when calling ServerApi.services_web_application_name_servers_post" end # resource path local_var_path = '/services/{Web Application Name}/servers'.sub('{' + 'Web Application Name' + '}', web_application_name.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:Authorization] = # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(server) auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, header_params: header_params, query_params: query_params, form_params: form_params, body: post_body, auth_names: auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ServerApi#services_web_application_name_servers_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end |
#services_web_application_name_servers_server_name_delete(authorization, web_application_name, server_name, opts = {}) ⇒ nil
DELETE Information of Server
155 156 157 158 |
# File 'lib/puppet_x/swagger_client/api/server_api.rb', line 155 def services_web_application_name_servers_server_name_delete(, web_application_name, server_name, opts = {}) services_web_application_name_servers_server_name_delete_with_http_info(, web_application_name, server_name, opts) nil end |
#services_web_application_name_servers_server_name_delete_with_http_info(authorization, web_application_name, server_name, _opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
DELETE Information of Server
167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 |
# File 'lib/puppet_x/swagger_client/api/server_api.rb', line 167 def services_web_application_name_servers_server_name_delete_with_http_info(, web_application_name, server_name, _opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ServerApi.services_web_application_name_servers_server_name_delete ...' end # verify the required parameter 'authorization' is set if @api_client.config.client_side_validation && .nil? raise ArgumentError, "Missing the required parameter 'authorization' when calling ServerApi.services_web_application_name_servers_server_name_delete" end # verify the required parameter 'web_application_name' is set if @api_client.config.client_side_validation && web_application_name.nil? raise ArgumentError, "Missing the required parameter 'web_application_name' when calling ServerApi.services_web_application_name_servers_server_name_delete" end # verify the required parameter 'server_name' is set if @api_client.config.client_side_validation && server_name.nil? raise ArgumentError, "Missing the required parameter 'server_name' when calling ServerApi.services_web_application_name_servers_server_name_delete" end # resource path local_var_path = '/services/{Web Application Name}/servers/{Server Name}'.sub('{' + 'Web Application Name' + '}', web_application_name.to_s).sub('{' + 'Server Name' + '}', server_name.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:Authorization] = # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, header_params: header_params, query_params: query_params, form_params: form_params, body: post_body, auth_names: auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ServerApi#services_web_application_name_servers_server_name_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end |
#services_web_application_name_servers_server_name_get(authorization, web_application_name, server_name, opts = {}) ⇒ nil
FETCH Information of Server
221 222 223 224 |
# File 'lib/puppet_x/swagger_client/api/server_api.rb', line 221 def services_web_application_name_servers_server_name_get(, web_application_name, server_name, opts = {}) services_web_application_name_servers_server_name_get_with_http_info(, web_application_name, server_name, opts) nil end |
#services_web_application_name_servers_server_name_get_with_http_info(authorization, web_application_name, server_name, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
FETCH Information of Server
234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 |
# File 'lib/puppet_x/swagger_client/api/server_api.rb', line 234 def services_web_application_name_servers_server_name_get_with_http_info(, web_application_name, server_name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ServerApi.services_web_application_name_servers_server_name_get ...' end # verify the required parameter 'authorization' is set if @api_client.config.client_side_validation && .nil? raise ArgumentError, "Missing the required parameter 'authorization' when calling ServerApi.services_web_application_name_servers_server_name_get" end # verify the required parameter 'web_application_name' is set if @api_client.config.client_side_validation && web_application_name.nil? raise ArgumentError, "Missing the required parameter 'web_application_name' when calling ServerApi.services_web_application_name_servers_server_name_get" end # verify the required parameter 'server_name' is set if @api_client.config.client_side_validation && server_name.nil? raise ArgumentError, "Missing the required parameter 'server_name' when calling ServerApi.services_web_application_name_servers_server_name_get" end # resource path local_var_path = '/services/{Web Application Name}/servers/{Server Name} '.sub('{' + 'Web Application Name' + '}', web_application_name.to_s).sub('{' + 'Server Name' + '}', server_name.to_s) # query parameters query_params = {} query_params[:fields] = @api_client.build_collection_param(opts[:fields], :multi) unless opts[:fields].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:Authorization] = # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, header_params: header_params, query_params: query_params, form_params: form_params, body: post_body, auth_names: auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ServerApi#services_web_application_name_servers_server_name_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end |
#services_web_application_name_servers_server_name_put(authorization, web_application_name, server_name, server, opts = {}) ⇒ nil
EDIT Information of Server
289 290 291 292 |
# File 'lib/puppet_x/swagger_client/api/server_api.rb', line 289 def services_web_application_name_servers_server_name_put(, web_application_name, server_name, server, opts = {}) services_web_application_name_servers_server_name_put_with_http_info(, web_application_name, server_name, server, opts) nil end |
#services_web_application_name_servers_server_name_put_with_http_info(authorization, web_application_name, server_name, server, _opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
EDIT Information of Server
302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 |
# File 'lib/puppet_x/swagger_client/api/server_api.rb', line 302 def services_web_application_name_servers_server_name_put_with_http_info(, web_application_name, server_name, server, _opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ServerApi.services_web_application_name_servers_server_name_put ...' end # verify the required parameter 'authorization' is set if @api_client.config.client_side_validation && .nil? raise ArgumentError, "Missing the required parameter 'authorization' when calling ServerApi.services_web_application_name_servers_server_name_put" end # verify the required parameter 'web_application_name' is set if @api_client.config.client_side_validation && web_application_name.nil? raise ArgumentError, "Missing the required parameter 'web_application_name' when calling ServerApi.services_web_application_name_servers_server_name_put" end # verify the required parameter 'server_name' is set if @api_client.config.client_side_validation && server_name.nil? raise ArgumentError, "Missing the required parameter 'server_name' when calling ServerApi.services_web_application_name_servers_server_name_put" end # verify the required parameter 'server' is set if @api_client.config.client_side_validation && server.nil? raise ArgumentError, "Missing the required parameter 'server' when calling ServerApi.services_web_application_name_servers_server_name_put" end # resource path local_var_path = '/services/{Web Application Name}/servers/{Server Name} '.sub('{' + 'Web Application Name' + '}', web_application_name.to_s).sub('{' + 'Server Name' + '}', server_name.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:Authorization] = # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(server) auth_names = [] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, header_params: header_params, query_params: query_params, form_params: form_params, body: post_body, auth_names: auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ServerApi#services_web_application_name_servers_server_name_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end |