pulp_ansible_client 0.14.2 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +10 -4
  3. data/docs/AnsibleAnsibleRepository.md +2 -2
  4. data/docs/AnsibleAnsibleRepositoryResponse.md +2 -2
  5. data/docs/AnsibleCollectionRemoteResponse.md +0 -2
  6. data/docs/AnsibleCollectionVersion.md +3 -3
  7. data/docs/AnsibleCollectionVersionResponse.md +3 -3
  8. data/docs/AnsibleGitRemote.md +26 -26
  9. data/docs/AnsibleGitRemoteResponse.md +22 -22
  10. data/docs/AnsibleRepositoryRebuild.md +21 -0
  11. data/docs/AnsibleRoleResponse.md +3 -3
  12. data/docs/ClientConfigurationResponse.md +17 -0
  13. data/docs/ContentCollectionVersionsApi.md +3 -3
  14. data/docs/PatchedansibleAnsibleRepository.md +2 -2
  15. data/docs/PatchedansibleGitRemote.md +26 -26
  16. data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +67 -0
  17. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +57 -0
  18. data/docs/RepositoriesAnsibleApi.md +55 -0
  19. data/docs/RepositoriesAnsibleVersionsApi.md +55 -0
  20. data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +1 -1
  21. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +4 -4
  22. data/lib/pulp_ansible_client/api/content_roles_api.rb +1 -1
  23. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +1 -1
  24. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_client_configuration_api.rb +88 -0
  25. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +1 -1
  26. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +1 -1
  27. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_client_configuration_api.rb +76 -0
  28. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +1 -1
  29. data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +69 -1
  30. data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +69 -1
  31. data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +24 -10
  32. data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +9 -10
  33. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +0 -2
  34. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +1 -29
  35. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +11 -11
  36. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +11 -11
  37. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +224 -224
  38. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +130 -130
  39. data/lib/pulp_ansible_client/models/ansible_repository_rebuild.rb +273 -0
  40. data/lib/pulp_ansible_client/models/ansible_role_response.rb +11 -11
  41. data/lib/pulp_ansible_client/models/client_configuration_response.rb +208 -0
  42. data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +24 -10
  43. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +0 -2
  44. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +213 -213
  45. data/lib/pulp_ansible_client/version.rb +1 -1
  46. data/lib/pulp_ansible_client.rb +4 -0
  47. data/spec/api/content_collection_versions_api_spec.rb +1 -1
  48. data/spec/api/pulp_ansible_api_v3_plugin_ansible_client_configuration_api_spec.rb +48 -0
  49. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_client_configuration_api_spec.rb +45 -0
  50. data/spec/api/repositories_ansible_api_spec.rb +12 -0
  51. data/spec/api/repositories_ansible_versions_api_spec.rb +12 -0
  52. data/spec/models/ansible_ansible_repository_response_spec.rb +1 -1
  53. data/spec/models/ansible_ansible_repository_spec.rb +1 -1
  54. data/spec/models/ansible_collection_remote_response_spec.rb +0 -6
  55. data/spec/models/ansible_collection_version_response_spec.rb +3 -3
  56. data/spec/models/ansible_collection_version_spec.rb +3 -3
  57. data/spec/models/ansible_git_remote_response_spec.rb +16 -16
  58. data/spec/models/ansible_git_remote_spec.rb +20 -20
  59. data/spec/models/ansible_repository_rebuild_spec.rb +53 -0
  60. data/spec/models/ansible_role_response_spec.rb +3 -3
  61. data/spec/models/client_configuration_response_spec.rb +41 -0
  62. data/spec/models/patchedansible_ansible_repository_spec.rb +1 -1
  63. data/spec/models/patchedansible_git_remote_spec.rb +20 -20
  64. metadata +18 -2
@@ -0,0 +1,57 @@
1
+ # PulpAnsibleClient::PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi
2
+
3
+ All URIs are relative to *https://pulp*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**get**](PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md#get) | **GET** /pulp_ansible/galaxy/default/api/v3/plugin/ansible/client-configuration/ |
8
+
9
+
10
+
11
+ ## get
12
+
13
+ > ClientConfigurationResponse get
14
+
15
+
16
+
17
+ Get the client configs.
18
+
19
+ ### Example
20
+
21
+ ```ruby
22
+ # load the gem
23
+ require 'pulp_ansible_client'
24
+ # setup authorization
25
+ PulpAnsibleClient.configure do |config|
26
+ # Configure HTTP basic authorization: basicAuth
27
+ config.username = 'YOUR USERNAME'
28
+ config.password = 'YOUR PASSWORD'
29
+ end
30
+
31
+ api_instance = PulpAnsibleClient::PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.new
32
+
33
+ begin
34
+ result = api_instance.get
35
+ p result
36
+ rescue PulpAnsibleClient::ApiError => e
37
+ puts "Exception when calling PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi->get: #{e}"
38
+ end
39
+ ```
40
+
41
+ ### Parameters
42
+
43
+ This endpoint does not need any parameter.
44
+
45
+ ### Return type
46
+
47
+ [**ClientConfigurationResponse**](ClientConfigurationResponse.md)
48
+
49
+ ### Authorization
50
+
51
+ [basicAuth](../README.md#basicAuth)
52
+
53
+ ### HTTP request headers
54
+
55
+ - **Content-Type**: Not defined
56
+ - **Accept**: application/json
57
+
@@ -10,6 +10,7 @@ Method | HTTP request | Description
10
10
  [**modify**](RepositoriesAnsibleApi.md#modify) | **POST** {ansible_ansible_repository_href}modify/ | Modify Repository Content
11
11
  [**partial_update**](RepositoriesAnsibleApi.md#partial_update) | **PATCH** {ansible_ansible_repository_href} | Update an ansible repository
12
12
  [**read**](RepositoriesAnsibleApi.md#read) | **GET** {ansible_ansible_repository_href} | Inspect an ansible repository
13
+ [**rebuild_metadata**](RepositoriesAnsibleApi.md#rebuild_metadata) | **POST** {ansible_ansible_repository_href}rebuild_metadata/ |
13
14
  [**sign**](RepositoriesAnsibleApi.md#sign) | **POST** {ansible_ansible_repository_href}sign/ |
14
15
  [**sync**](RepositoriesAnsibleApi.md#sync) | **POST** {ansible_ansible_repository_href}sync/ |
15
16
  [**update**](RepositoriesAnsibleApi.md#update) | **PUT** {ansible_ansible_repository_href} | Update an ansible repository
@@ -368,6 +369,60 @@ Name | Type | Description | Notes
368
369
  - **Accept**: application/json
369
370
 
370
371
 
372
+ ## rebuild_metadata
373
+
374
+ > AsyncOperationResponse rebuild_metadata(ansible_ansible_repository_href, ansible_repository_rebuild)
375
+
376
+
377
+
378
+ Trigger an asynchronous task to rebuild Ansible content meta.
379
+
380
+ ### Example
381
+
382
+ ```ruby
383
+ # load the gem
384
+ require 'pulp_ansible_client'
385
+ # setup authorization
386
+ PulpAnsibleClient.configure do |config|
387
+ # Configure HTTP basic authorization: basicAuth
388
+ config.username = 'YOUR USERNAME'
389
+ config.password = 'YOUR PASSWORD'
390
+ end
391
+
392
+ api_instance = PulpAnsibleClient::RepositoriesAnsibleApi.new
393
+ ansible_ansible_repository_href = 'ansible_ansible_repository_href_example' # String |
394
+ ansible_repository_rebuild = PulpAnsibleClient::AnsibleRepositoryRebuild.new # AnsibleRepositoryRebuild |
395
+
396
+ begin
397
+ result = api_instance.rebuild_metadata(ansible_ansible_repository_href, ansible_repository_rebuild)
398
+ p result
399
+ rescue PulpAnsibleClient::ApiError => e
400
+ puts "Exception when calling RepositoriesAnsibleApi->rebuild_metadata: #{e}"
401
+ end
402
+ ```
403
+
404
+ ### Parameters
405
+
406
+
407
+ Name | Type | Description | Notes
408
+ ------------- | ------------- | ------------- | -------------
409
+ **ansible_ansible_repository_href** | **String**| |
410
+ **ansible_repository_rebuild** | [**AnsibleRepositoryRebuild**](AnsibleRepositoryRebuild.md)| |
411
+
412
+ ### Return type
413
+
414
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
415
+
416
+ ### Authorization
417
+
418
+ [basicAuth](../README.md#basicAuth)
419
+
420
+ ### HTTP request headers
421
+
422
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
423
+ - **Accept**: application/json
424
+
425
+
371
426
  ## sign
372
427
 
373
428
  > AsyncOperationResponse sign(ansible_ansible_repository_href, ansible_repository_signature)
@@ -7,6 +7,7 @@ Method | HTTP request | Description
7
7
  [**delete**](RepositoriesAnsibleVersionsApi.md#delete) | **DELETE** {ansible_ansible_repository_version_href} | Delete a repository version
8
8
  [**list**](RepositoriesAnsibleVersionsApi.md#list) | **GET** {ansible_ansible_repository_href}versions/ | List repository versions
9
9
  [**read**](RepositoriesAnsibleVersionsApi.md#read) | **GET** {ansible_ansible_repository_version_href} | Inspect a repository version
10
+ [**rebuild_metadata**](RepositoriesAnsibleVersionsApi.md#rebuild_metadata) | **POST** {ansible_ansible_repository_version_href}rebuild_metadata/ |
10
11
  [**repair**](RepositoriesAnsibleVersionsApi.md#repair) | **POST** {ansible_ansible_repository_version_href}repair/ |
11
12
 
12
13
 
@@ -216,6 +217,60 @@ Name | Type | Description | Notes
216
217
  - **Accept**: application/json
217
218
 
218
219
 
220
+ ## rebuild_metadata
221
+
222
+ > AsyncOperationResponse rebuild_metadata(ansible_ansible_repository_version_href, ansible_repository_rebuild)
223
+
224
+
225
+
226
+ Trigger an asynchronous task to rebuild Ansible content meta.
227
+
228
+ ### Example
229
+
230
+ ```ruby
231
+ # load the gem
232
+ require 'pulp_ansible_client'
233
+ # setup authorization
234
+ PulpAnsibleClient.configure do |config|
235
+ # Configure HTTP basic authorization: basicAuth
236
+ config.username = 'YOUR USERNAME'
237
+ config.password = 'YOUR PASSWORD'
238
+ end
239
+
240
+ api_instance = PulpAnsibleClient::RepositoriesAnsibleVersionsApi.new
241
+ ansible_ansible_repository_version_href = 'ansible_ansible_repository_version_href_example' # String |
242
+ ansible_repository_rebuild = PulpAnsibleClient::AnsibleRepositoryRebuild.new # AnsibleRepositoryRebuild |
243
+
244
+ begin
245
+ result = api_instance.rebuild_metadata(ansible_ansible_repository_version_href, ansible_repository_rebuild)
246
+ p result
247
+ rescue PulpAnsibleClient::ApiError => e
248
+ puts "Exception when calling RepositoriesAnsibleVersionsApi->rebuild_metadata: #{e}"
249
+ end
250
+ ```
251
+
252
+ ### Parameters
253
+
254
+
255
+ Name | Type | Description | Notes
256
+ ------------- | ------------- | ------------- | -------------
257
+ **ansible_ansible_repository_version_href** | **String**| |
258
+ **ansible_repository_rebuild** | [**AnsibleRepositoryRebuild**](AnsibleRepositoryRebuild.md)| |
259
+
260
+ ### Return type
261
+
262
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
263
+
264
+ ### Authorization
265
+
266
+ [basicAuth](../README.md#basicAuth)
267
+
268
+ ### HTTP request headers
269
+
270
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
271
+ - **Accept**: application/json
272
+
273
+
219
274
  ## repair
220
275
 
221
276
  > AsyncOperationResponse repair(ansible_ansible_repository_version_href, repair)
@@ -135,7 +135,7 @@ module PulpAnsibleClient
135
135
  if @api_client.config.debugging
136
136
  @api_client.config.logger.debug 'Calling API: ContentCollectionSignaturesApi.list ...'
137
137
  end
138
- allowable_values = ["-_artifacts", "-content_ptr", "-contentartifact", "-data", "-digest", "-group_roles", "-pk", "-pubkey_fingerprint", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-repositories", "-signed_collection", "-signing_service", "-timestamp_of_interest", "-upstream_id", "-user_roles", "-version_memberships", "_artifacts", "content_ptr", "contentartifact", "data", "digest", "group_roles", "pk", "pubkey_fingerprint", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "repositories", "signed_collection", "signing_service", "timestamp_of_interest", "upstream_id", "user_roles", "version_memberships"]
138
+ allowable_values = ["-_artifacts", "-content_ptr", "-contentartifact", "-data", "-digest", "-download_logs", "-group_roles", "-pk", "-pubkey_fingerprint", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-repositories", "-signed_collection", "-signing_service", "-timestamp_of_interest", "-upstream_id", "-user_roles", "-version_memberships", "_artifacts", "content_ptr", "contentartifact", "data", "digest", "download_logs", "group_roles", "pk", "pubkey_fingerprint", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "repositories", "signed_collection", "signing_service", "timestamp_of_interest", "upstream_id", "user_roles", "version_memberships"]
139
139
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
140
140
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
141
141
  end
@@ -25,9 +25,9 @@ module PulpAnsibleClient
25
25
  # @param namespace [String] The namespace of the collection.
26
26
  # @param version [String] The version of the collection.
27
27
  # @param [Hash] opts the optional parameters
28
+ # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
28
29
  # @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
29
30
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
30
- # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
31
31
  # @return [AsyncOperationResponse]
32
32
  def create(name, namespace, version, opts = {})
33
33
  data, _status_code, _headers = create_with_http_info(name, namespace, version, opts)
@@ -40,9 +40,9 @@ module PulpAnsibleClient
40
40
  # @param namespace [String] The namespace of the collection.
41
41
  # @param version [String] The version of the collection.
42
42
  # @param [Hash] opts the optional parameters
43
+ # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
43
44
  # @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
44
45
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
45
- # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
46
46
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
47
47
  def create_with_http_info(name, namespace, version, opts = {})
48
48
  if @api_client.config.debugging
@@ -102,9 +102,9 @@ module PulpAnsibleClient
102
102
  form_params['name'] = name
103
103
  form_params['namespace'] = namespace
104
104
  form_params['version'] = version
105
+ form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
105
106
  form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
106
107
  form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
107
- form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
108
108
 
109
109
  # http body (model)
110
110
  post_body = opts[:body]
@@ -176,7 +176,7 @@ module PulpAnsibleClient
176
176
  if @api_client.config.debugging
177
177
  @api_client.config.logger.debug 'Calling API: ContentCollectionVersionsApi.list ...'
178
178
  end
179
- allowable_values = ["-_artifacts", "-authors", "-collection", "-content_ptr", "-contentartifact", "-contents", "-dependencies", "-description", "-docs_blob", "-documentation", "-files", "-group_roles", "-homepage", "-is_highest", "-issues", "-license", "-manifest", "-name", "-namespace", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-repositories", "-repository", "-requires_ansible", "-search_vector", "-signatures", "-tags", "-timestamp_of_interest", "-upstream_id", "-user_roles", "-version", "-version_memberships", "_artifacts", "authors", "collection", "content_ptr", "contentartifact", "contents", "dependencies", "description", "docs_blob", "documentation", "files", "group_roles", "homepage", "is_highest", "issues", "license", "manifest", "name", "namespace", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "repositories", "repository", "requires_ansible", "search_vector", "signatures", "tags", "timestamp_of_interest", "upstream_id", "user_roles", "version", "version_memberships"]
179
+ allowable_values = ["-_artifacts", "-authors", "-collection", "-content_ptr", "-contentartifact", "-contents", "-dependencies", "-description", "-docs_blob", "-documentation", "-download_logs", "-files", "-group_roles", "-homepage", "-is_highest", "-issues", "-license", "-manifest", "-name", "-namespace", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-repositories", "-repository", "-requires_ansible", "-search_vector", "-signatures", "-tags", "-timestamp_of_interest", "-upstream_id", "-user_roles", "-version", "-version_memberships", "_artifacts", "authors", "collection", "content_ptr", "contentartifact", "contents", "dependencies", "description", "docs_blob", "documentation", "download_logs", "files", "group_roles", "homepage", "is_highest", "issues", "license", "manifest", "name", "namespace", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "repositories", "repository", "requires_ansible", "search_vector", "signatures", "tags", "timestamp_of_interest", "upstream_id", "user_roles", "version", "version_memberships"]
180
180
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
181
181
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
182
182
  end
@@ -122,7 +122,7 @@ module PulpAnsibleClient
122
122
  if @api_client.config.debugging
123
123
  @api_client.config.logger.debug 'Calling API: ContentRolesApi.list ...'
124
124
  end
125
- allowable_values = ["-_artifacts", "-content_ptr", "-contentartifact", "-group_roles", "-name", "-namespace", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-repositories", "-timestamp_of_interest", "-upstream_id", "-user_roles", "-version", "-version_memberships", "_artifacts", "content_ptr", "contentartifact", "group_roles", "name", "namespace", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "repositories", "timestamp_of_interest", "upstream_id", "user_roles", "version", "version_memberships"]
125
+ allowable_values = ["-_artifacts", "-content_ptr", "-contentartifact", "-download_logs", "-group_roles", "-name", "-namespace", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-repositories", "-timestamp_of_interest", "-upstream_id", "-user_roles", "-version", "-version_memberships", "_artifacts", "content_ptr", "contentartifact", "download_logs", "group_roles", "name", "namespace", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "repositories", "timestamp_of_interest", "upstream_id", "user_roles", "version", "version_memberships"]
126
126
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
127
127
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
128
128
  end
@@ -158,7 +158,7 @@ module PulpAnsibleClient
158
158
  if @api_client.config.client_side_validation && path.nil?
159
159
  fail ArgumentError, "Missing the required parameter 'path' when calling PulpAnsibleApiV3CollectionsVersionsApi.list"
160
160
  end
161
- allowable_values = ["-_artifacts", "-authors", "-collection", "-content_ptr", "-contentartifact", "-contents", "-dependencies", "-description", "-docs_blob", "-documentation", "-files", "-group_roles", "-homepage", "-is_highest", "-issues", "-license", "-manifest", "-name", "-namespace", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-repositories", "-repository", "-requires_ansible", "-search_vector", "-signatures", "-tags", "-timestamp_of_interest", "-upstream_id", "-user_roles", "-version", "-version_memberships", "_artifacts", "authors", "collection", "content_ptr", "contentartifact", "contents", "dependencies", "description", "docs_blob", "documentation", "files", "group_roles", "homepage", "is_highest", "issues", "license", "manifest", "name", "namespace", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "repositories", "repository", "requires_ansible", "search_vector", "signatures", "tags", "timestamp_of_interest", "upstream_id", "user_roles", "version", "version_memberships"]
161
+ allowable_values = ["-_artifacts", "-authors", "-collection", "-content_ptr", "-contentartifact", "-contents", "-dependencies", "-description", "-docs_blob", "-documentation", "-download_logs", "-files", "-group_roles", "-homepage", "-is_highest", "-issues", "-license", "-manifest", "-name", "-namespace", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-repositories", "-repository", "-requires_ansible", "-search_vector", "-signatures", "-tags", "-timestamp_of_interest", "-upstream_id", "-user_roles", "-version", "-version_memberships", "_artifacts", "authors", "collection", "content_ptr", "contentartifact", "contents", "dependencies", "description", "docs_blob", "documentation", "download_logs", "files", "group_roles", "homepage", "is_highest", "issues", "license", "manifest", "name", "namespace", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "repositories", "repository", "requires_ansible", "search_vector", "signatures", "tags", "timestamp_of_interest", "upstream_id", "user_roles", "version", "version_memberships"]
162
162
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
163
163
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
164
164
  end
@@ -0,0 +1,88 @@
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.3.1
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module PulpAnsibleClient
16
+ class PulpAnsibleApiV3PluginAnsibleClientConfigurationApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Get the client configs.
23
+ # @param path [String]
24
+ # @param [Hash] opts the optional parameters
25
+ # @option opts [String] :fields A list of fields to include in the response.
26
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
27
+ # @return [ClientConfigurationResponse]
28
+ def get(path, opts = {})
29
+ data, _status_code, _headers = get_with_http_info(path, opts)
30
+ data
31
+ end
32
+
33
+ # Get the client configs.
34
+ # @param path [String]
35
+ # @param [Hash] opts the optional parameters
36
+ # @option opts [String] :fields A list of fields to include in the response.
37
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
38
+ # @return [Array<(ClientConfigurationResponse, Integer, Hash)>] ClientConfigurationResponse data, response status code and response headers
39
+ def get_with_http_info(path, opts = {})
40
+ if @api_client.config.debugging
41
+ @api_client.config.logger.debug 'Calling API: PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.get ...'
42
+ end
43
+ # verify the required parameter 'path' is set
44
+ if @api_client.config.client_side_validation && path.nil?
45
+ fail ArgumentError, "Missing the required parameter 'path' when calling PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.get"
46
+ end
47
+ # resource path
48
+ local_var_path = '/pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/client-configuration/'.sub('{' + 'path' + '}', CGI.escape(path.to_s).gsub('%2F', '/'))
49
+
50
+ # query parameters
51
+ query_params = opts[:query_params] || {}
52
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
53
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
54
+
55
+ # header parameters
56
+ header_params = opts[:header_params] || {}
57
+ # HTTP header 'Accept' (if needed)
58
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
59
+
60
+ # form parameters
61
+ form_params = opts[:form_params] || {}
62
+
63
+ # http body (model)
64
+ post_body = opts[:body]
65
+
66
+ # return_type
67
+ return_type = opts[:return_type] || 'ClientConfigurationResponse'
68
+
69
+ # auth_names
70
+ auth_names = opts[:auth_names] || ['basicAuth']
71
+
72
+ new_options = opts.merge(
73
+ :header_params => header_params,
74
+ :query_params => query_params,
75
+ :form_params => form_params,
76
+ :body => post_body,
77
+ :auth_names => auth_names,
78
+ :return_type => return_type
79
+ )
80
+
81
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
82
+ if @api_client.config.debugging
83
+ @api_client.config.logger.debug "API called: PulpAnsibleApiV3PluginAnsibleClientConfigurationApi#get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
84
+ end
85
+ return data, status_code, headers
86
+ end
87
+ end
88
+ end
@@ -170,7 +170,7 @@ module PulpAnsibleClient
170
170
  if @api_client.config.client_side_validation && path.nil?
171
171
  fail ArgumentError, "Missing the required parameter 'path' when calling PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.list"
172
172
  end
173
- allowable_values = ["-_artifacts", "-authors", "-collection", "-content_ptr", "-contentartifact", "-contents", "-dependencies", "-description", "-docs_blob", "-documentation", "-files", "-group_roles", "-homepage", "-is_highest", "-issues", "-license", "-manifest", "-name", "-namespace", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-repositories", "-repository", "-requires_ansible", "-search_vector", "-signatures", "-tags", "-timestamp_of_interest", "-upstream_id", "-user_roles", "-version", "-version_memberships", "_artifacts", "authors", "collection", "content_ptr", "contentartifact", "contents", "dependencies", "description", "docs_blob", "documentation", "files", "group_roles", "homepage", "is_highest", "issues", "license", "manifest", "name", "namespace", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "repositories", "repository", "requires_ansible", "search_vector", "signatures", "tags", "timestamp_of_interest", "upstream_id", "user_roles", "version", "version_memberships"]
173
+ allowable_values = ["-_artifacts", "-authors", "-collection", "-content_ptr", "-contentartifact", "-contents", "-dependencies", "-description", "-docs_blob", "-documentation", "-download_logs", "-files", "-group_roles", "-homepage", "-is_highest", "-issues", "-license", "-manifest", "-name", "-namespace", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-repositories", "-repository", "-requires_ansible", "-search_vector", "-signatures", "-tags", "-timestamp_of_interest", "-upstream_id", "-user_roles", "-version", "-version_memberships", "_artifacts", "authors", "collection", "content_ptr", "contentartifact", "contents", "dependencies", "description", "docs_blob", "documentation", "download_logs", "files", "group_roles", "homepage", "is_highest", "issues", "license", "manifest", "name", "namespace", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "repositories", "repository", "requires_ansible", "search_vector", "signatures", "tags", "timestamp_of_interest", "upstream_id", "user_roles", "version", "version_memberships"]
174
174
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
175
175
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
176
176
  end
@@ -146,7 +146,7 @@ module PulpAnsibleClient
146
146
  if @api_client.config.client_side_validation && namespace.nil?
147
147
  fail ArgumentError, "Missing the required parameter 'namespace' when calling PulpAnsibleDefaultApiV3CollectionsVersionsApi.list"
148
148
  end
149
- allowable_values = ["-_artifacts", "-authors", "-collection", "-content_ptr", "-contentartifact", "-contents", "-dependencies", "-description", "-docs_blob", "-documentation", "-files", "-group_roles", "-homepage", "-is_highest", "-issues", "-license", "-manifest", "-name", "-namespace", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-repositories", "-repository", "-requires_ansible", "-search_vector", "-signatures", "-tags", "-timestamp_of_interest", "-upstream_id", "-user_roles", "-version", "-version_memberships", "_artifacts", "authors", "collection", "content_ptr", "contentartifact", "contents", "dependencies", "description", "docs_blob", "documentation", "files", "group_roles", "homepage", "is_highest", "issues", "license", "manifest", "name", "namespace", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "repositories", "repository", "requires_ansible", "search_vector", "signatures", "tags", "timestamp_of_interest", "upstream_id", "user_roles", "version", "version_memberships"]
149
+ allowable_values = ["-_artifacts", "-authors", "-collection", "-content_ptr", "-contentartifact", "-contents", "-dependencies", "-description", "-docs_blob", "-documentation", "-download_logs", "-files", "-group_roles", "-homepage", "-is_highest", "-issues", "-license", "-manifest", "-name", "-namespace", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-repositories", "-repository", "-requires_ansible", "-search_vector", "-signatures", "-tags", "-timestamp_of_interest", "-upstream_id", "-user_roles", "-version", "-version_memberships", "_artifacts", "authors", "collection", "content_ptr", "contentartifact", "contents", "dependencies", "description", "docs_blob", "documentation", "download_logs", "files", "group_roles", "homepage", "is_highest", "issues", "license", "manifest", "name", "namespace", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "repositories", "repository", "requires_ansible", "search_vector", "signatures", "tags", "timestamp_of_interest", "upstream_id", "user_roles", "version", "version_memberships"]
150
150
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
151
151
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
152
152
  end
@@ -0,0 +1,76 @@
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.3.1
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module PulpAnsibleClient
16
+ class PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Get the client configs.
23
+ # @param [Hash] opts the optional parameters
24
+ # @return [ClientConfigurationResponse]
25
+ def get(opts = {})
26
+ data, _status_code, _headers = get_with_http_info(opts)
27
+ data
28
+ end
29
+
30
+ # Get the client configs.
31
+ # @param [Hash] opts the optional parameters
32
+ # @return [Array<(ClientConfigurationResponse, Integer, Hash)>] ClientConfigurationResponse data, response status code and response headers
33
+ def get_with_http_info(opts = {})
34
+ if @api_client.config.debugging
35
+ @api_client.config.logger.debug 'Calling API: PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.get ...'
36
+ end
37
+ # resource path
38
+ local_var_path = '/pulp_ansible/galaxy/default/api/v3/plugin/ansible/client-configuration/'
39
+
40
+ # query parameters
41
+ query_params = opts[:query_params] || {}
42
+
43
+ # header parameters
44
+ header_params = opts[:header_params] || {}
45
+ # HTTP header 'Accept' (if needed)
46
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
47
+
48
+ # form parameters
49
+ form_params = opts[:form_params] || {}
50
+
51
+ # http body (model)
52
+ post_body = opts[:body]
53
+
54
+ # return_type
55
+ return_type = opts[:return_type] || 'ClientConfigurationResponse'
56
+
57
+ # auth_names
58
+ auth_names = opts[:auth_names] || ['basicAuth']
59
+
60
+ new_options = opts.merge(
61
+ :header_params => header_params,
62
+ :query_params => query_params,
63
+ :form_params => form_params,
64
+ :body => post_body,
65
+ :auth_names => auth_names,
66
+ :return_type => return_type
67
+ )
68
+
69
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
70
+ if @api_client.config.debugging
71
+ @api_client.config.logger.debug "API called: PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi#get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
72
+ end
73
+ return data, status_code, headers
74
+ end
75
+ end
76
+ end
@@ -158,7 +158,7 @@ module PulpAnsibleClient
158
158
  if @api_client.config.client_side_validation && namespace.nil?
159
159
  fail ArgumentError, "Missing the required parameter 'namespace' when calling PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.list"
160
160
  end
161
- allowable_values = ["-_artifacts", "-authors", "-collection", "-content_ptr", "-contentartifact", "-contents", "-dependencies", "-description", "-docs_blob", "-documentation", "-files", "-group_roles", "-homepage", "-is_highest", "-issues", "-license", "-manifest", "-name", "-namespace", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-repositories", "-repository", "-requires_ansible", "-search_vector", "-signatures", "-tags", "-timestamp_of_interest", "-upstream_id", "-user_roles", "-version", "-version_memberships", "_artifacts", "authors", "collection", "content_ptr", "contentartifact", "contents", "dependencies", "description", "docs_blob", "documentation", "files", "group_roles", "homepage", "is_highest", "issues", "license", "manifest", "name", "namespace", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "repositories", "repository", "requires_ansible", "search_vector", "signatures", "tags", "timestamp_of_interest", "upstream_id", "user_roles", "version", "version_memberships"]
161
+ allowable_values = ["-_artifacts", "-authors", "-collection", "-content_ptr", "-contentartifact", "-contents", "-dependencies", "-description", "-docs_blob", "-documentation", "-download_logs", "-files", "-group_roles", "-homepage", "-is_highest", "-issues", "-license", "-manifest", "-name", "-namespace", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-repositories", "-repository", "-requires_ansible", "-search_vector", "-signatures", "-tags", "-timestamp_of_interest", "-upstream_id", "-user_roles", "-version", "-version_memberships", "_artifacts", "authors", "collection", "content_ptr", "contentartifact", "contents", "dependencies", "description", "docs_blob", "documentation", "download_logs", "files", "group_roles", "homepage", "is_highest", "issues", "license", "manifest", "name", "namespace", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "repositories", "repository", "requires_ansible", "search_vector", "signatures", "tags", "timestamp_of_interest", "upstream_id", "user_roles", "version", "version_memberships"]
162
162
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
163
163
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
164
164
  end
@@ -186,7 +186,7 @@ module PulpAnsibleClient
186
186
  if @api_client.config.debugging
187
187
  @api_client.config.logger.debug 'Calling API: RepositoriesAnsibleApi.list ...'
188
188
  end
189
- allowable_values = ["-alternatecontentsourcepath", "-ansible_ansiblerepository", "-content", "-core_pulp_exporter", "-description", "-distributions", "-group_roles", "-name", "-next_version", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-pulpimporterrepository", "-remote", "-repositorycontent", "-retain_repo_versions", "-user_hidden", "-user_roles", "-versions", "alternatecontentsourcepath", "ansible_ansiblerepository", "content", "core_pulp_exporter", "description", "distributions", "group_roles", "name", "next_version", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "pulpimporterrepository", "remote", "repositorycontent", "retain_repo_versions", "user_hidden", "user_roles", "versions"]
189
+ allowable_values = ["-alternatecontentsourcepath", "-ansible_ansiblerepository", "-content", "-core_pulp_exporter", "-description", "-distributions", "-download_logs", "-group_roles", "-name", "-next_version", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-pulpimporterrepository", "-remote", "-repositorycontent", "-retain_repo_versions", "-user_hidden", "-user_roles", "-versions", "alternatecontentsourcepath", "ansible_ansiblerepository", "content", "core_pulp_exporter", "description", "distributions", "download_logs", "group_roles", "name", "next_version", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "pulpimporterrepository", "remote", "repositorycontent", "retain_repo_versions", "user_hidden", "user_roles", "versions"]
190
190
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
191
191
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
192
192
  end
@@ -449,6 +449,74 @@ module PulpAnsibleClient
449
449
  return data, status_code, headers
450
450
  end
451
451
 
452
+ # Trigger an asynchronous task to rebuild Ansible content meta.
453
+ # @param ansible_ansible_repository_href [String]
454
+ # @param ansible_repository_rebuild [AnsibleRepositoryRebuild]
455
+ # @param [Hash] opts the optional parameters
456
+ # @return [AsyncOperationResponse]
457
+ def rebuild_metadata(ansible_ansible_repository_href, ansible_repository_rebuild, opts = {})
458
+ data, _status_code, _headers = rebuild_metadata_with_http_info(ansible_ansible_repository_href, ansible_repository_rebuild, opts)
459
+ data
460
+ end
461
+
462
+ # Trigger an asynchronous task to rebuild Ansible content meta.
463
+ # @param ansible_ansible_repository_href [String]
464
+ # @param ansible_repository_rebuild [AnsibleRepositoryRebuild]
465
+ # @param [Hash] opts the optional parameters
466
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
467
+ def rebuild_metadata_with_http_info(ansible_ansible_repository_href, ansible_repository_rebuild, opts = {})
468
+ if @api_client.config.debugging
469
+ @api_client.config.logger.debug 'Calling API: RepositoriesAnsibleApi.rebuild_metadata ...'
470
+ end
471
+ # verify the required parameter 'ansible_ansible_repository_href' is set
472
+ if @api_client.config.client_side_validation && ansible_ansible_repository_href.nil?
473
+ fail ArgumentError, "Missing the required parameter 'ansible_ansible_repository_href' when calling RepositoriesAnsibleApi.rebuild_metadata"
474
+ end
475
+ # verify the required parameter 'ansible_repository_rebuild' is set
476
+ if @api_client.config.client_side_validation && ansible_repository_rebuild.nil?
477
+ fail ArgumentError, "Missing the required parameter 'ansible_repository_rebuild' when calling RepositoriesAnsibleApi.rebuild_metadata"
478
+ end
479
+ # resource path
480
+ local_var_path = '{ansible_ansible_repository_href}rebuild_metadata/'.sub('{' + 'ansible_ansible_repository_href' + '}', CGI.escape(ansible_ansible_repository_href.to_s).gsub('%2F', '/'))
481
+
482
+ # query parameters
483
+ query_params = opts[:query_params] || {}
484
+
485
+ # header parameters
486
+ header_params = opts[:header_params] || {}
487
+ # HTTP header 'Accept' (if needed)
488
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
489
+ # HTTP header 'Content-Type'
490
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
491
+
492
+ # form parameters
493
+ form_params = opts[:form_params] || {}
494
+
495
+ # http body (model)
496
+ post_body = opts[:body] || @api_client.object_to_http_body(ansible_repository_rebuild)
497
+
498
+ # return_type
499
+ return_type = opts[:return_type] || 'AsyncOperationResponse'
500
+
501
+ # auth_names
502
+ auth_names = opts[:auth_names] || ['basicAuth']
503
+
504
+ new_options = opts.merge(
505
+ :header_params => header_params,
506
+ :query_params => query_params,
507
+ :form_params => form_params,
508
+ :body => post_body,
509
+ :auth_names => auth_names,
510
+ :return_type => return_type
511
+ )
512
+
513
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
514
+ if @api_client.config.debugging
515
+ @api_client.config.logger.debug "API called: RepositoriesAnsibleApi#rebuild_metadata\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
516
+ end
517
+ return data, status_code, headers
518
+ end
519
+
452
520
  # Trigger an asynchronous task to sign Ansible content.
453
521
  # @param ansible_ansible_repository_href [String]
454
522
  # @param ansible_repository_signature [AnsibleRepositorySignature]