pulp_container_client 2.16.8 → 2.16.9
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 +6 -6
- data/docs/ContainerContainerDistributionResponse.md +8 -8
- data/docs/ContainerContainerPushRepository.md +6 -6
- data/docs/ContainerContainerPushRepositoryResponse.md +12 -12
- data/docs/PatchedcontainerContainerDistribution.md +6 -6
- data/docs/PatchedcontainerContainerPushRepository.md +6 -6
- data/lib/pulp_container_client/models/container_container_distribution.rb +28 -28
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +37 -37
- data/lib/pulp_container_client/models/container_container_push_repository.rb +43 -43
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +50 -50
- 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 +28 -28
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +43 -43
- 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 +7 -7
- data/spec/models/container_container_distribution_spec.rb +5 -5
- data/spec/models/container_container_push_repository_response_spec.rb +9 -9
- data/spec/models/container_container_push_repository_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +5 -5
- metadata +2 -2
@@ -15,10 +15,8 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class ContainerContainerPushRepository
|
18
|
-
|
19
|
-
|
20
|
-
# A reference to an associated signing service.
|
21
|
-
attr_accessor :manifest_signing_service
|
18
|
+
# An optional description.
|
19
|
+
attr_accessor :description
|
22
20
|
|
23
21
|
# Retain X versions of the repository. Default is null which retains all versions.
|
24
22
|
attr_accessor :retain_repo_versions
|
@@ -26,37 +24,39 @@ module PulpContainerClient
|
|
26
24
|
# A unique name for this repository.
|
27
25
|
attr_accessor :name
|
28
26
|
|
29
|
-
#
|
30
|
-
attr_accessor :
|
27
|
+
# A reference to an associated signing service.
|
28
|
+
attr_accessor :manifest_signing_service
|
29
|
+
|
30
|
+
attr_accessor :pulp_labels
|
31
31
|
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
33
|
def self.attribute_map
|
34
34
|
{
|
35
|
-
:'
|
36
|
-
:'manifest_signing_service' => :'manifest_signing_service',
|
35
|
+
:'description' => :'description',
|
37
36
|
:'retain_repo_versions' => :'retain_repo_versions',
|
38
37
|
:'name' => :'name',
|
39
|
-
:'
|
38
|
+
:'manifest_signing_service' => :'manifest_signing_service',
|
39
|
+
:'pulp_labels' => :'pulp_labels'
|
40
40
|
}
|
41
41
|
end
|
42
42
|
|
43
43
|
# Attribute type mapping.
|
44
44
|
def self.openapi_types
|
45
45
|
{
|
46
|
-
:'
|
47
|
-
:'manifest_signing_service' => :'String',
|
46
|
+
:'description' => :'String',
|
48
47
|
:'retain_repo_versions' => :'Integer',
|
49
48
|
:'name' => :'String',
|
50
|
-
:'
|
49
|
+
:'manifest_signing_service' => :'String',
|
50
|
+
:'pulp_labels' => :'Hash<String, 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
|
+
:'description',
|
58
58
|
:'retain_repo_versions',
|
59
|
-
:'
|
59
|
+
:'manifest_signing_service',
|
60
60
|
])
|
61
61
|
end
|
62
62
|
|
@@ -75,14 +75,8 @@ module PulpContainerClient
|
|
75
75
|
h[k.to_sym] = v
|
76
76
|
}
|
77
77
|
|
78
|
-
if attributes.key?(:'
|
79
|
-
|
80
|
-
self.pulp_labels = value
|
81
|
-
end
|
82
|
-
end
|
83
|
-
|
84
|
-
if attributes.key?(:'manifest_signing_service')
|
85
|
-
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
78
|
+
if attributes.key?(:'description')
|
79
|
+
self.description = attributes[:'description']
|
86
80
|
end
|
87
81
|
|
88
82
|
if attributes.key?(:'retain_repo_versions')
|
@@ -93,8 +87,14 @@ module PulpContainerClient
|
|
93
87
|
self.name = attributes[:'name']
|
94
88
|
end
|
95
89
|
|
96
|
-
if attributes.key?(:'
|
97
|
-
self.
|
90
|
+
if attributes.key?(:'manifest_signing_service')
|
91
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
92
|
+
end
|
93
|
+
|
94
|
+
if attributes.key?(:'pulp_labels')
|
95
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
96
|
+
self.pulp_labels = value
|
97
|
+
end
|
98
98
|
end
|
99
99
|
end
|
100
100
|
|
@@ -102,6 +102,10 @@ module PulpContainerClient
|
|
102
102
|
# @return Array for valid properties with the reasons
|
103
103
|
def list_invalid_properties
|
104
104
|
invalid_properties = Array.new
|
105
|
+
if !@description.nil? && @description.to_s.length < 1
|
106
|
+
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
107
|
+
end
|
108
|
+
|
105
109
|
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
106
110
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
107
111
|
end
|
@@ -114,23 +118,29 @@ module PulpContainerClient
|
|
114
118
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
115
119
|
end
|
116
120
|
|
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.')
|
119
|
-
end
|
120
|
-
|
121
121
|
invalid_properties
|
122
122
|
end
|
123
123
|
|
124
124
|
# Check to see if the all the properties in the model are valid
|
125
125
|
# @return true if the model is valid
|
126
126
|
def valid?
|
127
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
127
128
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
128
129
|
return false if @name.nil?
|
129
130
|
return false if @name.to_s.length < 1
|
130
|
-
return false if !@description.nil? && @description.to_s.length < 1
|
131
131
|
true
|
132
132
|
end
|
133
133
|
|
134
|
+
# Custom attribute writer method with validation
|
135
|
+
# @param [Object] description Value to be assigned
|
136
|
+
def description=(description)
|
137
|
+
if !description.nil? && description.to_s.length < 1
|
138
|
+
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
139
|
+
end
|
140
|
+
|
141
|
+
@description = description
|
142
|
+
end
|
143
|
+
|
134
144
|
# Custom attribute writer method with validation
|
135
145
|
# @param [Object] retain_repo_versions Value to be assigned
|
136
146
|
def retain_repo_versions=(retain_repo_versions)
|
@@ -155,26 +165,16 @@ module PulpContainerClient
|
|
155
165
|
@name = name
|
156
166
|
end
|
157
167
|
|
158
|
-
# Custom attribute writer method with validation
|
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.'
|
163
|
-
end
|
164
|
-
|
165
|
-
@description = description
|
166
|
-
end
|
167
|
-
|
168
168
|
# Checks equality by comparing each attribute.
|
169
169
|
# @param [Object] Object to be compared
|
170
170
|
def ==(o)
|
171
171
|
return true if self.equal?(o)
|
172
172
|
self.class == o.class &&
|
173
|
-
|
174
|
-
manifest_signing_service == o.manifest_signing_service &&
|
173
|
+
description == o.description &&
|
175
174
|
retain_repo_versions == o.retain_repo_versions &&
|
176
175
|
name == o.name &&
|
177
|
-
|
176
|
+
manifest_signing_service == o.manifest_signing_service &&
|
177
|
+
pulp_labels == o.pulp_labels
|
178
178
|
end
|
179
179
|
|
180
180
|
# @see the `==` method
|
@@ -186,7 +186,7 @@ module PulpContainerClient
|
|
186
186
|
# Calculates hash code according to all attributes.
|
187
187
|
# @return [Integer] Hash code
|
188
188
|
def hash
|
189
|
-
[
|
189
|
+
[description, retain_repo_versions, name, manifest_signing_service, pulp_labels].hash
|
190
190
|
end
|
191
191
|
|
192
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
|
-
attr_accessor :
|
19
|
-
|
20
|
-
# A reference to an associated signing service.
|
21
|
-
attr_accessor :manifest_signing_service
|
18
|
+
attr_accessor :latest_version_href
|
22
19
|
|
23
|
-
|
20
|
+
# An optional description.
|
21
|
+
attr_accessor :description
|
24
22
|
|
25
|
-
|
23
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
24
|
+
attr_accessor :retain_repo_versions
|
26
25
|
|
27
26
|
# Timestamp of creation.
|
28
27
|
attr_accessor :pulp_created
|
29
28
|
|
30
|
-
|
31
|
-
attr_accessor :retain_repo_versions
|
29
|
+
attr_accessor :pulp_href
|
32
30
|
|
33
31
|
# A unique name for this repository.
|
34
32
|
attr_accessor :name
|
35
33
|
|
36
|
-
# An optional description.
|
37
|
-
attr_accessor :description
|
38
|
-
|
39
34
|
attr_accessor :versions_href
|
40
35
|
|
36
|
+
# A reference to an associated signing service.
|
37
|
+
attr_accessor :manifest_signing_service
|
38
|
+
|
39
|
+
attr_accessor :pulp_labels
|
40
|
+
|
41
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
42
42
|
def self.attribute_map
|
43
43
|
{
|
44
|
-
:'pulp_labels' => :'pulp_labels',
|
45
|
-
:'manifest_signing_service' => :'manifest_signing_service',
|
46
|
-
:'pulp_href' => :'pulp_href',
|
47
44
|
:'latest_version_href' => :'latest_version_href',
|
48
|
-
:'
|
45
|
+
:'description' => :'description',
|
49
46
|
:'retain_repo_versions' => :'retain_repo_versions',
|
47
|
+
:'pulp_created' => :'pulp_created',
|
48
|
+
:'pulp_href' => :'pulp_href',
|
50
49
|
:'name' => :'name',
|
51
|
-
:'
|
52
|
-
:'
|
50
|
+
:'versions_href' => :'versions_href',
|
51
|
+
:'manifest_signing_service' => :'manifest_signing_service',
|
52
|
+
:'pulp_labels' => :'pulp_labels'
|
53
53
|
}
|
54
54
|
end
|
55
55
|
|
56
56
|
# Attribute type mapping.
|
57
57
|
def self.openapi_types
|
58
58
|
{
|
59
|
-
:'pulp_labels' => :'Hash<String, String>',
|
60
|
-
:'manifest_signing_service' => :'String',
|
61
|
-
:'pulp_href' => :'String',
|
62
59
|
:'latest_version_href' => :'String',
|
63
|
-
:'
|
60
|
+
:'description' => :'String',
|
64
61
|
:'retain_repo_versions' => :'Integer',
|
62
|
+
:'pulp_created' => :'DateTime',
|
63
|
+
:'pulp_href' => :'String',
|
65
64
|
:'name' => :'String',
|
66
|
-
:'
|
67
|
-
:'
|
65
|
+
:'versions_href' => :'String',
|
66
|
+
:'manifest_signing_service' => :'String',
|
67
|
+
:'pulp_labels' => :'Hash<String, 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
|
-
:'manifest_signing_service',
|
75
|
-
:'retain_repo_versions',
|
76
74
|
:'description',
|
75
|
+
:'retain_repo_versions',
|
76
|
+
:'manifest_signing_service',
|
77
77
|
])
|
78
78
|
end
|
79
79
|
|
@@ -92,43 +92,43 @@ module PulpContainerClient
|
|
92
92
|
h[k.to_sym] = v
|
93
93
|
}
|
94
94
|
|
95
|
-
if attributes.key?(:'
|
96
|
-
|
97
|
-
self.pulp_labels = value
|
98
|
-
end
|
99
|
-
end
|
100
|
-
|
101
|
-
if attributes.key?(:'manifest_signing_service')
|
102
|
-
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
95
|
+
if attributes.key?(:'latest_version_href')
|
96
|
+
self.latest_version_href = attributes[:'latest_version_href']
|
103
97
|
end
|
104
98
|
|
105
|
-
if attributes.key?(:'
|
106
|
-
self.
|
99
|
+
if attributes.key?(:'description')
|
100
|
+
self.description = attributes[:'description']
|
107
101
|
end
|
108
102
|
|
109
|
-
if attributes.key?(:'
|
110
|
-
self.
|
103
|
+
if attributes.key?(:'retain_repo_versions')
|
104
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
111
105
|
end
|
112
106
|
|
113
107
|
if attributes.key?(:'pulp_created')
|
114
108
|
self.pulp_created = attributes[:'pulp_created']
|
115
109
|
end
|
116
110
|
|
117
|
-
if attributes.key?(:'
|
118
|
-
self.
|
111
|
+
if attributes.key?(:'pulp_href')
|
112
|
+
self.pulp_href = attributes[:'pulp_href']
|
119
113
|
end
|
120
114
|
|
121
115
|
if attributes.key?(:'name')
|
122
116
|
self.name = attributes[:'name']
|
123
117
|
end
|
124
118
|
|
125
|
-
if attributes.key?(:'description')
|
126
|
-
self.description = attributes[:'description']
|
127
|
-
end
|
128
|
-
|
129
119
|
if attributes.key?(:'versions_href')
|
130
120
|
self.versions_href = attributes[:'versions_href']
|
131
121
|
end
|
122
|
+
|
123
|
+
if attributes.key?(:'manifest_signing_service')
|
124
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
125
|
+
end
|
126
|
+
|
127
|
+
if attributes.key?(:'pulp_labels')
|
128
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
129
|
+
self.pulp_labels = value
|
130
|
+
end
|
131
|
+
end
|
132
132
|
end
|
133
133
|
|
134
134
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -169,15 +169,15 @@ module PulpContainerClient
|
|
169
169
|
def ==(o)
|
170
170
|
return true if self.equal?(o)
|
171
171
|
self.class == o.class &&
|
172
|
-
pulp_labels == o.pulp_labels &&
|
173
|
-
manifest_signing_service == o.manifest_signing_service &&
|
174
|
-
pulp_href == o.pulp_href &&
|
175
172
|
latest_version_href == o.latest_version_href &&
|
176
|
-
|
173
|
+
description == o.description &&
|
177
174
|
retain_repo_versions == o.retain_repo_versions &&
|
175
|
+
pulp_created == o.pulp_created &&
|
176
|
+
pulp_href == o.pulp_href &&
|
178
177
|
name == o.name &&
|
179
|
-
|
180
|
-
|
178
|
+
versions_href == o.versions_href &&
|
179
|
+
manifest_signing_service == o.manifest_signing_service &&
|
180
|
+
pulp_labels == o.pulp_labels
|
181
181
|
end
|
182
182
|
|
183
183
|
# @see the `==` method
|
@@ -189,7 +189,7 @@ module PulpContainerClient
|
|
189
189
|
# Calculates hash code according to all attributes.
|
190
190
|
# @return [Integer] Hash code
|
191
191
|
def hash
|
192
|
-
[
|
192
|
+
[latest_version_href, description, retain_repo_versions, pulp_created, pulp_href, name, versions_href, manifest_signing_service, pulp_labels].hash
|
193
193
|
end
|
194
194
|
|
195
195
|
# 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
|
358
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 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
|
362
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 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
|
366
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 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
|
370
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 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
|
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
|
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
|
536
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 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
|
546
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 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
|
556
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 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
|
566
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
|
567
567
|
end
|
568
568
|
|
569
569
|
@sock_read_timeout = sock_read_timeout
|
@@ -301,20 +301,20 @@ module PulpContainerClient
|
|
301
301
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
302
302
|
end
|
303
303
|
|
304
|
-
if !@total_timeout.nil? && @total_timeout < 0
|
305
|
-
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.
|
304
|
+
if !@total_timeout.nil? && @total_timeout < 0
|
305
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
|
306
306
|
end
|
307
307
|
|
308
|
-
if !@connect_timeout.nil? && @connect_timeout < 0
|
309
|
-
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.
|
308
|
+
if !@connect_timeout.nil? && @connect_timeout < 0
|
309
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
|
310
310
|
end
|
311
311
|
|
312
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
313
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.
|
312
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
313
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
|
314
314
|
end
|
315
315
|
|
316
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
317
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.
|
316
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
317
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
|
318
318
|
end
|
319
319
|
|
320
320
|
if @upstream_name.nil?
|
@@ -330,10 +330,10 @@ module PulpContainerClient
|
|
330
330
|
return false if @name.nil?
|
331
331
|
return false if @url.nil?
|
332
332
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
333
|
-
return false if !@total_timeout.nil? && @total_timeout < 0
|
334
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
335
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
336
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
333
|
+
return false if !@total_timeout.nil? && @total_timeout < 0
|
334
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
335
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
336
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
337
337
|
return false if @upstream_name.nil?
|
338
338
|
true
|
339
339
|
end
|
@@ -351,8 +351,8 @@ module PulpContainerClient
|
|
351
351
|
# Custom attribute writer method with validation
|
352
352
|
# @param [Object] total_timeout Value to be assigned
|
353
353
|
def total_timeout=(total_timeout)
|
354
|
-
if !total_timeout.nil? && total_timeout < 0
|
355
|
-
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.
|
354
|
+
if !total_timeout.nil? && total_timeout < 0
|
355
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
|
356
356
|
end
|
357
357
|
|
358
358
|
@total_timeout = total_timeout
|
@@ -361,8 +361,8 @@ module PulpContainerClient
|
|
361
361
|
# Custom attribute writer method with validation
|
362
362
|
# @param [Object] connect_timeout Value to be assigned
|
363
363
|
def connect_timeout=(connect_timeout)
|
364
|
-
if !connect_timeout.nil? && connect_timeout < 0
|
365
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.
|
364
|
+
if !connect_timeout.nil? && connect_timeout < 0
|
365
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
|
366
366
|
end
|
367
367
|
|
368
368
|
@connect_timeout = connect_timeout
|
@@ -371,8 +371,8 @@ module PulpContainerClient
|
|
371
371
|
# Custom attribute writer method with validation
|
372
372
|
# @param [Object] sock_connect_timeout Value to be assigned
|
373
373
|
def sock_connect_timeout=(sock_connect_timeout)
|
374
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
375
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.
|
374
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
375
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
|
376
376
|
end
|
377
377
|
|
378
378
|
@sock_connect_timeout = sock_connect_timeout
|
@@ -381,8 +381,8 @@ module PulpContainerClient
|
|
381
381
|
# Custom attribute writer method with validation
|
382
382
|
# @param [Object] sock_read_timeout Value to be assigned
|
383
383
|
def sock_read_timeout=(sock_read_timeout)
|
384
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
385
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.
|
384
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
385
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
|
386
386
|
end
|
387
387
|
|
388
388
|
@sock_read_timeout = sock_read_timeout
|
@@ -15,20 +15,20 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class PatchedcontainerContainerDistribution
|
18
|
-
|
19
|
-
|
20
|
-
# Whether this distribution should be shown in the content app.
|
21
|
-
attr_accessor :hidden
|
18
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
19
|
+
attr_accessor :content_guard
|
22
20
|
|
23
21
|
# A unique name. Ex, `rawhide` and `stable`.
|
24
22
|
attr_accessor :name
|
25
23
|
|
26
|
-
#
|
27
|
-
attr_accessor :
|
24
|
+
# Whether this distribution should be shown in the content app.
|
25
|
+
attr_accessor :hidden
|
28
26
|
|
29
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\")
|
30
28
|
attr_accessor :base_path
|
31
29
|
|
30
|
+
attr_accessor :pulp_labels
|
31
|
+
|
32
32
|
# The latest RepositoryVersion for this Repository will be served.
|
33
33
|
attr_accessor :repository
|
34
34
|
|
@@ -44,11 +44,11 @@ module PulpContainerClient
|
|
44
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
45
45
|
def self.attribute_map
|
46
46
|
{
|
47
|
-
:'pulp_labels' => :'pulp_labels',
|
48
|
-
:'hidden' => :'hidden',
|
49
|
-
:'name' => :'name',
|
50
47
|
:'content_guard' => :'content_guard',
|
48
|
+
:'name' => :'name',
|
49
|
+
:'hidden' => :'hidden',
|
51
50
|
:'base_path' => :'base_path',
|
51
|
+
:'pulp_labels' => :'pulp_labels',
|
52
52
|
:'repository' => :'repository',
|
53
53
|
:'repository_version' => :'repository_version',
|
54
54
|
:'private' => :'private',
|
@@ -59,11 +59,11 @@ module PulpContainerClient
|
|
59
59
|
# Attribute type mapping.
|
60
60
|
def self.openapi_types
|
61
61
|
{
|
62
|
-
:'pulp_labels' => :'Hash<String, String>',
|
63
|
-
:'hidden' => :'Boolean',
|
64
|
-
:'name' => :'String',
|
65
62
|
:'content_guard' => :'String',
|
63
|
+
:'name' => :'String',
|
64
|
+
:'hidden' => :'Boolean',
|
66
65
|
:'base_path' => :'String',
|
66
|
+
:'pulp_labels' => :'Hash<String, String>',
|
67
67
|
:'repository' => :'String',
|
68
68
|
:'repository_version' => :'String',
|
69
69
|
:'private' => :'Boolean',
|
@@ -95,30 +95,30 @@ 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
|
102
|
-
end
|
103
|
-
|
104
|
-
if attributes.key?(:'hidden')
|
105
|
-
self.hidden = attributes[:'hidden']
|
106
|
-
else
|
107
|
-
self.hidden = false
|
98
|
+
if attributes.key?(:'content_guard')
|
99
|
+
self.content_guard = attributes[:'content_guard']
|
108
100
|
end
|
109
101
|
|
110
102
|
if attributes.key?(:'name')
|
111
103
|
self.name = attributes[:'name']
|
112
104
|
end
|
113
105
|
|
114
|
-
if attributes.key?(:'
|
115
|
-
self.
|
106
|
+
if attributes.key?(:'hidden')
|
107
|
+
self.hidden = attributes[:'hidden']
|
108
|
+
else
|
109
|
+
self.hidden = false
|
116
110
|
end
|
117
111
|
|
118
112
|
if attributes.key?(:'base_path')
|
119
113
|
self.base_path = attributes[:'base_path']
|
120
114
|
end
|
121
115
|
|
116
|
+
if attributes.key?(:'pulp_labels')
|
117
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
118
|
+
self.pulp_labels = value
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
122
122
|
if attributes.key?(:'repository')
|
123
123
|
self.repository = attributes[:'repository']
|
124
124
|
end
|
@@ -199,11 +199,11 @@ module PulpContainerClient
|
|
199
199
|
def ==(o)
|
200
200
|
return true if self.equal?(o)
|
201
201
|
self.class == o.class &&
|
202
|
-
pulp_labels == o.pulp_labels &&
|
203
|
-
hidden == o.hidden &&
|
204
|
-
name == o.name &&
|
205
202
|
content_guard == o.content_guard &&
|
203
|
+
name == o.name &&
|
204
|
+
hidden == o.hidden &&
|
206
205
|
base_path == o.base_path &&
|
206
|
+
pulp_labels == o.pulp_labels &&
|
207
207
|
repository == o.repository &&
|
208
208
|
repository_version == o.repository_version &&
|
209
209
|
private == o.private &&
|
@@ -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
|
+
[content_guard, name, hidden, base_path, pulp_labels, repository, repository_version, private, description].hash
|
223
223
|
end
|
224
224
|
|
225
225
|
# Builds the object from hash
|