pulp_ansible_client 0.21.7 → 0.22.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -15
  3. data/docs/{AnsibleCollection.md → AnsibleAnsibleCollectionDeprecated.md} +4 -2
  4. data/docs/AnsibleAnsibleCollectionDeprecatedResponse.md +25 -0
  5. data/docs/AnsibleCollectionVersion.md +2 -2
  6. data/docs/AnsibleCollectionVersionResponse.md +10 -10
  7. data/docs/AnsibleCollectionsApi.md +60 -0
  8. data/docs/AnsibleGitRemote.md +25 -25
  9. data/docs/AnsibleGitRemoteResponse.md +22 -22
  10. data/docs/AnsibleRoleResponse.md +5 -5
  11. data/docs/CollectionImportDetailResponse.md +2 -2
  12. data/docs/CollectionMetadataResponse.md +2 -2
  13. data/docs/CollectionSummaryResponse.md +2 -2
  14. data/docs/CollectionVersionDocsResponse.md +1 -1
  15. data/docs/CollectionVersionResponse.md +2 -2
  16. data/docs/ContentCollectionDeprecationsApi.md +10 -10
  17. data/docs/ContentCollectionVersionsApi.md +2 -2
  18. data/docs/Copy.md +1 -1
  19. data/docs/{PaginatedGalaxyCollectionVersionResponseList.md → PaginatedansibleAnsibleCollectionDeprecatedResponseList.md} +5 -5
  20. data/docs/PatchedansibleGitRemote.md +25 -25
  21. data/docs/VersionsApi.md +0 -55
  22. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +68 -0
  23. data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +20 -20
  24. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +3 -3
  25. data/lib/pulp_ansible_client/api/versions_api.rb +0 -69
  26. data/lib/pulp_ansible_client/models/{ansible_collection.rb → ansible_ansible_collection_deprecated.rb} +15 -5
  27. data/lib/pulp_ansible_client/models/{galaxy_collection_version_response.rb → ansible_ansible_collection_deprecated_response.rb} +45 -54
  28. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +11 -11
  29. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +22 -22
  30. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +203 -203
  31. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +139 -139
  32. data/lib/pulp_ansible_client/models/ansible_role_response.rb +17 -17
  33. data/lib/pulp_ansible_client/models/collection_import_detail_response.rb +2 -2
  34. data/lib/pulp_ansible_client/models/collection_metadata_response.rb +2 -2
  35. data/lib/pulp_ansible_client/models/collection_summary_response.rb +2 -2
  36. data/lib/pulp_ansible_client/models/collection_version_docs_response.rb +1 -1
  37. data/lib/pulp_ansible_client/models/collection_version_response.rb +2 -2
  38. data/lib/pulp_ansible_client/models/copy.rb +1 -1
  39. data/lib/pulp_ansible_client/models/{paginated_galaxy_collection_response_list.rb → paginatedansible_ansible_collection_deprecated_response_list.rb} +4 -4
  40. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +203 -203
  41. data/lib/pulp_ansible_client/version.rb +1 -1
  42. data/lib/pulp_ansible_client.rb +3 -9
  43. data/spec/api/ansible_collections_api_spec.rb +14 -0
  44. data/spec/api/content_collection_deprecations_api_spec.rb +5 -5
  45. data/spec/api/content_collection_versions_api_spec.rb +1 -1
  46. data/spec/api/versions_api_spec.rb +0 -14
  47. data/spec/models/{galaxy_collection_version_response_spec.rb → ansible_ansible_collection_deprecated_response_spec.rb} +11 -17
  48. data/spec/models/{ansible_collection_spec.rb → ansible_ansible_collection_deprecated_spec.rb} +12 -6
  49. data/spec/models/ansible_collection_version_response_spec.rb +3 -3
  50. data/spec/models/ansible_collection_version_spec.rb +3 -3
  51. data/spec/models/ansible_git_remote_response_spec.rb +18 -18
  52. data/spec/models/ansible_git_remote_spec.rb +19 -19
  53. data/spec/models/ansible_role_response_spec.rb +3 -3
  54. data/spec/models/{paginated_galaxy_collection_version_response_list_spec.rb → paginatedansible_ansible_collection_deprecated_response_list_spec.rb} +6 -6
  55. data/spec/models/patchedansible_git_remote_spec.rb +19 -19
  56. metadata +13 -37
  57. data/docs/ApiCollectionsApi.md +0 -112
  58. data/docs/GalaxyCollection.md +0 -23
  59. data/docs/GalaxyCollectionResponse.md +0 -31
  60. data/docs/GalaxyCollectionVersionResponse.md +0 -27
  61. data/docs/GalaxyDetailApi.md +0 -61
  62. data/docs/PaginatedGalaxyCollectionResponseList.md +0 -23
  63. data/docs/PulpAnsibleApiV2CollectionsVersionsApi.md +0 -66
  64. data/lib/pulp_ansible_client/api/api_collections_api.rb +0 -159
  65. data/lib/pulp_ansible_client/api/galaxy_detail_api.rb +0 -88
  66. data/lib/pulp_ansible_client/api/pulp_ansible_api_v2_collections_versions_api.rb +0 -104
  67. data/lib/pulp_ansible_client/models/galaxy_collection.rb +0 -292
  68. data/lib/pulp_ansible_client/models/galaxy_collection_response.rb +0 -294
  69. data/lib/pulp_ansible_client/models/paginated_galaxy_collection_version_response_list.rb +0 -247
  70. data/spec/api/api_collections_api_spec.rb +0 -61
  71. data/spec/api/galaxy_detail_api_spec.rb +0 -48
  72. data/spec/api/pulp_ansible_api_v2_collections_versions_api_spec.rb +0 -51
  73. data/spec/models/galaxy_collection_response_spec.rb +0 -83
  74. data/spec/models/galaxy_collection_spec.rb +0 -59
  75. data/spec/models/paginated_galaxy_collection_response_list_spec.rb +0 -59
@@ -33,9 +33,9 @@ end
33
33
  api_instance = PulpAnsibleClient::ContentCollectionVersionsApi.new
34
34
  opts = {
35
35
  repository: 'repository_example', # String | A URI of a repository the new content unit should be associated with.
36
- artifact: 'artifact_example', # String | Artifact file representing the physical content
37
36
  file: File.new('/path/to/file'), # File | An uploaded file that may be turned into the content unit.
38
37
  upload: 'upload_example', # String | An uncommitted upload that may be turned into the content unit.
38
+ artifact: 'artifact_example', # String | Artifact file representing the physical content
39
39
  expected_name: 'expected_name_example', # String | The name of the collection.
40
40
  expected_namespace: 'expected_namespace_example', # String | The namespace of the collection.
41
41
  expected_version: 'expected_version_example' # String | The version of the collection.
@@ -56,9 +56,9 @@ end
56
56
  Name | Type | Description | Notes
57
57
  ------------- | ------------- | ------------- | -------------
58
58
  **repository** | **String**| A URI of a repository the new content unit should be associated with. | [optional]
59
- **artifact** | **String**| Artifact file representing the physical content | [optional]
60
59
  **file** | **File**| An uploaded file that may be turned into the content unit. | [optional]
61
60
  **upload** | **String**| An uncommitted upload that may be turned into the content unit. | [optional]
61
+ **artifact** | **String**| Artifact file representing the physical content | [optional]
62
62
  **expected_name** | **String**| The name of the collection. | [optional]
63
63
  **expected_namespace** | **String**| The namespace of the collection. | [optional]
64
64
  **expected_version** | **String**| The version of the collection. | [optional]
data/docs/Copy.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **config** | [**Object**](.md) | A JSON document describing sources, destinations, and content to be copied |
7
+ **config** | [**AnyType**](.md) | A JSON document describing sources, destinations, and content to be copied |
8
8
 
9
9
  ## Code Sample
10
10
 
@@ -1,4 +1,4 @@
1
- # PulpAnsibleClient::PaginatedGalaxyCollectionVersionResponseList
1
+ # PulpAnsibleClient::PaginatedansibleAnsibleCollectionDeprecatedResponseList
2
2
 
3
3
  ## Properties
4
4
 
@@ -7,16 +7,16 @@ Name | Type | Description | Notes
7
7
  **count** | **Integer** | |
8
8
  **_next** | **String** | | [optional]
9
9
  **previous** | **String** | | [optional]
10
- **results** | [**Array<GalaxyCollectionVersionResponse>**](GalaxyCollectionVersionResponse.md) | |
10
+ **results** | [**Array<AnsibleAnsibleCollectionDeprecatedResponse>**](AnsibleAnsibleCollectionDeprecatedResponse.md) | |
11
11
 
12
12
  ## Code Sample
13
13
 
14
14
  ```ruby
15
15
  require 'PulpAnsibleClient'
16
16
 
17
- instance = PulpAnsibleClient::PaginatedGalaxyCollectionVersionResponseList.new(count: 123,
18
- _next: http://api.example.org/accounts/?page=4,
19
- previous: http://api.example.org/accounts/?page=2,
17
+ instance = PulpAnsibleClient::PaginatedansibleAnsibleCollectionDeprecatedResponseList.new(count: 123,
18
+ _next: http://api.example.org/accounts/?offset=400&limit=100,
19
+ previous: http://api.example.org/accounts/?offset=200&limit=100,
20
20
  results: null)
21
21
  ```
22
22
 
@@ -4,26 +4,26 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
+ **max_retries** | **Integer** | Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. | [optional]
8
+ **connect_timeout** | **Float** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
9
+ **sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
7
10
  **password** | **String** | The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed. | [optional]
11
+ **tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional]
8
12
  **proxy_url** | **String** | The proxy URL. Format: scheme://host:port | [optional]
9
- **client_key** | **String** | A PEM encoded private key used for authentication. | [optional]
10
- **name** | **String** | A unique name for this remote. | [optional]
13
+ **sock_read_timeout** | **Float** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
11
14
  **proxy_username** | **String** | The username to authenticte to the proxy. | [optional]
15
+ **name** | **String** | A unique name for this remote. | [optional]
12
16
  **url** | **String** | The URL of an external content source. | [optional]
13
- **pulp_labels** | **Hash<String, String>** | | [optional]
14
- **sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
15
- **tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional]
16
- **download_concurrency** | **Integer** | Total number of simultaneous connections. If not set then the default value will be used. | [optional]
17
- **sock_read_timeout** | **Float** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
18
- **client_cert** | **String** | A PEM encoded client certificate used for authentication. | [optional]
19
- **max_retries** | **Integer** | Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used. | [optional]
20
- **connect_timeout** | **Float** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
21
- **ca_cert** | **String** | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [optional]
22
17
  **rate_limit** | **Integer** | Limits requests per second for each concurrent downloader | [optional]
18
+ **client_cert** | **String** | A PEM encoded client certificate used for authentication. | [optional]
23
19
  **username** | **String** | The username to be used for authentication when syncing. | [optional]
24
- **proxy_password** | **String** | The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed. | [optional]
20
+ **ca_cert** | **String** | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [optional]
25
21
  **total_timeout** | **Float** | aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
22
+ **download_concurrency** | **Integer** | Total number of simultaneous connections. If not set then the default value will be used. | [optional]
23
+ **proxy_password** | **String** | The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed. | [optional]
24
+ **pulp_labels** | **Hash<String, String>** | | [optional]
26
25
  **headers** | **Array<Object>** | Headers for aiohttp.Clientsession | [optional]
26
+ **client_key** | **String** | A PEM encoded private key used for authentication. | [optional]
27
27
  **metadata_only** | **Boolean** | If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL. | [optional]
28
28
  **git_ref** | **String** | A git ref. e.g.: branch, tag, or commit sha. | [optional]
29
29
 
@@ -32,26 +32,26 @@ Name | Type | Description | Notes
32
32
  ```ruby
33
33
  require 'PulpAnsibleClient'
34
34
 
35
- instance = PulpAnsibleClient::PatchedansibleGitRemote.new(password: null,
36
- proxy_url: null,
37
- client_key: null,
38
- name: null,
39
- proxy_username: null,
40
- url: null,
41
- pulp_labels: null,
35
+ instance = PulpAnsibleClient::PatchedansibleGitRemote.new(max_retries: null,
36
+ connect_timeout: null,
42
37
  sock_connect_timeout: null,
38
+ password: null,
43
39
  tls_validation: null,
44
- download_concurrency: null,
40
+ proxy_url: null,
45
41
  sock_read_timeout: null,
46
- client_cert: null,
47
- max_retries: null,
48
- connect_timeout: null,
49
- ca_cert: null,
42
+ proxy_username: null,
43
+ name: null,
44
+ url: null,
50
45
  rate_limit: null,
46
+ client_cert: null,
51
47
  username: null,
52
- proxy_password: null,
48
+ ca_cert: null,
53
49
  total_timeout: null,
50
+ download_concurrency: null,
51
+ proxy_password: null,
52
+ pulp_labels: null,
54
53
  headers: null,
54
+ client_key: null,
55
55
  metadata_only: null,
56
56
  git_ref: null)
57
57
  ```
data/docs/VersionsApi.md CHANGED
@@ -5,7 +5,6 @@ All URIs are relative to *http://localhost:24817*
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
7
  [**api_v1_roles_versions_list**](VersionsApi.md#api_v1_roles_versions_list) | **GET** {ansible_role_href}versions/ |
8
- [**api_v2_collection_versions_list**](VersionsApi.md#api_v2_collection_versions_list) | **GET** {ansible_collection_version_href}versions/ |
9
8
 
10
9
 
11
10
 
@@ -64,57 +63,3 @@ No authorization required
64
63
  - **Content-Type**: Not defined
65
64
  - **Accept**: application/json
66
65
 
67
-
68
- ## api_v2_collection_versions_list
69
-
70
- > PaginatedGalaxyCollectionVersionResponseList api_v2_collection_versions_list(ansible_collection_version_href, opts)
71
-
72
-
73
-
74
- APIView for Collections by namespace/name.
75
-
76
- ### Example
77
-
78
- ```ruby
79
- # load the gem
80
- require 'pulp_ansible_client'
81
-
82
- api_instance = PulpAnsibleClient::VersionsApi.new
83
- ansible_collection_version_href = 'ansible_collection_version_href_example' # String |
84
- opts = {
85
- page: 56, # Integer | A page number within the paginated result set.
86
- fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
87
- exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
88
- }
89
-
90
- begin
91
- result = api_instance.api_v2_collection_versions_list(ansible_collection_version_href, opts)
92
- p result
93
- rescue PulpAnsibleClient::ApiError => e
94
- puts "Exception when calling VersionsApi->api_v2_collection_versions_list: #{e}"
95
- end
96
- ```
97
-
98
- ### Parameters
99
-
100
-
101
- Name | Type | Description | Notes
102
- ------------- | ------------- | ------------- | -------------
103
- **ansible_collection_version_href** | **String**| |
104
- **page** | **Integer**| A page number within the paginated result set. | [optional]
105
- **fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to include in the response. | [optional]
106
- **exclude_fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to exclude from the response. | [optional]
107
-
108
- ### Return type
109
-
110
- [**PaginatedGalaxyCollectionVersionResponseList**](PaginatedGalaxyCollectionVersionResponseList.md)
111
-
112
- ### Authorization
113
-
114
- No authorization required
115
-
116
- ### HTTP request headers
117
-
118
- - **Content-Type**: Not defined
119
- - **Accept**: application/json
120
-
@@ -315,6 +315,74 @@ module PulpAnsibleClient
315
315
  return data, status_code, headers
316
316
  end
317
317
 
318
+ # Inspect a collection
319
+ # Viewset for Ansible Collections.
320
+ # @param ansible_collection_href [String]
321
+ # @param [Hash] opts the optional parameters
322
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
323
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
324
+ # @return [AnsibleCollectionResponse]
325
+ def read(ansible_collection_href, opts = {})
326
+ data, _status_code, _headers = read_with_http_info(ansible_collection_href, opts)
327
+ data
328
+ end
329
+
330
+ # Inspect a collection
331
+ # Viewset for Ansible Collections.
332
+ # @param ansible_collection_href [String]
333
+ # @param [Hash] opts the optional parameters
334
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
335
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
336
+ # @return [Array<(AnsibleCollectionResponse, Integer, Hash)>] AnsibleCollectionResponse data, response status code and response headers
337
+ def read_with_http_info(ansible_collection_href, opts = {})
338
+ if @api_client.config.debugging
339
+ @api_client.config.logger.debug 'Calling API: AnsibleCollectionsApi.read ...'
340
+ end
341
+ # verify the required parameter 'ansible_collection_href' is set
342
+ if @api_client.config.client_side_validation && ansible_collection_href.nil?
343
+ fail ArgumentError, "Missing the required parameter 'ansible_collection_href' when calling AnsibleCollectionsApi.read"
344
+ end
345
+ # resource path
346
+ local_var_path = '{ansible_collection_href}'.sub('{' + 'ansible_collection_href' + '}', CGI.escape(ansible_collection_href.to_s).gsub('%2F', '/'))
347
+
348
+ # query parameters
349
+ query_params = opts[:query_params] || {}
350
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
351
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
352
+
353
+ # header parameters
354
+ header_params = opts[:header_params] || {}
355
+ # HTTP header 'Accept' (if needed)
356
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
357
+
358
+ # form parameters
359
+ form_params = opts[:form_params] || {}
360
+
361
+ # http body (model)
362
+ post_body = opts[:body]
363
+
364
+ # return_type
365
+ return_type = opts[:return_type] || 'AnsibleCollectionResponse'
366
+
367
+ # auth_names
368
+ auth_names = opts[:auth_names] || ['basicAuth']
369
+
370
+ new_options = opts.merge(
371
+ :header_params => header_params,
372
+ :query_params => query_params,
373
+ :form_params => form_params,
374
+ :body => post_body,
375
+ :auth_names => auth_names,
376
+ :return_type => return_type
377
+ )
378
+
379
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
380
+ if @api_client.config.debugging
381
+ @api_client.config.logger.debug "API called: AnsibleCollectionsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
382
+ end
383
+ return data, status_code, headers
384
+ end
385
+
318
386
  # Remove a role
319
387
  # Remove a role for this object from users/groups.
320
388
  # @param ansible_collection_href [String]
@@ -20,27 +20,27 @@ module PulpAnsibleClient
20
20
  @api_client = api_client
21
21
  end
22
22
  # Create an ansible collection deprecated
23
- # ViewSet for AnsibleCollectionDeprecated.
24
- # @param ansible_collection [AnsibleCollection]
23
+ # Trigger an asynchronous task to create content,optionally create new repository version.
24
+ # @param ansible_ansible_collection_deprecated [AnsibleAnsibleCollectionDeprecated]
25
25
  # @param [Hash] opts the optional parameters
26
- # @return [AnsibleCollectionResponse]
27
- def create(ansible_collection, opts = {})
28
- data, _status_code, _headers = create_with_http_info(ansible_collection, opts)
26
+ # @return [AsyncOperationResponse]
27
+ def create(ansible_ansible_collection_deprecated, opts = {})
28
+ data, _status_code, _headers = create_with_http_info(ansible_ansible_collection_deprecated, opts)
29
29
  data
30
30
  end
31
31
 
32
32
  # Create an ansible collection deprecated
33
- # ViewSet for AnsibleCollectionDeprecated.
34
- # @param ansible_collection [AnsibleCollection]
33
+ # Trigger an asynchronous task to create content,optionally create new repository version.
34
+ # @param ansible_ansible_collection_deprecated [AnsibleAnsibleCollectionDeprecated]
35
35
  # @param [Hash] opts the optional parameters
36
- # @return [Array<(AnsibleCollectionResponse, Integer, Hash)>] AnsibleCollectionResponse data, response status code and response headers
37
- def create_with_http_info(ansible_collection, opts = {})
36
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
37
+ def create_with_http_info(ansible_ansible_collection_deprecated, opts = {})
38
38
  if @api_client.config.debugging
39
39
  @api_client.config.logger.debug 'Calling API: ContentCollectionDeprecationsApi.create ...'
40
40
  end
41
- # verify the required parameter 'ansible_collection' is set
42
- if @api_client.config.client_side_validation && ansible_collection.nil?
43
- fail ArgumentError, "Missing the required parameter 'ansible_collection' when calling ContentCollectionDeprecationsApi.create"
41
+ # verify the required parameter 'ansible_ansible_collection_deprecated' is set
42
+ if @api_client.config.client_side_validation && ansible_ansible_collection_deprecated.nil?
43
+ fail ArgumentError, "Missing the required parameter 'ansible_ansible_collection_deprecated' when calling ContentCollectionDeprecationsApi.create"
44
44
  end
45
45
  # resource path
46
46
  local_var_path = '/pulp/api/v3/content/ansible/collection_deprecations/'
@@ -59,10 +59,10 @@ module PulpAnsibleClient
59
59
  form_params = opts[:form_params] || {}
60
60
 
61
61
  # http body (model)
62
- post_body = opts[:body] || @api_client.object_to_http_body(ansible_collection)
62
+ post_body = opts[:body] || @api_client.object_to_http_body(ansible_ansible_collection_deprecated)
63
63
 
64
64
  # return_type
65
- return_type = opts[:return_type] || 'AnsibleCollectionResponse'
65
+ return_type = opts[:return_type] || 'AsyncOperationResponse'
66
66
 
67
67
  # auth_names
68
68
  auth_names = opts[:auth_names] || ['basicAuth']
@@ -98,7 +98,7 @@ module PulpAnsibleClient
98
98
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
99
99
  # @option opts [Array<String>] :fields A list of fields to include in the response.
100
100
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
101
- # @return [PaginatedansibleCollectionResponseList]
101
+ # @return [PaginatedansibleAnsibleCollectionDeprecatedResponseList]
102
102
  def list(opts = {})
103
103
  data, _status_code, _headers = list_with_http_info(opts)
104
104
  data
@@ -119,7 +119,7 @@ module PulpAnsibleClient
119
119
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
120
120
  # @option opts [Array<String>] :fields A list of fields to include in the response.
121
121
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
122
- # @return [Array<(PaginatedansibleCollectionResponseList, Integer, Hash)>] PaginatedansibleCollectionResponseList data, response status code and response headers
122
+ # @return [Array<(PaginatedansibleAnsibleCollectionDeprecatedResponseList, Integer, Hash)>] PaginatedansibleAnsibleCollectionDeprecatedResponseList data, response status code and response headers
123
123
  def list_with_http_info(opts = {})
124
124
  if @api_client.config.debugging
125
125
  @api_client.config.logger.debug 'Calling API: ContentCollectionDeprecationsApi.list ...'
@@ -158,7 +158,7 @@ module PulpAnsibleClient
158
158
  post_body = opts[:body]
159
159
 
160
160
  # return_type
161
- return_type = opts[:return_type] || 'PaginatedansibleCollectionResponseList'
161
+ return_type = opts[:return_type] || 'PaginatedansibleAnsibleCollectionDeprecatedResponseList'
162
162
 
163
163
  # auth_names
164
164
  auth_names = opts[:auth_names] || ['basicAuth']
@@ -185,7 +185,7 @@ module PulpAnsibleClient
185
185
  # @param [Hash] opts the optional parameters
186
186
  # @option opts [Array<String>] :fields A list of fields to include in the response.
187
187
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
188
- # @return [AnsibleCollectionResponse]
188
+ # @return [AnsibleAnsibleCollectionDeprecatedResponse]
189
189
  def read(ansible_ansible_collection_deprecated_href, opts = {})
190
190
  data, _status_code, _headers = read_with_http_info(ansible_ansible_collection_deprecated_href, opts)
191
191
  data
@@ -197,7 +197,7 @@ module PulpAnsibleClient
197
197
  # @param [Hash] opts the optional parameters
198
198
  # @option opts [Array<String>] :fields A list of fields to include in the response.
199
199
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
200
- # @return [Array<(AnsibleCollectionResponse, Integer, Hash)>] AnsibleCollectionResponse data, response status code and response headers
200
+ # @return [Array<(AnsibleAnsibleCollectionDeprecatedResponse, Integer, Hash)>] AnsibleAnsibleCollectionDeprecatedResponse data, response status code and response headers
201
201
  def read_with_http_info(ansible_ansible_collection_deprecated_href, opts = {})
202
202
  if @api_client.config.debugging
203
203
  @api_client.config.logger.debug 'Calling API: ContentCollectionDeprecationsApi.read ...'
@@ -226,7 +226,7 @@ module PulpAnsibleClient
226
226
  post_body = opts[:body]
227
227
 
228
228
  # return_type
229
- return_type = opts[:return_type] || 'AnsibleCollectionResponse'
229
+ return_type = opts[:return_type] || 'AnsibleAnsibleCollectionDeprecatedResponse'
230
230
 
231
231
  # auth_names
232
232
  auth_names = opts[:auth_names] || ['basicAuth']
@@ -23,9 +23,9 @@ module PulpAnsibleClient
23
23
  # Trigger an asynchronous task to create content,optionally create new repository version.
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
26
- # @option opts [String] :artifact Artifact file representing the physical content
27
26
  # @option opts [File] :file An uploaded file that may be turned into the content unit.
28
27
  # @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
28
+ # @option opts [String] :artifact Artifact file representing the physical content
29
29
  # @option opts [String] :expected_name The name of the collection.
30
30
  # @option opts [String] :expected_namespace The namespace of the collection.
31
31
  # @option opts [String] :expected_version The version of the collection.
@@ -39,9 +39,9 @@ module PulpAnsibleClient
39
39
  # Trigger an asynchronous task to create content,optionally create new repository version.
40
40
  # @param [Hash] opts the optional parameters
41
41
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
42
- # @option opts [String] :artifact Artifact file representing the physical content
43
42
  # @option opts [File] :file An uploaded file that may be turned into the content unit.
44
43
  # @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
44
+ # @option opts [String] :artifact Artifact file representing the physical content
45
45
  # @option opts [String] :expected_name The name of the collection.
46
46
  # @option opts [String] :expected_namespace The namespace of the collection.
47
47
  # @option opts [String] :expected_version The version of the collection.
@@ -90,9 +90,9 @@ module PulpAnsibleClient
90
90
  # form parameters
91
91
  form_params = opts[:form_params] || {}
92
92
  form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
93
- form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
94
93
  form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
95
94
  form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
95
+ form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
96
96
  form_params['expected_name'] = opts[:'expected_name'] if !opts[:'expected_name'].nil?
97
97
  form_params['expected_namespace'] = opts[:'expected_namespace'] if !opts[:'expected_namespace'].nil?
98
98
  form_params['expected_version'] = opts[:'expected_version'] if !opts[:'expected_version'].nil?
@@ -90,74 +90,5 @@ module PulpAnsibleClient
90
90
  end
91
91
  return data, status_code, headers
92
92
  end
93
-
94
- # APIView for Collections by namespace/name.
95
- # @param ansible_collection_version_href [String]
96
- # @param [Hash] opts the optional parameters
97
- # @option opts [Integer] :page A page number within the paginated result set.
98
- # @option opts [Array<String>] :fields A list of fields to include in the response.
99
- # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
100
- # @return [PaginatedGalaxyCollectionVersionResponseList]
101
- def api_v2_collection_versions_list(ansible_collection_version_href, opts = {})
102
- data, _status_code, _headers = api_v2_collection_versions_list_with_http_info(ansible_collection_version_href, opts)
103
- data
104
- end
105
-
106
- # APIView for Collections by namespace/name.
107
- # @param ansible_collection_version_href [String]
108
- # @param [Hash] opts the optional parameters
109
- # @option opts [Integer] :page A page number within the paginated result set.
110
- # @option opts [Array<String>] :fields A list of fields to include in the response.
111
- # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
112
- # @return [Array<(PaginatedGalaxyCollectionVersionResponseList, Integer, Hash)>] PaginatedGalaxyCollectionVersionResponseList data, response status code and response headers
113
- def api_v2_collection_versions_list_with_http_info(ansible_collection_version_href, opts = {})
114
- if @api_client.config.debugging
115
- @api_client.config.logger.debug 'Calling API: VersionsApi.api_v2_collection_versions_list ...'
116
- end
117
- # verify the required parameter 'ansible_collection_version_href' is set
118
- if @api_client.config.client_side_validation && ansible_collection_version_href.nil?
119
- fail ArgumentError, "Missing the required parameter 'ansible_collection_version_href' when calling VersionsApi.api_v2_collection_versions_list"
120
- end
121
- # resource path
122
- local_var_path = '{ansible_collection_version_href}versions/'.sub('{' + 'ansible_collection_version_href' + '}', CGI.escape(ansible_collection_version_href.to_s).gsub('%2F', '/'))
123
-
124
- # query parameters
125
- query_params = opts[:query_params] || {}
126
- query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
127
- query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
128
- query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
129
-
130
- # header parameters
131
- header_params = opts[:header_params] || {}
132
- # HTTP header 'Accept' (if needed)
133
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
134
-
135
- # form parameters
136
- form_params = opts[:form_params] || {}
137
-
138
- # http body (model)
139
- post_body = opts[:body]
140
-
141
- # return_type
142
- return_type = opts[:return_type] || 'PaginatedGalaxyCollectionVersionResponseList'
143
-
144
- # auth_names
145
- auth_names = opts[:auth_names] || []
146
-
147
- new_options = opts.merge(
148
- :header_params => header_params,
149
- :query_params => query_params,
150
- :form_params => form_params,
151
- :body => post_body,
152
- :auth_names => auth_names,
153
- :return_type => return_type
154
- )
155
-
156
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
157
- if @api_client.config.debugging
158
- @api_client.config.logger.debug "API called: VersionsApi#api_v2_collection_versions_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
159
- end
160
- return data, status_code, headers
161
- end
162
93
  end
163
94
  end
@@ -13,8 +13,11 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module PulpAnsibleClient
16
- # A serializer for Ansible Collections.
17
- class AnsibleCollection
16
+ # A serializer for Ansible Collection Deprecations.
17
+ class AnsibleAnsibleCollectionDeprecated
18
+ # A URI of a repository the new content unit should be associated with.
19
+ attr_accessor :repository
20
+
18
21
  # The name of the Collection.
19
22
  attr_accessor :name
20
23
 
@@ -24,6 +27,7 @@ module PulpAnsibleClient
24
27
  # Attribute mapping from ruby-style variable name to JSON key.
25
28
  def self.attribute_map
26
29
  {
30
+ :'repository' => :'repository',
27
31
  :'name' => :'name',
28
32
  :'namespace' => :'namespace'
29
33
  }
@@ -32,6 +36,7 @@ module PulpAnsibleClient
32
36
  # Attribute type mapping.
33
37
  def self.openapi_types
34
38
  {
39
+ :'repository' => :'String',
35
40
  :'name' => :'String',
36
41
  :'namespace' => :'String'
37
42
  }
@@ -47,17 +52,21 @@ module PulpAnsibleClient
47
52
  # @param [Hash] attributes Model attributes in the form of hash
48
53
  def initialize(attributes = {})
49
54
  if (!attributes.is_a?(Hash))
50
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::AnsibleCollection` initialize method"
55
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::AnsibleAnsibleCollectionDeprecated` initialize method"
51
56
  end
52
57
 
53
58
  # check to see if the attribute exists and convert string to symbol for hash key
54
59
  attributes = attributes.each_with_object({}) { |(k, v), h|
55
60
  if (!self.class.attribute_map.key?(k.to_sym))
56
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::AnsibleCollection`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
61
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::AnsibleAnsibleCollectionDeprecated`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
57
62
  end
58
63
  h[k.to_sym] = v
59
64
  }
60
65
 
66
+ if attributes.key?(:'repository')
67
+ self.repository = attributes[:'repository']
68
+ end
69
+
61
70
  if attributes.key?(:'name')
62
71
  self.name = attributes[:'name']
63
72
  end
@@ -133,6 +142,7 @@ module PulpAnsibleClient
133
142
  def ==(o)
134
143
  return true if self.equal?(o)
135
144
  self.class == o.class &&
145
+ repository == o.repository &&
136
146
  name == o.name &&
137
147
  namespace == o.namespace
138
148
  end
@@ -146,7 +156,7 @@ module PulpAnsibleClient
146
156
  # Calculates hash code according to all attributes.
147
157
  # @return [Integer] Hash code
148
158
  def hash
149
- [name, namespace].hash
159
+ [repository, name, namespace].hash
150
160
  end
151
161
 
152
162
  # Builds the object from hash