pulp_container_client 2.22.9 → 2.22.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/docs/ContainerContainerDistribution.md +4 -4
- data/docs/ContainerContainerDistributionResponse.md +10 -10
- data/docs/ContainerContainerPullThroughDistribution.md +4 -4
- data/docs/ContainerContainerPullThroughDistributionResponse.md +10 -10
- data/docs/ContainerContainerPushRepository.md +6 -6
- data/docs/ContainerContainerPushRepositoryResponse.md +13 -13
- data/docs/PatchedcontainerContainerDistribution.md +4 -4
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +4 -4
- data/docs/PatchedcontainerContainerPushRepository.md +6 -6
- data/lib/pulp_container_client/models/container_container_distribution.rb +20 -20
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +49 -49
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +20 -20
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +49 -49
- data/lib/pulp_container_client/models/container_container_push_repository.rb +50 -50
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +57 -57
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +20 -20
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +20 -20
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +41 -41
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/models/container_container_distribution_response_spec.rb +9 -9
- data/spec/models/container_container_distribution_spec.rb +4 -4
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +9 -9
- data/spec/models/container_container_pull_through_distribution_spec.rb +4 -4
- data/spec/models/container_container_push_repository_response_spec.rb +10 -10
- 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_pull_through_distribution_spec.rb +4 -4
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +5 -5
- metadata +2 -2
|
@@ -15,48 +15,48 @@ require 'date'
|
|
|
15
15
|
module PulpContainerClient
|
|
16
16
|
# Serializer for Container Push Repositories.
|
|
17
17
|
class ContainerContainerPushRepositoryResponse
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
# A unique name for this repository.
|
|
21
|
-
attr_accessor :name
|
|
18
|
+
# An optional description.
|
|
19
|
+
attr_accessor :description
|
|
22
20
|
|
|
23
|
-
#
|
|
24
|
-
attr_accessor :
|
|
21
|
+
# A reference to an associated signing service.
|
|
22
|
+
attr_accessor :manifest_signing_service
|
|
25
23
|
|
|
26
|
-
attr_accessor :
|
|
24
|
+
attr_accessor :latest_version_href
|
|
27
25
|
|
|
28
26
|
# Timestamp of creation.
|
|
29
27
|
attr_accessor :pulp_created
|
|
30
28
|
|
|
31
|
-
|
|
29
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
|
30
|
+
attr_accessor :retain_repo_versions
|
|
31
|
+
|
|
32
|
+
attr_accessor :pulp_labels
|
|
33
|
+
|
|
34
|
+
# A unique name for this repository.
|
|
35
|
+
attr_accessor :name
|
|
32
36
|
|
|
33
37
|
# The Pulp Resource Name (PRN).
|
|
34
38
|
attr_accessor :prn
|
|
35
39
|
|
|
36
|
-
#
|
|
37
|
-
attr_accessor :
|
|
38
|
-
|
|
39
|
-
# A reference to an associated signing service.
|
|
40
|
-
attr_accessor :manifest_signing_service
|
|
40
|
+
# Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
|
|
41
|
+
attr_accessor :pulp_last_updated
|
|
41
42
|
|
|
42
|
-
|
|
43
|
-
attr_accessor :retain_repo_versions
|
|
43
|
+
attr_accessor :pulp_href
|
|
44
44
|
|
|
45
45
|
attr_accessor :versions_href
|
|
46
46
|
|
|
47
47
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
48
48
|
def self.attribute_map
|
|
49
49
|
{
|
|
50
|
+
:'description' => :'description',
|
|
51
|
+
:'manifest_signing_service' => :'manifest_signing_service',
|
|
50
52
|
:'latest_version_href' => :'latest_version_href',
|
|
53
|
+
:'pulp_created' => :'pulp_created',
|
|
54
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
|
55
|
+
:'pulp_labels' => :'pulp_labels',
|
|
51
56
|
:'name' => :'name',
|
|
57
|
+
:'prn' => :'prn',
|
|
52
58
|
:'pulp_last_updated' => :'pulp_last_updated',
|
|
53
|
-
:'pulp_labels' => :'pulp_labels',
|
|
54
|
-
:'pulp_created' => :'pulp_created',
|
|
55
59
|
:'pulp_href' => :'pulp_href',
|
|
56
|
-
:'prn' => :'prn',
|
|
57
|
-
:'description' => :'description',
|
|
58
|
-
:'manifest_signing_service' => :'manifest_signing_service',
|
|
59
|
-
:'retain_repo_versions' => :'retain_repo_versions',
|
|
60
60
|
:'versions_href' => :'versions_href'
|
|
61
61
|
}
|
|
62
62
|
end
|
|
@@ -64,16 +64,16 @@ module PulpContainerClient
|
|
|
64
64
|
# Attribute type mapping.
|
|
65
65
|
def self.openapi_types
|
|
66
66
|
{
|
|
67
|
+
:'description' => :'String',
|
|
68
|
+
:'manifest_signing_service' => :'String',
|
|
67
69
|
:'latest_version_href' => :'String',
|
|
70
|
+
:'pulp_created' => :'DateTime',
|
|
71
|
+
:'retain_repo_versions' => :'Integer',
|
|
72
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
68
73
|
:'name' => :'String',
|
|
74
|
+
:'prn' => :'String',
|
|
69
75
|
:'pulp_last_updated' => :'DateTime',
|
|
70
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
71
|
-
:'pulp_created' => :'DateTime',
|
|
72
76
|
:'pulp_href' => :'String',
|
|
73
|
-
:'prn' => :'String',
|
|
74
|
-
:'description' => :'String',
|
|
75
|
-
:'manifest_signing_service' => :'String',
|
|
76
|
-
:'retain_repo_versions' => :'Integer',
|
|
77
77
|
:'versions_href' => :'String'
|
|
78
78
|
}
|
|
79
79
|
end
|
|
@@ -102,16 +102,24 @@ module PulpContainerClient
|
|
|
102
102
|
h[k.to_sym] = v
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
+
if attributes.key?(:'description')
|
|
106
|
+
self.description = attributes[:'description']
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
if attributes.key?(:'manifest_signing_service')
|
|
110
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
111
|
+
end
|
|
112
|
+
|
|
105
113
|
if attributes.key?(:'latest_version_href')
|
|
106
114
|
self.latest_version_href = attributes[:'latest_version_href']
|
|
107
115
|
end
|
|
108
116
|
|
|
109
|
-
if attributes.key?(:'
|
|
110
|
-
self.
|
|
117
|
+
if attributes.key?(:'pulp_created')
|
|
118
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
111
119
|
end
|
|
112
120
|
|
|
113
|
-
if attributes.key?(:'
|
|
114
|
-
self.
|
|
121
|
+
if attributes.key?(:'retain_repo_versions')
|
|
122
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
115
123
|
end
|
|
116
124
|
|
|
117
125
|
if attributes.key?(:'pulp_labels')
|
|
@@ -120,28 +128,20 @@ module PulpContainerClient
|
|
|
120
128
|
end
|
|
121
129
|
end
|
|
122
130
|
|
|
123
|
-
if attributes.key?(:'
|
|
124
|
-
self.
|
|
125
|
-
end
|
|
126
|
-
|
|
127
|
-
if attributes.key?(:'pulp_href')
|
|
128
|
-
self.pulp_href = attributes[:'pulp_href']
|
|
131
|
+
if attributes.key?(:'name')
|
|
132
|
+
self.name = attributes[:'name']
|
|
129
133
|
end
|
|
130
134
|
|
|
131
135
|
if attributes.key?(:'prn')
|
|
132
136
|
self.prn = attributes[:'prn']
|
|
133
137
|
end
|
|
134
138
|
|
|
135
|
-
if attributes.key?(:'
|
|
136
|
-
self.
|
|
137
|
-
end
|
|
138
|
-
|
|
139
|
-
if attributes.key?(:'manifest_signing_service')
|
|
140
|
-
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
139
|
+
if attributes.key?(:'pulp_last_updated')
|
|
140
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
141
141
|
end
|
|
142
142
|
|
|
143
|
-
if attributes.key?(:'
|
|
144
|
-
self.
|
|
143
|
+
if attributes.key?(:'pulp_href')
|
|
144
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
145
145
|
end
|
|
146
146
|
|
|
147
147
|
if attributes.key?(:'versions_href')
|
|
@@ -153,22 +153,22 @@ module PulpContainerClient
|
|
|
153
153
|
# @return Array for valid properties with the reasons
|
|
154
154
|
def list_invalid_properties
|
|
155
155
|
invalid_properties = Array.new
|
|
156
|
-
if @name.nil?
|
|
157
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
158
|
-
end
|
|
159
|
-
|
|
160
156
|
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
161
157
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
162
158
|
end
|
|
163
159
|
|
|
160
|
+
if @name.nil?
|
|
161
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
162
|
+
end
|
|
163
|
+
|
|
164
164
|
invalid_properties
|
|
165
165
|
end
|
|
166
166
|
|
|
167
167
|
# Check to see if the all the properties in the model are valid
|
|
168
168
|
# @return true if the model is valid
|
|
169
169
|
def valid?
|
|
170
|
-
return false if @name.nil?
|
|
171
170
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
171
|
+
return false if @name.nil?
|
|
172
172
|
true
|
|
173
173
|
end
|
|
174
174
|
|
|
@@ -187,16 +187,16 @@ module PulpContainerClient
|
|
|
187
187
|
def ==(o)
|
|
188
188
|
return true if self.equal?(o)
|
|
189
189
|
self.class == o.class &&
|
|
190
|
+
description == o.description &&
|
|
191
|
+
manifest_signing_service == o.manifest_signing_service &&
|
|
190
192
|
latest_version_href == o.latest_version_href &&
|
|
193
|
+
pulp_created == o.pulp_created &&
|
|
194
|
+
retain_repo_versions == o.retain_repo_versions &&
|
|
195
|
+
pulp_labels == o.pulp_labels &&
|
|
191
196
|
name == o.name &&
|
|
197
|
+
prn == o.prn &&
|
|
192
198
|
pulp_last_updated == o.pulp_last_updated &&
|
|
193
|
-
pulp_labels == o.pulp_labels &&
|
|
194
|
-
pulp_created == o.pulp_created &&
|
|
195
199
|
pulp_href == o.pulp_href &&
|
|
196
|
-
prn == o.prn &&
|
|
197
|
-
description == o.description &&
|
|
198
|
-
manifest_signing_service == o.manifest_signing_service &&
|
|
199
|
-
retain_repo_versions == o.retain_repo_versions &&
|
|
200
200
|
versions_href == o.versions_href
|
|
201
201
|
end
|
|
202
202
|
|
|
@@ -209,7 +209,7 @@ module PulpContainerClient
|
|
|
209
209
|
# Calculates hash code according to all attributes.
|
|
210
210
|
# @return [Integer] Hash code
|
|
211
211
|
def hash
|
|
212
|
-
[
|
|
212
|
+
[description, manifest_signing_service, latest_version_href, pulp_created, retain_repo_versions, pulp_labels, name, prn, pulp_last_updated, pulp_href, versions_href].hash
|
|
213
213
|
end
|
|
214
214
|
|
|
215
215
|
# Builds the object from hash
|
|
@@ -18,20 +18,20 @@ module PulpContainerClient
|
|
|
18
18
|
# An optional content-guard. If none is specified, a default one will be used.
|
|
19
19
|
attr_accessor :content_guard
|
|
20
20
|
|
|
21
|
-
#
|
|
22
|
-
attr_accessor :
|
|
21
|
+
# Whether this distribution should be shown in the content app.
|
|
22
|
+
attr_accessor :hidden
|
|
23
23
|
|
|
24
24
|
attr_accessor :pulp_labels
|
|
25
25
|
|
|
26
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
|
27
|
+
attr_accessor :name
|
|
28
|
+
|
|
26
29
|
# The latest RepositoryVersion for this Repository will be served.
|
|
27
30
|
attr_accessor :repository
|
|
28
31
|
|
|
29
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\")
|
|
30
33
|
attr_accessor :base_path
|
|
31
34
|
|
|
32
|
-
# Whether this distribution should be shown in the content app.
|
|
33
|
-
attr_accessor :hidden
|
|
34
|
-
|
|
35
35
|
# RepositoryVersion to be served
|
|
36
36
|
attr_accessor :repository_version
|
|
37
37
|
|
|
@@ -45,11 +45,11 @@ module PulpContainerClient
|
|
|
45
45
|
def self.attribute_map
|
|
46
46
|
{
|
|
47
47
|
:'content_guard' => :'content_guard',
|
|
48
|
-
:'
|
|
48
|
+
:'hidden' => :'hidden',
|
|
49
49
|
:'pulp_labels' => :'pulp_labels',
|
|
50
|
+
:'name' => :'name',
|
|
50
51
|
:'repository' => :'repository',
|
|
51
52
|
:'base_path' => :'base_path',
|
|
52
|
-
:'hidden' => :'hidden',
|
|
53
53
|
:'repository_version' => :'repository_version',
|
|
54
54
|
:'private' => :'private',
|
|
55
55
|
:'description' => :'description'
|
|
@@ -60,11 +60,11 @@ module PulpContainerClient
|
|
|
60
60
|
def self.openapi_types
|
|
61
61
|
{
|
|
62
62
|
:'content_guard' => :'String',
|
|
63
|
-
:'
|
|
63
|
+
:'hidden' => :'Boolean',
|
|
64
64
|
:'pulp_labels' => :'Hash<String, String>',
|
|
65
|
+
:'name' => :'String',
|
|
65
66
|
:'repository' => :'String',
|
|
66
67
|
:'base_path' => :'String',
|
|
67
|
-
:'hidden' => :'Boolean',
|
|
68
68
|
:'repository_version' => :'String',
|
|
69
69
|
:'private' => :'Boolean',
|
|
70
70
|
:'description' => :'String'
|
|
@@ -99,8 +99,10 @@ module PulpContainerClient
|
|
|
99
99
|
self.content_guard = attributes[:'content_guard']
|
|
100
100
|
end
|
|
101
101
|
|
|
102
|
-
if attributes.key?(:'
|
|
103
|
-
self.
|
|
102
|
+
if attributes.key?(:'hidden')
|
|
103
|
+
self.hidden = attributes[:'hidden']
|
|
104
|
+
else
|
|
105
|
+
self.hidden = false
|
|
104
106
|
end
|
|
105
107
|
|
|
106
108
|
if attributes.key?(:'pulp_labels')
|
|
@@ -109,6 +111,10 @@ module PulpContainerClient
|
|
|
109
111
|
end
|
|
110
112
|
end
|
|
111
113
|
|
|
114
|
+
if attributes.key?(:'name')
|
|
115
|
+
self.name = attributes[:'name']
|
|
116
|
+
end
|
|
117
|
+
|
|
112
118
|
if attributes.key?(:'repository')
|
|
113
119
|
self.repository = attributes[:'repository']
|
|
114
120
|
end
|
|
@@ -117,12 +123,6 @@ module PulpContainerClient
|
|
|
117
123
|
self.base_path = attributes[:'base_path']
|
|
118
124
|
end
|
|
119
125
|
|
|
120
|
-
if attributes.key?(:'hidden')
|
|
121
|
-
self.hidden = attributes[:'hidden']
|
|
122
|
-
else
|
|
123
|
-
self.hidden = false
|
|
124
|
-
end
|
|
125
|
-
|
|
126
126
|
if attributes.key?(:'repository_version')
|
|
127
127
|
self.repository_version = attributes[:'repository_version']
|
|
128
128
|
end
|
|
@@ -200,11 +200,11 @@ module PulpContainerClient
|
|
|
200
200
|
return true if self.equal?(o)
|
|
201
201
|
self.class == o.class &&
|
|
202
202
|
content_guard == o.content_guard &&
|
|
203
|
-
|
|
203
|
+
hidden == o.hidden &&
|
|
204
204
|
pulp_labels == o.pulp_labels &&
|
|
205
|
+
name == o.name &&
|
|
205
206
|
repository == o.repository &&
|
|
206
207
|
base_path == o.base_path &&
|
|
207
|
-
hidden == o.hidden &&
|
|
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
|
-
[content_guard,
|
|
222
|
+
[content_guard, hidden, pulp_labels, name, repository, base_path, repository_version, private, description].hash
|
|
223
223
|
end
|
|
224
224
|
|
|
225
225
|
# Builds the object from hash
|
data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb
CHANGED
|
@@ -18,20 +18,20 @@ module PulpContainerClient
|
|
|
18
18
|
# An optional content-guard. If none is specified, a default one will be used.
|
|
19
19
|
attr_accessor :content_guard
|
|
20
20
|
|
|
21
|
-
#
|
|
22
|
-
attr_accessor :
|
|
21
|
+
# Whether this distribution should be shown in the content app.
|
|
22
|
+
attr_accessor :hidden
|
|
23
23
|
|
|
24
24
|
attr_accessor :pulp_labels
|
|
25
25
|
|
|
26
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
|
27
|
+
attr_accessor :name
|
|
28
|
+
|
|
26
29
|
# The latest RepositoryVersion for this Repository will be served.
|
|
27
30
|
attr_accessor :repository
|
|
28
31
|
|
|
29
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\")
|
|
30
33
|
attr_accessor :base_path
|
|
31
34
|
|
|
32
|
-
# Whether this distribution should be shown in the content app.
|
|
33
|
-
attr_accessor :hidden
|
|
34
|
-
|
|
35
35
|
# Remote that can be used to fetch content when using pull-through caching.
|
|
36
36
|
attr_accessor :remote
|
|
37
37
|
|
|
@@ -48,11 +48,11 @@ module PulpContainerClient
|
|
|
48
48
|
def self.attribute_map
|
|
49
49
|
{
|
|
50
50
|
:'content_guard' => :'content_guard',
|
|
51
|
-
:'
|
|
51
|
+
:'hidden' => :'hidden',
|
|
52
52
|
:'pulp_labels' => :'pulp_labels',
|
|
53
|
+
:'name' => :'name',
|
|
53
54
|
:'repository' => :'repository',
|
|
54
55
|
:'base_path' => :'base_path',
|
|
55
|
-
:'hidden' => :'hidden',
|
|
56
56
|
:'remote' => :'remote',
|
|
57
57
|
:'distributions' => :'distributions',
|
|
58
58
|
:'private' => :'private',
|
|
@@ -64,11 +64,11 @@ module PulpContainerClient
|
|
|
64
64
|
def self.openapi_types
|
|
65
65
|
{
|
|
66
66
|
:'content_guard' => :'String',
|
|
67
|
-
:'
|
|
67
|
+
:'hidden' => :'Boolean',
|
|
68
68
|
:'pulp_labels' => :'Hash<String, String>',
|
|
69
|
+
:'name' => :'String',
|
|
69
70
|
:'repository' => :'String',
|
|
70
71
|
:'base_path' => :'String',
|
|
71
|
-
:'hidden' => :'Boolean',
|
|
72
72
|
:'remote' => :'String',
|
|
73
73
|
:'distributions' => :'Array<String>',
|
|
74
74
|
:'private' => :'Boolean',
|
|
@@ -103,8 +103,10 @@ module PulpContainerClient
|
|
|
103
103
|
self.content_guard = attributes[:'content_guard']
|
|
104
104
|
end
|
|
105
105
|
|
|
106
|
-
if attributes.key?(:'
|
|
107
|
-
self.
|
|
106
|
+
if attributes.key?(:'hidden')
|
|
107
|
+
self.hidden = attributes[:'hidden']
|
|
108
|
+
else
|
|
109
|
+
self.hidden = false
|
|
108
110
|
end
|
|
109
111
|
|
|
110
112
|
if attributes.key?(:'pulp_labels')
|
|
@@ -113,6 +115,10 @@ module PulpContainerClient
|
|
|
113
115
|
end
|
|
114
116
|
end
|
|
115
117
|
|
|
118
|
+
if attributes.key?(:'name')
|
|
119
|
+
self.name = attributes[:'name']
|
|
120
|
+
end
|
|
121
|
+
|
|
116
122
|
if attributes.key?(:'repository')
|
|
117
123
|
self.repository = attributes[:'repository']
|
|
118
124
|
end
|
|
@@ -121,12 +127,6 @@ module PulpContainerClient
|
|
|
121
127
|
self.base_path = attributes[:'base_path']
|
|
122
128
|
end
|
|
123
129
|
|
|
124
|
-
if attributes.key?(:'hidden')
|
|
125
|
-
self.hidden = attributes[:'hidden']
|
|
126
|
-
else
|
|
127
|
-
self.hidden = false
|
|
128
|
-
end
|
|
129
|
-
|
|
130
130
|
if attributes.key?(:'remote')
|
|
131
131
|
self.remote = attributes[:'remote']
|
|
132
132
|
end
|
|
@@ -210,11 +210,11 @@ module PulpContainerClient
|
|
|
210
210
|
return true if self.equal?(o)
|
|
211
211
|
self.class == o.class &&
|
|
212
212
|
content_guard == o.content_guard &&
|
|
213
|
-
|
|
213
|
+
hidden == o.hidden &&
|
|
214
214
|
pulp_labels == o.pulp_labels &&
|
|
215
|
+
name == o.name &&
|
|
215
216
|
repository == o.repository &&
|
|
216
217
|
base_path == o.base_path &&
|
|
217
|
-
hidden == o.hidden &&
|
|
218
218
|
remote == o.remote &&
|
|
219
219
|
distributions == o.distributions &&
|
|
220
220
|
private == o.private &&
|
|
@@ -230,7 +230,7 @@ module PulpContainerClient
|
|
|
230
230
|
# Calculates hash code according to all attributes.
|
|
231
231
|
# @return [Integer] Hash code
|
|
232
232
|
def hash
|
|
233
|
-
[content_guard,
|
|
233
|
+
[content_guard, hidden, pulp_labels, name, repository, base_path, remote, distributions, private, description].hash
|
|
234
234
|
end
|
|
235
235
|
|
|
236
236
|
# Builds the object from hash
|
|
@@ -15,11 +15,6 @@ require 'date'
|
|
|
15
15
|
module PulpContainerClient
|
|
16
16
|
# Serializer for Container Push Repositories.
|
|
17
17
|
class PatchedcontainerContainerPushRepository
|
|
18
|
-
# A unique name for this repository.
|
|
19
|
-
attr_accessor :name
|
|
20
|
-
|
|
21
|
-
attr_accessor :pulp_labels
|
|
22
|
-
|
|
23
18
|
# An optional description.
|
|
24
19
|
attr_accessor :description
|
|
25
20
|
|
|
@@ -29,25 +24,30 @@ module PulpContainerClient
|
|
|
29
24
|
# Retain X versions of the repository. Default is null which retains all versions.
|
|
30
25
|
attr_accessor :retain_repo_versions
|
|
31
26
|
|
|
27
|
+
attr_accessor :pulp_labels
|
|
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
|
-
:'name' => :'name',
|
|
36
|
-
:'pulp_labels' => :'pulp_labels',
|
|
37
35
|
:'description' => :'description',
|
|
38
36
|
:'manifest_signing_service' => :'manifest_signing_service',
|
|
39
|
-
:'retain_repo_versions' => :'retain_repo_versions'
|
|
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
|
-
:'name' => :'String',
|
|
47
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
48
46
|
:'description' => :'String',
|
|
49
47
|
:'manifest_signing_service' => :'String',
|
|
50
|
-
:'retain_repo_versions' => :'Integer'
|
|
48
|
+
:'retain_repo_versions' => :'Integer',
|
|
49
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
50
|
+
:'name' => :'String'
|
|
51
51
|
}
|
|
52
52
|
end
|
|
53
53
|
|
|
@@ -56,7 +56,7 @@ module PulpContainerClient
|
|
|
56
56
|
Set.new([
|
|
57
57
|
:'description',
|
|
58
58
|
:'manifest_signing_service',
|
|
59
|
-
:'retain_repo_versions'
|
|
59
|
+
:'retain_repo_versions',
|
|
60
60
|
])
|
|
61
61
|
end
|
|
62
62
|
|
|
@@ -75,16 +75,6 @@ module PulpContainerClient
|
|
|
75
75
|
h[k.to_sym] = v
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
if attributes.key?(:'name')
|
|
79
|
-
self.name = attributes[:'name']
|
|
80
|
-
end
|
|
81
|
-
|
|
82
|
-
if attributes.key?(:'pulp_labels')
|
|
83
|
-
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
84
|
-
self.pulp_labels = value
|
|
85
|
-
end
|
|
86
|
-
end
|
|
87
|
-
|
|
88
78
|
if attributes.key?(:'description')
|
|
89
79
|
self.description = attributes[:'description']
|
|
90
80
|
end
|
|
@@ -96,16 +86,22 @@ module PulpContainerClient
|
|
|
96
86
|
if attributes.key?(:'retain_repo_versions')
|
|
97
87
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
98
88
|
end
|
|
89
|
+
|
|
90
|
+
if attributes.key?(:'pulp_labels')
|
|
91
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
92
|
+
self.pulp_labels = value
|
|
93
|
+
end
|
|
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 !@name.nil? && @name.to_s.length < 1
|
|
106
|
-
invalid_properties.push('invalid value for "name", the character length must be great 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
|
|
@@ -114,28 +110,22 @@ module PulpContainerClient
|
|
|
114
110
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
115
111
|
end
|
|
116
112
|
|
|
113
|
+
if !@name.nil? && @name.to_s.length < 1
|
|
114
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
115
|
+
end
|
|
116
|
+
|
|
117
117
|
invalid_properties
|
|
118
118
|
end
|
|
119
119
|
|
|
120
120
|
# Check to see if the all the properties in the model are valid
|
|
121
121
|
# @return true if the model is valid
|
|
122
122
|
def valid?
|
|
123
|
-
return false if !@name.nil? && @name.to_s.length < 1
|
|
124
123
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
125
124
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
125
|
+
return false if !@name.nil? && @name.to_s.length < 1
|
|
126
126
|
true
|
|
127
127
|
end
|
|
128
128
|
|
|
129
|
-
# Custom attribute writer method with validation
|
|
130
|
-
# @param [Object] name Value to be assigned
|
|
131
|
-
def name=(name)
|
|
132
|
-
if !name.nil? && name.to_s.length < 1
|
|
133
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
134
|
-
end
|
|
135
|
-
|
|
136
|
-
@name = name
|
|
137
|
-
end
|
|
138
|
-
|
|
139
129
|
# Custom attribute writer method with validation
|
|
140
130
|
# @param [Object] description Value to be assigned
|
|
141
131
|
def description=(description)
|
|
@@ -156,16 +146,26 @@ module PulpContainerClient
|
|
|
156
146
|
@retain_repo_versions = retain_repo_versions
|
|
157
147
|
end
|
|
158
148
|
|
|
149
|
+
# Custom attribute writer method with validation
|
|
150
|
+
# @param [Object] name Value to be assigned
|
|
151
|
+
def name=(name)
|
|
152
|
+
if !name.nil? && name.to_s.length < 1
|
|
153
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
@name = name
|
|
157
|
+
end
|
|
158
|
+
|
|
159
159
|
# Checks equality by comparing each attribute.
|
|
160
160
|
# @param [Object] Object to be compared
|
|
161
161
|
def ==(o)
|
|
162
162
|
return true if self.equal?(o)
|
|
163
163
|
self.class == o.class &&
|
|
164
|
-
name == o.name &&
|
|
165
|
-
pulp_labels == o.pulp_labels &&
|
|
166
164
|
description == o.description &&
|
|
167
165
|
manifest_signing_service == o.manifest_signing_service &&
|
|
168
|
-
retain_repo_versions == o.retain_repo_versions
|
|
166
|
+
retain_repo_versions == o.retain_repo_versions &&
|
|
167
|
+
pulp_labels == o.pulp_labels &&
|
|
168
|
+
name == o.name
|
|
169
169
|
end
|
|
170
170
|
|
|
171
171
|
# @see the `==` method
|
|
@@ -177,7 +177,7 @@ module PulpContainerClient
|
|
|
177
177
|
# Calculates hash code according to all attributes.
|
|
178
178
|
# @return [Integer] Hash code
|
|
179
179
|
def hash
|
|
180
|
-
[
|
|
180
|
+
[description, manifest_signing_service, retain_repo_versions, pulp_labels, name].hash
|
|
181
181
|
end
|
|
182
182
|
|
|
183
183
|
# Builds the object from hash
|