pulp_container_client 2.14.3 → 2.14.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -6
- data/docs/ContainerContainerDistribution.md +6 -6
- data/docs/ContainerContainerDistributionResponse.md +10 -10
- data/docs/ContainerContainerPushRepository.md +6 -6
- data/docs/ContainerContainerPushRepositoryResponse.md +10 -10
- data/docs/ContainerContainerRemote.md +1 -1
- data/docs/ContainerContainerRemoteResponse.md +3 -1
- data/docs/ContainerContainerRemoteResponseHiddenFields.md +19 -0
- data/docs/ContainerContainerRepository.md +2 -2
- data/docs/ContainerContainerRepositoryResponse.md +2 -2
- data/docs/ContentBlobsApi.md +8 -8
- data/docs/ContentManifestsApi.md +8 -8
- data/docs/ContentSignaturesApi.md +8 -8
- data/docs/ContentTagsApi.md +8 -8
- data/docs/DistributionsContainerApi.md +24 -20
- data/docs/PatchedcontainerContainerDistribution.md +6 -6
- data/docs/PatchedcontainerContainerPushRepository.md +6 -6
- data/docs/PatchedcontainerContainerRemote.md +1 -1
- data/docs/PatchedcontainerContainerRepository.md +2 -2
- data/docs/PulpContainerNamespacesApi.md +16 -16
- data/docs/RemotesContainerApi.md +20 -20
- data/docs/RepositoriesContainerApi.md +35 -19
- data/docs/RepositoriesContainerPushApi.md +35 -19
- data/docs/RepositoriesContainerPushVersionsApi.md +12 -12
- data/docs/RepositoriesContainerVersionsApi.md +12 -12
- data/lib/pulp_container_client/api/content_blobs_api.rb +13 -13
- data/lib/pulp_container_client/api/content_manifests_api.rb +13 -13
- data/lib/pulp_container_client/api/content_signatures_api.rb +13 -13
- data/lib/pulp_container_client/api/content_tags_api.rb +13 -13
- data/lib/pulp_container_client/api/distributions_container_api.rb +35 -29
- data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +25 -25
- data/lib/pulp_container_client/api/remotes_container_api.rb +29 -29
- data/lib/pulp_container_client/api/repositories_container_api.rb +51 -27
- data/lib/pulp_container_client/api/repositories_container_push_api.rb +51 -27
- data/lib/pulp_container_client/api/repositories_container_push_versions_api.rb +17 -17
- data/lib/pulp_container_client/api/repositories_container_versions_api.rb +17 -17
- data/lib/pulp_container_client/models/container_container_distribution.rb +50 -48
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +47 -45
- data/lib/pulp_container_client/models/container_container_push_repository.rb +42 -40
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +51 -49
- data/lib/pulp_container_client/models/container_container_remote.rb +4 -2
- data/lib/pulp_container_client/models/container_container_remote_response.rb +17 -3
- data/lib/pulp_container_client/models/container_container_remote_response_hidden_fields.rb +215 -0
- data/lib/pulp_container_client/models/container_container_repository.rb +5 -3
- data/lib/pulp_container_client/models/container_container_repository_response.rb +5 -3
- data/lib/pulp_container_client/models/nested_role.rb +19 -0
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +41 -39
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +42 -40
- data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +4 -2
- data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +5 -3
- data/lib/pulp_container_client/version.rb +1 -1
- data/lib/pulp_container_client.rb +1 -0
- data/spec/api/content_blobs_api_spec.rb +4 -4
- data/spec/api/content_manifests_api_spec.rb +4 -4
- data/spec/api/content_signatures_api_spec.rb +4 -4
- data/spec/api/content_tags_api_spec.rb +4 -4
- data/spec/api/distributions_container_api_spec.rb +12 -10
- data/spec/api/pulp_container_namespaces_api_spec.rb +8 -8
- data/spec/api/remotes_container_api_spec.rb +10 -10
- data/spec/api/repositories_container_api_spec.rb +17 -9
- data/spec/api/repositories_container_push_api_spec.rb +17 -9
- data/spec/api/repositories_container_push_versions_api_spec.rb +6 -6
- data/spec/api/repositories_container_versions_api_spec.rb +6 -6
- data/spec/models/container_container_distribution_response_spec.rb +7 -7
- data/spec/models/container_container_distribution_spec.rb +4 -4
- data/spec/models/container_container_push_repository_response_spec.rb +8 -8
- data/spec/models/container_container_push_repository_spec.rb +4 -4
- data/spec/models/container_container_remote_response_hidden_fields_spec.rb +47 -0
- data/spec/models/container_container_remote_response_spec.rb +6 -0
- data/spec/models/patchedcontainer_container_distribution_spec.rb +4 -4
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
- metadata +52 -48
@@ -15,24 +15,24 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class ContainerContainerDistributionResponse
|
18
|
-
|
19
|
-
|
20
|
-
# Timestamp of creation.
|
21
|
-
attr_accessor :pulp_created
|
22
|
-
|
23
|
-
# The latest RepositoryVersion for this Repository will be served.
|
24
|
-
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
|
25
20
|
|
26
21
|
# An optional content-guard. If none is specified, a default one will be used.
|
27
22
|
attr_accessor :content_guard
|
28
23
|
|
24
|
+
attr_accessor :pulp_labels
|
25
|
+
|
29
26
|
# A unique name. Ex, `rawhide` and `stable`.
|
30
27
|
attr_accessor :name
|
31
28
|
|
32
|
-
|
29
|
+
# The latest RepositoryVersion for this Repository will be served.
|
30
|
+
attr_accessor :repository
|
33
31
|
|
34
|
-
|
35
|
-
|
32
|
+
attr_accessor :pulp_href
|
33
|
+
|
34
|
+
# Timestamp of creation.
|
35
|
+
attr_accessor :pulp_created
|
36
36
|
|
37
37
|
# RepositoryVersion to be served
|
38
38
|
attr_accessor :repository_version
|
@@ -52,13 +52,13 @@ module PulpContainerClient
|
|
52
52
|
# Attribute mapping from ruby-style variable name to JSON key.
|
53
53
|
def self.attribute_map
|
54
54
|
{
|
55
|
-
:'
|
56
|
-
:'pulp_created' => :'pulp_created',
|
57
|
-
:'repository' => :'repository',
|
55
|
+
:'base_path' => :'base_path',
|
58
56
|
:'content_guard' => :'content_guard',
|
59
|
-
:'name' => :'name',
|
60
57
|
:'pulp_labels' => :'pulp_labels',
|
61
|
-
:'
|
58
|
+
:'name' => :'name',
|
59
|
+
:'repository' => :'repository',
|
60
|
+
:'pulp_href' => :'pulp_href',
|
61
|
+
:'pulp_created' => :'pulp_created',
|
62
62
|
:'repository_version' => :'repository_version',
|
63
63
|
:'registry_path' => :'registry_path',
|
64
64
|
:'namespace' => :'namespace',
|
@@ -70,13 +70,13 @@ module PulpContainerClient
|
|
70
70
|
# Attribute type mapping.
|
71
71
|
def self.openapi_types
|
72
72
|
{
|
73
|
-
:'
|
74
|
-
:'pulp_created' => :'DateTime',
|
75
|
-
:'repository' => :'String',
|
73
|
+
:'base_path' => :'String',
|
76
74
|
:'content_guard' => :'String',
|
75
|
+
:'pulp_labels' => :'Hash<String, String>',
|
77
76
|
:'name' => :'String',
|
78
|
-
:'
|
79
|
-
:'
|
77
|
+
:'repository' => :'String',
|
78
|
+
:'pulp_href' => :'String',
|
79
|
+
:'pulp_created' => :'DateTime',
|
80
80
|
:'repository_version' => :'String',
|
81
81
|
:'registry_path' => :'String',
|
82
82
|
:'namespace' => :'String',
|
@@ -109,32 +109,34 @@ module PulpContainerClient
|
|
109
109
|
h[k.to_sym] = v
|
110
110
|
}
|
111
111
|
|
112
|
-
if attributes.key?(:'
|
113
|
-
self.
|
114
|
-
end
|
115
|
-
|
116
|
-
if attributes.key?(:'pulp_created')
|
117
|
-
self.pulp_created = attributes[:'pulp_created']
|
118
|
-
end
|
119
|
-
|
120
|
-
if attributes.key?(:'repository')
|
121
|
-
self.repository = attributes[:'repository']
|
112
|
+
if attributes.key?(:'base_path')
|
113
|
+
self.base_path = attributes[:'base_path']
|
122
114
|
end
|
123
115
|
|
124
116
|
if attributes.key?(:'content_guard')
|
125
117
|
self.content_guard = attributes[:'content_guard']
|
126
118
|
end
|
127
119
|
|
120
|
+
if attributes.key?(:'pulp_labels')
|
121
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
122
|
+
self.pulp_labels = value
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
128
126
|
if attributes.key?(:'name')
|
129
127
|
self.name = attributes[:'name']
|
130
128
|
end
|
131
129
|
|
132
|
-
if attributes.key?(:'
|
133
|
-
self.
|
130
|
+
if attributes.key?(:'repository')
|
131
|
+
self.repository = attributes[:'repository']
|
134
132
|
end
|
135
133
|
|
136
|
-
if attributes.key?(:'
|
137
|
-
self.
|
134
|
+
if attributes.key?(:'pulp_href')
|
135
|
+
self.pulp_href = attributes[:'pulp_href']
|
136
|
+
end
|
137
|
+
|
138
|
+
if attributes.key?(:'pulp_created')
|
139
|
+
self.pulp_created = attributes[:'pulp_created']
|
138
140
|
end
|
139
141
|
|
140
142
|
if attributes.key?(:'repository_version')
|
@@ -162,22 +164,22 @@ module PulpContainerClient
|
|
162
164
|
# @return Array for valid properties with the reasons
|
163
165
|
def list_invalid_properties
|
164
166
|
invalid_properties = Array.new
|
165
|
-
if @name.nil?
|
166
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
167
|
-
end
|
168
|
-
|
169
167
|
if @base_path.nil?
|
170
168
|
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
171
169
|
end
|
172
170
|
|
171
|
+
if @name.nil?
|
172
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
173
|
+
end
|
174
|
+
|
173
175
|
invalid_properties
|
174
176
|
end
|
175
177
|
|
176
178
|
# Check to see if the all the properties in the model are valid
|
177
179
|
# @return true if the model is valid
|
178
180
|
def valid?
|
179
|
-
return false if @name.nil?
|
180
181
|
return false if @base_path.nil?
|
182
|
+
return false if @name.nil?
|
181
183
|
true
|
182
184
|
end
|
183
185
|
|
@@ -186,13 +188,13 @@ module PulpContainerClient
|
|
186
188
|
def ==(o)
|
187
189
|
return true if self.equal?(o)
|
188
190
|
self.class == o.class &&
|
189
|
-
|
190
|
-
pulp_created == o.pulp_created &&
|
191
|
-
repository == o.repository &&
|
191
|
+
base_path == o.base_path &&
|
192
192
|
content_guard == o.content_guard &&
|
193
|
-
name == o.name &&
|
194
193
|
pulp_labels == o.pulp_labels &&
|
195
|
-
|
194
|
+
name == o.name &&
|
195
|
+
repository == o.repository &&
|
196
|
+
pulp_href == o.pulp_href &&
|
197
|
+
pulp_created == o.pulp_created &&
|
196
198
|
repository_version == o.repository_version &&
|
197
199
|
registry_path == o.registry_path &&
|
198
200
|
namespace == o.namespace &&
|
@@ -209,7 +211,7 @@ module PulpContainerClient
|
|
209
211
|
# Calculates hash code according to all attributes.
|
210
212
|
# @return [Integer] Hash code
|
211
213
|
def hash
|
212
|
-
[
|
214
|
+
[base_path, content_guard, pulp_labels, name, repository, pulp_href, pulp_created, repository_version, registry_path, namespace, private, description].hash
|
213
215
|
end
|
214
216
|
|
215
217
|
# Builds the object from hash
|
@@ -15,16 +15,16 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class ContainerContainerPushRepository
|
18
|
-
|
19
|
-
attr_accessor :retain_repo_versions
|
20
|
-
|
21
|
-
# A reference to an associated signing service.
|
22
|
-
attr_accessor :manifest_signing_service
|
18
|
+
attr_accessor :pulp_labels
|
23
19
|
|
24
20
|
# A unique name for this repository.
|
25
21
|
attr_accessor :name
|
26
22
|
|
27
|
-
|
23
|
+
# A reference to an associated signing service.
|
24
|
+
attr_accessor :manifest_signing_service
|
25
|
+
|
26
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
27
|
+
attr_accessor :retain_repo_versions
|
28
28
|
|
29
29
|
# An optional description.
|
30
30
|
attr_accessor :description
|
@@ -32,10 +32,10 @@ module PulpContainerClient
|
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
33
|
def self.attribute_map
|
34
34
|
{
|
35
|
-
:'retain_repo_versions' => :'retain_repo_versions',
|
36
|
-
:'manifest_signing_service' => :'manifest_signing_service',
|
37
|
-
:'name' => :'name',
|
38
35
|
:'pulp_labels' => :'pulp_labels',
|
36
|
+
:'name' => :'name',
|
37
|
+
:'manifest_signing_service' => :'manifest_signing_service',
|
38
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
39
39
|
:'description' => :'description'
|
40
40
|
}
|
41
41
|
end
|
@@ -43,10 +43,10 @@ module PulpContainerClient
|
|
43
43
|
# Attribute type mapping.
|
44
44
|
def self.openapi_types
|
45
45
|
{
|
46
|
-
:'
|
47
|
-
:'manifest_signing_service' => :'String',
|
46
|
+
:'pulp_labels' => :'Hash<String, String>',
|
48
47
|
:'name' => :'String',
|
49
|
-
:'
|
48
|
+
:'manifest_signing_service' => :'String',
|
49
|
+
:'retain_repo_versions' => :'Integer',
|
50
50
|
:'description' => :'String'
|
51
51
|
}
|
52
52
|
end
|
@@ -54,8 +54,8 @@ module PulpContainerClient
|
|
54
54
|
# List of attributes with nullable: true
|
55
55
|
def self.openapi_nullable
|
56
56
|
Set.new([
|
57
|
-
:'retain_repo_versions',
|
58
57
|
:'manifest_signing_service',
|
58
|
+
:'retain_repo_versions',
|
59
59
|
:'description'
|
60
60
|
])
|
61
61
|
end
|
@@ -75,20 +75,22 @@ module PulpContainerClient
|
|
75
75
|
h[k.to_sym] = v
|
76
76
|
}
|
77
77
|
|
78
|
-
if attributes.key?(:'
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
if attributes.key?(:'manifest_signing_service')
|
83
|
-
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
78
|
+
if attributes.key?(:'pulp_labels')
|
79
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
80
|
+
self.pulp_labels = value
|
81
|
+
end
|
84
82
|
end
|
85
83
|
|
86
84
|
if attributes.key?(:'name')
|
87
85
|
self.name = attributes[:'name']
|
88
86
|
end
|
89
87
|
|
90
|
-
if attributes.key?(:'
|
91
|
-
self.
|
88
|
+
if attributes.key?(:'manifest_signing_service')
|
89
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
90
|
+
end
|
91
|
+
|
92
|
+
if attributes.key?(:'retain_repo_versions')
|
93
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
92
94
|
end
|
93
95
|
|
94
96
|
if attributes.key?(:'description')
|
@@ -100,10 +102,6 @@ module PulpContainerClient
|
|
100
102
|
# @return Array for valid properties with the reasons
|
101
103
|
def list_invalid_properties
|
102
104
|
invalid_properties = Array.new
|
103
|
-
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
104
|
-
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
105
|
-
end
|
106
|
-
|
107
105
|
if @name.nil?
|
108
106
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
109
107
|
end
|
@@ -112,6 +110,10 @@ module PulpContainerClient
|
|
112
110
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
113
111
|
end
|
114
112
|
|
113
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
114
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
115
|
+
end
|
116
|
+
|
115
117
|
if !@description.nil? && @description.to_s.length < 1
|
116
118
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
117
119
|
end
|
@@ -122,23 +124,13 @@ module PulpContainerClient
|
|
122
124
|
# Check to see if the all the properties in the model are valid
|
123
125
|
# @return true if the model is valid
|
124
126
|
def valid?
|
125
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
126
127
|
return false if @name.nil?
|
127
128
|
return false if @name.to_s.length < 1
|
129
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
128
130
|
return false if !@description.nil? && @description.to_s.length < 1
|
129
131
|
true
|
130
132
|
end
|
131
133
|
|
132
|
-
# Custom attribute writer method with validation
|
133
|
-
# @param [Object] retain_repo_versions Value to be assigned
|
134
|
-
def retain_repo_versions=(retain_repo_versions)
|
135
|
-
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
136
|
-
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
137
|
-
end
|
138
|
-
|
139
|
-
@retain_repo_versions = retain_repo_versions
|
140
|
-
end
|
141
|
-
|
142
134
|
# Custom attribute writer method with validation
|
143
135
|
# @param [Object] name Value to be assigned
|
144
136
|
def name=(name)
|
@@ -153,6 +145,16 @@ module PulpContainerClient
|
|
153
145
|
@name = name
|
154
146
|
end
|
155
147
|
|
148
|
+
# Custom attribute writer method with validation
|
149
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
150
|
+
def retain_repo_versions=(retain_repo_versions)
|
151
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
152
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
153
|
+
end
|
154
|
+
|
155
|
+
@retain_repo_versions = retain_repo_versions
|
156
|
+
end
|
157
|
+
|
156
158
|
# Custom attribute writer method with validation
|
157
159
|
# @param [Object] description Value to be assigned
|
158
160
|
def description=(description)
|
@@ -168,10 +170,10 @@ module PulpContainerClient
|
|
168
170
|
def ==(o)
|
169
171
|
return true if self.equal?(o)
|
170
172
|
self.class == o.class &&
|
171
|
-
retain_repo_versions == o.retain_repo_versions &&
|
172
|
-
manifest_signing_service == o.manifest_signing_service &&
|
173
|
-
name == o.name &&
|
174
173
|
pulp_labels == o.pulp_labels &&
|
174
|
+
name == o.name &&
|
175
|
+
manifest_signing_service == o.manifest_signing_service &&
|
176
|
+
retain_repo_versions == o.retain_repo_versions &&
|
175
177
|
description == o.description
|
176
178
|
end
|
177
179
|
|
@@ -184,7 +186,7 @@ module PulpContainerClient
|
|
184
186
|
# Calculates hash code according to all attributes.
|
185
187
|
# @return [Integer] Hash code
|
186
188
|
def hash
|
187
|
-
[
|
189
|
+
[pulp_labels, name, manifest_signing_service, retain_repo_versions, description].hash
|
188
190
|
end
|
189
191
|
|
190
192
|
# Builds the object from hash
|
@@ -15,25 +15,25 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class ContainerContainerPushRepositoryResponse
|
18
|
-
|
19
|
-
attr_accessor :retain_repo_versions
|
20
|
-
|
21
|
-
attr_accessor :pulp_href
|
22
|
-
|
23
|
-
# A reference to an associated signing service.
|
24
|
-
attr_accessor :manifest_signing_service
|
25
|
-
|
26
|
-
# Timestamp of creation.
|
27
|
-
attr_accessor :pulp_created
|
18
|
+
attr_accessor :pulp_labels
|
28
19
|
|
29
20
|
# A unique name for this repository.
|
30
21
|
attr_accessor :name
|
31
22
|
|
32
23
|
attr_accessor :versions_href
|
33
24
|
|
25
|
+
# A reference to an associated signing service.
|
26
|
+
attr_accessor :manifest_signing_service
|
27
|
+
|
28
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
29
|
+
attr_accessor :retain_repo_versions
|
30
|
+
|
34
31
|
attr_accessor :latest_version_href
|
35
32
|
|
36
|
-
attr_accessor :
|
33
|
+
attr_accessor :pulp_href
|
34
|
+
|
35
|
+
# Timestamp of creation.
|
36
|
+
attr_accessor :pulp_created
|
37
37
|
|
38
38
|
# An optional description.
|
39
39
|
attr_accessor :description
|
@@ -41,14 +41,14 @@ module PulpContainerClient
|
|
41
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
42
42
|
def self.attribute_map
|
43
43
|
{
|
44
|
-
:'
|
45
|
-
:'pulp_href' => :'pulp_href',
|
46
|
-
:'manifest_signing_service' => :'manifest_signing_service',
|
47
|
-
:'pulp_created' => :'pulp_created',
|
44
|
+
:'pulp_labels' => :'pulp_labels',
|
48
45
|
:'name' => :'name',
|
49
46
|
:'versions_href' => :'versions_href',
|
47
|
+
:'manifest_signing_service' => :'manifest_signing_service',
|
48
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
50
49
|
:'latest_version_href' => :'latest_version_href',
|
51
|
-
:'
|
50
|
+
:'pulp_href' => :'pulp_href',
|
51
|
+
:'pulp_created' => :'pulp_created',
|
52
52
|
:'description' => :'description'
|
53
53
|
}
|
54
54
|
end
|
@@ -56,14 +56,14 @@ module PulpContainerClient
|
|
56
56
|
# Attribute type mapping.
|
57
57
|
def self.openapi_types
|
58
58
|
{
|
59
|
-
:'
|
60
|
-
:'pulp_href' => :'String',
|
61
|
-
:'manifest_signing_service' => :'String',
|
62
|
-
:'pulp_created' => :'DateTime',
|
59
|
+
:'pulp_labels' => :'Hash<String, String>',
|
63
60
|
:'name' => :'String',
|
64
61
|
:'versions_href' => :'String',
|
62
|
+
:'manifest_signing_service' => :'String',
|
63
|
+
:'retain_repo_versions' => :'Integer',
|
65
64
|
:'latest_version_href' => :'String',
|
66
|
-
:'
|
65
|
+
:'pulp_href' => :'String',
|
66
|
+
:'pulp_created' => :'DateTime',
|
67
67
|
:'description' => :'String'
|
68
68
|
}
|
69
69
|
end
|
@@ -71,8 +71,8 @@ module PulpContainerClient
|
|
71
71
|
# List of attributes with nullable: true
|
72
72
|
def self.openapi_nullable
|
73
73
|
Set.new([
|
74
|
-
:'retain_repo_versions',
|
75
74
|
:'manifest_signing_service',
|
75
|
+
:'retain_repo_versions',
|
76
76
|
:'description'
|
77
77
|
])
|
78
78
|
end
|
@@ -92,20 +92,10 @@ module PulpContainerClient
|
|
92
92
|
h[k.to_sym] = v
|
93
93
|
}
|
94
94
|
|
95
|
-
if attributes.key?(:'
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
if attributes.key?(:'pulp_href')
|
100
|
-
self.pulp_href = attributes[:'pulp_href']
|
101
|
-
end
|
102
|
-
|
103
|
-
if attributes.key?(:'manifest_signing_service')
|
104
|
-
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
105
|
-
end
|
106
|
-
|
107
|
-
if attributes.key?(:'pulp_created')
|
108
|
-
self.pulp_created = attributes[:'pulp_created']
|
95
|
+
if attributes.key?(:'pulp_labels')
|
96
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
97
|
+
self.pulp_labels = value
|
98
|
+
end
|
109
99
|
end
|
110
100
|
|
111
101
|
if attributes.key?(:'name')
|
@@ -116,12 +106,24 @@ module PulpContainerClient
|
|
116
106
|
self.versions_href = attributes[:'versions_href']
|
117
107
|
end
|
118
108
|
|
109
|
+
if attributes.key?(:'manifest_signing_service')
|
110
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
111
|
+
end
|
112
|
+
|
113
|
+
if attributes.key?(:'retain_repo_versions')
|
114
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
115
|
+
end
|
116
|
+
|
119
117
|
if attributes.key?(:'latest_version_href')
|
120
118
|
self.latest_version_href = attributes[:'latest_version_href']
|
121
119
|
end
|
122
120
|
|
123
|
-
if attributes.key?(:'
|
124
|
-
self.
|
121
|
+
if attributes.key?(:'pulp_href')
|
122
|
+
self.pulp_href = attributes[:'pulp_href']
|
123
|
+
end
|
124
|
+
|
125
|
+
if attributes.key?(:'pulp_created')
|
126
|
+
self.pulp_created = attributes[:'pulp_created']
|
125
127
|
end
|
126
128
|
|
127
129
|
if attributes.key?(:'description')
|
@@ -133,22 +135,22 @@ module PulpContainerClient
|
|
133
135
|
# @return Array for valid properties with the reasons
|
134
136
|
def list_invalid_properties
|
135
137
|
invalid_properties = Array.new
|
136
|
-
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
137
|
-
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
138
|
-
end
|
139
|
-
|
140
138
|
if @name.nil?
|
141
139
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
142
140
|
end
|
143
141
|
|
142
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
143
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
144
|
+
end
|
145
|
+
|
144
146
|
invalid_properties
|
145
147
|
end
|
146
148
|
|
147
149
|
# Check to see if the all the properties in the model are valid
|
148
150
|
# @return true if the model is valid
|
149
151
|
def valid?
|
150
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
151
152
|
return false if @name.nil?
|
153
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
152
154
|
true
|
153
155
|
end
|
154
156
|
|
@@ -167,14 +169,14 @@ module PulpContainerClient
|
|
167
169
|
def ==(o)
|
168
170
|
return true if self.equal?(o)
|
169
171
|
self.class == o.class &&
|
170
|
-
|
171
|
-
pulp_href == o.pulp_href &&
|
172
|
-
manifest_signing_service == o.manifest_signing_service &&
|
173
|
-
pulp_created == o.pulp_created &&
|
172
|
+
pulp_labels == o.pulp_labels &&
|
174
173
|
name == o.name &&
|
175
174
|
versions_href == o.versions_href &&
|
175
|
+
manifest_signing_service == o.manifest_signing_service &&
|
176
|
+
retain_repo_versions == o.retain_repo_versions &&
|
176
177
|
latest_version_href == o.latest_version_href &&
|
177
|
-
|
178
|
+
pulp_href == o.pulp_href &&
|
179
|
+
pulp_created == o.pulp_created &&
|
178
180
|
description == o.description
|
179
181
|
end
|
180
182
|
|
@@ -187,7 +189,7 @@ module PulpContainerClient
|
|
187
189
|
# Calculates hash code according to all attributes.
|
188
190
|
# @return [Integer] Hash code
|
189
191
|
def hash
|
190
|
-
[
|
192
|
+
[pulp_labels, name, versions_href, manifest_signing_service, retain_repo_versions, latest_version_href, pulp_href, pulp_created, description].hash
|
191
193
|
end
|
192
194
|
|
193
195
|
# Builds the object from hash
|
@@ -134,7 +134,7 @@ module PulpContainerClient
|
|
134
134
|
:'proxy_password' => :'String',
|
135
135
|
:'username' => :'String',
|
136
136
|
:'password' => :'String',
|
137
|
-
:'pulp_labels' => :'
|
137
|
+
:'pulp_labels' => :'Hash<String, String>',
|
138
138
|
:'download_concurrency' => :'Integer',
|
139
139
|
:'max_retries' => :'Integer',
|
140
140
|
:'policy' => :'PolicyEnum',
|
@@ -234,7 +234,9 @@ module PulpContainerClient
|
|
234
234
|
end
|
235
235
|
|
236
236
|
if attributes.key?(:'pulp_labels')
|
237
|
-
|
237
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
238
|
+
self.pulp_labels = value
|
239
|
+
end
|
238
240
|
end
|
239
241
|
|
240
242
|
if attributes.key?(:'download_concurrency')
|
@@ -70,6 +70,9 @@ module PulpContainerClient
|
|
70
70
|
# Limits requests per second for each concurrent downloader
|
71
71
|
attr_accessor :rate_limit
|
72
72
|
|
73
|
+
# List of hidden (write only) fields
|
74
|
+
attr_accessor :hidden_fields
|
75
|
+
|
73
76
|
# Name of the upstream repository
|
74
77
|
attr_accessor :upstream_name
|
75
78
|
|
@@ -104,6 +107,7 @@ module PulpContainerClient
|
|
104
107
|
:'sock_read_timeout' => :'sock_read_timeout',
|
105
108
|
:'headers' => :'headers',
|
106
109
|
:'rate_limit' => :'rate_limit',
|
110
|
+
:'hidden_fields' => :'hidden_fields',
|
107
111
|
:'upstream_name' => :'upstream_name',
|
108
112
|
:'include_tags' => :'include_tags',
|
109
113
|
:'exclude_tags' => :'exclude_tags',
|
@@ -122,7 +126,7 @@ module PulpContainerClient
|
|
122
126
|
:'client_cert' => :'String',
|
123
127
|
:'tls_validation' => :'Boolean',
|
124
128
|
:'proxy_url' => :'String',
|
125
|
-
:'pulp_labels' => :'
|
129
|
+
:'pulp_labels' => :'Hash<String, String>',
|
126
130
|
:'pulp_last_updated' => :'DateTime',
|
127
131
|
:'download_concurrency' => :'Integer',
|
128
132
|
:'max_retries' => :'Integer',
|
@@ -133,6 +137,7 @@ module PulpContainerClient
|
|
133
137
|
:'sock_read_timeout' => :'Float',
|
134
138
|
:'headers' => :'Array<Object>',
|
135
139
|
:'rate_limit' => :'Integer',
|
140
|
+
:'hidden_fields' => :'Array<ContainerContainerRemoteResponseHiddenFields>',
|
136
141
|
:'upstream_name' => :'String',
|
137
142
|
:'include_tags' => :'Array<String>',
|
138
143
|
:'exclude_tags' => :'Array<String>',
|
@@ -206,7 +211,9 @@ module PulpContainerClient
|
|
206
211
|
end
|
207
212
|
|
208
213
|
if attributes.key?(:'pulp_labels')
|
209
|
-
|
214
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
215
|
+
self.pulp_labels = value
|
216
|
+
end
|
210
217
|
end
|
211
218
|
|
212
219
|
if attributes.key?(:'pulp_last_updated')
|
@@ -251,6 +258,12 @@ module PulpContainerClient
|
|
251
258
|
self.rate_limit = attributes[:'rate_limit']
|
252
259
|
end
|
253
260
|
|
261
|
+
if attributes.key?(:'hidden_fields')
|
262
|
+
if (value = attributes[:'hidden_fields']).is_a?(Array)
|
263
|
+
self.hidden_fields = value
|
264
|
+
end
|
265
|
+
end
|
266
|
+
|
254
267
|
if attributes.key?(:'upstream_name')
|
255
268
|
self.upstream_name = attributes[:'upstream_name']
|
256
269
|
end
|
@@ -399,6 +412,7 @@ module PulpContainerClient
|
|
399
412
|
sock_read_timeout == o.sock_read_timeout &&
|
400
413
|
headers == o.headers &&
|
401
414
|
rate_limit == o.rate_limit &&
|
415
|
+
hidden_fields == o.hidden_fields &&
|
402
416
|
upstream_name == o.upstream_name &&
|
403
417
|
include_tags == o.include_tags &&
|
404
418
|
exclude_tags == o.exclude_tags &&
|
@@ -414,7 +428,7 @@ module PulpContainerClient
|
|
414
428
|
# Calculates hash code according to all attributes.
|
415
429
|
# @return [Integer] Hash code
|
416
430
|
def hash
|
417
|
-
[pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, upstream_name, include_tags, exclude_tags, sigstore].hash
|
431
|
+
[pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, hidden_fields, upstream_name, include_tags, exclude_tags, sigstore].hash
|
418
432
|
end
|
419
433
|
|
420
434
|
# Builds the object from hash
|