pulp_container_client 2.30.0 → 2.30.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 +4 -4
- data/docs/ContainerContainerDistribution.md +8 -8
- data/docs/ContainerContainerDistributionResponse.md +18 -18
- data/docs/ContainerContainerPullThroughDistribution.md +8 -8
- data/docs/ContainerContainerPullThroughDistributionResponse.md +18 -18
- data/docs/ContainerContainerPushRepository.md +6 -6
- data/docs/ContainerContainerPushRepositoryResponse.md +14 -14
- data/docs/PatchedcontainerContainerDistribution.md +8 -8
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +8 -8
- data/docs/PatchedcontainerContainerPushRepository.md +6 -6
- data/lib/pulp_container_client/models/container_container_distribution.rb +39 -39
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +77 -77
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +39 -39
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +77 -77
- data/lib/pulp_container_client/models/container_container_push_repository.rb +59 -59
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +80 -80
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +37 -37
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +37 -37
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +57 -57
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/models/container_container_distribution_response_spec.rb +13 -13
- data/spec/models/container_container_distribution_spec.rb +7 -7
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +13 -13
- data/spec/models/container_container_pull_through_distribution_spec.rb +7 -7
- data/spec/models/container_container_push_repository_response_spec.rb +10 -10
- 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 +2 -2
|
@@ -16,32 +16,32 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# Serializer for Container Push Repositories.
|
|
18
18
|
class ContainerContainerPushRepository
|
|
19
|
-
#
|
|
20
|
-
attr_accessor :
|
|
19
|
+
# Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
|
|
20
|
+
attr_accessor :retain_checkpoints
|
|
21
|
+
|
|
22
|
+
# A unique name for this repository.
|
|
23
|
+
attr_accessor :name
|
|
21
24
|
|
|
22
25
|
attr_accessor :pulp_labels
|
|
23
26
|
|
|
24
27
|
# Retain X versions of the repository. Default is null which retains all versions.
|
|
25
28
|
attr_accessor :retain_repo_versions
|
|
26
29
|
|
|
27
|
-
# Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
|
|
28
|
-
attr_accessor :retain_checkpoints
|
|
29
|
-
|
|
30
30
|
# A reference to an associated signing service.
|
|
31
31
|
attr_accessor :manifest_signing_service
|
|
32
32
|
|
|
33
|
-
#
|
|
34
|
-
attr_accessor :
|
|
33
|
+
# An optional description.
|
|
34
|
+
attr_accessor :description
|
|
35
35
|
|
|
36
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
37
37
|
def self.attribute_map
|
|
38
38
|
{
|
|
39
|
-
:'
|
|
39
|
+
:'retain_checkpoints' => :'retain_checkpoints',
|
|
40
|
+
:'name' => :'name',
|
|
40
41
|
:'pulp_labels' => :'pulp_labels',
|
|
41
42
|
:'retain_repo_versions' => :'retain_repo_versions',
|
|
42
|
-
:'retain_checkpoints' => :'retain_checkpoints',
|
|
43
43
|
:'manifest_signing_service' => :'manifest_signing_service',
|
|
44
|
-
:'
|
|
44
|
+
:'description' => :'description'
|
|
45
45
|
}
|
|
46
46
|
end
|
|
47
47
|
|
|
@@ -53,22 +53,22 @@ module PulpContainerClient
|
|
|
53
53
|
# Attribute type mapping.
|
|
54
54
|
def self.openapi_types
|
|
55
55
|
{
|
|
56
|
-
:'
|
|
56
|
+
:'retain_checkpoints' => :'Integer',
|
|
57
|
+
:'name' => :'String',
|
|
57
58
|
:'pulp_labels' => :'Hash<String, String>',
|
|
58
59
|
:'retain_repo_versions' => :'Integer',
|
|
59
|
-
:'retain_checkpoints' => :'Integer',
|
|
60
60
|
:'manifest_signing_service' => :'String',
|
|
61
|
-
:'
|
|
61
|
+
:'description' => :'String'
|
|
62
62
|
}
|
|
63
63
|
end
|
|
64
64
|
|
|
65
65
|
# List of attributes with nullable: true
|
|
66
66
|
def self.openapi_nullable
|
|
67
67
|
Set.new([
|
|
68
|
-
:'description',
|
|
69
|
-
:'retain_repo_versions',
|
|
70
68
|
:'retain_checkpoints',
|
|
69
|
+
:'retain_repo_versions',
|
|
71
70
|
:'manifest_signing_service',
|
|
71
|
+
:'description'
|
|
72
72
|
])
|
|
73
73
|
end
|
|
74
74
|
|
|
@@ -87,8 +87,14 @@ module PulpContainerClient
|
|
|
87
87
|
h[k.to_sym] = v
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
if attributes.key?(:'
|
|
91
|
-
self.
|
|
90
|
+
if attributes.key?(:'retain_checkpoints')
|
|
91
|
+
self.retain_checkpoints = attributes[:'retain_checkpoints']
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
if attributes.key?(:'name')
|
|
95
|
+
self.name = attributes[:'name']
|
|
96
|
+
else
|
|
97
|
+
self.name = nil
|
|
92
98
|
end
|
|
93
99
|
|
|
94
100
|
if attributes.key?(:'pulp_labels')
|
|
@@ -101,18 +107,12 @@ module PulpContainerClient
|
|
|
101
107
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
102
108
|
end
|
|
103
109
|
|
|
104
|
-
if attributes.key?(:'retain_checkpoints')
|
|
105
|
-
self.retain_checkpoints = attributes[:'retain_checkpoints']
|
|
106
|
-
end
|
|
107
|
-
|
|
108
110
|
if attributes.key?(:'manifest_signing_service')
|
|
109
111
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
110
112
|
end
|
|
111
113
|
|
|
112
|
-
if attributes.key?(:'
|
|
113
|
-
self.
|
|
114
|
-
else
|
|
115
|
-
self.name = nil
|
|
114
|
+
if attributes.key?(:'description')
|
|
115
|
+
self.description = attributes[:'description']
|
|
116
116
|
end
|
|
117
117
|
end
|
|
118
118
|
|
|
@@ -121,14 +121,6 @@ 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 !@description.nil? && @description.to_s.length < 1
|
|
125
|
-
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
126
|
-
end
|
|
127
|
-
|
|
128
|
-
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
129
|
-
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
130
|
-
end
|
|
131
|
-
|
|
132
124
|
if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
133
125
|
invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
|
|
134
126
|
end
|
|
@@ -141,6 +133,14 @@ module PulpContainerClient
|
|
|
141
133
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
142
134
|
end
|
|
143
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
|
+
|
|
140
|
+
if !@description.nil? && @description.to_s.length < 1
|
|
141
|
+
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
142
|
+
end
|
|
143
|
+
|
|
144
144
|
invalid_properties
|
|
145
145
|
end
|
|
146
146
|
|
|
@@ -148,34 +148,14 @@ 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 !@description.nil? && @description.to_s.length < 1
|
|
152
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
153
151
|
return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
154
152
|
return false if @name.nil?
|
|
155
153
|
return false if @name.to_s.length < 1
|
|
154
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
155
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
|
156
156
|
true
|
|
157
157
|
end
|
|
158
158
|
|
|
159
|
-
# Custom attribute writer method with validation
|
|
160
|
-
# @param [Object] description Value to be assigned
|
|
161
|
-
def description=(description)
|
|
162
|
-
if !description.nil? && description.to_s.length < 1
|
|
163
|
-
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
|
164
|
-
end
|
|
165
|
-
|
|
166
|
-
@description = description
|
|
167
|
-
end
|
|
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.'
|
|
174
|
-
end
|
|
175
|
-
|
|
176
|
-
@retain_repo_versions = retain_repo_versions
|
|
177
|
-
end
|
|
178
|
-
|
|
179
159
|
# Custom attribute writer method with validation
|
|
180
160
|
# @param [Object] retain_checkpoints Value to be assigned
|
|
181
161
|
def retain_checkpoints=(retain_checkpoints)
|
|
@@ -200,17 +180,37 @@ module PulpContainerClient
|
|
|
200
180
|
@name = name
|
|
201
181
|
end
|
|
202
182
|
|
|
183
|
+
# Custom attribute writer method with validation
|
|
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.'
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
@retain_repo_versions = retain_repo_versions
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
# Custom attribute writer method with validation
|
|
194
|
+
# @param [Object] description Value to be assigned
|
|
195
|
+
def description=(description)
|
|
196
|
+
if !description.nil? && description.to_s.length < 1
|
|
197
|
+
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
@description = description
|
|
201
|
+
end
|
|
202
|
+
|
|
203
203
|
# Checks equality by comparing each attribute.
|
|
204
204
|
# @param [Object] Object to be compared
|
|
205
205
|
def ==(o)
|
|
206
206
|
return true if self.equal?(o)
|
|
207
207
|
self.class == o.class &&
|
|
208
|
-
|
|
208
|
+
retain_checkpoints == o.retain_checkpoints &&
|
|
209
|
+
name == o.name &&
|
|
209
210
|
pulp_labels == o.pulp_labels &&
|
|
210
211
|
retain_repo_versions == o.retain_repo_versions &&
|
|
211
|
-
retain_checkpoints == o.retain_checkpoints &&
|
|
212
212
|
manifest_signing_service == o.manifest_signing_service &&
|
|
213
|
-
|
|
213
|
+
description == o.description
|
|
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
|
+
[retain_checkpoints, name, pulp_labels, retain_repo_versions, manifest_signing_service, description].hash
|
|
226
226
|
end
|
|
227
227
|
|
|
228
228
|
# Builds the object from hash
|
|
@@ -16,53 +16,53 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# Serializer for Container Push Repositories.
|
|
18
18
|
class ContainerContainerPushRepositoryResponse
|
|
19
|
-
#
|
|
20
|
-
attr_accessor :
|
|
19
|
+
# Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
|
|
20
|
+
attr_accessor :retain_checkpoints
|
|
21
21
|
|
|
22
22
|
attr_accessor :latest_version_href
|
|
23
23
|
|
|
24
|
-
#
|
|
25
|
-
attr_accessor :
|
|
24
|
+
# 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.
|
|
25
|
+
attr_accessor :pulp_last_updated
|
|
26
26
|
|
|
27
27
|
attr_accessor :pulp_href
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
# Retain X versions of the repository. Default is null which retains all versions.
|
|
32
|
-
attr_accessor :retain_repo_versions
|
|
33
|
-
|
|
34
|
-
# Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
|
|
35
|
-
attr_accessor :retain_checkpoints
|
|
29
|
+
# The Pulp Resource Name (PRN).
|
|
30
|
+
attr_accessor :prn
|
|
36
31
|
|
|
37
|
-
# A
|
|
38
|
-
attr_accessor :
|
|
32
|
+
# A unique name for this repository.
|
|
33
|
+
attr_accessor :name
|
|
39
34
|
|
|
40
35
|
attr_accessor :versions_href
|
|
41
36
|
|
|
42
37
|
# Timestamp of creation.
|
|
43
38
|
attr_accessor :pulp_created
|
|
44
39
|
|
|
45
|
-
|
|
46
|
-
attr_accessor :name
|
|
40
|
+
attr_accessor :pulp_labels
|
|
47
41
|
|
|
48
|
-
#
|
|
49
|
-
attr_accessor :
|
|
42
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
|
43
|
+
attr_accessor :retain_repo_versions
|
|
44
|
+
|
|
45
|
+
# A reference to an associated signing service.
|
|
46
|
+
attr_accessor :manifest_signing_service
|
|
47
|
+
|
|
48
|
+
# An optional description.
|
|
49
|
+
attr_accessor :description
|
|
50
50
|
|
|
51
51
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
52
52
|
def self.attribute_map
|
|
53
53
|
{
|
|
54
|
-
:'
|
|
54
|
+
:'retain_checkpoints' => :'retain_checkpoints',
|
|
55
55
|
:'latest_version_href' => :'latest_version_href',
|
|
56
|
-
:'
|
|
56
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
|
57
57
|
:'pulp_href' => :'pulp_href',
|
|
58
|
+
:'prn' => :'prn',
|
|
59
|
+
:'name' => :'name',
|
|
60
|
+
:'versions_href' => :'versions_href',
|
|
61
|
+
:'pulp_created' => :'pulp_created',
|
|
58
62
|
:'pulp_labels' => :'pulp_labels',
|
|
59
63
|
:'retain_repo_versions' => :'retain_repo_versions',
|
|
60
|
-
:'retain_checkpoints' => :'retain_checkpoints',
|
|
61
64
|
:'manifest_signing_service' => :'manifest_signing_service',
|
|
62
|
-
:'
|
|
63
|
-
:'pulp_created' => :'pulp_created',
|
|
64
|
-
:'name' => :'name',
|
|
65
|
-
:'prn' => :'prn'
|
|
65
|
+
:'description' => :'description'
|
|
66
66
|
}
|
|
67
67
|
end
|
|
68
68
|
|
|
@@ -74,28 +74,28 @@ module PulpContainerClient
|
|
|
74
74
|
# Attribute type mapping.
|
|
75
75
|
def self.openapi_types
|
|
76
76
|
{
|
|
77
|
-
:'
|
|
77
|
+
:'retain_checkpoints' => :'Integer',
|
|
78
78
|
:'latest_version_href' => :'String',
|
|
79
|
-
:'
|
|
79
|
+
:'pulp_last_updated' => :'Time',
|
|
80
80
|
:'pulp_href' => :'String',
|
|
81
|
+
:'prn' => :'String',
|
|
82
|
+
:'name' => :'String',
|
|
83
|
+
:'versions_href' => :'String',
|
|
84
|
+
:'pulp_created' => :'Time',
|
|
81
85
|
:'pulp_labels' => :'Hash<String, String>',
|
|
82
86
|
:'retain_repo_versions' => :'Integer',
|
|
83
|
-
:'retain_checkpoints' => :'Integer',
|
|
84
87
|
:'manifest_signing_service' => :'String',
|
|
85
|
-
:'
|
|
86
|
-
:'pulp_created' => :'Time',
|
|
87
|
-
:'name' => :'String',
|
|
88
|
-
:'prn' => :'String'
|
|
88
|
+
:'description' => :'String'
|
|
89
89
|
}
|
|
90
90
|
end
|
|
91
91
|
|
|
92
92
|
# List of attributes with nullable: true
|
|
93
93
|
def self.openapi_nullable
|
|
94
94
|
Set.new([
|
|
95
|
-
:'description',
|
|
96
|
-
:'retain_repo_versions',
|
|
97
95
|
:'retain_checkpoints',
|
|
96
|
+
:'retain_repo_versions',
|
|
98
97
|
:'manifest_signing_service',
|
|
98
|
+
:'description'
|
|
99
99
|
])
|
|
100
100
|
end
|
|
101
101
|
|
|
@@ -114,38 +114,30 @@ module PulpContainerClient
|
|
|
114
114
|
h[k.to_sym] = v
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
if attributes.key?(:'
|
|
118
|
-
self.
|
|
117
|
+
if attributes.key?(:'retain_checkpoints')
|
|
118
|
+
self.retain_checkpoints = attributes[:'retain_checkpoints']
|
|
119
119
|
end
|
|
120
120
|
|
|
121
121
|
if attributes.key?(:'latest_version_href')
|
|
122
122
|
self.latest_version_href = attributes[:'latest_version_href']
|
|
123
123
|
end
|
|
124
124
|
|
|
125
|
-
if attributes.key?(:'
|
|
126
|
-
self.
|
|
125
|
+
if attributes.key?(:'pulp_last_updated')
|
|
126
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
127
127
|
end
|
|
128
128
|
|
|
129
129
|
if attributes.key?(:'pulp_href')
|
|
130
130
|
self.pulp_href = attributes[:'pulp_href']
|
|
131
131
|
end
|
|
132
132
|
|
|
133
|
-
if attributes.key?(:'
|
|
134
|
-
|
|
135
|
-
self.pulp_labels = value
|
|
136
|
-
end
|
|
137
|
-
end
|
|
138
|
-
|
|
139
|
-
if attributes.key?(:'retain_repo_versions')
|
|
140
|
-
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
141
|
-
end
|
|
142
|
-
|
|
143
|
-
if attributes.key?(:'retain_checkpoints')
|
|
144
|
-
self.retain_checkpoints = attributes[:'retain_checkpoints']
|
|
133
|
+
if attributes.key?(:'prn')
|
|
134
|
+
self.prn = attributes[:'prn']
|
|
145
135
|
end
|
|
146
136
|
|
|
147
|
-
if attributes.key?(:'
|
|
148
|
-
self.
|
|
137
|
+
if attributes.key?(:'name')
|
|
138
|
+
self.name = attributes[:'name']
|
|
139
|
+
else
|
|
140
|
+
self.name = nil
|
|
149
141
|
end
|
|
150
142
|
|
|
151
143
|
if attributes.key?(:'versions_href')
|
|
@@ -156,14 +148,22 @@ module PulpContainerClient
|
|
|
156
148
|
self.pulp_created = attributes[:'pulp_created']
|
|
157
149
|
end
|
|
158
150
|
|
|
159
|
-
if attributes.key?(:'
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
151
|
+
if attributes.key?(:'pulp_labels')
|
|
152
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
153
|
+
self.pulp_labels = value
|
|
154
|
+
end
|
|
163
155
|
end
|
|
164
156
|
|
|
165
|
-
if attributes.key?(:'
|
|
166
|
-
self.
|
|
157
|
+
if attributes.key?(:'retain_repo_versions')
|
|
158
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
if attributes.key?(:'manifest_signing_service')
|
|
162
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
if attributes.key?(:'description')
|
|
166
|
+
self.description = attributes[:'description']
|
|
167
167
|
end
|
|
168
168
|
end
|
|
169
169
|
|
|
@@ -172,10 +172,6 @@ module PulpContainerClient
|
|
|
172
172
|
def list_invalid_properties
|
|
173
173
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
174
174
|
invalid_properties = Array.new
|
|
175
|
-
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
176
|
-
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
177
|
-
end
|
|
178
|
-
|
|
179
175
|
if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
180
176
|
invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
|
|
181
177
|
end
|
|
@@ -184,6 +180,10 @@ module PulpContainerClient
|
|
|
184
180
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
185
181
|
end
|
|
186
182
|
|
|
183
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
184
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
185
|
+
end
|
|
186
|
+
|
|
187
187
|
invalid_properties
|
|
188
188
|
end
|
|
189
189
|
|
|
@@ -191,22 +191,12 @@ module PulpContainerClient
|
|
|
191
191
|
# @return true if the model is valid
|
|
192
192
|
def valid?
|
|
193
193
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
194
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
195
194
|
return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
196
195
|
return false if @name.nil?
|
|
196
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
197
197
|
true
|
|
198
198
|
end
|
|
199
199
|
|
|
200
|
-
# Custom attribute writer method with validation
|
|
201
|
-
# @param [Object] retain_repo_versions Value to be assigned
|
|
202
|
-
def retain_repo_versions=(retain_repo_versions)
|
|
203
|
-
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
|
204
|
-
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
|
205
|
-
end
|
|
206
|
-
|
|
207
|
-
@retain_repo_versions = retain_repo_versions
|
|
208
|
-
end
|
|
209
|
-
|
|
210
200
|
# Custom attribute writer method with validation
|
|
211
201
|
# @param [Object] retain_checkpoints Value to be assigned
|
|
212
202
|
def retain_checkpoints=(retain_checkpoints)
|
|
@@ -217,23 +207,33 @@ module PulpContainerClient
|
|
|
217
207
|
@retain_checkpoints = retain_checkpoints
|
|
218
208
|
end
|
|
219
209
|
|
|
210
|
+
# Custom attribute writer method with validation
|
|
211
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
|
212
|
+
def retain_repo_versions=(retain_repo_versions)
|
|
213
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
|
214
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
@retain_repo_versions = retain_repo_versions
|
|
218
|
+
end
|
|
219
|
+
|
|
220
220
|
# Checks equality by comparing each attribute.
|
|
221
221
|
# @param [Object] Object to be compared
|
|
222
222
|
def ==(o)
|
|
223
223
|
return true if self.equal?(o)
|
|
224
224
|
self.class == o.class &&
|
|
225
|
-
|
|
225
|
+
retain_checkpoints == o.retain_checkpoints &&
|
|
226
226
|
latest_version_href == o.latest_version_href &&
|
|
227
|
-
|
|
227
|
+
pulp_last_updated == o.pulp_last_updated &&
|
|
228
228
|
pulp_href == o.pulp_href &&
|
|
229
|
+
prn == o.prn &&
|
|
230
|
+
name == o.name &&
|
|
231
|
+
versions_href == o.versions_href &&
|
|
232
|
+
pulp_created == o.pulp_created &&
|
|
229
233
|
pulp_labels == o.pulp_labels &&
|
|
230
234
|
retain_repo_versions == o.retain_repo_versions &&
|
|
231
|
-
retain_checkpoints == o.retain_checkpoints &&
|
|
232
235
|
manifest_signing_service == o.manifest_signing_service &&
|
|
233
|
-
|
|
234
|
-
pulp_created == o.pulp_created &&
|
|
235
|
-
name == o.name &&
|
|
236
|
-
prn == o.prn
|
|
236
|
+
description == o.description
|
|
237
237
|
end
|
|
238
238
|
|
|
239
239
|
# @see the `==` method
|
|
@@ -245,7 +245,7 @@ module PulpContainerClient
|
|
|
245
245
|
# Calculates hash code according to all attributes.
|
|
246
246
|
# @return [Integer] Hash code
|
|
247
247
|
def hash
|
|
248
|
-
[
|
|
248
|
+
[retain_checkpoints, latest_version_href, pulp_last_updated, pulp_href, prn, name, versions_href, pulp_created, pulp_labels, retain_repo_versions, manifest_signing_service, description].hash
|
|
249
249
|
end
|
|
250
250
|
|
|
251
251
|
# Builds the object from hash
|
|
@@ -16,26 +16,26 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# A serializer for ContainerDistribution.
|
|
18
18
|
class PatchedcontainerContainerDistribution
|
|
19
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
|
20
|
-
attr_accessor :content_guard
|
|
21
|
-
|
|
22
19
|
# RepositoryVersion to be served
|
|
23
20
|
attr_accessor :repository_version
|
|
24
21
|
|
|
25
|
-
# The latest RepositoryVersion for this Repository will be served.
|
|
26
|
-
attr_accessor :repository
|
|
27
|
-
|
|
28
|
-
# Whether this distribution should be shown in the content app.
|
|
29
|
-
attr_accessor :hidden
|
|
30
|
-
|
|
31
22
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
32
23
|
attr_accessor :base_path
|
|
33
24
|
|
|
34
|
-
|
|
25
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
|
26
|
+
attr_accessor :content_guard
|
|
35
27
|
|
|
36
28
|
# A unique name. Ex, `rawhide` and `stable`.
|
|
37
29
|
attr_accessor :name
|
|
38
30
|
|
|
31
|
+
attr_accessor :pulp_labels
|
|
32
|
+
|
|
33
|
+
# The latest RepositoryVersion for this Repository will be served.
|
|
34
|
+
attr_accessor :repository
|
|
35
|
+
|
|
36
|
+
# Whether this distribution should be shown in the content app.
|
|
37
|
+
attr_accessor :hidden
|
|
38
|
+
|
|
39
39
|
# Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access.
|
|
40
40
|
attr_accessor :private
|
|
41
41
|
|
|
@@ -45,13 +45,13 @@ module PulpContainerClient
|
|
|
45
45
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
46
46
|
def self.attribute_map
|
|
47
47
|
{
|
|
48
|
-
:'content_guard' => :'content_guard',
|
|
49
48
|
:'repository_version' => :'repository_version',
|
|
50
|
-
:'repository' => :'repository',
|
|
51
|
-
:'hidden' => :'hidden',
|
|
52
49
|
:'base_path' => :'base_path',
|
|
53
|
-
:'
|
|
50
|
+
:'content_guard' => :'content_guard',
|
|
54
51
|
:'name' => :'name',
|
|
52
|
+
:'pulp_labels' => :'pulp_labels',
|
|
53
|
+
:'repository' => :'repository',
|
|
54
|
+
:'hidden' => :'hidden',
|
|
55
55
|
:'private' => :'private',
|
|
56
56
|
:'description' => :'description'
|
|
57
57
|
}
|
|
@@ -65,13 +65,13 @@ module PulpContainerClient
|
|
|
65
65
|
# Attribute type mapping.
|
|
66
66
|
def self.openapi_types
|
|
67
67
|
{
|
|
68
|
-
:'content_guard' => :'String',
|
|
69
68
|
:'repository_version' => :'String',
|
|
70
|
-
:'repository' => :'String',
|
|
71
|
-
:'hidden' => :'Boolean',
|
|
72
69
|
:'base_path' => :'String',
|
|
73
|
-
:'
|
|
70
|
+
:'content_guard' => :'String',
|
|
74
71
|
:'name' => :'String',
|
|
72
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
73
|
+
:'repository' => :'String',
|
|
74
|
+
:'hidden' => :'Boolean',
|
|
75
75
|
:'private' => :'Boolean',
|
|
76
76
|
:'description' => :'String'
|
|
77
77
|
}
|
|
@@ -101,26 +101,20 @@ module PulpContainerClient
|
|
|
101
101
|
h[k.to_sym] = v
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
if attributes.key?(:'content_guard')
|
|
105
|
-
self.content_guard = attributes[:'content_guard']
|
|
106
|
-
end
|
|
107
|
-
|
|
108
104
|
if attributes.key?(:'repository_version')
|
|
109
105
|
self.repository_version = attributes[:'repository_version']
|
|
110
106
|
end
|
|
111
107
|
|
|
112
|
-
if attributes.key?(:'
|
|
113
|
-
self.
|
|
108
|
+
if attributes.key?(:'base_path')
|
|
109
|
+
self.base_path = attributes[:'base_path']
|
|
114
110
|
end
|
|
115
111
|
|
|
116
|
-
if attributes.key?(:'
|
|
117
|
-
self.
|
|
118
|
-
else
|
|
119
|
-
self.hidden = false
|
|
112
|
+
if attributes.key?(:'content_guard')
|
|
113
|
+
self.content_guard = attributes[:'content_guard']
|
|
120
114
|
end
|
|
121
115
|
|
|
122
|
-
if attributes.key?(:'
|
|
123
|
-
self.
|
|
116
|
+
if attributes.key?(:'name')
|
|
117
|
+
self.name = attributes[:'name']
|
|
124
118
|
end
|
|
125
119
|
|
|
126
120
|
if attributes.key?(:'pulp_labels')
|
|
@@ -129,8 +123,14 @@ module PulpContainerClient
|
|
|
129
123
|
end
|
|
130
124
|
end
|
|
131
125
|
|
|
132
|
-
if attributes.key?(:'
|
|
133
|
-
self.
|
|
126
|
+
if attributes.key?(:'repository')
|
|
127
|
+
self.repository = attributes[:'repository']
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
if attributes.key?(:'hidden')
|
|
131
|
+
self.hidden = attributes[:'hidden']
|
|
132
|
+
else
|
|
133
|
+
self.hidden = false
|
|
134
134
|
end
|
|
135
135
|
|
|
136
136
|
if attributes.key?(:'private')
|
|
@@ -215,13 +215,13 @@ module PulpContainerClient
|
|
|
215
215
|
def ==(o)
|
|
216
216
|
return true if self.equal?(o)
|
|
217
217
|
self.class == o.class &&
|
|
218
|
-
content_guard == o.content_guard &&
|
|
219
218
|
repository_version == o.repository_version &&
|
|
220
|
-
repository == o.repository &&
|
|
221
|
-
hidden == o.hidden &&
|
|
222
219
|
base_path == o.base_path &&
|
|
223
|
-
|
|
220
|
+
content_guard == o.content_guard &&
|
|
224
221
|
name == o.name &&
|
|
222
|
+
pulp_labels == o.pulp_labels &&
|
|
223
|
+
repository == o.repository &&
|
|
224
|
+
hidden == o.hidden &&
|
|
225
225
|
private == o.private &&
|
|
226
226
|
description == o.description
|
|
227
227
|
end
|
|
@@ -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
|
+
[repository_version, base_path, content_guard, name, pulp_labels, repository, hidden, private, description].hash
|
|
239
239
|
end
|
|
240
240
|
|
|
241
241
|
# Builds the object from hash
|