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