pulp_container_client 2.0.0b3 → 2.0.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 +69 -57
- data/docs/{ContainerBlob.md → ContainerBlobResponse.md} +2 -2
- data/docs/ContainerContainerDistribution.md +6 -12
- data/docs/ContainerContainerDistributionResponse.md +31 -0
- data/docs/ContainerContainerPushRepository.md +4 -10
- data/docs/ContainerContainerPushRepositoryResponse.md +29 -0
- data/docs/ContainerContainerRemote.md +8 -12
- data/docs/ContainerContainerRemoteResponse.md +49 -0
- data/docs/ContainerContainerRepository.md +4 -10
- data/docs/ContainerContainerRepositoryResponse.md +29 -0
- data/docs/ContainerContentRedirectContentGuard.md +1 -5
- data/docs/ContainerContentRedirectContentGuardResponse.md +23 -0
- data/docs/{ContainerManifest.md → ContainerManifestResponse.md} +2 -2
- data/docs/{ContainerTag.md → ContainerTagResponse.md} +2 -4
- data/docs/ContentBlobsApi.md +24 -24
- data/docs/ContentManifestsApi.md +24 -24
- data/docs/ContentSummary.md +3 -3
- data/docs/ContentSummaryResponse.md +21 -0
- data/docs/ContentTagsApi.md +26 -26
- data/docs/ContentguardsContentRedirectApi.md +55 -55
- data/docs/DistributionsContainerApi.md +108 -60
- data/docs/InlineResponse200.md +3 -3
- data/docs/InlineResponse2001.md +3 -3
- data/docs/InlineResponse2002.md +3 -3
- data/docs/InlineResponse2003.md +3 -3
- data/docs/InlineResponse2004.md +3 -3
- data/docs/InlineResponse2005.md +3 -3
- data/docs/InlineResponse2006.md +3 -3
- data/docs/InlineResponse2007.md +3 -3
- data/docs/InlineResponse2008.md +3 -3
- data/docs/ManifestCopy.md +1 -1
- data/docs/OCIBuildImage.md +23 -0
- data/docs/PatchedcontainerContainerDistribution.md +25 -0
- data/docs/PatchedcontainerContainerRemote.md +43 -0
- data/docs/PatchedcontainerContainerRepository.md +21 -0
- data/docs/PatchedcontainerContentRedirectContentGuard.md +19 -0
- data/docs/PolicyEnum.md +16 -0
- data/docs/RecursiveManage.md +1 -1
- data/docs/RemotesContainerApi.md +125 -65
- data/docs/RepositoriesContainerApi.md +158 -134
- data/docs/RepositoriesContainerPushApi.md +44 -148
- data/docs/RepositoriesContainerVersionsApi.md +190 -126
- data/docs/RepositorySyncURL.md +1 -1
- data/docs/RepositoryVersion.md +1 -9
- data/docs/RepositoryVersionResponse.md +25 -0
- data/docs/TagCopy.md +1 -1
- data/docs/TokenApi.md +8 -16
- data/lib/pulp_container_client/api/content_blobs_api.rb +38 -34
- data/lib/pulp_container_client/api/content_manifests_api.rb +38 -34
- data/lib/pulp_container_client/api/content_tags_api.rb +41 -37
- data/lib/pulp_container_client/api/contentguards_content_redirect_api.rb +90 -90
- data/lib/pulp_container_client/api/distributions_container_api.rb +153 -90
- data/lib/pulp_container_client/api/remotes_container_api.rb +181 -100
- data/lib/pulp_container_client/api/repositories_container_api.rb +245 -222
- data/lib/pulp_container_client/api/repositories_container_push_api.rb +66 -197
- data/lib/pulp_container_client/api/repositories_container_versions_api.rb +278 -188
- data/lib/pulp_container_client/api/token_api.rb +8 -14
- data/lib/pulp_container_client/api_client.rb +2 -2
- data/lib/pulp_container_client/api_error.rb +2 -2
- data/lib/pulp_container_client/configuration.rb +3 -3
- data/lib/pulp_container_client/models/async_operation_response.rb +3 -2
- data/lib/pulp_container_client/models/{container_blob.rb → container_blob_response.rb} +6 -43
- data/lib/pulp_container_client/models/container_container_distribution.rb +29 -110
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +289 -0
- data/lib/pulp_container_client/models/container_container_push_repository.rb +18 -78
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +271 -0
- data/lib/pulp_container_client/models/container_container_remote.rb +29 -227
- data/lib/pulp_container_client/models/container_container_remote_response.rb +409 -0
- data/lib/pulp_container_client/models/container_container_repository.rb +18 -78
- data/lib/pulp_container_client/models/container_container_repository_response.rb +271 -0
- data/lib/pulp_container_client/models/container_content_redirect_content_guard.rb +4 -56
- data/lib/pulp_container_client/models/container_content_redirect_content_guard_response.rb +243 -0
- data/lib/pulp_container_client/models/{container_manifest.rb → container_manifest_response.rb} +6 -43
- data/lib/pulp_container_client/models/{container_tag.rb → container_tag_response.rb} +7 -40
- data/lib/pulp_container_client/models/content_summary.rb +9 -15
- data/lib/pulp_container_client/models/content_summary_response.rb +240 -0
- data/lib/pulp_container_client/models/inline_response200.rb +3 -13
- data/lib/pulp_container_client/models/inline_response2001.rb +3 -13
- data/lib/pulp_container_client/models/inline_response2002.rb +3 -13
- data/lib/pulp_container_client/models/inline_response2003.rb +3 -13
- data/lib/pulp_container_client/models/inline_response2004.rb +3 -13
- data/lib/pulp_container_client/models/inline_response2005.rb +3 -13
- data/lib/pulp_container_client/models/inline_response2006.rb +3 -13
- data/lib/pulp_container_client/models/inline_response2007.rb +3 -13
- data/lib/pulp_container_client/models/inline_response2008.rb +3 -13
- data/lib/pulp_container_client/models/manifest_copy.rb +4 -3
- data/lib/pulp_container_client/models/oci_build_image.rb +240 -0
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +250 -0
- data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +365 -0
- data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +229 -0
- data/lib/pulp_container_client/models/patchedcontainer_content_redirect_content_guard.rb +219 -0
- data/lib/pulp_container_client/models/policy_enum.rb +37 -0
- data/lib/pulp_container_client/models/recursive_manage.rb +4 -3
- data/lib/pulp_container_client/models/repository_sync_url.rb +3 -8
- data/lib/pulp_container_client/models/repository_version.rb +7 -43
- data/lib/pulp_container_client/models/repository_version_response.rb +246 -0
- data/lib/pulp_container_client/models/tag_copy.rb +4 -3
- data/lib/pulp_container_client/models/tag_image.rb +3 -40
- data/lib/pulp_container_client/models/un_tag_image.rb +3 -21
- data/lib/pulp_container_client/version.rb +3 -3
- data/lib/pulp_container_client.rb +18 -5
- data/pulp_container_client.gemspec +4 -4
- data/spec/api/content_blobs_api_spec.rb +11 -11
- data/spec/api/content_manifests_api_spec.rb +11 -11
- data/spec/api/content_tags_api_spec.rb +12 -12
- data/spec/api/contentguards_content_redirect_api_spec.rb +17 -17
- data/spec/api/distributions_container_api_spec.rb +39 -18
- data/spec/api/remotes_container_api_spec.rb +48 -21
- data/spec/api/repositories_container_api_spec.rb +41 -32
- data/spec/api/repositories_container_push_api_spec.rb +17 -40
- data/spec/api/repositories_container_versions_api_spec.rb +76 -46
- data/spec/api/token_api_spec.rb +4 -6
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +2 -2
- data/spec/models/async_operation_response_spec.rb +2 -2
- data/spec/models/{container_blob_spec.rb → container_blob_response_spec.rb} +8 -8
- data/spec/models/container_container_distribution_response_spec.rb +83 -0
- data/spec/models/container_container_distribution_spec.rb +5 -23
- data/spec/models/container_container_push_repository_response_spec.rb +77 -0
- data/spec/models/container_container_push_repository_spec.rb +5 -23
- data/spec/models/container_container_remote_response_spec.rb +137 -0
- data/spec/models/container_container_remote_spec.rb +7 -23
- data/spec/models/container_container_repository_response_spec.rb +77 -0
- data/spec/models/container_container_repository_spec.rb +5 -23
- data/spec/models/container_content_redirect_content_guard_response_spec.rb +59 -0
- data/spec/models/container_content_redirect_content_guard_spec.rb +2 -14
- data/spec/models/{container_manifest_spec.rb → container_manifest_response_spec.rb} +8 -8
- data/spec/models/{container_tag_spec.rb → container_tag_response_spec.rb} +8 -14
- data/spec/models/content_summary_response_spec.rb +53 -0
- data/spec/models/content_summary_spec.rb +2 -2
- data/spec/models/inline_response2001_spec.rb +2 -2
- data/spec/models/inline_response2002_spec.rb +2 -2
- data/spec/models/inline_response2003_spec.rb +2 -2
- data/spec/models/inline_response2004_spec.rb +2 -2
- data/spec/models/inline_response2005_spec.rb +2 -2
- data/spec/models/inline_response2006_spec.rb +2 -2
- data/spec/models/inline_response2007_spec.rb +2 -2
- data/spec/models/inline_response2008_spec.rb +2 -2
- data/spec/models/inline_response200_spec.rb +2 -2
- data/spec/models/manifest_copy_spec.rb +2 -2
- data/spec/models/oci_build_image_spec.rb +59 -0
- data/spec/models/patchedcontainer_container_distribution_spec.rb +65 -0
- data/spec/models/patchedcontainer_container_remote_spec.rb +119 -0
- data/spec/models/patchedcontainer_container_repository_spec.rb +53 -0
- data/spec/models/patchedcontainer_content_redirect_content_guard_spec.rb +47 -0
- data/spec/models/policy_enum_spec.rb +35 -0
- data/spec/models/recursive_manage_spec.rb +2 -2
- data/spec/models/repository_sync_url_spec.rb +2 -2
- data/spec/models/repository_version_response_spec.rb +65 -0
- data/spec/models/repository_version_spec.rb +2 -26
- data/spec/models/tag_copy_spec.rb +2 -2
- data/spec/models/tag_image_spec.rb +2 -2
- data/spec/models/un_tag_image_spec.rb +2 -2
- data/spec/spec_helper.rb +2 -2
- metadata +93 -41
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Pulp 3 API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
|
5
5
|
|
|
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
9
|
OpenAPI Generator version: 4.2.3
|
|
10
10
|
|
|
@@ -21,30 +21,24 @@ module PulpContainerClient
|
|
|
21
21
|
end
|
|
22
22
|
# Handles GET requests for the /token/ endpoint.
|
|
23
23
|
# @param [Hash] opts the optional parameters
|
|
24
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
|
25
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
26
24
|
# @return [nil]
|
|
27
|
-
def
|
|
28
|
-
|
|
25
|
+
def read(opts = {})
|
|
26
|
+
read_with_http_info(opts)
|
|
29
27
|
nil
|
|
30
28
|
end
|
|
31
29
|
|
|
32
30
|
# Handles GET requests for the /token/ endpoint.
|
|
33
31
|
# @param [Hash] opts the optional parameters
|
|
34
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
|
35
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
36
32
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
37
|
-
def
|
|
33
|
+
def read_with_http_info(opts = {})
|
|
38
34
|
if @api_client.config.debugging
|
|
39
|
-
@api_client.config.logger.debug 'Calling API: TokenApi.
|
|
35
|
+
@api_client.config.logger.debug 'Calling API: TokenApi.read ...'
|
|
40
36
|
end
|
|
41
37
|
# resource path
|
|
42
38
|
local_var_path = '/token/'
|
|
43
39
|
|
|
44
40
|
# query parameters
|
|
45
41
|
query_params = opts[:query_params] || {}
|
|
46
|
-
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
|
47
|
-
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
|
48
42
|
|
|
49
43
|
# header parameters
|
|
50
44
|
header_params = opts[:header_params] || {}
|
|
@@ -59,7 +53,7 @@ module PulpContainerClient
|
|
|
59
53
|
return_type = opts[:return_type]
|
|
60
54
|
|
|
61
55
|
# auth_names
|
|
62
|
-
auth_names = opts[:auth_names] || ['
|
|
56
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
63
57
|
|
|
64
58
|
new_options = opts.merge(
|
|
65
59
|
:header_params => header_params,
|
|
@@ -72,7 +66,7 @@ module PulpContainerClient
|
|
|
72
66
|
|
|
73
67
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
74
68
|
if @api_client.config.debugging
|
|
75
|
-
@api_client.config.logger.debug "API called: TokenApi#
|
|
69
|
+
@api_client.config.logger.debug "API called: TokenApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
76
70
|
end
|
|
77
71
|
return data, status_code, headers
|
|
78
72
|
end
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Pulp 3 API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
|
5
5
|
|
|
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
9
|
OpenAPI Generator version: 4.2.3
|
|
10
10
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Pulp 3 API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
|
5
5
|
|
|
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
9
|
OpenAPI Generator version: 4.2.3
|
|
10
10
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Pulp 3 API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
|
5
5
|
|
|
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
9
|
OpenAPI Generator version: 4.2.3
|
|
10
10
|
|
|
@@ -188,7 +188,7 @@ module PulpContainerClient
|
|
|
188
188
|
# Returns Auth Settings hash for api client.
|
|
189
189
|
def auth_settings
|
|
190
190
|
{
|
|
191
|
-
'
|
|
191
|
+
'basicAuth' =>
|
|
192
192
|
{
|
|
193
193
|
type: 'basic',
|
|
194
194
|
in: 'header',
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Pulp 3 API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
|
5
5
|
|
|
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
9
|
OpenAPI Generator version: 4.2.3
|
|
10
10
|
|
|
@@ -13,6 +13,7 @@ OpenAPI Generator version: 4.2.3
|
|
|
13
13
|
require 'date'
|
|
14
14
|
|
|
15
15
|
module PulpContainerClient
|
|
16
|
+
# Serializer for asynchronous operations.
|
|
16
17
|
class AsyncOperationResponse
|
|
17
18
|
# The href of the task.
|
|
18
19
|
attr_accessor :task
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Pulp 3 API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
|
5
5
|
|
|
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
9
|
OpenAPI Generator version: 4.2.3
|
|
10
10
|
|
|
@@ -13,7 +13,8 @@ OpenAPI Generator version: 4.2.3
|
|
|
13
13
|
require 'date'
|
|
14
14
|
|
|
15
15
|
module PulpContainerClient
|
|
16
|
-
|
|
16
|
+
# Serializer for Blobs.
|
|
17
|
+
class ContainerBlobResponse
|
|
17
18
|
attr_accessor :pulp_href
|
|
18
19
|
|
|
19
20
|
# Timestamp of creation.
|
|
@@ -60,13 +61,13 @@ module PulpContainerClient
|
|
|
60
61
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
61
62
|
def initialize(attributes = {})
|
|
62
63
|
if (!attributes.is_a?(Hash))
|
|
63
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpContainerClient::
|
|
64
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpContainerClient::ContainerBlobResponse` initialize method"
|
|
64
65
|
end
|
|
65
66
|
|
|
66
67
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
67
68
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
68
69
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
69
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpContainerClient::
|
|
70
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpContainerClient::ContainerBlobResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
70
71
|
end
|
|
71
72
|
h[k.to_sym] = v
|
|
72
73
|
}
|
|
@@ -104,18 +105,10 @@ module PulpContainerClient
|
|
|
104
105
|
invalid_properties.push('invalid value for "digest", digest cannot be nil.')
|
|
105
106
|
end
|
|
106
107
|
|
|
107
|
-
if @digest.to_s.length < 1
|
|
108
|
-
invalid_properties.push('invalid value for "digest", the character length must be great than or equal to 1.')
|
|
109
|
-
end
|
|
110
|
-
|
|
111
108
|
if @media_type.nil?
|
|
112
109
|
invalid_properties.push('invalid value for "media_type", media_type cannot be nil.')
|
|
113
110
|
end
|
|
114
111
|
|
|
115
|
-
if @media_type.to_s.length < 1
|
|
116
|
-
invalid_properties.push('invalid value for "media_type", the character length must be great than or equal to 1.')
|
|
117
|
-
end
|
|
118
|
-
|
|
119
112
|
invalid_properties
|
|
120
113
|
end
|
|
121
114
|
|
|
@@ -124,40 +117,10 @@ module PulpContainerClient
|
|
|
124
117
|
def valid?
|
|
125
118
|
return false if @artifact.nil?
|
|
126
119
|
return false if @digest.nil?
|
|
127
|
-
return false if @digest.to_s.length < 1
|
|
128
120
|
return false if @media_type.nil?
|
|
129
|
-
return false if @media_type.to_s.length < 1
|
|
130
121
|
true
|
|
131
122
|
end
|
|
132
123
|
|
|
133
|
-
# Custom attribute writer method with validation
|
|
134
|
-
# @param [Object] digest Value to be assigned
|
|
135
|
-
def digest=(digest)
|
|
136
|
-
if digest.nil?
|
|
137
|
-
fail ArgumentError, 'digest cannot be nil'
|
|
138
|
-
end
|
|
139
|
-
|
|
140
|
-
if digest.to_s.length < 1
|
|
141
|
-
fail ArgumentError, 'invalid value for "digest", the character length must be great than or equal to 1.'
|
|
142
|
-
end
|
|
143
|
-
|
|
144
|
-
@digest = digest
|
|
145
|
-
end
|
|
146
|
-
|
|
147
|
-
# Custom attribute writer method with validation
|
|
148
|
-
# @param [Object] media_type Value to be assigned
|
|
149
|
-
def media_type=(media_type)
|
|
150
|
-
if media_type.nil?
|
|
151
|
-
fail ArgumentError, 'media_type cannot be nil'
|
|
152
|
-
end
|
|
153
|
-
|
|
154
|
-
if media_type.to_s.length < 1
|
|
155
|
-
fail ArgumentError, 'invalid value for "media_type", the character length must be great than or equal to 1.'
|
|
156
|
-
end
|
|
157
|
-
|
|
158
|
-
@media_type = media_type
|
|
159
|
-
end
|
|
160
|
-
|
|
161
124
|
# Checks equality by comparing each attribute.
|
|
162
125
|
# @param [Object] Object to be compared
|
|
163
126
|
def ==(o)
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#Pulp 3 API
|
|
3
3
|
|
|
4
|
-
#
|
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
|
5
5
|
|
|
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
9
|
OpenAPI Generator version: 4.2.3
|
|
10
10
|
|
|
@@ -13,63 +13,50 @@ OpenAPI Generator version: 4.2.3
|
|
|
13
13
|
require 'date'
|
|
14
14
|
|
|
15
15
|
module PulpContainerClient
|
|
16
|
+
# A serializer for ContainerDistribution.
|
|
16
17
|
class ContainerContainerDistribution
|
|
17
|
-
#
|
|
18
|
-
attr_accessor :
|
|
19
|
-
|
|
20
|
-
# The latest RepositoryVersion for this Repository will be served.
|
|
21
|
-
attr_accessor :repository
|
|
18
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
19
|
+
attr_accessor :base_path
|
|
22
20
|
|
|
23
21
|
# RepositoryVersion to be served
|
|
24
22
|
attr_accessor :repository_version
|
|
25
23
|
|
|
26
|
-
# A unique name. Ex, `rawhide` and `stable`.
|
|
27
|
-
attr_accessor :name
|
|
28
|
-
|
|
29
24
|
# An optional content-guard. If none is specified, a default one will be used.
|
|
30
25
|
attr_accessor :content_guard
|
|
31
26
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
35
|
-
attr_accessor :base_path
|
|
27
|
+
# The latest RepositoryVersion for this Repository will be served.
|
|
28
|
+
attr_accessor :repository
|
|
36
29
|
|
|
37
|
-
#
|
|
38
|
-
attr_accessor :
|
|
30
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
|
31
|
+
attr_accessor :name
|
|
39
32
|
|
|
40
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
41
34
|
def self.attribute_map
|
|
42
35
|
{
|
|
43
|
-
:'
|
|
44
|
-
:'repository' => :'repository',
|
|
36
|
+
:'base_path' => :'base_path',
|
|
45
37
|
:'repository_version' => :'repository_version',
|
|
46
|
-
:'name' => :'name',
|
|
47
38
|
:'content_guard' => :'content_guard',
|
|
48
|
-
:'
|
|
49
|
-
:'
|
|
50
|
-
:'registry_path' => :'registry_path'
|
|
39
|
+
:'repository' => :'repository',
|
|
40
|
+
:'name' => :'name'
|
|
51
41
|
}
|
|
52
42
|
end
|
|
53
43
|
|
|
54
44
|
# Attribute type mapping.
|
|
55
45
|
def self.openapi_types
|
|
56
46
|
{
|
|
57
|
-
:'
|
|
58
|
-
:'repository' => :'String',
|
|
47
|
+
:'base_path' => :'String',
|
|
59
48
|
:'repository_version' => :'String',
|
|
60
|
-
:'name' => :'String',
|
|
61
49
|
:'content_guard' => :'String',
|
|
62
|
-
:'
|
|
63
|
-
:'
|
|
64
|
-
:'registry_path' => :'String'
|
|
50
|
+
:'repository' => :'String',
|
|
51
|
+
:'name' => :'String'
|
|
65
52
|
}
|
|
66
53
|
end
|
|
67
54
|
|
|
68
55
|
# List of attributes with nullable: true
|
|
69
56
|
def self.openapi_nullable
|
|
70
57
|
Set.new([
|
|
71
|
-
:'repository',
|
|
72
58
|
:'repository_version',
|
|
59
|
+
:'repository',
|
|
73
60
|
])
|
|
74
61
|
end
|
|
75
62
|
|
|
@@ -88,36 +75,24 @@ module PulpContainerClient
|
|
|
88
75
|
h[k.to_sym] = v
|
|
89
76
|
}
|
|
90
77
|
|
|
91
|
-
if attributes.key?(:'
|
|
92
|
-
self.
|
|
93
|
-
end
|
|
94
|
-
|
|
95
|
-
if attributes.key?(:'repository')
|
|
96
|
-
self.repository = attributes[:'repository']
|
|
78
|
+
if attributes.key?(:'base_path')
|
|
79
|
+
self.base_path = attributes[:'base_path']
|
|
97
80
|
end
|
|
98
81
|
|
|
99
82
|
if attributes.key?(:'repository_version')
|
|
100
83
|
self.repository_version = attributes[:'repository_version']
|
|
101
84
|
end
|
|
102
85
|
|
|
103
|
-
if attributes.key?(:'name')
|
|
104
|
-
self.name = attributes[:'name']
|
|
105
|
-
end
|
|
106
|
-
|
|
107
86
|
if attributes.key?(:'content_guard')
|
|
108
87
|
self.content_guard = attributes[:'content_guard']
|
|
109
88
|
end
|
|
110
89
|
|
|
111
|
-
if attributes.key?(:'
|
|
112
|
-
self.
|
|
113
|
-
end
|
|
114
|
-
|
|
115
|
-
if attributes.key?(:'base_path')
|
|
116
|
-
self.base_path = attributes[:'base_path']
|
|
90
|
+
if attributes.key?(:'repository')
|
|
91
|
+
self.repository = attributes[:'repository']
|
|
117
92
|
end
|
|
118
93
|
|
|
119
|
-
if attributes.key?(:'
|
|
120
|
-
self.
|
|
94
|
+
if attributes.key?(:'name')
|
|
95
|
+
self.name = attributes[:'name']
|
|
121
96
|
end
|
|
122
97
|
end
|
|
123
98
|
|
|
@@ -125,24 +100,12 @@ module PulpContainerClient
|
|
|
125
100
|
# @return Array for valid properties with the reasons
|
|
126
101
|
def list_invalid_properties
|
|
127
102
|
invalid_properties = Array.new
|
|
128
|
-
if @name.nil?
|
|
129
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
130
|
-
end
|
|
131
|
-
|
|
132
|
-
if @name.to_s.length < 1
|
|
133
|
-
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
134
|
-
end
|
|
135
|
-
|
|
136
103
|
if @base_path.nil?
|
|
137
104
|
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
|
138
105
|
end
|
|
139
106
|
|
|
140
|
-
if @
|
|
141
|
-
invalid_properties.push('invalid value for "
|
|
142
|
-
end
|
|
143
|
-
|
|
144
|
-
if !@registry_path.nil? && @registry_path.to_s.length < 1
|
|
145
|
-
invalid_properties.push('invalid value for "registry_path", the character length must be great than or equal to 1.')
|
|
107
|
+
if @name.nil?
|
|
108
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
146
109
|
end
|
|
147
110
|
|
|
148
111
|
invalid_properties
|
|
@@ -151,65 +114,21 @@ module PulpContainerClient
|
|
|
151
114
|
# Check to see if the all the properties in the model are valid
|
|
152
115
|
# @return true if the model is valid
|
|
153
116
|
def valid?
|
|
154
|
-
return false if @name.nil?
|
|
155
|
-
return false if @name.to_s.length < 1
|
|
156
117
|
return false if @base_path.nil?
|
|
157
|
-
return false if @
|
|
158
|
-
return false if !@registry_path.nil? && @registry_path.to_s.length < 1
|
|
118
|
+
return false if @name.nil?
|
|
159
119
|
true
|
|
160
120
|
end
|
|
161
121
|
|
|
162
|
-
# Custom attribute writer method with validation
|
|
163
|
-
# @param [Object] name Value to be assigned
|
|
164
|
-
def name=(name)
|
|
165
|
-
if name.nil?
|
|
166
|
-
fail ArgumentError, 'name cannot be nil'
|
|
167
|
-
end
|
|
168
|
-
|
|
169
|
-
if name.to_s.length < 1
|
|
170
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
171
|
-
end
|
|
172
|
-
|
|
173
|
-
@name = name
|
|
174
|
-
end
|
|
175
|
-
|
|
176
|
-
# Custom attribute writer method with validation
|
|
177
|
-
# @param [Object] base_path Value to be assigned
|
|
178
|
-
def base_path=(base_path)
|
|
179
|
-
if base_path.nil?
|
|
180
|
-
fail ArgumentError, 'base_path cannot be nil'
|
|
181
|
-
end
|
|
182
|
-
|
|
183
|
-
if base_path.to_s.length < 1
|
|
184
|
-
fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
|
|
185
|
-
end
|
|
186
|
-
|
|
187
|
-
@base_path = base_path
|
|
188
|
-
end
|
|
189
|
-
|
|
190
|
-
# Custom attribute writer method with validation
|
|
191
|
-
# @param [Object] registry_path Value to be assigned
|
|
192
|
-
def registry_path=(registry_path)
|
|
193
|
-
if !registry_path.nil? && registry_path.to_s.length < 1
|
|
194
|
-
fail ArgumentError, 'invalid value for "registry_path", the character length must be great than or equal to 1.'
|
|
195
|
-
end
|
|
196
|
-
|
|
197
|
-
@registry_path = registry_path
|
|
198
|
-
end
|
|
199
|
-
|
|
200
122
|
# Checks equality by comparing each attribute.
|
|
201
123
|
# @param [Object] Object to be compared
|
|
202
124
|
def ==(o)
|
|
203
125
|
return true if self.equal?(o)
|
|
204
126
|
self.class == o.class &&
|
|
205
|
-
|
|
206
|
-
repository == o.repository &&
|
|
127
|
+
base_path == o.base_path &&
|
|
207
128
|
repository_version == o.repository_version &&
|
|
208
|
-
name == o.name &&
|
|
209
129
|
content_guard == o.content_guard &&
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
registry_path == o.registry_path
|
|
130
|
+
repository == o.repository &&
|
|
131
|
+
name == o.name
|
|
213
132
|
end
|
|
214
133
|
|
|
215
134
|
# @see the `==` method
|
|
@@ -221,7 +140,7 @@ module PulpContainerClient
|
|
|
221
140
|
# Calculates hash code according to all attributes.
|
|
222
141
|
# @return [Integer] Hash code
|
|
223
142
|
def hash
|
|
224
|
-
[
|
|
143
|
+
[base_path, repository_version, content_guard, repository, name].hash
|
|
225
144
|
end
|
|
226
145
|
|
|
227
146
|
# Builds the object from hash
|