pulp_container_client 2.15.1 → 2.15.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 +36 -25
- data/docs/ContainerContainerDistribution.md +7 -7
- data/docs/ContainerContainerDistributionResponse.md +9 -9
- data/docs/ContainerContainerPushRepository.md +7 -7
- data/docs/ContainerContainerPushRepositoryResponse.md +13 -13
- data/docs/ContentBlobsApi.md +3 -1
- data/docs/ContentManifestsApi.md +5 -3
- data/docs/ContentSignaturesApi.md +11 -1
- data/docs/ContentTagsApi.md +5 -3
- data/docs/DistributionsContainerApi.md +136 -10
- data/docs/PatchedcontainerContainerDistribution.md +7 -7
- data/docs/PatchedcontainerContainerPushRepository.md +7 -7
- data/docs/PulpContainerNamespacesApi.md +23 -9
- data/docs/RemotesContainerApi.md +135 -9
- data/docs/RepositoriesContainerApi.md +136 -10
- data/docs/RepositoriesContainerPushApi.md +24 -10
- data/docs/RepositoriesContainerPushVersionsApi.md +3 -1
- data/docs/RepositoriesContainerVersionsApi.md +3 -1
- data/docs/SetLabel.md +19 -0
- data/docs/SetLabelResponse.md +19 -0
- data/docs/TokenApi.md +1 -1
- data/docs/UnsetLabel.md +17 -0
- data/docs/UnsetLabelResponse.md +19 -0
- data/lib/pulp_container_client/api/content_blobs_api.rb +3 -0
- data/lib/pulp_container_client/api/content_manifests_api.rb +5 -2
- data/lib/pulp_container_client/api/content_signatures_api.rb +15 -0
- data/lib/pulp_container_client/api/content_tags_api.rb +5 -2
- data/lib/pulp_container_client/api/distributions_container_api.rb +163 -0
- data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +23 -0
- data/lib/pulp_container_client/api/remotes_container_api.rb +163 -0
- data/lib/pulp_container_client/api/repositories_container_api.rb +163 -0
- data/lib/pulp_container_client/api/repositories_container_push_api.rb +23 -0
- data/lib/pulp_container_client/api/repositories_container_push_versions_api.rb +3 -0
- data/lib/pulp_container_client/api/repositories_container_versions_api.rb +3 -0
- data/lib/pulp_container_client/configuration.rb +2 -2
- data/lib/pulp_container_client/models/container_container_distribution.rb +27 -27
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +39 -39
- 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 +52 -52
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +27 -27
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +45 -45
- data/lib/pulp_container_client/models/set_label.rb +252 -0
- data/lib/pulp_container_client/models/set_label_response.rb +243 -0
- data/lib/pulp_container_client/models/unset_label.rb +242 -0
- data/lib/pulp_container_client/models/unset_label_response.rb +242 -0
- data/lib/pulp_container_client/version.rb +1 -1
- data/lib/pulp_container_client.rb +4 -0
- data/spec/api/content_blobs_api_spec.rb +1 -0
- data/spec/api/content_manifests_api_spec.rb +2 -1
- data/spec/api/content_signatures_api_spec.rb +5 -0
- data/spec/api/content_tags_api_spec.rb +2 -1
- data/spec/api/distributions_container_api_spec.rb +35 -0
- data/spec/api/pulp_container_namespaces_api_spec.rb +9 -0
- data/spec/api/remotes_container_api_spec.rb +35 -0
- data/spec/api/repositories_container_api_spec.rb +35 -0
- data/spec/api/repositories_container_push_api_spec.rb +9 -0
- data/spec/api/repositories_container_push_versions_api_spec.rb +1 -0
- data/spec/api/repositories_container_versions_api_spec.rb +1 -0
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/container_container_distribution_response_spec.rb +8 -8
- data/spec/models/container_container_distribution_spec.rb +5 -5
- data/spec/models/container_container_push_repository_response_spec.rb +9 -9
- data/spec/models/container_container_push_repository_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +5 -5
- data/spec/models/set_label_response_spec.rb +47 -0
- data/spec/models/set_label_spec.rb +47 -0
- data/spec/models/unset_label_response_spec.rb +47 -0
- data/spec/models/unset_label_spec.rb +41 -0
- metadata +64 -48
@@ -15,27 +15,27 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class ContainerContainerDistributionResponse
|
18
|
+
# Whether this distribution should be shown in the content app.
|
19
|
+
attr_accessor :hidden
|
20
|
+
|
21
|
+
attr_accessor :pulp_href
|
22
|
+
|
18
23
|
# The latest RepositoryVersion for this Repository will be served.
|
19
24
|
attr_accessor :repository
|
20
25
|
|
21
26
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
22
27
|
attr_accessor :base_path
|
23
28
|
|
29
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
30
|
+
attr_accessor :content_guard
|
31
|
+
|
24
32
|
# Timestamp of creation.
|
25
33
|
attr_accessor :pulp_created
|
26
34
|
|
27
|
-
# A unique name. Ex, `rawhide` and `stable`.
|
28
|
-
attr_accessor :name
|
29
|
-
|
30
|
-
# Whether this distribution should be shown in the content app.
|
31
|
-
attr_accessor :hidden
|
32
|
-
|
33
35
|
attr_accessor :pulp_labels
|
34
36
|
|
35
|
-
|
36
|
-
|
37
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
38
|
-
attr_accessor :content_guard
|
37
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
38
|
+
attr_accessor :name
|
39
39
|
|
40
40
|
# RepositoryVersion to be served
|
41
41
|
attr_accessor :repository_version
|
@@ -55,14 +55,14 @@ module PulpContainerClient
|
|
55
55
|
# Attribute mapping from ruby-style variable name to JSON key.
|
56
56
|
def self.attribute_map
|
57
57
|
{
|
58
|
+
:'hidden' => :'hidden',
|
59
|
+
:'pulp_href' => :'pulp_href',
|
58
60
|
:'repository' => :'repository',
|
59
61
|
:'base_path' => :'base_path',
|
62
|
+
:'content_guard' => :'content_guard',
|
60
63
|
:'pulp_created' => :'pulp_created',
|
61
|
-
:'name' => :'name',
|
62
|
-
:'hidden' => :'hidden',
|
63
64
|
:'pulp_labels' => :'pulp_labels',
|
64
|
-
:'
|
65
|
-
:'content_guard' => :'content_guard',
|
65
|
+
:'name' => :'name',
|
66
66
|
:'repository_version' => :'repository_version',
|
67
67
|
:'registry_path' => :'registry_path',
|
68
68
|
:'namespace' => :'namespace',
|
@@ -74,14 +74,14 @@ module PulpContainerClient
|
|
74
74
|
# Attribute type mapping.
|
75
75
|
def self.openapi_types
|
76
76
|
{
|
77
|
+
:'hidden' => :'Boolean',
|
78
|
+
:'pulp_href' => :'String',
|
77
79
|
:'repository' => :'String',
|
78
80
|
:'base_path' => :'String',
|
81
|
+
:'content_guard' => :'String',
|
79
82
|
:'pulp_created' => :'DateTime',
|
80
|
-
:'name' => :'String',
|
81
|
-
:'hidden' => :'Boolean',
|
82
83
|
:'pulp_labels' => :'Hash<String, String>',
|
83
|
-
:'
|
84
|
-
:'content_guard' => :'String',
|
84
|
+
:'name' => :'String',
|
85
85
|
:'repository_version' => :'String',
|
86
86
|
:'registry_path' => :'String',
|
87
87
|
:'namespace' => :'String',
|
@@ -114,6 +114,16 @@ module PulpContainerClient
|
|
114
114
|
h[k.to_sym] = v
|
115
115
|
}
|
116
116
|
|
117
|
+
if attributes.key?(:'hidden')
|
118
|
+
self.hidden = attributes[:'hidden']
|
119
|
+
else
|
120
|
+
self.hidden = false
|
121
|
+
end
|
122
|
+
|
123
|
+
if attributes.key?(:'pulp_href')
|
124
|
+
self.pulp_href = attributes[:'pulp_href']
|
125
|
+
end
|
126
|
+
|
117
127
|
if attributes.key?(:'repository')
|
118
128
|
self.repository = attributes[:'repository']
|
119
129
|
end
|
@@ -122,18 +132,12 @@ module PulpContainerClient
|
|
122
132
|
self.base_path = attributes[:'base_path']
|
123
133
|
end
|
124
134
|
|
125
|
-
if attributes.key?(:'
|
126
|
-
self.
|
127
|
-
end
|
128
|
-
|
129
|
-
if attributes.key?(:'name')
|
130
|
-
self.name = attributes[:'name']
|
135
|
+
if attributes.key?(:'content_guard')
|
136
|
+
self.content_guard = attributes[:'content_guard']
|
131
137
|
end
|
132
138
|
|
133
|
-
if attributes.key?(:'
|
134
|
-
self.
|
135
|
-
else
|
136
|
-
self.hidden = false
|
139
|
+
if attributes.key?(:'pulp_created')
|
140
|
+
self.pulp_created = attributes[:'pulp_created']
|
137
141
|
end
|
138
142
|
|
139
143
|
if attributes.key?(:'pulp_labels')
|
@@ -142,12 +146,8 @@ module PulpContainerClient
|
|
142
146
|
end
|
143
147
|
end
|
144
148
|
|
145
|
-
if attributes.key?(:'
|
146
|
-
self.
|
147
|
-
end
|
148
|
-
|
149
|
-
if attributes.key?(:'content_guard')
|
150
|
-
self.content_guard = attributes[:'content_guard']
|
149
|
+
if attributes.key?(:'name')
|
150
|
+
self.name = attributes[:'name']
|
151
151
|
end
|
152
152
|
|
153
153
|
if attributes.key?(:'repository_version')
|
@@ -199,14 +199,14 @@ 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
|
+
pulp_href == o.pulp_href &&
|
202
204
|
repository == o.repository &&
|
203
205
|
base_path == o.base_path &&
|
206
|
+
content_guard == o.content_guard &&
|
204
207
|
pulp_created == o.pulp_created &&
|
205
|
-
name == o.name &&
|
206
|
-
hidden == o.hidden &&
|
207
208
|
pulp_labels == o.pulp_labels &&
|
208
|
-
|
209
|
-
content_guard == o.content_guard &&
|
209
|
+
name == o.name &&
|
210
210
|
repository_version == o.repository_version &&
|
211
211
|
registry_path == o.registry_path &&
|
212
212
|
namespace == o.namespace &&
|
@@ -223,7 +223,7 @@ module PulpContainerClient
|
|
223
223
|
# Calculates hash code according to all attributes.
|
224
224
|
# @return [Integer] Hash code
|
225
225
|
def hash
|
226
|
-
[
|
226
|
+
[hidden, pulp_href, repository, base_path, content_guard, pulp_created, pulp_labels, name, repository_version, registry_path, namespace, private, description].hash
|
227
227
|
end
|
228
228
|
|
229
229
|
# Builds the object from hash
|
@@ -15,48 +15,48 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class ContainerContainerPushRepository
|
18
|
-
#
|
19
|
-
attr_accessor :
|
20
|
-
|
21
|
-
# A unique name for this repository.
|
22
|
-
attr_accessor :name
|
18
|
+
# A reference to an associated signing service.
|
19
|
+
attr_accessor :manifest_signing_service
|
23
20
|
|
24
21
|
# An optional description.
|
25
22
|
attr_accessor :description
|
26
23
|
|
27
|
-
#
|
28
|
-
attr_accessor :
|
24
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
25
|
+
attr_accessor :retain_repo_versions
|
29
26
|
|
30
27
|
attr_accessor :pulp_labels
|
31
28
|
|
29
|
+
# A unique name for this repository.
|
30
|
+
attr_accessor :name
|
31
|
+
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
33
|
def self.attribute_map
|
34
34
|
{
|
35
|
-
:'retain_repo_versions' => :'retain_repo_versions',
|
36
|
-
:'name' => :'name',
|
37
|
-
:'description' => :'description',
|
38
35
|
:'manifest_signing_service' => :'manifest_signing_service',
|
39
|
-
:'
|
36
|
+
:'description' => :'description',
|
37
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
38
|
+
:'pulp_labels' => :'pulp_labels',
|
39
|
+
:'name' => :'name'
|
40
40
|
}
|
41
41
|
end
|
42
42
|
|
43
43
|
# Attribute type mapping.
|
44
44
|
def self.openapi_types
|
45
45
|
{
|
46
|
-
:'retain_repo_versions' => :'Integer',
|
47
|
-
:'name' => :'String',
|
48
|
-
:'description' => :'String',
|
49
46
|
:'manifest_signing_service' => :'String',
|
50
|
-
:'
|
47
|
+
:'description' => :'String',
|
48
|
+
:'retain_repo_versions' => :'Integer',
|
49
|
+
:'pulp_labels' => :'Hash<String, String>',
|
50
|
+
:'name' => :'String'
|
51
51
|
}
|
52
52
|
end
|
53
53
|
|
54
54
|
# List of attributes with nullable: true
|
55
55
|
def self.openapi_nullable
|
56
56
|
Set.new([
|
57
|
-
:'retain_repo_versions',
|
58
|
-
:'description',
|
59
57
|
:'manifest_signing_service',
|
58
|
+
:'description',
|
59
|
+
:'retain_repo_versions',
|
60
60
|
])
|
61
61
|
end
|
62
62
|
|
@@ -75,20 +75,16 @@ module PulpContainerClient
|
|
75
75
|
h[k.to_sym] = v
|
76
76
|
}
|
77
77
|
|
78
|
-
if attributes.key?(:'
|
79
|
-
self.
|
80
|
-
end
|
81
|
-
|
82
|
-
if attributes.key?(:'name')
|
83
|
-
self.name = attributes[:'name']
|
78
|
+
if attributes.key?(:'manifest_signing_service')
|
79
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
84
80
|
end
|
85
81
|
|
86
82
|
if attributes.key?(:'description')
|
87
83
|
self.description = attributes[:'description']
|
88
84
|
end
|
89
85
|
|
90
|
-
if attributes.key?(:'
|
91
|
-
self.
|
86
|
+
if attributes.key?(:'retain_repo_versions')
|
87
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
92
88
|
end
|
93
89
|
|
94
90
|
if attributes.key?(:'pulp_labels')
|
@@ -96,12 +92,20 @@ module PulpContainerClient
|
|
96
92
|
self.pulp_labels = value
|
97
93
|
end
|
98
94
|
end
|
95
|
+
|
96
|
+
if attributes.key?(:'name')
|
97
|
+
self.name = attributes[:'name']
|
98
|
+
end
|
99
99
|
end
|
100
100
|
|
101
101
|
# Show invalid properties with the reasons. Usually used together with valid?
|
102
102
|
# @return Array for valid properties with the reasons
|
103
103
|
def list_invalid_properties
|
104
104
|
invalid_properties = Array.new
|
105
|
+
if !@description.nil? && @description.to_s.length < 1
|
106
|
+
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
107
|
+
end
|
108
|
+
|
105
109
|
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
106
110
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
107
111
|
end
|
@@ -114,23 +118,29 @@ module PulpContainerClient
|
|
114
118
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
115
119
|
end
|
116
120
|
|
117
|
-
if !@description.nil? && @description.to_s.length < 1
|
118
|
-
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
119
|
-
end
|
120
|
-
|
121
121
|
invalid_properties
|
122
122
|
end
|
123
123
|
|
124
124
|
# Check to see if the all the properties in the model are valid
|
125
125
|
# @return true if the model is valid
|
126
126
|
def valid?
|
127
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
127
128
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
128
129
|
return false if @name.nil?
|
129
130
|
return false if @name.to_s.length < 1
|
130
|
-
return false if !@description.nil? && @description.to_s.length < 1
|
131
131
|
true
|
132
132
|
end
|
133
133
|
|
134
|
+
# Custom attribute writer method with validation
|
135
|
+
# @param [Object] description Value to be assigned
|
136
|
+
def description=(description)
|
137
|
+
if !description.nil? && description.to_s.length < 1
|
138
|
+
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
139
|
+
end
|
140
|
+
|
141
|
+
@description = description
|
142
|
+
end
|
143
|
+
|
134
144
|
# Custom attribute writer method with validation
|
135
145
|
# @param [Object] retain_repo_versions Value to be assigned
|
136
146
|
def retain_repo_versions=(retain_repo_versions)
|
@@ -155,26 +165,16 @@ module PulpContainerClient
|
|
155
165
|
@name = name
|
156
166
|
end
|
157
167
|
|
158
|
-
# Custom attribute writer method with validation
|
159
|
-
# @param [Object] description Value to be assigned
|
160
|
-
def description=(description)
|
161
|
-
if !description.nil? && description.to_s.length < 1
|
162
|
-
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
163
|
-
end
|
164
|
-
|
165
|
-
@description = description
|
166
|
-
end
|
167
|
-
|
168
168
|
# Checks equality by comparing each attribute.
|
169
169
|
# @param [Object] Object to be compared
|
170
170
|
def ==(o)
|
171
171
|
return true if self.equal?(o)
|
172
172
|
self.class == o.class &&
|
173
|
-
retain_repo_versions == o.retain_repo_versions &&
|
174
|
-
name == o.name &&
|
175
|
-
description == o.description &&
|
176
173
|
manifest_signing_service == o.manifest_signing_service &&
|
177
|
-
|
174
|
+
description == o.description &&
|
175
|
+
retain_repo_versions == o.retain_repo_versions &&
|
176
|
+
pulp_labels == o.pulp_labels &&
|
177
|
+
name == o.name
|
178
178
|
end
|
179
179
|
|
180
180
|
# @see the `==` method
|
@@ -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
|
-
[
|
189
|
+
[manifest_signing_service, description, retain_repo_versions, pulp_labels, name].hash
|
190
190
|
end
|
191
191
|
|
192
192
|
# Builds the object from hash
|
@@ -15,65 +15,65 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class ContainerContainerPushRepositoryResponse
|
18
|
-
#
|
19
|
-
attr_accessor :
|
20
|
-
|
21
|
-
# Timestamp of creation.
|
22
|
-
attr_accessor :pulp_created
|
23
|
-
|
24
|
-
# A unique name for this repository.
|
25
|
-
attr_accessor :name
|
18
|
+
# A reference to an associated signing service.
|
19
|
+
attr_accessor :manifest_signing_service
|
26
20
|
|
27
21
|
# An optional description.
|
28
22
|
attr_accessor :description
|
29
23
|
|
30
|
-
|
31
|
-
attr_accessor :manifest_signing_service
|
24
|
+
attr_accessor :pulp_href
|
32
25
|
|
33
|
-
attr_accessor :
|
26
|
+
attr_accessor :versions_href
|
27
|
+
|
28
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
29
|
+
attr_accessor :retain_repo_versions
|
34
30
|
|
35
31
|
attr_accessor :pulp_labels
|
36
32
|
|
37
|
-
|
33
|
+
# Timestamp of creation.
|
34
|
+
attr_accessor :pulp_created
|
38
35
|
|
39
|
-
attr_accessor :
|
36
|
+
attr_accessor :latest_version_href
|
37
|
+
|
38
|
+
# A unique name for this repository.
|
39
|
+
attr_accessor :name
|
40
40
|
|
41
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
42
42
|
def self.attribute_map
|
43
43
|
{
|
44
|
+
:'manifest_signing_service' => :'manifest_signing_service',
|
45
|
+
:'description' => :'description',
|
46
|
+
:'pulp_href' => :'pulp_href',
|
47
|
+
:'versions_href' => :'versions_href',
|
44
48
|
:'retain_repo_versions' => :'retain_repo_versions',
|
49
|
+
:'pulp_labels' => :'pulp_labels',
|
45
50
|
:'pulp_created' => :'pulp_created',
|
46
|
-
:'name' => :'name',
|
47
|
-
:'description' => :'description',
|
48
|
-
:'manifest_signing_service' => :'manifest_signing_service',
|
49
51
|
:'latest_version_href' => :'latest_version_href',
|
50
|
-
:'
|
51
|
-
:'pulp_href' => :'pulp_href',
|
52
|
-
:'versions_href' => :'versions_href'
|
52
|
+
:'name' => :'name'
|
53
53
|
}
|
54
54
|
end
|
55
55
|
|
56
56
|
# Attribute type mapping.
|
57
57
|
def self.openapi_types
|
58
58
|
{
|
59
|
+
:'manifest_signing_service' => :'String',
|
60
|
+
:'description' => :'String',
|
61
|
+
:'pulp_href' => :'String',
|
62
|
+
:'versions_href' => :'String',
|
59
63
|
:'retain_repo_versions' => :'Integer',
|
64
|
+
:'pulp_labels' => :'Hash<String, String>',
|
60
65
|
:'pulp_created' => :'DateTime',
|
61
|
-
:'name' => :'String',
|
62
|
-
:'description' => :'String',
|
63
|
-
:'manifest_signing_service' => :'String',
|
64
66
|
:'latest_version_href' => :'String',
|
65
|
-
:'
|
66
|
-
:'pulp_href' => :'String',
|
67
|
-
:'versions_href' => :'String'
|
67
|
+
:'name' => :'String'
|
68
68
|
}
|
69
69
|
end
|
70
70
|
|
71
71
|
# List of attributes with nullable: true
|
72
72
|
def self.openapi_nullable
|
73
73
|
Set.new([
|
74
|
-
:'retain_repo_versions',
|
75
|
-
:'description',
|
76
74
|
:'manifest_signing_service',
|
75
|
+
:'description',
|
76
|
+
:'retain_repo_versions',
|
77
77
|
])
|
78
78
|
end
|
79
79
|
|
@@ -92,28 +92,24 @@ module PulpContainerClient
|
|
92
92
|
h[k.to_sym] = v
|
93
93
|
}
|
94
94
|
|
95
|
-
if attributes.key?(:'
|
96
|
-
self.
|
97
|
-
end
|
98
|
-
|
99
|
-
if attributes.key?(:'pulp_created')
|
100
|
-
self.pulp_created = attributes[:'pulp_created']
|
101
|
-
end
|
102
|
-
|
103
|
-
if attributes.key?(:'name')
|
104
|
-
self.name = attributes[:'name']
|
95
|
+
if attributes.key?(:'manifest_signing_service')
|
96
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
105
97
|
end
|
106
98
|
|
107
99
|
if attributes.key?(:'description')
|
108
100
|
self.description = attributes[:'description']
|
109
101
|
end
|
110
102
|
|
111
|
-
if attributes.key?(:'
|
112
|
-
self.
|
103
|
+
if attributes.key?(:'pulp_href')
|
104
|
+
self.pulp_href = attributes[:'pulp_href']
|
113
105
|
end
|
114
106
|
|
115
|
-
if attributes.key?(:'
|
116
|
-
self.
|
107
|
+
if attributes.key?(:'versions_href')
|
108
|
+
self.versions_href = attributes[:'versions_href']
|
109
|
+
end
|
110
|
+
|
111
|
+
if attributes.key?(:'retain_repo_versions')
|
112
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
117
113
|
end
|
118
114
|
|
119
115
|
if attributes.key?(:'pulp_labels')
|
@@ -122,12 +118,16 @@ module PulpContainerClient
|
|
122
118
|
end
|
123
119
|
end
|
124
120
|
|
125
|
-
if attributes.key?(:'
|
126
|
-
self.
|
121
|
+
if attributes.key?(:'pulp_created')
|
122
|
+
self.pulp_created = attributes[:'pulp_created']
|
127
123
|
end
|
128
124
|
|
129
|
-
if attributes.key?(:'
|
130
|
-
self.
|
125
|
+
if attributes.key?(:'latest_version_href')
|
126
|
+
self.latest_version_href = attributes[:'latest_version_href']
|
127
|
+
end
|
128
|
+
|
129
|
+
if attributes.key?(:'name')
|
130
|
+
self.name = attributes[:'name']
|
131
131
|
end
|
132
132
|
end
|
133
133
|
|
@@ -169,15 +169,15 @@ module PulpContainerClient
|
|
169
169
|
def ==(o)
|
170
170
|
return true if self.equal?(o)
|
171
171
|
self.class == o.class &&
|
172
|
+
manifest_signing_service == o.manifest_signing_service &&
|
173
|
+
description == o.description &&
|
174
|
+
pulp_href == o.pulp_href &&
|
175
|
+
versions_href == o.versions_href &&
|
172
176
|
retain_repo_versions == o.retain_repo_versions &&
|
177
|
+
pulp_labels == o.pulp_labels &&
|
173
178
|
pulp_created == o.pulp_created &&
|
174
|
-
name == o.name &&
|
175
|
-
description == o.description &&
|
176
|
-
manifest_signing_service == o.manifest_signing_service &&
|
177
179
|
latest_version_href == o.latest_version_href &&
|
178
|
-
|
179
|
-
pulp_href == o.pulp_href &&
|
180
|
-
versions_href == o.versions_href
|
180
|
+
name == o.name
|
181
181
|
end
|
182
182
|
|
183
183
|
# @see the `==` method
|
@@ -189,7 +189,7 @@ module PulpContainerClient
|
|
189
189
|
# Calculates hash code according to all attributes.
|
190
190
|
# @return [Integer] Hash code
|
191
191
|
def hash
|
192
|
-
[
|
192
|
+
[manifest_signing_service, description, pulp_href, versions_href, retain_repo_versions, pulp_labels, pulp_created, latest_version_href, name].hash
|
193
193
|
end
|
194
194
|
|
195
195
|
# Builds the object from hash
|
@@ -15,22 +15,22 @@ 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
|
+
|
18
21
|
# The latest RepositoryVersion for this Repository will be served.
|
19
22
|
attr_accessor :repository
|
20
23
|
|
21
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\")
|
22
25
|
attr_accessor :base_path
|
23
26
|
|
24
|
-
#
|
25
|
-
attr_accessor :
|
26
|
-
|
27
|
-
# Whether this distribution should be shown in the content app.
|
28
|
-
attr_accessor :hidden
|
27
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
28
|
+
attr_accessor :content_guard
|
29
29
|
|
30
30
|
attr_accessor :pulp_labels
|
31
31
|
|
32
|
-
#
|
33
|
-
attr_accessor :
|
32
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
33
|
+
attr_accessor :name
|
34
34
|
|
35
35
|
# RepositoryVersion to be served
|
36
36
|
attr_accessor :repository_version
|
@@ -44,12 +44,12 @@ 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',
|
47
48
|
:'repository' => :'repository',
|
48
49
|
:'base_path' => :'base_path',
|
49
|
-
:'name' => :'name',
|
50
|
-
:'hidden' => :'hidden',
|
51
|
-
:'pulp_labels' => :'pulp_labels',
|
52
50
|
:'content_guard' => :'content_guard',
|
51
|
+
:'pulp_labels' => :'pulp_labels',
|
52
|
+
:'name' => :'name',
|
53
53
|
:'repository_version' => :'repository_version',
|
54
54
|
:'private' => :'private',
|
55
55
|
:'description' => :'description'
|
@@ -59,12 +59,12 @@ module PulpContainerClient
|
|
59
59
|
# Attribute type mapping.
|
60
60
|
def self.openapi_types
|
61
61
|
{
|
62
|
+
:'hidden' => :'Boolean',
|
62
63
|
:'repository' => :'String',
|
63
64
|
:'base_path' => :'String',
|
64
|
-
:'name' => :'String',
|
65
|
-
:'hidden' => :'Boolean',
|
66
|
-
:'pulp_labels' => :'Hash<String, String>',
|
67
65
|
:'content_guard' => :'String',
|
66
|
+
:'pulp_labels' => :'Hash<String, String>',
|
67
|
+
:'name' => :'String',
|
68
68
|
:'repository_version' => :'String',
|
69
69
|
:'private' => :'Boolean',
|
70
70
|
:'description' => :'String'
|
@@ -95,6 +95,12 @@ 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
|
+
|
98
104
|
if attributes.key?(:'repository')
|
99
105
|
self.repository = attributes[:'repository']
|
100
106
|
end
|
@@ -103,14 +109,8 @@ module PulpContainerClient
|
|
103
109
|
self.base_path = attributes[:'base_path']
|
104
110
|
end
|
105
111
|
|
106
|
-
if attributes.key?(:'
|
107
|
-
self.
|
108
|
-
end
|
109
|
-
|
110
|
-
if attributes.key?(:'hidden')
|
111
|
-
self.hidden = attributes[:'hidden']
|
112
|
-
else
|
113
|
-
self.hidden = false
|
112
|
+
if attributes.key?(:'content_guard')
|
113
|
+
self.content_guard = attributes[:'content_guard']
|
114
114
|
end
|
115
115
|
|
116
116
|
if attributes.key?(:'pulp_labels')
|
@@ -119,8 +119,8 @@ module PulpContainerClient
|
|
119
119
|
end
|
120
120
|
end
|
121
121
|
|
122
|
-
if attributes.key?(:'
|
123
|
-
self.
|
122
|
+
if attributes.key?(:'name')
|
123
|
+
self.name = attributes[:'name']
|
124
124
|
end
|
125
125
|
|
126
126
|
if attributes.key?(:'repository_version')
|
@@ -199,12 +199,12 @@ module PulpContainerClient
|
|
199
199
|
def ==(o)
|
200
200
|
return true if self.equal?(o)
|
201
201
|
self.class == o.class &&
|
202
|
+
hidden == o.hidden &&
|
202
203
|
repository == o.repository &&
|
203
204
|
base_path == o.base_path &&
|
204
|
-
name == o.name &&
|
205
|
-
hidden == o.hidden &&
|
206
|
-
pulp_labels == o.pulp_labels &&
|
207
205
|
content_guard == o.content_guard &&
|
206
|
+
pulp_labels == o.pulp_labels &&
|
207
|
+
name == o.name &&
|
208
208
|
repository_version == o.repository_version &&
|
209
209
|
private == o.private &&
|
210
210
|
description == o.description
|
@@ -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
|
-
[repository, base_path,
|
222
|
+
[hidden, repository, base_path, content_guard, pulp_labels, name, repository_version, private, description].hash
|
223
223
|
end
|
224
224
|
|
225
225
|
# Builds the object from hash
|