Class: PulpAnsibleClient::RemotesCollectionApi
- Inherits:
-
Object
- Object
- PulpAnsibleClient::RemotesCollectionApi
- Defined in:
- lib/pulp_ansible_client/api/remotes_collection_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#create(ansible_collection_remote, opts = {}) ⇒ AnsibleCollectionRemoteResponse
Create a collection remote ViewSet for Collection Remotes.
-
#create_with_http_info(ansible_collection_remote, opts = {}) ⇒ Array<(AnsibleCollectionRemoteResponse, Integer, Hash)>
Create a collection remote ViewSet for Collection Remotes.
-
#delete(ansible_collection_remote_href, opts = {}) ⇒ AsyncOperationResponse
Delete a collection remote Trigger an asynchronous delete task.
-
#delete_with_http_info(ansible_collection_remote_href, opts = {}) ⇒ Array<(AsyncOperationResponse, Integer, Hash)>
Delete a collection remote Trigger an asynchronous delete task.
-
#initialize(api_client = ApiClient.default) ⇒ RemotesCollectionApi
constructor
A new instance of RemotesCollectionApi.
-
#list(opts = {}) ⇒ InlineResponse2005
List collection remotes ViewSet for Collection Remotes.
-
#list_with_http_info(opts = {}) ⇒ Array<(InlineResponse2005, Integer, Hash)>
List collection remotes ViewSet for Collection Remotes.
-
#partial_update(ansible_collection_remote_href, patchedansible_collection_remote, opts = {}) ⇒ AsyncOperationResponse
Update a collection remote Trigger an asynchronous partial update task.
-
#partial_update_with_http_info(ansible_collection_remote_href, patchedansible_collection_remote, opts = {}) ⇒ Array<(AsyncOperationResponse, Integer, Hash)>
Update a collection remote Trigger an asynchronous partial update task.
-
#read(ansible_collection_remote_href, opts = {}) ⇒ AnsibleCollectionRemoteResponse
Inspect a collection remote ViewSet for Collection Remotes.
-
#read_with_http_info(ansible_collection_remote_href, opts = {}) ⇒ Array<(AnsibleCollectionRemoteResponse, Integer, Hash)>
Inspect a collection remote ViewSet for Collection Remotes.
-
#update(ansible_collection_remote_href, ansible_collection_remote, opts = {}) ⇒ AsyncOperationResponse
Update a collection remote Trigger an asynchronous update task.
-
#update_with_http_info(ansible_collection_remote_href, ansible_collection_remote, opts = {}) ⇒ Array<(AsyncOperationResponse, Integer, Hash)>
Update a collection remote Trigger an asynchronous update task.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ RemotesCollectionApi
Returns a new instance of RemotesCollectionApi.
19 20 21 |
# File 'lib/pulp_ansible_client/api/remotes_collection_api.rb', line 19 def initialize(api_client = ApiClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
17 18 19 |
# File 'lib/pulp_ansible_client/api/remotes_collection_api.rb', line 17 def api_client @api_client end |
Instance Method Details
#create(ansible_collection_remote, opts = {}) ⇒ AnsibleCollectionRemoteResponse
Create a collection remote ViewSet for Collection Remotes.
27 28 29 30 |
# File 'lib/pulp_ansible_client/api/remotes_collection_api.rb', line 27 def create(ansible_collection_remote, opts = {}) data, _status_code, _headers = create_with_http_info(ansible_collection_remote, opts) data end |
#create_with_http_info(ansible_collection_remote, opts = {}) ⇒ Array<(AnsibleCollectionRemoteResponse, Integer, Hash)>
Create a collection remote ViewSet for Collection Remotes.
37 38 39 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 82 83 84 |
# File 'lib/pulp_ansible_client/api/remotes_collection_api.rb', line 37 def create_with_http_info(ansible_collection_remote, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RemotesCollectionApi.create ...' end # verify the required parameter 'ansible_collection_remote' is set if @api_client.config.client_side_validation && ansible_collection_remote.nil? fail ArgumentError, "Missing the required parameter 'ansible_collection_remote' when calling RemotesCollectionApi.create" end # resource path local_var_path = '/pulp/api/v3/remotes/ansible/collection/' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(ansible_collection_remote) # return_type return_type = opts[:return_type] || 'AnsibleCollectionRemoteResponse' # auth_names auth_names = opts[:auth_names] || ['basicAuth'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: RemotesCollectionApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete(ansible_collection_remote_href, opts = {}) ⇒ AsyncOperationResponse
Delete a collection remote Trigger an asynchronous delete task
100 101 102 103 |
# File 'lib/pulp_ansible_client/api/remotes_collection_api.rb', line 100 def delete(ansible_collection_remote_href, opts = {}) data, _status_code, _headers = delete_with_http_info(ansible_collection_remote_href, opts) data end |
#delete_with_http_info(ansible_collection_remote_href, opts = {}) ⇒ Array<(AsyncOperationResponse, Integer, Hash)>
Delete a collection remote Trigger an asynchronous delete task
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 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 |
# File 'lib/pulp_ansible_client/api/remotes_collection_api.rb', line 119 def delete_with_http_info(ansible_collection_remote_href, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RemotesCollectionApi.delete ...' end # verify the required parameter 'ansible_collection_remote_href' is set if @api_client.config.client_side_validation && ansible_collection_remote_href.nil? fail ArgumentError, "Missing the required parameter 'ansible_collection_remote_href' when calling RemotesCollectionApi.delete" end # resource path local_var_path = '{ansible_collection_remote_href}'.sub('{' + 'ansible_collection_remote_href' + '}', CGI.escape(ansible_collection_remote_href.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil? query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil? query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil? query_params[:'pulp_last_updated'] = opts[:'pulp_last_updated'] if !opts[:'pulp_last_updated'].nil? query_params[:'pulp_last_updated__gt'] = opts[:'pulp_last_updated__gt'] if !opts[:'pulp_last_updated__gt'].nil? query_params[:'pulp_last_updated__gte'] = opts[:'pulp_last_updated__gte'] if !opts[:'pulp_last_updated__gte'].nil? query_params[:'pulp_last_updated__lt'] = opts[:'pulp_last_updated__lt'] if !opts[:'pulp_last_updated__lt'].nil? query_params[:'pulp_last_updated__lte'] = opts[:'pulp_last_updated__lte'] if !opts[:'pulp_last_updated__lte'].nil? query_params[:'pulp_last_updated__range'] = opts[:'pulp_last_updated__range'] if !opts[:'pulp_last_updated__range'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'AsyncOperationResponse' # auth_names auth_names = opts[:auth_names] || ['basicAuth'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: RemotesCollectionApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list(opts = {}) ⇒ InlineResponse2005
List collection remotes ViewSet for Collection Remotes.
192 193 194 195 |
# File 'lib/pulp_ansible_client/api/remotes_collection_api.rb', line 192 def list(opts = {}) data, _status_code, _headers = list_with_http_info(opts) data end |
#list_with_http_info(opts = {}) ⇒ Array<(InlineResponse2005, Integer, Hash)>
List collection remotes ViewSet for Collection Remotes.
214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 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 |
# File 'lib/pulp_ansible_client/api/remotes_collection_api.rb', line 214 def list_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RemotesCollectionApi.list ...' end # resource path local_var_path = '/pulp/api/v3/remotes/ansible/collection/' # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil? query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil? query_params[:'pulp_last_updated'] = opts[:'pulp_last_updated'] if !opts[:'pulp_last_updated'].nil? query_params[:'pulp_last_updated__gt'] = opts[:'pulp_last_updated__gt'] if !opts[:'pulp_last_updated__gt'].nil? query_params[:'pulp_last_updated__gte'] = opts[:'pulp_last_updated__gte'] if !opts[:'pulp_last_updated__gte'].nil? query_params[:'pulp_last_updated__lt'] = opts[:'pulp_last_updated__lt'] if !opts[:'pulp_last_updated__lt'].nil? query_params[:'pulp_last_updated__lte'] = opts[:'pulp_last_updated__lte'] if !opts[:'pulp_last_updated__lte'].nil? query_params[:'pulp_last_updated__range'] = opts[:'pulp_last_updated__range'] if !opts[:'pulp_last_updated__range'].nil? query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil? query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'InlineResponse2005' # auth_names auth_names = opts[:auth_names] || ['basicAuth'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: RemotesCollectionApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#partial_update(ansible_collection_remote_href, patchedansible_collection_remote, opts = {}) ⇒ AsyncOperationResponse
Update a collection remote Trigger an asynchronous partial update task
285 286 287 288 |
# File 'lib/pulp_ansible_client/api/remotes_collection_api.rb', line 285 def partial_update(ansible_collection_remote_href, patchedansible_collection_remote, opts = {}) data, _status_code, _headers = partial_update_with_http_info(ansible_collection_remote_href, patchedansible_collection_remote, opts) data end |
#partial_update_with_http_info(ansible_collection_remote_href, patchedansible_collection_remote, opts = {}) ⇒ Array<(AsyncOperationResponse, Integer, Hash)>
Update a collection remote Trigger an asynchronous partial update task
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 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 |
# File 'lib/pulp_ansible_client/api/remotes_collection_api.rb', line 305 def partial_update_with_http_info(ansible_collection_remote_href, patchedansible_collection_remote, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RemotesCollectionApi.partial_update ...' end # verify the required parameter 'ansible_collection_remote_href' is set if @api_client.config.client_side_validation && ansible_collection_remote_href.nil? fail ArgumentError, "Missing the required parameter 'ansible_collection_remote_href' when calling RemotesCollectionApi.partial_update" end # verify the required parameter 'patchedansible_collection_remote' is set if @api_client.config.client_side_validation && patchedansible_collection_remote.nil? fail ArgumentError, "Missing the required parameter 'patchedansible_collection_remote' when calling RemotesCollectionApi.partial_update" end # resource path local_var_path = '{ansible_collection_remote_href}'.sub('{' + 'ansible_collection_remote_href' + '}', CGI.escape(ansible_collection_remote_href.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil? query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil? query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil? query_params[:'pulp_last_updated'] = opts[:'pulp_last_updated'] if !opts[:'pulp_last_updated'].nil? query_params[:'pulp_last_updated__gt'] = opts[:'pulp_last_updated__gt'] if !opts[:'pulp_last_updated__gt'].nil? query_params[:'pulp_last_updated__gte'] = opts[:'pulp_last_updated__gte'] if !opts[:'pulp_last_updated__gte'].nil? query_params[:'pulp_last_updated__lt'] = opts[:'pulp_last_updated__lt'] if !opts[:'pulp_last_updated__lt'].nil? query_params[:'pulp_last_updated__lte'] = opts[:'pulp_last_updated__lte'] if !opts[:'pulp_last_updated__lte'].nil? query_params[:'pulp_last_updated__range'] = opts[:'pulp_last_updated__range'] if !opts[:'pulp_last_updated__range'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(patchedansible_collection_remote) # return_type return_type = opts[:return_type] || 'AsyncOperationResponse' # auth_names auth_names = opts[:auth_names] || ['basicAuth'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: RemotesCollectionApi#partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#read(ansible_collection_remote_href, opts = {}) ⇒ AnsibleCollectionRemoteResponse
Inspect a collection remote ViewSet for Collection Remotes.
374 375 376 377 |
# File 'lib/pulp_ansible_client/api/remotes_collection_api.rb', line 374 def read(ansible_collection_remote_href, opts = {}) data, _status_code, _headers = read_with_http_info(ansible_collection_remote_href, opts) data end |
#read_with_http_info(ansible_collection_remote_href, opts = {}) ⇒ Array<(AnsibleCollectionRemoteResponse, Integer, Hash)>
Inspect a collection remote ViewSet for Collection Remotes.
386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 |
# File 'lib/pulp_ansible_client/api/remotes_collection_api.rb', line 386 def read_with_http_info(ansible_collection_remote_href, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RemotesCollectionApi.read ...' end # verify the required parameter 'ansible_collection_remote_href' is set if @api_client.config.client_side_validation && ansible_collection_remote_href.nil? fail ArgumentError, "Missing the required parameter 'ansible_collection_remote_href' when calling RemotesCollectionApi.read" end # resource path local_var_path = '{ansible_collection_remote_href}'.sub('{' + 'ansible_collection_remote_href' + '}', CGI.escape(ansible_collection_remote_href.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil? query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'AnsibleCollectionRemoteResponse' # auth_names auth_names = opts[:auth_names] || ['basicAuth'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: RemotesCollectionApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#update(ansible_collection_remote_href, ansible_collection_remote, opts = {}) ⇒ AsyncOperationResponse
Update a collection remote Trigger an asynchronous update task
450 451 452 453 |
# File 'lib/pulp_ansible_client/api/remotes_collection_api.rb', line 450 def update(ansible_collection_remote_href, ansible_collection_remote, opts = {}) data, _status_code, _headers = update_with_http_info(ansible_collection_remote_href, ansible_collection_remote, opts) data end |
#update_with_http_info(ansible_collection_remote_href, ansible_collection_remote, opts = {}) ⇒ Array<(AsyncOperationResponse, Integer, Hash)>
Update a collection remote Trigger an asynchronous update task
470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 |
# File 'lib/pulp_ansible_client/api/remotes_collection_api.rb', line 470 def update_with_http_info(ansible_collection_remote_href, ansible_collection_remote, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: RemotesCollectionApi.update ...' end # verify the required parameter 'ansible_collection_remote_href' is set if @api_client.config.client_side_validation && ansible_collection_remote_href.nil? fail ArgumentError, "Missing the required parameter 'ansible_collection_remote_href' when calling RemotesCollectionApi.update" end # verify the required parameter 'ansible_collection_remote' is set if @api_client.config.client_side_validation && ansible_collection_remote.nil? fail ArgumentError, "Missing the required parameter 'ansible_collection_remote' when calling RemotesCollectionApi.update" end # resource path local_var_path = '{ansible_collection_remote_href}'.sub('{' + 'ansible_collection_remote_href' + '}', CGI.escape(ansible_collection_remote_href.to_s).gsub('%2F', '/')) # query parameters query_params = opts[:query_params] || {} query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil? query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil? query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil? query_params[:'pulp_last_updated'] = opts[:'pulp_last_updated'] if !opts[:'pulp_last_updated'].nil? query_params[:'pulp_last_updated__gt'] = opts[:'pulp_last_updated__gt'] if !opts[:'pulp_last_updated__gt'].nil? query_params[:'pulp_last_updated__gte'] = opts[:'pulp_last_updated__gte'] if !opts[:'pulp_last_updated__gte'].nil? query_params[:'pulp_last_updated__lt'] = opts[:'pulp_last_updated__lt'] if !opts[:'pulp_last_updated__lt'].nil? query_params[:'pulp_last_updated__lte'] = opts[:'pulp_last_updated__lte'] if !opts[:'pulp_last_updated__lte'].nil? query_params[:'pulp_last_updated__range'] = opts[:'pulp_last_updated__range'] if !opts[:'pulp_last_updated__range'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(ansible_collection_remote) # return_type return_type = opts[:return_type] || 'AsyncOperationResponse' # auth_names auth_names = opts[:auth_names] || ['basicAuth'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:PUT, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: RemotesCollectionApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |