pulp_ansible_client 0.21.8 → 0.22.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (143) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +12 -19
  3. data/docs/{AnsibleCollection.md → AnsibleAnsibleCollectionDeprecated.md} +4 -2
  4. data/docs/AnsibleAnsibleCollectionDeprecatedResponse.md +25 -0
  5. data/docs/AnsibleCollectionVersion.md +4 -4
  6. data/docs/AnsibleCollectionVersionResponse.md +10 -10
  7. data/docs/AnsibleCollectionsApi.md +61 -1
  8. data/docs/AnsibleCopyApi.md +1 -1
  9. data/docs/AnsibleGitRemote.md +24 -24
  10. data/docs/AnsibleGitRemoteResponse.md +25 -25
  11. data/docs/AnsibleRole.md +3 -3
  12. data/docs/AnsibleRoleResponse.md +5 -5
  13. data/docs/ApiRolesApi.md +1 -1
  14. data/docs/CollectionImportApi.md +1 -1
  15. data/docs/CollectionImportDetailResponse.md +2 -2
  16. data/docs/CollectionMetadataResponse.md +2 -2
  17. data/docs/CollectionSummaryResponse.md +2 -2
  18. data/docs/CollectionVersionDocsResponse.md +1 -1
  19. data/docs/CollectionVersionResponse.md +2 -2
  20. data/docs/ContentCollectionDeprecationsApi.md +11 -11
  21. data/docs/ContentCollectionMarksApi.md +1 -1
  22. data/docs/ContentCollectionSignaturesApi.md +1 -1
  23. data/docs/ContentCollectionVersionsApi.md +5 -5
  24. data/docs/ContentNamespacesApi.md +1 -1
  25. data/docs/ContentRolesApi.md +1 -1
  26. data/docs/Copy.md +1 -1
  27. data/docs/DistributionsAnsibleApi.md +1 -1
  28. data/docs/{PaginatedGalaxyCollectionResponseList.md → PaginatedansibleAnsibleCollectionDeprecatedResponseList.md} +5 -5
  29. data/docs/PatchedansibleGitRemote.md +24 -24
  30. data/docs/PulpAnsibleApiApi.md +1 -1
  31. data/docs/PulpAnsibleApiV3Api.md +1 -1
  32. data/docs/PulpAnsibleApiV3ArtifactsCollectionsApi.md +1 -1
  33. data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +1 -1
  34. data/docs/PulpAnsibleApiV3CollectionsAllApi.md +1 -1
  35. data/docs/PulpAnsibleApiV3CollectionsApi.md +1 -1
  36. data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +1 -1
  37. data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +1 -1
  38. data/docs/PulpAnsibleApiV3NamespacesApi.md +1 -1
  39. data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +1 -1
  40. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -1
  41. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
  42. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +1 -1
  43. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
  44. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +1 -1
  45. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
  46. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
  47. data/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md +1 -1
  48. data/docs/{ApiPluginAnsibleSearchCollectionVersionsApi.md → PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.md} +17 -18
  49. data/docs/PulpAnsibleArtifactsCollectionsV3Api.md +1 -1
  50. data/docs/PulpAnsibleDefaultApiApi.md +1 -1
  51. data/docs/PulpAnsibleDefaultApiV3Api.md +1 -1
  52. data/docs/PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md +1 -1
  53. data/docs/PulpAnsibleDefaultApiV3CollectionVersionsAllApi.md +1 -1
  54. data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +1 -1
  55. data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +1 -1
  56. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +1 -1
  57. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +1 -1
  58. data/docs/PulpAnsibleDefaultApiV3NamespacesApi.md +1 -1
  59. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +1 -1
  60. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -1
  61. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
  62. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +1 -1
  63. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
  64. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +1 -1
  65. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
  66. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
  67. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md +1 -1
  68. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md +3 -4
  69. data/docs/PulpAnsibleTagsApi.md +1 -1
  70. data/docs/RemotesCollectionApi.md +1 -1
  71. data/docs/RemotesGitApi.md +1 -1
  72. data/docs/RemotesRoleApi.md +1 -1
  73. data/docs/RepositoriesAnsibleApi.md +1 -1
  74. data/docs/RepositoriesAnsibleVersionsApi.md +1 -1
  75. data/docs/VersionsApi.md +1 -56
  76. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +68 -0
  77. data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +20 -20
  78. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +6 -6
  79. data/lib/pulp_ansible_client/api/{api_plugin_ansible_search_collection_versions_api.rb → pulp_ansible_api_v3_plugin_ansible_search_collection_versions_api.rb} +24 -26
  80. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api.rb +0 -2
  81. data/lib/pulp_ansible_client/api/versions_api.rb +0 -69
  82. data/lib/pulp_ansible_client/configuration.rb +2 -2
  83. data/lib/pulp_ansible_client/models/{ansible_collection.rb → ansible_ansible_collection_deprecated.rb} +15 -5
  84. data/lib/pulp_ansible_client/models/{galaxy_collection_version_response.rb → ansible_ansible_collection_deprecated_response.rb} +45 -54
  85. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +20 -20
  86. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +20 -20
  87. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +15 -15
  88. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +25 -25
  89. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +212 -212
  90. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +140 -140
  91. data/lib/pulp_ansible_client/models/ansible_role.rb +11 -11
  92. data/lib/pulp_ansible_client/models/ansible_role_remote.rb +20 -20
  93. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +20 -20
  94. data/lib/pulp_ansible_client/models/ansible_role_response.rb +20 -20
  95. data/lib/pulp_ansible_client/models/collection_import_detail_response.rb +2 -2
  96. data/lib/pulp_ansible_client/models/collection_metadata_response.rb +2 -2
  97. data/lib/pulp_ansible_client/models/collection_summary_response.rb +2 -2
  98. data/lib/pulp_ansible_client/models/collection_version_docs_response.rb +1 -1
  99. data/lib/pulp_ansible_client/models/collection_version_response.rb +2 -2
  100. data/lib/pulp_ansible_client/models/copy.rb +1 -1
  101. data/lib/pulp_ansible_client/models/{paginated_galaxy_collection_version_response_list.rb → paginatedansible_ansible_collection_deprecated_response_list.rb} +4 -4
  102. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +20 -20
  103. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +200 -200
  104. data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +20 -20
  105. data/lib/pulp_ansible_client/version.rb +1 -1
  106. data/lib/pulp_ansible_client.rb +4 -10
  107. data/spec/api/ansible_collections_api_spec.rb +14 -0
  108. data/spec/api/content_collection_deprecations_api_spec.rb +5 -5
  109. data/spec/api/content_collection_versions_api_spec.rb +2 -2
  110. data/spec/api/{api_plugin_ansible_search_collection_versions_api_spec.rb → pulp_ansible_api_v3_plugin_ansible_search_collection_versions_api_spec.rb} +8 -9
  111. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api_spec.rb +0 -1
  112. data/spec/api/versions_api_spec.rb +0 -14
  113. data/spec/configuration_spec.rb +3 -3
  114. data/spec/models/{galaxy_collection_version_response_spec.rb → ansible_ansible_collection_deprecated_response_spec.rb} +11 -17
  115. data/spec/models/{ansible_collection_spec.rb → ansible_ansible_collection_deprecated_spec.rb} +12 -6
  116. data/spec/models/ansible_collection_version_response_spec.rb +4 -4
  117. data/spec/models/ansible_collection_version_spec.rb +2 -2
  118. data/spec/models/ansible_git_remote_response_spec.rb +17 -17
  119. data/spec/models/ansible_git_remote_spec.rb +19 -19
  120. data/spec/models/ansible_role_response_spec.rb +4 -4
  121. data/spec/models/ansible_role_spec.rb +2 -2
  122. data/spec/models/{paginated_galaxy_collection_version_response_list_spec.rb → paginatedansible_ansible_collection_deprecated_response_list_spec.rb} +6 -6
  123. data/spec/models/patchedansible_git_remote_spec.rb +19 -19
  124. metadata +151 -175
  125. data/docs/ApiCollectionsApi.md +0 -112
  126. data/docs/GalaxyCollection.md +0 -23
  127. data/docs/GalaxyCollectionResponse.md +0 -31
  128. data/docs/GalaxyCollectionVersionResponse.md +0 -27
  129. data/docs/GalaxyDetailApi.md +0 -61
  130. data/docs/PaginatedGalaxyCollectionVersionResponseList.md +0 -23
  131. data/docs/PulpAnsibleApiV2CollectionsVersionsApi.md +0 -66
  132. data/lib/pulp_ansible_client/api/api_collections_api.rb +0 -159
  133. data/lib/pulp_ansible_client/api/galaxy_detail_api.rb +0 -88
  134. data/lib/pulp_ansible_client/api/pulp_ansible_api_v2_collections_versions_api.rb +0 -104
  135. data/lib/pulp_ansible_client/models/galaxy_collection.rb +0 -292
  136. data/lib/pulp_ansible_client/models/galaxy_collection_response.rb +0 -294
  137. data/lib/pulp_ansible_client/models/paginated_galaxy_collection_response_list.rb +0 -247
  138. data/spec/api/api_collections_api_spec.rb +0 -61
  139. data/spec/api/galaxy_detail_api_spec.rb +0 -48
  140. data/spec/api/pulp_ansible_api_v2_collections_versions_api_spec.rb +0 -51
  141. data/spec/models/galaxy_collection_response_spec.rb +0 -83
  142. data/spec/models/galaxy_collection_spec.rb +0 -59
  143. data/spec/models/paginated_galaxy_collection_response_list_spec.rb +0 -59
@@ -1,6 +1,6 @@
1
1
  # PulpAnsibleClient::PulpAnsibleDefaultApiV3NamespacesApi
2
2
 
3
- All URIs are relative to *http://localhost:24817*
3
+ All URIs are relative to *http://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpAnsibleClient::PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi
2
2
 
3
- All URIs are relative to *http://localhost:24817*
3
+ All URIs are relative to *http://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpAnsibleClient::PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi
2
2
 
3
- All URIs are relative to *http://localhost:24817*
3
+ All URIs are relative to *http://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpAnsibleClient::PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi
2
2
 
3
- All URIs are relative to *http://localhost:24817*
3
+ All URIs are relative to *http://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpAnsibleClient::PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi
2
2
 
3
- All URIs are relative to *http://localhost:24817*
3
+ All URIs are relative to *http://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpAnsibleClient::PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi
2
2
 
3
- All URIs are relative to *http://localhost:24817*
3
+ All URIs are relative to *http://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpAnsibleClient::PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi
2
2
 
3
- All URIs are relative to *http://localhost:24817*
3
+ All URIs are relative to *http://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpAnsibleClient::PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi
2
2
 
3
- All URIs are relative to *http://localhost:24817*
3
+ All URIs are relative to *http://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpAnsibleClient::PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi
2
2
 
3
- All URIs are relative to *http://localhost:24817*
3
+ All URIs are relative to *http://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpAnsibleClient::PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi
2
2
 
3
- All URIs are relative to *http://localhost:24817*
3
+ All URIs are relative to *http://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,10 +1,10 @@
1
1
  # PulpAnsibleClient::PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi
2
2
 
3
- All URIs are relative to *http://localhost:24817*
3
+ All URIs are relative to *http://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
- [**list**](PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md#list) | **GET** /pulp_ansible/galaxy/default/api/v3/plugin/ansible/search/collection-versions/ | List cross repository collection version indexs
7
+ [**list**](PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md#list) | **GET** /pulp_ansible/galaxy/default/api/v3/plugin/ansible/search/collection-versions/ |
8
8
  [**rebuild**](PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md#rebuild) | **POST** /pulp_ansible/galaxy/default/api/v3/plugin/ansible/search/collection-versions/ |
9
9
 
10
10
 
@@ -13,7 +13,7 @@ Method | HTTP request | Description
13
13
 
14
14
  > PaginatedCollectionVersionSearchListResponseList list(opts)
15
15
 
16
- List cross repository collection version indexs
16
+
17
17
 
18
18
  A viewset for cross-repo searches.
19
19
 
@@ -59,7 +59,6 @@ opts = {
59
59
  }
60
60
 
61
61
  begin
62
- #List cross repository collection version indexs
63
62
  result = api_instance.list(opts)
64
63
  p result
65
64
  rescue PulpAnsibleClient::ApiError => e
@@ -1,6 +1,6 @@
1
1
  # PulpAnsibleClient::PulpAnsibleTagsApi
2
2
 
3
- All URIs are relative to *http://localhost:24817*
3
+ All URIs are relative to *http://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpAnsibleClient::RemotesCollectionApi
2
2
 
3
- All URIs are relative to *http://localhost:24817*
3
+ All URIs are relative to *http://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpAnsibleClient::RemotesGitApi
2
2
 
3
- All URIs are relative to *http://localhost:24817*
3
+ All URIs are relative to *http://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpAnsibleClient::RemotesRoleApi
2
2
 
3
- All URIs are relative to *http://localhost:24817*
3
+ All URIs are relative to *http://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpAnsibleClient::RepositoriesAnsibleApi
2
2
 
3
- All URIs are relative to *http://localhost:24817*
3
+ All URIs are relative to *http://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
@@ -1,6 +1,6 @@
1
1
  # PulpAnsibleClient::RepositoriesAnsibleVersionsApi
2
2
 
3
- All URIs are relative to *http://localhost:24817*
3
+ All URIs are relative to *http://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
data/docs/VersionsApi.md CHANGED
@@ -1,11 +1,10 @@
1
1
  # PulpAnsibleClient::VersionsApi
2
2
 
3
- All URIs are relative to *http://localhost:24817*
3
+ All URIs are relative to *http://pulp*
4
4
 
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] :upload An uncommitted upload that may be turned into the content unit.
26
- # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
27
- # @option opts [String] :artifact Artifact file representing the physical content
28
26
  # @option opts [File] :file An uploaded file that may be turned into the content unit.
27
+ # @option opts [String] :artifact Artifact file representing the physical content
28
+ # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
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] :upload An uncommitted upload that may be turned into the content unit.
42
- # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
43
- # @option opts [String] :artifact Artifact file representing the physical content
44
42
  # @option opts [File] :file An uploaded file that may be turned into the content unit.
43
+ # @option opts [String] :artifact Artifact file representing the physical content
44
+ # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
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['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
93
- form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
94
- form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
95
93
  form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
94
+ form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
95
+ form_params['repository'] = opts[:'repository'] if !opts[:'repository'].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?
@@ -13,15 +13,14 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'cgi'
14
14
 
15
15
  module PulpAnsibleClient
16
- class ApiPluginAnsibleSearchCollectionVersionsApi
16
+ class PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi
17
17
  attr_accessor :api_client
18
18
 
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # List cross repository collection version indexs
23
22
  # A viewset for cross-repo searches.
24
- # @param ansible_cross_repository_collection_version_index_href [String]
23
+ # @param path [String]
25
24
  # @param [Hash] opts the optional parameters
26
25
  # @option opts [String] :dependency
27
26
  # @option opts [Boolean] :deprecated
@@ -49,14 +48,13 @@ module PulpAnsibleClient
49
48
  # @option opts [Array<String>] :fields A list of fields to include in the response.
50
49
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
51
50
  # @return [PaginatedCollectionVersionSearchListResponseList]
52
- def list(ansible_cross_repository_collection_version_index_href, opts = {})
53
- data, _status_code, _headers = list_with_http_info(ansible_cross_repository_collection_version_index_href, opts)
51
+ def list(path, opts = {})
52
+ data, _status_code, _headers = list_with_http_info(path, opts)
54
53
  data
55
54
  end
56
55
 
57
- # List cross repository collection version indexs
58
56
  # A viewset for cross-repo searches.
59
- # @param ansible_cross_repository_collection_version_index_href [String]
57
+ # @param path [String]
60
58
  # @param [Hash] opts the optional parameters
61
59
  # @option opts [String] :dependency
62
60
  # @option opts [Boolean] :deprecated
@@ -84,20 +82,20 @@ module PulpAnsibleClient
84
82
  # @option opts [Array<String>] :fields A list of fields to include in the response.
85
83
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
86
84
  # @return [Array<(PaginatedCollectionVersionSearchListResponseList, Integer, Hash)>] PaginatedCollectionVersionSearchListResponseList data, response status code and response headers
87
- def list_with_http_info(ansible_cross_repository_collection_version_index_href, opts = {})
85
+ def list_with_http_info(path, opts = {})
88
86
  if @api_client.config.debugging
89
- @api_client.config.logger.debug 'Calling API: ApiPluginAnsibleSearchCollectionVersionsApi.list ...'
87
+ @api_client.config.logger.debug 'Calling API: PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.list ...'
90
88
  end
91
- # verify the required parameter 'ansible_cross_repository_collection_version_index_href' is set
92
- if @api_client.config.client_side_validation && ansible_cross_repository_collection_version_index_href.nil?
93
- fail ArgumentError, "Missing the required parameter 'ansible_cross_repository_collection_version_index_href' when calling ApiPluginAnsibleSearchCollectionVersionsApi.list"
89
+ # verify the required parameter 'path' is set
90
+ if @api_client.config.client_side_validation && path.nil?
91
+ fail ArgumentError, "Missing the required parameter 'path' when calling PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.list"
94
92
  end
95
93
  allowable_values = ["-name", "-namespace", "-pulp_created", "-version", "name", "namespace", "pulp_created", "version"]
96
94
  if @api_client.config.client_side_validation && opts[:'order_by'] && !opts[:'order_by'].all? { |item| allowable_values.include?(item) }
97
95
  fail ArgumentError, "invalid value for \"order_by\", must include one of #{allowable_values}"
98
96
  end
99
97
  # resource path
100
- local_var_path = '{ansible_cross_repository_collection_version_index_href}api/v3/plugin/ansible/search/collection-versions/'.sub('{' + 'ansible_cross_repository_collection_version_index_href' + '}', CGI.escape(ansible_cross_repository_collection_version_index_href.to_s).gsub('%2F', '/'))
98
+ local_var_path = '/pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/search/collection-versions/'.sub('{' + 'path' + '}', CGI.escape(path.to_s).gsub('%2F', '/'))
101
99
 
102
100
  # query parameters
103
101
  query_params = opts[:query_params] || {}
@@ -155,40 +153,40 @@ module PulpAnsibleClient
155
153
 
156
154
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
157
155
  if @api_client.config.debugging
158
- @api_client.config.logger.debug "API called: ApiPluginAnsibleSearchCollectionVersionsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
156
+ @api_client.config.logger.debug "API called: PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
159
157
  end
160
158
  return data, status_code, headers
161
159
  end
162
160
 
163
161
  # A viewset for cross-repo searches.
164
- # @param ansible_cross_repository_collection_version_index_href [String]
162
+ # @param path [String]
165
163
  # @param collection_version_search_list [CollectionVersionSearchList]
166
164
  # @param [Hash] opts the optional parameters
167
165
  # @return [CollectionVersionSearchListResponse]
168
- def rebuild(ansible_cross_repository_collection_version_index_href, collection_version_search_list, opts = {})
169
- data, _status_code, _headers = rebuild_with_http_info(ansible_cross_repository_collection_version_index_href, collection_version_search_list, opts)
166
+ def rebuild(path, collection_version_search_list, opts = {})
167
+ data, _status_code, _headers = rebuild_with_http_info(path, collection_version_search_list, opts)
170
168
  data
171
169
  end
172
170
 
173
171
  # A viewset for cross-repo searches.
174
- # @param ansible_cross_repository_collection_version_index_href [String]
172
+ # @param path [String]
175
173
  # @param collection_version_search_list [CollectionVersionSearchList]
176
174
  # @param [Hash] opts the optional parameters
177
175
  # @return [Array<(CollectionVersionSearchListResponse, Integer, Hash)>] CollectionVersionSearchListResponse data, response status code and response headers
178
- def rebuild_with_http_info(ansible_cross_repository_collection_version_index_href, collection_version_search_list, opts = {})
176
+ def rebuild_with_http_info(path, collection_version_search_list, opts = {})
179
177
  if @api_client.config.debugging
180
- @api_client.config.logger.debug 'Calling API: ApiPluginAnsibleSearchCollectionVersionsApi.rebuild ...'
178
+ @api_client.config.logger.debug 'Calling API: PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.rebuild ...'
181
179
  end
182
- # verify the required parameter 'ansible_cross_repository_collection_version_index_href' is set
183
- if @api_client.config.client_side_validation && ansible_cross_repository_collection_version_index_href.nil?
184
- fail ArgumentError, "Missing the required parameter 'ansible_cross_repository_collection_version_index_href' when calling ApiPluginAnsibleSearchCollectionVersionsApi.rebuild"
180
+ # verify the required parameter 'path' is set
181
+ if @api_client.config.client_side_validation && path.nil?
182
+ fail ArgumentError, "Missing the required parameter 'path' when calling PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.rebuild"
185
183
  end
186
184
  # verify the required parameter 'collection_version_search_list' is set
187
185
  if @api_client.config.client_side_validation && collection_version_search_list.nil?
188
- fail ArgumentError, "Missing the required parameter 'collection_version_search_list' when calling ApiPluginAnsibleSearchCollectionVersionsApi.rebuild"
186
+ fail ArgumentError, "Missing the required parameter 'collection_version_search_list' when calling PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.rebuild"
189
187
  end
190
188
  # resource path
191
- local_var_path = '{ansible_cross_repository_collection_version_index_href}api/v3/plugin/ansible/search/collection-versions/'.sub('{' + 'ansible_cross_repository_collection_version_index_href' + '}', CGI.escape(ansible_cross_repository_collection_version_index_href.to_s).gsub('%2F', '/'))
189
+ local_var_path = '/pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/search/collection-versions/'.sub('{' + 'path' + '}', CGI.escape(path.to_s).gsub('%2F', '/'))
192
190
 
193
191
  # query parameters
194
192
  query_params = opts[:query_params] || {}
@@ -223,7 +221,7 @@ module PulpAnsibleClient
223
221
 
224
222
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
225
223
  if @api_client.config.debugging
226
- @api_client.config.logger.debug "API called: ApiPluginAnsibleSearchCollectionVersionsApi#rebuild\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
224
+ @api_client.config.logger.debug "API called: PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi#rebuild\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
227
225
  end
228
226
  return data, status_code, headers
229
227
  end
@@ -19,7 +19,6 @@ module PulpAnsibleClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # List cross repository collection version indexs
23
22
  # A viewset for cross-repo searches.
24
23
  # @param [Hash] opts the optional parameters
25
24
  # @option opts [String] :dependency
@@ -53,7 +52,6 @@ module PulpAnsibleClient
53
52
  data
54
53
  end
55
54
 
56
- # List cross repository collection version indexs
57
55
  # A viewset for cross-repo searches.
58
56
  # @param [Hash] opts the optional parameters
59
57
  # @option opts [String] :dependency