pulp_container_client 2.28.1 → 2.29.1
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 +9 -6
- data/docs/ContainerContainerDistribution.md +8 -8
- data/docs/ContainerContainerDistributionResponse.md +20 -20
- data/docs/ContainerContainerPullThroughDistribution.md +9 -9
- data/docs/ContainerContainerPullThroughDistributionResponse.md +20 -20
- data/docs/ContainerContainerPushRepository.md +8 -8
- data/docs/ContainerContainerPushRepositoryResponse.md +16 -16
- data/docs/ContainerRepositorySyncURL.md +1 -1
- data/docs/ContentBlobsApi.md +4 -0
- data/docs/ContentManifestsApi.md +4 -0
- data/docs/ContentSignaturesApi.md +4 -0
- data/docs/ContentTagsApi.md +4 -0
- data/docs/DistributionsPullThroughApi.md +10 -10
- data/docs/PatchedcontainerContainerDistribution.md +8 -8
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +9 -9
- data/docs/PatchedcontainerContainerPushRepository.md +8 -8
- data/docs/RepositoriesContainerApi.md +3 -3
- data/docs/RepositoriesContainerPushApi.md +75 -0
- data/lib/pulp_container_client/api/content_blobs_api.rb +6 -0
- data/lib/pulp_container_client/api/content_manifests_api.rb +6 -0
- data/lib/pulp_container_client/api/content_signatures_api.rb +6 -0
- data/lib/pulp_container_client/api/content_tags_api.rb +6 -0
- data/lib/pulp_container_client/api/distributions_pull_through_api.rb +4 -8
- data/lib/pulp_container_client/api/repositories_container_api.rb +6 -6
- data/lib/pulp_container_client/api/repositories_container_push_api.rb +66 -0
- data/lib/pulp_container_client/models/container_container_distribution.rb +42 -42
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +82 -82
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +43 -43
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +82 -82
- data/lib/pulp_container_client/models/container_container_push_repository.rb +68 -68
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +83 -83
- data/lib/pulp_container_client/models/container_repository_sync_url.rb +1 -1
- data/lib/pulp_container_client/models/nested_role.rb +1 -1
- data/lib/pulp_container_client/models/nested_role_response.rb +1 -1
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +40 -40
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +41 -41
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +66 -66
- data/lib/pulp_container_client/models/repository_version_response.rb +1 -1
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/api/content_blobs_api_spec.rb +2 -0
- data/spec/api/content_manifests_api_spec.rb +2 -0
- data/spec/api/content_signatures_api_spec.rb +2 -0
- data/spec/api/content_tags_api_spec.rb +2 -0
- data/spec/api/distributions_pull_through_api_spec.rb +2 -4
- data/spec/api/repositories_container_api_spec.rb +3 -3
- data/spec/api/repositories_container_push_api_spec.rb +13 -0
- data/spec/models/container_container_distribution_response_spec.rb +12 -12
- data/spec/models/container_container_distribution_spec.rb +7 -7
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +12 -12
- data/spec/models/container_container_pull_through_distribution_spec.rb +7 -7
- data/spec/models/container_container_push_repository_response_spec.rb +11 -11
- data/spec/models/container_container_push_repository_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_distribution_spec.rb +7 -7
- data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +7 -7
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +5 -5
- metadata +60 -60
data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb
CHANGED
|
@@ -16,42 +16,42 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# A serializer for a specialized pull-through distribution referencing sub-distributions.
|
|
18
18
|
class ContainerContainerPullThroughDistributionResponse
|
|
19
|
-
#
|
|
20
|
-
attr_accessor :
|
|
19
|
+
# RepositoryVersion to be served
|
|
20
|
+
attr_accessor :repository_version
|
|
21
21
|
|
|
22
|
-
#
|
|
23
|
-
attr_accessor :
|
|
22
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
|
23
|
+
attr_accessor :name
|
|
24
24
|
|
|
25
|
-
# The
|
|
26
|
-
attr_accessor :
|
|
25
|
+
# The latest RepositoryVersion for this Repository will be served.
|
|
26
|
+
attr_accessor :repository
|
|
27
27
|
|
|
28
28
|
attr_accessor :pulp_href
|
|
29
29
|
|
|
30
|
-
#
|
|
31
|
-
attr_accessor :
|
|
32
|
-
|
|
33
|
-
# The Pulp Resource Name (PRN).
|
|
34
|
-
attr_accessor :prn
|
|
30
|
+
# The Pulp Resource Name (PRN) of the associated optional content guard.
|
|
31
|
+
attr_accessor :content_guard_prn
|
|
35
32
|
|
|
36
|
-
#
|
|
37
|
-
attr_accessor :
|
|
33
|
+
# The registry path exposed by this pull-through distribution.
|
|
34
|
+
attr_accessor :base_path
|
|
38
35
|
|
|
39
36
|
attr_accessor :pulp_labels
|
|
40
37
|
|
|
41
|
-
# A unique name. Ex, `rawhide` and `stable`.
|
|
42
|
-
attr_accessor :name
|
|
43
|
-
|
|
44
38
|
# Whether this distribution should be shown in the content app.
|
|
45
39
|
attr_accessor :hidden
|
|
46
40
|
|
|
47
|
-
#
|
|
48
|
-
attr_accessor :
|
|
41
|
+
# Timestamp of creation.
|
|
42
|
+
attr_accessor :pulp_created
|
|
49
43
|
|
|
50
|
-
#
|
|
51
|
-
attr_accessor :
|
|
44
|
+
# The Pulp Resource Name (PRN).
|
|
45
|
+
attr_accessor :prn
|
|
52
46
|
|
|
53
|
-
#
|
|
54
|
-
attr_accessor :
|
|
47
|
+
# Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
|
|
48
|
+
attr_accessor :pulp_last_updated
|
|
49
|
+
|
|
50
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
|
51
|
+
attr_accessor :content_guard
|
|
52
|
+
|
|
53
|
+
# Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
|
|
54
|
+
attr_accessor :no_content_change_since
|
|
55
55
|
|
|
56
56
|
# Remote that can be used to fetch content when using pull-through caching.
|
|
57
57
|
attr_accessor :remote
|
|
@@ -71,19 +71,19 @@ module PulpContainerClient
|
|
|
71
71
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
72
72
|
def self.attribute_map
|
|
73
73
|
{
|
|
74
|
-
:'
|
|
75
|
-
:'no_content_change_since' => :'no_content_change_since',
|
|
76
|
-
:'content_guard_prn' => :'content_guard_prn',
|
|
77
|
-
:'pulp_href' => :'pulp_href',
|
|
78
|
-
:'content_guard' => :'content_guard',
|
|
79
|
-
:'prn' => :'prn',
|
|
80
|
-
:'pulp_created' => :'pulp_created',
|
|
81
|
-
:'pulp_labels' => :'pulp_labels',
|
|
74
|
+
:'repository_version' => :'repository_version',
|
|
82
75
|
:'name' => :'name',
|
|
83
|
-
:'hidden' => :'hidden',
|
|
84
76
|
:'repository' => :'repository',
|
|
85
|
-
:'
|
|
77
|
+
:'pulp_href' => :'pulp_href',
|
|
78
|
+
:'content_guard_prn' => :'content_guard_prn',
|
|
86
79
|
:'base_path' => :'base_path',
|
|
80
|
+
:'pulp_labels' => :'pulp_labels',
|
|
81
|
+
:'hidden' => :'hidden',
|
|
82
|
+
:'pulp_created' => :'pulp_created',
|
|
83
|
+
:'prn' => :'prn',
|
|
84
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
|
85
|
+
:'content_guard' => :'content_guard',
|
|
86
|
+
:'no_content_change_since' => :'no_content_change_since',
|
|
87
87
|
:'remote' => :'remote',
|
|
88
88
|
:'distributions' => :'distributions',
|
|
89
89
|
:'namespace' => :'namespace',
|
|
@@ -100,19 +100,19 @@ module PulpContainerClient
|
|
|
100
100
|
# Attribute type mapping.
|
|
101
101
|
def self.openapi_types
|
|
102
102
|
{
|
|
103
|
-
:'
|
|
104
|
-
:'no_content_change_since' => :'String',
|
|
105
|
-
:'content_guard_prn' => :'String',
|
|
106
|
-
:'pulp_href' => :'String',
|
|
107
|
-
:'content_guard' => :'String',
|
|
108
|
-
:'prn' => :'String',
|
|
109
|
-
:'pulp_created' => :'Time',
|
|
110
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
103
|
+
:'repository_version' => :'String',
|
|
111
104
|
:'name' => :'String',
|
|
112
|
-
:'hidden' => :'Boolean',
|
|
113
105
|
:'repository' => :'String',
|
|
114
|
-
:'
|
|
106
|
+
:'pulp_href' => :'String',
|
|
107
|
+
:'content_guard_prn' => :'String',
|
|
115
108
|
:'base_path' => :'String',
|
|
109
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
110
|
+
:'hidden' => :'Boolean',
|
|
111
|
+
:'pulp_created' => :'Time',
|
|
112
|
+
:'prn' => :'String',
|
|
113
|
+
:'pulp_last_updated' => :'Time',
|
|
114
|
+
:'content_guard' => :'String',
|
|
115
|
+
:'no_content_change_since' => :'String',
|
|
116
116
|
:'remote' => :'String',
|
|
117
117
|
:'distributions' => :'Array<String>',
|
|
118
118
|
:'namespace' => :'String',
|
|
@@ -124,8 +124,8 @@ module PulpContainerClient
|
|
|
124
124
|
# List of attributes with nullable: true
|
|
125
125
|
def self.openapi_nullable
|
|
126
126
|
Set.new([
|
|
127
|
-
:'repository',
|
|
128
127
|
:'repository_version',
|
|
128
|
+
:'repository',
|
|
129
129
|
:'description'
|
|
130
130
|
])
|
|
131
131
|
end
|
|
@@ -145,32 +145,32 @@ module PulpContainerClient
|
|
|
145
145
|
h[k.to_sym] = v
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
if attributes.key?(:'
|
|
149
|
-
self.
|
|
148
|
+
if attributes.key?(:'repository_version')
|
|
149
|
+
self.repository_version = attributes[:'repository_version']
|
|
150
150
|
end
|
|
151
151
|
|
|
152
|
-
if attributes.key?(:'
|
|
153
|
-
self.
|
|
152
|
+
if attributes.key?(:'name')
|
|
153
|
+
self.name = attributes[:'name']
|
|
154
|
+
else
|
|
155
|
+
self.name = nil
|
|
154
156
|
end
|
|
155
157
|
|
|
156
|
-
if attributes.key?(:'
|
|
157
|
-
self.
|
|
158
|
+
if attributes.key?(:'repository')
|
|
159
|
+
self.repository = attributes[:'repository']
|
|
158
160
|
end
|
|
159
161
|
|
|
160
162
|
if attributes.key?(:'pulp_href')
|
|
161
163
|
self.pulp_href = attributes[:'pulp_href']
|
|
162
164
|
end
|
|
163
165
|
|
|
164
|
-
if attributes.key?(:'
|
|
165
|
-
self.
|
|
166
|
-
end
|
|
167
|
-
|
|
168
|
-
if attributes.key?(:'prn')
|
|
169
|
-
self.prn = attributes[:'prn']
|
|
166
|
+
if attributes.key?(:'content_guard_prn')
|
|
167
|
+
self.content_guard_prn = attributes[:'content_guard_prn']
|
|
170
168
|
end
|
|
171
169
|
|
|
172
|
-
if attributes.key?(:'
|
|
173
|
-
self.
|
|
170
|
+
if attributes.key?(:'base_path')
|
|
171
|
+
self.base_path = attributes[:'base_path']
|
|
172
|
+
else
|
|
173
|
+
self.base_path = nil
|
|
174
174
|
end
|
|
175
175
|
|
|
176
176
|
if attributes.key?(:'pulp_labels')
|
|
@@ -179,30 +179,30 @@ module PulpContainerClient
|
|
|
179
179
|
end
|
|
180
180
|
end
|
|
181
181
|
|
|
182
|
-
if attributes.key?(:'name')
|
|
183
|
-
self.name = attributes[:'name']
|
|
184
|
-
else
|
|
185
|
-
self.name = nil
|
|
186
|
-
end
|
|
187
|
-
|
|
188
182
|
if attributes.key?(:'hidden')
|
|
189
183
|
self.hidden = attributes[:'hidden']
|
|
190
184
|
else
|
|
191
185
|
self.hidden = false
|
|
192
186
|
end
|
|
193
187
|
|
|
194
|
-
if attributes.key?(:'
|
|
195
|
-
self.
|
|
188
|
+
if attributes.key?(:'pulp_created')
|
|
189
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
196
190
|
end
|
|
197
191
|
|
|
198
|
-
if attributes.key?(:'
|
|
199
|
-
self.
|
|
192
|
+
if attributes.key?(:'prn')
|
|
193
|
+
self.prn = attributes[:'prn']
|
|
200
194
|
end
|
|
201
195
|
|
|
202
|
-
if attributes.key?(:'
|
|
203
|
-
self.
|
|
204
|
-
|
|
205
|
-
|
|
196
|
+
if attributes.key?(:'pulp_last_updated')
|
|
197
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
if attributes.key?(:'content_guard')
|
|
201
|
+
self.content_guard = attributes[:'content_guard']
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
if attributes.key?(:'no_content_change_since')
|
|
205
|
+
self.no_content_change_since = attributes[:'no_content_change_since']
|
|
206
206
|
end
|
|
207
207
|
|
|
208
208
|
if attributes.key?(:'remote')
|
|
@@ -265,19 +265,19 @@ module PulpContainerClient
|
|
|
265
265
|
def ==(o)
|
|
266
266
|
return true if self.equal?(o)
|
|
267
267
|
self.class == o.class &&
|
|
268
|
-
|
|
269
|
-
no_content_change_since == o.no_content_change_since &&
|
|
270
|
-
content_guard_prn == o.content_guard_prn &&
|
|
271
|
-
pulp_href == o.pulp_href &&
|
|
272
|
-
content_guard == o.content_guard &&
|
|
273
|
-
prn == o.prn &&
|
|
274
|
-
pulp_created == o.pulp_created &&
|
|
275
|
-
pulp_labels == o.pulp_labels &&
|
|
268
|
+
repository_version == o.repository_version &&
|
|
276
269
|
name == o.name &&
|
|
277
|
-
hidden == o.hidden &&
|
|
278
270
|
repository == o.repository &&
|
|
279
|
-
|
|
271
|
+
pulp_href == o.pulp_href &&
|
|
272
|
+
content_guard_prn == o.content_guard_prn &&
|
|
280
273
|
base_path == o.base_path &&
|
|
274
|
+
pulp_labels == o.pulp_labels &&
|
|
275
|
+
hidden == o.hidden &&
|
|
276
|
+
pulp_created == o.pulp_created &&
|
|
277
|
+
prn == o.prn &&
|
|
278
|
+
pulp_last_updated == o.pulp_last_updated &&
|
|
279
|
+
content_guard == o.content_guard &&
|
|
280
|
+
no_content_change_since == o.no_content_change_since &&
|
|
281
281
|
remote == o.remote &&
|
|
282
282
|
distributions == o.distributions &&
|
|
283
283
|
namespace == o.namespace &&
|
|
@@ -294,7 +294,7 @@ module PulpContainerClient
|
|
|
294
294
|
# Calculates hash code according to all attributes.
|
|
295
295
|
# @return [Integer] Hash code
|
|
296
296
|
def hash
|
|
297
|
-
[
|
|
297
|
+
[repository_version, name, repository, pulp_href, content_guard_prn, base_path, pulp_labels, hidden, pulp_created, prn, pulp_last_updated, content_guard, no_content_change_since, remote, distributions, namespace, private, description].hash
|
|
298
298
|
end
|
|
299
299
|
|
|
300
300
|
# Builds the object from hash
|
|
@@ -16,32 +16,32 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# Serializer for Container Push Repositories.
|
|
18
18
|
class ContainerContainerPushRepository
|
|
19
|
+
# A unique name for this repository.
|
|
20
|
+
attr_accessor :name
|
|
21
|
+
|
|
19
22
|
# A reference to an associated signing service.
|
|
20
23
|
attr_accessor :manifest_signing_service
|
|
21
24
|
|
|
22
|
-
|
|
23
|
-
attr_accessor :retain_checkpoints
|
|
24
|
-
|
|
25
|
-
# Retain X versions of the repository. Default is null which retains all versions.
|
|
26
|
-
attr_accessor :retain_repo_versions
|
|
25
|
+
attr_accessor :pulp_labels
|
|
27
26
|
|
|
28
27
|
# An optional description.
|
|
29
28
|
attr_accessor :description
|
|
30
29
|
|
|
31
|
-
|
|
30
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
|
31
|
+
attr_accessor :retain_repo_versions
|
|
32
32
|
|
|
33
|
-
#
|
|
34
|
-
attr_accessor :
|
|
33
|
+
# Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
|
|
34
|
+
attr_accessor :retain_checkpoints
|
|
35
35
|
|
|
36
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
37
37
|
def self.attribute_map
|
|
38
38
|
{
|
|
39
|
+
:'name' => :'name',
|
|
39
40
|
:'manifest_signing_service' => :'manifest_signing_service',
|
|
40
|
-
:'retain_checkpoints' => :'retain_checkpoints',
|
|
41
|
-
:'retain_repo_versions' => :'retain_repo_versions',
|
|
42
|
-
:'description' => :'description',
|
|
43
41
|
:'pulp_labels' => :'pulp_labels',
|
|
44
|
-
:'
|
|
42
|
+
:'description' => :'description',
|
|
43
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
|
44
|
+
:'retain_checkpoints' => :'retain_checkpoints'
|
|
45
45
|
}
|
|
46
46
|
end
|
|
47
47
|
|
|
@@ -53,12 +53,12 @@ module PulpContainerClient
|
|
|
53
53
|
# Attribute type mapping.
|
|
54
54
|
def self.openapi_types
|
|
55
55
|
{
|
|
56
|
+
:'name' => :'String',
|
|
56
57
|
:'manifest_signing_service' => :'String',
|
|
57
|
-
:'retain_checkpoints' => :'Integer',
|
|
58
|
-
:'retain_repo_versions' => :'Integer',
|
|
59
|
-
:'description' => :'String',
|
|
60
58
|
:'pulp_labels' => :'Hash<String, String>',
|
|
61
|
-
:'
|
|
59
|
+
:'description' => :'String',
|
|
60
|
+
:'retain_repo_versions' => :'Integer',
|
|
61
|
+
:'retain_checkpoints' => :'Integer'
|
|
62
62
|
}
|
|
63
63
|
end
|
|
64
64
|
|
|
@@ -66,9 +66,9 @@ module PulpContainerClient
|
|
|
66
66
|
def self.openapi_nullable
|
|
67
67
|
Set.new([
|
|
68
68
|
:'manifest_signing_service',
|
|
69
|
-
:'retain_checkpoints',
|
|
70
|
-
:'retain_repo_versions',
|
|
71
69
|
:'description',
|
|
70
|
+
:'retain_repo_versions',
|
|
71
|
+
:'retain_checkpoints'
|
|
72
72
|
])
|
|
73
73
|
end
|
|
74
74
|
|
|
@@ -87,32 +87,32 @@ module PulpContainerClient
|
|
|
87
87
|
h[k.to_sym] = v
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
if attributes.key?(:'
|
|
91
|
-
self.
|
|
90
|
+
if attributes.key?(:'name')
|
|
91
|
+
self.name = attributes[:'name']
|
|
92
|
+
else
|
|
93
|
+
self.name = nil
|
|
92
94
|
end
|
|
93
95
|
|
|
94
|
-
if attributes.key?(:'
|
|
95
|
-
self.
|
|
96
|
+
if attributes.key?(:'manifest_signing_service')
|
|
97
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
96
98
|
end
|
|
97
99
|
|
|
98
|
-
if attributes.key?(:'
|
|
99
|
-
|
|
100
|
+
if attributes.key?(:'pulp_labels')
|
|
101
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
102
|
+
self.pulp_labels = value
|
|
103
|
+
end
|
|
100
104
|
end
|
|
101
105
|
|
|
102
106
|
if attributes.key?(:'description')
|
|
103
107
|
self.description = attributes[:'description']
|
|
104
108
|
end
|
|
105
109
|
|
|
106
|
-
if attributes.key?(:'
|
|
107
|
-
|
|
108
|
-
self.pulp_labels = value
|
|
109
|
-
end
|
|
110
|
+
if attributes.key?(:'retain_repo_versions')
|
|
111
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
110
112
|
end
|
|
111
113
|
|
|
112
|
-
if attributes.key?(:'
|
|
113
|
-
self.
|
|
114
|
-
else
|
|
115
|
-
self.name = nil
|
|
114
|
+
if attributes.key?(:'retain_checkpoints')
|
|
115
|
+
self.retain_checkpoints = attributes[:'retain_checkpoints']
|
|
116
116
|
end
|
|
117
117
|
end
|
|
118
118
|
|
|
@@ -121,24 +121,24 @@ module PulpContainerClient
|
|
|
121
121
|
def list_invalid_properties
|
|
122
122
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
123
123
|
invalid_properties = Array.new
|
|
124
|
-
if
|
|
125
|
-
invalid_properties.push('invalid value for "
|
|
124
|
+
if @name.nil?
|
|
125
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
126
126
|
end
|
|
127
127
|
|
|
128
|
-
if
|
|
129
|
-
invalid_properties.push('invalid value for "
|
|
128
|
+
if @name.to_s.length < 1
|
|
129
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
130
130
|
end
|
|
131
131
|
|
|
132
132
|
if !@description.nil? && @description.to_s.length < 1
|
|
133
133
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
134
134
|
end
|
|
135
135
|
|
|
136
|
-
if
|
|
137
|
-
invalid_properties.push('invalid value for "
|
|
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
138
|
end
|
|
139
139
|
|
|
140
|
-
if
|
|
141
|
-
invalid_properties.push('invalid value for "
|
|
140
|
+
if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
141
|
+
invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
|
|
142
142
|
end
|
|
143
143
|
|
|
144
144
|
invalid_properties
|
|
@@ -148,32 +148,26 @@ module PulpContainerClient
|
|
|
148
148
|
# @return true if the model is valid
|
|
149
149
|
def valid?
|
|
150
150
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
151
|
-
return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
152
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
153
|
-
return false if !@description.nil? && @description.to_s.length < 1
|
|
154
151
|
return false if @name.nil?
|
|
155
152
|
return false if @name.to_s.length < 1
|
|
153
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
|
154
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
155
|
+
return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
156
156
|
true
|
|
157
157
|
end
|
|
158
158
|
|
|
159
159
|
# Custom attribute writer method with validation
|
|
160
|
-
# @param [Object]
|
|
161
|
-
def
|
|
162
|
-
if
|
|
163
|
-
fail ArgumentError, '
|
|
160
|
+
# @param [Object] name Value to be assigned
|
|
161
|
+
def name=(name)
|
|
162
|
+
if name.nil?
|
|
163
|
+
fail ArgumentError, 'name cannot be nil'
|
|
164
164
|
end
|
|
165
165
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
# Custom attribute writer method with validation
|
|
170
|
-
# @param [Object] retain_repo_versions Value to be assigned
|
|
171
|
-
def retain_repo_versions=(retain_repo_versions)
|
|
172
|
-
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
|
173
|
-
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
|
166
|
+
if name.to_s.length < 1
|
|
167
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
174
168
|
end
|
|
175
169
|
|
|
176
|
-
@
|
|
170
|
+
@name = name
|
|
177
171
|
end
|
|
178
172
|
|
|
179
173
|
# Custom attribute writer method with validation
|
|
@@ -187,17 +181,23 @@ module PulpContainerClient
|
|
|
187
181
|
end
|
|
188
182
|
|
|
189
183
|
# Custom attribute writer method with validation
|
|
190
|
-
# @param [Object]
|
|
191
|
-
def
|
|
192
|
-
if
|
|
193
|
-
fail ArgumentError, '
|
|
184
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
|
185
|
+
def retain_repo_versions=(retain_repo_versions)
|
|
186
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
|
187
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
|
194
188
|
end
|
|
195
189
|
|
|
196
|
-
|
|
197
|
-
|
|
190
|
+
@retain_repo_versions = retain_repo_versions
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
# Custom attribute writer method with validation
|
|
194
|
+
# @param [Object] retain_checkpoints Value to be assigned
|
|
195
|
+
def retain_checkpoints=(retain_checkpoints)
|
|
196
|
+
if !retain_checkpoints.nil? && retain_checkpoints < 1
|
|
197
|
+
fail ArgumentError, 'invalid value for "retain_checkpoints", must be greater than or equal to 1.'
|
|
198
198
|
end
|
|
199
199
|
|
|
200
|
-
@
|
|
200
|
+
@retain_checkpoints = retain_checkpoints
|
|
201
201
|
end
|
|
202
202
|
|
|
203
203
|
# Checks equality by comparing each attribute.
|
|
@@ -205,12 +205,12 @@ module PulpContainerClient
|
|
|
205
205
|
def ==(o)
|
|
206
206
|
return true if self.equal?(o)
|
|
207
207
|
self.class == o.class &&
|
|
208
|
+
name == o.name &&
|
|
208
209
|
manifest_signing_service == o.manifest_signing_service &&
|
|
209
|
-
retain_checkpoints == o.retain_checkpoints &&
|
|
210
|
-
retain_repo_versions == o.retain_repo_versions &&
|
|
211
|
-
description == o.description &&
|
|
212
210
|
pulp_labels == o.pulp_labels &&
|
|
213
|
-
|
|
211
|
+
description == o.description &&
|
|
212
|
+
retain_repo_versions == o.retain_repo_versions &&
|
|
213
|
+
retain_checkpoints == o.retain_checkpoints
|
|
214
214
|
end
|
|
215
215
|
|
|
216
216
|
# @see the `==` method
|
|
@@ -222,7 +222,7 @@ module PulpContainerClient
|
|
|
222
222
|
# Calculates hash code according to all attributes.
|
|
223
223
|
# @return [Integer] Hash code
|
|
224
224
|
def hash
|
|
225
|
-
[
|
|
225
|
+
[name, manifest_signing_service, pulp_labels, description, retain_repo_versions, retain_checkpoints].hash
|
|
226
226
|
end
|
|
227
227
|
|
|
228
228
|
# Builds the object from hash
|