pulp_container_client 2.20.0 → 2.20.2
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 +5 -5
- data/docs/ContainerContainerDistributionResponse.md +9 -7
- data/docs/ContainerContainerNamespaceResponse.md +2 -0
- data/docs/ContainerContainerPullThroughDistribution.md +5 -5
- data/docs/ContainerContainerPullThroughDistributionResponse.md +9 -7
- data/docs/ContainerContainerPullThroughRemoteResponse.md +2 -2
- data/docs/ContainerContainerPullThroughRemoteResponseHiddenFields.md +2 -2
- data/docs/ContainerContainerPushRepository.md +7 -7
- data/docs/ContainerContainerPushRepositoryResponse.md +14 -12
- 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 +5 -5
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +5 -5
- data/docs/PatchedcontainerContainerPushRepository.md +7 -7
- 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 +44 -44
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +43 -33
- 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 +44 -44
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +43 -33
- 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 +45 -45
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +64 -54
- 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 +35 -35
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +35 -35
- 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 +45 -45
- 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 +11 -5
- 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 +11 -5
- 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 +73 -81
- 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,28 +15,31 @@ 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
18
|
# Whether this distribution should be shown in the content app.
|
22
19
|
attr_accessor :hidden
|
23
20
|
|
21
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
22
|
+
attr_accessor :content_guard
|
23
|
+
|
24
24
|
attr_accessor :pulp_href
|
25
25
|
|
26
|
-
#
|
27
|
-
attr_accessor :
|
26
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
27
|
+
attr_accessor :name
|
28
28
|
|
29
29
|
attr_accessor :pulp_labels
|
30
30
|
|
31
31
|
# The latest RepositoryVersion for this Repository will be served.
|
32
32
|
attr_accessor :repository
|
33
33
|
|
34
|
+
# 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.
|
35
|
+
attr_accessor :pulp_last_updated
|
36
|
+
|
37
|
+
# Timestamp of creation.
|
38
|
+
attr_accessor :pulp_created
|
39
|
+
|
34
40
|
# 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
41
|
attr_accessor :base_path
|
36
42
|
|
37
|
-
# A unique name. Ex, `rawhide` and `stable`.
|
38
|
-
attr_accessor :name
|
39
|
-
|
40
43
|
# RepositoryVersion to be served
|
41
44
|
attr_accessor :repository_version
|
42
45
|
|
@@ -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
64
|
:'hidden' => :'hidden',
|
65
|
+
:'content_guard' => :'content_guard',
|
63
66
|
:'pulp_href' => :'pulp_href',
|
64
|
-
:'
|
67
|
+
:'name' => :'name',
|
65
68
|
:'pulp_labels' => :'pulp_labels',
|
66
69
|
:'repository' => :'repository',
|
70
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
71
|
+
:'pulp_created' => :'pulp_created',
|
67
72
|
:'base_path' => :'base_path',
|
68
|
-
:'name' => :'name',
|
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
85
|
:'hidden' => :'Boolean',
|
86
|
+
:'content_guard' => :'String',
|
83
87
|
:'pulp_href' => :'String',
|
84
|
-
:'
|
88
|
+
:'name' => :'String',
|
85
89
|
:'pulp_labels' => :'Hash<String, String>',
|
86
90
|
:'repository' => :'String',
|
91
|
+
:'pulp_last_updated' => :'DateTime',
|
92
|
+
:'pulp_created' => :'DateTime',
|
87
93
|
:'base_path' => :'String',
|
88
|
-
:'name' => :'String',
|
89
94
|
:'repository_version' => :'String',
|
90
95
|
:'registry_path' => :'String',
|
91
96
|
:'remote' => :'String',
|
@@ -119,22 +124,22 @@ 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
127
|
if attributes.key?(:'hidden')
|
127
128
|
self.hidden = attributes[:'hidden']
|
128
129
|
else
|
129
130
|
self.hidden = false
|
130
131
|
end
|
131
132
|
|
133
|
+
if attributes.key?(:'content_guard')
|
134
|
+
self.content_guard = attributes[:'content_guard']
|
135
|
+
end
|
136
|
+
|
132
137
|
if attributes.key?(:'pulp_href')
|
133
138
|
self.pulp_href = attributes[:'pulp_href']
|
134
139
|
end
|
135
140
|
|
136
|
-
if attributes.key?(:'
|
137
|
-
self.
|
141
|
+
if attributes.key?(:'name')
|
142
|
+
self.name = attributes[:'name']
|
138
143
|
end
|
139
144
|
|
140
145
|
if attributes.key?(:'pulp_labels')
|
@@ -147,12 +152,16 @@ module PulpContainerClient
|
|
147
152
|
self.repository = attributes[:'repository']
|
148
153
|
end
|
149
154
|
|
150
|
-
if attributes.key?(:'
|
151
|
-
self.
|
155
|
+
if attributes.key?(:'pulp_last_updated')
|
156
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
152
157
|
end
|
153
158
|
|
154
|
-
if attributes.key?(:'
|
155
|
-
self.
|
159
|
+
if attributes.key?(:'pulp_created')
|
160
|
+
self.pulp_created = attributes[:'pulp_created']
|
161
|
+
end
|
162
|
+
|
163
|
+
if attributes.key?(:'base_path')
|
164
|
+
self.base_path = attributes[:'base_path']
|
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
220
|
hidden == o.hidden &&
|
221
|
+
content_guard == o.content_guard &&
|
213
222
|
pulp_href == o.pulp_href &&
|
214
|
-
|
223
|
+
name == o.name &&
|
215
224
|
pulp_labels == o.pulp_labels &&
|
216
225
|
repository == o.repository &&
|
226
|
+
pulp_last_updated == o.pulp_last_updated &&
|
227
|
+
pulp_created == o.pulp_created &&
|
217
228
|
base_path == o.base_path &&
|
218
|
-
name == o.name &&
|
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
|
+
[hidden, content_guard, pulp_href, name, pulp_labels, repository, pulp_last_updated, pulp_created, base_path, 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,11 +15,14 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for a specialized pull-through distribution referencing sub-distributions.
|
17
17
|
class ContainerContainerPullThroughDistribution
|
18
|
+
# Whether this distribution should be shown in the content app.
|
19
|
+
attr_accessor :hidden
|
20
|
+
|
18
21
|
# An optional content-guard. If none is specified, a default one will be used.
|
19
22
|
attr_accessor :content_guard
|
20
23
|
|
21
|
-
#
|
22
|
-
attr_accessor :
|
24
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
25
|
+
attr_accessor :name
|
23
26
|
|
24
27
|
attr_accessor :pulp_labels
|
25
28
|
|
@@ -29,9 +32,6 @@ module PulpContainerClient
|
|
29
32
|
# 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
33
|
attr_accessor :base_path
|
31
34
|
|
32
|
-
# A unique name. Ex, `rawhide` and `stable`.
|
33
|
-
attr_accessor :name
|
34
|
-
|
35
35
|
# Remote that can be used to fetch content when using pull-through caching.
|
36
36
|
attr_accessor :remote
|
37
37
|
|
@@ -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
50
|
:'hidden' => :'hidden',
|
51
|
+
:'content_guard' => :'content_guard',
|
52
|
+
:'name' => :'name',
|
52
53
|
:'pulp_labels' => :'pulp_labels',
|
53
54
|
:'repository' => :'repository',
|
54
55
|
:'base_path' => :'base_path',
|
55
|
-
:'name' => :'name',
|
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
66
|
:'hidden' => :'Boolean',
|
67
|
+
:'content_guard' => :'String',
|
68
|
+
:'name' => :'String',
|
68
69
|
:'pulp_labels' => :'Hash<String, String>',
|
69
70
|
:'repository' => :'String',
|
70
71
|
:'base_path' => :'String',
|
71
|
-
:'name' => :'String',
|
72
72
|
:'remote' => :'String',
|
73
73
|
:'distributions' => :'Array<String>',
|
74
74
|
:'private' => :'Boolean',
|
@@ -99,16 +99,20 @@ module PulpContainerClient
|
|
99
99
|
h[k.to_sym] = v
|
100
100
|
}
|
101
101
|
|
102
|
-
if attributes.key?(:'content_guard')
|
103
|
-
self.content_guard = attributes[:'content_guard']
|
104
|
-
end
|
105
|
-
|
106
102
|
if attributes.key?(:'hidden')
|
107
103
|
self.hidden = attributes[:'hidden']
|
108
104
|
else
|
109
105
|
self.hidden = false
|
110
106
|
end
|
111
107
|
|
108
|
+
if attributes.key?(:'content_guard')
|
109
|
+
self.content_guard = attributes[:'content_guard']
|
110
|
+
end
|
111
|
+
|
112
|
+
if attributes.key?(:'name')
|
113
|
+
self.name = attributes[:'name']
|
114
|
+
end
|
115
|
+
|
112
116
|
if attributes.key?(:'pulp_labels')
|
113
117
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
114
118
|
self.pulp_labels = value
|
@@ -123,10 +127,6 @@ module PulpContainerClient
|
|
123
127
|
self.base_path = attributes[:'base_path']
|
124
128
|
end
|
125
129
|
|
126
|
-
if attributes.key?(:'name')
|
127
|
-
self.name = attributes[:'name']
|
128
|
-
end
|
129
|
-
|
130
130
|
if attributes.key?(:'remote')
|
131
131
|
self.remote = attributes[:'remote']
|
132
132
|
end
|
@@ -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
235
|
hidden == o.hidden &&
|
236
|
+
content_guard == o.content_guard &&
|
237
|
+
name == o.name &&
|
237
238
|
pulp_labels == o.pulp_labels &&
|
238
239
|
repository == o.repository &&
|
239
240
|
base_path == o.base_path &&
|
240
|
-
name == o.name &&
|
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
|
-
[content_guard,
|
256
|
+
[hidden, content_guard, name, pulp_labels, repository, base_path, 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,28 +15,31 @@ 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
18
|
# Whether this distribution should be shown in the content app.
|
22
19
|
attr_accessor :hidden
|
23
20
|
|
21
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
22
|
+
attr_accessor :content_guard
|
23
|
+
|
24
24
|
attr_accessor :pulp_href
|
25
25
|
|
26
|
-
#
|
27
|
-
attr_accessor :
|
26
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
27
|
+
attr_accessor :name
|
28
28
|
|
29
29
|
attr_accessor :pulp_labels
|
30
30
|
|
31
31
|
# The latest RepositoryVersion for this Repository will be served.
|
32
32
|
attr_accessor :repository
|
33
33
|
|
34
|
+
# 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.
|
35
|
+
attr_accessor :pulp_last_updated
|
36
|
+
|
37
|
+
# Timestamp of creation.
|
38
|
+
attr_accessor :pulp_created
|
39
|
+
|
34
40
|
# 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
41
|
attr_accessor :base_path
|
36
42
|
|
37
|
-
# A unique name. Ex, `rawhide` and `stable`.
|
38
|
-
attr_accessor :name
|
39
|
-
|
40
43
|
# Remote that can be used to fetch content when using pull-through caching.
|
41
44
|
attr_accessor :remote
|
42
45
|
|
@@ -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
61
|
:'hidden' => :'hidden',
|
62
|
+
:'content_guard' => :'content_guard',
|
60
63
|
:'pulp_href' => :'pulp_href',
|
61
|
-
:'
|
64
|
+
:'name' => :'name',
|
62
65
|
:'pulp_labels' => :'pulp_labels',
|
63
66
|
:'repository' => :'repository',
|
67
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
68
|
+
:'pulp_created' => :'pulp_created',
|
64
69
|
:'base_path' => :'base_path',
|
65
|
-
:'name' => :'name',
|
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
81
|
:'hidden' => :'Boolean',
|
82
|
+
:'content_guard' => :'String',
|
79
83
|
:'pulp_href' => :'String',
|
80
|
-
:'
|
84
|
+
:'name' => :'String',
|
81
85
|
:'pulp_labels' => :'Hash<String, String>',
|
82
86
|
:'repository' => :'String',
|
87
|
+
:'pulp_last_updated' => :'DateTime',
|
88
|
+
:'pulp_created' => :'DateTime',
|
83
89
|
:'base_path' => :'String',
|
84
|
-
:'name' => :'String',
|
85
90
|
:'remote' => :'String',
|
86
91
|
:'distributions' => :'Array<String>',
|
87
92
|
:'namespace' => :'String',
|
@@ -113,22 +118,22 @@ 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
121
|
if attributes.key?(:'hidden')
|
121
122
|
self.hidden = attributes[:'hidden']
|
122
123
|
else
|
123
124
|
self.hidden = false
|
124
125
|
end
|
125
126
|
|
127
|
+
if attributes.key?(:'content_guard')
|
128
|
+
self.content_guard = attributes[:'content_guard']
|
129
|
+
end
|
130
|
+
|
126
131
|
if attributes.key?(:'pulp_href')
|
127
132
|
self.pulp_href = attributes[:'pulp_href']
|
128
133
|
end
|
129
134
|
|
130
|
-
if attributes.key?(:'
|
131
|
-
self.
|
135
|
+
if attributes.key?(:'name')
|
136
|
+
self.name = attributes[:'name']
|
132
137
|
end
|
133
138
|
|
134
139
|
if attributes.key?(:'pulp_labels')
|
@@ -141,12 +146,16 @@ module PulpContainerClient
|
|
141
146
|
self.repository = attributes[:'repository']
|
142
147
|
end
|
143
148
|
|
144
|
-
if attributes.key?(:'
|
145
|
-
self.
|
149
|
+
if attributes.key?(:'pulp_last_updated')
|
150
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
146
151
|
end
|
147
152
|
|
148
|
-
if attributes.key?(:'
|
149
|
-
self.
|
153
|
+
if attributes.key?(:'pulp_created')
|
154
|
+
self.pulp_created = attributes[:'pulp_created']
|
155
|
+
end
|
156
|
+
|
157
|
+
if attributes.key?(:'base_path')
|
158
|
+
self.base_path = attributes[:'base_path']
|
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
217
|
hidden == o.hidden &&
|
218
|
+
content_guard == o.content_guard &&
|
210
219
|
pulp_href == o.pulp_href &&
|
211
|
-
|
220
|
+
name == o.name &&
|
212
221
|
pulp_labels == o.pulp_labels &&
|
213
222
|
repository == o.repository &&
|
223
|
+
pulp_last_updated == o.pulp_last_updated &&
|
224
|
+
pulp_created == o.pulp_created &&
|
214
225
|
base_path == o.base_path &&
|
215
|
-
name == o.name &&
|
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
|
+
[hidden, content_guard, pulp_href, name, pulp_labels, repository, pulp_last_updated, pulp_created, base_path, remote, distributions, namespace, private, description].hash
|
233
243
|
end
|
234
244
|
|
235
245
|
# Builds the object from hash
|