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