pulp_container_client 2.21.1 → 2.21.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/docs/ContainerContainerDistribution.md +8 -8
- data/docs/ContainerContainerDistributionResponse.md +16 -16
- data/docs/ContainerContainerPullThroughDistribution.md +8 -8
- data/docs/ContainerContainerPullThroughDistributionResponse.md +16 -16
- data/docs/ContainerContainerPushRepository.md +4 -4
- data/docs/ContainerContainerPushRepositoryResponse.md +15 -15
- data/docs/PatchedcontainerContainerDistribution.md +8 -8
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +8 -8
- data/docs/PatchedcontainerContainerPushRepository.md +4 -4
- data/lib/pulp_container_client/models/container_container_distribution.rb +59 -59
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +71 -71
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +59 -59
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +71 -71
- data/lib/pulp_container_client/models/container_container_pull_through_remote.rb +20 -20
- data/lib/pulp_container_client/models/container_container_pull_through_remote_response.rb +20 -20
- data/lib/pulp_container_client/models/container_container_push_repository.rb +34 -34
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +63 -63
- data/lib/pulp_container_client/models/container_container_remote.rb +20 -20
- data/lib/pulp_container_client/models/container_container_remote_response.rb +20 -20
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +50 -50
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +50 -50
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_remote.rb +20 -20
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +34 -34
- data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +20 -20
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/models/container_container_distribution_response_spec.rb +11 -11
- data/spec/models/container_container_distribution_spec.rb +5 -5
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +11 -11
- data/spec/models/container_container_pull_through_distribution_spec.rb +5 -5
- data/spec/models/container_container_push_repository_response_spec.rb +11 -11
- data/spec/models/container_container_push_repository_spec.rb +3 -3
- data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +3 -3
- metadata +64 -64
@@ -15,66 +15,66 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class ContainerContainerPushRepositoryResponse
|
18
|
-
|
18
|
+
# Timestamp of creation.
|
19
|
+
attr_accessor :pulp_created
|
19
20
|
|
20
|
-
|
21
|
+
# The Pulp Resource Name (PRN).
|
22
|
+
attr_accessor :prn
|
23
|
+
|
24
|
+
# A unique name for this repository.
|
25
|
+
attr_accessor :name
|
21
26
|
|
22
27
|
# A reference to an associated signing service.
|
23
28
|
attr_accessor :manifest_signing_service
|
24
29
|
|
25
|
-
attr_accessor :
|
30
|
+
attr_accessor :latest_version_href
|
26
31
|
|
27
|
-
#
|
28
|
-
attr_accessor :
|
32
|
+
# 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.
|
33
|
+
attr_accessor :pulp_last_updated
|
29
34
|
|
30
|
-
|
31
|
-
attr_accessor :pulp_created
|
35
|
+
attr_accessor :pulp_href
|
32
36
|
|
33
|
-
|
34
|
-
attr_accessor :name
|
37
|
+
attr_accessor :versions_href
|
35
38
|
|
36
|
-
|
37
|
-
attr_accessor :pulp_last_updated
|
39
|
+
attr_accessor :pulp_labels
|
38
40
|
|
39
|
-
|
41
|
+
# An optional description.
|
42
|
+
attr_accessor :description
|
40
43
|
|
41
44
|
# Retain X versions of the repository. Default is null which retains all versions.
|
42
45
|
attr_accessor :retain_repo_versions
|
43
46
|
|
44
|
-
# The Pulp Resource Name (PRN).
|
45
|
-
attr_accessor :prn
|
46
|
-
|
47
47
|
# Attribute mapping from ruby-style variable name to JSON key.
|
48
48
|
def self.attribute_map
|
49
49
|
{
|
50
|
-
:'pulp_labels' => :'pulp_labels',
|
51
|
-
:'versions_href' => :'versions_href',
|
52
|
-
:'manifest_signing_service' => :'manifest_signing_service',
|
53
|
-
:'pulp_href' => :'pulp_href',
|
54
|
-
:'description' => :'description',
|
55
50
|
:'pulp_created' => :'pulp_created',
|
51
|
+
:'prn' => :'prn',
|
56
52
|
:'name' => :'name',
|
57
|
-
:'
|
53
|
+
:'manifest_signing_service' => :'manifest_signing_service',
|
58
54
|
:'latest_version_href' => :'latest_version_href',
|
59
|
-
:'
|
60
|
-
:'
|
55
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
56
|
+
:'pulp_href' => :'pulp_href',
|
57
|
+
:'versions_href' => :'versions_href',
|
58
|
+
:'pulp_labels' => :'pulp_labels',
|
59
|
+
:'description' => :'description',
|
60
|
+
:'retain_repo_versions' => :'retain_repo_versions'
|
61
61
|
}
|
62
62
|
end
|
63
63
|
|
64
64
|
# Attribute type mapping.
|
65
65
|
def self.openapi_types
|
66
66
|
{
|
67
|
-
:'pulp_labels' => :'Hash<String, String>',
|
68
|
-
:'versions_href' => :'String',
|
69
|
-
:'manifest_signing_service' => :'String',
|
70
|
-
:'pulp_href' => :'String',
|
71
|
-
:'description' => :'String',
|
72
67
|
:'pulp_created' => :'DateTime',
|
68
|
+
:'prn' => :'String',
|
73
69
|
:'name' => :'String',
|
74
|
-
:'
|
70
|
+
:'manifest_signing_service' => :'String',
|
75
71
|
:'latest_version_href' => :'String',
|
76
|
-
:'
|
77
|
-
:'
|
72
|
+
:'pulp_last_updated' => :'DateTime',
|
73
|
+
:'pulp_href' => :'String',
|
74
|
+
:'versions_href' => :'String',
|
75
|
+
:'pulp_labels' => :'Hash<String, String>',
|
76
|
+
:'description' => :'String',
|
77
|
+
:'retain_repo_versions' => :'Integer'
|
78
78
|
}
|
79
79
|
end
|
80
80
|
|
@@ -83,7 +83,7 @@ module PulpContainerClient
|
|
83
83
|
Set.new([
|
84
84
|
:'manifest_signing_service',
|
85
85
|
:'description',
|
86
|
-
:'retain_repo_versions'
|
86
|
+
:'retain_repo_versions'
|
87
87
|
])
|
88
88
|
end
|
89
89
|
|
@@ -102,51 +102,51 @@ module PulpContainerClient
|
|
102
102
|
h[k.to_sym] = v
|
103
103
|
}
|
104
104
|
|
105
|
-
if attributes.key?(:'
|
106
|
-
|
107
|
-
self.pulp_labels = value
|
108
|
-
end
|
105
|
+
if attributes.key?(:'pulp_created')
|
106
|
+
self.pulp_created = attributes[:'pulp_created']
|
109
107
|
end
|
110
108
|
|
111
|
-
if attributes.key?(:'
|
112
|
-
self.
|
109
|
+
if attributes.key?(:'prn')
|
110
|
+
self.prn = attributes[:'prn']
|
111
|
+
end
|
112
|
+
|
113
|
+
if attributes.key?(:'name')
|
114
|
+
self.name = attributes[:'name']
|
113
115
|
end
|
114
116
|
|
115
117
|
if attributes.key?(:'manifest_signing_service')
|
116
118
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
117
119
|
end
|
118
120
|
|
119
|
-
if attributes.key?(:'
|
120
|
-
self.
|
121
|
+
if attributes.key?(:'latest_version_href')
|
122
|
+
self.latest_version_href = attributes[:'latest_version_href']
|
121
123
|
end
|
122
124
|
|
123
|
-
if attributes.key?(:'
|
124
|
-
self.
|
125
|
+
if attributes.key?(:'pulp_last_updated')
|
126
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
125
127
|
end
|
126
128
|
|
127
|
-
if attributes.key?(:'
|
128
|
-
self.
|
129
|
+
if attributes.key?(:'pulp_href')
|
130
|
+
self.pulp_href = attributes[:'pulp_href']
|
129
131
|
end
|
130
132
|
|
131
|
-
if attributes.key?(:'
|
132
|
-
self.
|
133
|
+
if attributes.key?(:'versions_href')
|
134
|
+
self.versions_href = attributes[:'versions_href']
|
133
135
|
end
|
134
136
|
|
135
|
-
if attributes.key?(:'
|
136
|
-
|
137
|
+
if attributes.key?(:'pulp_labels')
|
138
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
139
|
+
self.pulp_labels = value
|
140
|
+
end
|
137
141
|
end
|
138
142
|
|
139
|
-
if attributes.key?(:'
|
140
|
-
self.
|
143
|
+
if attributes.key?(:'description')
|
144
|
+
self.description = attributes[:'description']
|
141
145
|
end
|
142
146
|
|
143
147
|
if attributes.key?(:'retain_repo_versions')
|
144
148
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
145
149
|
end
|
146
|
-
|
147
|
-
if attributes.key?(:'prn')
|
148
|
-
self.prn = attributes[:'prn']
|
149
|
-
end
|
150
150
|
end
|
151
151
|
|
152
152
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -187,17 +187,17 @@ module PulpContainerClient
|
|
187
187
|
def ==(o)
|
188
188
|
return true if self.equal?(o)
|
189
189
|
self.class == o.class &&
|
190
|
-
pulp_labels == o.pulp_labels &&
|
191
|
-
versions_href == o.versions_href &&
|
192
|
-
manifest_signing_service == o.manifest_signing_service &&
|
193
|
-
pulp_href == o.pulp_href &&
|
194
|
-
description == o.description &&
|
195
190
|
pulp_created == o.pulp_created &&
|
191
|
+
prn == o.prn &&
|
196
192
|
name == o.name &&
|
197
|
-
|
193
|
+
manifest_signing_service == o.manifest_signing_service &&
|
198
194
|
latest_version_href == o.latest_version_href &&
|
199
|
-
|
200
|
-
|
195
|
+
pulp_last_updated == o.pulp_last_updated &&
|
196
|
+
pulp_href == o.pulp_href &&
|
197
|
+
versions_href == o.versions_href &&
|
198
|
+
pulp_labels == o.pulp_labels &&
|
199
|
+
description == o.description &&
|
200
|
+
retain_repo_versions == o.retain_repo_versions
|
201
201
|
end
|
202
202
|
|
203
203
|
# @see the `==` method
|
@@ -209,7 +209,7 @@ module PulpContainerClient
|
|
209
209
|
# Calculates hash code according to all attributes.
|
210
210
|
# @return [Integer] Hash code
|
211
211
|
def hash
|
212
|
-
[
|
212
|
+
[pulp_created, prn, name, manifest_signing_service, latest_version_href, pulp_last_updated, pulp_href, versions_href, pulp_labels, description, retain_repo_versions].hash
|
213
213
|
end
|
214
214
|
|
215
215
|
# Builds the object from hash
|
@@ -354,20 +354,20 @@ module PulpContainerClient
|
|
354
354
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
355
355
|
end
|
356
356
|
|
357
|
-
if !@total_timeout.nil? && @total_timeout < 0
|
358
|
-
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
|
357
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
358
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
359
359
|
end
|
360
360
|
|
361
|
-
if !@connect_timeout.nil? && @connect_timeout < 0
|
362
|
-
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
|
361
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
362
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
363
363
|
end
|
364
364
|
|
365
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
366
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
|
365
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
366
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
367
367
|
end
|
368
368
|
|
369
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
370
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
|
369
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
370
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
371
371
|
end
|
372
372
|
|
373
373
|
if @upstream_name.nil?
|
@@ -401,10 +401,10 @@ module PulpContainerClient
|
|
401
401
|
return false if !@username.nil? && @username.to_s.length < 1
|
402
402
|
return false if !@password.nil? && @password.to_s.length < 1
|
403
403
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
404
|
-
return false if !@total_timeout.nil? && @total_timeout < 0
|
405
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
406
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
407
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
404
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
405
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
406
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
407
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
408
408
|
return false if @upstream_name.nil?
|
409
409
|
return false if @upstream_name.to_s.length < 1
|
410
410
|
return false if !@sigstore.nil? && @sigstore.to_s.length < 1
|
@@ -532,8 +532,8 @@ module PulpContainerClient
|
|
532
532
|
# Custom attribute writer method with validation
|
533
533
|
# @param [Object] total_timeout Value to be assigned
|
534
534
|
def total_timeout=(total_timeout)
|
535
|
-
if !total_timeout.nil? && total_timeout < 0
|
536
|
-
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
|
535
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
536
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
537
537
|
end
|
538
538
|
|
539
539
|
@total_timeout = total_timeout
|
@@ -542,8 +542,8 @@ module PulpContainerClient
|
|
542
542
|
# Custom attribute writer method with validation
|
543
543
|
# @param [Object] connect_timeout Value to be assigned
|
544
544
|
def connect_timeout=(connect_timeout)
|
545
|
-
if !connect_timeout.nil? && connect_timeout < 0
|
546
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
|
545
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
546
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
547
547
|
end
|
548
548
|
|
549
549
|
@connect_timeout = connect_timeout
|
@@ -552,8 +552,8 @@ module PulpContainerClient
|
|
552
552
|
# Custom attribute writer method with validation
|
553
553
|
# @param [Object] sock_connect_timeout Value to be assigned
|
554
554
|
def sock_connect_timeout=(sock_connect_timeout)
|
555
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
556
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
|
555
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
556
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
557
557
|
end
|
558
558
|
|
559
559
|
@sock_connect_timeout = sock_connect_timeout
|
@@ -562,8 +562,8 @@ module PulpContainerClient
|
|
562
562
|
# Custom attribute writer method with validation
|
563
563
|
# @param [Object] sock_read_timeout Value to be assigned
|
564
564
|
def sock_read_timeout=(sock_read_timeout)
|
565
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
566
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
|
565
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
566
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
567
567
|
end
|
568
568
|
|
569
569
|
@sock_read_timeout = sock_read_timeout
|
@@ -310,20 +310,20 @@ module PulpContainerClient
|
|
310
310
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
311
311
|
end
|
312
312
|
|
313
|
-
if !@total_timeout.nil? && @total_timeout < 0
|
314
|
-
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
|
313
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
314
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
315
315
|
end
|
316
316
|
|
317
|
-
if !@connect_timeout.nil? && @connect_timeout < 0
|
318
|
-
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
|
317
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
318
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
319
319
|
end
|
320
320
|
|
321
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
322
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
|
321
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
322
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
323
323
|
end
|
324
324
|
|
325
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
326
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
|
325
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
326
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
327
327
|
end
|
328
328
|
|
329
329
|
if @upstream_name.nil?
|
@@ -339,10 +339,10 @@ module PulpContainerClient
|
|
339
339
|
return false if @name.nil?
|
340
340
|
return false if @url.nil?
|
341
341
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
342
|
-
return false if !@total_timeout.nil? && @total_timeout < 0
|
343
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
344
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
345
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
342
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
343
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
344
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
345
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
346
346
|
return false if @upstream_name.nil?
|
347
347
|
true
|
348
348
|
end
|
@@ -360,8 +360,8 @@ module PulpContainerClient
|
|
360
360
|
# Custom attribute writer method with validation
|
361
361
|
# @param [Object] total_timeout Value to be assigned
|
362
362
|
def total_timeout=(total_timeout)
|
363
|
-
if !total_timeout.nil? && total_timeout < 0
|
364
|
-
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
|
363
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
364
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
365
365
|
end
|
366
366
|
|
367
367
|
@total_timeout = total_timeout
|
@@ -370,8 +370,8 @@ module PulpContainerClient
|
|
370
370
|
# Custom attribute writer method with validation
|
371
371
|
# @param [Object] connect_timeout Value to be assigned
|
372
372
|
def connect_timeout=(connect_timeout)
|
373
|
-
if !connect_timeout.nil? && connect_timeout < 0
|
374
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
|
373
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
374
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
375
375
|
end
|
376
376
|
|
377
377
|
@connect_timeout = connect_timeout
|
@@ -380,8 +380,8 @@ module PulpContainerClient
|
|
380
380
|
# Custom attribute writer method with validation
|
381
381
|
# @param [Object] sock_connect_timeout Value to be assigned
|
382
382
|
def sock_connect_timeout=(sock_connect_timeout)
|
383
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
384
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
|
383
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
384
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
385
385
|
end
|
386
386
|
|
387
387
|
@sock_connect_timeout = sock_connect_timeout
|
@@ -390,8 +390,8 @@ module PulpContainerClient
|
|
390
390
|
# Custom attribute writer method with validation
|
391
391
|
# @param [Object] sock_read_timeout Value to be assigned
|
392
392
|
def sock_read_timeout=(sock_read_timeout)
|
393
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
394
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
|
393
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
394
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
395
395
|
end
|
396
396
|
|
397
397
|
@sock_read_timeout = sock_read_timeout
|
@@ -15,22 +15,22 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class PatchedcontainerContainerDistribution
|
18
|
-
|
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
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
22
|
+
attr_accessor :name
|
19
23
|
|
20
24
|
# An optional content-guard. If none is specified, a default one will be used.
|
21
25
|
attr_accessor :content_guard
|
22
26
|
|
23
|
-
# Whether this distribution should be shown in the content app.
|
24
|
-
attr_accessor :hidden
|
25
|
-
|
26
27
|
# The latest RepositoryVersion for this Repository will be served.
|
27
28
|
attr_accessor :repository
|
28
29
|
|
29
|
-
|
30
|
-
attr_accessor :name
|
30
|
+
attr_accessor :pulp_labels
|
31
31
|
|
32
|
-
#
|
33
|
-
attr_accessor :
|
32
|
+
# Whether this distribution should be shown in the content app.
|
33
|
+
attr_accessor :hidden
|
34
34
|
|
35
35
|
# RepositoryVersion to be served
|
36
36
|
attr_accessor :repository_version
|
@@ -44,12 +44,12 @@ module PulpContainerClient
|
|
44
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
45
45
|
def self.attribute_map
|
46
46
|
{
|
47
|
-
:'
|
47
|
+
:'base_path' => :'base_path',
|
48
|
+
:'name' => :'name',
|
48
49
|
:'content_guard' => :'content_guard',
|
49
|
-
:'hidden' => :'hidden',
|
50
50
|
:'repository' => :'repository',
|
51
|
-
:'
|
52
|
-
:'
|
51
|
+
:'pulp_labels' => :'pulp_labels',
|
52
|
+
:'hidden' => :'hidden',
|
53
53
|
:'repository_version' => :'repository_version',
|
54
54
|
:'private' => :'private',
|
55
55
|
:'description' => :'description'
|
@@ -59,12 +59,12 @@ module PulpContainerClient
|
|
59
59
|
# Attribute type mapping.
|
60
60
|
def self.openapi_types
|
61
61
|
{
|
62
|
-
:'
|
62
|
+
:'base_path' => :'String',
|
63
|
+
:'name' => :'String',
|
63
64
|
:'content_guard' => :'String',
|
64
|
-
:'hidden' => :'Boolean',
|
65
65
|
:'repository' => :'String',
|
66
|
-
:'
|
67
|
-
:'
|
66
|
+
:'pulp_labels' => :'Hash<String, String>',
|
67
|
+
:'hidden' => :'Boolean',
|
68
68
|
:'repository_version' => :'String',
|
69
69
|
:'private' => :'Boolean',
|
70
70
|
:'description' => :'String'
|
@@ -95,32 +95,32 @@ module PulpContainerClient
|
|
95
95
|
h[k.to_sym] = v
|
96
96
|
}
|
97
97
|
|
98
|
-
if attributes.key?(:'
|
99
|
-
|
100
|
-
self.pulp_labels = value
|
101
|
-
end
|
98
|
+
if attributes.key?(:'base_path')
|
99
|
+
self.base_path = attributes[:'base_path']
|
102
100
|
end
|
103
101
|
|
104
|
-
if attributes.key?(:'
|
105
|
-
self.
|
102
|
+
if attributes.key?(:'name')
|
103
|
+
self.name = attributes[:'name']
|
106
104
|
end
|
107
105
|
|
108
|
-
if attributes.key?(:'
|
109
|
-
self.
|
110
|
-
else
|
111
|
-
self.hidden = false
|
106
|
+
if attributes.key?(:'content_guard')
|
107
|
+
self.content_guard = attributes[:'content_guard']
|
112
108
|
end
|
113
109
|
|
114
110
|
if attributes.key?(:'repository')
|
115
111
|
self.repository = attributes[:'repository']
|
116
112
|
end
|
117
113
|
|
118
|
-
if attributes.key?(:'
|
119
|
-
|
114
|
+
if attributes.key?(:'pulp_labels')
|
115
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
116
|
+
self.pulp_labels = value
|
117
|
+
end
|
120
118
|
end
|
121
119
|
|
122
|
-
if attributes.key?(:'
|
123
|
-
self.
|
120
|
+
if attributes.key?(:'hidden')
|
121
|
+
self.hidden = attributes[:'hidden']
|
122
|
+
else
|
123
|
+
self.hidden = false
|
124
124
|
end
|
125
125
|
|
126
126
|
if attributes.key?(:'repository_version')
|
@@ -140,14 +140,14 @@ module PulpContainerClient
|
|
140
140
|
# @return Array for valid properties with the reasons
|
141
141
|
def list_invalid_properties
|
142
142
|
invalid_properties = Array.new
|
143
|
-
if !@name.nil? && @name.to_s.length < 1
|
144
|
-
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
145
|
-
end
|
146
|
-
|
147
143
|
if !@base_path.nil? && @base_path.to_s.length < 1
|
148
144
|
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
149
145
|
end
|
150
146
|
|
147
|
+
if !@name.nil? && @name.to_s.length < 1
|
148
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
149
|
+
end
|
150
|
+
|
151
151
|
if !@description.nil? && @description.to_s.length < 1
|
152
152
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
153
153
|
end
|
@@ -158,22 +158,12 @@ module PulpContainerClient
|
|
158
158
|
# Check to see if the all the properties in the model are valid
|
159
159
|
# @return true if the model is valid
|
160
160
|
def valid?
|
161
|
-
return false if !@name.nil? && @name.to_s.length < 1
|
162
161
|
return false if !@base_path.nil? && @base_path.to_s.length < 1
|
162
|
+
return false if !@name.nil? && @name.to_s.length < 1
|
163
163
|
return false if !@description.nil? && @description.to_s.length < 1
|
164
164
|
true
|
165
165
|
end
|
166
166
|
|
167
|
-
# Custom attribute writer method with validation
|
168
|
-
# @param [Object] name Value to be assigned
|
169
|
-
def name=(name)
|
170
|
-
if !name.nil? && name.to_s.length < 1
|
171
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
172
|
-
end
|
173
|
-
|
174
|
-
@name = name
|
175
|
-
end
|
176
|
-
|
177
167
|
# Custom attribute writer method with validation
|
178
168
|
# @param [Object] base_path Value to be assigned
|
179
169
|
def base_path=(base_path)
|
@@ -184,6 +174,16 @@ module PulpContainerClient
|
|
184
174
|
@base_path = base_path
|
185
175
|
end
|
186
176
|
|
177
|
+
# Custom attribute writer method with validation
|
178
|
+
# @param [Object] name Value to be assigned
|
179
|
+
def name=(name)
|
180
|
+
if !name.nil? && name.to_s.length < 1
|
181
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
182
|
+
end
|
183
|
+
|
184
|
+
@name = name
|
185
|
+
end
|
186
|
+
|
187
187
|
# Custom attribute writer method with validation
|
188
188
|
# @param [Object] description Value to be assigned
|
189
189
|
def description=(description)
|
@@ -199,12 +199,12 @@ module PulpContainerClient
|
|
199
199
|
def ==(o)
|
200
200
|
return true if self.equal?(o)
|
201
201
|
self.class == o.class &&
|
202
|
-
|
202
|
+
base_path == o.base_path &&
|
203
|
+
name == o.name &&
|
203
204
|
content_guard == o.content_guard &&
|
204
|
-
hidden == o.hidden &&
|
205
205
|
repository == o.repository &&
|
206
|
-
|
207
|
-
|
206
|
+
pulp_labels == o.pulp_labels &&
|
207
|
+
hidden == o.hidden &&
|
208
208
|
repository_version == o.repository_version &&
|
209
209
|
private == o.private &&
|
210
210
|
description == o.description
|
@@ -219,7 +219,7 @@ module PulpContainerClient
|
|
219
219
|
# Calculates hash code according to all attributes.
|
220
220
|
# @return [Integer] Hash code
|
221
221
|
def hash
|
222
|
-
[
|
222
|
+
[base_path, name, content_guard, repository, pulp_labels, hidden, repository_version, private, description].hash
|
223
223
|
end
|
224
224
|
|
225
225
|
# Builds the object from hash
|