pulp_container_client 2.15.0.dev1670382628 → 2.15.0.dev1671073819
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.
Potentially problematic release.
This version of pulp_container_client might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/docs/ContainerContainerDistribution.md +5 -5
- data/docs/ContainerContainerDistributionResponse.md +8 -8
- data/docs/ContainerContainerPushRepository.md +5 -5
- data/docs/ContainerContainerPushRepositoryResponse.md +10 -10
- data/docs/ContainerContainerRemote.md +1 -1
- data/docs/ContainerContainerRemoteResponse.md +1 -1
- data/docs/ContainerContainerRepository.md +1 -1
- data/docs/ContainerContainerRepositoryResponse.md +1 -1
- data/docs/PatchedcontainerContainerDistribution.md +5 -5
- data/docs/PatchedcontainerContainerPushRepository.md +5 -5
- data/docs/PatchedcontainerContainerRemote.md +1 -1
- data/docs/PatchedcontainerContainerRepository.md +1 -1
- data/lib/pulp_container_client/api/distributions_container_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 +1 -1
- data/lib/pulp_container_client/models/container_container_distribution.rb +46 -44
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +39 -37
- data/lib/pulp_container_client/models/container_container_push_repository.rb +37 -35
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +48 -46
- data/lib/pulp_container_client/models/container_container_remote.rb +4 -2
- data/lib/pulp_container_client/models/container_container_remote_response.rb +4 -2
- data/lib/pulp_container_client/models/container_container_repository.rb +4 -2
- data/lib/pulp_container_client/models/container_container_repository_response.rb +4 -2
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +37 -35
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +37 -35
- data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +4 -2
- data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +4 -2
- data/lib/pulp_container_client/version.rb +1 -1
- 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 +7 -7
- data/spec/models/container_container_push_repository_spec.rb +2 -2
- data/spec/models/patchedcontainer_container_distribution_spec.rb +4 -4
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +2 -2
- metadata +2 -2
@@ -15,25 +15,25 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class ContainerContainerDistributionResponse
|
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
|
20
|
+
|
21
|
+
attr_accessor :pulp_href
|
22
|
+
|
18
23
|
# Timestamp of creation.
|
19
24
|
attr_accessor :pulp_created
|
20
25
|
|
21
|
-
# The latest RepositoryVersion for this Repository will be served.
|
22
|
-
attr_accessor :repository
|
23
|
-
|
24
26
|
# A unique name. Ex, `rawhide` and `stable`.
|
25
27
|
attr_accessor :name
|
26
28
|
|
27
|
-
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
28
|
-
attr_accessor :base_path
|
29
|
-
|
30
|
-
attr_accessor :pulp_href
|
31
|
-
|
32
29
|
attr_accessor :pulp_labels
|
33
30
|
|
34
31
|
# An optional content-guard. If none is specified, a default one will be used.
|
35
32
|
attr_accessor :content_guard
|
36
33
|
|
34
|
+
# The latest RepositoryVersion for this Repository will be served.
|
35
|
+
attr_accessor :repository
|
36
|
+
|
37
37
|
# RepositoryVersion to be served
|
38
38
|
attr_accessor :repository_version
|
39
39
|
|
@@ -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
|
-
:'pulp_created' => :'pulp_created',
|
56
|
-
:'repository' => :'repository',
|
57
|
-
:'name' => :'name',
|
58
55
|
:'base_path' => :'base_path',
|
59
56
|
:'pulp_href' => :'pulp_href',
|
57
|
+
:'pulp_created' => :'pulp_created',
|
58
|
+
:'name' => :'name',
|
60
59
|
:'pulp_labels' => :'pulp_labels',
|
61
60
|
:'content_guard' => :'content_guard',
|
61
|
+
:'repository' => :'repository',
|
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
|
-
:'pulp_created' => :'DateTime',
|
74
|
-
:'repository' => :'String',
|
75
|
-
:'name' => :'String',
|
76
73
|
:'base_path' => :'String',
|
77
74
|
:'pulp_href' => :'String',
|
78
|
-
:'
|
75
|
+
:'pulp_created' => :'DateTime',
|
76
|
+
:'name' => :'String',
|
77
|
+
:'pulp_labels' => :'Hash<String, String>',
|
79
78
|
:'content_guard' => :'String',
|
79
|
+
:'repository' => :'String',
|
80
80
|
:'repository_version' => :'String',
|
81
81
|
:'registry_path' => :'String',
|
82
82
|
:'namespace' => :'String',
|
@@ -109,18 +109,6 @@ module PulpContainerClient
|
|
109
109
|
h[k.to_sym] = v
|
110
110
|
}
|
111
111
|
|
112
|
-
if attributes.key?(:'pulp_created')
|
113
|
-
self.pulp_created = attributes[:'pulp_created']
|
114
|
-
end
|
115
|
-
|
116
|
-
if attributes.key?(:'repository')
|
117
|
-
self.repository = attributes[:'repository']
|
118
|
-
end
|
119
|
-
|
120
|
-
if attributes.key?(:'name')
|
121
|
-
self.name = attributes[:'name']
|
122
|
-
end
|
123
|
-
|
124
112
|
if attributes.key?(:'base_path')
|
125
113
|
self.base_path = attributes[:'base_path']
|
126
114
|
end
|
@@ -129,14 +117,28 @@ module PulpContainerClient
|
|
129
117
|
self.pulp_href = attributes[:'pulp_href']
|
130
118
|
end
|
131
119
|
|
120
|
+
if attributes.key?(:'pulp_created')
|
121
|
+
self.pulp_created = attributes[:'pulp_created']
|
122
|
+
end
|
123
|
+
|
124
|
+
if attributes.key?(:'name')
|
125
|
+
self.name = attributes[:'name']
|
126
|
+
end
|
127
|
+
|
132
128
|
if attributes.key?(:'pulp_labels')
|
133
|
-
|
129
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
130
|
+
self.pulp_labels = value
|
131
|
+
end
|
134
132
|
end
|
135
133
|
|
136
134
|
if attributes.key?(:'content_guard')
|
137
135
|
self.content_guard = attributes[:'content_guard']
|
138
136
|
end
|
139
137
|
|
138
|
+
if attributes.key?(:'repository')
|
139
|
+
self.repository = attributes[:'repository']
|
140
|
+
end
|
141
|
+
|
140
142
|
if attributes.key?(:'repository_version')
|
141
143
|
self.repository_version = attributes[:'repository_version']
|
142
144
|
end
|
@@ -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
|
-
pulp_created == o.pulp_created &&
|
190
|
-
repository == o.repository &&
|
191
|
-
name == o.name &&
|
192
191
|
base_path == o.base_path &&
|
193
192
|
pulp_href == o.pulp_href &&
|
193
|
+
pulp_created == o.pulp_created &&
|
194
|
+
name == o.name &&
|
194
195
|
pulp_labels == o.pulp_labels &&
|
195
196
|
content_guard == o.content_guard &&
|
197
|
+
repository == o.repository &&
|
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, pulp_href, pulp_created, name, pulp_labels, content_guard, repository, repository_version, registry_path, namespace, private, description].hash
|
213
215
|
end
|
214
216
|
|
215
217
|
# Builds the object from hash
|
@@ -15,8 +15,8 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class ContainerContainerPushRepository
|
18
|
-
#
|
19
|
-
attr_accessor :
|
18
|
+
# Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
|
19
|
+
attr_accessor :retain_repo_versions
|
20
20
|
|
21
21
|
# A unique name for this repository.
|
22
22
|
attr_accessor :name
|
@@ -26,37 +26,37 @@ module PulpContainerClient
|
|
26
26
|
# A reference to an associated signing service.
|
27
27
|
attr_accessor :manifest_signing_service
|
28
28
|
|
29
|
-
#
|
30
|
-
attr_accessor :
|
29
|
+
# An optional description.
|
30
|
+
attr_accessor :description
|
31
31
|
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
33
|
def self.attribute_map
|
34
34
|
{
|
35
|
-
:'
|
35
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
36
36
|
:'name' => :'name',
|
37
37
|
:'pulp_labels' => :'pulp_labels',
|
38
38
|
:'manifest_signing_service' => :'manifest_signing_service',
|
39
|
-
:'
|
39
|
+
:'description' => :'description'
|
40
40
|
}
|
41
41
|
end
|
42
42
|
|
43
43
|
# Attribute type mapping.
|
44
44
|
def self.openapi_types
|
45
45
|
{
|
46
|
-
:'
|
46
|
+
:'retain_repo_versions' => :'Integer',
|
47
47
|
:'name' => :'String',
|
48
|
-
:'pulp_labels' => :'
|
48
|
+
:'pulp_labels' => :'Hash<String, String>',
|
49
49
|
:'manifest_signing_service' => :'String',
|
50
|
-
:'
|
50
|
+
:'description' => :'String'
|
51
51
|
}
|
52
52
|
end
|
53
53
|
|
54
54
|
# List of attributes with nullable: true
|
55
55
|
def self.openapi_nullable
|
56
56
|
Set.new([
|
57
|
-
:'
|
57
|
+
:'retain_repo_versions',
|
58
58
|
:'manifest_signing_service',
|
59
|
-
:'
|
59
|
+
:'description'
|
60
60
|
])
|
61
61
|
end
|
62
62
|
|
@@ -75,8 +75,8 @@ module PulpContainerClient
|
|
75
75
|
h[k.to_sym] = v
|
76
76
|
}
|
77
77
|
|
78
|
-
if attributes.key?(:'
|
79
|
-
self.
|
78
|
+
if attributes.key?(:'retain_repo_versions')
|
79
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
80
80
|
end
|
81
81
|
|
82
82
|
if attributes.key?(:'name')
|
@@ -84,15 +84,17 @@ module PulpContainerClient
|
|
84
84
|
end
|
85
85
|
|
86
86
|
if attributes.key?(:'pulp_labels')
|
87
|
-
|
87
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
88
|
+
self.pulp_labels = value
|
89
|
+
end
|
88
90
|
end
|
89
91
|
|
90
92
|
if attributes.key?(:'manifest_signing_service')
|
91
93
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
92
94
|
end
|
93
95
|
|
94
|
-
if attributes.key?(:'
|
95
|
-
self.
|
96
|
+
if attributes.key?(:'description')
|
97
|
+
self.description = attributes[:'description']
|
96
98
|
end
|
97
99
|
end
|
98
100
|
|
@@ -100,8 +102,8 @@ 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 !@
|
104
|
-
invalid_properties.push('invalid value for "
|
105
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
106
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
105
107
|
end
|
106
108
|
|
107
109
|
if @name.nil?
|
@@ -112,8 +114,8 @@ module PulpContainerClient
|
|
112
114
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
113
115
|
end
|
114
116
|
|
115
|
-
if !@
|
116
|
-
invalid_properties.push('invalid value for "
|
117
|
+
if !@description.nil? && @description.to_s.length < 1
|
118
|
+
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
117
119
|
end
|
118
120
|
|
119
121
|
invalid_properties
|
@@ -122,21 +124,21 @@ 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 !@
|
127
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
126
128
|
return false if @name.nil?
|
127
129
|
return false if @name.to_s.length < 1
|
128
|
-
return false if !@
|
130
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
129
131
|
true
|
130
132
|
end
|
131
133
|
|
132
134
|
# Custom attribute writer method with validation
|
133
|
-
# @param [Object]
|
134
|
-
def
|
135
|
-
if !
|
136
|
-
fail ArgumentError, 'invalid value for "
|
135
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
136
|
+
def retain_repo_versions=(retain_repo_versions)
|
137
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
138
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
137
139
|
end
|
138
140
|
|
139
|
-
@
|
141
|
+
@retain_repo_versions = retain_repo_versions
|
140
142
|
end
|
141
143
|
|
142
144
|
# Custom attribute writer method with validation
|
@@ -154,13 +156,13 @@ module PulpContainerClient
|
|
154
156
|
end
|
155
157
|
|
156
158
|
# Custom attribute writer method with validation
|
157
|
-
# @param [Object]
|
158
|
-
def
|
159
|
-
if !
|
160
|
-
fail ArgumentError, 'invalid value for "
|
159
|
+
# @param [Object] description Value to be assigned
|
160
|
+
def description=(description)
|
161
|
+
if !description.nil? && description.to_s.length < 1
|
162
|
+
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
161
163
|
end
|
162
164
|
|
163
|
-
@
|
165
|
+
@description = description
|
164
166
|
end
|
165
167
|
|
166
168
|
# Checks equality by comparing each attribute.
|
@@ -168,11 +170,11 @@ module PulpContainerClient
|
|
168
170
|
def ==(o)
|
169
171
|
return true if self.equal?(o)
|
170
172
|
self.class == o.class &&
|
171
|
-
|
173
|
+
retain_repo_versions == o.retain_repo_versions &&
|
172
174
|
name == o.name &&
|
173
175
|
pulp_labels == o.pulp_labels &&
|
174
176
|
manifest_signing_service == o.manifest_signing_service &&
|
175
|
-
|
177
|
+
description == o.description
|
176
178
|
end
|
177
179
|
|
178
180
|
# @see the `==` method
|
@@ -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
|
+
[retain_repo_versions, name, pulp_labels, manifest_signing_service, description].hash
|
188
190
|
end
|
189
191
|
|
190
192
|
# Builds the object from hash
|
@@ -15,65 +15,65 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class ContainerContainerPushRepositoryResponse
|
18
|
-
# An optional description.
|
19
|
-
attr_accessor :description
|
20
|
-
|
21
|
-
# Timestamp of creation.
|
22
|
-
attr_accessor :pulp_created
|
23
|
-
|
24
18
|
attr_accessor :versions_href
|
25
19
|
|
26
20
|
attr_accessor :latest_version_href
|
27
21
|
|
22
|
+
attr_accessor :pulp_href
|
23
|
+
|
24
|
+
# Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
|
25
|
+
attr_accessor :retain_repo_versions
|
26
|
+
|
27
|
+
# Timestamp of creation.
|
28
|
+
attr_accessor :pulp_created
|
29
|
+
|
28
30
|
# A unique name for this repository.
|
29
31
|
attr_accessor :name
|
30
32
|
|
31
|
-
attr_accessor :pulp_href
|
32
|
-
|
33
33
|
attr_accessor :pulp_labels
|
34
34
|
|
35
35
|
# A reference to an associated signing service.
|
36
36
|
attr_accessor :manifest_signing_service
|
37
37
|
|
38
|
-
#
|
39
|
-
attr_accessor :
|
38
|
+
# An optional description.
|
39
|
+
attr_accessor :description
|
40
40
|
|
41
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
42
42
|
def self.attribute_map
|
43
43
|
{
|
44
|
-
:'description' => :'description',
|
45
|
-
:'pulp_created' => :'pulp_created',
|
46
44
|
:'versions_href' => :'versions_href',
|
47
45
|
:'latest_version_href' => :'latest_version_href',
|
48
|
-
:'name' => :'name',
|
49
46
|
:'pulp_href' => :'pulp_href',
|
47
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
48
|
+
:'pulp_created' => :'pulp_created',
|
49
|
+
:'name' => :'name',
|
50
50
|
:'pulp_labels' => :'pulp_labels',
|
51
51
|
:'manifest_signing_service' => :'manifest_signing_service',
|
52
|
-
:'
|
52
|
+
:'description' => :'description'
|
53
53
|
}
|
54
54
|
end
|
55
55
|
|
56
56
|
# Attribute type mapping.
|
57
57
|
def self.openapi_types
|
58
58
|
{
|
59
|
-
:'description' => :'String',
|
60
|
-
:'pulp_created' => :'DateTime',
|
61
59
|
:'versions_href' => :'String',
|
62
60
|
:'latest_version_href' => :'String',
|
63
|
-
:'name' => :'String',
|
64
61
|
:'pulp_href' => :'String',
|
65
|
-
:'
|
62
|
+
:'retain_repo_versions' => :'Integer',
|
63
|
+
:'pulp_created' => :'DateTime',
|
64
|
+
:'name' => :'String',
|
65
|
+
:'pulp_labels' => :'Hash<String, String>',
|
66
66
|
:'manifest_signing_service' => :'String',
|
67
|
-
:'
|
67
|
+
:'description' => :'String'
|
68
68
|
}
|
69
69
|
end
|
70
70
|
|
71
71
|
# List of attributes with nullable: true
|
72
72
|
def self.openapi_nullable
|
73
73
|
Set.new([
|
74
|
-
:'
|
74
|
+
:'retain_repo_versions',
|
75
75
|
:'manifest_signing_service',
|
76
|
-
:'
|
76
|
+
:'description'
|
77
77
|
])
|
78
78
|
end
|
79
79
|
|
@@ -92,14 +92,6 @@ module PulpContainerClient
|
|
92
92
|
h[k.to_sym] = v
|
93
93
|
}
|
94
94
|
|
95
|
-
if attributes.key?(:'description')
|
96
|
-
self.description = attributes[:'description']
|
97
|
-
end
|
98
|
-
|
99
|
-
if attributes.key?(:'pulp_created')
|
100
|
-
self.pulp_created = attributes[:'pulp_created']
|
101
|
-
end
|
102
|
-
|
103
95
|
if attributes.key?(:'versions_href')
|
104
96
|
self.versions_href = attributes[:'versions_href']
|
105
97
|
end
|
@@ -108,24 +100,34 @@ module PulpContainerClient
|
|
108
100
|
self.latest_version_href = attributes[:'latest_version_href']
|
109
101
|
end
|
110
102
|
|
111
|
-
if attributes.key?(:'name')
|
112
|
-
self.name = attributes[:'name']
|
113
|
-
end
|
114
|
-
|
115
103
|
if attributes.key?(:'pulp_href')
|
116
104
|
self.pulp_href = attributes[:'pulp_href']
|
117
105
|
end
|
118
106
|
|
107
|
+
if attributes.key?(:'retain_repo_versions')
|
108
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
109
|
+
end
|
110
|
+
|
111
|
+
if attributes.key?(:'pulp_created')
|
112
|
+
self.pulp_created = attributes[:'pulp_created']
|
113
|
+
end
|
114
|
+
|
115
|
+
if attributes.key?(:'name')
|
116
|
+
self.name = attributes[:'name']
|
117
|
+
end
|
118
|
+
|
119
119
|
if attributes.key?(:'pulp_labels')
|
120
|
-
|
120
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
121
|
+
self.pulp_labels = value
|
122
|
+
end
|
121
123
|
end
|
122
124
|
|
123
125
|
if attributes.key?(:'manifest_signing_service')
|
124
126
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
125
127
|
end
|
126
128
|
|
127
|
-
if attributes.key?(:'
|
128
|
-
self.
|
129
|
+
if attributes.key?(:'description')
|
130
|
+
self.description = attributes[:'description']
|
129
131
|
end
|
130
132
|
end
|
131
133
|
|
@@ -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 @name.nil?
|
137
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
138
|
-
end
|
139
|
-
|
140
138
|
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
141
139
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
142
140
|
end
|
143
141
|
|
142
|
+
if @name.nil?
|
143
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
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 @name.nil?
|
151
152
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
153
|
+
return false if @name.nil?
|
152
154
|
true
|
153
155
|
end
|
154
156
|
|
@@ -167,15 +169,15 @@ module PulpContainerClient
|
|
167
169
|
def ==(o)
|
168
170
|
return true if self.equal?(o)
|
169
171
|
self.class == o.class &&
|
170
|
-
description == o.description &&
|
171
|
-
pulp_created == o.pulp_created &&
|
172
172
|
versions_href == o.versions_href &&
|
173
173
|
latest_version_href == o.latest_version_href &&
|
174
|
-
name == o.name &&
|
175
174
|
pulp_href == o.pulp_href &&
|
175
|
+
retain_repo_versions == o.retain_repo_versions &&
|
176
|
+
pulp_created == o.pulp_created &&
|
177
|
+
name == o.name &&
|
176
178
|
pulp_labels == o.pulp_labels &&
|
177
179
|
manifest_signing_service == o.manifest_signing_service &&
|
178
|
-
|
180
|
+
description == o.description
|
179
181
|
end
|
180
182
|
|
181
183
|
# @see the `==` method
|
@@ -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
|
+
[versions_href, latest_version_href, pulp_href, retain_repo_versions, pulp_created, name, pulp_labels, manifest_signing_service, 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')
|
@@ -126,7 +126,7 @@ module PulpContainerClient
|
|
126
126
|
:'client_cert' => :'String',
|
127
127
|
:'tls_validation' => :'Boolean',
|
128
128
|
:'proxy_url' => :'String',
|
129
|
-
:'pulp_labels' => :'
|
129
|
+
:'pulp_labels' => :'Hash<String, String>',
|
130
130
|
:'pulp_last_updated' => :'DateTime',
|
131
131
|
:'download_concurrency' => :'Integer',
|
132
132
|
:'max_retries' => :'Integer',
|
@@ -211,7 +211,9 @@ module PulpContainerClient
|
|
211
211
|
end
|
212
212
|
|
213
213
|
if attributes.key?(:'pulp_labels')
|
214
|
-
|
214
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
215
|
+
self.pulp_labels = value
|
216
|
+
end
|
215
217
|
end
|
216
218
|
|
217
219
|
if attributes.key?(:'pulp_last_updated')
|
@@ -47,7 +47,7 @@ module PulpContainerClient
|
|
47
47
|
# Attribute type mapping.
|
48
48
|
def self.openapi_types
|
49
49
|
{
|
50
|
-
:'pulp_labels' => :'
|
50
|
+
:'pulp_labels' => :'Hash<String, String>',
|
51
51
|
:'name' => :'String',
|
52
52
|
:'description' => :'String',
|
53
53
|
:'retain_repo_versions' => :'Integer',
|
@@ -82,7 +82,9 @@ module PulpContainerClient
|
|
82
82
|
}
|
83
83
|
|
84
84
|
if attributes.key?(:'pulp_labels')
|
85
|
-
|
85
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
86
|
+
self.pulp_labels = value
|
87
|
+
end
|
86
88
|
end
|
87
89
|
|
88
90
|
if attributes.key?(:'name')
|
@@ -63,7 +63,7 @@ module PulpContainerClient
|
|
63
63
|
:'pulp_href' => :'String',
|
64
64
|
:'pulp_created' => :'DateTime',
|
65
65
|
:'versions_href' => :'String',
|
66
|
-
:'pulp_labels' => :'
|
66
|
+
:'pulp_labels' => :'Hash<String, String>',
|
67
67
|
:'latest_version_href' => :'String',
|
68
68
|
:'name' => :'String',
|
69
69
|
:'description' => :'String',
|
@@ -111,7 +111,9 @@ module PulpContainerClient
|
|
111
111
|
end
|
112
112
|
|
113
113
|
if attributes.key?(:'pulp_labels')
|
114
|
-
|
114
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
115
|
+
self.pulp_labels = value
|
116
|
+
end
|
115
117
|
end
|
116
118
|
|
117
119
|
if attributes.key?(:'latest_version_href')
|