pulp_container_client 2.27.1 → 2.27.3
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 +7 -7
- data/docs/ContainerContainerDistribution.md +8 -8
- data/docs/ContainerContainerDistributionResponse.md +14 -14
- data/docs/ContainerContainerPullThroughDistribution.md +8 -8
- data/docs/ContainerContainerPullThroughDistributionResponse.md +14 -14
- data/docs/ContainerContainerPushRepository.md +5 -5
- data/docs/ContainerContainerPushRepositoryResponse.md +14 -14
- data/docs/ContentBlobsApi.md +6 -6
- data/docs/ContentManifestsApi.md +6 -6
- data/docs/ContentSignaturesApi.md +6 -6
- data/docs/ContentTagsApi.md +6 -6
- data/docs/DistributionsContainerApi.md +6 -6
- data/docs/DistributionsPullThroughApi.md +6 -6
- data/docs/PatchedcontainerContainerDistribution.md +8 -8
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +8 -8
- data/docs/PatchedcontainerContainerPushRepository.md +5 -5
- data/docs/RepositoriesContainerApi.md +2 -2
- data/docs/RepositoriesContainerPushApi.md +2 -2
- data/lib/pulp_container_client/api/content_blobs_api.rb +6 -6
- data/lib/pulp_container_client/api/content_manifests_api.rb +6 -6
- data/lib/pulp_container_client/api/content_signatures_api.rb +6 -6
- data/lib/pulp_container_client/api/content_tags_api.rb +6 -6
- data/lib/pulp_container_client/api/distributions_container_api.rb +4 -4
- data/lib/pulp_container_client/api/distributions_pull_through_api.rb +4 -4
- data/lib/pulp_container_client/api/repositories_container_api.rb +2 -2
- data/lib/pulp_container_client/api/repositories_container_push_api.rb +2 -2
- data/lib/pulp_container_client/models/container_container_distribution.rb +64 -64
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +70 -70
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +64 -64
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +70 -70
- data/lib/pulp_container_client/models/container_container_pull_through_remote.rb +15 -0
- data/lib/pulp_container_client/models/container_container_pull_through_remote_response.rb +15 -0
- data/lib/pulp_container_client/models/container_container_push_repository.rb +42 -27
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +79 -64
- data/lib/pulp_container_client/models/container_container_remote.rb +15 -0
- data/lib/pulp_container_client/models/container_container_remote_response.rb +15 -0
- data/lib/pulp_container_client/models/container_container_repository.rb +15 -0
- data/lib/pulp_container_client/models/container_container_repository_response.rb +15 -0
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +58 -58
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +58 -58
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_remote.rb +15 -0
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +40 -25
- data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +15 -0
- data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +15 -0
- data/lib/pulp_container_client/models/set_label.rb +0 -11
- data/lib/pulp_container_client/models/set_label_response.rb +0 -21
- data/lib/pulp_container_client/models/unset_label.rb +0 -11
- data/lib/pulp_container_client/models/unset_label_response.rb +0 -21
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/api/content_blobs_api_spec.rb +3 -3
- data/spec/api/content_manifests_api_spec.rb +3 -3
- data/spec/api/content_signatures_api_spec.rb +3 -3
- data/spec/api/content_tags_api_spec.rb +3 -3
- data/spec/api/distributions_container_api_spec.rb +2 -2
- data/spec/api/distributions_pull_through_api_spec.rb +2 -2
- data/spec/api/repositories_container_api_spec.rb +1 -1
- data/spec/api/repositories_container_push_api_spec.rb +1 -1
- data/spec/models/container_container_distribution_response_spec.rb +10 -10
- data/spec/models/container_container_distribution_spec.rb +6 -6
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +10 -10
- data/spec/models/container_container_pull_through_distribution_spec.rb +6 -6
- 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 +6 -6
- data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +6 -6
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +5 -5
- metadata +59 -59
|
@@ -16,49 +16,49 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# Serializer for Container Push Repositories.
|
|
18
18
|
class ContainerContainerPushRepositoryResponse
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
# A unique name for this repository.
|
|
22
|
-
attr_accessor :name
|
|
19
|
+
# Timestamp of creation.
|
|
20
|
+
attr_accessor :pulp_created
|
|
23
21
|
|
|
24
|
-
|
|
25
|
-
attr_accessor :prn
|
|
22
|
+
attr_accessor :pulp_labels
|
|
26
23
|
|
|
27
24
|
attr_accessor :latest_version_href
|
|
28
25
|
|
|
29
|
-
attr_accessor :
|
|
26
|
+
attr_accessor :versions_href
|
|
30
27
|
|
|
31
|
-
#
|
|
32
|
-
attr_accessor :
|
|
28
|
+
# The Pulp Resource Name (PRN).
|
|
29
|
+
attr_accessor :prn
|
|
33
30
|
|
|
34
31
|
# 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.
|
|
35
32
|
attr_accessor :pulp_last_updated
|
|
36
33
|
|
|
37
|
-
#
|
|
38
|
-
attr_accessor :
|
|
39
|
-
|
|
40
|
-
# Timestamp of creation.
|
|
41
|
-
attr_accessor :pulp_created
|
|
34
|
+
# A reference to an associated signing service.
|
|
35
|
+
attr_accessor :manifest_signing_service
|
|
42
36
|
|
|
43
37
|
attr_accessor :pulp_href
|
|
44
38
|
|
|
45
|
-
# A
|
|
46
|
-
attr_accessor :
|
|
39
|
+
# A unique name for this repository.
|
|
40
|
+
attr_accessor :name
|
|
41
|
+
|
|
42
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
|
43
|
+
attr_accessor :retain_repo_versions
|
|
44
|
+
|
|
45
|
+
# An optional description.
|
|
46
|
+
attr_accessor :description
|
|
47
47
|
|
|
48
48
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
49
49
|
def self.attribute_map
|
|
50
50
|
{
|
|
51
|
+
:'pulp_created' => :'pulp_created',
|
|
52
|
+
:'pulp_labels' => :'pulp_labels',
|
|
53
|
+
:'latest_version_href' => :'latest_version_href',
|
|
51
54
|
:'versions_href' => :'versions_href',
|
|
52
|
-
:'name' => :'name',
|
|
53
55
|
:'prn' => :'prn',
|
|
54
|
-
:'latest_version_href' => :'latest_version_href',
|
|
55
|
-
:'pulp_labels' => :'pulp_labels',
|
|
56
|
-
:'retain_repo_versions' => :'retain_repo_versions',
|
|
57
56
|
:'pulp_last_updated' => :'pulp_last_updated',
|
|
58
|
-
:'
|
|
59
|
-
:'pulp_created' => :'pulp_created',
|
|
57
|
+
:'manifest_signing_service' => :'manifest_signing_service',
|
|
60
58
|
:'pulp_href' => :'pulp_href',
|
|
61
|
-
:'
|
|
59
|
+
:'name' => :'name',
|
|
60
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
|
61
|
+
:'description' => :'description'
|
|
62
62
|
}
|
|
63
63
|
end
|
|
64
64
|
|
|
@@ -70,26 +70,26 @@ module PulpContainerClient
|
|
|
70
70
|
# Attribute type mapping.
|
|
71
71
|
def self.openapi_types
|
|
72
72
|
{
|
|
73
|
+
:'pulp_created' => :'Time',
|
|
74
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
75
|
+
:'latest_version_href' => :'String',
|
|
73
76
|
:'versions_href' => :'String',
|
|
74
|
-
:'name' => :'String',
|
|
75
77
|
:'prn' => :'String',
|
|
76
|
-
:'latest_version_href' => :'String',
|
|
77
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
78
|
-
:'retain_repo_versions' => :'Integer',
|
|
79
78
|
:'pulp_last_updated' => :'Time',
|
|
80
|
-
:'
|
|
81
|
-
:'pulp_created' => :'Time',
|
|
79
|
+
:'manifest_signing_service' => :'String',
|
|
82
80
|
:'pulp_href' => :'String',
|
|
83
|
-
:'
|
|
81
|
+
:'name' => :'String',
|
|
82
|
+
:'retain_repo_versions' => :'Integer',
|
|
83
|
+
:'description' => :'String'
|
|
84
84
|
}
|
|
85
85
|
end
|
|
86
86
|
|
|
87
87
|
# List of attributes with nullable: true
|
|
88
88
|
def self.openapi_nullable
|
|
89
89
|
Set.new([
|
|
90
|
+
:'manifest_signing_service',
|
|
90
91
|
:'retain_repo_versions',
|
|
91
|
-
:'description'
|
|
92
|
-
:'manifest_signing_service'
|
|
92
|
+
:'description'
|
|
93
93
|
])
|
|
94
94
|
end
|
|
95
95
|
|
|
@@ -108,52 +108,52 @@ module PulpContainerClient
|
|
|
108
108
|
h[k.to_sym] = v
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
if attributes.key?(:'
|
|
112
|
-
self.
|
|
113
|
-
end
|
|
114
|
-
|
|
115
|
-
if attributes.key?(:'name')
|
|
116
|
-
self.name = attributes[:'name']
|
|
117
|
-
else
|
|
118
|
-
self.name = nil
|
|
111
|
+
if attributes.key?(:'pulp_created')
|
|
112
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
119
113
|
end
|
|
120
114
|
|
|
121
|
-
if attributes.key?(:'
|
|
122
|
-
|
|
115
|
+
if attributes.key?(:'pulp_labels')
|
|
116
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
117
|
+
self.pulp_labels = value
|
|
118
|
+
end
|
|
123
119
|
end
|
|
124
120
|
|
|
125
121
|
if attributes.key?(:'latest_version_href')
|
|
126
122
|
self.latest_version_href = attributes[:'latest_version_href']
|
|
127
123
|
end
|
|
128
124
|
|
|
129
|
-
if attributes.key?(:'
|
|
130
|
-
|
|
131
|
-
self.pulp_labels = value
|
|
132
|
-
end
|
|
125
|
+
if attributes.key?(:'versions_href')
|
|
126
|
+
self.versions_href = attributes[:'versions_href']
|
|
133
127
|
end
|
|
134
128
|
|
|
135
|
-
if attributes.key?(:'
|
|
136
|
-
self.
|
|
129
|
+
if attributes.key?(:'prn')
|
|
130
|
+
self.prn = attributes[:'prn']
|
|
137
131
|
end
|
|
138
132
|
|
|
139
133
|
if attributes.key?(:'pulp_last_updated')
|
|
140
134
|
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
141
135
|
end
|
|
142
136
|
|
|
143
|
-
if attributes.key?(:'
|
|
144
|
-
self.
|
|
145
|
-
end
|
|
146
|
-
|
|
147
|
-
if attributes.key?(:'pulp_created')
|
|
148
|
-
self.pulp_created = attributes[:'pulp_created']
|
|
137
|
+
if attributes.key?(:'manifest_signing_service')
|
|
138
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
149
139
|
end
|
|
150
140
|
|
|
151
141
|
if attributes.key?(:'pulp_href')
|
|
152
142
|
self.pulp_href = attributes[:'pulp_href']
|
|
153
143
|
end
|
|
154
144
|
|
|
155
|
-
if attributes.key?(:'
|
|
156
|
-
self.
|
|
145
|
+
if attributes.key?(:'name')
|
|
146
|
+
self.name = attributes[:'name']
|
|
147
|
+
else
|
|
148
|
+
self.name = nil
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
if attributes.key?(:'retain_repo_versions')
|
|
152
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
if attributes.key?(:'description')
|
|
156
|
+
self.description = attributes[:'description']
|
|
157
157
|
end
|
|
158
158
|
end
|
|
159
159
|
|
|
@@ -166,6 +166,10 @@ module PulpContainerClient
|
|
|
166
166
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
167
167
|
end
|
|
168
168
|
|
|
169
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
170
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
171
|
+
end
|
|
172
|
+
|
|
169
173
|
invalid_properties
|
|
170
174
|
end
|
|
171
175
|
|
|
@@ -174,25 +178,36 @@ module PulpContainerClient
|
|
|
174
178
|
def valid?
|
|
175
179
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
176
180
|
return false if @name.nil?
|
|
181
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
177
182
|
true
|
|
178
183
|
end
|
|
179
184
|
|
|
185
|
+
# Custom attribute writer method with validation
|
|
186
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
|
187
|
+
def retain_repo_versions=(retain_repo_versions)
|
|
188
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
|
189
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
@retain_repo_versions = retain_repo_versions
|
|
193
|
+
end
|
|
194
|
+
|
|
180
195
|
# Checks equality by comparing each attribute.
|
|
181
196
|
# @param [Object] Object to be compared
|
|
182
197
|
def ==(o)
|
|
183
198
|
return true if self.equal?(o)
|
|
184
199
|
self.class == o.class &&
|
|
200
|
+
pulp_created == o.pulp_created &&
|
|
201
|
+
pulp_labels == o.pulp_labels &&
|
|
202
|
+
latest_version_href == o.latest_version_href &&
|
|
185
203
|
versions_href == o.versions_href &&
|
|
186
|
-
name == o.name &&
|
|
187
204
|
prn == o.prn &&
|
|
188
|
-
latest_version_href == o.latest_version_href &&
|
|
189
|
-
pulp_labels == o.pulp_labels &&
|
|
190
|
-
retain_repo_versions == o.retain_repo_versions &&
|
|
191
205
|
pulp_last_updated == o.pulp_last_updated &&
|
|
192
|
-
|
|
193
|
-
pulp_created == o.pulp_created &&
|
|
206
|
+
manifest_signing_service == o.manifest_signing_service &&
|
|
194
207
|
pulp_href == o.pulp_href &&
|
|
195
|
-
|
|
208
|
+
name == o.name &&
|
|
209
|
+
retain_repo_versions == o.retain_repo_versions &&
|
|
210
|
+
description == o.description
|
|
196
211
|
end
|
|
197
212
|
|
|
198
213
|
# @see the `==` method
|
|
@@ -204,7 +219,7 @@ module PulpContainerClient
|
|
|
204
219
|
# Calculates hash code according to all attributes.
|
|
205
220
|
# @return [Integer] Hash code
|
|
206
221
|
def hash
|
|
207
|
-
[
|
|
222
|
+
[pulp_created, pulp_labels, latest_version_href, versions_href, prn, pulp_last_updated, manifest_signing_service, pulp_href, name, retain_repo_versions, description].hash
|
|
208
223
|
end
|
|
209
224
|
|
|
210
225
|
# Builds the object from hash
|
|
@@ -401,6 +401,10 @@ module PulpContainerClient
|
|
|
401
401
|
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
|
402
402
|
end
|
|
403
403
|
|
|
404
|
+
if !@download_concurrency.nil? && @download_concurrency < 1
|
|
405
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
|
406
|
+
end
|
|
407
|
+
|
|
404
408
|
if @upstream_name.nil?
|
|
405
409
|
invalid_properties.push('invalid value for "upstream_name", upstream_name cannot be nil.')
|
|
406
410
|
end
|
|
@@ -436,6 +440,7 @@ module PulpContainerClient
|
|
|
436
440
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
437
441
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
438
442
|
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
443
|
+
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
|
439
444
|
return false if @upstream_name.nil?
|
|
440
445
|
return false if @upstream_name.to_s.length < 1
|
|
441
446
|
return false if !@sigstore.nil? && @sigstore.to_s.length < 1
|
|
@@ -590,6 +595,16 @@ module PulpContainerClient
|
|
|
590
595
|
@sock_read_timeout = sock_read_timeout
|
|
591
596
|
end
|
|
592
597
|
|
|
598
|
+
# Custom attribute writer method with validation
|
|
599
|
+
# @param [Object] download_concurrency Value to be assigned
|
|
600
|
+
def download_concurrency=(download_concurrency)
|
|
601
|
+
if !download_concurrency.nil? && download_concurrency < 1
|
|
602
|
+
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
|
603
|
+
end
|
|
604
|
+
|
|
605
|
+
@download_concurrency = download_concurrency
|
|
606
|
+
end
|
|
607
|
+
|
|
593
608
|
# Custom attribute writer method with validation
|
|
594
609
|
# @param [Object] upstream_name Value to be assigned
|
|
595
610
|
def upstream_name=(upstream_name)
|
|
@@ -357,6 +357,10 @@ module PulpContainerClient
|
|
|
357
357
|
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
|
358
358
|
end
|
|
359
359
|
|
|
360
|
+
if !@download_concurrency.nil? && @download_concurrency < 1
|
|
361
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
|
362
|
+
end
|
|
363
|
+
|
|
360
364
|
if @upstream_name.nil?
|
|
361
365
|
invalid_properties.push('invalid value for "upstream_name", upstream_name cannot be nil.')
|
|
362
366
|
end
|
|
@@ -374,6 +378,7 @@ module PulpContainerClient
|
|
|
374
378
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
375
379
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
376
380
|
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
381
|
+
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
|
377
382
|
return false if @upstream_name.nil?
|
|
378
383
|
true
|
|
379
384
|
end
|
|
@@ -418,6 +423,16 @@ module PulpContainerClient
|
|
|
418
423
|
@sock_read_timeout = sock_read_timeout
|
|
419
424
|
end
|
|
420
425
|
|
|
426
|
+
# Custom attribute writer method with validation
|
|
427
|
+
# @param [Object] download_concurrency Value to be assigned
|
|
428
|
+
def download_concurrency=(download_concurrency)
|
|
429
|
+
if !download_concurrency.nil? && download_concurrency < 1
|
|
430
|
+
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
|
431
|
+
end
|
|
432
|
+
|
|
433
|
+
@download_concurrency = download_concurrency
|
|
434
|
+
end
|
|
435
|
+
|
|
421
436
|
# Checks equality by comparing each attribute.
|
|
422
437
|
# @param [Object] Object to be compared
|
|
423
438
|
def ==(o)
|
|
@@ -133,6 +133,10 @@ module PulpContainerClient
|
|
|
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 !@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
|
+
|
|
136
140
|
invalid_properties
|
|
137
141
|
end
|
|
138
142
|
|
|
@@ -143,6 +147,7 @@ module PulpContainerClient
|
|
|
143
147
|
return false if @name.nil?
|
|
144
148
|
return false if @name.to_s.length < 1
|
|
145
149
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
150
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
146
151
|
true
|
|
147
152
|
end
|
|
148
153
|
|
|
@@ -170,6 +175,16 @@ module PulpContainerClient
|
|
|
170
175
|
@description = description
|
|
171
176
|
end
|
|
172
177
|
|
|
178
|
+
# Custom attribute writer method with validation
|
|
179
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
|
180
|
+
def retain_repo_versions=(retain_repo_versions)
|
|
181
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
|
182
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
@retain_repo_versions = retain_repo_versions
|
|
186
|
+
end
|
|
187
|
+
|
|
173
188
|
# Checks equality by comparing each attribute.
|
|
174
189
|
# @param [Object] Object to be compared
|
|
175
190
|
def ==(o)
|
|
@@ -176,6 +176,10 @@ module PulpContainerClient
|
|
|
176
176
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
177
177
|
end
|
|
178
178
|
|
|
179
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
180
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
181
|
+
end
|
|
182
|
+
|
|
179
183
|
invalid_properties
|
|
180
184
|
end
|
|
181
185
|
|
|
@@ -184,9 +188,20 @@ module PulpContainerClient
|
|
|
184
188
|
def valid?
|
|
185
189
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
186
190
|
return false if @name.nil?
|
|
191
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
187
192
|
true
|
|
188
193
|
end
|
|
189
194
|
|
|
195
|
+
# Custom attribute writer method with validation
|
|
196
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
|
197
|
+
def retain_repo_versions=(retain_repo_versions)
|
|
198
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
|
199
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
@retain_repo_versions = retain_repo_versions
|
|
203
|
+
end
|
|
204
|
+
|
|
190
205
|
# Checks equality by comparing each attribute.
|
|
191
206
|
# @param [Object] Object to be compared
|
|
192
207
|
def ==(o)
|
|
@@ -16,22 +16,22 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# A serializer for ContainerDistribution.
|
|
18
18
|
class PatchedcontainerContainerDistribution
|
|
19
|
-
|
|
20
|
-
attr_accessor :name
|
|
21
|
-
|
|
22
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
|
23
|
-
attr_accessor :content_guard
|
|
19
|
+
attr_accessor :pulp_labels
|
|
24
20
|
|
|
25
|
-
#
|
|
26
|
-
attr_accessor :
|
|
21
|
+
# Whether this distribution should be shown in the content app.
|
|
22
|
+
attr_accessor :hidden
|
|
27
23
|
|
|
28
24
|
# The latest RepositoryVersion for this Repository will be served.
|
|
29
25
|
attr_accessor :repository
|
|
30
26
|
|
|
31
|
-
|
|
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
|
|
32
29
|
|
|
33
|
-
#
|
|
34
|
-
attr_accessor :
|
|
30
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
|
31
|
+
attr_accessor :name
|
|
32
|
+
|
|
33
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
|
34
|
+
attr_accessor :content_guard
|
|
35
35
|
|
|
36
36
|
# RepositoryVersion to be served
|
|
37
37
|
attr_accessor :repository_version
|
|
@@ -45,12 +45,12 @@ module PulpContainerClient
|
|
|
45
45
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
46
46
|
def self.attribute_map
|
|
47
47
|
{
|
|
48
|
-
:'name' => :'name',
|
|
49
|
-
:'content_guard' => :'content_guard',
|
|
50
|
-
:'base_path' => :'base_path',
|
|
51
|
-
:'repository' => :'repository',
|
|
52
48
|
:'pulp_labels' => :'pulp_labels',
|
|
53
49
|
:'hidden' => :'hidden',
|
|
50
|
+
:'repository' => :'repository',
|
|
51
|
+
:'base_path' => :'base_path',
|
|
52
|
+
:'name' => :'name',
|
|
53
|
+
:'content_guard' => :'content_guard',
|
|
54
54
|
:'repository_version' => :'repository_version',
|
|
55
55
|
:'private' => :'private',
|
|
56
56
|
:'description' => :'description'
|
|
@@ -65,12 +65,12 @@ module PulpContainerClient
|
|
|
65
65
|
# Attribute type mapping.
|
|
66
66
|
def self.openapi_types
|
|
67
67
|
{
|
|
68
|
-
:'name' => :'String',
|
|
69
|
-
:'content_guard' => :'String',
|
|
70
|
-
:'base_path' => :'String',
|
|
71
|
-
:'repository' => :'String',
|
|
72
68
|
:'pulp_labels' => :'Hash<String, String>',
|
|
73
69
|
:'hidden' => :'Boolean',
|
|
70
|
+
:'repository' => :'String',
|
|
71
|
+
:'base_path' => :'String',
|
|
72
|
+
:'name' => :'String',
|
|
73
|
+
:'content_guard' => :'String',
|
|
74
74
|
:'repository_version' => :'String',
|
|
75
75
|
:'private' => :'Boolean',
|
|
76
76
|
:'description' => :'String'
|
|
@@ -101,22 +101,6 @@ module PulpContainerClient
|
|
|
101
101
|
h[k.to_sym] = v
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
if attributes.key?(:'name')
|
|
105
|
-
self.name = attributes[:'name']
|
|
106
|
-
end
|
|
107
|
-
|
|
108
|
-
if attributes.key?(:'content_guard')
|
|
109
|
-
self.content_guard = attributes[:'content_guard']
|
|
110
|
-
end
|
|
111
|
-
|
|
112
|
-
if attributes.key?(:'base_path')
|
|
113
|
-
self.base_path = attributes[:'base_path']
|
|
114
|
-
end
|
|
115
|
-
|
|
116
|
-
if attributes.key?(:'repository')
|
|
117
|
-
self.repository = attributes[:'repository']
|
|
118
|
-
end
|
|
119
|
-
|
|
120
104
|
if attributes.key?(:'pulp_labels')
|
|
121
105
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
122
106
|
self.pulp_labels = value
|
|
@@ -129,6 +113,22 @@ module PulpContainerClient
|
|
|
129
113
|
self.hidden = false
|
|
130
114
|
end
|
|
131
115
|
|
|
116
|
+
if attributes.key?(:'repository')
|
|
117
|
+
self.repository = attributes[:'repository']
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
if attributes.key?(:'base_path')
|
|
121
|
+
self.base_path = attributes[:'base_path']
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
if attributes.key?(:'name')
|
|
125
|
+
self.name = attributes[:'name']
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
if attributes.key?(:'content_guard')
|
|
129
|
+
self.content_guard = attributes[:'content_guard']
|
|
130
|
+
end
|
|
131
|
+
|
|
132
132
|
if attributes.key?(:'repository_version')
|
|
133
133
|
self.repository_version = attributes[:'repository_version']
|
|
134
134
|
end
|
|
@@ -147,14 +147,14 @@ module PulpContainerClient
|
|
|
147
147
|
def list_invalid_properties
|
|
148
148
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
149
149
|
invalid_properties = Array.new
|
|
150
|
-
if !@name.nil? && @name.to_s.length < 1
|
|
151
|
-
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
152
|
-
end
|
|
153
|
-
|
|
154
150
|
if !@base_path.nil? && @base_path.to_s.length < 1
|
|
155
151
|
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
|
156
152
|
end
|
|
157
153
|
|
|
154
|
+
if !@name.nil? && @name.to_s.length < 1
|
|
155
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
156
|
+
end
|
|
157
|
+
|
|
158
158
|
if !@description.nil? && @description.to_s.length < 1
|
|
159
159
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
160
160
|
end
|
|
@@ -166,26 +166,12 @@ module PulpContainerClient
|
|
|
166
166
|
# @return true if the model is valid
|
|
167
167
|
def valid?
|
|
168
168
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
169
|
-
return false if !@name.nil? && @name.to_s.length < 1
|
|
170
169
|
return false if !@base_path.nil? && @base_path.to_s.length < 1
|
|
170
|
+
return false if !@name.nil? && @name.to_s.length < 1
|
|
171
171
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
172
172
|
true
|
|
173
173
|
end
|
|
174
174
|
|
|
175
|
-
# Custom attribute writer method with validation
|
|
176
|
-
# @param [Object] name Value to be assigned
|
|
177
|
-
def name=(name)
|
|
178
|
-
if name.nil?
|
|
179
|
-
fail ArgumentError, 'name cannot be nil'
|
|
180
|
-
end
|
|
181
|
-
|
|
182
|
-
if name.to_s.length < 1
|
|
183
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
184
|
-
end
|
|
185
|
-
|
|
186
|
-
@name = name
|
|
187
|
-
end
|
|
188
|
-
|
|
189
175
|
# Custom attribute writer method with validation
|
|
190
176
|
# @param [Object] base_path Value to be assigned
|
|
191
177
|
def base_path=(base_path)
|
|
@@ -200,6 +186,20 @@ module PulpContainerClient
|
|
|
200
186
|
@base_path = base_path
|
|
201
187
|
end
|
|
202
188
|
|
|
189
|
+
# Custom attribute writer method with validation
|
|
190
|
+
# @param [Object] name Value to be assigned
|
|
191
|
+
def name=(name)
|
|
192
|
+
if name.nil?
|
|
193
|
+
fail ArgumentError, 'name cannot be nil'
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
if name.to_s.length < 1
|
|
197
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
@name = name
|
|
201
|
+
end
|
|
202
|
+
|
|
203
203
|
# Custom attribute writer method with validation
|
|
204
204
|
# @param [Object] description Value to be assigned
|
|
205
205
|
def description=(description)
|
|
@@ -215,12 +215,12 @@ module PulpContainerClient
|
|
|
215
215
|
def ==(o)
|
|
216
216
|
return true if self.equal?(o)
|
|
217
217
|
self.class == o.class &&
|
|
218
|
-
name == o.name &&
|
|
219
|
-
content_guard == o.content_guard &&
|
|
220
|
-
base_path == o.base_path &&
|
|
221
|
-
repository == o.repository &&
|
|
222
218
|
pulp_labels == o.pulp_labels &&
|
|
223
219
|
hidden == o.hidden &&
|
|
220
|
+
repository == o.repository &&
|
|
221
|
+
base_path == o.base_path &&
|
|
222
|
+
name == o.name &&
|
|
223
|
+
content_guard == o.content_guard &&
|
|
224
224
|
repository_version == o.repository_version &&
|
|
225
225
|
private == o.private &&
|
|
226
226
|
description == o.description
|
|
@@ -235,7 +235,7 @@ module PulpContainerClient
|
|
|
235
235
|
# Calculates hash code according to all attributes.
|
|
236
236
|
# @return [Integer] Hash code
|
|
237
237
|
def hash
|
|
238
|
-
[
|
|
238
|
+
[pulp_labels, hidden, repository, base_path, name, content_guard, repository_version, private, description].hash
|
|
239
239
|
end
|
|
240
240
|
|
|
241
241
|
# Builds the object from hash
|