pulp_container_client 2.14.18 → 2.15.0.dev1675825732
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 +5 -5
- data/docs/ContainerContainerDistributionResponse.md +8 -8
- 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 +5 -5
- 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 +20 -20
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +35 -35
- data/lib/pulp_container_client/models/container_container_push_repository.rb +33 -33
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +36 -36
- 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 +20 -20
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +33 -33
- 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 +6 -6
- data/spec/models/container_container_push_repository_spec.rb +4 -4
- data/spec/models/patchedcontainer_container_distribution_spec.rb +4 -4
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
- metadata +63 -63
@@ -15,20 +15,20 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class ContainerContainerDistribution
|
18
|
+
# The latest RepositoryVersion for this Repository will be served.
|
19
|
+
attr_accessor :repository
|
20
|
+
|
18
21
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
19
22
|
attr_accessor :base_path
|
20
23
|
|
21
|
-
attr_accessor :pulp_labels
|
22
|
-
|
23
24
|
# A unique name. Ex, `rawhide` and `stable`.
|
24
25
|
attr_accessor :name
|
25
26
|
|
27
|
+
attr_accessor :pulp_labels
|
28
|
+
|
26
29
|
# An optional content-guard. If none is specified, a default one will be used.
|
27
30
|
attr_accessor :content_guard
|
28
31
|
|
29
|
-
# The latest RepositoryVersion for this Repository will be served.
|
30
|
-
attr_accessor :repository
|
31
|
-
|
32
32
|
# RepositoryVersion to be served
|
33
33
|
attr_accessor :repository_version
|
34
34
|
|
@@ -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
|
+
:'repository' => :'repository',
|
44
45
|
:'base_path' => :'base_path',
|
45
|
-
:'pulp_labels' => :'pulp_labels',
|
46
46
|
:'name' => :'name',
|
47
|
+
:'pulp_labels' => :'pulp_labels',
|
47
48
|
:'content_guard' => :'content_guard',
|
48
|
-
:'repository' => :'repository',
|
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
|
+
:'repository' => :'String',
|
58
59
|
:'base_path' => :'String',
|
59
|
-
:'pulp_labels' => :'Hash<String, String>',
|
60
60
|
:'name' => :'String',
|
61
|
+
:'pulp_labels' => :'Hash<String, String>',
|
61
62
|
:'content_guard' => :'String',
|
62
|
-
:'repository' => :'String',
|
63
63
|
:'repository_version' => :'String',
|
64
64
|
:'private' => :'Boolean',
|
65
65
|
:'description' => :'String'
|
@@ -90,28 +90,28 @@ module PulpContainerClient
|
|
90
90
|
h[k.to_sym] = v
|
91
91
|
}
|
92
92
|
|
93
|
+
if attributes.key?(:'repository')
|
94
|
+
self.repository = attributes[:'repository']
|
95
|
+
end
|
96
|
+
|
93
97
|
if attributes.key?(:'base_path')
|
94
98
|
self.base_path = attributes[:'base_path']
|
95
99
|
end
|
96
100
|
|
101
|
+
if attributes.key?(:'name')
|
102
|
+
self.name = attributes[:'name']
|
103
|
+
end
|
104
|
+
|
97
105
|
if attributes.key?(:'pulp_labels')
|
98
106
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
99
107
|
self.pulp_labels = value
|
100
108
|
end
|
101
109
|
end
|
102
110
|
|
103
|
-
if attributes.key?(:'name')
|
104
|
-
self.name = attributes[:'name']
|
105
|
-
end
|
106
|
-
|
107
111
|
if attributes.key?(:'content_guard')
|
108
112
|
self.content_guard = attributes[:'content_guard']
|
109
113
|
end
|
110
114
|
|
111
|
-
if attributes.key?(:'repository')
|
112
|
-
self.repository = attributes[:'repository']
|
113
|
-
end
|
114
|
-
|
115
115
|
if attributes.key?(:'repository_version')
|
116
116
|
self.repository_version = attributes[:'repository_version']
|
117
117
|
end
|
@@ -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
|
+
repository == o.repository &&
|
209
210
|
base_path == o.base_path &&
|
210
|
-
pulp_labels == o.pulp_labels &&
|
211
211
|
name == o.name &&
|
212
|
+
pulp_labels == o.pulp_labels &&
|
212
213
|
content_guard == o.content_guard &&
|
213
|
-
repository == o.repository &&
|
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, base_path, name, pulp_labels, content_guard, repository_version, private, description].hash
|
229
229
|
end
|
230
230
|
|
231
231
|
# Builds the object from hash
|
@@ -15,25 +15,25 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class ContainerContainerDistributionResponse
|
18
|
+
# The latest RepositoryVersion for this Repository will be served.
|
19
|
+
attr_accessor :repository
|
20
|
+
|
21
|
+
attr_accessor :pulp_href
|
22
|
+
|
18
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\")
|
19
24
|
attr_accessor :base_path
|
20
25
|
|
21
|
-
|
22
|
-
|
23
|
-
attr_accessor :pulp_href
|
26
|
+
# Timestamp of creation.
|
27
|
+
attr_accessor :pulp_created
|
24
28
|
|
25
29
|
# A unique name. Ex, `rawhide` and `stable`.
|
26
30
|
attr_accessor :name
|
27
31
|
|
28
|
-
|
29
|
-
attr_accessor :pulp_created
|
32
|
+
attr_accessor :pulp_labels
|
30
33
|
|
31
34
|
# An optional content-guard. If none is specified, a default one will be used.
|
32
35
|
attr_accessor :content_guard
|
33
36
|
|
34
|
-
# The latest RepositoryVersion for this Repository will be served.
|
35
|
-
attr_accessor :repository
|
36
|
-
|
37
37
|
# RepositoryVersion to be served
|
38
38
|
attr_accessor :repository_version
|
39
39
|
|
@@ -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',
|
55
|
+
:'repository' => :'repository',
|
57
56
|
:'pulp_href' => :'pulp_href',
|
58
|
-
:'
|
57
|
+
:'base_path' => :'base_path',
|
59
58
|
:'pulp_created' => :'pulp_created',
|
59
|
+
:'name' => :'name',
|
60
|
+
:'pulp_labels' => :'pulp_labels',
|
60
61
|
:'content_guard' => :'content_guard',
|
61
|
-
:'repository' => :'repository',
|
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>',
|
73
|
+
:'repository' => :'String',
|
75
74
|
:'pulp_href' => :'String',
|
76
|
-
:'
|
75
|
+
:'base_path' => :'String',
|
77
76
|
:'pulp_created' => :'DateTime',
|
77
|
+
:'name' => :'String',
|
78
|
+
:'pulp_labels' => :'Hash<String, String>',
|
78
79
|
:'content_guard' => :'String',
|
79
|
-
:'repository' => :'String',
|
80
80
|
:'repository_version' => :'String',
|
81
81
|
:'registry_path' => :'String',
|
82
82
|
:'namespace' => :'String',
|
@@ -109,34 +109,34 @@ module PulpContainerClient
|
|
109
109
|
h[k.to_sym] = v
|
110
110
|
}
|
111
111
|
|
112
|
-
if attributes.key?(:'
|
113
|
-
self.
|
114
|
-
end
|
115
|
-
|
116
|
-
if attributes.key?(:'pulp_labels')
|
117
|
-
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
118
|
-
self.pulp_labels = value
|
119
|
-
end
|
112
|
+
if attributes.key?(:'repository')
|
113
|
+
self.repository = attributes[:'repository']
|
120
114
|
end
|
121
115
|
|
122
116
|
if attributes.key?(:'pulp_href')
|
123
117
|
self.pulp_href = attributes[:'pulp_href']
|
124
118
|
end
|
125
119
|
|
126
|
-
if attributes.key?(:'
|
127
|
-
self.
|
120
|
+
if attributes.key?(:'base_path')
|
121
|
+
self.base_path = attributes[:'base_path']
|
128
122
|
end
|
129
123
|
|
130
124
|
if attributes.key?(:'pulp_created')
|
131
125
|
self.pulp_created = attributes[:'pulp_created']
|
132
126
|
end
|
133
127
|
|
134
|
-
if attributes.key?(:'
|
135
|
-
self.
|
128
|
+
if attributes.key?(:'name')
|
129
|
+
self.name = attributes[:'name']
|
136
130
|
end
|
137
131
|
|
138
|
-
if attributes.key?(:'
|
139
|
-
|
132
|
+
if attributes.key?(:'pulp_labels')
|
133
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
134
|
+
self.pulp_labels = value
|
135
|
+
end
|
136
|
+
end
|
137
|
+
|
138
|
+
if attributes.key?(:'content_guard')
|
139
|
+
self.content_guard = attributes[:'content_guard']
|
140
140
|
end
|
141
141
|
|
142
142
|
if attributes.key?(:'repository_version')
|
@@ -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 &&
|
191
|
+
repository == o.repository &&
|
193
192
|
pulp_href == o.pulp_href &&
|
194
|
-
|
193
|
+
base_path == o.base_path &&
|
195
194
|
pulp_created == o.pulp_created &&
|
195
|
+
name == o.name &&
|
196
|
+
pulp_labels == o.pulp_labels &&
|
196
197
|
content_guard == o.content_guard &&
|
197
|
-
repository == o.repository &&
|
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_href, base_path, pulp_created, name, pulp_labels, content_guard, repository_version, registry_path, namespace, private, description].hash
|
215
215
|
end
|
216
216
|
|
217
217
|
# Builds the object from hash
|
@@ -15,27 +15,27 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class ContainerContainerPushRepository
|
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
|
-
attr_accessor :retain_repo_versions
|
20
|
-
|
21
18
|
# An optional description.
|
22
19
|
attr_accessor :description
|
23
20
|
|
24
|
-
|
21
|
+
# 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.
|
22
|
+
attr_accessor :retain_repo_versions
|
25
23
|
|
26
24
|
# A unique name for this repository.
|
27
25
|
attr_accessor :name
|
28
26
|
|
27
|
+
attr_accessor :pulp_labels
|
28
|
+
|
29
29
|
# A reference to an associated signing service.
|
30
30
|
attr_accessor :manifest_signing_service
|
31
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
35
|
:'description' => :'description',
|
37
|
-
:'
|
36
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
38
37
|
:'name' => :'name',
|
38
|
+
:'pulp_labels' => :'pulp_labels',
|
39
39
|
:'manifest_signing_service' => :'manifest_signing_service'
|
40
40
|
}
|
41
41
|
end
|
@@ -43,10 +43,10 @@ module PulpContainerClient
|
|
43
43
|
# Attribute type mapping.
|
44
44
|
def self.openapi_types
|
45
45
|
{
|
46
|
-
:'retain_repo_versions' => :'Integer',
|
47
46
|
:'description' => :'String',
|
48
|
-
:'
|
47
|
+
:'retain_repo_versions' => :'Integer',
|
49
48
|
:'name' => :'String',
|
49
|
+
:'pulp_labels' => :'Hash<String, String>',
|
50
50
|
:'manifest_signing_service' => :'String'
|
51
51
|
}
|
52
52
|
end
|
@@ -54,8 +54,8 @@ module PulpContainerClient
|
|
54
54
|
# List of attributes with nullable: true
|
55
55
|
def self.openapi_nullable
|
56
56
|
Set.new([
|
57
|
-
:'retain_repo_versions',
|
58
57
|
:'description',
|
58
|
+
:'retain_repo_versions',
|
59
59
|
:'manifest_signing_service'
|
60
60
|
])
|
61
61
|
end
|
@@ -75,12 +75,16 @@ module PulpContainerClient
|
|
75
75
|
h[k.to_sym] = v
|
76
76
|
}
|
77
77
|
|
78
|
+
if attributes.key?(:'description')
|
79
|
+
self.description = attributes[:'description']
|
80
|
+
end
|
81
|
+
|
78
82
|
if attributes.key?(:'retain_repo_versions')
|
79
83
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
80
84
|
end
|
81
85
|
|
82
|
-
if attributes.key?(:'
|
83
|
-
self.
|
86
|
+
if attributes.key?(:'name')
|
87
|
+
self.name = attributes[:'name']
|
84
88
|
end
|
85
89
|
|
86
90
|
if attributes.key?(:'pulp_labels')
|
@@ -89,10 +93,6 @@ module PulpContainerClient
|
|
89
93
|
end
|
90
94
|
end
|
91
95
|
|
92
|
-
if attributes.key?(:'name')
|
93
|
-
self.name = attributes[:'name']
|
94
|
-
end
|
95
|
-
|
96
96
|
if attributes.key?(:'manifest_signing_service')
|
97
97
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
98
98
|
end
|
@@ -102,14 +102,14 @@ module PulpContainerClient
|
|
102
102
|
# @return Array for valid properties with the reasons
|
103
103
|
def list_invalid_properties
|
104
104
|
invalid_properties = Array.new
|
105
|
-
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
106
|
-
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
107
|
-
end
|
108
|
-
|
109
105
|
if !@description.nil? && @description.to_s.length < 1
|
110
106
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
111
107
|
end
|
112
108
|
|
109
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
110
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
111
|
+
end
|
112
|
+
|
113
113
|
if @name.nil?
|
114
114
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
115
115
|
end
|
@@ -124,23 +124,13 @@ module PulpContainerClient
|
|
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 !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
128
127
|
return false if !@description.nil? && @description.to_s.length < 1
|
128
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
129
129
|
return false if @name.nil?
|
130
130
|
return false if @name.to_s.length < 1
|
131
131
|
true
|
132
132
|
end
|
133
133
|
|
134
|
-
# Custom attribute writer method with validation
|
135
|
-
# @param [Object] retain_repo_versions Value to be assigned
|
136
|
-
def retain_repo_versions=(retain_repo_versions)
|
137
|
-
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
138
|
-
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
139
|
-
end
|
140
|
-
|
141
|
-
@retain_repo_versions = retain_repo_versions
|
142
|
-
end
|
143
|
-
|
144
134
|
# Custom attribute writer method with validation
|
145
135
|
# @param [Object] description Value to be assigned
|
146
136
|
def description=(description)
|
@@ -151,6 +141,16 @@ module PulpContainerClient
|
|
151
141
|
@description = description
|
152
142
|
end
|
153
143
|
|
144
|
+
# Custom attribute writer method with validation
|
145
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
146
|
+
def retain_repo_versions=(retain_repo_versions)
|
147
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
148
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
149
|
+
end
|
150
|
+
|
151
|
+
@retain_repo_versions = retain_repo_versions
|
152
|
+
end
|
153
|
+
|
154
154
|
# Custom attribute writer method with validation
|
155
155
|
# @param [Object] name Value to be assigned
|
156
156
|
def name=(name)
|
@@ -170,10 +170,10 @@ module PulpContainerClient
|
|
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
173
|
description == o.description &&
|
175
|
-
|
174
|
+
retain_repo_versions == o.retain_repo_versions &&
|
176
175
|
name == o.name &&
|
176
|
+
pulp_labels == o.pulp_labels &&
|
177
177
|
manifest_signing_service == o.manifest_signing_service
|
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
|
+
[description, retain_repo_versions, name, pulp_labels, manifest_signing_service].hash
|
190
190
|
end
|
191
191
|
|
192
192
|
# Builds the object from hash
|
@@ -15,23 +15,23 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class ContainerContainerPushRepositoryResponse
|
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
|
-
attr_accessor :retain_repo_versions
|
20
|
-
|
21
18
|
# An optional description.
|
22
19
|
attr_accessor :description
|
23
20
|
|
24
|
-
attr_accessor :
|
21
|
+
attr_accessor :pulp_href
|
25
22
|
|
26
|
-
|
23
|
+
# 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.
|
24
|
+
attr_accessor :retain_repo_versions
|
27
25
|
|
28
|
-
attr_accessor :
|
26
|
+
attr_accessor :latest_version_href
|
27
|
+
|
28
|
+
# Timestamp of creation.
|
29
|
+
attr_accessor :pulp_created
|
29
30
|
|
30
31
|
# A unique name for this repository.
|
31
32
|
attr_accessor :name
|
32
33
|
|
33
|
-
|
34
|
-
attr_accessor :pulp_created
|
34
|
+
attr_accessor :pulp_labels
|
35
35
|
|
36
36
|
# A reference to an associated signing service.
|
37
37
|
attr_accessor :manifest_signing_service
|
@@ -41,13 +41,13 @@ module PulpContainerClient
|
|
41
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
42
42
|
def self.attribute_map
|
43
43
|
{
|
44
|
-
:'retain_repo_versions' => :'retain_repo_versions',
|
45
44
|
:'description' => :'description',
|
46
|
-
:'latest_version_href' => :'latest_version_href',
|
47
|
-
:'pulp_labels' => :'pulp_labels',
|
48
45
|
:'pulp_href' => :'pulp_href',
|
49
|
-
:'
|
46
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
47
|
+
:'latest_version_href' => :'latest_version_href',
|
50
48
|
:'pulp_created' => :'pulp_created',
|
49
|
+
:'name' => :'name',
|
50
|
+
:'pulp_labels' => :'pulp_labels',
|
51
51
|
:'manifest_signing_service' => :'manifest_signing_service',
|
52
52
|
:'versions_href' => :'versions_href'
|
53
53
|
}
|
@@ -56,13 +56,13 @@ module PulpContainerClient
|
|
56
56
|
# Attribute type mapping.
|
57
57
|
def self.openapi_types
|
58
58
|
{
|
59
|
-
:'retain_repo_versions' => :'Integer',
|
60
59
|
:'description' => :'String',
|
61
|
-
:'latest_version_href' => :'String',
|
62
|
-
:'pulp_labels' => :'Hash<String, String>',
|
63
60
|
:'pulp_href' => :'String',
|
64
|
-
:'
|
61
|
+
:'retain_repo_versions' => :'Integer',
|
62
|
+
:'latest_version_href' => :'String',
|
65
63
|
:'pulp_created' => :'DateTime',
|
64
|
+
:'name' => :'String',
|
65
|
+
:'pulp_labels' => :'Hash<String, String>',
|
66
66
|
:'manifest_signing_service' => :'String',
|
67
67
|
:'versions_href' => :'String'
|
68
68
|
}
|
@@ -71,8 +71,8 @@ module PulpContainerClient
|
|
71
71
|
# List of attributes with nullable: true
|
72
72
|
def self.openapi_nullable
|
73
73
|
Set.new([
|
74
|
-
:'retain_repo_versions',
|
75
74
|
:'description',
|
75
|
+
:'retain_repo_versions',
|
76
76
|
:'manifest_signing_service',
|
77
77
|
])
|
78
78
|
end
|
@@ -92,34 +92,34 @@ module PulpContainerClient
|
|
92
92
|
h[k.to_sym] = v
|
93
93
|
}
|
94
94
|
|
95
|
-
if attributes.key?(:'retain_repo_versions')
|
96
|
-
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
97
|
-
end
|
98
|
-
|
99
95
|
if attributes.key?(:'description')
|
100
96
|
self.description = attributes[:'description']
|
101
97
|
end
|
102
98
|
|
103
|
-
if attributes.key?(:'
|
104
|
-
self.
|
99
|
+
if attributes.key?(:'pulp_href')
|
100
|
+
self.pulp_href = attributes[:'pulp_href']
|
105
101
|
end
|
106
102
|
|
107
|
-
if attributes.key?(:'
|
108
|
-
|
109
|
-
self.pulp_labels = value
|
110
|
-
end
|
103
|
+
if attributes.key?(:'retain_repo_versions')
|
104
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
111
105
|
end
|
112
106
|
|
113
|
-
if attributes.key?(:'
|
114
|
-
self.
|
107
|
+
if attributes.key?(:'latest_version_href')
|
108
|
+
self.latest_version_href = attributes[:'latest_version_href']
|
109
|
+
end
|
110
|
+
|
111
|
+
if attributes.key?(:'pulp_created')
|
112
|
+
self.pulp_created = attributes[:'pulp_created']
|
115
113
|
end
|
116
114
|
|
117
115
|
if attributes.key?(:'name')
|
118
116
|
self.name = attributes[:'name']
|
119
117
|
end
|
120
118
|
|
121
|
-
if attributes.key?(:'
|
122
|
-
|
119
|
+
if attributes.key?(:'pulp_labels')
|
120
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
121
|
+
self.pulp_labels = value
|
122
|
+
end
|
123
123
|
end
|
124
124
|
|
125
125
|
if attributes.key?(:'manifest_signing_service')
|
@@ -169,13 +169,13 @@ module PulpContainerClient
|
|
169
169
|
def ==(o)
|
170
170
|
return true if self.equal?(o)
|
171
171
|
self.class == o.class &&
|
172
|
-
retain_repo_versions == o.retain_repo_versions &&
|
173
172
|
description == o.description &&
|
174
|
-
latest_version_href == o.latest_version_href &&
|
175
|
-
pulp_labels == o.pulp_labels &&
|
176
173
|
pulp_href == o.pulp_href &&
|
177
|
-
|
174
|
+
retain_repo_versions == o.retain_repo_versions &&
|
175
|
+
latest_version_href == o.latest_version_href &&
|
178
176
|
pulp_created == o.pulp_created &&
|
177
|
+
name == o.name &&
|
178
|
+
pulp_labels == o.pulp_labels &&
|
179
179
|
manifest_signing_service == o.manifest_signing_service &&
|
180
180
|
versions_href == o.versions_href
|
181
181
|
end
|
@@ -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
|
+
[description, pulp_href, retain_repo_versions, latest_version_href, pulp_created, name, pulp_labels, manifest_signing_service, versions_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
|
|
@@ -85,6 +85,10 @@ module PulpContainerClient
|
|
85
85
|
invalid_properties.push('invalid value for "role", role cannot be nil.')
|
86
86
|
end
|
87
87
|
|
88
|
+
if @role.to_s.length < 1
|
89
|
+
invalid_properties.push('invalid value for "role", the character length must be great than or equal to 1.')
|
90
|
+
end
|
91
|
+
|
88
92
|
invalid_properties
|
89
93
|
end
|
90
94
|
|
@@ -92,9 +96,24 @@ module PulpContainerClient
|
|
92
96
|
# @return true if the model is valid
|
93
97
|
def valid?
|
94
98
|
return false if @role.nil?
|
99
|
+
return false if @role.to_s.length < 1
|
95
100
|
true
|
96
101
|
end
|
97
102
|
|
103
|
+
# Custom attribute writer method with validation
|
104
|
+
# @param [Object] role Value to be assigned
|
105
|
+
def role=(role)
|
106
|
+
if role.nil?
|
107
|
+
fail ArgumentError, 'role cannot be nil'
|
108
|
+
end
|
109
|
+
|
110
|
+
if role.to_s.length < 1
|
111
|
+
fail ArgumentError, 'invalid value for "role", the character length must be great than or equal to 1.'
|
112
|
+
end
|
113
|
+
|
114
|
+
@role = role
|
115
|
+
end
|
116
|
+
|
98
117
|
# Checks equality by comparing each attribute.
|
99
118
|
# @param [Object] Object to be compared
|
100
119
|
def ==(o)
|