pulp_ansible_client 0.6.2 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -6
  3. data/docs/AnsibleAnsibleRepository.md +6 -2
  4. data/docs/AnsibleAnsibleRepositoryResponse.md +5 -1
  5. data/docs/AnsibleCollectionRemote.md +4 -0
  6. data/docs/AnsibleCollectionRemoteResponse.md +4 -0
  7. data/docs/AnsibleCollectionVersion.md +7 -1
  8. data/docs/AnsibleCollectionVersionResponse.md +10 -4
  9. data/docs/{RepositorySyncURL.md → AnsibleRepositorySyncURL.md} +5 -3
  10. data/docs/AnsibleRoleRemote.md +5 -1
  11. data/docs/AnsibleRoleRemoteResponse.md +5 -1
  12. data/docs/AnsibleRoleResponse.md +3 -3
  13. data/docs/CollectionResponse.md +1 -1
  14. data/docs/CollectionVersionResponse.md +6 -0
  15. data/docs/DistributionsAnsibleApi.md +8 -0
  16. data/docs/PatchedansibleAnsibleRepository.md +6 -2
  17. data/docs/PatchedansibleCollectionRemote.md +4 -0
  18. data/docs/PatchedansibleRoleRemote.md +5 -1
  19. data/docs/PulpAnsibleGalaxyApiCollectionsApi.md +6 -4
  20. data/docs/PulpAnsibleGalaxyApiV3AllApi.md +138 -0
  21. data/docs/PulpAnsibleGalaxyV3Api.md +61 -0
  22. data/docs/RemotesCollectionApi.md +8 -0
  23. data/docs/RemotesRoleApi.md +8 -0
  24. data/docs/{PatchedCollection.md → RepoMetadataResponse.md} +3 -3
  25. data/docs/RepositoriesAnsibleApi.md +12 -4
  26. data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +12 -0
  27. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_collections_api.rb +12 -9
  28. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_all_api.rb +190 -0
  29. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_v3_api.rb +88 -0
  30. data/lib/pulp_ansible_client/api/remotes_collection_api.rb +12 -0
  31. data/lib/pulp_ansible_client/api/remotes_role_api.rb +12 -0
  32. data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +21 -9
  33. data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +25 -5
  34. data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +25 -5
  35. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +21 -1
  36. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +21 -1
  37. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +60 -4
  38. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +69 -13
  39. data/lib/pulp_ansible_client/models/{repository_sync_url.rb → ansible_repository_sync_url.rb} +20 -8
  40. data/lib/pulp_ansible_client/models/ansible_role_remote.rb +25 -5
  41. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +25 -5
  42. data/lib/pulp_ansible_client/models/ansible_role_response.rb +10 -10
  43. data/lib/pulp_ansible_client/models/collection_response.rb +0 -5
  44. data/lib/pulp_ansible_client/models/collection_version_response.rb +56 -1
  45. data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +25 -5
  46. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +21 -1
  47. data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +25 -5
  48. data/lib/pulp_ansible_client/models/{patched_collection.rb → repo_metadata_response.rb} +16 -11
  49. data/lib/pulp_ansible_client/version.rb +1 -1
  50. data/lib/pulp_ansible_client.rb +4 -2
  51. data/spec/api/distributions_ansible_api_spec.rb +4 -0
  52. data/spec/api/pulp_ansible_galaxy_api_collections_api_spec.rb +2 -1
  53. data/spec/api/pulp_ansible_galaxy_api_v3_all_api_spec.rb +73 -0
  54. data/spec/api/pulp_ansible_galaxy_v3_api_spec.rb +48 -0
  55. data/spec/api/remotes_collection_api_spec.rb +4 -0
  56. data/spec/api/remotes_role_api_spec.rb +4 -0
  57. data/spec/api/repositories_ansible_api_spec.rb +5 -1
  58. data/spec/models/ansible_ansible_repository_response_spec.rb +12 -0
  59. data/spec/models/ansible_ansible_repository_spec.rb +12 -0
  60. data/spec/models/ansible_collection_remote_response_spec.rb +12 -0
  61. data/spec/models/ansible_collection_remote_spec.rb +12 -0
  62. data/spec/models/ansible_collection_version_response_spec.rb +21 -3
  63. data/spec/models/ansible_collection_version_spec.rb +18 -0
  64. data/spec/models/{repository_sync_url_spec.rb → ansible_repository_sync_url_spec.rb} +12 -6
  65. data/spec/models/ansible_role_remote_response_spec.rb +12 -0
  66. data/spec/models/ansible_role_remote_spec.rb +12 -0
  67. data/spec/models/ansible_role_response_spec.rb +3 -3
  68. data/spec/models/collection_version_response_spec.rb +18 -0
  69. data/spec/models/patchedansible_ansible_repository_spec.rb +12 -0
  70. data/spec/models/patchedansible_collection_remote_spec.rb +12 -0
  71. data/spec/models/patchedansible_role_remote_spec.rb +12 -0
  72. data/spec/models/{patched_collection_spec.rb → repo_metadata_response_spec.rb} +7 -7
  73. metadata +18 -10
@@ -0,0 +1,138 @@
1
+ # PulpAnsibleClient::PulpAnsibleGalaxyApiV3AllApi
2
+
3
+ All URIs are relative to *http://pulp*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**list**](PulpAnsibleGalaxyApiV3AllApi.md#list) | **GET** /pulp_ansible/galaxy/{path}/api/v3/collection_versions/all/ |
8
+ [**list_0**](PulpAnsibleGalaxyApiV3AllApi.md#list_0) | **GET** /pulp_ansible/galaxy/{path}/api/v3/collections/all/ |
9
+
10
+
11
+
12
+ ## list
13
+
14
+ > Array<CollectionVersionResponse> list(path, opts)
15
+
16
+
17
+
18
+ Returns paginated CollectionVersions list.
19
+
20
+ ### Example
21
+
22
+ ```ruby
23
+ # load the gem
24
+ require 'pulp_ansible_client'
25
+
26
+ api_instance = PulpAnsibleClient::PulpAnsibleGalaxyApiV3AllApi.new
27
+ path = 'path_example' # String |
28
+ opts = {
29
+ is_highest: 'is_highest_example', # String | is_highest
30
+ name: 'name_example', # String | name
31
+ namespace: 'namespace_example', # String | namespace
32
+ q: 'q_example', # String | q
33
+ repository_version: 'repository_version_example', # String | repository_version
34
+ repository_version_added: 'repository_version_added_example', # String | repository_version_added
35
+ repository_version_removed: 'repository_version_removed_example', # String | repository_version_removed
36
+ tags: 'tags_example', # String | tags
37
+ version: 'version_example', # String | version
38
+ fields: 'fields_example', # String | A list of fields to include in the response.
39
+ exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
40
+ }
41
+
42
+ begin
43
+ result = api_instance.list(path, opts)
44
+ p result
45
+ rescue PulpAnsibleClient::ApiError => e
46
+ puts "Exception when calling PulpAnsibleGalaxyApiV3AllApi->list: #{e}"
47
+ end
48
+ ```
49
+
50
+ ### Parameters
51
+
52
+
53
+ Name | Type | Description | Notes
54
+ ------------- | ------------- | ------------- | -------------
55
+ **path** | **String**| |
56
+ **is_highest** | **String**| is_highest | [optional]
57
+ **name** | **String**| name | [optional]
58
+ **namespace** | **String**| namespace | [optional]
59
+ **q** | **String**| q | [optional]
60
+ **repository_version** | **String**| repository_version | [optional]
61
+ **repository_version_added** | **String**| repository_version_added | [optional]
62
+ **repository_version_removed** | **String**| repository_version_removed | [optional]
63
+ **tags** | **String**| tags | [optional]
64
+ **version** | **String**| version | [optional]
65
+ **fields** | **String**| A list of fields to include in the response. | [optional]
66
+ **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
67
+
68
+ ### Return type
69
+
70
+ [**Array<CollectionVersionResponse>**](CollectionVersionResponse.md)
71
+
72
+ ### Authorization
73
+
74
+ No authorization required
75
+
76
+ ### HTTP request headers
77
+
78
+ - **Content-Type**: Not defined
79
+ - **Accept**: application/json
80
+
81
+
82
+ ## list_0
83
+
84
+ > Array<CollectionResponse> list_0(path, opts)
85
+
86
+
87
+
88
+ Unpaginated ViewSet for Collections.
89
+
90
+ ### Example
91
+
92
+ ```ruby
93
+ # load the gem
94
+ require 'pulp_ansible_client'
95
+
96
+ api_instance = PulpAnsibleClient::PulpAnsibleGalaxyApiV3AllApi.new
97
+ path = 'path_example' # String |
98
+ opts = {
99
+ deprecated: 'deprecated_example', # String | deprecated
100
+ name: 'name_example', # String | name
101
+ namespace: 'namespace_example', # String | namespace
102
+ fields: 'fields_example', # String | A list of fields to include in the response.
103
+ exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
104
+ }
105
+
106
+ begin
107
+ result = api_instance.list_0(path, opts)
108
+ p result
109
+ rescue PulpAnsibleClient::ApiError => e
110
+ puts "Exception when calling PulpAnsibleGalaxyApiV3AllApi->list_0: #{e}"
111
+ end
112
+ ```
113
+
114
+ ### Parameters
115
+
116
+
117
+ Name | Type | Description | Notes
118
+ ------------- | ------------- | ------------- | -------------
119
+ **path** | **String**| |
120
+ **deprecated** | **String**| deprecated | [optional]
121
+ **name** | **String**| name | [optional]
122
+ **namespace** | **String**| namespace | [optional]
123
+ **fields** | **String**| A list of fields to include in the response. | [optional]
124
+ **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
125
+
126
+ ### Return type
127
+
128
+ [**Array<CollectionResponse>**](CollectionResponse.md)
129
+
130
+ ### Authorization
131
+
132
+ No authorization required
133
+
134
+ ### HTTP request headers
135
+
136
+ - **Content-Type**: Not defined
137
+ - **Accept**: application/json
138
+
@@ -0,0 +1,61 @@
1
+ # PulpAnsibleClient::PulpAnsibleGalaxyV3Api
2
+
3
+ All URIs are relative to *http://pulp*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**read**](PulpAnsibleGalaxyV3Api.md#read) | **GET** /pulp_ansible/galaxy/{path}/api/v3/ |
8
+
9
+
10
+
11
+ ## read
12
+
13
+ > RepoMetadataResponse read(path, opts)
14
+
15
+
16
+
17
+ ViewSet for Repository Metadata.
18
+
19
+ ### Example
20
+
21
+ ```ruby
22
+ # load the gem
23
+ require 'pulp_ansible_client'
24
+
25
+ api_instance = PulpAnsibleClient::PulpAnsibleGalaxyV3Api.new
26
+ path = 'path_example' # String |
27
+ opts = {
28
+ fields: 'fields_example', # String | A list of fields to include in the response.
29
+ exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
30
+ }
31
+
32
+ begin
33
+ result = api_instance.read(path, opts)
34
+ p result
35
+ rescue PulpAnsibleClient::ApiError => e
36
+ puts "Exception when calling PulpAnsibleGalaxyV3Api->read: #{e}"
37
+ end
38
+ ```
39
+
40
+ ### Parameters
41
+
42
+
43
+ Name | Type | Description | Notes
44
+ ------------- | ------------- | ------------- | -------------
45
+ **path** | **String**| |
46
+ **fields** | **String**| A list of fields to include in the response. | [optional]
47
+ **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
48
+
49
+ ### Return type
50
+
51
+ [**RepoMetadataResponse**](RepoMetadataResponse.md)
52
+
53
+ ### Authorization
54
+
55
+ No authorization required
56
+
57
+ ### HTTP request headers
58
+
59
+ - **Content-Type**: Not defined
60
+ - **Accept**: application/json
61
+
@@ -143,9 +143,13 @@ api_instance = PulpAnsibleClient::RemotesCollectionApi.new
143
143
  opts = {
144
144
  limit: 56, # Integer | Number of results to return per page.
145
145
  name: 'name_example', # String | name
146
+ name__contains: 'name__contains_example', # String | name__contains
147
+ name__icontains: 'name__icontains_example', # String | name__icontains
146
148
  name__in: 'name__in_example', # String | name__in
149
+ name__startswith: 'name__startswith_example', # String | name__startswith
147
150
  offset: 56, # Integer | The initial index from which to return the results.
148
151
  ordering: 'ordering_example', # String | Which field to use when ordering the results.
152
+ pulp_label_select: 'pulp_label_select_example', # String | pulp_label_select
149
153
  pulp_last_updated: 'pulp_last_updated_example', # String | pulp_last_updated
150
154
  pulp_last_updated__gt: 'pulp_last_updated__gt_example', # String | pulp_last_updated__gt
151
155
  pulp_last_updated__gte: 'pulp_last_updated__gte_example', # String | pulp_last_updated__gte
@@ -172,9 +176,13 @@ Name | Type | Description | Notes
172
176
  ------------- | ------------- | ------------- | -------------
173
177
  **limit** | **Integer**| Number of results to return per page. | [optional]
174
178
  **name** | **String**| name | [optional]
179
+ **name__contains** | **String**| name__contains | [optional]
180
+ **name__icontains** | **String**| name__icontains | [optional]
175
181
  **name__in** | **String**| name__in | [optional]
182
+ **name__startswith** | **String**| name__startswith | [optional]
176
183
  **offset** | **Integer**| The initial index from which to return the results. | [optional]
177
184
  **ordering** | **String**| Which field to use when ordering the results. | [optional]
185
+ **pulp_label_select** | **String**| pulp_label_select | [optional]
178
186
  **pulp_last_updated** | **String**| pulp_last_updated | [optional]
179
187
  **pulp_last_updated__gt** | **String**| pulp_last_updated__gt | [optional]
180
188
  **pulp_last_updated__gte** | **String**| pulp_last_updated__gte | [optional]
@@ -143,9 +143,13 @@ api_instance = PulpAnsibleClient::RemotesRoleApi.new
143
143
  opts = {
144
144
  limit: 56, # Integer | Number of results to return per page.
145
145
  name: 'name_example', # String | name
146
+ name__contains: 'name__contains_example', # String | name__contains
147
+ name__icontains: 'name__icontains_example', # String | name__icontains
146
148
  name__in: 'name__in_example', # String | name__in
149
+ name__startswith: 'name__startswith_example', # String | name__startswith
147
150
  offset: 56, # Integer | The initial index from which to return the results.
148
151
  ordering: 'ordering_example', # String | Which field to use when ordering the results.
152
+ pulp_label_select: 'pulp_label_select_example', # String | pulp_label_select
149
153
  pulp_last_updated: 'pulp_last_updated_example', # String | pulp_last_updated
150
154
  pulp_last_updated__gt: 'pulp_last_updated__gt_example', # String | pulp_last_updated__gt
151
155
  pulp_last_updated__gte: 'pulp_last_updated__gte_example', # String | pulp_last_updated__gte
@@ -172,9 +176,13 @@ Name | Type | Description | Notes
172
176
  ------------- | ------------- | ------------- | -------------
173
177
  **limit** | **Integer**| Number of results to return per page. | [optional]
174
178
  **name** | **String**| name | [optional]
179
+ **name__contains** | **String**| name__contains | [optional]
180
+ **name__icontains** | **String**| name__icontains | [optional]
175
181
  **name__in** | **String**| name__in | [optional]
182
+ **name__startswith** | **String**| name__startswith | [optional]
176
183
  **offset** | **Integer**| The initial index from which to return the results. | [optional]
177
184
  **ordering** | **String**| Which field to use when ordering the results. | [optional]
185
+ **pulp_label_select** | **String**| pulp_label_select | [optional]
178
186
  **pulp_last_updated** | **String**| pulp_last_updated | [optional]
179
187
  **pulp_last_updated__gt** | **String**| pulp_last_updated__gt | [optional]
180
188
  **pulp_last_updated__gte** | **String**| pulp_last_updated__gte | [optional]
@@ -1,17 +1,17 @@
1
- # PulpAnsibleClient::PatchedCollection
1
+ # PulpAnsibleClient::RepoMetadataResponse
2
2
 
3
3
  ## Properties
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **deprecated** | **Boolean** | | [optional]
7
+ **published** | **DateTime** | |
8
8
 
9
9
  ## Code Sample
10
10
 
11
11
  ```ruby
12
12
  require 'PulpAnsibleClient'
13
13
 
14
- instance = PulpAnsibleClient::PatchedCollection.new(deprecated: null)
14
+ instance = PulpAnsibleClient::RepoMetadataResponse.new(published: null)
15
15
  ```
16
16
 
17
17
 
@@ -145,9 +145,13 @@ api_instance = PulpAnsibleClient::RepositoriesAnsibleApi.new
145
145
  opts = {
146
146
  limit: 56, # Integer | Number of results to return per page.
147
147
  name: 'name_example', # String | name
148
+ name__contains: 'name__contains_example', # String | name__contains
149
+ name__icontains: 'name__icontains_example', # String | name__icontains
148
150
  name__in: 'name__in_example', # String | name__in
151
+ name__startswith: 'name__startswith_example', # String | name__startswith
149
152
  offset: 56, # Integer | The initial index from which to return the results.
150
153
  ordering: 'ordering_example', # String | Which field to use when ordering the results.
154
+ pulp_label_select: 'pulp_label_select_example', # String | pulp_label_select
151
155
  fields: 'fields_example', # String | A list of fields to include in the response.
152
156
  exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
153
157
  }
@@ -168,9 +172,13 @@ Name | Type | Description | Notes
168
172
  ------------- | ------------- | ------------- | -------------
169
173
  **limit** | **Integer**| Number of results to return per page. | [optional]
170
174
  **name** | **String**| name | [optional]
175
+ **name__contains** | **String**| name__contains | [optional]
176
+ **name__icontains** | **String**| name__icontains | [optional]
171
177
  **name__in** | **String**| name__in | [optional]
178
+ **name__startswith** | **String**| name__startswith | [optional]
172
179
  **offset** | **Integer**| The initial index from which to return the results. | [optional]
173
180
  **ordering** | **String**| Which field to use when ordering the results. | [optional]
181
+ **pulp_label_select** | **String**| pulp_label_select | [optional]
174
182
  **fields** | **String**| A list of fields to include in the response. | [optional]
175
183
  **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
176
184
 
@@ -359,7 +367,7 @@ Name | Type | Description | Notes
359
367
 
360
368
  ## sync
361
369
 
362
- > AsyncOperationResponse sync(ansible_ansible_repository_href, repository_sync_url)
370
+ > AsyncOperationResponse sync(ansible_ansible_repository_href, ansible_repository_sync_url)
363
371
 
364
372
 
365
373
 
@@ -379,10 +387,10 @@ end
379
387
 
380
388
  api_instance = PulpAnsibleClient::RepositoriesAnsibleApi.new
381
389
  ansible_ansible_repository_href = 'ansible_ansible_repository_href_example' # String |
382
- repository_sync_url = PulpAnsibleClient::RepositorySyncURL.new # RepositorySyncURL |
390
+ ansible_repository_sync_url = PulpAnsibleClient::AnsibleRepositorySyncURL.new # AnsibleRepositorySyncURL |
383
391
 
384
392
  begin
385
- result = api_instance.sync(ansible_ansible_repository_href, repository_sync_url)
393
+ result = api_instance.sync(ansible_ansible_repository_href, ansible_repository_sync_url)
386
394
  p result
387
395
  rescue PulpAnsibleClient::ApiError => e
388
396
  puts "Exception when calling RepositoriesAnsibleApi->sync: #{e}"
@@ -395,7 +403,7 @@ end
395
403
  Name | Type | Description | Notes
396
404
  ------------- | ------------- | ------------- | -------------
397
405
  **ansible_ansible_repository_href** | **String**| |
398
- **repository_sync_url** | [**RepositorySyncURL**](RepositorySyncURL.md)| |
406
+ **ansible_repository_sync_url** | [**AnsibleRepositorySyncURL**](AnsibleRepositorySyncURL.md)| |
399
407
 
400
408
  ### Return type
401
409
 
@@ -154,9 +154,13 @@ module PulpAnsibleClient
154
154
  # @option opts [String] :base_path__in base_path__in
155
155
  # @option opts [Integer] :limit Number of results to return per page.
156
156
  # @option opts [String] :name name
157
+ # @option opts [String] :name__contains name__contains
158
+ # @option opts [String] :name__icontains name__icontains
157
159
  # @option opts [String] :name__in name__in
160
+ # @option opts [String] :name__startswith name__startswith
158
161
  # @option opts [Integer] :offset The initial index from which to return the results.
159
162
  # @option opts [String] :ordering Which field to use when ordering the results.
163
+ # @option opts [String] :pulp_label_select pulp_label_select
160
164
  # @option opts [String] :fields A list of fields to include in the response.
161
165
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
162
166
  # @return [PaginatedansibleAnsibleDistributionResponseList]
@@ -174,9 +178,13 @@ module PulpAnsibleClient
174
178
  # @option opts [String] :base_path__in base_path__in
175
179
  # @option opts [Integer] :limit Number of results to return per page.
176
180
  # @option opts [String] :name name
181
+ # @option opts [String] :name__contains name__contains
182
+ # @option opts [String] :name__icontains name__icontains
177
183
  # @option opts [String] :name__in name__in
184
+ # @option opts [String] :name__startswith name__startswith
178
185
  # @option opts [Integer] :offset The initial index from which to return the results.
179
186
  # @option opts [String] :ordering Which field to use when ordering the results.
187
+ # @option opts [String] :pulp_label_select pulp_label_select
180
188
  # @option opts [String] :fields A list of fields to include in the response.
181
189
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
182
190
  # @return [Array<(PaginatedansibleAnsibleDistributionResponseList, Integer, Hash)>] PaginatedansibleAnsibleDistributionResponseList data, response status code and response headers
@@ -195,9 +203,13 @@ module PulpAnsibleClient
195
203
  query_params[:'base_path__in'] = opts[:'base_path__in'] if !opts[:'base_path__in'].nil?
196
204
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
197
205
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
206
+ query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
207
+ query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
198
208
  query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
209
+ query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
199
210
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
200
211
  query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
212
+ query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
201
213
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
202
214
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
203
215
 
@@ -22,6 +22,7 @@ module PulpAnsibleClient
22
22
  # ViewSet for Collections.
23
23
  # @param path [String]
24
24
  # @param [Hash] opts the optional parameters
25
+ # @option opts [String] :deprecated deprecated
25
26
  # @option opts [Integer] :limit Number of results to return per page.
26
27
  # @option opts [String] :name name
27
28
  # @option opts [String] :namespace namespace
@@ -37,6 +38,7 @@ module PulpAnsibleClient
37
38
  # ViewSet for Collections.
38
39
  # @param path [String]
39
40
  # @param [Hash] opts the optional parameters
41
+ # @option opts [String] :deprecated deprecated
40
42
  # @option opts [Integer] :limit Number of results to return per page.
41
43
  # @option opts [String] :name name
42
44
  # @option opts [String] :namespace namespace
@@ -57,6 +59,7 @@ module PulpAnsibleClient
57
59
 
58
60
  # query parameters
59
61
  query_params = opts[:query_params] || {}
62
+ query_params[:'deprecated'] = opts[:'deprecated'] if !opts[:'deprecated'].nil?
60
63
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
61
64
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
62
65
  query_params[:'namespace'] = opts[:'namespace'] if !opts[:'namespace'].nil?
@@ -179,11 +182,11 @@ module PulpAnsibleClient
179
182
  # @param name [String]
180
183
  # @param namespace [String]
181
184
  # @param path [String]
182
- # @param patched_collection [PatchedCollection]
185
+ # @param body [Object]
183
186
  # @param [Hash] opts the optional parameters
184
187
  # @return [CollectionResponse]
185
- def update(name, namespace, path, patched_collection, opts = {})
186
- data, _status_code, _headers = update_with_http_info(name, namespace, path, patched_collection, opts)
188
+ def update(name, namespace, path, body, opts = {})
189
+ data, _status_code, _headers = update_with_http_info(name, namespace, path, body, opts)
187
190
  data
188
191
  end
189
192
 
@@ -191,10 +194,10 @@ module PulpAnsibleClient
191
194
  # @param name [String]
192
195
  # @param namespace [String]
193
196
  # @param path [String]
194
- # @param patched_collection [PatchedCollection]
197
+ # @param body [Object]
195
198
  # @param [Hash] opts the optional parameters
196
199
  # @return [Array<(CollectionResponse, Integer, Hash)>] CollectionResponse data, response status code and response headers
197
- def update_with_http_info(name, namespace, path, patched_collection, opts = {})
200
+ def update_with_http_info(name, namespace, path, body, opts = {})
198
201
  if @api_client.config.debugging
199
202
  @api_client.config.logger.debug 'Calling API: PulpAnsibleGalaxyApiCollectionsApi.update ...'
200
203
  end
@@ -210,9 +213,9 @@ module PulpAnsibleClient
210
213
  if @api_client.config.client_side_validation && path.nil?
211
214
  fail ArgumentError, "Missing the required parameter 'path' when calling PulpAnsibleGalaxyApiCollectionsApi.update"
212
215
  end
213
- # verify the required parameter 'patched_collection' is set
214
- if @api_client.config.client_side_validation && patched_collection.nil?
215
- fail ArgumentError, "Missing the required parameter 'patched_collection' when calling PulpAnsibleGalaxyApiCollectionsApi.update"
216
+ # verify the required parameter 'body' is set
217
+ if @api_client.config.client_side_validation && body.nil?
218
+ fail ArgumentError, "Missing the required parameter 'body' when calling PulpAnsibleGalaxyApiCollectionsApi.update"
216
219
  end
217
220
  # resource path
218
221
  local_var_path = '/pulp_ansible/galaxy/{path}/api/v3/collections/{namespace}/{name}/'.sub('{' + 'name' + '}', CGI.escape(name.to_s).gsub('%2F', '/')).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s).gsub('%2F', '/')).sub('{' + 'path' + '}', CGI.escape(path.to_s).gsub('%2F', '/'))
@@ -231,7 +234,7 @@ module PulpAnsibleClient
231
234
  form_params = opts[:form_params] || {}
232
235
 
233
236
  # http body (model)
234
- post_body = opts[:body] || @api_client.object_to_http_body(patched_collection)
237
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
235
238
 
236
239
  # return_type
237
240
  return_type = opts[:return_type] || 'CollectionResponse'
@@ -0,0 +1,190 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.2.3
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module PulpAnsibleClient
16
+ class PulpAnsibleGalaxyApiV3AllApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Returns paginated CollectionVersions list.
23
+ # @param path [String]
24
+ # @param [Hash] opts the optional parameters
25
+ # @option opts [String] :is_highest is_highest
26
+ # @option opts [String] :name name
27
+ # @option opts [String] :namespace namespace
28
+ # @option opts [String] :q q
29
+ # @option opts [String] :repository_version repository_version
30
+ # @option opts [String] :repository_version_added repository_version_added
31
+ # @option opts [String] :repository_version_removed repository_version_removed
32
+ # @option opts [String] :tags tags
33
+ # @option opts [String] :version version
34
+ # @option opts [String] :fields A list of fields to include in the response.
35
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
36
+ # @return [Array<CollectionVersionResponse>]
37
+ def list(path, opts = {})
38
+ data, _status_code, _headers = list_with_http_info(path, opts)
39
+ data
40
+ end
41
+
42
+ # Returns paginated CollectionVersions list.
43
+ # @param path [String]
44
+ # @param [Hash] opts the optional parameters
45
+ # @option opts [String] :is_highest is_highest
46
+ # @option opts [String] :name name
47
+ # @option opts [String] :namespace namespace
48
+ # @option opts [String] :q q
49
+ # @option opts [String] :repository_version repository_version
50
+ # @option opts [String] :repository_version_added repository_version_added
51
+ # @option opts [String] :repository_version_removed repository_version_removed
52
+ # @option opts [String] :tags tags
53
+ # @option opts [String] :version version
54
+ # @option opts [String] :fields A list of fields to include in the response.
55
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
56
+ # @return [Array<(Array<CollectionVersionResponse>, Integer, Hash)>] Array<CollectionVersionResponse> data, response status code and response headers
57
+ def list_with_http_info(path, opts = {})
58
+ if @api_client.config.debugging
59
+ @api_client.config.logger.debug 'Calling API: PulpAnsibleGalaxyApiV3AllApi.list ...'
60
+ end
61
+ # verify the required parameter 'path' is set
62
+ if @api_client.config.client_side_validation && path.nil?
63
+ fail ArgumentError, "Missing the required parameter 'path' when calling PulpAnsibleGalaxyApiV3AllApi.list"
64
+ end
65
+ # resource path
66
+ local_var_path = '/pulp_ansible/galaxy/{path}/api/v3/collection_versions/all/'.sub('{' + 'path' + '}', CGI.escape(path.to_s).gsub('%2F', '/'))
67
+
68
+ # query parameters
69
+ query_params = opts[:query_params] || {}
70
+ query_params[:'is_highest'] = opts[:'is_highest'] if !opts[:'is_highest'].nil?
71
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
72
+ query_params[:'namespace'] = opts[:'namespace'] if !opts[:'namespace'].nil?
73
+ query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
74
+ query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
75
+ query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
76
+ query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
77
+ query_params[:'tags'] = opts[:'tags'] if !opts[:'tags'].nil?
78
+ query_params[:'version'] = opts[:'version'] if !opts[:'version'].nil?
79
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
80
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
81
+
82
+ # header parameters
83
+ header_params = opts[:header_params] || {}
84
+ # HTTP header 'Accept' (if needed)
85
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
86
+
87
+ # form parameters
88
+ form_params = opts[:form_params] || {}
89
+
90
+ # http body (model)
91
+ post_body = opts[:body]
92
+
93
+ # return_type
94
+ return_type = opts[:return_type] || 'Array<CollectionVersionResponse>'
95
+
96
+ # auth_names
97
+ auth_names = opts[:auth_names] || []
98
+
99
+ new_options = opts.merge(
100
+ :header_params => header_params,
101
+ :query_params => query_params,
102
+ :form_params => form_params,
103
+ :body => post_body,
104
+ :auth_names => auth_names,
105
+ :return_type => return_type
106
+ )
107
+
108
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
109
+ if @api_client.config.debugging
110
+ @api_client.config.logger.debug "API called: PulpAnsibleGalaxyApiV3AllApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
111
+ end
112
+ return data, status_code, headers
113
+ end
114
+
115
+ # Unpaginated ViewSet for Collections.
116
+ # @param path [String]
117
+ # @param [Hash] opts the optional parameters
118
+ # @option opts [String] :deprecated deprecated
119
+ # @option opts [String] :name name
120
+ # @option opts [String] :namespace namespace
121
+ # @option opts [String] :fields A list of fields to include in the response.
122
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
123
+ # @return [Array<CollectionResponse>]
124
+ def list_0(path, opts = {})
125
+ data, _status_code, _headers = list_0_with_http_info(path, opts)
126
+ data
127
+ end
128
+
129
+ # Unpaginated ViewSet for Collections.
130
+ # @param path [String]
131
+ # @param [Hash] opts the optional parameters
132
+ # @option opts [String] :deprecated deprecated
133
+ # @option opts [String] :name name
134
+ # @option opts [String] :namespace namespace
135
+ # @option opts [String] :fields A list of fields to include in the response.
136
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
137
+ # @return [Array<(Array<CollectionResponse>, Integer, Hash)>] Array<CollectionResponse> data, response status code and response headers
138
+ def list_0_with_http_info(path, opts = {})
139
+ if @api_client.config.debugging
140
+ @api_client.config.logger.debug 'Calling API: PulpAnsibleGalaxyApiV3AllApi.list_0 ...'
141
+ end
142
+ # verify the required parameter 'path' is set
143
+ if @api_client.config.client_side_validation && path.nil?
144
+ fail ArgumentError, "Missing the required parameter 'path' when calling PulpAnsibleGalaxyApiV3AllApi.list_0"
145
+ end
146
+ # resource path
147
+ local_var_path = '/pulp_ansible/galaxy/{path}/api/v3/collections/all/'.sub('{' + 'path' + '}', CGI.escape(path.to_s).gsub('%2F', '/'))
148
+
149
+ # query parameters
150
+ query_params = opts[:query_params] || {}
151
+ query_params[:'deprecated'] = opts[:'deprecated'] if !opts[:'deprecated'].nil?
152
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
153
+ query_params[:'namespace'] = opts[:'namespace'] if !opts[:'namespace'].nil?
154
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
155
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
156
+
157
+ # header parameters
158
+ header_params = opts[:header_params] || {}
159
+ # HTTP header 'Accept' (if needed)
160
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
161
+
162
+ # form parameters
163
+ form_params = opts[:form_params] || {}
164
+
165
+ # http body (model)
166
+ post_body = opts[:body]
167
+
168
+ # return_type
169
+ return_type = opts[:return_type] || 'Array<CollectionResponse>'
170
+
171
+ # auth_names
172
+ auth_names = opts[:auth_names] || []
173
+
174
+ new_options = opts.merge(
175
+ :header_params => header_params,
176
+ :query_params => query_params,
177
+ :form_params => form_params,
178
+ :body => post_body,
179
+ :auth_names => auth_names,
180
+ :return_type => return_type
181
+ )
182
+
183
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
184
+ if @api_client.config.debugging
185
+ @api_client.config.logger.debug "API called: PulpAnsibleGalaxyApiV3AllApi#list_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
186
+ end
187
+ return data, status_code, headers
188
+ end
189
+ end
190
+ end