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