pulp_container_client 2.19.16 → 2.19.17
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 +5 -5
- data/docs/ContainerContainerDistributionResponse.md +10 -10
- data/docs/ContainerContainerPullThroughDistribution.md +5 -5
- data/docs/ContainerContainerPullThroughDistributionResponse.md +10 -10
- data/docs/ContainerContainerPushRepository.md +7 -7
- data/docs/ContainerContainerPushRepositoryResponse.md +13 -13
- data/docs/PatchedcontainerContainerDistribution.md +5 -5
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +5 -5
- data/docs/PatchedcontainerContainerPushRepository.md +7 -7
- data/lib/pulp_container_client/models/container_container_distribution.rb +20 -20
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +41 -41
- 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 +41 -41
- data/lib/pulp_container_client/models/container_container_push_repository.rb +46 -46
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +55 -55
- 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 +46 -46
- 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 +6 -6
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +9 -9
- data/spec/models/container_container_pull_through_distribution_spec.rb +6 -6
- data/spec/models/container_container_push_repository_response_spec.rb +9 -9
- data/spec/models/container_container_push_repository_spec.rb +4 -4
- data/spec/models/patchedcontainer_container_distribution_spec.rb +6 -6
- data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +6 -6
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
- metadata +2 -2
|
@@ -15,11 +15,14 @@ require 'date'
|
|
|
15
15
|
module PulpContainerClient
|
|
16
16
|
# A serializer for a specialized pull-through distribution referencing sub-distributions.
|
|
17
17
|
class ContainerContainerPullThroughDistribution
|
|
18
|
-
attr_accessor :pulp_labels
|
|
19
|
-
|
|
20
18
|
# A unique name. Ex, `rawhide` and `stable`.
|
|
21
19
|
attr_accessor :name
|
|
22
20
|
|
|
21
|
+
# The latest RepositoryVersion for this Repository will be served.
|
|
22
|
+
attr_accessor :repository
|
|
23
|
+
|
|
24
|
+
attr_accessor :pulp_labels
|
|
25
|
+
|
|
23
26
|
# The registry path exposed by this pull-through distribution.
|
|
24
27
|
attr_accessor :base_path
|
|
25
28
|
|
|
@@ -29,9 +32,6 @@ module PulpContainerClient
|
|
|
29
32
|
# An optional content-guard. If none is specified, a default one will be used.
|
|
30
33
|
attr_accessor :content_guard
|
|
31
34
|
|
|
32
|
-
# The latest RepositoryVersion for this Repository will be served.
|
|
33
|
-
attr_accessor :repository
|
|
34
|
-
|
|
35
35
|
# Remote that can be used to fetch content when using pull-through caching.
|
|
36
36
|
attr_accessor :remote
|
|
37
37
|
|
|
@@ -47,12 +47,12 @@ module PulpContainerClient
|
|
|
47
47
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
48
48
|
def self.attribute_map
|
|
49
49
|
{
|
|
50
|
-
:'pulp_labels' => :'pulp_labels',
|
|
51
50
|
:'name' => :'name',
|
|
51
|
+
:'repository' => :'repository',
|
|
52
|
+
:'pulp_labels' => :'pulp_labels',
|
|
52
53
|
:'base_path' => :'base_path',
|
|
53
54
|
:'hidden' => :'hidden',
|
|
54
55
|
:'content_guard' => :'content_guard',
|
|
55
|
-
:'repository' => :'repository',
|
|
56
56
|
:'remote' => :'remote',
|
|
57
57
|
:'distributions' => :'distributions',
|
|
58
58
|
:'private' => :'private',
|
|
@@ -63,12 +63,12 @@ module PulpContainerClient
|
|
|
63
63
|
# Attribute type mapping.
|
|
64
64
|
def self.openapi_types
|
|
65
65
|
{
|
|
66
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
67
66
|
:'name' => :'String',
|
|
67
|
+
:'repository' => :'String',
|
|
68
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
68
69
|
:'base_path' => :'String',
|
|
69
70
|
:'hidden' => :'Boolean',
|
|
70
71
|
:'content_guard' => :'String',
|
|
71
|
-
:'repository' => :'String',
|
|
72
72
|
:'remote' => :'String',
|
|
73
73
|
:'distributions' => :'Array<String>',
|
|
74
74
|
:'private' => :'Boolean',
|
|
@@ -99,16 +99,20 @@ module PulpContainerClient
|
|
|
99
99
|
h[k.to_sym] = v
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
+
if attributes.key?(:'name')
|
|
103
|
+
self.name = attributes[:'name']
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
if attributes.key?(:'repository')
|
|
107
|
+
self.repository = attributes[:'repository']
|
|
108
|
+
end
|
|
109
|
+
|
|
102
110
|
if attributes.key?(:'pulp_labels')
|
|
103
111
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
104
112
|
self.pulp_labels = value
|
|
105
113
|
end
|
|
106
114
|
end
|
|
107
115
|
|
|
108
|
-
if attributes.key?(:'name')
|
|
109
|
-
self.name = attributes[:'name']
|
|
110
|
-
end
|
|
111
|
-
|
|
112
116
|
if attributes.key?(:'base_path')
|
|
113
117
|
self.base_path = attributes[:'base_path']
|
|
114
118
|
end
|
|
@@ -123,10 +127,6 @@ module PulpContainerClient
|
|
|
123
127
|
self.content_guard = attributes[:'content_guard']
|
|
124
128
|
end
|
|
125
129
|
|
|
126
|
-
if attributes.key?(:'repository')
|
|
127
|
-
self.repository = attributes[:'repository']
|
|
128
|
-
end
|
|
129
|
-
|
|
130
130
|
if attributes.key?(:'remote')
|
|
131
131
|
self.remote = attributes[:'remote']
|
|
132
132
|
end
|
|
@@ -232,12 +232,12 @@ module PulpContainerClient
|
|
|
232
232
|
def ==(o)
|
|
233
233
|
return true if self.equal?(o)
|
|
234
234
|
self.class == o.class &&
|
|
235
|
-
pulp_labels == o.pulp_labels &&
|
|
236
235
|
name == o.name &&
|
|
236
|
+
repository == o.repository &&
|
|
237
|
+
pulp_labels == o.pulp_labels &&
|
|
237
238
|
base_path == o.base_path &&
|
|
238
239
|
hidden == o.hidden &&
|
|
239
240
|
content_guard == o.content_guard &&
|
|
240
|
-
repository == o.repository &&
|
|
241
241
|
remote == o.remote &&
|
|
242
242
|
distributions == o.distributions &&
|
|
243
243
|
private == o.private &&
|
|
@@ -253,7 +253,7 @@ module PulpContainerClient
|
|
|
253
253
|
# Calculates hash code according to all attributes.
|
|
254
254
|
# @return [Integer] Hash code
|
|
255
255
|
def hash
|
|
256
|
-
[
|
|
256
|
+
[name, repository, pulp_labels, base_path, hidden, content_guard, remote, distributions, private, description].hash
|
|
257
257
|
end
|
|
258
258
|
|
|
259
259
|
# Builds the object from hash
|
data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb
CHANGED
|
@@ -15,13 +15,18 @@ require 'date'
|
|
|
15
15
|
module PulpContainerClient
|
|
16
16
|
# A serializer for a specialized pull-through distribution referencing sub-distributions.
|
|
17
17
|
class ContainerContainerPullThroughDistributionResponse
|
|
18
|
-
#
|
|
19
|
-
attr_accessor :
|
|
18
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
|
19
|
+
attr_accessor :name
|
|
20
|
+
|
|
21
|
+
# The latest RepositoryVersion for this Repository will be served.
|
|
22
|
+
attr_accessor :repository
|
|
23
|
+
|
|
24
|
+
# 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.
|
|
25
|
+
attr_accessor :pulp_last_updated
|
|
20
26
|
|
|
21
27
|
attr_accessor :pulp_labels
|
|
22
28
|
|
|
23
|
-
|
|
24
|
-
attr_accessor :name
|
|
29
|
+
attr_accessor :pulp_href
|
|
25
30
|
|
|
26
31
|
# The registry path exposed by this pull-through distribution.
|
|
27
32
|
attr_accessor :base_path
|
|
@@ -29,17 +34,12 @@ module PulpContainerClient
|
|
|
29
34
|
# Whether this distribution should be shown in the content app.
|
|
30
35
|
attr_accessor :hidden
|
|
31
36
|
|
|
32
|
-
# Timestamp of
|
|
33
|
-
attr_accessor :
|
|
37
|
+
# Timestamp of creation.
|
|
38
|
+
attr_accessor :pulp_created
|
|
34
39
|
|
|
35
40
|
# An optional content-guard. If none is specified, a default one will be used.
|
|
36
41
|
attr_accessor :content_guard
|
|
37
42
|
|
|
38
|
-
attr_accessor :pulp_href
|
|
39
|
-
|
|
40
|
-
# The latest RepositoryVersion for this Repository will be served.
|
|
41
|
-
attr_accessor :repository
|
|
42
|
-
|
|
43
43
|
# Remote that can be used to fetch content when using pull-through caching.
|
|
44
44
|
attr_accessor :remote
|
|
45
45
|
|
|
@@ -58,15 +58,15 @@ module PulpContainerClient
|
|
|
58
58
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
59
59
|
def self.attribute_map
|
|
60
60
|
{
|
|
61
|
-
:'pulp_created' => :'pulp_created',
|
|
62
|
-
:'pulp_labels' => :'pulp_labels',
|
|
63
61
|
:'name' => :'name',
|
|
62
|
+
:'repository' => :'repository',
|
|
63
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
|
64
|
+
:'pulp_labels' => :'pulp_labels',
|
|
65
|
+
:'pulp_href' => :'pulp_href',
|
|
64
66
|
:'base_path' => :'base_path',
|
|
65
67
|
:'hidden' => :'hidden',
|
|
66
|
-
:'
|
|
68
|
+
:'pulp_created' => :'pulp_created',
|
|
67
69
|
:'content_guard' => :'content_guard',
|
|
68
|
-
:'pulp_href' => :'pulp_href',
|
|
69
|
-
:'repository' => :'repository',
|
|
70
70
|
:'remote' => :'remote',
|
|
71
71
|
:'distributions' => :'distributions',
|
|
72
72
|
:'namespace' => :'namespace',
|
|
@@ -78,15 +78,15 @@ module PulpContainerClient
|
|
|
78
78
|
# Attribute type mapping.
|
|
79
79
|
def self.openapi_types
|
|
80
80
|
{
|
|
81
|
-
:'pulp_created' => :'DateTime',
|
|
82
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
83
81
|
:'name' => :'String',
|
|
82
|
+
:'repository' => :'String',
|
|
83
|
+
:'pulp_last_updated' => :'DateTime',
|
|
84
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
85
|
+
:'pulp_href' => :'String',
|
|
84
86
|
:'base_path' => :'String',
|
|
85
87
|
:'hidden' => :'Boolean',
|
|
86
|
-
:'
|
|
88
|
+
:'pulp_created' => :'DateTime',
|
|
87
89
|
:'content_guard' => :'String',
|
|
88
|
-
:'pulp_href' => :'String',
|
|
89
|
-
:'repository' => :'String',
|
|
90
90
|
:'remote' => :'String',
|
|
91
91
|
:'distributions' => :'Array<String>',
|
|
92
92
|
:'namespace' => :'String',
|
|
@@ -118,8 +118,16 @@ module PulpContainerClient
|
|
|
118
118
|
h[k.to_sym] = v
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
if attributes.key?(:'
|
|
122
|
-
self.
|
|
121
|
+
if attributes.key?(:'name')
|
|
122
|
+
self.name = attributes[:'name']
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
if attributes.key?(:'repository')
|
|
126
|
+
self.repository = attributes[:'repository']
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
if attributes.key?(:'pulp_last_updated')
|
|
130
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
123
131
|
end
|
|
124
132
|
|
|
125
133
|
if attributes.key?(:'pulp_labels')
|
|
@@ -128,8 +136,8 @@ module PulpContainerClient
|
|
|
128
136
|
end
|
|
129
137
|
end
|
|
130
138
|
|
|
131
|
-
if attributes.key?(:'
|
|
132
|
-
self.
|
|
139
|
+
if attributes.key?(:'pulp_href')
|
|
140
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
133
141
|
end
|
|
134
142
|
|
|
135
143
|
if attributes.key?(:'base_path')
|
|
@@ -142,22 +150,14 @@ module PulpContainerClient
|
|
|
142
150
|
self.hidden = false
|
|
143
151
|
end
|
|
144
152
|
|
|
145
|
-
if attributes.key?(:'
|
|
146
|
-
self.
|
|
153
|
+
if attributes.key?(:'pulp_created')
|
|
154
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
147
155
|
end
|
|
148
156
|
|
|
149
157
|
if attributes.key?(:'content_guard')
|
|
150
158
|
self.content_guard = attributes[:'content_guard']
|
|
151
159
|
end
|
|
152
160
|
|
|
153
|
-
if attributes.key?(:'pulp_href')
|
|
154
|
-
self.pulp_href = attributes[:'pulp_href']
|
|
155
|
-
end
|
|
156
|
-
|
|
157
|
-
if attributes.key?(:'repository')
|
|
158
|
-
self.repository = attributes[:'repository']
|
|
159
|
-
end
|
|
160
|
-
|
|
161
161
|
if attributes.key?(:'remote')
|
|
162
162
|
self.remote = attributes[:'remote']
|
|
163
163
|
end
|
|
@@ -214,15 +214,15 @@ module PulpContainerClient
|
|
|
214
214
|
def ==(o)
|
|
215
215
|
return true if self.equal?(o)
|
|
216
216
|
self.class == o.class &&
|
|
217
|
-
pulp_created == o.pulp_created &&
|
|
218
|
-
pulp_labels == o.pulp_labels &&
|
|
219
217
|
name == o.name &&
|
|
218
|
+
repository == o.repository &&
|
|
219
|
+
pulp_last_updated == o.pulp_last_updated &&
|
|
220
|
+
pulp_labels == o.pulp_labels &&
|
|
221
|
+
pulp_href == o.pulp_href &&
|
|
220
222
|
base_path == o.base_path &&
|
|
221
223
|
hidden == o.hidden &&
|
|
222
|
-
|
|
224
|
+
pulp_created == o.pulp_created &&
|
|
223
225
|
content_guard == o.content_guard &&
|
|
224
|
-
pulp_href == o.pulp_href &&
|
|
225
|
-
repository == o.repository &&
|
|
226
226
|
remote == o.remote &&
|
|
227
227
|
distributions == o.distributions &&
|
|
228
228
|
namespace == o.namespace &&
|
|
@@ -239,7 +239,7 @@ module PulpContainerClient
|
|
|
239
239
|
# Calculates hash code according to all attributes.
|
|
240
240
|
# @return [Integer] Hash code
|
|
241
241
|
def hash
|
|
242
|
-
[
|
|
242
|
+
[name, repository, pulp_last_updated, pulp_labels, pulp_href, base_path, hidden, pulp_created, content_guard, remote, distributions, namespace, private, description].hash
|
|
243
243
|
end
|
|
244
244
|
|
|
245
245
|
# Builds the object from hash
|
|
@@ -15,39 +15,39 @@ require 'date'
|
|
|
15
15
|
module PulpContainerClient
|
|
16
16
|
# Serializer for Container Push Repositories.
|
|
17
17
|
class ContainerContainerPushRepository
|
|
18
|
-
|
|
18
|
+
# An optional description.
|
|
19
|
+
attr_accessor :description
|
|
19
20
|
|
|
20
21
|
# A unique name for this repository.
|
|
21
22
|
attr_accessor :name
|
|
22
23
|
|
|
23
|
-
|
|
24
|
-
attr_accessor :description
|
|
25
|
-
|
|
26
|
-
# A reference to an associated signing service.
|
|
27
|
-
attr_accessor :manifest_signing_service
|
|
24
|
+
attr_accessor :pulp_labels
|
|
28
25
|
|
|
29
26
|
# Retain X versions of the repository. Default is null which retains all versions.
|
|
30
27
|
attr_accessor :retain_repo_versions
|
|
31
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
|
-
:'pulp_labels' => :'pulp_labels',
|
|
36
|
-
:'name' => :'name',
|
|
37
35
|
:'description' => :'description',
|
|
38
|
-
:'
|
|
39
|
-
:'
|
|
36
|
+
:'name' => :'name',
|
|
37
|
+
:'pulp_labels' => :'pulp_labels',
|
|
38
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
|
39
|
+
:'manifest_signing_service' => :'manifest_signing_service'
|
|
40
40
|
}
|
|
41
41
|
end
|
|
42
42
|
|
|
43
43
|
# Attribute type mapping.
|
|
44
44
|
def self.openapi_types
|
|
45
45
|
{
|
|
46
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
47
|
-
:'name' => :'String',
|
|
48
46
|
:'description' => :'String',
|
|
49
|
-
:'
|
|
50
|
-
:'
|
|
47
|
+
:'name' => :'String',
|
|
48
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
49
|
+
:'retain_repo_versions' => :'Integer',
|
|
50
|
+
:'manifest_signing_service' => :'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
|
:'description',
|
|
58
|
-
:'
|
|
59
|
-
:'
|
|
58
|
+
:'retain_repo_versions',
|
|
59
|
+
:'manifest_signing_service'
|
|
60
60
|
])
|
|
61
61
|
end
|
|
62
62
|
|
|
@@ -75,33 +75,37 @@ module PulpContainerClient
|
|
|
75
75
|
h[k.to_sym] = v
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
if attributes.key?(:'
|
|
79
|
-
|
|
80
|
-
self.pulp_labels = value
|
|
81
|
-
end
|
|
78
|
+
if attributes.key?(:'description')
|
|
79
|
+
self.description = attributes[:'description']
|
|
82
80
|
end
|
|
83
81
|
|
|
84
82
|
if attributes.key?(:'name')
|
|
85
83
|
self.name = attributes[:'name']
|
|
86
84
|
end
|
|
87
85
|
|
|
88
|
-
if attributes.key?(:'
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
if attributes.key?(:'manifest_signing_service')
|
|
93
|
-
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
86
|
+
if attributes.key?(:'pulp_labels')
|
|
87
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
88
|
+
self.pulp_labels = value
|
|
89
|
+
end
|
|
94
90
|
end
|
|
95
91
|
|
|
96
92
|
if attributes.key?(:'retain_repo_versions')
|
|
97
93
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
98
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 !@description.nil? && @description.to_s.length < 1
|
|
106
|
+
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
107
|
+
end
|
|
108
|
+
|
|
105
109
|
if @name.nil?
|
|
106
110
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
107
111
|
end
|
|
@@ -110,10 +114,6 @@ module PulpContainerClient
|
|
|
110
114
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
111
115
|
end
|
|
112
116
|
|
|
113
|
-
if !@description.nil? && @description.to_s.length < 1
|
|
114
|
-
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
115
|
-
end
|
|
116
|
-
|
|
117
117
|
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
118
118
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
119
119
|
end
|
|
@@ -124,13 +124,23 @@ 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 !@description.nil? && @description.to_s.length < 1
|
|
127
128
|
return false if @name.nil?
|
|
128
129
|
return false if @name.to_s.length < 1
|
|
129
|
-
return false if !@description.nil? && @description.to_s.length < 1
|
|
130
130
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
131
131
|
true
|
|
132
132
|
end
|
|
133
133
|
|
|
134
|
+
# Custom attribute writer method with validation
|
|
135
|
+
# @param [Object] description Value to be assigned
|
|
136
|
+
def description=(description)
|
|
137
|
+
if !description.nil? && description.to_s.length < 1
|
|
138
|
+
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
@description = description
|
|
142
|
+
end
|
|
143
|
+
|
|
134
144
|
# Custom attribute writer method with validation
|
|
135
145
|
# @param [Object] name Value to be assigned
|
|
136
146
|
def name=(name)
|
|
@@ -145,16 +155,6 @@ module PulpContainerClient
|
|
|
145
155
|
@name = name
|
|
146
156
|
end
|
|
147
157
|
|
|
148
|
-
# Custom attribute writer method with validation
|
|
149
|
-
# @param [Object] description Value to be assigned
|
|
150
|
-
def description=(description)
|
|
151
|
-
if !description.nil? && description.to_s.length < 1
|
|
152
|
-
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
|
153
|
-
end
|
|
154
|
-
|
|
155
|
-
@description = description
|
|
156
|
-
end
|
|
157
|
-
|
|
158
158
|
# Custom attribute writer method with validation
|
|
159
159
|
# @param [Object] retain_repo_versions Value to be assigned
|
|
160
160
|
def retain_repo_versions=(retain_repo_versions)
|
|
@@ -170,11 +170,11 @@ module PulpContainerClient
|
|
|
170
170
|
def ==(o)
|
|
171
171
|
return true if self.equal?(o)
|
|
172
172
|
self.class == o.class &&
|
|
173
|
-
pulp_labels == o.pulp_labels &&
|
|
174
|
-
name == o.name &&
|
|
175
173
|
description == o.description &&
|
|
176
|
-
|
|
177
|
-
|
|
174
|
+
name == o.name &&
|
|
175
|
+
pulp_labels == o.pulp_labels &&
|
|
176
|
+
retain_repo_versions == o.retain_repo_versions &&
|
|
177
|
+
manifest_signing_service == o.manifest_signing_service
|
|
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
|
+
[description, name, pulp_labels, retain_repo_versions, manifest_signing_service].hash
|
|
190
190
|
end
|
|
191
191
|
|
|
192
192
|
# Builds the object from hash
|
|
@@ -15,61 +15,61 @@ require 'date'
|
|
|
15
15
|
module PulpContainerClient
|
|
16
16
|
# Serializer for Container Push Repositories.
|
|
17
17
|
class ContainerContainerPushRepositoryResponse
|
|
18
|
-
#
|
|
19
|
-
attr_accessor :
|
|
18
|
+
# An optional description.
|
|
19
|
+
attr_accessor :description
|
|
20
20
|
|
|
21
|
-
attr_accessor :
|
|
21
|
+
attr_accessor :versions_href
|
|
22
22
|
|
|
23
23
|
# A unique name for this repository.
|
|
24
24
|
attr_accessor :name
|
|
25
25
|
|
|
26
|
+
attr_accessor :pulp_labels
|
|
27
|
+
|
|
26
28
|
# 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.
|
|
27
29
|
attr_accessor :pulp_last_updated
|
|
28
30
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
attr_accessor :latest_version_href
|
|
32
|
-
|
|
33
|
-
# An optional description.
|
|
34
|
-
attr_accessor :description
|
|
31
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
|
32
|
+
attr_accessor :retain_repo_versions
|
|
35
33
|
|
|
36
34
|
# A reference to an associated signing service.
|
|
37
35
|
attr_accessor :manifest_signing_service
|
|
38
36
|
|
|
39
|
-
# Retain X versions of the repository. Default is null which retains all versions.
|
|
40
|
-
attr_accessor :retain_repo_versions
|
|
41
|
-
|
|
42
37
|
attr_accessor :pulp_href
|
|
43
38
|
|
|
39
|
+
attr_accessor :latest_version_href
|
|
40
|
+
|
|
41
|
+
# Timestamp of creation.
|
|
42
|
+
attr_accessor :pulp_created
|
|
43
|
+
|
|
44
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
45
45
|
def self.attribute_map
|
|
46
46
|
{
|
|
47
|
-
:'
|
|
48
|
-
:'
|
|
47
|
+
:'description' => :'description',
|
|
48
|
+
:'versions_href' => :'versions_href',
|
|
49
49
|
:'name' => :'name',
|
|
50
|
+
:'pulp_labels' => :'pulp_labels',
|
|
50
51
|
:'pulp_last_updated' => :'pulp_last_updated',
|
|
51
|
-
:'versions_href' => :'versions_href',
|
|
52
|
-
:'latest_version_href' => :'latest_version_href',
|
|
53
|
-
:'description' => :'description',
|
|
54
|
-
:'manifest_signing_service' => :'manifest_signing_service',
|
|
55
52
|
:'retain_repo_versions' => :'retain_repo_versions',
|
|
56
|
-
:'
|
|
53
|
+
:'manifest_signing_service' => :'manifest_signing_service',
|
|
54
|
+
:'pulp_href' => :'pulp_href',
|
|
55
|
+
:'latest_version_href' => :'latest_version_href',
|
|
56
|
+
:'pulp_created' => :'pulp_created'
|
|
57
57
|
}
|
|
58
58
|
end
|
|
59
59
|
|
|
60
60
|
# Attribute type mapping.
|
|
61
61
|
def self.openapi_types
|
|
62
62
|
{
|
|
63
|
-
:'
|
|
64
|
-
:'
|
|
63
|
+
:'description' => :'String',
|
|
64
|
+
:'versions_href' => :'String',
|
|
65
65
|
:'name' => :'String',
|
|
66
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
66
67
|
:'pulp_last_updated' => :'DateTime',
|
|
67
|
-
:'versions_href' => :'String',
|
|
68
|
-
:'latest_version_href' => :'String',
|
|
69
|
-
:'description' => :'String',
|
|
70
|
-
:'manifest_signing_service' => :'String',
|
|
71
68
|
:'retain_repo_versions' => :'Integer',
|
|
72
|
-
:'
|
|
69
|
+
:'manifest_signing_service' => :'String',
|
|
70
|
+
:'pulp_href' => :'String',
|
|
71
|
+
:'latest_version_href' => :'String',
|
|
72
|
+
:'pulp_created' => :'DateTime'
|
|
73
73
|
}
|
|
74
74
|
end
|
|
75
75
|
|
|
@@ -77,8 +77,8 @@ module PulpContainerClient
|
|
|
77
77
|
def self.openapi_nullable
|
|
78
78
|
Set.new([
|
|
79
79
|
:'description',
|
|
80
|
-
:'manifest_signing_service',
|
|
81
80
|
:'retain_repo_versions',
|
|
81
|
+
:'manifest_signing_service',
|
|
82
82
|
])
|
|
83
83
|
end
|
|
84
84
|
|
|
@@ -97,47 +97,47 @@ module PulpContainerClient
|
|
|
97
97
|
h[k.to_sym] = v
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
if attributes.key?(:'
|
|
101
|
-
self.
|
|
100
|
+
if attributes.key?(:'description')
|
|
101
|
+
self.description = attributes[:'description']
|
|
102
102
|
end
|
|
103
103
|
|
|
104
|
-
if attributes.key?(:'
|
|
105
|
-
|
|
106
|
-
self.pulp_labels = value
|
|
107
|
-
end
|
|
104
|
+
if attributes.key?(:'versions_href')
|
|
105
|
+
self.versions_href = attributes[:'versions_href']
|
|
108
106
|
end
|
|
109
107
|
|
|
110
108
|
if attributes.key?(:'name')
|
|
111
109
|
self.name = attributes[:'name']
|
|
112
110
|
end
|
|
113
111
|
|
|
114
|
-
if attributes.key?(:'
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
if attributes.key?(:'versions_href')
|
|
119
|
-
self.versions_href = attributes[:'versions_href']
|
|
112
|
+
if attributes.key?(:'pulp_labels')
|
|
113
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
114
|
+
self.pulp_labels = value
|
|
115
|
+
end
|
|
120
116
|
end
|
|
121
117
|
|
|
122
|
-
if attributes.key?(:'
|
|
123
|
-
self.
|
|
118
|
+
if attributes.key?(:'pulp_last_updated')
|
|
119
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
124
120
|
end
|
|
125
121
|
|
|
126
|
-
if attributes.key?(:'
|
|
127
|
-
self.
|
|
122
|
+
if attributes.key?(:'retain_repo_versions')
|
|
123
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
128
124
|
end
|
|
129
125
|
|
|
130
126
|
if attributes.key?(:'manifest_signing_service')
|
|
131
127
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
132
128
|
end
|
|
133
129
|
|
|
134
|
-
if attributes.key?(:'retain_repo_versions')
|
|
135
|
-
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
136
|
-
end
|
|
137
|
-
|
|
138
130
|
if attributes.key?(:'pulp_href')
|
|
139
131
|
self.pulp_href = attributes[:'pulp_href']
|
|
140
132
|
end
|
|
133
|
+
|
|
134
|
+
if attributes.key?(:'latest_version_href')
|
|
135
|
+
self.latest_version_href = attributes[:'latest_version_href']
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
if attributes.key?(:'pulp_created')
|
|
139
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
140
|
+
end
|
|
141
141
|
end
|
|
142
142
|
|
|
143
143
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -178,16 +178,16 @@ module PulpContainerClient
|
|
|
178
178
|
def ==(o)
|
|
179
179
|
return true if self.equal?(o)
|
|
180
180
|
self.class == o.class &&
|
|
181
|
-
|
|
182
|
-
|
|
181
|
+
description == o.description &&
|
|
182
|
+
versions_href == o.versions_href &&
|
|
183
183
|
name == o.name &&
|
|
184
|
+
pulp_labels == o.pulp_labels &&
|
|
184
185
|
pulp_last_updated == o.pulp_last_updated &&
|
|
185
|
-
versions_href == o.versions_href &&
|
|
186
|
-
latest_version_href == o.latest_version_href &&
|
|
187
|
-
description == o.description &&
|
|
188
|
-
manifest_signing_service == o.manifest_signing_service &&
|
|
189
186
|
retain_repo_versions == o.retain_repo_versions &&
|
|
190
|
-
|
|
187
|
+
manifest_signing_service == o.manifest_signing_service &&
|
|
188
|
+
pulp_href == o.pulp_href &&
|
|
189
|
+
latest_version_href == o.latest_version_href &&
|
|
190
|
+
pulp_created == o.pulp_created
|
|
191
191
|
end
|
|
192
192
|
|
|
193
193
|
# @see the `==` method
|
|
@@ -199,7 +199,7 @@ module PulpContainerClient
|
|
|
199
199
|
# Calculates hash code according to all attributes.
|
|
200
200
|
# @return [Integer] Hash code
|
|
201
201
|
def hash
|
|
202
|
-
[
|
|
202
|
+
[description, versions_href, name, pulp_labels, pulp_last_updated, retain_repo_versions, manifest_signing_service, pulp_href, latest_version_href, pulp_created].hash
|
|
203
203
|
end
|
|
204
204
|
|
|
205
205
|
# Builds the object from hash
|