pulp_container_client 2.6.0 → 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +16 -12
- data/docs/ContainerContainerDistribution.md +5 -5
- data/docs/ContainerContainerDistributionResponse.md +7 -7
- data/docs/ContainerContainerPushRepository.md +23 -0
- data/docs/ContainerContainerPushRepositoryResponse.md +9 -11
- data/docs/ContainerContainerRemote.md +7 -5
- data/docs/ContainerContainerRemoteResponse.md +7 -5
- data/docs/ManifestCopy.md +1 -1
- data/docs/PatchedcontainerContainerDistribution.md +5 -5
- data/docs/PatchedcontainerContainerPushRepository.md +23 -0
- data/docs/PatchedcontainerContainerRemote.md +7 -5
- data/docs/RecursiveManage.md +1 -1
- data/docs/RepositoriesContainerPushApi.md +112 -0
- data/docs/RepositoriesContainerPushVersionsApi.md +271 -0
- data/docs/RepositoriesContainerVersionsApi.md +16 -279
- data/docs/TagCopy.md +1 -1
- data/lib/pulp_container_client.rb +4 -1
- data/lib/pulp_container_client/api/content_blobs_api.rb +1 -1
- data/lib/pulp_container_client/api/content_manifests_api.rb +1 -1
- data/lib/pulp_container_client/api/content_tags_api.rb +1 -1
- data/lib/pulp_container_client/api/contentguards_content_redirect_api.rb +1 -1
- data/lib/pulp_container_client/api/distributions_container_api.rb +1 -1
- data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +1 -1
- data/lib/pulp_container_client/api/remotes_container_api.rb +1 -1
- data/lib/pulp_container_client/api/repositories_container_api.rb +1 -1
- data/lib/pulp_container_client/api/repositories_container_push_api.rb +141 -1
- data/lib/pulp_container_client/api/repositories_container_push_versions_api.rb +339 -0
- data/lib/pulp_container_client/api/repositories_container_versions_api.rb +26 -343
- data/lib/pulp_container_client/api/token_api.rb +1 -1
- data/lib/pulp_container_client/api_client.rb +12 -8
- data/lib/pulp_container_client/api_error.rb +1 -1
- data/lib/pulp_container_client/configuration.rb +8 -1
- data/lib/pulp_container_client/models/async_operation_response.rb +1 -1
- data/lib/pulp_container_client/models/container_blob_response.rb +1 -1
- data/lib/pulp_container_client/models/container_container_distribution.rb +21 -21
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +25 -25
- data/lib/pulp_container_client/models/container_container_namespace.rb +1 -1
- data/lib/pulp_container_client/models/container_container_namespace_response.rb +1 -1
- data/lib/pulp_container_client/models/container_container_push_repository.rb +259 -0
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +33 -43
- data/lib/pulp_container_client/models/container_container_remote.rb +19 -7
- data/lib/pulp_container_client/models/container_container_remote_response.rb +19 -7
- data/lib/pulp_container_client/models/container_container_repository.rb +1 -1
- data/lib/pulp_container_client/models/container_container_repository_response.rb +1 -1
- data/lib/pulp_container_client/models/container_content_redirect_content_guard.rb +1 -1
- data/lib/pulp_container_client/models/container_content_redirect_content_guard_response.rb +1 -1
- data/lib/pulp_container_client/models/container_manifest_response.rb +1 -1
- data/lib/pulp_container_client/models/container_tag_response.rb +1 -1
- data/lib/pulp_container_client/models/content_summary.rb +1 -1
- data/lib/pulp_container_client/models/content_summary_response.rb +1 -1
- data/lib/pulp_container_client/models/manifest_copy.rb +2 -2
- data/lib/pulp_container_client/models/media_types_enum.rb +1 -1
- data/lib/pulp_container_client/models/oci_build_image.rb +1 -1
- data/lib/pulp_container_client/models/paginated_repository_version_response_list.rb +1 -1
- data/lib/pulp_container_client/models/paginatedcontainer_blob_response_list.rb +1 -1
- data/lib/pulp_container_client/models/paginatedcontainer_container_distribution_response_list.rb +1 -1
- data/lib/pulp_container_client/models/paginatedcontainer_container_namespace_response_list.rb +1 -1
- data/lib/pulp_container_client/models/paginatedcontainer_container_push_repository_response_list.rb +1 -1
- data/lib/pulp_container_client/models/paginatedcontainer_container_remote_response_list.rb +1 -1
- data/lib/pulp_container_client/models/paginatedcontainer_container_repository_response_list.rb +1 -1
- data/lib/pulp_container_client/models/paginatedcontainer_content_redirect_content_guard_response_list.rb +1 -1
- data/lib/pulp_container_client/models/paginatedcontainer_manifest_response_list.rb +1 -1
- data/lib/pulp_container_client/models/paginatedcontainer_tag_response_list.rb +1 -1
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +21 -21
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +254 -0
- data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +19 -7
- data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +1 -1
- data/lib/pulp_container_client/models/patchedcontainer_content_redirect_content_guard.rb +1 -1
- data/lib/pulp_container_client/models/policy_enum.rb +1 -1
- data/lib/pulp_container_client/models/recursive_manage.rb +2 -2
- data/lib/pulp_container_client/models/remove_image.rb +1 -1
- data/lib/pulp_container_client/models/repository_sync_url.rb +1 -1
- data/lib/pulp_container_client/models/repository_version.rb +1 -1
- data/lib/pulp_container_client/models/repository_version_response.rb +1 -1
- data/lib/pulp_container_client/models/tag_copy.rb +2 -2
- data/lib/pulp_container_client/models/tag_image.rb +1 -1
- data/lib/pulp_container_client/models/un_tag_image.rb +1 -1
- data/lib/pulp_container_client/version.rb +2 -2
- data/pulp_container_client.gemspec +1 -1
- data/spec/api/content_blobs_api_spec.rb +1 -1
- data/spec/api/content_manifests_api_spec.rb +1 -1
- data/spec/api/content_tags_api_spec.rb +1 -1
- data/spec/api/contentguards_content_redirect_api_spec.rb +1 -1
- data/spec/api/distributions_container_api_spec.rb +1 -1
- data/spec/api/pulp_container_namespaces_api_spec.rb +1 -1
- data/spec/api/remotes_container_api_spec.rb +1 -1
- data/spec/api/repositories_container_api_spec.rb +1 -1
- data/spec/api/repositories_container_push_api_spec.rb +27 -1
- data/spec/api/repositories_container_push_versions_api_spec.rb +104 -0
- data/spec/api/repositories_container_versions_api_spec.rb +5 -74
- data/spec/api/token_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/container_blob_response_spec.rb +1 -1
- data/spec/models/container_container_distribution_response_spec.rb +8 -8
- data/spec/models/container_container_distribution_spec.rb +6 -6
- data/spec/models/container_container_namespace_response_spec.rb +1 -1
- data/spec/models/container_container_namespace_spec.rb +1 -1
- data/spec/models/container_container_push_repository_response_spec.rb +7 -13
- data/spec/models/container_container_push_repository_spec.rb +59 -0
- data/spec/models/container_container_remote_response_spec.rb +7 -1
- data/spec/models/container_container_remote_spec.rb +7 -1
- data/spec/models/container_container_repository_response_spec.rb +1 -1
- data/spec/models/container_container_repository_spec.rb +1 -1
- data/spec/models/container_content_redirect_content_guard_response_spec.rb +1 -1
- data/spec/models/container_content_redirect_content_guard_spec.rb +1 -1
- data/spec/models/container_manifest_response_spec.rb +1 -1
- data/spec/models/container_tag_response_spec.rb +1 -1
- data/spec/models/content_summary_response_spec.rb +1 -1
- data/spec/models/content_summary_spec.rb +1 -1
- data/spec/models/manifest_copy_spec.rb +1 -1
- data/spec/models/media_types_enum_spec.rb +1 -1
- data/spec/models/oci_build_image_spec.rb +1 -1
- data/spec/models/paginated_repository_version_response_list_spec.rb +1 -1
- data/spec/models/paginatedcontainer_blob_response_list_spec.rb +1 -1
- data/spec/models/paginatedcontainer_container_distribution_response_list_spec.rb +1 -1
- data/spec/models/paginatedcontainer_container_namespace_response_list_spec.rb +1 -1
- data/spec/models/paginatedcontainer_container_push_repository_response_list_spec.rb +1 -1
- data/spec/models/paginatedcontainer_container_remote_response_list_spec.rb +1 -1
- data/spec/models/paginatedcontainer_container_repository_response_list_spec.rb +1 -1
- data/spec/models/paginatedcontainer_content_redirect_content_guard_response_list_spec.rb +1 -1
- data/spec/models/paginatedcontainer_manifest_response_list_spec.rb +1 -1
- data/spec/models/paginatedcontainer_tag_response_list_spec.rb +1 -1
- data/spec/models/patchedcontainer_container_distribution_spec.rb +6 -6
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +59 -0
- data/spec/models/patchedcontainer_container_remote_spec.rb +7 -1
- data/spec/models/patchedcontainer_container_repository_spec.rb +1 -1
- data/spec/models/patchedcontainer_content_redirect_content_guard_spec.rb +1 -1
- data/spec/models/policy_enum_spec.rb +1 -1
- data/spec/models/recursive_manage_spec.rb +1 -1
- data/spec/models/remove_image_spec.rb +1 -1
- data/spec/models/repository_sync_url_spec.rb +1 -1
- data/spec/models/repository_version_response_spec.rb +1 -1
- data/spec/models/repository_version_spec.rb +1 -1
- data/spec/models/tag_copy_spec.rb +1 -1
- data/spec/models/tag_image_spec.rb +1 -1
- data/spec/models/un_tag_image_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +51 -39
data/docs/TagCopy.md
CHANGED
|
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
|
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**source_repository** | **String** | A URI of the repository to copy content from. | [optional]
|
|
8
8
|
**source_repository_version** | **String** | A URI of the repository version to copy content from. | [optional]
|
|
9
|
-
**names** | **Array<
|
|
9
|
+
**names** | [**Array<AnyType>**](AnyType.md) | A list of tag names to copy. | [optional]
|
|
10
10
|
|
|
11
11
|
## Code Sample
|
|
12
12
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
7
|
Contact: pulp-list@redhat.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 4.
|
|
9
|
+
OpenAPI Generator version: 4.3.1
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -23,6 +23,7 @@ require 'pulp_container_client/models/container_container_distribution'
|
|
|
23
23
|
require 'pulp_container_client/models/container_container_distribution_response'
|
|
24
24
|
require 'pulp_container_client/models/container_container_namespace'
|
|
25
25
|
require 'pulp_container_client/models/container_container_namespace_response'
|
|
26
|
+
require 'pulp_container_client/models/container_container_push_repository'
|
|
26
27
|
require 'pulp_container_client/models/container_container_push_repository_response'
|
|
27
28
|
require 'pulp_container_client/models/container_container_remote'
|
|
28
29
|
require 'pulp_container_client/models/container_container_remote_response'
|
|
@@ -48,6 +49,7 @@ require 'pulp_container_client/models/paginatedcontainer_content_redirect_conten
|
|
|
48
49
|
require 'pulp_container_client/models/paginatedcontainer_manifest_response_list'
|
|
49
50
|
require 'pulp_container_client/models/paginatedcontainer_tag_response_list'
|
|
50
51
|
require 'pulp_container_client/models/patchedcontainer_container_distribution'
|
|
52
|
+
require 'pulp_container_client/models/patchedcontainer_container_push_repository'
|
|
51
53
|
require 'pulp_container_client/models/patchedcontainer_container_remote'
|
|
52
54
|
require 'pulp_container_client/models/patchedcontainer_container_repository'
|
|
53
55
|
require 'pulp_container_client/models/patchedcontainer_content_redirect_content_guard'
|
|
@@ -71,6 +73,7 @@ require 'pulp_container_client/api/pulp_container_namespaces_api'
|
|
|
71
73
|
require 'pulp_container_client/api/remotes_container_api'
|
|
72
74
|
require 'pulp_container_client/api/repositories_container_api'
|
|
73
75
|
require 'pulp_container_client/api/repositories_container_push_api'
|
|
76
|
+
require 'pulp_container_client/api/repositories_container_push_versions_api'
|
|
74
77
|
require 'pulp_container_client/api/repositories_container_versions_api'
|
|
75
78
|
require 'pulp_container_client/api/token_api'
|
|
76
79
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: v3
|
|
7
7
|
Contact: pulp-list@redhat.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 4.
|
|
9
|
+
OpenAPI Generator version: 4.3.1
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -108,6 +108,76 @@ module PulpContainerClient
|
|
|
108
108
|
return data, status_code, headers
|
|
109
109
|
end
|
|
110
110
|
|
|
111
|
+
# Update a container push repository
|
|
112
|
+
# Trigger an asynchronous partial update task
|
|
113
|
+
# @param container_container_push_repository_href [String]
|
|
114
|
+
# @param patchedcontainer_container_push_repository [PatchedcontainerContainerPushRepository]
|
|
115
|
+
# @param [Hash] opts the optional parameters
|
|
116
|
+
# @return [AsyncOperationResponse]
|
|
117
|
+
def partial_update(container_container_push_repository_href, patchedcontainer_container_push_repository, opts = {})
|
|
118
|
+
data, _status_code, _headers = partial_update_with_http_info(container_container_push_repository_href, patchedcontainer_container_push_repository, opts)
|
|
119
|
+
data
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
# Update a container push repository
|
|
123
|
+
# Trigger an asynchronous partial update task
|
|
124
|
+
# @param container_container_push_repository_href [String]
|
|
125
|
+
# @param patchedcontainer_container_push_repository [PatchedcontainerContainerPushRepository]
|
|
126
|
+
# @param [Hash] opts the optional parameters
|
|
127
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
128
|
+
def partial_update_with_http_info(container_container_push_repository_href, patchedcontainer_container_push_repository, opts = {})
|
|
129
|
+
if @api_client.config.debugging
|
|
130
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesContainerPushApi.partial_update ...'
|
|
131
|
+
end
|
|
132
|
+
# verify the required parameter 'container_container_push_repository_href' is set
|
|
133
|
+
if @api_client.config.client_side_validation && container_container_push_repository_href.nil?
|
|
134
|
+
fail ArgumentError, "Missing the required parameter 'container_container_push_repository_href' when calling RepositoriesContainerPushApi.partial_update"
|
|
135
|
+
end
|
|
136
|
+
# verify the required parameter 'patchedcontainer_container_push_repository' is set
|
|
137
|
+
if @api_client.config.client_side_validation && patchedcontainer_container_push_repository.nil?
|
|
138
|
+
fail ArgumentError, "Missing the required parameter 'patchedcontainer_container_push_repository' when calling RepositoriesContainerPushApi.partial_update"
|
|
139
|
+
end
|
|
140
|
+
# resource path
|
|
141
|
+
local_var_path = '{container_container_push_repository_href}'.sub('{' + 'container_container_push_repository_href' + '}', CGI.escape(container_container_push_repository_href.to_s).gsub('%2F', '/'))
|
|
142
|
+
|
|
143
|
+
# query parameters
|
|
144
|
+
query_params = opts[:query_params] || {}
|
|
145
|
+
|
|
146
|
+
# header parameters
|
|
147
|
+
header_params = opts[:header_params] || {}
|
|
148
|
+
# HTTP header 'Accept' (if needed)
|
|
149
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
150
|
+
# HTTP header 'Content-Type'
|
|
151
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
|
152
|
+
|
|
153
|
+
# form parameters
|
|
154
|
+
form_params = opts[:form_params] || {}
|
|
155
|
+
|
|
156
|
+
# http body (model)
|
|
157
|
+
post_body = opts[:body] || @api_client.object_to_http_body(patchedcontainer_container_push_repository)
|
|
158
|
+
|
|
159
|
+
# return_type
|
|
160
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
|
161
|
+
|
|
162
|
+
# auth_names
|
|
163
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
164
|
+
|
|
165
|
+
new_options = opts.merge(
|
|
166
|
+
:header_params => header_params,
|
|
167
|
+
:query_params => query_params,
|
|
168
|
+
:form_params => form_params,
|
|
169
|
+
:body => post_body,
|
|
170
|
+
:auth_names => auth_names,
|
|
171
|
+
:return_type => return_type
|
|
172
|
+
)
|
|
173
|
+
|
|
174
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
175
|
+
if @api_client.config.debugging
|
|
176
|
+
@api_client.config.logger.debug "API called: RepositoriesContainerPushApi#partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
177
|
+
end
|
|
178
|
+
return data, status_code, headers
|
|
179
|
+
end
|
|
180
|
+
|
|
111
181
|
# Inspect a container push repository
|
|
112
182
|
# ViewSet for a container push repository. POST and DELETE are disallowed because a push repository is tightly coupled with a ContainerDistribution which handles it automatically. Created - during push operation, removed - with ContainerDistribution removal.
|
|
113
183
|
# @param container_container_push_repository_href [String]
|
|
@@ -385,5 +455,75 @@ module PulpContainerClient
|
|
|
385
455
|
end
|
|
386
456
|
return data, status_code, headers
|
|
387
457
|
end
|
|
458
|
+
|
|
459
|
+
# Update a container push repository
|
|
460
|
+
# Trigger an asynchronous update task
|
|
461
|
+
# @param container_container_push_repository_href [String]
|
|
462
|
+
# @param container_container_push_repository [ContainerContainerPushRepository]
|
|
463
|
+
# @param [Hash] opts the optional parameters
|
|
464
|
+
# @return [AsyncOperationResponse]
|
|
465
|
+
def update(container_container_push_repository_href, container_container_push_repository, opts = {})
|
|
466
|
+
data, _status_code, _headers = update_with_http_info(container_container_push_repository_href, container_container_push_repository, opts)
|
|
467
|
+
data
|
|
468
|
+
end
|
|
469
|
+
|
|
470
|
+
# Update a container push repository
|
|
471
|
+
# Trigger an asynchronous update task
|
|
472
|
+
# @param container_container_push_repository_href [String]
|
|
473
|
+
# @param container_container_push_repository [ContainerContainerPushRepository]
|
|
474
|
+
# @param [Hash] opts the optional parameters
|
|
475
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
476
|
+
def update_with_http_info(container_container_push_repository_href, container_container_push_repository, opts = {})
|
|
477
|
+
if @api_client.config.debugging
|
|
478
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesContainerPushApi.update ...'
|
|
479
|
+
end
|
|
480
|
+
# verify the required parameter 'container_container_push_repository_href' is set
|
|
481
|
+
if @api_client.config.client_side_validation && container_container_push_repository_href.nil?
|
|
482
|
+
fail ArgumentError, "Missing the required parameter 'container_container_push_repository_href' when calling RepositoriesContainerPushApi.update"
|
|
483
|
+
end
|
|
484
|
+
# verify the required parameter 'container_container_push_repository' is set
|
|
485
|
+
if @api_client.config.client_side_validation && container_container_push_repository.nil?
|
|
486
|
+
fail ArgumentError, "Missing the required parameter 'container_container_push_repository' when calling RepositoriesContainerPushApi.update"
|
|
487
|
+
end
|
|
488
|
+
# resource path
|
|
489
|
+
local_var_path = '{container_container_push_repository_href}'.sub('{' + 'container_container_push_repository_href' + '}', CGI.escape(container_container_push_repository_href.to_s).gsub('%2F', '/'))
|
|
490
|
+
|
|
491
|
+
# query parameters
|
|
492
|
+
query_params = opts[:query_params] || {}
|
|
493
|
+
|
|
494
|
+
# header parameters
|
|
495
|
+
header_params = opts[:header_params] || {}
|
|
496
|
+
# HTTP header 'Accept' (if needed)
|
|
497
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
498
|
+
# HTTP header 'Content-Type'
|
|
499
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
|
500
|
+
|
|
501
|
+
# form parameters
|
|
502
|
+
form_params = opts[:form_params] || {}
|
|
503
|
+
|
|
504
|
+
# http body (model)
|
|
505
|
+
post_body = opts[:body] || @api_client.object_to_http_body(container_container_push_repository)
|
|
506
|
+
|
|
507
|
+
# return_type
|
|
508
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
|
509
|
+
|
|
510
|
+
# auth_names
|
|
511
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
512
|
+
|
|
513
|
+
new_options = opts.merge(
|
|
514
|
+
:header_params => header_params,
|
|
515
|
+
:query_params => query_params,
|
|
516
|
+
:form_params => form_params,
|
|
517
|
+
:body => post_body,
|
|
518
|
+
:auth_names => auth_names,
|
|
519
|
+
:return_type => return_type
|
|
520
|
+
)
|
|
521
|
+
|
|
522
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
523
|
+
if @api_client.config.debugging
|
|
524
|
+
@api_client.config.logger.debug "API called: RepositoriesContainerPushApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
525
|
+
end
|
|
526
|
+
return data, status_code, headers
|
|
527
|
+
end
|
|
388
528
|
end
|
|
389
529
|
end
|
|
@@ -0,0 +1,339 @@
|
|
|
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 PulpContainerClient
|
|
16
|
+
class RepositoriesContainerPushVersionsApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Delete a repository version
|
|
23
|
+
# Trigger an asynchronous task to delete a repository version.
|
|
24
|
+
# @param container_container_push_repository_version_href [String]
|
|
25
|
+
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @return [AsyncOperationResponse]
|
|
27
|
+
def delete(container_container_push_repository_version_href, opts = {})
|
|
28
|
+
data, _status_code, _headers = delete_with_http_info(container_container_push_repository_version_href, opts)
|
|
29
|
+
data
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Delete a repository version
|
|
33
|
+
# Trigger an asynchronous task to delete a repository version.
|
|
34
|
+
# @param container_container_push_repository_version_href [String]
|
|
35
|
+
# @param [Hash] opts the optional parameters
|
|
36
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
37
|
+
def delete_with_http_info(container_container_push_repository_version_href, opts = {})
|
|
38
|
+
if @api_client.config.debugging
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesContainerPushVersionsApi.delete ...'
|
|
40
|
+
end
|
|
41
|
+
# verify the required parameter 'container_container_push_repository_version_href' is set
|
|
42
|
+
if @api_client.config.client_side_validation && container_container_push_repository_version_href.nil?
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'container_container_push_repository_version_href' when calling RepositoriesContainerPushVersionsApi.delete"
|
|
44
|
+
end
|
|
45
|
+
# resource path
|
|
46
|
+
local_var_path = '{container_container_push_repository_version_href}'.sub('{' + 'container_container_push_repository_version_href' + '}', CGI.escape(container_container_push_repository_version_href.to_s).gsub('%2F', '/'))
|
|
47
|
+
|
|
48
|
+
# query parameters
|
|
49
|
+
query_params = opts[:query_params] || {}
|
|
50
|
+
|
|
51
|
+
# header parameters
|
|
52
|
+
header_params = opts[:header_params] || {}
|
|
53
|
+
# HTTP header 'Accept' (if needed)
|
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
55
|
+
|
|
56
|
+
# form parameters
|
|
57
|
+
form_params = opts[:form_params] || {}
|
|
58
|
+
|
|
59
|
+
# http body (model)
|
|
60
|
+
post_body = opts[:body]
|
|
61
|
+
|
|
62
|
+
# return_type
|
|
63
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
|
64
|
+
|
|
65
|
+
# auth_names
|
|
66
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
67
|
+
|
|
68
|
+
new_options = opts.merge(
|
|
69
|
+
:header_params => header_params,
|
|
70
|
+
:query_params => query_params,
|
|
71
|
+
:form_params => form_params,
|
|
72
|
+
:body => post_body,
|
|
73
|
+
:auth_names => auth_names,
|
|
74
|
+
:return_type => return_type
|
|
75
|
+
)
|
|
76
|
+
|
|
77
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
78
|
+
if @api_client.config.debugging
|
|
79
|
+
@api_client.config.logger.debug "API called: RepositoriesContainerPushVersionsApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
80
|
+
end
|
|
81
|
+
return data, status_code, headers
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# List repository versions
|
|
85
|
+
# ContainerPushRepositoryVersion represents a single container push repository version. Repository versions of a push repository are not allowed to be deleted. Versioning of such repositories, as well as creation/removal, happens automatically without explicit user actions. Users could make a repository not functional by accident if allowed to delete repository versions.
|
|
86
|
+
# @param container_container_push_repository_href [String]
|
|
87
|
+
# @param [Hash] opts the optional parameters
|
|
88
|
+
# @option opts [String] :content Content Unit referenced by HREF
|
|
89
|
+
# @option opts [String] :content__in Content Unit referenced by HREF
|
|
90
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
91
|
+
# @option opts [Integer] :number
|
|
92
|
+
# @option opts [Integer] :number__gt Filter results where number is greater than value
|
|
93
|
+
# @option opts [Integer] :number__gte Filter results where number is greater than or equal to value
|
|
94
|
+
# @option opts [Integer] :number__lt Filter results where number is less than value
|
|
95
|
+
# @option opts [Integer] :number__lte Filter results where number is less than or equal to value
|
|
96
|
+
# @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
|
|
97
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
98
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
99
|
+
# @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
|
|
100
|
+
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
|
101
|
+
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
|
102
|
+
# @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
|
|
103
|
+
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
|
104
|
+
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
|
105
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
|
106
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
107
|
+
# @return [PaginatedRepositoryVersionResponseList]
|
|
108
|
+
def list(container_container_push_repository_href, opts = {})
|
|
109
|
+
data, _status_code, _headers = list_with_http_info(container_container_push_repository_href, opts)
|
|
110
|
+
data
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
# List repository versions
|
|
114
|
+
# ContainerPushRepositoryVersion represents a single container push repository version. Repository versions of a push repository are not allowed to be deleted. Versioning of such repositories, as well as creation/removal, happens automatically without explicit user actions. Users could make a repository not functional by accident if allowed to delete repository versions.
|
|
115
|
+
# @param container_container_push_repository_href [String]
|
|
116
|
+
# @param [Hash] opts the optional parameters
|
|
117
|
+
# @option opts [String] :content Content Unit referenced by HREF
|
|
118
|
+
# @option opts [String] :content__in Content Unit referenced by HREF
|
|
119
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
120
|
+
# @option opts [Integer] :number
|
|
121
|
+
# @option opts [Integer] :number__gt Filter results where number is greater than value
|
|
122
|
+
# @option opts [Integer] :number__gte Filter results where number is greater than or equal to value
|
|
123
|
+
# @option opts [Integer] :number__lt Filter results where number is less than value
|
|
124
|
+
# @option opts [Integer] :number__lte Filter results where number is less than or equal to value
|
|
125
|
+
# @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
|
|
126
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
127
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
128
|
+
# @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
|
|
129
|
+
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
|
130
|
+
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
|
131
|
+
# @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
|
|
132
|
+
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
|
133
|
+
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
|
134
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
|
135
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
136
|
+
# @return [Array<(PaginatedRepositoryVersionResponseList, Integer, Hash)>] PaginatedRepositoryVersionResponseList data, response status code and response headers
|
|
137
|
+
def list_with_http_info(container_container_push_repository_href, opts = {})
|
|
138
|
+
if @api_client.config.debugging
|
|
139
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesContainerPushVersionsApi.list ...'
|
|
140
|
+
end
|
|
141
|
+
# verify the required parameter 'container_container_push_repository_href' is set
|
|
142
|
+
if @api_client.config.client_side_validation && container_container_push_repository_href.nil?
|
|
143
|
+
fail ArgumentError, "Missing the required parameter 'container_container_push_repository_href' when calling RepositoriesContainerPushVersionsApi.list"
|
|
144
|
+
end
|
|
145
|
+
# resource path
|
|
146
|
+
local_var_path = '{container_container_push_repository_href}versions/'.sub('{' + 'container_container_push_repository_href' + '}', CGI.escape(container_container_push_repository_href.to_s).gsub('%2F', '/'))
|
|
147
|
+
|
|
148
|
+
# query parameters
|
|
149
|
+
query_params = opts[:query_params] || {}
|
|
150
|
+
query_params[:'content'] = opts[:'content'] if !opts[:'content'].nil?
|
|
151
|
+
query_params[:'content__in'] = opts[:'content__in'] if !opts[:'content__in'].nil?
|
|
152
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
153
|
+
query_params[:'number'] = opts[:'number'] if !opts[:'number'].nil?
|
|
154
|
+
query_params[:'number__gt'] = opts[:'number__gt'] if !opts[:'number__gt'].nil?
|
|
155
|
+
query_params[:'number__gte'] = opts[:'number__gte'] if !opts[:'number__gte'].nil?
|
|
156
|
+
query_params[:'number__lt'] = opts[:'number__lt'] if !opts[:'number__lt'].nil?
|
|
157
|
+
query_params[:'number__lte'] = opts[:'number__lte'] if !opts[:'number__lte'].nil?
|
|
158
|
+
query_params[:'number__range'] = @api_client.build_collection_param(opts[:'number__range'], :csv) if !opts[:'number__range'].nil?
|
|
159
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
160
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
|
161
|
+
query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
|
|
162
|
+
query_params[:'pulp_created__gt'] = opts[:'pulp_created__gt'] if !opts[:'pulp_created__gt'].nil?
|
|
163
|
+
query_params[:'pulp_created__gte'] = opts[:'pulp_created__gte'] if !opts[:'pulp_created__gte'].nil?
|
|
164
|
+
query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
|
|
165
|
+
query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
|
|
166
|
+
query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
|
|
167
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
|
168
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
|
169
|
+
|
|
170
|
+
# header parameters
|
|
171
|
+
header_params = opts[:header_params] || {}
|
|
172
|
+
# HTTP header 'Accept' (if needed)
|
|
173
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
174
|
+
|
|
175
|
+
# form parameters
|
|
176
|
+
form_params = opts[:form_params] || {}
|
|
177
|
+
|
|
178
|
+
# http body (model)
|
|
179
|
+
post_body = opts[:body]
|
|
180
|
+
|
|
181
|
+
# return_type
|
|
182
|
+
return_type = opts[:return_type] || 'PaginatedRepositoryVersionResponseList'
|
|
183
|
+
|
|
184
|
+
# auth_names
|
|
185
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
186
|
+
|
|
187
|
+
new_options = opts.merge(
|
|
188
|
+
:header_params => header_params,
|
|
189
|
+
:query_params => query_params,
|
|
190
|
+
:form_params => form_params,
|
|
191
|
+
:body => post_body,
|
|
192
|
+
:auth_names => auth_names,
|
|
193
|
+
:return_type => return_type
|
|
194
|
+
)
|
|
195
|
+
|
|
196
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
197
|
+
if @api_client.config.debugging
|
|
198
|
+
@api_client.config.logger.debug "API called: RepositoriesContainerPushVersionsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
199
|
+
end
|
|
200
|
+
return data, status_code, headers
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
# Inspect a repository version
|
|
204
|
+
# ContainerPushRepositoryVersion represents a single container push repository version. Repository versions of a push repository are not allowed to be deleted. Versioning of such repositories, as well as creation/removal, happens automatically without explicit user actions. Users could make a repository not functional by accident if allowed to delete repository versions.
|
|
205
|
+
# @param container_container_push_repository_version_href [String]
|
|
206
|
+
# @param [Hash] opts the optional parameters
|
|
207
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
|
208
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
209
|
+
# @return [RepositoryVersionResponse]
|
|
210
|
+
def read(container_container_push_repository_version_href, opts = {})
|
|
211
|
+
data, _status_code, _headers = read_with_http_info(container_container_push_repository_version_href, opts)
|
|
212
|
+
data
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
# Inspect a repository version
|
|
216
|
+
# ContainerPushRepositoryVersion represents a single container push repository version. Repository versions of a push repository are not allowed to be deleted. Versioning of such repositories, as well as creation/removal, happens automatically without explicit user actions. Users could make a repository not functional by accident if allowed to delete repository versions.
|
|
217
|
+
# @param container_container_push_repository_version_href [String]
|
|
218
|
+
# @param [Hash] opts the optional parameters
|
|
219
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
|
220
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
221
|
+
# @return [Array<(RepositoryVersionResponse, Integer, Hash)>] RepositoryVersionResponse data, response status code and response headers
|
|
222
|
+
def read_with_http_info(container_container_push_repository_version_href, opts = {})
|
|
223
|
+
if @api_client.config.debugging
|
|
224
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesContainerPushVersionsApi.read ...'
|
|
225
|
+
end
|
|
226
|
+
# verify the required parameter 'container_container_push_repository_version_href' is set
|
|
227
|
+
if @api_client.config.client_side_validation && container_container_push_repository_version_href.nil?
|
|
228
|
+
fail ArgumentError, "Missing the required parameter 'container_container_push_repository_version_href' when calling RepositoriesContainerPushVersionsApi.read"
|
|
229
|
+
end
|
|
230
|
+
# resource path
|
|
231
|
+
local_var_path = '{container_container_push_repository_version_href}'.sub('{' + 'container_container_push_repository_version_href' + '}', CGI.escape(container_container_push_repository_version_href.to_s).gsub('%2F', '/'))
|
|
232
|
+
|
|
233
|
+
# query parameters
|
|
234
|
+
query_params = opts[:query_params] || {}
|
|
235
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
|
236
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
|
237
|
+
|
|
238
|
+
# header parameters
|
|
239
|
+
header_params = opts[:header_params] || {}
|
|
240
|
+
# HTTP header 'Accept' (if needed)
|
|
241
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
242
|
+
|
|
243
|
+
# form parameters
|
|
244
|
+
form_params = opts[:form_params] || {}
|
|
245
|
+
|
|
246
|
+
# http body (model)
|
|
247
|
+
post_body = opts[:body]
|
|
248
|
+
|
|
249
|
+
# return_type
|
|
250
|
+
return_type = opts[:return_type] || 'RepositoryVersionResponse'
|
|
251
|
+
|
|
252
|
+
# auth_names
|
|
253
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
254
|
+
|
|
255
|
+
new_options = opts.merge(
|
|
256
|
+
:header_params => header_params,
|
|
257
|
+
:query_params => query_params,
|
|
258
|
+
:form_params => form_params,
|
|
259
|
+
:body => post_body,
|
|
260
|
+
:auth_names => auth_names,
|
|
261
|
+
:return_type => return_type
|
|
262
|
+
)
|
|
263
|
+
|
|
264
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
265
|
+
if @api_client.config.debugging
|
|
266
|
+
@api_client.config.logger.debug "API called: RepositoriesContainerPushVersionsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
267
|
+
end
|
|
268
|
+
return data, status_code, headers
|
|
269
|
+
end
|
|
270
|
+
|
|
271
|
+
# Trigger an asynchronous task to repair a repository version.
|
|
272
|
+
# @param container_container_push_repository_version_href [String]
|
|
273
|
+
# @param repository_version [RepositoryVersion]
|
|
274
|
+
# @param [Hash] opts the optional parameters
|
|
275
|
+
# @return [AsyncOperationResponse]
|
|
276
|
+
def repair(container_container_push_repository_version_href, repository_version, opts = {})
|
|
277
|
+
data, _status_code, _headers = repair_with_http_info(container_container_push_repository_version_href, repository_version, opts)
|
|
278
|
+
data
|
|
279
|
+
end
|
|
280
|
+
|
|
281
|
+
# Trigger an asynchronous task to repair a repository version.
|
|
282
|
+
# @param container_container_push_repository_version_href [String]
|
|
283
|
+
# @param repository_version [RepositoryVersion]
|
|
284
|
+
# @param [Hash] opts the optional parameters
|
|
285
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
286
|
+
def repair_with_http_info(container_container_push_repository_version_href, repository_version, opts = {})
|
|
287
|
+
if @api_client.config.debugging
|
|
288
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesContainerPushVersionsApi.repair ...'
|
|
289
|
+
end
|
|
290
|
+
# verify the required parameter 'container_container_push_repository_version_href' is set
|
|
291
|
+
if @api_client.config.client_side_validation && container_container_push_repository_version_href.nil?
|
|
292
|
+
fail ArgumentError, "Missing the required parameter 'container_container_push_repository_version_href' when calling RepositoriesContainerPushVersionsApi.repair"
|
|
293
|
+
end
|
|
294
|
+
# verify the required parameter 'repository_version' is set
|
|
295
|
+
if @api_client.config.client_side_validation && repository_version.nil?
|
|
296
|
+
fail ArgumentError, "Missing the required parameter 'repository_version' when calling RepositoriesContainerPushVersionsApi.repair"
|
|
297
|
+
end
|
|
298
|
+
# resource path
|
|
299
|
+
local_var_path = '{container_container_push_repository_version_href}repair/'.sub('{' + 'container_container_push_repository_version_href' + '}', CGI.escape(container_container_push_repository_version_href.to_s).gsub('%2F', '/'))
|
|
300
|
+
|
|
301
|
+
# query parameters
|
|
302
|
+
query_params = opts[:query_params] || {}
|
|
303
|
+
|
|
304
|
+
# header parameters
|
|
305
|
+
header_params = opts[:header_params] || {}
|
|
306
|
+
# HTTP header 'Accept' (if needed)
|
|
307
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
308
|
+
# HTTP header 'Content-Type'
|
|
309
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
|
310
|
+
|
|
311
|
+
# form parameters
|
|
312
|
+
form_params = opts[:form_params] || {}
|
|
313
|
+
|
|
314
|
+
# http body (model)
|
|
315
|
+
post_body = opts[:body] || @api_client.object_to_http_body(repository_version)
|
|
316
|
+
|
|
317
|
+
# return_type
|
|
318
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
|
319
|
+
|
|
320
|
+
# auth_names
|
|
321
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
322
|
+
|
|
323
|
+
new_options = opts.merge(
|
|
324
|
+
:header_params => header_params,
|
|
325
|
+
:query_params => query_params,
|
|
326
|
+
:form_params => form_params,
|
|
327
|
+
:body => post_body,
|
|
328
|
+
:auth_names => auth_names,
|
|
329
|
+
:return_type => return_type
|
|
330
|
+
)
|
|
331
|
+
|
|
332
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
333
|
+
if @api_client.config.debugging
|
|
334
|
+
@api_client.config.logger.debug "API called: RepositoriesContainerPushVersionsApi#repair\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
335
|
+
end
|
|
336
|
+
return data, status_code, headers
|
|
337
|
+
end
|
|
338
|
+
end
|
|
339
|
+
end
|