pulp_container_client 2.20.0 → 2.20.3
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 +5 -7
- data/docs/ContainerBlobResponse.md +2 -0
- data/docs/ContainerContainerDistribution.md +9 -9
- data/docs/ContainerContainerDistributionResponse.md +13 -11
- data/docs/ContainerContainerNamespaceResponse.md +2 -0
- data/docs/ContainerContainerPullThroughDistribution.md +9 -9
- data/docs/ContainerContainerPullThroughDistributionResponse.md +13 -11
- data/docs/ContainerContainerPullThroughRemoteResponse.md +2 -2
- data/docs/ContainerContainerPullThroughRemoteResponseHiddenFields.md +2 -2
- data/docs/ContainerContainerPushRepository.md +6 -6
- data/docs/ContainerContainerPushRepositoryResponse.md +15 -13
- data/docs/ContainerContainerRemoteResponse.md +2 -2
- data/docs/ContainerContainerRepositoryResponse.md +2 -0
- data/docs/ContainerManifestResponse.md +2 -0
- data/docs/ContainerManifestSignatureResponse.md +2 -0
- data/docs/ContainerTagResponse.md +2 -0
- data/docs/ContentBlobsApi.md +1 -1
- data/docs/ContentManifestsApi.md +1 -1
- data/docs/ContentSignaturesApi.md +1 -1
- data/docs/ContentTagsApi.md +1 -1
- data/docs/DistributionsContainerApi.md +1 -1
- data/docs/DistributionsPullThroughApi.md +1 -1
- data/docs/PaginatedRepositoryVersionResponseList.md +2 -2
- data/docs/PaginatedcontainerBlobResponseList.md +2 -2
- data/docs/PaginatedcontainerContainerDistributionResponseList.md +2 -2
- data/docs/PaginatedcontainerContainerNamespaceResponseList.md +2 -2
- data/docs/PaginatedcontainerContainerPullThroughDistributionResponseList.md +2 -2
- data/docs/PaginatedcontainerContainerPullThroughRemoteResponseList.md +2 -2
- data/docs/PaginatedcontainerContainerPushRepositoryResponseList.md +2 -2
- data/docs/PaginatedcontainerContainerRemoteResponseList.md +2 -2
- data/docs/PaginatedcontainerContainerRepositoryResponseList.md +2 -2
- data/docs/PaginatedcontainerManifestResponseList.md +2 -2
- data/docs/PaginatedcontainerManifestSignatureResponseList.md +2 -2
- data/docs/PaginatedcontainerTagResponseList.md +2 -2
- data/docs/PatchedcontainerContainerDistribution.md +9 -9
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +9 -9
- data/docs/PatchedcontainerContainerPushRepository.md +6 -6
- data/docs/PulpContainerNamespacesApi.md +1 -1
- data/docs/RemotesContainerApi.md +1 -1
- data/docs/RemotesPullThroughApi.md +1 -1
- data/docs/RepositoriesContainerApi.md +1 -1
- data/docs/RepositoriesContainerPushApi.md +1 -1
- data/docs/RepositoriesContainerPushVersionsApi.md +1 -1
- data/docs/RepositoriesContainerVersionsApi.md +1 -1
- data/docs/RepositoryVersionResponse.md +2 -0
- data/docs/TokenApi.md +1 -1
- data/lib/pulp_container_client/configuration.rb +2 -2
- data/lib/pulp_container_client/models/container_blob_response.rb +11 -1
- data/lib/pulp_container_client/models/container_container_distribution.rb +63 -63
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +62 -52
- data/lib/pulp_container_client/models/container_container_namespace_response.rb +11 -1
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +63 -63
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +62 -52
- data/lib/pulp_container_client/models/container_container_pull_through_remote.rb +20 -20
- data/lib/pulp_container_client/models/container_container_pull_through_remote_response.rb +31 -31
- data/lib/pulp_container_client/models/container_container_pull_through_remote_response_hidden_fields.rb +10 -0
- data/lib/pulp_container_client/models/container_container_push_repository.rb +40 -40
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +60 -50
- data/lib/pulp_container_client/models/container_container_remote.rb +20 -20
- data/lib/pulp_container_client/models/container_container_remote_response.rb +31 -31
- data/lib/pulp_container_client/models/container_container_repository_response.rb +11 -1
- data/lib/pulp_container_client/models/container_manifest_response.rb +11 -1
- data/lib/pulp_container_client/models/container_manifest_signature_response.rb +11 -1
- data/lib/pulp_container_client/models/container_tag_response.rb +11 -1
- data/lib/pulp_container_client/models/paginated_repository_version_response_list.rb +10 -0
- data/lib/pulp_container_client/models/paginatedcontainer_blob_response_list.rb +10 -0
- data/lib/pulp_container_client/models/paginatedcontainer_container_distribution_response_list.rb +10 -0
- data/lib/pulp_container_client/models/paginatedcontainer_container_namespace_response_list.rb +10 -0
- data/lib/pulp_container_client/models/paginatedcontainer_container_pull_through_distribution_response_list.rb +10 -0
- data/lib/pulp_container_client/models/paginatedcontainer_container_pull_through_remote_response_list.rb +10 -0
- data/lib/pulp_container_client/models/paginatedcontainer_container_push_repository_response_list.rb +10 -0
- data/lib/pulp_container_client/models/paginatedcontainer_container_remote_response_list.rb +10 -0
- data/lib/pulp_container_client/models/paginatedcontainer_container_repository_response_list.rb +10 -0
- data/lib/pulp_container_client/models/paginatedcontainer_manifest_response_list.rb +10 -0
- data/lib/pulp_container_client/models/paginatedcontainer_manifest_signature_response_list.rb +10 -0
- data/lib/pulp_container_client/models/paginatedcontainer_tag_response_list.rb +10 -0
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +54 -54
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +54 -54
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_remote.rb +20 -20
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +40 -40
- data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +20 -20
- data/lib/pulp_container_client/models/repository_version_response.rb +11 -1
- data/lib/pulp_container_client/version.rb +1 -1
- data/lib/pulp_container_client.rb +0 -2
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/container_blob_response_spec.rb +6 -0
- data/spec/models/container_container_distribution_response_spec.rb +14 -8
- data/spec/models/container_container_distribution_spec.rb +6 -6
- data/spec/models/container_container_namespace_response_spec.rb +6 -0
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +14 -8
- data/spec/models/container_container_pull_through_distribution_spec.rb +6 -6
- data/spec/models/container_container_pull_through_remote_response_spec.rb +6 -6
- data/spec/models/container_container_push_repository_response_spec.rb +14 -8
- data/spec/models/container_container_push_repository_spec.rb +5 -5
- data/spec/models/container_container_remote_response_spec.rb +6 -6
- data/spec/models/container_container_repository_response_spec.rb +6 -0
- data/spec/models/container_manifest_response_spec.rb +6 -0
- data/spec/models/container_manifest_signature_response_spec.rb +6 -0
- data/spec/models/container_tag_response_spec.rb +6 -0
- 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 +5 -5
- data/spec/models/repository_version_response_spec.rb +6 -0
- metadata +70 -78
- data/docs/IndexDynamicApi.md +0 -50
- data/docs/IndexStaticApi.md +0 -50
- data/lib/pulp_container_client/api/index_dynamic_api.rb +0 -74
- data/lib/pulp_container_client/api/index_static_api.rb +0 -74
- data/spec/api/index_dynamic_api_spec.rb +0 -45
- data/spec/api/index_static_api_spec.rb +0 -45
|
@@ -15,27 +15,30 @@ require 'date'
|
|
|
15
15
|
module PulpContainerClient
|
|
16
16
|
# A serializer for ContainerDistribution.
|
|
17
17
|
class ContainerContainerDistributionResponse
|
|
18
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
|
19
|
-
attr_accessor :content_guard
|
|
20
|
-
|
|
21
|
-
# Whether this distribution should be shown in the content app.
|
|
22
|
-
attr_accessor :hidden
|
|
23
|
-
|
|
24
|
-
attr_accessor :pulp_href
|
|
25
|
-
|
|
26
18
|
# Timestamp of creation.
|
|
27
19
|
attr_accessor :pulp_created
|
|
28
20
|
|
|
29
|
-
|
|
21
|
+
# 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.
|
|
22
|
+
attr_accessor :pulp_last_updated
|
|
30
23
|
|
|
31
24
|
# The latest RepositoryVersion for this Repository will be served.
|
|
32
25
|
attr_accessor :repository
|
|
33
26
|
|
|
27
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
|
28
|
+
attr_accessor :name
|
|
29
|
+
|
|
34
30
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
35
31
|
attr_accessor :base_path
|
|
36
32
|
|
|
37
|
-
#
|
|
38
|
-
attr_accessor :
|
|
33
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
|
34
|
+
attr_accessor :content_guard
|
|
35
|
+
|
|
36
|
+
attr_accessor :pulp_href
|
|
37
|
+
|
|
38
|
+
attr_accessor :pulp_labels
|
|
39
|
+
|
|
40
|
+
# Whether this distribution should be shown in the content app.
|
|
41
|
+
attr_accessor :hidden
|
|
39
42
|
|
|
40
43
|
# RepositoryVersion to be served
|
|
41
44
|
attr_accessor :repository_version
|
|
@@ -58,14 +61,15 @@ module PulpContainerClient
|
|
|
58
61
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
59
62
|
def self.attribute_map
|
|
60
63
|
{
|
|
61
|
-
:'content_guard' => :'content_guard',
|
|
62
|
-
:'hidden' => :'hidden',
|
|
63
|
-
:'pulp_href' => :'pulp_href',
|
|
64
64
|
:'pulp_created' => :'pulp_created',
|
|
65
|
-
:'
|
|
65
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
|
66
66
|
:'repository' => :'repository',
|
|
67
|
-
:'base_path' => :'base_path',
|
|
68
67
|
:'name' => :'name',
|
|
68
|
+
:'base_path' => :'base_path',
|
|
69
|
+
:'content_guard' => :'content_guard',
|
|
70
|
+
:'pulp_href' => :'pulp_href',
|
|
71
|
+
:'pulp_labels' => :'pulp_labels',
|
|
72
|
+
:'hidden' => :'hidden',
|
|
69
73
|
:'repository_version' => :'repository_version',
|
|
70
74
|
:'registry_path' => :'registry_path',
|
|
71
75
|
:'remote' => :'remote',
|
|
@@ -78,14 +82,15 @@ module PulpContainerClient
|
|
|
78
82
|
# Attribute type mapping.
|
|
79
83
|
def self.openapi_types
|
|
80
84
|
{
|
|
81
|
-
:'content_guard' => :'String',
|
|
82
|
-
:'hidden' => :'Boolean',
|
|
83
|
-
:'pulp_href' => :'String',
|
|
84
85
|
:'pulp_created' => :'DateTime',
|
|
85
|
-
:'
|
|
86
|
+
:'pulp_last_updated' => :'DateTime',
|
|
86
87
|
:'repository' => :'String',
|
|
87
|
-
:'base_path' => :'String',
|
|
88
88
|
:'name' => :'String',
|
|
89
|
+
:'base_path' => :'String',
|
|
90
|
+
:'content_guard' => :'String',
|
|
91
|
+
:'pulp_href' => :'String',
|
|
92
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
93
|
+
:'hidden' => :'Boolean',
|
|
89
94
|
:'repository_version' => :'String',
|
|
90
95
|
:'registry_path' => :'String',
|
|
91
96
|
:'remote' => :'String',
|
|
@@ -119,40 +124,44 @@ module PulpContainerClient
|
|
|
119
124
|
h[k.to_sym] = v
|
|
120
125
|
}
|
|
121
126
|
|
|
122
|
-
if attributes.key?(:'content_guard')
|
|
123
|
-
self.content_guard = attributes[:'content_guard']
|
|
124
|
-
end
|
|
125
|
-
|
|
126
|
-
if attributes.key?(:'hidden')
|
|
127
|
-
self.hidden = attributes[:'hidden']
|
|
128
|
-
else
|
|
129
|
-
self.hidden = false
|
|
130
|
-
end
|
|
131
|
-
|
|
132
|
-
if attributes.key?(:'pulp_href')
|
|
133
|
-
self.pulp_href = attributes[:'pulp_href']
|
|
134
|
-
end
|
|
135
|
-
|
|
136
127
|
if attributes.key?(:'pulp_created')
|
|
137
128
|
self.pulp_created = attributes[:'pulp_created']
|
|
138
129
|
end
|
|
139
130
|
|
|
140
|
-
if attributes.key?(:'
|
|
141
|
-
|
|
142
|
-
self.pulp_labels = value
|
|
143
|
-
end
|
|
131
|
+
if attributes.key?(:'pulp_last_updated')
|
|
132
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
144
133
|
end
|
|
145
134
|
|
|
146
135
|
if attributes.key?(:'repository')
|
|
147
136
|
self.repository = attributes[:'repository']
|
|
148
137
|
end
|
|
149
138
|
|
|
139
|
+
if attributes.key?(:'name')
|
|
140
|
+
self.name = attributes[:'name']
|
|
141
|
+
end
|
|
142
|
+
|
|
150
143
|
if attributes.key?(:'base_path')
|
|
151
144
|
self.base_path = attributes[:'base_path']
|
|
152
145
|
end
|
|
153
146
|
|
|
154
|
-
if attributes.key?(:'
|
|
155
|
-
self.
|
|
147
|
+
if attributes.key?(:'content_guard')
|
|
148
|
+
self.content_guard = attributes[:'content_guard']
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
if attributes.key?(:'pulp_href')
|
|
152
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
153
|
+
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?(:'hidden')
|
|
162
|
+
self.hidden = attributes[:'hidden']
|
|
163
|
+
else
|
|
164
|
+
self.hidden = false
|
|
156
165
|
end
|
|
157
166
|
|
|
158
167
|
if attributes.key?(:'repository_version')
|
|
@@ -184,22 +193,22 @@ module PulpContainerClient
|
|
|
184
193
|
# @return Array for valid properties with the reasons
|
|
185
194
|
def list_invalid_properties
|
|
186
195
|
invalid_properties = Array.new
|
|
187
|
-
if @base_path.nil?
|
|
188
|
-
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
|
189
|
-
end
|
|
190
|
-
|
|
191
196
|
if @name.nil?
|
|
192
197
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
193
198
|
end
|
|
194
199
|
|
|
200
|
+
if @base_path.nil?
|
|
201
|
+
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
|
202
|
+
end
|
|
203
|
+
|
|
195
204
|
invalid_properties
|
|
196
205
|
end
|
|
197
206
|
|
|
198
207
|
# Check to see if the all the properties in the model are valid
|
|
199
208
|
# @return true if the model is valid
|
|
200
209
|
def valid?
|
|
201
|
-
return false if @base_path.nil?
|
|
202
210
|
return false if @name.nil?
|
|
211
|
+
return false if @base_path.nil?
|
|
203
212
|
true
|
|
204
213
|
end
|
|
205
214
|
|
|
@@ -208,14 +217,15 @@ module PulpContainerClient
|
|
|
208
217
|
def ==(o)
|
|
209
218
|
return true if self.equal?(o)
|
|
210
219
|
self.class == o.class &&
|
|
211
|
-
content_guard == o.content_guard &&
|
|
212
|
-
hidden == o.hidden &&
|
|
213
|
-
pulp_href == o.pulp_href &&
|
|
214
220
|
pulp_created == o.pulp_created &&
|
|
215
|
-
|
|
221
|
+
pulp_last_updated == o.pulp_last_updated &&
|
|
216
222
|
repository == o.repository &&
|
|
217
|
-
base_path == o.base_path &&
|
|
218
223
|
name == o.name &&
|
|
224
|
+
base_path == o.base_path &&
|
|
225
|
+
content_guard == o.content_guard &&
|
|
226
|
+
pulp_href == o.pulp_href &&
|
|
227
|
+
pulp_labels == o.pulp_labels &&
|
|
228
|
+
hidden == o.hidden &&
|
|
219
229
|
repository_version == o.repository_version &&
|
|
220
230
|
registry_path == o.registry_path &&
|
|
221
231
|
remote == o.remote &&
|
|
@@ -233,7 +243,7 @@ module PulpContainerClient
|
|
|
233
243
|
# Calculates hash code according to all attributes.
|
|
234
244
|
# @return [Integer] Hash code
|
|
235
245
|
def hash
|
|
236
|
-
[
|
|
246
|
+
[pulp_created, pulp_last_updated, repository, name, base_path, content_guard, pulp_href, pulp_labels, hidden, repository_version, registry_path, remote, namespace, private, description].hash
|
|
237
247
|
end
|
|
238
248
|
|
|
239
249
|
# Builds the object from hash
|
|
@@ -20,6 +20,9 @@ module PulpContainerClient
|
|
|
20
20
|
# Timestamp of creation.
|
|
21
21
|
attr_accessor :pulp_created
|
|
22
22
|
|
|
23
|
+
# 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.
|
|
24
|
+
attr_accessor :pulp_last_updated
|
|
25
|
+
|
|
23
26
|
attr_accessor :name
|
|
24
27
|
|
|
25
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -27,6 +30,7 @@ module PulpContainerClient
|
|
|
27
30
|
{
|
|
28
31
|
:'pulp_href' => :'pulp_href',
|
|
29
32
|
:'pulp_created' => :'pulp_created',
|
|
33
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
|
30
34
|
:'name' => :'name'
|
|
31
35
|
}
|
|
32
36
|
end
|
|
@@ -36,6 +40,7 @@ module PulpContainerClient
|
|
|
36
40
|
{
|
|
37
41
|
:'pulp_href' => :'String',
|
|
38
42
|
:'pulp_created' => :'DateTime',
|
|
43
|
+
:'pulp_last_updated' => :'DateTime',
|
|
39
44
|
:'name' => :'String'
|
|
40
45
|
}
|
|
41
46
|
end
|
|
@@ -69,6 +74,10 @@ module PulpContainerClient
|
|
|
69
74
|
self.pulp_created = attributes[:'pulp_created']
|
|
70
75
|
end
|
|
71
76
|
|
|
77
|
+
if attributes.key?(:'pulp_last_updated')
|
|
78
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
79
|
+
end
|
|
80
|
+
|
|
72
81
|
if attributes.key?(:'name')
|
|
73
82
|
self.name = attributes[:'name']
|
|
74
83
|
end
|
|
@@ -99,6 +108,7 @@ module PulpContainerClient
|
|
|
99
108
|
self.class == o.class &&
|
|
100
109
|
pulp_href == o.pulp_href &&
|
|
101
110
|
pulp_created == o.pulp_created &&
|
|
111
|
+
pulp_last_updated == o.pulp_last_updated &&
|
|
102
112
|
name == o.name
|
|
103
113
|
end
|
|
104
114
|
|
|
@@ -111,7 +121,7 @@ module PulpContainerClient
|
|
|
111
121
|
# Calculates hash code according to all attributes.
|
|
112
122
|
# @return [Integer] Hash code
|
|
113
123
|
def hash
|
|
114
|
-
[pulp_href, pulp_created, name].hash
|
|
124
|
+
[pulp_href, pulp_created, pulp_last_updated, name].hash
|
|
115
125
|
end
|
|
116
126
|
|
|
117
127
|
# Builds the object from hash
|
|
@@ -15,22 +15,22 @@ require 'date'
|
|
|
15
15
|
module PulpContainerClient
|
|
16
16
|
# A serializer for a specialized pull-through distribution referencing sub-distributions.
|
|
17
17
|
class ContainerContainerPullThroughDistribution
|
|
18
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
|
19
|
-
attr_accessor :content_guard
|
|
20
|
-
|
|
21
|
-
# Whether this distribution should be shown in the content app.
|
|
22
|
-
attr_accessor :hidden
|
|
23
|
-
|
|
24
|
-
attr_accessor :pulp_labels
|
|
25
|
-
|
|
26
18
|
# The latest RepositoryVersion for this Repository will be served.
|
|
27
19
|
attr_accessor :repository
|
|
28
20
|
|
|
21
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
|
22
|
+
attr_accessor :name
|
|
23
|
+
|
|
29
24
|
# 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
25
|
attr_accessor :base_path
|
|
31
26
|
|
|
32
|
-
#
|
|
33
|
-
attr_accessor :
|
|
27
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
|
28
|
+
attr_accessor :content_guard
|
|
29
|
+
|
|
30
|
+
attr_accessor :pulp_labels
|
|
31
|
+
|
|
32
|
+
# Whether this distribution should be shown in the content app.
|
|
33
|
+
attr_accessor :hidden
|
|
34
34
|
|
|
35
35
|
# Remote that can be used to fetch content when using pull-through caching.
|
|
36
36
|
attr_accessor :remote
|
|
@@ -47,12 +47,12 @@ module PulpContainerClient
|
|
|
47
47
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
48
48
|
def self.attribute_map
|
|
49
49
|
{
|
|
50
|
-
:'content_guard' => :'content_guard',
|
|
51
|
-
:'hidden' => :'hidden',
|
|
52
|
-
:'pulp_labels' => :'pulp_labels',
|
|
53
50
|
:'repository' => :'repository',
|
|
54
|
-
:'base_path' => :'base_path',
|
|
55
51
|
:'name' => :'name',
|
|
52
|
+
:'base_path' => :'base_path',
|
|
53
|
+
:'content_guard' => :'content_guard',
|
|
54
|
+
:'pulp_labels' => :'pulp_labels',
|
|
55
|
+
:'hidden' => :'hidden',
|
|
56
56
|
:'remote' => :'remote',
|
|
57
57
|
:'distributions' => :'distributions',
|
|
58
58
|
:'private' => :'private',
|
|
@@ -63,12 +63,12 @@ module PulpContainerClient
|
|
|
63
63
|
# Attribute type mapping.
|
|
64
64
|
def self.openapi_types
|
|
65
65
|
{
|
|
66
|
-
:'content_guard' => :'String',
|
|
67
|
-
:'hidden' => :'Boolean',
|
|
68
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
69
66
|
:'repository' => :'String',
|
|
70
|
-
:'base_path' => :'String',
|
|
71
67
|
:'name' => :'String',
|
|
68
|
+
:'base_path' => :'String',
|
|
69
|
+
:'content_guard' => :'String',
|
|
70
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
71
|
+
:'hidden' => :'Boolean',
|
|
72
72
|
:'remote' => :'String',
|
|
73
73
|
:'distributions' => :'Array<String>',
|
|
74
74
|
:'private' => :'Boolean',
|
|
@@ -99,32 +99,32 @@ module PulpContainerClient
|
|
|
99
99
|
h[k.to_sym] = v
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
if attributes.key?(:'
|
|
103
|
-
self.
|
|
102
|
+
if attributes.key?(:'repository')
|
|
103
|
+
self.repository = attributes[:'repository']
|
|
104
104
|
end
|
|
105
105
|
|
|
106
|
-
if attributes.key?(:'
|
|
107
|
-
self.
|
|
108
|
-
else
|
|
109
|
-
self.hidden = false
|
|
106
|
+
if attributes.key?(:'name')
|
|
107
|
+
self.name = attributes[:'name']
|
|
110
108
|
end
|
|
111
109
|
|
|
112
|
-
if attributes.key?(:'
|
|
113
|
-
|
|
114
|
-
self.pulp_labels = value
|
|
115
|
-
end
|
|
110
|
+
if attributes.key?(:'base_path')
|
|
111
|
+
self.base_path = attributes[:'base_path']
|
|
116
112
|
end
|
|
117
113
|
|
|
118
|
-
if attributes.key?(:'
|
|
119
|
-
self.
|
|
114
|
+
if attributes.key?(:'content_guard')
|
|
115
|
+
self.content_guard = attributes[:'content_guard']
|
|
120
116
|
end
|
|
121
117
|
|
|
122
|
-
if attributes.key?(:'
|
|
123
|
-
|
|
118
|
+
if attributes.key?(:'pulp_labels')
|
|
119
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
120
|
+
self.pulp_labels = value
|
|
121
|
+
end
|
|
124
122
|
end
|
|
125
123
|
|
|
126
|
-
if attributes.key?(:'
|
|
127
|
-
self.
|
|
124
|
+
if attributes.key?(:'hidden')
|
|
125
|
+
self.hidden = attributes[:'hidden']
|
|
126
|
+
else
|
|
127
|
+
self.hidden = false
|
|
128
128
|
end
|
|
129
129
|
|
|
130
130
|
if attributes.key?(:'remote')
|
|
@@ -150,14 +150,6 @@ module PulpContainerClient
|
|
|
150
150
|
# @return Array for valid properties with the reasons
|
|
151
151
|
def list_invalid_properties
|
|
152
152
|
invalid_properties = Array.new
|
|
153
|
-
if @base_path.nil?
|
|
154
|
-
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
|
155
|
-
end
|
|
156
|
-
|
|
157
|
-
if @base_path.to_s.length < 1
|
|
158
|
-
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
|
159
|
-
end
|
|
160
|
-
|
|
161
153
|
if @name.nil?
|
|
162
154
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
163
155
|
end
|
|
@@ -166,6 +158,14 @@ module PulpContainerClient
|
|
|
166
158
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
167
159
|
end
|
|
168
160
|
|
|
161
|
+
if @base_path.nil?
|
|
162
|
+
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
if @base_path.to_s.length < 1
|
|
166
|
+
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
|
167
|
+
end
|
|
168
|
+
|
|
169
169
|
if @remote.nil?
|
|
170
170
|
invalid_properties.push('invalid value for "remote", remote cannot be nil.')
|
|
171
171
|
end
|
|
@@ -180,29 +180,15 @@ module PulpContainerClient
|
|
|
180
180
|
# Check to see if the all the properties in the model are valid
|
|
181
181
|
# @return true if the model is valid
|
|
182
182
|
def valid?
|
|
183
|
-
return false if @base_path.nil?
|
|
184
|
-
return false if @base_path.to_s.length < 1
|
|
185
183
|
return false if @name.nil?
|
|
186
184
|
return false if @name.to_s.length < 1
|
|
185
|
+
return false if @base_path.nil?
|
|
186
|
+
return false if @base_path.to_s.length < 1
|
|
187
187
|
return false if @remote.nil?
|
|
188
188
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
189
189
|
true
|
|
190
190
|
end
|
|
191
191
|
|
|
192
|
-
# Custom attribute writer method with validation
|
|
193
|
-
# @param [Object] base_path Value to be assigned
|
|
194
|
-
def base_path=(base_path)
|
|
195
|
-
if base_path.nil?
|
|
196
|
-
fail ArgumentError, 'base_path cannot be nil'
|
|
197
|
-
end
|
|
198
|
-
|
|
199
|
-
if base_path.to_s.length < 1
|
|
200
|
-
fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
|
|
201
|
-
end
|
|
202
|
-
|
|
203
|
-
@base_path = base_path
|
|
204
|
-
end
|
|
205
|
-
|
|
206
192
|
# Custom attribute writer method with validation
|
|
207
193
|
# @param [Object] name Value to be assigned
|
|
208
194
|
def name=(name)
|
|
@@ -217,6 +203,20 @@ module PulpContainerClient
|
|
|
217
203
|
@name = name
|
|
218
204
|
end
|
|
219
205
|
|
|
206
|
+
# Custom attribute writer method with validation
|
|
207
|
+
# @param [Object] base_path Value to be assigned
|
|
208
|
+
def base_path=(base_path)
|
|
209
|
+
if base_path.nil?
|
|
210
|
+
fail ArgumentError, 'base_path cannot be nil'
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
if base_path.to_s.length < 1
|
|
214
|
+
fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
@base_path = base_path
|
|
218
|
+
end
|
|
219
|
+
|
|
220
220
|
# Custom attribute writer method with validation
|
|
221
221
|
# @param [Object] description Value to be assigned
|
|
222
222
|
def description=(description)
|
|
@@ -232,12 +232,12 @@ module PulpContainerClient
|
|
|
232
232
|
def ==(o)
|
|
233
233
|
return true if self.equal?(o)
|
|
234
234
|
self.class == o.class &&
|
|
235
|
-
content_guard == o.content_guard &&
|
|
236
|
-
hidden == o.hidden &&
|
|
237
|
-
pulp_labels == o.pulp_labels &&
|
|
238
235
|
repository == o.repository &&
|
|
239
|
-
base_path == o.base_path &&
|
|
240
236
|
name == o.name &&
|
|
237
|
+
base_path == o.base_path &&
|
|
238
|
+
content_guard == o.content_guard &&
|
|
239
|
+
pulp_labels == o.pulp_labels &&
|
|
240
|
+
hidden == o.hidden &&
|
|
241
241
|
remote == o.remote &&
|
|
242
242
|
distributions == o.distributions &&
|
|
243
243
|
private == o.private &&
|
|
@@ -253,7 +253,7 @@ module PulpContainerClient
|
|
|
253
253
|
# Calculates hash code according to all attributes.
|
|
254
254
|
# @return [Integer] Hash code
|
|
255
255
|
def hash
|
|
256
|
-
[
|
|
256
|
+
[repository, name, base_path, content_guard, pulp_labels, hidden, remote, distributions, private, description].hash
|
|
257
257
|
end
|
|
258
258
|
|
|
259
259
|
# Builds the object from hash
|
data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb
CHANGED
|
@@ -15,27 +15,30 @@ require 'date'
|
|
|
15
15
|
module PulpContainerClient
|
|
16
16
|
# A serializer for a specialized pull-through distribution referencing sub-distributions.
|
|
17
17
|
class ContainerContainerPullThroughDistributionResponse
|
|
18
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
|
19
|
-
attr_accessor :content_guard
|
|
20
|
-
|
|
21
|
-
# Whether this distribution should be shown in the content app.
|
|
22
|
-
attr_accessor :hidden
|
|
23
|
-
|
|
24
|
-
attr_accessor :pulp_href
|
|
25
|
-
|
|
26
18
|
# Timestamp of creation.
|
|
27
19
|
attr_accessor :pulp_created
|
|
28
20
|
|
|
29
|
-
|
|
21
|
+
# 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.
|
|
22
|
+
attr_accessor :pulp_last_updated
|
|
30
23
|
|
|
31
24
|
# The latest RepositoryVersion for this Repository will be served.
|
|
32
25
|
attr_accessor :repository
|
|
33
26
|
|
|
27
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
|
28
|
+
attr_accessor :name
|
|
29
|
+
|
|
34
30
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
35
31
|
attr_accessor :base_path
|
|
36
32
|
|
|
37
|
-
#
|
|
38
|
-
attr_accessor :
|
|
33
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
|
34
|
+
attr_accessor :content_guard
|
|
35
|
+
|
|
36
|
+
attr_accessor :pulp_href
|
|
37
|
+
|
|
38
|
+
attr_accessor :pulp_labels
|
|
39
|
+
|
|
40
|
+
# Whether this distribution should be shown in the content app.
|
|
41
|
+
attr_accessor :hidden
|
|
39
42
|
|
|
40
43
|
# Remote that can be used to fetch content when using pull-through caching.
|
|
41
44
|
attr_accessor :remote
|
|
@@ -55,14 +58,15 @@ module PulpContainerClient
|
|
|
55
58
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
56
59
|
def self.attribute_map
|
|
57
60
|
{
|
|
58
|
-
:'content_guard' => :'content_guard',
|
|
59
|
-
:'hidden' => :'hidden',
|
|
60
|
-
:'pulp_href' => :'pulp_href',
|
|
61
61
|
:'pulp_created' => :'pulp_created',
|
|
62
|
-
:'
|
|
62
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
|
63
63
|
:'repository' => :'repository',
|
|
64
|
-
:'base_path' => :'base_path',
|
|
65
64
|
:'name' => :'name',
|
|
65
|
+
:'base_path' => :'base_path',
|
|
66
|
+
:'content_guard' => :'content_guard',
|
|
67
|
+
:'pulp_href' => :'pulp_href',
|
|
68
|
+
:'pulp_labels' => :'pulp_labels',
|
|
69
|
+
:'hidden' => :'hidden',
|
|
66
70
|
:'remote' => :'remote',
|
|
67
71
|
:'distributions' => :'distributions',
|
|
68
72
|
:'namespace' => :'namespace',
|
|
@@ -74,14 +78,15 @@ module PulpContainerClient
|
|
|
74
78
|
# Attribute type mapping.
|
|
75
79
|
def self.openapi_types
|
|
76
80
|
{
|
|
77
|
-
:'content_guard' => :'String',
|
|
78
|
-
:'hidden' => :'Boolean',
|
|
79
|
-
:'pulp_href' => :'String',
|
|
80
81
|
:'pulp_created' => :'DateTime',
|
|
81
|
-
:'
|
|
82
|
+
:'pulp_last_updated' => :'DateTime',
|
|
82
83
|
:'repository' => :'String',
|
|
83
|
-
:'base_path' => :'String',
|
|
84
84
|
:'name' => :'String',
|
|
85
|
+
:'base_path' => :'String',
|
|
86
|
+
:'content_guard' => :'String',
|
|
87
|
+
:'pulp_href' => :'String',
|
|
88
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
89
|
+
:'hidden' => :'Boolean',
|
|
85
90
|
:'remote' => :'String',
|
|
86
91
|
:'distributions' => :'Array<String>',
|
|
87
92
|
:'namespace' => :'String',
|
|
@@ -113,40 +118,44 @@ module PulpContainerClient
|
|
|
113
118
|
h[k.to_sym] = v
|
|
114
119
|
}
|
|
115
120
|
|
|
116
|
-
if attributes.key?(:'content_guard')
|
|
117
|
-
self.content_guard = attributes[:'content_guard']
|
|
118
|
-
end
|
|
119
|
-
|
|
120
|
-
if attributes.key?(:'hidden')
|
|
121
|
-
self.hidden = attributes[:'hidden']
|
|
122
|
-
else
|
|
123
|
-
self.hidden = false
|
|
124
|
-
end
|
|
125
|
-
|
|
126
|
-
if attributes.key?(:'pulp_href')
|
|
127
|
-
self.pulp_href = attributes[:'pulp_href']
|
|
128
|
-
end
|
|
129
|
-
|
|
130
121
|
if attributes.key?(:'pulp_created')
|
|
131
122
|
self.pulp_created = attributes[:'pulp_created']
|
|
132
123
|
end
|
|
133
124
|
|
|
134
|
-
if attributes.key?(:'
|
|
135
|
-
|
|
136
|
-
self.pulp_labels = value
|
|
137
|
-
end
|
|
125
|
+
if attributes.key?(:'pulp_last_updated')
|
|
126
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
138
127
|
end
|
|
139
128
|
|
|
140
129
|
if attributes.key?(:'repository')
|
|
141
130
|
self.repository = attributes[:'repository']
|
|
142
131
|
end
|
|
143
132
|
|
|
133
|
+
if attributes.key?(:'name')
|
|
134
|
+
self.name = attributes[:'name']
|
|
135
|
+
end
|
|
136
|
+
|
|
144
137
|
if attributes.key?(:'base_path')
|
|
145
138
|
self.base_path = attributes[:'base_path']
|
|
146
139
|
end
|
|
147
140
|
|
|
148
|
-
if attributes.key?(:'
|
|
149
|
-
self.
|
|
141
|
+
if attributes.key?(:'content_guard')
|
|
142
|
+
self.content_guard = attributes[:'content_guard']
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
if attributes.key?(:'pulp_href')
|
|
146
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
if attributes.key?(:'pulp_labels')
|
|
150
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
151
|
+
self.pulp_labels = value
|
|
152
|
+
end
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
if attributes.key?(:'hidden')
|
|
156
|
+
self.hidden = attributes[:'hidden']
|
|
157
|
+
else
|
|
158
|
+
self.hidden = false
|
|
150
159
|
end
|
|
151
160
|
|
|
152
161
|
if attributes.key?(:'remote')
|
|
@@ -176,14 +185,14 @@ module PulpContainerClient
|
|
|
176
185
|
# @return Array for valid properties with the reasons
|
|
177
186
|
def list_invalid_properties
|
|
178
187
|
invalid_properties = Array.new
|
|
179
|
-
if @base_path.nil?
|
|
180
|
-
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
|
181
|
-
end
|
|
182
|
-
|
|
183
188
|
if @name.nil?
|
|
184
189
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
185
190
|
end
|
|
186
191
|
|
|
192
|
+
if @base_path.nil?
|
|
193
|
+
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
|
194
|
+
end
|
|
195
|
+
|
|
187
196
|
if @remote.nil?
|
|
188
197
|
invalid_properties.push('invalid value for "remote", remote cannot be nil.')
|
|
189
198
|
end
|
|
@@ -194,8 +203,8 @@ module PulpContainerClient
|
|
|
194
203
|
# Check to see if the all the properties in the model are valid
|
|
195
204
|
# @return true if the model is valid
|
|
196
205
|
def valid?
|
|
197
|
-
return false if @base_path.nil?
|
|
198
206
|
return false if @name.nil?
|
|
207
|
+
return false if @base_path.nil?
|
|
199
208
|
return false if @remote.nil?
|
|
200
209
|
true
|
|
201
210
|
end
|
|
@@ -205,14 +214,15 @@ module PulpContainerClient
|
|
|
205
214
|
def ==(o)
|
|
206
215
|
return true if self.equal?(o)
|
|
207
216
|
self.class == o.class &&
|
|
208
|
-
content_guard == o.content_guard &&
|
|
209
|
-
hidden == o.hidden &&
|
|
210
|
-
pulp_href == o.pulp_href &&
|
|
211
217
|
pulp_created == o.pulp_created &&
|
|
212
|
-
|
|
218
|
+
pulp_last_updated == o.pulp_last_updated &&
|
|
213
219
|
repository == o.repository &&
|
|
214
|
-
base_path == o.base_path &&
|
|
215
220
|
name == o.name &&
|
|
221
|
+
base_path == o.base_path &&
|
|
222
|
+
content_guard == o.content_guard &&
|
|
223
|
+
pulp_href == o.pulp_href &&
|
|
224
|
+
pulp_labels == o.pulp_labels &&
|
|
225
|
+
hidden == o.hidden &&
|
|
216
226
|
remote == o.remote &&
|
|
217
227
|
distributions == o.distributions &&
|
|
218
228
|
namespace == o.namespace &&
|
|
@@ -229,7 +239,7 @@ module PulpContainerClient
|
|
|
229
239
|
# Calculates hash code according to all attributes.
|
|
230
240
|
# @return [Integer] Hash code
|
|
231
241
|
def hash
|
|
232
|
-
[
|
|
242
|
+
[pulp_created, pulp_last_updated, repository, name, base_path, content_guard, pulp_href, pulp_labels, hidden, remote, distributions, namespace, private, description].hash
|
|
233
243
|
end
|
|
234
244
|
|
|
235
245
|
# Builds the object from hash
|