pulp_container_client 2.19.4 → 2.19.5
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 +5 -5
- data/docs/ContainerContainerDistributionResponse.md +9 -9
- data/docs/ContainerContainerPullThroughDistribution.md +5 -5
- data/docs/ContainerContainerPullThroughDistributionResponse.md +9 -9
- data/docs/ContainerContainerPushRepository.md +4 -4
- data/docs/ContainerContainerPushRepositoryResponse.md +8 -8
- data/docs/PatchedcontainerContainerDistribution.md +5 -5
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +5 -5
- data/docs/PatchedcontainerContainerPushRepository.md +4 -4
- data/lib/pulp_container_client/models/container_container_distribution.rb +23 -23
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +41 -41
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +23 -23
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +41 -41
- data/lib/pulp_container_client/models/container_container_push_repository.rb +17 -17
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +40 -40
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +23 -23
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +23 -23
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +17 -17
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/models/container_container_distribution_response_spec.rb +8 -8
- data/spec/models/container_container_distribution_spec.rb +4 -4
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +8 -8
- data/spec/models/container_container_pull_through_distribution_spec.rb +4 -4
- data/spec/models/container_container_push_repository_response_spec.rb +7 -7
- data/spec/models/container_container_push_repository_spec.rb +2 -2
- 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 +2 -2
- metadata +60 -60
@@ -15,20 +15,20 @@ 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
|
-
|
21
18
|
attr_accessor :pulp_labels
|
22
19
|
|
20
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
21
|
+
attr_accessor :content_guard
|
22
|
+
|
23
23
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
24
24
|
attr_accessor :base_path
|
25
25
|
|
26
|
+
# Whether this distribution should be shown in the content app.
|
27
|
+
attr_accessor :hidden
|
28
|
+
|
26
29
|
# The latest RepositoryVersion for this Repository will be served.
|
27
30
|
attr_accessor :repository
|
28
31
|
|
29
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
30
|
-
attr_accessor :content_guard
|
31
|
-
|
32
32
|
# A unique name. Ex, `rawhide` and `stable`.
|
33
33
|
attr_accessor :name
|
34
34
|
|
@@ -47,11 +47,11 @@ module PulpContainerClient
|
|
47
47
|
# Attribute mapping from ruby-style variable name to JSON key.
|
48
48
|
def self.attribute_map
|
49
49
|
{
|
50
|
-
:'hidden' => :'hidden',
|
51
50
|
:'pulp_labels' => :'pulp_labels',
|
51
|
+
:'content_guard' => :'content_guard',
|
52
52
|
:'base_path' => :'base_path',
|
53
|
+
:'hidden' => :'hidden',
|
53
54
|
:'repository' => :'repository',
|
54
|
-
:'content_guard' => :'content_guard',
|
55
55
|
:'name' => :'name',
|
56
56
|
:'remote' => :'remote',
|
57
57
|
:'distributions' => :'distributions',
|
@@ -63,11 +63,11 @@ module PulpContainerClient
|
|
63
63
|
# Attribute type mapping.
|
64
64
|
def self.openapi_types
|
65
65
|
{
|
66
|
-
:'hidden' => :'Boolean',
|
67
66
|
:'pulp_labels' => :'Hash<String, String>',
|
67
|
+
:'content_guard' => :'String',
|
68
68
|
:'base_path' => :'String',
|
69
|
+
:'hidden' => :'Boolean',
|
69
70
|
:'repository' => :'String',
|
70
|
-
:'content_guard' => :'String',
|
71
71
|
:'name' => :'String',
|
72
72
|
:'remote' => :'String',
|
73
73
|
:'distributions' => :'Array<String>',
|
@@ -99,28 +99,28 @@ module PulpContainerClient
|
|
99
99
|
h[k.to_sym] = v
|
100
100
|
}
|
101
101
|
|
102
|
-
if attributes.key?(:'hidden')
|
103
|
-
self.hidden = attributes[:'hidden']
|
104
|
-
else
|
105
|
-
self.hidden = false
|
106
|
-
end
|
107
|
-
|
108
102
|
if attributes.key?(:'pulp_labels')
|
109
103
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
110
104
|
self.pulp_labels = value
|
111
105
|
end
|
112
106
|
end
|
113
107
|
|
108
|
+
if attributes.key?(:'content_guard')
|
109
|
+
self.content_guard = attributes[:'content_guard']
|
110
|
+
end
|
111
|
+
|
114
112
|
if attributes.key?(:'base_path')
|
115
113
|
self.base_path = attributes[:'base_path']
|
116
114
|
end
|
117
115
|
|
118
|
-
if attributes.key?(:'
|
119
|
-
self.
|
116
|
+
if attributes.key?(:'hidden')
|
117
|
+
self.hidden = attributes[:'hidden']
|
118
|
+
else
|
119
|
+
self.hidden = false
|
120
120
|
end
|
121
121
|
|
122
|
-
if attributes.key?(:'
|
123
|
-
self.
|
122
|
+
if attributes.key?(:'repository')
|
123
|
+
self.repository = attributes[:'repository']
|
124
124
|
end
|
125
125
|
|
126
126
|
if attributes.key?(:'name')
|
@@ -232,11 +232,11 @@ module PulpContainerClient
|
|
232
232
|
def ==(o)
|
233
233
|
return true if self.equal?(o)
|
234
234
|
self.class == o.class &&
|
235
|
-
hidden == o.hidden &&
|
236
235
|
pulp_labels == o.pulp_labels &&
|
236
|
+
content_guard == o.content_guard &&
|
237
237
|
base_path == o.base_path &&
|
238
|
+
hidden == o.hidden &&
|
238
239
|
repository == o.repository &&
|
239
|
-
content_guard == o.content_guard &&
|
240
240
|
name == o.name &&
|
241
241
|
remote == o.remote &&
|
242
242
|
distributions == o.distributions &&
|
@@ -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
|
+
[pulp_labels, content_guard, base_path, hidden, repository, name, 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,28 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for a specialized pull-through distribution referencing sub-distributions.
|
17
17
|
class ContainerContainerPullThroughDistributionResponse
|
18
|
+
# Timestamp of creation.
|
19
|
+
attr_accessor :pulp_created
|
20
|
+
|
18
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.
|
19
22
|
attr_accessor :pulp_last_updated
|
20
23
|
|
21
|
-
attr_accessor :
|
24
|
+
attr_accessor :pulp_labels
|
22
25
|
|
23
|
-
|
24
|
-
attr_accessor :hidden
|
26
|
+
attr_accessor :pulp_href
|
25
27
|
|
26
|
-
|
28
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
29
|
+
attr_accessor :content_guard
|
27
30
|
|
28
31
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
29
32
|
attr_accessor :base_path
|
30
33
|
|
34
|
+
# Whether this distribution should be shown in the content app.
|
35
|
+
attr_accessor :hidden
|
36
|
+
|
31
37
|
# The latest RepositoryVersion for this Repository will be served.
|
32
38
|
attr_accessor :repository
|
33
39
|
|
34
|
-
# Timestamp of creation.
|
35
|
-
attr_accessor :pulp_created
|
36
|
-
|
37
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
38
|
-
attr_accessor :content_guard
|
39
|
-
|
40
40
|
# A unique name. Ex, `rawhide` and `stable`.
|
41
41
|
attr_accessor :name
|
42
42
|
|
@@ -58,14 +58,14 @@ module PulpContainerClient
|
|
58
58
|
# Attribute mapping from ruby-style variable name to JSON key.
|
59
59
|
def self.attribute_map
|
60
60
|
{
|
61
|
+
:'pulp_created' => :'pulp_created',
|
61
62
|
:'pulp_last_updated' => :'pulp_last_updated',
|
62
|
-
:'pulp_href' => :'pulp_href',
|
63
|
-
:'hidden' => :'hidden',
|
64
63
|
:'pulp_labels' => :'pulp_labels',
|
64
|
+
:'pulp_href' => :'pulp_href',
|
65
|
+
:'content_guard' => :'content_guard',
|
65
66
|
:'base_path' => :'base_path',
|
67
|
+
:'hidden' => :'hidden',
|
66
68
|
:'repository' => :'repository',
|
67
|
-
:'pulp_created' => :'pulp_created',
|
68
|
-
:'content_guard' => :'content_guard',
|
69
69
|
:'name' => :'name',
|
70
70
|
:'remote' => :'remote',
|
71
71
|
:'distributions' => :'distributions',
|
@@ -78,14 +78,14 @@ module PulpContainerClient
|
|
78
78
|
# Attribute type mapping.
|
79
79
|
def self.openapi_types
|
80
80
|
{
|
81
|
+
:'pulp_created' => :'DateTime',
|
81
82
|
:'pulp_last_updated' => :'DateTime',
|
82
|
-
:'pulp_href' => :'String',
|
83
|
-
:'hidden' => :'Boolean',
|
84
83
|
:'pulp_labels' => :'Hash<String, String>',
|
84
|
+
:'pulp_href' => :'String',
|
85
|
+
:'content_guard' => :'String',
|
85
86
|
:'base_path' => :'String',
|
87
|
+
:'hidden' => :'Boolean',
|
86
88
|
:'repository' => :'String',
|
87
|
-
:'pulp_created' => :'DateTime',
|
88
|
-
:'content_guard' => :'String',
|
89
89
|
:'name' => :'String',
|
90
90
|
:'remote' => :'String',
|
91
91
|
:'distributions' => :'Array<String>',
|
@@ -118,18 +118,12 @@ module PulpContainerClient
|
|
118
118
|
h[k.to_sym] = v
|
119
119
|
}
|
120
120
|
|
121
|
-
if attributes.key?(:'
|
122
|
-
self.
|
123
|
-
end
|
124
|
-
|
125
|
-
if attributes.key?(:'pulp_href')
|
126
|
-
self.pulp_href = attributes[:'pulp_href']
|
121
|
+
if attributes.key?(:'pulp_created')
|
122
|
+
self.pulp_created = attributes[:'pulp_created']
|
127
123
|
end
|
128
124
|
|
129
|
-
if attributes.key?(:'
|
130
|
-
self.
|
131
|
-
else
|
132
|
-
self.hidden = false
|
125
|
+
if attributes.key?(:'pulp_last_updated')
|
126
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
133
127
|
end
|
134
128
|
|
135
129
|
if attributes.key?(:'pulp_labels')
|
@@ -138,20 +132,26 @@ module PulpContainerClient
|
|
138
132
|
end
|
139
133
|
end
|
140
134
|
|
141
|
-
if attributes.key?(:'
|
142
|
-
self.
|
135
|
+
if attributes.key?(:'pulp_href')
|
136
|
+
self.pulp_href = attributes[:'pulp_href']
|
143
137
|
end
|
144
138
|
|
145
|
-
if attributes.key?(:'
|
146
|
-
self.
|
139
|
+
if attributes.key?(:'content_guard')
|
140
|
+
self.content_guard = attributes[:'content_guard']
|
147
141
|
end
|
148
142
|
|
149
|
-
if attributes.key?(:'
|
150
|
-
self.
|
143
|
+
if attributes.key?(:'base_path')
|
144
|
+
self.base_path = attributes[:'base_path']
|
151
145
|
end
|
152
146
|
|
153
|
-
if attributes.key?(:'
|
154
|
-
self.
|
147
|
+
if attributes.key?(:'hidden')
|
148
|
+
self.hidden = attributes[:'hidden']
|
149
|
+
else
|
150
|
+
self.hidden = false
|
151
|
+
end
|
152
|
+
|
153
|
+
if attributes.key?(:'repository')
|
154
|
+
self.repository = attributes[:'repository']
|
155
155
|
end
|
156
156
|
|
157
157
|
if attributes.key?(:'name')
|
@@ -214,14 +214,14 @@ module PulpContainerClient
|
|
214
214
|
def ==(o)
|
215
215
|
return true if self.equal?(o)
|
216
216
|
self.class == o.class &&
|
217
|
+
pulp_created == o.pulp_created &&
|
217
218
|
pulp_last_updated == o.pulp_last_updated &&
|
218
|
-
pulp_href == o.pulp_href &&
|
219
|
-
hidden == o.hidden &&
|
220
219
|
pulp_labels == o.pulp_labels &&
|
220
|
+
pulp_href == o.pulp_href &&
|
221
|
+
content_guard == o.content_guard &&
|
221
222
|
base_path == o.base_path &&
|
223
|
+
hidden == o.hidden &&
|
222
224
|
repository == o.repository &&
|
223
|
-
pulp_created == o.pulp_created &&
|
224
|
-
content_guard == o.content_guard &&
|
225
225
|
name == o.name &&
|
226
226
|
remote == o.remote &&
|
227
227
|
distributions == o.distributions &&
|
@@ -239,7 +239,7 @@ module PulpContainerClient
|
|
239
239
|
# Calculates hash code according to all attributes.
|
240
240
|
# @return [Integer] Hash code
|
241
241
|
def hash
|
242
|
-
[pulp_last_updated,
|
242
|
+
[pulp_created, pulp_last_updated, pulp_labels, pulp_href, content_guard, base_path, hidden, repository, name, remote, distributions, namespace, private, description].hash
|
243
243
|
end
|
244
244
|
|
245
245
|
# Builds the object from hash
|
@@ -18,13 +18,13 @@ module PulpContainerClient
|
|
18
18
|
# Retain X versions of the repository. Default is null which retains all versions.
|
19
19
|
attr_accessor :retain_repo_versions
|
20
20
|
|
21
|
-
|
22
|
-
attr_accessor :description
|
21
|
+
attr_accessor :pulp_labels
|
23
22
|
|
24
23
|
# A reference to an associated signing service.
|
25
24
|
attr_accessor :manifest_signing_service
|
26
25
|
|
27
|
-
|
26
|
+
# An optional description.
|
27
|
+
attr_accessor :description
|
28
28
|
|
29
29
|
# A unique name for this repository.
|
30
30
|
attr_accessor :name
|
@@ -33,9 +33,9 @@ module PulpContainerClient
|
|
33
33
|
def self.attribute_map
|
34
34
|
{
|
35
35
|
:'retain_repo_versions' => :'retain_repo_versions',
|
36
|
-
:'description' => :'description',
|
37
|
-
:'manifest_signing_service' => :'manifest_signing_service',
|
38
36
|
:'pulp_labels' => :'pulp_labels',
|
37
|
+
:'manifest_signing_service' => :'manifest_signing_service',
|
38
|
+
:'description' => :'description',
|
39
39
|
:'name' => :'name'
|
40
40
|
}
|
41
41
|
end
|
@@ -44,9 +44,9 @@ module PulpContainerClient
|
|
44
44
|
def self.openapi_types
|
45
45
|
{
|
46
46
|
:'retain_repo_versions' => :'Integer',
|
47
|
-
:'description' => :'String',
|
48
|
-
:'manifest_signing_service' => :'String',
|
49
47
|
:'pulp_labels' => :'Hash<String, String>',
|
48
|
+
:'manifest_signing_service' => :'String',
|
49
|
+
:'description' => :'String',
|
50
50
|
:'name' => :'String'
|
51
51
|
}
|
52
52
|
end
|
@@ -55,8 +55,8 @@ module PulpContainerClient
|
|
55
55
|
def self.openapi_nullable
|
56
56
|
Set.new([
|
57
57
|
:'retain_repo_versions',
|
58
|
-
:'description',
|
59
58
|
:'manifest_signing_service',
|
59
|
+
:'description',
|
60
60
|
])
|
61
61
|
end
|
62
62
|
|
@@ -79,18 +79,18 @@ module PulpContainerClient
|
|
79
79
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
80
80
|
end
|
81
81
|
|
82
|
-
if attributes.key?(:'
|
83
|
-
|
82
|
+
if attributes.key?(:'pulp_labels')
|
83
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
84
|
+
self.pulp_labels = value
|
85
|
+
end
|
84
86
|
end
|
85
87
|
|
86
88
|
if attributes.key?(:'manifest_signing_service')
|
87
89
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
88
90
|
end
|
89
91
|
|
90
|
-
if attributes.key?(:'
|
91
|
-
|
92
|
-
self.pulp_labels = value
|
93
|
-
end
|
92
|
+
if attributes.key?(:'description')
|
93
|
+
self.description = attributes[:'description']
|
94
94
|
end
|
95
95
|
|
96
96
|
if attributes.key?(:'name')
|
@@ -171,9 +171,9 @@ module PulpContainerClient
|
|
171
171
|
return true if self.equal?(o)
|
172
172
|
self.class == o.class &&
|
173
173
|
retain_repo_versions == o.retain_repo_versions &&
|
174
|
-
description == o.description &&
|
175
|
-
manifest_signing_service == o.manifest_signing_service &&
|
176
174
|
pulp_labels == o.pulp_labels &&
|
175
|
+
manifest_signing_service == o.manifest_signing_service &&
|
176
|
+
description == o.description &&
|
177
177
|
name == o.name
|
178
178
|
end
|
179
179
|
|
@@ -186,7 +186,7 @@ module PulpContainerClient
|
|
186
186
|
# Calculates hash code according to all attributes.
|
187
187
|
# @return [Integer] Hash code
|
188
188
|
def hash
|
189
|
-
[retain_repo_versions,
|
189
|
+
[retain_repo_versions, pulp_labels, manifest_signing_service, description, name].hash
|
190
190
|
end
|
191
191
|
|
192
192
|
# Builds the object from hash
|
@@ -18,25 +18,25 @@ module PulpContainerClient
|
|
18
18
|
# Retain X versions of the repository. Default is null which retains all versions.
|
19
19
|
attr_accessor :retain_repo_versions
|
20
20
|
|
21
|
+
# Timestamp of creation.
|
22
|
+
attr_accessor :pulp_created
|
23
|
+
|
21
24
|
# Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
|
22
25
|
attr_accessor :pulp_last_updated
|
23
26
|
|
24
|
-
# An optional description.
|
25
|
-
attr_accessor :description
|
26
|
-
|
27
|
-
# A reference to an associated signing service.
|
28
|
-
attr_accessor :manifest_signing_service
|
29
|
-
|
30
27
|
attr_accessor :versions_href
|
31
28
|
|
29
|
+
attr_accessor :pulp_labels
|
30
|
+
|
32
31
|
attr_accessor :pulp_href
|
33
32
|
|
34
|
-
|
33
|
+
# A reference to an associated signing service.
|
34
|
+
attr_accessor :manifest_signing_service
|
35
35
|
|
36
|
-
attr_accessor :
|
36
|
+
attr_accessor :latest_version_href
|
37
37
|
|
38
|
-
#
|
39
|
-
attr_accessor :
|
38
|
+
# An optional description.
|
39
|
+
attr_accessor :description
|
40
40
|
|
41
41
|
# A unique name for this repository.
|
42
42
|
attr_accessor :name
|
@@ -45,14 +45,14 @@ module PulpContainerClient
|
|
45
45
|
def self.attribute_map
|
46
46
|
{
|
47
47
|
:'retain_repo_versions' => :'retain_repo_versions',
|
48
|
+
:'pulp_created' => :'pulp_created',
|
48
49
|
:'pulp_last_updated' => :'pulp_last_updated',
|
49
|
-
:'description' => :'description',
|
50
|
-
:'manifest_signing_service' => :'manifest_signing_service',
|
51
50
|
:'versions_href' => :'versions_href',
|
51
|
+
:'pulp_labels' => :'pulp_labels',
|
52
52
|
:'pulp_href' => :'pulp_href',
|
53
|
+
:'manifest_signing_service' => :'manifest_signing_service',
|
53
54
|
:'latest_version_href' => :'latest_version_href',
|
54
|
-
:'
|
55
|
-
:'pulp_created' => :'pulp_created',
|
55
|
+
:'description' => :'description',
|
56
56
|
:'name' => :'name'
|
57
57
|
}
|
58
58
|
end
|
@@ -61,14 +61,14 @@ module PulpContainerClient
|
|
61
61
|
def self.openapi_types
|
62
62
|
{
|
63
63
|
:'retain_repo_versions' => :'Integer',
|
64
|
+
:'pulp_created' => :'DateTime',
|
64
65
|
:'pulp_last_updated' => :'DateTime',
|
65
|
-
:'description' => :'String',
|
66
|
-
:'manifest_signing_service' => :'String',
|
67
66
|
:'versions_href' => :'String',
|
67
|
+
:'pulp_labels' => :'Hash<String, String>',
|
68
68
|
:'pulp_href' => :'String',
|
69
|
+
:'manifest_signing_service' => :'String',
|
69
70
|
:'latest_version_href' => :'String',
|
70
|
-
:'
|
71
|
-
:'pulp_created' => :'DateTime',
|
71
|
+
:'description' => :'String',
|
72
72
|
:'name' => :'String'
|
73
73
|
}
|
74
74
|
end
|
@@ -77,8 +77,8 @@ module PulpContainerClient
|
|
77
77
|
def self.openapi_nullable
|
78
78
|
Set.new([
|
79
79
|
:'retain_repo_versions',
|
80
|
-
:'description',
|
81
80
|
:'manifest_signing_service',
|
81
|
+
:'description',
|
82
82
|
])
|
83
83
|
end
|
84
84
|
|
@@ -101,38 +101,38 @@ module PulpContainerClient
|
|
101
101
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
102
102
|
end
|
103
103
|
|
104
|
-
if attributes.key?(:'
|
105
|
-
self.
|
106
|
-
end
|
107
|
-
|
108
|
-
if attributes.key?(:'description')
|
109
|
-
self.description = attributes[:'description']
|
104
|
+
if attributes.key?(:'pulp_created')
|
105
|
+
self.pulp_created = attributes[:'pulp_created']
|
110
106
|
end
|
111
107
|
|
112
|
-
if attributes.key?(:'
|
113
|
-
self.
|
108
|
+
if attributes.key?(:'pulp_last_updated')
|
109
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
114
110
|
end
|
115
111
|
|
116
112
|
if attributes.key?(:'versions_href')
|
117
113
|
self.versions_href = attributes[:'versions_href']
|
118
114
|
end
|
119
115
|
|
116
|
+
if attributes.key?(:'pulp_labels')
|
117
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
118
|
+
self.pulp_labels = value
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
120
122
|
if attributes.key?(:'pulp_href')
|
121
123
|
self.pulp_href = attributes[:'pulp_href']
|
122
124
|
end
|
123
125
|
|
124
|
-
if attributes.key?(:'
|
125
|
-
self.
|
126
|
+
if attributes.key?(:'manifest_signing_service')
|
127
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
126
128
|
end
|
127
129
|
|
128
|
-
if attributes.key?(:'
|
129
|
-
|
130
|
-
self.pulp_labels = value
|
131
|
-
end
|
130
|
+
if attributes.key?(:'latest_version_href')
|
131
|
+
self.latest_version_href = attributes[:'latest_version_href']
|
132
132
|
end
|
133
133
|
|
134
|
-
if attributes.key?(:'
|
135
|
-
self.
|
134
|
+
if attributes.key?(:'description')
|
135
|
+
self.description = attributes[:'description']
|
136
136
|
end
|
137
137
|
|
138
138
|
if attributes.key?(:'name')
|
@@ -179,14 +179,14 @@ module PulpContainerClient
|
|
179
179
|
return true if self.equal?(o)
|
180
180
|
self.class == o.class &&
|
181
181
|
retain_repo_versions == o.retain_repo_versions &&
|
182
|
+
pulp_created == o.pulp_created &&
|
182
183
|
pulp_last_updated == o.pulp_last_updated &&
|
183
|
-
description == o.description &&
|
184
|
-
manifest_signing_service == o.manifest_signing_service &&
|
185
184
|
versions_href == o.versions_href &&
|
185
|
+
pulp_labels == o.pulp_labels &&
|
186
186
|
pulp_href == o.pulp_href &&
|
187
|
+
manifest_signing_service == o.manifest_signing_service &&
|
187
188
|
latest_version_href == o.latest_version_href &&
|
188
|
-
|
189
|
-
pulp_created == o.pulp_created &&
|
189
|
+
description == o.description &&
|
190
190
|
name == o.name
|
191
191
|
end
|
192
192
|
|
@@ -199,7 +199,7 @@ module PulpContainerClient
|
|
199
199
|
# Calculates hash code according to all attributes.
|
200
200
|
# @return [Integer] Hash code
|
201
201
|
def hash
|
202
|
-
[retain_repo_versions,
|
202
|
+
[retain_repo_versions, pulp_created, pulp_last_updated, versions_href, pulp_labels, pulp_href, manifest_signing_service, latest_version_href, description, name].hash
|
203
203
|
end
|
204
204
|
|
205
205
|
# Builds the object from hash
|
@@ -15,20 +15,20 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class PatchedcontainerContainerDistribution
|
18
|
-
# Whether this distribution should be shown in the content app.
|
19
|
-
attr_accessor :hidden
|
20
|
-
|
21
18
|
attr_accessor :pulp_labels
|
22
19
|
|
20
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
21
|
+
attr_accessor :content_guard
|
22
|
+
|
23
23
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
24
24
|
attr_accessor :base_path
|
25
25
|
|
26
|
+
# Whether this distribution should be shown in the content app.
|
27
|
+
attr_accessor :hidden
|
28
|
+
|
26
29
|
# The latest RepositoryVersion for this Repository will be served.
|
27
30
|
attr_accessor :repository
|
28
31
|
|
29
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
30
|
-
attr_accessor :content_guard
|
31
|
-
|
32
32
|
# A unique name. Ex, `rawhide` and `stable`.
|
33
33
|
attr_accessor :name
|
34
34
|
|
@@ -44,11 +44,11 @@ module PulpContainerClient
|
|
44
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
45
45
|
def self.attribute_map
|
46
46
|
{
|
47
|
-
:'hidden' => :'hidden',
|
48
47
|
:'pulp_labels' => :'pulp_labels',
|
48
|
+
:'content_guard' => :'content_guard',
|
49
49
|
:'base_path' => :'base_path',
|
50
|
+
:'hidden' => :'hidden',
|
50
51
|
:'repository' => :'repository',
|
51
|
-
:'content_guard' => :'content_guard',
|
52
52
|
:'name' => :'name',
|
53
53
|
:'repository_version' => :'repository_version',
|
54
54
|
:'private' => :'private',
|
@@ -59,11 +59,11 @@ module PulpContainerClient
|
|
59
59
|
# Attribute type mapping.
|
60
60
|
def self.openapi_types
|
61
61
|
{
|
62
|
-
:'hidden' => :'Boolean',
|
63
62
|
:'pulp_labels' => :'Hash<String, String>',
|
63
|
+
:'content_guard' => :'String',
|
64
64
|
:'base_path' => :'String',
|
65
|
+
:'hidden' => :'Boolean',
|
65
66
|
:'repository' => :'String',
|
66
|
-
:'content_guard' => :'String',
|
67
67
|
:'name' => :'String',
|
68
68
|
:'repository_version' => :'String',
|
69
69
|
:'private' => :'Boolean',
|
@@ -95,28 +95,28 @@ module PulpContainerClient
|
|
95
95
|
h[k.to_sym] = v
|
96
96
|
}
|
97
97
|
|
98
|
-
if attributes.key?(:'hidden')
|
99
|
-
self.hidden = attributes[:'hidden']
|
100
|
-
else
|
101
|
-
self.hidden = false
|
102
|
-
end
|
103
|
-
|
104
98
|
if attributes.key?(:'pulp_labels')
|
105
99
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
106
100
|
self.pulp_labels = value
|
107
101
|
end
|
108
102
|
end
|
109
103
|
|
104
|
+
if attributes.key?(:'content_guard')
|
105
|
+
self.content_guard = attributes[:'content_guard']
|
106
|
+
end
|
107
|
+
|
110
108
|
if attributes.key?(:'base_path')
|
111
109
|
self.base_path = attributes[:'base_path']
|
112
110
|
end
|
113
111
|
|
114
|
-
if attributes.key?(:'
|
115
|
-
self.
|
112
|
+
if attributes.key?(:'hidden')
|
113
|
+
self.hidden = attributes[:'hidden']
|
114
|
+
else
|
115
|
+
self.hidden = false
|
116
116
|
end
|
117
117
|
|
118
|
-
if attributes.key?(:'
|
119
|
-
self.
|
118
|
+
if attributes.key?(:'repository')
|
119
|
+
self.repository = attributes[:'repository']
|
120
120
|
end
|
121
121
|
|
122
122
|
if attributes.key?(:'name')
|
@@ -199,11 +199,11 @@ module PulpContainerClient
|
|
199
199
|
def ==(o)
|
200
200
|
return true if self.equal?(o)
|
201
201
|
self.class == o.class &&
|
202
|
-
hidden == o.hidden &&
|
203
202
|
pulp_labels == o.pulp_labels &&
|
203
|
+
content_guard == o.content_guard &&
|
204
204
|
base_path == o.base_path &&
|
205
|
+
hidden == o.hidden &&
|
205
206
|
repository == o.repository &&
|
206
|
-
content_guard == o.content_guard &&
|
207
207
|
name == o.name &&
|
208
208
|
repository_version == o.repository_version &&
|
209
209
|
private == o.private &&
|
@@ -219,7 +219,7 @@ module PulpContainerClient
|
|
219
219
|
# Calculates hash code according to all attributes.
|
220
220
|
# @return [Integer] Hash code
|
221
221
|
def hash
|
222
|
-
[
|
222
|
+
[pulp_labels, content_guard, base_path, hidden, repository, name, repository_version, private, description].hash
|
223
223
|
end
|
224
224
|
|
225
225
|
# Builds the object from hash
|