pulp_ansible_client 0.21.10 → 0.22.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.
- checksums.yaml +4 -4
- data/README.md +12 -19
- data/docs/{AnsibleCollection.md → AnsibleAnsibleCollectionDeprecated.md} +4 -2
- data/docs/AnsibleAnsibleCollectionDeprecatedResponse.md +25 -0
- data/docs/AnsibleCollectionVersion.md +3 -3
- data/docs/AnsibleCollectionVersionResponse.md +8 -8
- data/docs/AnsibleCollectionsApi.md +61 -1
- data/docs/AnsibleCopyApi.md +1 -1
- data/docs/AnsibleGitRemote.md +30 -30
- data/docs/AnsibleGitRemoteResponse.md +27 -27
- data/docs/AnsibleRole.md +3 -3
- data/docs/AnsibleRoleResponse.md +3 -3
- data/docs/ApiRolesApi.md +1 -1
- data/docs/CollectionImportApi.md +1 -1
- data/docs/CollectionImportDetailResponse.md +2 -2
- data/docs/CollectionMetadataResponse.md +2 -2
- data/docs/CollectionSummaryResponse.md +2 -2
- data/docs/CollectionVersionDocsResponse.md +1 -1
- data/docs/CollectionVersionResponse.md +2 -2
- data/docs/ContentCollectionDeprecationsApi.md +11 -11
- data/docs/ContentCollectionMarksApi.md +1 -1
- data/docs/ContentCollectionSignaturesApi.md +1 -1
- data/docs/ContentCollectionVersionsApi.md +3 -3
- data/docs/ContentNamespacesApi.md +1 -1
- data/docs/ContentRolesApi.md +1 -1
- data/docs/Copy.md +1 -1
- data/docs/DistributionsAnsibleApi.md +1 -1
- data/docs/{PaginatedGalaxyCollectionResponseList.md → PaginatedansibleAnsibleCollectionDeprecatedResponseList.md} +5 -5
- data/docs/PatchedansibleGitRemote.md +30 -30
- data/docs/PulpAnsibleApiApi.md +1 -1
- data/docs/PulpAnsibleApiV3Api.md +1 -1
- data/docs/PulpAnsibleApiV3ArtifactsCollectionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionsAllApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleApiV3NamespacesApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md +1 -1
- data/docs/{ApiPluginAnsibleSearchCollectionVersionsApi.md → PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.md} +17 -18
- data/docs/PulpAnsibleArtifactsCollectionsV3Api.md +1 -1
- data/docs/PulpAnsibleDefaultApiApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3Api.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionVersionsAllApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3NamespacesApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md +3 -4
- data/docs/PulpAnsibleTagsApi.md +1 -1
- data/docs/RemotesCollectionApi.md +1 -1
- data/docs/RemotesGitApi.md +1 -1
- data/docs/RemotesRoleApi.md +1 -1
- data/docs/RepositoriesAnsibleApi.md +1 -1
- data/docs/RepositoriesAnsibleVersionsApi.md +1 -1
- data/docs/VersionsApi.md +1 -56
- data/lib/pulp_ansible_client/api/ansible_collections_api.rb +68 -0
- data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +20 -20
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +3 -3
- 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
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api.rb +0 -2
- data/lib/pulp_ansible_client/api/versions_api.rb +0 -69
- data/lib/pulp_ansible_client/configuration.rb +2 -2
- data/lib/pulp_ansible_client/models/{ansible_collection.rb → ansible_ansible_collection_deprecated.rb} +15 -5
- data/lib/pulp_ansible_client/models/{galaxy_collection_version_response.rb → ansible_ansible_collection_deprecated_response.rb} +45 -54
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +11 -11
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +16 -16
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +258 -258
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +151 -151
- data/lib/pulp_ansible_client/models/ansible_role.rb +11 -11
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +11 -11
- data/lib/pulp_ansible_client/models/collection_import_detail_response.rb +2 -2
- data/lib/pulp_ansible_client/models/collection_metadata_response.rb +2 -2
- data/lib/pulp_ansible_client/models/collection_summary_response.rb +2 -2
- data/lib/pulp_ansible_client/models/collection_version_docs_response.rb +1 -1
- data/lib/pulp_ansible_client/models/collection_version_response.rb +2 -2
- data/lib/pulp_ansible_client/models/copy.rb +1 -1
- data/lib/pulp_ansible_client/models/{paginated_galaxy_collection_version_response_list.rb → paginatedansible_ansible_collection_deprecated_response_list.rb} +4 -4
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +249 -249
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/lib/pulp_ansible_client.rb +4 -10
- data/spec/api/ansible_collections_api_spec.rb +14 -0
- data/spec/api/content_collection_deprecations_api_spec.rb +5 -5
- data/spec/api/content_collection_versions_api_spec.rb +1 -1
- 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
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api_spec.rb +0 -1
- data/spec/api/versions_api_spec.rb +0 -14
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/{galaxy_collection_version_response_spec.rb → ansible_ansible_collection_deprecated_response_spec.rb} +11 -17
- data/spec/models/{ansible_collection_spec.rb → ansible_ansible_collection_deprecated_spec.rb} +12 -6
- data/spec/models/ansible_collection_version_response_spec.rb +4 -4
- data/spec/models/ansible_collection_version_spec.rb +4 -4
- data/spec/models/ansible_git_remote_response_spec.rb +18 -18
- data/spec/models/ansible_git_remote_spec.rb +20 -20
- data/spec/models/ansible_role_response_spec.rb +4 -4
- data/spec/models/ansible_role_spec.rb +2 -2
- data/spec/models/{paginated_galaxy_collection_version_response_list_spec.rb → paginatedansible_ansible_collection_deprecated_response_list_spec.rb} +6 -6
- data/spec/models/patchedansible_git_remote_spec.rb +20 -20
- metadata +157 -181
- data/docs/ApiCollectionsApi.md +0 -112
- data/docs/GalaxyCollection.md +0 -23
- data/docs/GalaxyCollectionResponse.md +0 -31
- data/docs/GalaxyCollectionVersionResponse.md +0 -27
- data/docs/GalaxyDetailApi.md +0 -61
- data/docs/PaginatedGalaxyCollectionVersionResponseList.md +0 -23
- data/docs/PulpAnsibleApiV2CollectionsVersionsApi.md +0 -66
- data/lib/pulp_ansible_client/api/api_collections_api.rb +0 -159
- data/lib/pulp_ansible_client/api/galaxy_detail_api.rb +0 -88
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v2_collections_versions_api.rb +0 -104
- data/lib/pulp_ansible_client/models/galaxy_collection.rb +0 -292
- data/lib/pulp_ansible_client/models/galaxy_collection_response.rb +0 -294
- data/lib/pulp_ansible_client/models/paginated_galaxy_collection_response_list.rb +0 -247
- data/spec/api/api_collections_api_spec.rb +0 -61
- data/spec/api/galaxy_detail_api_spec.rb +0 -48
- data/spec/api/pulp_ansible_api_v2_collections_versions_api_spec.rb +0 -51
- data/spec/models/galaxy_collection_response_spec.rb +0 -83
- data/spec/models/galaxy_collection_spec.rb +0 -59
- data/spec/models/paginated_galaxy_collection_response_list_spec.rb +0 -59
@@ -1,6 +1,6 @@
|
|
1
1
|
# PulpAnsibleClient::PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi
|
2
2
|
|
3
|
-
All URIs are relative to *http://
|
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://
|
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://
|
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://
|
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://
|
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://
|
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/ |
|
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
|
-
|
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
|
data/docs/PulpAnsibleTagsApi.md
CHANGED
data/docs/RemotesGitApi.md
CHANGED
data/docs/RemotesRoleApi.md
CHANGED
data/docs/VersionsApi.md
CHANGED
@@ -1,11 +1,10 @@
|
|
1
1
|
# PulpAnsibleClient::VersionsApi
|
2
2
|
|
3
|
-
All URIs are relative to *http://
|
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<String>**](String.md)| A list of fields to include in the response. | [optional]
|
106
|
-
**exclude_fields** | [**Array<String>**](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
|
-
#
|
24
|
-
# @param
|
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 [
|
27
|
-
def create(
|
28
|
-
data, _status_code, _headers = create_with_http_info(
|
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
|
-
#
|
34
|
-
# @param
|
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<(
|
37
|
-
def create_with_http_info(
|
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 '
|
42
|
-
if @api_client.config.client_side_validation &&
|
43
|
-
fail ArgumentError, "Missing the required parameter '
|
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(
|
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] || '
|
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 [
|
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<(
|
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] || '
|
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 [
|
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<(
|
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] || '
|
229
|
+
return_type = opts[:return_type] || 'AnsibleAnsibleCollectionDeprecatedResponse'
|
230
230
|
|
231
231
|
# auth_names
|
232
232
|
auth_names = opts[:auth_names] || ['basicAuth']
|
@@ -22,10 +22,10 @@ module PulpAnsibleClient
|
|
22
22
|
# Create a collection version
|
23
23
|
# Trigger an asynchronous task to create content,optionally create new repository version.
|
24
24
|
# @param [Hash] opts the optional parameters
|
25
|
-
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
26
25
|
# @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
|
27
26
|
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
28
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.
|
@@ -38,10 +38,10 @@ module PulpAnsibleClient
|
|
38
38
|
# Create a collection version
|
39
39
|
# Trigger an asynchronous task to create content,optionally create new repository version.
|
40
40
|
# @param [Hash] opts the optional parameters
|
41
|
-
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
42
41
|
# @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
|
43
42
|
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
44
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.
|
@@ -89,10 +89,10 @@ module PulpAnsibleClient
|
|
89
89
|
|
90
90
|
# form parameters
|
91
91
|
form_params = opts[:form_params] || {}
|
92
|
-
form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
93
92
|
form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
|
94
93
|
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
|
95
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
|
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
|
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(
|
53
|
-
data, _status_code, _headers = list_with_http_info(
|
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
|
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(
|
85
|
+
def list_with_http_info(path, opts = {})
|
88
86
|
if @api_client.config.debugging
|
89
|
-
@api_client.config.logger.debug 'Calling API:
|
87
|
+
@api_client.config.logger.debug 'Calling API: PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.list ...'
|
90
88
|
end
|
91
|
-
# verify the required parameter '
|
92
|
-
if @api_client.config.client_side_validation &&
|
93
|
-
fail ArgumentError, "Missing the required parameter '
|
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 = '{
|
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:
|
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
|
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(
|
169
|
-
data, _status_code, _headers = rebuild_with_http_info(
|
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
|
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(
|
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:
|
178
|
+
@api_client.config.logger.debug 'Calling API: PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.rebuild ...'
|
181
179
|
end
|
182
|
-
# verify the required parameter '
|
183
|
-
if @api_client.config.client_side_validation &&
|
184
|
-
fail ArgumentError, "Missing the required parameter '
|
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
|
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 = '{
|
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:
|
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
|