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
|
@@ -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
|
|
|
@@ -19,75 +19,13 @@ module PulpContainerClient
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
20
20
|
@api_client = api_client
|
|
21
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: RepositoriesContainerVersionsApi.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 RepositoriesContainerVersionsApi.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: RepositoriesContainerVersionsApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
80
|
-
end
|
|
81
|
-
return data, status_code, headers
|
|
82
|
-
end
|
|
83
|
-
|
|
84
22
|
# Delete a repository version
|
|
85
23
|
# Trigger an asynchronous task to delete a repository version.
|
|
86
24
|
# @param container_container_repository_version_href [String]
|
|
87
25
|
# @param [Hash] opts the optional parameters
|
|
88
26
|
# @return [AsyncOperationResponse]
|
|
89
|
-
def
|
|
90
|
-
data, _status_code, _headers =
|
|
27
|
+
def delete(container_container_repository_version_href, opts = {})
|
|
28
|
+
data, _status_code, _headers = delete_with_http_info(container_container_repository_version_href, opts)
|
|
91
29
|
data
|
|
92
30
|
end
|
|
93
31
|
|
|
@@ -96,13 +34,13 @@ module PulpContainerClient
|
|
|
96
34
|
# @param container_container_repository_version_href [String]
|
|
97
35
|
# @param [Hash] opts the optional parameters
|
|
98
36
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
99
|
-
def
|
|
37
|
+
def delete_with_http_info(container_container_repository_version_href, opts = {})
|
|
100
38
|
if @api_client.config.debugging
|
|
101
|
-
@api_client.config.logger.debug 'Calling API: RepositoriesContainerVersionsApi.
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesContainerVersionsApi.delete ...'
|
|
102
40
|
end
|
|
103
41
|
# verify the required parameter 'container_container_repository_version_href' is set
|
|
104
42
|
if @api_client.config.client_side_validation && container_container_repository_version_href.nil?
|
|
105
|
-
fail ArgumentError, "Missing the required parameter 'container_container_repository_version_href' when calling RepositoriesContainerVersionsApi.
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'container_container_repository_version_href' when calling RepositoriesContainerVersionsApi.delete"
|
|
106
44
|
end
|
|
107
45
|
# resource path
|
|
108
46
|
local_var_path = '{container_container_repository_version_href}'.sub('{' + 'container_container_repository_version_href' + '}', CGI.escape(container_container_repository_version_href.to_s).gsub('%2F', '/'))
|
|
@@ -138,126 +76,7 @@ module PulpContainerClient
|
|
|
138
76
|
|
|
139
77
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
140
78
|
if @api_client.config.debugging
|
|
141
|
-
@api_client.config.logger.debug "API called: RepositoriesContainerVersionsApi#
|
|
142
|
-
end
|
|
143
|
-
return data, status_code, headers
|
|
144
|
-
end
|
|
145
|
-
|
|
146
|
-
# List repository versions
|
|
147
|
-
# 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.
|
|
148
|
-
# @param container_container_push_repository_href [String]
|
|
149
|
-
# @param [Hash] opts the optional parameters
|
|
150
|
-
# @option opts [String] :content Content Unit referenced by HREF
|
|
151
|
-
# @option opts [String] :content__in Content Unit referenced by HREF
|
|
152
|
-
# @option opts [Integer] :limit Number of results to return per page.
|
|
153
|
-
# @option opts [Integer] :number
|
|
154
|
-
# @option opts [Integer] :number__gt Filter results where number is greater than value
|
|
155
|
-
# @option opts [Integer] :number__gte Filter results where number is greater than or equal to value
|
|
156
|
-
# @option opts [Integer] :number__lt Filter results where number is less than value
|
|
157
|
-
# @option opts [Integer] :number__lte Filter results where number is less than or equal to value
|
|
158
|
-
# @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
|
|
159
|
-
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
160
|
-
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
161
|
-
# @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
|
|
162
|
-
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
|
163
|
-
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
|
164
|
-
# @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
|
|
165
|
-
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
|
166
|
-
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
|
167
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
|
168
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
169
|
-
# @return [PaginatedRepositoryVersionResponseList]
|
|
170
|
-
def list(container_container_push_repository_href, opts = {})
|
|
171
|
-
data, _status_code, _headers = list_with_http_info(container_container_push_repository_href, opts)
|
|
172
|
-
data
|
|
173
|
-
end
|
|
174
|
-
|
|
175
|
-
# List repository versions
|
|
176
|
-
# 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.
|
|
177
|
-
# @param container_container_push_repository_href [String]
|
|
178
|
-
# @param [Hash] opts the optional parameters
|
|
179
|
-
# @option opts [String] :content Content Unit referenced by HREF
|
|
180
|
-
# @option opts [String] :content__in Content Unit referenced by HREF
|
|
181
|
-
# @option opts [Integer] :limit Number of results to return per page.
|
|
182
|
-
# @option opts [Integer] :number
|
|
183
|
-
# @option opts [Integer] :number__gt Filter results where number is greater than value
|
|
184
|
-
# @option opts [Integer] :number__gte Filter results where number is greater than or equal to value
|
|
185
|
-
# @option opts [Integer] :number__lt Filter results where number is less than value
|
|
186
|
-
# @option opts [Integer] :number__lte Filter results where number is less than or equal to value
|
|
187
|
-
# @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
|
|
188
|
-
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
189
|
-
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
190
|
-
# @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
|
|
191
|
-
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
|
192
|
-
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
|
193
|
-
# @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
|
|
194
|
-
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
|
195
|
-
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
|
196
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
|
197
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
198
|
-
# @return [Array<(PaginatedRepositoryVersionResponseList, Integer, Hash)>] PaginatedRepositoryVersionResponseList data, response status code and response headers
|
|
199
|
-
def list_with_http_info(container_container_push_repository_href, opts = {})
|
|
200
|
-
if @api_client.config.debugging
|
|
201
|
-
@api_client.config.logger.debug 'Calling API: RepositoriesContainerVersionsApi.list ...'
|
|
202
|
-
end
|
|
203
|
-
# verify the required parameter 'container_container_push_repository_href' is set
|
|
204
|
-
if @api_client.config.client_side_validation && container_container_push_repository_href.nil?
|
|
205
|
-
fail ArgumentError, "Missing the required parameter 'container_container_push_repository_href' when calling RepositoriesContainerVersionsApi.list"
|
|
206
|
-
end
|
|
207
|
-
# resource path
|
|
208
|
-
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', '/'))
|
|
209
|
-
|
|
210
|
-
# query parameters
|
|
211
|
-
query_params = opts[:query_params] || {}
|
|
212
|
-
query_params[:'content'] = opts[:'content'] if !opts[:'content'].nil?
|
|
213
|
-
query_params[:'content__in'] = opts[:'content__in'] if !opts[:'content__in'].nil?
|
|
214
|
-
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
215
|
-
query_params[:'number'] = opts[:'number'] if !opts[:'number'].nil?
|
|
216
|
-
query_params[:'number__gt'] = opts[:'number__gt'] if !opts[:'number__gt'].nil?
|
|
217
|
-
query_params[:'number__gte'] = opts[:'number__gte'] if !opts[:'number__gte'].nil?
|
|
218
|
-
query_params[:'number__lt'] = opts[:'number__lt'] if !opts[:'number__lt'].nil?
|
|
219
|
-
query_params[:'number__lte'] = opts[:'number__lte'] if !opts[:'number__lte'].nil?
|
|
220
|
-
query_params[:'number__range'] = @api_client.build_collection_param(opts[:'number__range'], :csv) if !opts[:'number__range'].nil?
|
|
221
|
-
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
222
|
-
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
|
223
|
-
query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
|
|
224
|
-
query_params[:'pulp_created__gt'] = opts[:'pulp_created__gt'] if !opts[:'pulp_created__gt'].nil?
|
|
225
|
-
query_params[:'pulp_created__gte'] = opts[:'pulp_created__gte'] if !opts[:'pulp_created__gte'].nil?
|
|
226
|
-
query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
|
|
227
|
-
query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
|
|
228
|
-
query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
|
|
229
|
-
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
|
230
|
-
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
|
231
|
-
|
|
232
|
-
# header parameters
|
|
233
|
-
header_params = opts[:header_params] || {}
|
|
234
|
-
# HTTP header 'Accept' (if needed)
|
|
235
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
236
|
-
|
|
237
|
-
# form parameters
|
|
238
|
-
form_params = opts[:form_params] || {}
|
|
239
|
-
|
|
240
|
-
# http body (model)
|
|
241
|
-
post_body = opts[:body]
|
|
242
|
-
|
|
243
|
-
# return_type
|
|
244
|
-
return_type = opts[:return_type] || 'PaginatedRepositoryVersionResponseList'
|
|
245
|
-
|
|
246
|
-
# auth_names
|
|
247
|
-
auth_names = opts[:auth_names] || ['basicAuth']
|
|
248
|
-
|
|
249
|
-
new_options = opts.merge(
|
|
250
|
-
:header_params => header_params,
|
|
251
|
-
:query_params => query_params,
|
|
252
|
-
:form_params => form_params,
|
|
253
|
-
:body => post_body,
|
|
254
|
-
:auth_names => auth_names,
|
|
255
|
-
:return_type => return_type
|
|
256
|
-
)
|
|
257
|
-
|
|
258
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
259
|
-
if @api_client.config.debugging
|
|
260
|
-
@api_client.config.logger.debug "API called: RepositoriesContainerVersionsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
79
|
+
@api_client.config.logger.debug "API called: RepositoriesContainerVersionsApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
261
80
|
end
|
|
262
81
|
return data, status_code, headers
|
|
263
82
|
end
|
|
@@ -286,8 +105,8 @@ module PulpContainerClient
|
|
|
286
105
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
287
106
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
288
107
|
# @return [PaginatedRepositoryVersionResponseList]
|
|
289
|
-
def
|
|
290
|
-
data, _status_code, _headers =
|
|
108
|
+
def list(container_container_repository_href, opts = {})
|
|
109
|
+
data, _status_code, _headers = list_with_http_info(container_container_repository_href, opts)
|
|
291
110
|
data
|
|
292
111
|
end
|
|
293
112
|
|
|
@@ -315,13 +134,13 @@ module PulpContainerClient
|
|
|
315
134
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
316
135
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
317
136
|
# @return [Array<(PaginatedRepositoryVersionResponseList, Integer, Hash)>] PaginatedRepositoryVersionResponseList data, response status code and response headers
|
|
318
|
-
def
|
|
137
|
+
def list_with_http_info(container_container_repository_href, opts = {})
|
|
319
138
|
if @api_client.config.debugging
|
|
320
|
-
@api_client.config.logger.debug 'Calling API: RepositoriesContainerVersionsApi.
|
|
139
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesContainerVersionsApi.list ...'
|
|
321
140
|
end
|
|
322
141
|
# verify the required parameter 'container_container_repository_href' is set
|
|
323
142
|
if @api_client.config.client_side_validation && container_container_repository_href.nil?
|
|
324
|
-
fail ArgumentError, "Missing the required parameter 'container_container_repository_href' when calling RepositoriesContainerVersionsApi.
|
|
143
|
+
fail ArgumentError, "Missing the required parameter 'container_container_repository_href' when calling RepositoriesContainerVersionsApi.list"
|
|
325
144
|
end
|
|
326
145
|
# resource path
|
|
327
146
|
local_var_path = '{container_container_repository_href}versions/'.sub('{' + 'container_container_repository_href' + '}', CGI.escape(container_container_repository_href.to_s).gsub('%2F', '/'))
|
|
@@ -376,75 +195,7 @@ module PulpContainerClient
|
|
|
376
195
|
|
|
377
196
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
378
197
|
if @api_client.config.debugging
|
|
379
|
-
@api_client.config.logger.debug "API called: RepositoriesContainerVersionsApi#
|
|
380
|
-
end
|
|
381
|
-
return data, status_code, headers
|
|
382
|
-
end
|
|
383
|
-
|
|
384
|
-
# Inspect a repository version
|
|
385
|
-
# 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.
|
|
386
|
-
# @param container_container_push_repository_version_href [String]
|
|
387
|
-
# @param [Hash] opts the optional parameters
|
|
388
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
|
389
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
390
|
-
# @return [RepositoryVersionResponse]
|
|
391
|
-
def read(container_container_push_repository_version_href, opts = {})
|
|
392
|
-
data, _status_code, _headers = read_with_http_info(container_container_push_repository_version_href, opts)
|
|
393
|
-
data
|
|
394
|
-
end
|
|
395
|
-
|
|
396
|
-
# Inspect a repository version
|
|
397
|
-
# 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.
|
|
398
|
-
# @param container_container_push_repository_version_href [String]
|
|
399
|
-
# @param [Hash] opts the optional parameters
|
|
400
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
|
401
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
402
|
-
# @return [Array<(RepositoryVersionResponse, Integer, Hash)>] RepositoryVersionResponse data, response status code and response headers
|
|
403
|
-
def read_with_http_info(container_container_push_repository_version_href, opts = {})
|
|
404
|
-
if @api_client.config.debugging
|
|
405
|
-
@api_client.config.logger.debug 'Calling API: RepositoriesContainerVersionsApi.read ...'
|
|
406
|
-
end
|
|
407
|
-
# verify the required parameter 'container_container_push_repository_version_href' is set
|
|
408
|
-
if @api_client.config.client_side_validation && container_container_push_repository_version_href.nil?
|
|
409
|
-
fail ArgumentError, "Missing the required parameter 'container_container_push_repository_version_href' when calling RepositoriesContainerVersionsApi.read"
|
|
410
|
-
end
|
|
411
|
-
# resource path
|
|
412
|
-
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', '/'))
|
|
413
|
-
|
|
414
|
-
# query parameters
|
|
415
|
-
query_params = opts[:query_params] || {}
|
|
416
|
-
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
|
417
|
-
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
|
418
|
-
|
|
419
|
-
# header parameters
|
|
420
|
-
header_params = opts[:header_params] || {}
|
|
421
|
-
# HTTP header 'Accept' (if needed)
|
|
422
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
423
|
-
|
|
424
|
-
# form parameters
|
|
425
|
-
form_params = opts[:form_params] || {}
|
|
426
|
-
|
|
427
|
-
# http body (model)
|
|
428
|
-
post_body = opts[:body]
|
|
429
|
-
|
|
430
|
-
# return_type
|
|
431
|
-
return_type = opts[:return_type] || 'RepositoryVersionResponse'
|
|
432
|
-
|
|
433
|
-
# auth_names
|
|
434
|
-
auth_names = opts[:auth_names] || ['basicAuth']
|
|
435
|
-
|
|
436
|
-
new_options = opts.merge(
|
|
437
|
-
:header_params => header_params,
|
|
438
|
-
:query_params => query_params,
|
|
439
|
-
:form_params => form_params,
|
|
440
|
-
:body => post_body,
|
|
441
|
-
:auth_names => auth_names,
|
|
442
|
-
:return_type => return_type
|
|
443
|
-
)
|
|
444
|
-
|
|
445
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
446
|
-
if @api_client.config.debugging
|
|
447
|
-
@api_client.config.logger.debug "API called: RepositoriesContainerVersionsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
198
|
+
@api_client.config.logger.debug "API called: RepositoriesContainerVersionsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
448
199
|
end
|
|
449
200
|
return data, status_code, headers
|
|
450
201
|
end
|
|
@@ -456,8 +207,8 @@ module PulpContainerClient
|
|
|
456
207
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
457
208
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
458
209
|
# @return [RepositoryVersionResponse]
|
|
459
|
-
def
|
|
460
|
-
data, _status_code, _headers =
|
|
210
|
+
def read(container_container_repository_version_href, opts = {})
|
|
211
|
+
data, _status_code, _headers = read_with_http_info(container_container_repository_version_href, opts)
|
|
461
212
|
data
|
|
462
213
|
end
|
|
463
214
|
|
|
@@ -468,13 +219,13 @@ module PulpContainerClient
|
|
|
468
219
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
469
220
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
470
221
|
# @return [Array<(RepositoryVersionResponse, Integer, Hash)>] RepositoryVersionResponse data, response status code and response headers
|
|
471
|
-
def
|
|
222
|
+
def read_with_http_info(container_container_repository_version_href, opts = {})
|
|
472
223
|
if @api_client.config.debugging
|
|
473
|
-
@api_client.config.logger.debug 'Calling API: RepositoriesContainerVersionsApi.
|
|
224
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesContainerVersionsApi.read ...'
|
|
474
225
|
end
|
|
475
226
|
# verify the required parameter 'container_container_repository_version_href' is set
|
|
476
227
|
if @api_client.config.client_side_validation && container_container_repository_version_href.nil?
|
|
477
|
-
fail ArgumentError, "Missing the required parameter 'container_container_repository_version_href' when calling RepositoriesContainerVersionsApi.
|
|
228
|
+
fail ArgumentError, "Missing the required parameter 'container_container_repository_version_href' when calling RepositoriesContainerVersionsApi.read"
|
|
478
229
|
end
|
|
479
230
|
# resource path
|
|
480
231
|
local_var_path = '{container_container_repository_version_href}'.sub('{' + 'container_container_repository_version_href' + '}', CGI.escape(container_container_repository_version_href.to_s).gsub('%2F', '/'))
|
|
@@ -512,75 +263,7 @@ module PulpContainerClient
|
|
|
512
263
|
|
|
513
264
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
514
265
|
if @api_client.config.debugging
|
|
515
|
-
@api_client.config.logger.debug "API called: RepositoriesContainerVersionsApi#
|
|
516
|
-
end
|
|
517
|
-
return data, status_code, headers
|
|
518
|
-
end
|
|
519
|
-
|
|
520
|
-
# Trigger an asynchronous task to repair a repository version.
|
|
521
|
-
# @param container_container_push_repository_version_href [String]
|
|
522
|
-
# @param repository_version [RepositoryVersion]
|
|
523
|
-
# @param [Hash] opts the optional parameters
|
|
524
|
-
# @return [AsyncOperationResponse]
|
|
525
|
-
def repair(container_container_push_repository_version_href, repository_version, opts = {})
|
|
526
|
-
data, _status_code, _headers = repair_with_http_info(container_container_push_repository_version_href, repository_version, opts)
|
|
527
|
-
data
|
|
528
|
-
end
|
|
529
|
-
|
|
530
|
-
# Trigger an asynchronous task to repair a repository version.
|
|
531
|
-
# @param container_container_push_repository_version_href [String]
|
|
532
|
-
# @param repository_version [RepositoryVersion]
|
|
533
|
-
# @param [Hash] opts the optional parameters
|
|
534
|
-
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
535
|
-
def repair_with_http_info(container_container_push_repository_version_href, repository_version, opts = {})
|
|
536
|
-
if @api_client.config.debugging
|
|
537
|
-
@api_client.config.logger.debug 'Calling API: RepositoriesContainerVersionsApi.repair ...'
|
|
538
|
-
end
|
|
539
|
-
# verify the required parameter 'container_container_push_repository_version_href' is set
|
|
540
|
-
if @api_client.config.client_side_validation && container_container_push_repository_version_href.nil?
|
|
541
|
-
fail ArgumentError, "Missing the required parameter 'container_container_push_repository_version_href' when calling RepositoriesContainerVersionsApi.repair"
|
|
542
|
-
end
|
|
543
|
-
# verify the required parameter 'repository_version' is set
|
|
544
|
-
if @api_client.config.client_side_validation && repository_version.nil?
|
|
545
|
-
fail ArgumentError, "Missing the required parameter 'repository_version' when calling RepositoriesContainerVersionsApi.repair"
|
|
546
|
-
end
|
|
547
|
-
# resource path
|
|
548
|
-
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', '/'))
|
|
549
|
-
|
|
550
|
-
# query parameters
|
|
551
|
-
query_params = opts[:query_params] || {}
|
|
552
|
-
|
|
553
|
-
# header parameters
|
|
554
|
-
header_params = opts[:header_params] || {}
|
|
555
|
-
# HTTP header 'Accept' (if needed)
|
|
556
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
557
|
-
# HTTP header 'Content-Type'
|
|
558
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
|
559
|
-
|
|
560
|
-
# form parameters
|
|
561
|
-
form_params = opts[:form_params] || {}
|
|
562
|
-
|
|
563
|
-
# http body (model)
|
|
564
|
-
post_body = opts[:body] || @api_client.object_to_http_body(repository_version)
|
|
565
|
-
|
|
566
|
-
# return_type
|
|
567
|
-
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
|
568
|
-
|
|
569
|
-
# auth_names
|
|
570
|
-
auth_names = opts[:auth_names] || ['basicAuth']
|
|
571
|
-
|
|
572
|
-
new_options = opts.merge(
|
|
573
|
-
:header_params => header_params,
|
|
574
|
-
:query_params => query_params,
|
|
575
|
-
:form_params => form_params,
|
|
576
|
-
:body => post_body,
|
|
577
|
-
:auth_names => auth_names,
|
|
578
|
-
:return_type => return_type
|
|
579
|
-
)
|
|
580
|
-
|
|
581
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
582
|
-
if @api_client.config.debugging
|
|
583
|
-
@api_client.config.logger.debug "API called: RepositoriesContainerVersionsApi#repair\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
266
|
+
@api_client.config.logger.debug "API called: RepositoriesContainerVersionsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
584
267
|
end
|
|
585
268
|
return data, status_code, headers
|
|
586
269
|
end
|
|
@@ -590,8 +273,8 @@ module PulpContainerClient
|
|
|
590
273
|
# @param repository_version [RepositoryVersion]
|
|
591
274
|
# @param [Hash] opts the optional parameters
|
|
592
275
|
# @return [AsyncOperationResponse]
|
|
593
|
-
def
|
|
594
|
-
data, _status_code, _headers =
|
|
276
|
+
def repair(container_container_repository_version_href, repository_version, opts = {})
|
|
277
|
+
data, _status_code, _headers = repair_with_http_info(container_container_repository_version_href, repository_version, opts)
|
|
595
278
|
data
|
|
596
279
|
end
|
|
597
280
|
|
|
@@ -600,17 +283,17 @@ module PulpContainerClient
|
|
|
600
283
|
# @param repository_version [RepositoryVersion]
|
|
601
284
|
# @param [Hash] opts the optional parameters
|
|
602
285
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
603
|
-
def
|
|
286
|
+
def repair_with_http_info(container_container_repository_version_href, repository_version, opts = {})
|
|
604
287
|
if @api_client.config.debugging
|
|
605
|
-
@api_client.config.logger.debug 'Calling API: RepositoriesContainerVersionsApi.
|
|
288
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesContainerVersionsApi.repair ...'
|
|
606
289
|
end
|
|
607
290
|
# verify the required parameter 'container_container_repository_version_href' is set
|
|
608
291
|
if @api_client.config.client_side_validation && container_container_repository_version_href.nil?
|
|
609
|
-
fail ArgumentError, "Missing the required parameter 'container_container_repository_version_href' when calling RepositoriesContainerVersionsApi.
|
|
292
|
+
fail ArgumentError, "Missing the required parameter 'container_container_repository_version_href' when calling RepositoriesContainerVersionsApi.repair"
|
|
610
293
|
end
|
|
611
294
|
# verify the required parameter 'repository_version' is set
|
|
612
295
|
if @api_client.config.client_side_validation && repository_version.nil?
|
|
613
|
-
fail ArgumentError, "Missing the required parameter 'repository_version' when calling RepositoriesContainerVersionsApi.
|
|
296
|
+
fail ArgumentError, "Missing the required parameter 'repository_version' when calling RepositoriesContainerVersionsApi.repair"
|
|
614
297
|
end
|
|
615
298
|
# resource path
|
|
616
299
|
local_var_path = '{container_container_repository_version_href}repair/'.sub('{' + 'container_container_repository_version_href' + '}', CGI.escape(container_container_repository_version_href.to_s).gsub('%2F', '/'))
|
|
@@ -648,7 +331,7 @@ module PulpContainerClient
|
|
|
648
331
|
|
|
649
332
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
650
333
|
if @api_client.config.debugging
|
|
651
|
-
@api_client.config.logger.debug "API called: RepositoriesContainerVersionsApi#
|
|
334
|
+
@api_client.config.logger.debug "API called: RepositoriesContainerVersionsApi#repair\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
652
335
|
end
|
|
653
336
|
return data, status_code, headers
|
|
654
337
|
end
|