pulp_container_client 2.14.18 → 2.15.0.dev1676517833
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.
Potentially problematic release.
This version of pulp_container_client might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/docs/ContainerContainerDistribution.md +6 -6
- data/docs/ContainerContainerDistributionResponse.md +10 -10
- data/docs/ContainerContainerPushRepository.md +5 -5
- data/docs/ContainerContainerPushRepositoryResponse.md +9 -9
- data/docs/ContainerContainerRemoteResponseHiddenFields.md +2 -2
- 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 +5 -1
- data/docs/PatchedcontainerContainerDistribution.md +6 -6
- data/docs/PatchedcontainerContainerPushRepository.md +5 -5
- data/docs/PulpContainerNamespacesApi.md +1 -1
- data/docs/RemotesContainerApi.md +1 -1
- data/docs/RepositoriesContainerApi.md +17 -1
- data/docs/RepositoriesContainerPushApi.md +17 -1
- data/docs/RepositoriesContainerPushVersionsApi.md +1 -1
- data/docs/RepositoriesContainerVersionsApi.md +1 -1
- data/docs/TokenApi.md +1 -1
- data/lib/pulp_container_client/api/distributions_container_api.rb +6 -0
- data/lib/pulp_container_client/api/repositories_container_api.rb +24 -0
- data/lib/pulp_container_client/api/repositories_container_push_api.rb +24 -0
- data/lib/pulp_container_client/configuration.rb +3 -3
- data/lib/pulp_container_client/models/container_container_distribution.rb +49 -49
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +43 -43
- data/lib/pulp_container_client/models/container_container_push_repository.rb +22 -22
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +38 -38
- data/lib/pulp_container_client/models/container_container_remote_response_hidden_fields.rb +0 -10
- data/lib/pulp_container_client/models/nested_role.rb +19 -0
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +40 -40
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +22 -22
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/api/distributions_container_api_spec.rb +2 -0
- data/spec/api/repositories_container_api_spec.rb +8 -0
- data/spec/api/repositories_container_push_api_spec.rb +8 -0
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/container_container_distribution_response_spec.rb +7 -7
- data/spec/models/container_container_distribution_spec.rb +4 -4
- data/spec/models/container_container_push_repository_response_spec.rb +8 -8
- data/spec/models/container_container_push_repository_spec.rb +3 -3
- data/spec/models/patchedcontainer_container_distribution_spec.rb +4 -4
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +3 -3
- metadata +63 -63
@@ -15,19 +15,19 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class ContainerContainerDistribution
|
18
|
-
# The
|
19
|
-
attr_accessor :
|
18
|
+
# The latest RepositoryVersion for this Repository will be served.
|
19
|
+
attr_accessor :repository
|
20
20
|
|
21
21
|
attr_accessor :pulp_labels
|
22
22
|
|
23
|
-
# A unique name. Ex, `rawhide` and `stable`.
|
24
|
-
attr_accessor :name
|
25
|
-
|
26
23
|
# An optional content-guard. If none is specified, a default one will be used.
|
27
24
|
attr_accessor :content_guard
|
28
25
|
|
29
|
-
#
|
30
|
-
attr_accessor :
|
26
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
27
|
+
attr_accessor :name
|
28
|
+
|
29
|
+
# 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
|
+
attr_accessor :base_path
|
31
31
|
|
32
32
|
# RepositoryVersion to be served
|
33
33
|
attr_accessor :repository_version
|
@@ -41,11 +41,11 @@ module PulpContainerClient
|
|
41
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
42
42
|
def self.attribute_map
|
43
43
|
{
|
44
|
-
:'
|
44
|
+
:'repository' => :'repository',
|
45
45
|
:'pulp_labels' => :'pulp_labels',
|
46
|
-
:'name' => :'name',
|
47
46
|
:'content_guard' => :'content_guard',
|
48
|
-
:'
|
47
|
+
:'name' => :'name',
|
48
|
+
:'base_path' => :'base_path',
|
49
49
|
:'repository_version' => :'repository_version',
|
50
50
|
:'private' => :'private',
|
51
51
|
:'description' => :'description'
|
@@ -55,11 +55,11 @@ module PulpContainerClient
|
|
55
55
|
# Attribute type mapping.
|
56
56
|
def self.openapi_types
|
57
57
|
{
|
58
|
-
:'
|
58
|
+
:'repository' => :'String',
|
59
59
|
:'pulp_labels' => :'Hash<String, String>',
|
60
|
-
:'name' => :'String',
|
61
60
|
:'content_guard' => :'String',
|
62
|
-
:'
|
61
|
+
:'name' => :'String',
|
62
|
+
:'base_path' => :'String',
|
63
63
|
:'repository_version' => :'String',
|
64
64
|
:'private' => :'Boolean',
|
65
65
|
:'description' => :'String'
|
@@ -90,8 +90,8 @@ module PulpContainerClient
|
|
90
90
|
h[k.to_sym] = v
|
91
91
|
}
|
92
92
|
|
93
|
-
if attributes.key?(:'
|
94
|
-
self.
|
93
|
+
if attributes.key?(:'repository')
|
94
|
+
self.repository = attributes[:'repository']
|
95
95
|
end
|
96
96
|
|
97
97
|
if attributes.key?(:'pulp_labels')
|
@@ -100,16 +100,16 @@ module PulpContainerClient
|
|
100
100
|
end
|
101
101
|
end
|
102
102
|
|
103
|
-
if attributes.key?(:'name')
|
104
|
-
self.name = attributes[:'name']
|
105
|
-
end
|
106
|
-
|
107
103
|
if attributes.key?(:'content_guard')
|
108
104
|
self.content_guard = attributes[:'content_guard']
|
109
105
|
end
|
110
106
|
|
111
|
-
if attributes.key?(:'
|
112
|
-
self.
|
107
|
+
if attributes.key?(:'name')
|
108
|
+
self.name = attributes[:'name']
|
109
|
+
end
|
110
|
+
|
111
|
+
if attributes.key?(:'base_path')
|
112
|
+
self.base_path = attributes[:'base_path']
|
113
113
|
end
|
114
114
|
|
115
115
|
if attributes.key?(:'repository_version')
|
@@ -129,14 +129,6 @@ module PulpContainerClient
|
|
129
129
|
# @return Array for valid properties with the reasons
|
130
130
|
def list_invalid_properties
|
131
131
|
invalid_properties = Array.new
|
132
|
-
if @base_path.nil?
|
133
|
-
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
134
|
-
end
|
135
|
-
|
136
|
-
if @base_path.to_s.length < 1
|
137
|
-
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
138
|
-
end
|
139
|
-
|
140
132
|
if @name.nil?
|
141
133
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
142
134
|
end
|
@@ -145,6 +137,14 @@ module PulpContainerClient
|
|
145
137
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
146
138
|
end
|
147
139
|
|
140
|
+
if @base_path.nil?
|
141
|
+
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
142
|
+
end
|
143
|
+
|
144
|
+
if @base_path.to_s.length < 1
|
145
|
+
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
146
|
+
end
|
147
|
+
|
148
148
|
if !@description.nil? && @description.to_s.length < 1
|
149
149
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
150
150
|
end
|
@@ -155,28 +155,14 @@ module PulpContainerClient
|
|
155
155
|
# Check to see if the all the properties in the model are valid
|
156
156
|
# @return true if the model is valid
|
157
157
|
def valid?
|
158
|
-
return false if @base_path.nil?
|
159
|
-
return false if @base_path.to_s.length < 1
|
160
158
|
return false if @name.nil?
|
161
159
|
return false if @name.to_s.length < 1
|
160
|
+
return false if @base_path.nil?
|
161
|
+
return false if @base_path.to_s.length < 1
|
162
162
|
return false if !@description.nil? && @description.to_s.length < 1
|
163
163
|
true
|
164
164
|
end
|
165
165
|
|
166
|
-
# Custom attribute writer method with validation
|
167
|
-
# @param [Object] base_path Value to be assigned
|
168
|
-
def base_path=(base_path)
|
169
|
-
if base_path.nil?
|
170
|
-
fail ArgumentError, 'base_path cannot be nil'
|
171
|
-
end
|
172
|
-
|
173
|
-
if base_path.to_s.length < 1
|
174
|
-
fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
|
175
|
-
end
|
176
|
-
|
177
|
-
@base_path = base_path
|
178
|
-
end
|
179
|
-
|
180
166
|
# Custom attribute writer method with validation
|
181
167
|
# @param [Object] name Value to be assigned
|
182
168
|
def name=(name)
|
@@ -191,6 +177,20 @@ module PulpContainerClient
|
|
191
177
|
@name = name
|
192
178
|
end
|
193
179
|
|
180
|
+
# Custom attribute writer method with validation
|
181
|
+
# @param [Object] base_path Value to be assigned
|
182
|
+
def base_path=(base_path)
|
183
|
+
if base_path.nil?
|
184
|
+
fail ArgumentError, 'base_path cannot be nil'
|
185
|
+
end
|
186
|
+
|
187
|
+
if base_path.to_s.length < 1
|
188
|
+
fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
|
189
|
+
end
|
190
|
+
|
191
|
+
@base_path = base_path
|
192
|
+
end
|
193
|
+
|
194
194
|
# Custom attribute writer method with validation
|
195
195
|
# @param [Object] description Value to be assigned
|
196
196
|
def description=(description)
|
@@ -206,11 +206,11 @@ module PulpContainerClient
|
|
206
206
|
def ==(o)
|
207
207
|
return true if self.equal?(o)
|
208
208
|
self.class == o.class &&
|
209
|
-
|
209
|
+
repository == o.repository &&
|
210
210
|
pulp_labels == o.pulp_labels &&
|
211
|
-
name == o.name &&
|
212
211
|
content_guard == o.content_guard &&
|
213
|
-
|
212
|
+
name == o.name &&
|
213
|
+
base_path == o.base_path &&
|
214
214
|
repository_version == o.repository_version &&
|
215
215
|
private == o.private &&
|
216
216
|
description == o.description
|
@@ -225,7 +225,7 @@ module PulpContainerClient
|
|
225
225
|
# Calculates hash code according to all attributes.
|
226
226
|
# @return [Integer] Hash code
|
227
227
|
def hash
|
228
|
-
[
|
228
|
+
[repository, pulp_labels, content_guard, name, base_path, repository_version, private, description].hash
|
229
229
|
end
|
230
230
|
|
231
231
|
# Builds the object from hash
|
@@ -15,24 +15,24 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class ContainerContainerDistributionResponse
|
18
|
-
# The
|
19
|
-
attr_accessor :
|
18
|
+
# The latest RepositoryVersion for this Repository will be served.
|
19
|
+
attr_accessor :repository
|
20
|
+
|
21
|
+
# Timestamp of creation.
|
22
|
+
attr_accessor :pulp_created
|
20
23
|
|
21
24
|
attr_accessor :pulp_labels
|
22
25
|
|
23
|
-
|
26
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
27
|
+
attr_accessor :content_guard
|
24
28
|
|
25
29
|
# A unique name. Ex, `rawhide` and `stable`.
|
26
30
|
attr_accessor :name
|
27
31
|
|
28
|
-
#
|
29
|
-
attr_accessor :
|
30
|
-
|
31
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
32
|
-
attr_accessor :content_guard
|
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\")
|
33
|
+
attr_accessor :base_path
|
33
34
|
|
34
|
-
|
35
|
-
attr_accessor :repository
|
35
|
+
attr_accessor :pulp_href
|
36
36
|
|
37
37
|
# RepositoryVersion to be served
|
38
38
|
attr_accessor :repository_version
|
@@ -52,13 +52,13 @@ module PulpContainerClient
|
|
52
52
|
# Attribute mapping from ruby-style variable name to JSON key.
|
53
53
|
def self.attribute_map
|
54
54
|
{
|
55
|
-
:'
|
56
|
-
:'pulp_labels' => :'pulp_labels',
|
57
|
-
:'pulp_href' => :'pulp_href',
|
58
|
-
:'name' => :'name',
|
55
|
+
:'repository' => :'repository',
|
59
56
|
:'pulp_created' => :'pulp_created',
|
57
|
+
:'pulp_labels' => :'pulp_labels',
|
60
58
|
:'content_guard' => :'content_guard',
|
61
|
-
:'
|
59
|
+
:'name' => :'name',
|
60
|
+
:'base_path' => :'base_path',
|
61
|
+
:'pulp_href' => :'pulp_href',
|
62
62
|
:'repository_version' => :'repository_version',
|
63
63
|
:'registry_path' => :'registry_path',
|
64
64
|
:'namespace' => :'namespace',
|
@@ -70,13 +70,13 @@ module PulpContainerClient
|
|
70
70
|
# Attribute type mapping.
|
71
71
|
def self.openapi_types
|
72
72
|
{
|
73
|
-
:'
|
74
|
-
:'pulp_labels' => :'Hash<String, String>',
|
75
|
-
:'pulp_href' => :'String',
|
76
|
-
:'name' => :'String',
|
73
|
+
:'repository' => :'String',
|
77
74
|
:'pulp_created' => :'DateTime',
|
75
|
+
:'pulp_labels' => :'Hash<String, String>',
|
78
76
|
:'content_guard' => :'String',
|
79
|
-
:'
|
77
|
+
:'name' => :'String',
|
78
|
+
:'base_path' => :'String',
|
79
|
+
:'pulp_href' => :'String',
|
80
80
|
:'repository_version' => :'String',
|
81
81
|
:'registry_path' => :'String',
|
82
82
|
:'namespace' => :'String',
|
@@ -109,8 +109,12 @@ module PulpContainerClient
|
|
109
109
|
h[k.to_sym] = v
|
110
110
|
}
|
111
111
|
|
112
|
-
if attributes.key?(:'
|
113
|
-
self.
|
112
|
+
if attributes.key?(:'repository')
|
113
|
+
self.repository = attributes[:'repository']
|
114
|
+
end
|
115
|
+
|
116
|
+
if attributes.key?(:'pulp_created')
|
117
|
+
self.pulp_created = attributes[:'pulp_created']
|
114
118
|
end
|
115
119
|
|
116
120
|
if attributes.key?(:'pulp_labels')
|
@@ -119,24 +123,20 @@ module PulpContainerClient
|
|
119
123
|
end
|
120
124
|
end
|
121
125
|
|
122
|
-
if attributes.key?(:'
|
123
|
-
self.
|
126
|
+
if attributes.key?(:'content_guard')
|
127
|
+
self.content_guard = attributes[:'content_guard']
|
124
128
|
end
|
125
129
|
|
126
130
|
if attributes.key?(:'name')
|
127
131
|
self.name = attributes[:'name']
|
128
132
|
end
|
129
133
|
|
130
|
-
if attributes.key?(:'
|
131
|
-
self.
|
132
|
-
end
|
133
|
-
|
134
|
-
if attributes.key?(:'content_guard')
|
135
|
-
self.content_guard = attributes[:'content_guard']
|
134
|
+
if attributes.key?(:'base_path')
|
135
|
+
self.base_path = attributes[:'base_path']
|
136
136
|
end
|
137
137
|
|
138
|
-
if attributes.key?(:'
|
139
|
-
self.
|
138
|
+
if attributes.key?(:'pulp_href')
|
139
|
+
self.pulp_href = attributes[:'pulp_href']
|
140
140
|
end
|
141
141
|
|
142
142
|
if attributes.key?(:'repository_version')
|
@@ -164,22 +164,22 @@ module PulpContainerClient
|
|
164
164
|
# @return Array for valid properties with the reasons
|
165
165
|
def list_invalid_properties
|
166
166
|
invalid_properties = Array.new
|
167
|
-
if @base_path.nil?
|
168
|
-
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
169
|
-
end
|
170
|
-
|
171
167
|
if @name.nil?
|
172
168
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
173
169
|
end
|
174
170
|
|
171
|
+
if @base_path.nil?
|
172
|
+
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
173
|
+
end
|
174
|
+
|
175
175
|
invalid_properties
|
176
176
|
end
|
177
177
|
|
178
178
|
# Check to see if the all the properties in the model are valid
|
179
179
|
# @return true if the model is valid
|
180
180
|
def valid?
|
181
|
-
return false if @base_path.nil?
|
182
181
|
return false if @name.nil?
|
182
|
+
return false if @base_path.nil?
|
183
183
|
true
|
184
184
|
end
|
185
185
|
|
@@ -188,13 +188,13 @@ module PulpContainerClient
|
|
188
188
|
def ==(o)
|
189
189
|
return true if self.equal?(o)
|
190
190
|
self.class == o.class &&
|
191
|
-
|
192
|
-
pulp_labels == o.pulp_labels &&
|
193
|
-
pulp_href == o.pulp_href &&
|
194
|
-
name == o.name &&
|
191
|
+
repository == o.repository &&
|
195
192
|
pulp_created == o.pulp_created &&
|
193
|
+
pulp_labels == o.pulp_labels &&
|
196
194
|
content_guard == o.content_guard &&
|
197
|
-
|
195
|
+
name == o.name &&
|
196
|
+
base_path == o.base_path &&
|
197
|
+
pulp_href == o.pulp_href &&
|
198
198
|
repository_version == o.repository_version &&
|
199
199
|
registry_path == o.registry_path &&
|
200
200
|
namespace == o.namespace &&
|
@@ -211,7 +211,7 @@ module PulpContainerClient
|
|
211
211
|
# Calculates hash code according to all attributes.
|
212
212
|
# @return [Integer] Hash code
|
213
213
|
def hash
|
214
|
-
[
|
214
|
+
[repository, pulp_created, pulp_labels, content_guard, name, base_path, pulp_href, repository_version, registry_path, namespace, private, description].hash
|
215
215
|
end
|
216
216
|
|
217
217
|
# 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. This is provided as a tech preview in Pulp 3 and may change in the future.
|
19
19
|
attr_accessor :retain_repo_versions
|
20
20
|
|
21
|
-
#
|
22
|
-
attr_accessor :
|
21
|
+
# A reference to an associated signing service.
|
22
|
+
attr_accessor :manifest_signing_service
|
23
23
|
|
24
24
|
attr_accessor :pulp_labels
|
25
25
|
|
26
|
+
# An optional description.
|
27
|
+
attr_accessor :description
|
28
|
+
|
26
29
|
# A unique name for this repository.
|
27
30
|
attr_accessor :name
|
28
31
|
|
29
|
-
# A reference to an associated signing service.
|
30
|
-
attr_accessor :manifest_signing_service
|
31
|
-
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
33
|
def self.attribute_map
|
34
34
|
{
|
35
35
|
:'retain_repo_versions' => :'retain_repo_versions',
|
36
|
-
:'
|
36
|
+
:'manifest_signing_service' => :'manifest_signing_service',
|
37
37
|
:'pulp_labels' => :'pulp_labels',
|
38
|
-
:'
|
39
|
-
:'
|
38
|
+
:'description' => :'description',
|
39
|
+
:'name' => :'name'
|
40
40
|
}
|
41
41
|
end
|
42
42
|
|
@@ -44,10 +44,10 @@ module PulpContainerClient
|
|
44
44
|
def self.openapi_types
|
45
45
|
{
|
46
46
|
:'retain_repo_versions' => :'Integer',
|
47
|
-
:'
|
47
|
+
:'manifest_signing_service' => :'String',
|
48
48
|
:'pulp_labels' => :'Hash<String, String>',
|
49
|
-
:'
|
50
|
-
:'
|
49
|
+
:'description' => :'String',
|
50
|
+
:'name' => :'String'
|
51
51
|
}
|
52
52
|
end
|
53
53
|
|
@@ -55,8 +55,8 @@ module PulpContainerClient
|
|
55
55
|
def self.openapi_nullable
|
56
56
|
Set.new([
|
57
57
|
:'retain_repo_versions',
|
58
|
+
:'manifest_signing_service',
|
58
59
|
:'description',
|
59
|
-
:'manifest_signing_service'
|
60
60
|
])
|
61
61
|
end
|
62
62
|
|
@@ -79,8 +79,8 @@ module PulpContainerClient
|
|
79
79
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
80
80
|
end
|
81
81
|
|
82
|
-
if attributes.key?(:'
|
83
|
-
self.
|
82
|
+
if attributes.key?(:'manifest_signing_service')
|
83
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
84
84
|
end
|
85
85
|
|
86
86
|
if attributes.key?(:'pulp_labels')
|
@@ -89,12 +89,12 @@ module PulpContainerClient
|
|
89
89
|
end
|
90
90
|
end
|
91
91
|
|
92
|
-
if attributes.key?(:'
|
93
|
-
self.
|
92
|
+
if attributes.key?(:'description')
|
93
|
+
self.description = attributes[:'description']
|
94
94
|
end
|
95
95
|
|
96
|
-
if attributes.key?(:'
|
97
|
-
self.
|
96
|
+
if attributes.key?(:'name')
|
97
|
+
self.name = attributes[:'name']
|
98
98
|
end
|
99
99
|
end
|
100
100
|
|
@@ -171,10 +171,10 @@ 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
|
-
|
174
|
+
manifest_signing_service == o.manifest_signing_service &&
|
175
175
|
pulp_labels == o.pulp_labels &&
|
176
|
-
|
177
|
-
|
176
|
+
description == o.description &&
|
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
|
-
[retain_repo_versions,
|
189
|
+
[retain_repo_versions, manifest_signing_service, pulp_labels, description, name].hash
|
190
190
|
end
|
191
191
|
|
192
192
|
# Builds the object from hash
|
@@ -18,38 +18,38 @@ module PulpContainerClient
|
|
18
18
|
# Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
|
19
19
|
attr_accessor :retain_repo_versions
|
20
20
|
|
21
|
-
#
|
22
|
-
attr_accessor :
|
21
|
+
# A reference to an associated signing service.
|
22
|
+
attr_accessor :manifest_signing_service
|
23
|
+
|
24
|
+
# Timestamp of creation.
|
25
|
+
attr_accessor :pulp_created
|
23
26
|
|
24
27
|
attr_accessor :latest_version_href
|
25
28
|
|
26
29
|
attr_accessor :pulp_labels
|
27
30
|
|
28
|
-
|
31
|
+
# An optional description.
|
32
|
+
attr_accessor :description
|
29
33
|
|
30
34
|
# A unique name for this repository.
|
31
35
|
attr_accessor :name
|
32
36
|
|
33
|
-
# Timestamp of creation.
|
34
|
-
attr_accessor :pulp_created
|
35
|
-
|
36
|
-
# A reference to an associated signing service.
|
37
|
-
attr_accessor :manifest_signing_service
|
38
|
-
|
39
37
|
attr_accessor :versions_href
|
40
38
|
|
39
|
+
attr_accessor :pulp_href
|
40
|
+
|
41
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
42
42
|
def self.attribute_map
|
43
43
|
{
|
44
44
|
:'retain_repo_versions' => :'retain_repo_versions',
|
45
|
-
:'
|
45
|
+
:'manifest_signing_service' => :'manifest_signing_service',
|
46
|
+
:'pulp_created' => :'pulp_created',
|
46
47
|
:'latest_version_href' => :'latest_version_href',
|
47
48
|
:'pulp_labels' => :'pulp_labels',
|
48
|
-
:'
|
49
|
+
:'description' => :'description',
|
49
50
|
:'name' => :'name',
|
50
|
-
:'
|
51
|
-
:'
|
52
|
-
:'versions_href' => :'versions_href'
|
51
|
+
:'versions_href' => :'versions_href',
|
52
|
+
:'pulp_href' => :'pulp_href'
|
53
53
|
}
|
54
54
|
end
|
55
55
|
|
@@ -57,14 +57,14 @@ module PulpContainerClient
|
|
57
57
|
def self.openapi_types
|
58
58
|
{
|
59
59
|
:'retain_repo_versions' => :'Integer',
|
60
|
-
:'
|
60
|
+
:'manifest_signing_service' => :'String',
|
61
|
+
:'pulp_created' => :'DateTime',
|
61
62
|
:'latest_version_href' => :'String',
|
62
63
|
:'pulp_labels' => :'Hash<String, String>',
|
63
|
-
:'
|
64
|
+
:'description' => :'String',
|
64
65
|
:'name' => :'String',
|
65
|
-
:'
|
66
|
-
:'
|
67
|
-
:'versions_href' => :'String'
|
66
|
+
:'versions_href' => :'String',
|
67
|
+
:'pulp_href' => :'String'
|
68
68
|
}
|
69
69
|
end
|
70
70
|
|
@@ -72,8 +72,8 @@ module PulpContainerClient
|
|
72
72
|
def self.openapi_nullable
|
73
73
|
Set.new([
|
74
74
|
:'retain_repo_versions',
|
75
|
-
:'description',
|
76
75
|
:'manifest_signing_service',
|
76
|
+
:'description',
|
77
77
|
])
|
78
78
|
end
|
79
79
|
|
@@ -96,8 +96,12 @@ module PulpContainerClient
|
|
96
96
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
97
97
|
end
|
98
98
|
|
99
|
-
if attributes.key?(:'
|
100
|
-
self.
|
99
|
+
if attributes.key?(:'manifest_signing_service')
|
100
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
101
|
+
end
|
102
|
+
|
103
|
+
if attributes.key?(:'pulp_created')
|
104
|
+
self.pulp_created = attributes[:'pulp_created']
|
101
105
|
end
|
102
106
|
|
103
107
|
if attributes.key?(:'latest_version_href')
|
@@ -110,25 +114,21 @@ module PulpContainerClient
|
|
110
114
|
end
|
111
115
|
end
|
112
116
|
|
113
|
-
if attributes.key?(:'
|
114
|
-
self.
|
117
|
+
if attributes.key?(:'description')
|
118
|
+
self.description = attributes[:'description']
|
115
119
|
end
|
116
120
|
|
117
121
|
if attributes.key?(:'name')
|
118
122
|
self.name = attributes[:'name']
|
119
123
|
end
|
120
124
|
|
121
|
-
if attributes.key?(:'pulp_created')
|
122
|
-
self.pulp_created = attributes[:'pulp_created']
|
123
|
-
end
|
124
|
-
|
125
|
-
if attributes.key?(:'manifest_signing_service')
|
126
|
-
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
127
|
-
end
|
128
|
-
|
129
125
|
if attributes.key?(:'versions_href')
|
130
126
|
self.versions_href = attributes[:'versions_href']
|
131
127
|
end
|
128
|
+
|
129
|
+
if attributes.key?(:'pulp_href')
|
130
|
+
self.pulp_href = attributes[:'pulp_href']
|
131
|
+
end
|
132
132
|
end
|
133
133
|
|
134
134
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -170,14 +170,14 @@ module PulpContainerClient
|
|
170
170
|
return true if self.equal?(o)
|
171
171
|
self.class == o.class &&
|
172
172
|
retain_repo_versions == o.retain_repo_versions &&
|
173
|
-
|
173
|
+
manifest_signing_service == o.manifest_signing_service &&
|
174
|
+
pulp_created == o.pulp_created &&
|
174
175
|
latest_version_href == o.latest_version_href &&
|
175
176
|
pulp_labels == o.pulp_labels &&
|
176
|
-
|
177
|
+
description == o.description &&
|
177
178
|
name == o.name &&
|
178
|
-
|
179
|
-
|
180
|
-
versions_href == o.versions_href
|
179
|
+
versions_href == o.versions_href &&
|
180
|
+
pulp_href == o.pulp_href
|
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
|
-
[retain_repo_versions,
|
192
|
+
[retain_repo_versions, manifest_signing_service, pulp_created, latest_version_href, pulp_labels, description, name, versions_href, pulp_href].hash
|
193
193
|
end
|
194
194
|
|
195
195
|
# Builds the object from hash
|
@@ -68,22 +68,12 @@ module PulpContainerClient
|
|
68
68
|
# @return Array for valid properties with the reasons
|
69
69
|
def list_invalid_properties
|
70
70
|
invalid_properties = Array.new
|
71
|
-
if @name.nil?
|
72
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
73
|
-
end
|
74
|
-
|
75
|
-
if @is_set.nil?
|
76
|
-
invalid_properties.push('invalid value for "is_set", is_set cannot be nil.')
|
77
|
-
end
|
78
|
-
|
79
71
|
invalid_properties
|
80
72
|
end
|
81
73
|
|
82
74
|
# Check to see if the all the properties in the model are valid
|
83
75
|
# @return true if the model is valid
|
84
76
|
def valid?
|
85
|
-
return false if @name.nil?
|
86
|
-
return false if @is_set.nil?
|
87
77
|
true
|
88
78
|
end
|
89
79
|
|