pulp_container_client 2.19.1 → 2.19.2
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 +7 -7
- data/docs/ContainerContainerDistributionResponse.md +11 -11
- data/docs/ContainerContainerPullThroughDistribution.md +7 -7
- data/docs/ContainerContainerPullThroughDistributionResponse.md +11 -11
- data/docs/ContainerContainerPushRepository.md +7 -7
- data/docs/ContainerContainerPushRepositoryResponse.md +11 -11
- data/docs/PatchedcontainerContainerDistribution.md +7 -7
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +7 -7
- data/docs/PatchedcontainerContainerPushRepository.md +7 -7
- data/lib/pulp_container_client/models/container_container_distribution.rb +31 -31
- 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 +31 -31
- 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 +42 -42
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +50 -50
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +31 -31
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +31 -31
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +42 -42
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/models/container_container_distribution_response_spec.rb +8 -8
- data/spec/models/container_container_distribution_spec.rb +6 -6
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +8 -8
- 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 +5 -5
- 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 +5 -5
- metadata +1 -1
@@ -15,15 +15,6 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for a specialized pull-through distribution referencing sub-distributions.
|
17
17
|
class ContainerContainerPullThroughDistribution
|
18
|
-
# 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
|
-
attr_accessor :base_path
|
20
|
-
|
21
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
22
|
-
attr_accessor :content_guard
|
23
|
-
|
24
|
-
# A unique name. Ex, `rawhide` and `stable`.
|
25
|
-
attr_accessor :name
|
26
|
-
|
27
18
|
# Whether this distribution should be shown in the content app.
|
28
19
|
attr_accessor :hidden
|
29
20
|
|
@@ -32,6 +23,15 @@ module PulpContainerClient
|
|
32
23
|
# The latest RepositoryVersion for this Repository will be served.
|
33
24
|
attr_accessor :repository
|
34
25
|
|
26
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
27
|
+
attr_accessor :base_path
|
28
|
+
|
29
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
30
|
+
attr_accessor :name
|
31
|
+
|
32
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
33
|
+
attr_accessor :content_guard
|
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
|
-
:'base_path' => :'base_path',
|
51
|
-
:'content_guard' => :'content_guard',
|
52
|
-
:'name' => :'name',
|
53
50
|
:'hidden' => :'hidden',
|
54
51
|
:'pulp_labels' => :'pulp_labels',
|
55
52
|
:'repository' => :'repository',
|
53
|
+
:'base_path' => :'base_path',
|
54
|
+
:'name' => :'name',
|
55
|
+
:'content_guard' => :'content_guard',
|
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
|
-
:'base_path' => :'String',
|
67
|
-
:'content_guard' => :'String',
|
68
|
-
:'name' => :'String',
|
69
66
|
:'hidden' => :'Boolean',
|
70
67
|
:'pulp_labels' => :'Hash<String, String>',
|
71
68
|
:'repository' => :'String',
|
69
|
+
:'base_path' => :'String',
|
70
|
+
:'name' => :'String',
|
71
|
+
:'content_guard' => :'String',
|
72
72
|
:'remote' => :'String',
|
73
73
|
:'distributions' => :'Array<String>',
|
74
74
|
:'private' => :'Boolean',
|
@@ -99,18 +99,6 @@ module PulpContainerClient
|
|
99
99
|
h[k.to_sym] = v
|
100
100
|
}
|
101
101
|
|
102
|
-
if attributes.key?(:'base_path')
|
103
|
-
self.base_path = attributes[:'base_path']
|
104
|
-
end
|
105
|
-
|
106
|
-
if attributes.key?(:'content_guard')
|
107
|
-
self.content_guard = attributes[:'content_guard']
|
108
|
-
end
|
109
|
-
|
110
|
-
if attributes.key?(:'name')
|
111
|
-
self.name = attributes[:'name']
|
112
|
-
end
|
113
|
-
|
114
102
|
if attributes.key?(:'hidden')
|
115
103
|
self.hidden = attributes[:'hidden']
|
116
104
|
else
|
@@ -127,6 +115,18 @@ module PulpContainerClient
|
|
127
115
|
self.repository = attributes[:'repository']
|
128
116
|
end
|
129
117
|
|
118
|
+
if attributes.key?(:'base_path')
|
119
|
+
self.base_path = attributes[:'base_path']
|
120
|
+
end
|
121
|
+
|
122
|
+
if attributes.key?(:'name')
|
123
|
+
self.name = attributes[:'name']
|
124
|
+
end
|
125
|
+
|
126
|
+
if attributes.key?(:'content_guard')
|
127
|
+
self.content_guard = attributes[:'content_guard']
|
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
|
-
base_path == o.base_path &&
|
236
|
-
content_guard == o.content_guard &&
|
237
|
-
name == o.name &&
|
238
235
|
hidden == o.hidden &&
|
239
236
|
pulp_labels == o.pulp_labels &&
|
240
237
|
repository == o.repository &&
|
238
|
+
base_path == o.base_path &&
|
239
|
+
name == o.name &&
|
240
|
+
content_guard == o.content_guard &&
|
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
|
+
[hidden, pulp_labels, repository, base_path, name, 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,27 +15,27 @@ 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 :
|
20
|
-
|
21
|
-
attr_accessor :pulp_href
|
18
|
+
# Whether this distribution should be shown in the content app.
|
19
|
+
attr_accessor :hidden
|
22
20
|
|
23
|
-
|
24
|
-
attr_accessor :content_guard
|
21
|
+
attr_accessor :pulp_labels
|
25
22
|
|
26
|
-
#
|
27
|
-
attr_accessor :
|
23
|
+
# The latest RepositoryVersion for this Repository will be served.
|
24
|
+
attr_accessor :repository
|
28
25
|
|
29
26
|
# Timestamp of creation.
|
30
27
|
attr_accessor :pulp_created
|
31
28
|
|
32
|
-
#
|
33
|
-
attr_accessor :
|
29
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
30
|
+
attr_accessor :base_path
|
34
31
|
|
35
|
-
attr_accessor :
|
32
|
+
attr_accessor :pulp_href
|
36
33
|
|
37
|
-
#
|
38
|
-
attr_accessor :
|
34
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
35
|
+
attr_accessor :name
|
36
|
+
|
37
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
38
|
+
attr_accessor :content_guard
|
39
39
|
|
40
40
|
# Remote that can be used to fetch content when using pull-through caching.
|
41
41
|
attr_accessor :remote
|
@@ -55,14 +55,14 @@ module PulpContainerClient
|
|
55
55
|
# Attribute mapping from ruby-style variable name to JSON key.
|
56
56
|
def self.attribute_map
|
57
57
|
{
|
58
|
-
:'base_path' => :'base_path',
|
59
|
-
:'pulp_href' => :'pulp_href',
|
60
|
-
:'content_guard' => :'content_guard',
|
61
|
-
:'name' => :'name',
|
62
|
-
:'pulp_created' => :'pulp_created',
|
63
58
|
:'hidden' => :'hidden',
|
64
59
|
:'pulp_labels' => :'pulp_labels',
|
65
60
|
:'repository' => :'repository',
|
61
|
+
:'pulp_created' => :'pulp_created',
|
62
|
+
:'base_path' => :'base_path',
|
63
|
+
:'pulp_href' => :'pulp_href',
|
64
|
+
:'name' => :'name',
|
65
|
+
:'content_guard' => :'content_guard',
|
66
66
|
:'remote' => :'remote',
|
67
67
|
:'distributions' => :'distributions',
|
68
68
|
:'namespace' => :'namespace',
|
@@ -74,14 +74,14 @@ module PulpContainerClient
|
|
74
74
|
# Attribute type mapping.
|
75
75
|
def self.openapi_types
|
76
76
|
{
|
77
|
-
:'base_path' => :'String',
|
78
|
-
:'pulp_href' => :'String',
|
79
|
-
:'content_guard' => :'String',
|
80
|
-
:'name' => :'String',
|
81
|
-
:'pulp_created' => :'DateTime',
|
82
77
|
:'hidden' => :'Boolean',
|
83
78
|
:'pulp_labels' => :'Hash<String, String>',
|
84
79
|
:'repository' => :'String',
|
80
|
+
:'pulp_created' => :'DateTime',
|
81
|
+
:'base_path' => :'String',
|
82
|
+
:'pulp_href' => :'String',
|
83
|
+
:'name' => :'String',
|
84
|
+
:'content_guard' => :'String',
|
85
85
|
:'remote' => :'String',
|
86
86
|
:'distributions' => :'Array<String>',
|
87
87
|
:'namespace' => :'String',
|
@@ -113,26 +113,6 @@ module PulpContainerClient
|
|
113
113
|
h[k.to_sym] = v
|
114
114
|
}
|
115
115
|
|
116
|
-
if attributes.key?(:'base_path')
|
117
|
-
self.base_path = attributes[:'base_path']
|
118
|
-
end
|
119
|
-
|
120
|
-
if attributes.key?(:'pulp_href')
|
121
|
-
self.pulp_href = attributes[:'pulp_href']
|
122
|
-
end
|
123
|
-
|
124
|
-
if attributes.key?(:'content_guard')
|
125
|
-
self.content_guard = attributes[:'content_guard']
|
126
|
-
end
|
127
|
-
|
128
|
-
if attributes.key?(:'name')
|
129
|
-
self.name = attributes[:'name']
|
130
|
-
end
|
131
|
-
|
132
|
-
if attributes.key?(:'pulp_created')
|
133
|
-
self.pulp_created = attributes[:'pulp_created']
|
134
|
-
end
|
135
|
-
|
136
116
|
if attributes.key?(:'hidden')
|
137
117
|
self.hidden = attributes[:'hidden']
|
138
118
|
else
|
@@ -149,6 +129,26 @@ module PulpContainerClient
|
|
149
129
|
self.repository = attributes[:'repository']
|
150
130
|
end
|
151
131
|
|
132
|
+
if attributes.key?(:'pulp_created')
|
133
|
+
self.pulp_created = attributes[:'pulp_created']
|
134
|
+
end
|
135
|
+
|
136
|
+
if attributes.key?(:'base_path')
|
137
|
+
self.base_path = attributes[:'base_path']
|
138
|
+
end
|
139
|
+
|
140
|
+
if attributes.key?(:'pulp_href')
|
141
|
+
self.pulp_href = attributes[:'pulp_href']
|
142
|
+
end
|
143
|
+
|
144
|
+
if attributes.key?(:'name')
|
145
|
+
self.name = attributes[:'name']
|
146
|
+
end
|
147
|
+
|
148
|
+
if attributes.key?(:'content_guard')
|
149
|
+
self.content_guard = attributes[:'content_guard']
|
150
|
+
end
|
151
|
+
|
152
152
|
if attributes.key?(:'remote')
|
153
153
|
self.remote = attributes[:'remote']
|
154
154
|
end
|
@@ -205,14 +205,14 @@ module PulpContainerClient
|
|
205
205
|
def ==(o)
|
206
206
|
return true if self.equal?(o)
|
207
207
|
self.class == o.class &&
|
208
|
-
base_path == o.base_path &&
|
209
|
-
pulp_href == o.pulp_href &&
|
210
|
-
content_guard == o.content_guard &&
|
211
|
-
name == o.name &&
|
212
|
-
pulp_created == o.pulp_created &&
|
213
208
|
hidden == o.hidden &&
|
214
209
|
pulp_labels == o.pulp_labels &&
|
215
210
|
repository == o.repository &&
|
211
|
+
pulp_created == o.pulp_created &&
|
212
|
+
base_path == o.base_path &&
|
213
|
+
pulp_href == o.pulp_href &&
|
214
|
+
name == o.name &&
|
215
|
+
content_guard == o.content_guard &&
|
216
216
|
remote == o.remote &&
|
217
217
|
distributions == o.distributions &&
|
218
218
|
namespace == o.namespace &&
|
@@ -229,7 +229,7 @@ module PulpContainerClient
|
|
229
229
|
# Calculates hash code according to all attributes.
|
230
230
|
# @return [Integer] Hash code
|
231
231
|
def hash
|
232
|
-
[
|
232
|
+
[hidden, pulp_labels, repository, pulp_created, base_path, pulp_href, name, content_guard, remote, distributions, namespace, private, description].hash
|
233
233
|
end
|
234
234
|
|
235
235
|
# Builds the object from hash
|
@@ -15,48 +15,48 @@ 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.
|
19
|
-
attr_accessor :retain_repo_versions
|
20
|
-
|
21
18
|
# A reference to an associated signing service.
|
22
19
|
attr_accessor :manifest_signing_service
|
23
20
|
|
24
|
-
|
25
|
-
attr_accessor :name
|
21
|
+
attr_accessor :pulp_labels
|
26
22
|
|
27
23
|
# An optional description.
|
28
24
|
attr_accessor :description
|
29
25
|
|
30
|
-
|
26
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
27
|
+
attr_accessor :retain_repo_versions
|
28
|
+
|
29
|
+
# A unique name for this repository.
|
30
|
+
attr_accessor :name
|
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
|
:'manifest_signing_service' => :'manifest_signing_service',
|
37
|
-
:'
|
36
|
+
:'pulp_labels' => :'pulp_labels',
|
38
37
|
:'description' => :'description',
|
39
|
-
:'
|
38
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
39
|
+
:'name' => :'name'
|
40
40
|
}
|
41
41
|
end
|
42
42
|
|
43
43
|
# Attribute type mapping.
|
44
44
|
def self.openapi_types
|
45
45
|
{
|
46
|
-
:'retain_repo_versions' => :'Integer',
|
47
46
|
:'manifest_signing_service' => :'String',
|
48
|
-
:'
|
47
|
+
:'pulp_labels' => :'Hash<String, String>',
|
49
48
|
:'description' => :'String',
|
50
|
-
:'
|
49
|
+
:'retain_repo_versions' => :'Integer',
|
50
|
+
:'name' => :'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
|
-
:'retain_repo_versions',
|
58
57
|
:'manifest_signing_service',
|
59
58
|
:'description',
|
59
|
+
:'retain_repo_versions',
|
60
60
|
])
|
61
61
|
end
|
62
62
|
|
@@ -75,26 +75,26 @@ module PulpContainerClient
|
|
75
75
|
h[k.to_sym] = v
|
76
76
|
}
|
77
77
|
|
78
|
-
if attributes.key?(:'retain_repo_versions')
|
79
|
-
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
80
|
-
end
|
81
|
-
|
82
78
|
if attributes.key?(:'manifest_signing_service')
|
83
79
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
84
80
|
end
|
85
81
|
|
86
|
-
if attributes.key?(:'
|
87
|
-
|
82
|
+
if attributes.key?(:'pulp_labels')
|
83
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
84
|
+
self.pulp_labels = value
|
85
|
+
end
|
88
86
|
end
|
89
87
|
|
90
88
|
if attributes.key?(:'description')
|
91
89
|
self.description = attributes[:'description']
|
92
90
|
end
|
93
91
|
|
94
|
-
if attributes.key?(:'
|
95
|
-
|
96
|
-
|
97
|
-
|
92
|
+
if attributes.key?(:'retain_repo_versions')
|
93
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
94
|
+
end
|
95
|
+
|
96
|
+
if attributes.key?(:'name')
|
97
|
+
self.name = attributes[:'name']
|
98
98
|
end
|
99
99
|
end
|
100
100
|
|
@@ -102,6 +102,10 @@ 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 !@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 !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
106
110
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
107
111
|
end
|
@@ -114,23 +118,29 @@ module PulpContainerClient
|
|
114
118
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
115
119
|
end
|
116
120
|
|
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 !@description.nil? && @description.to_s.length < 1
|
127
128
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
128
129
|
return false if @name.nil?
|
129
130
|
return false if @name.to_s.length < 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] 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] retain_repo_versions Value to be assigned
|
136
146
|
def retain_repo_versions=(retain_repo_versions)
|
@@ -155,26 +165,16 @@ module PulpContainerClient
|
|
155
165
|
@name = name
|
156
166
|
end
|
157
167
|
|
158
|
-
# Custom attribute writer method with validation
|
159
|
-
# @param [Object] description Value to be assigned
|
160
|
-
def description=(description)
|
161
|
-
if !description.nil? && description.to_s.length < 1
|
162
|
-
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
163
|
-
end
|
164
|
-
|
165
|
-
@description = description
|
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
|
-
retain_repo_versions == o.retain_repo_versions &&
|
174
173
|
manifest_signing_service == o.manifest_signing_service &&
|
175
|
-
|
174
|
+
pulp_labels == o.pulp_labels &&
|
176
175
|
description == o.description &&
|
177
|
-
|
176
|
+
retain_repo_versions == o.retain_repo_versions &&
|
177
|
+
name == o.name
|
178
178
|
end
|
179
179
|
|
180
180
|
# @see the `==` method
|
@@ -186,7 +186,7 @@ module PulpContainerClient
|
|
186
186
|
# Calculates hash code according to all attributes.
|
187
187
|
# @return [Integer] Hash code
|
188
188
|
def hash
|
189
|
-
[
|
189
|
+
[manifest_signing_service, pulp_labels, description, retain_repo_versions, name].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
|
-
# Retain X versions of the repository. Default is null which retains all versions.
|
19
|
-
attr_accessor :retain_repo_versions
|
20
|
-
|
21
|
-
attr_accessor :versions_href
|
22
|
-
|
23
|
-
attr_accessor :latest_version_href
|
24
|
-
|
25
18
|
# A reference to an associated signing service.
|
26
19
|
attr_accessor :manifest_signing_service
|
27
20
|
|
28
|
-
attr_accessor :
|
29
|
-
|
30
|
-
# A unique name for this repository.
|
31
|
-
attr_accessor :name
|
21
|
+
attr_accessor :pulp_labels
|
32
22
|
|
33
23
|
# An optional description.
|
34
24
|
attr_accessor :description
|
35
25
|
|
26
|
+
attr_accessor :versions_href
|
27
|
+
|
36
28
|
# Timestamp of creation.
|
37
29
|
attr_accessor :pulp_created
|
38
30
|
|
39
|
-
attr_accessor :
|
31
|
+
attr_accessor :latest_version_href
|
32
|
+
|
33
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
34
|
+
attr_accessor :retain_repo_versions
|
35
|
+
|
36
|
+
attr_accessor :pulp_href
|
37
|
+
|
38
|
+
# A unique name for this repository.
|
39
|
+
attr_accessor :name
|
40
40
|
|
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
|
-
:'versions_href' => :'versions_href',
|
46
|
-
:'latest_version_href' => :'latest_version_href',
|
47
44
|
:'manifest_signing_service' => :'manifest_signing_service',
|
48
|
-
:'
|
49
|
-
:'name' => :'name',
|
45
|
+
:'pulp_labels' => :'pulp_labels',
|
50
46
|
:'description' => :'description',
|
47
|
+
:'versions_href' => :'versions_href',
|
51
48
|
:'pulp_created' => :'pulp_created',
|
52
|
-
:'
|
49
|
+
:'latest_version_href' => :'latest_version_href',
|
50
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
51
|
+
:'pulp_href' => :'pulp_href',
|
52
|
+
:'name' => :'name'
|
53
53
|
}
|
54
54
|
end
|
55
55
|
|
56
56
|
# Attribute type mapping.
|
57
57
|
def self.openapi_types
|
58
58
|
{
|
59
|
-
:'retain_repo_versions' => :'Integer',
|
60
|
-
:'versions_href' => :'String',
|
61
|
-
:'latest_version_href' => :'String',
|
62
59
|
:'manifest_signing_service' => :'String',
|
63
|
-
:'
|
64
|
-
:'name' => :'String',
|
60
|
+
:'pulp_labels' => :'Hash<String, String>',
|
65
61
|
:'description' => :'String',
|
62
|
+
:'versions_href' => :'String',
|
66
63
|
:'pulp_created' => :'DateTime',
|
67
|
-
:'
|
64
|
+
:'latest_version_href' => :'String',
|
65
|
+
:'retain_repo_versions' => :'Integer',
|
66
|
+
:'pulp_href' => :'String',
|
67
|
+
:'name' => :'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
|
-
:'retain_repo_versions',
|
75
74
|
:'manifest_signing_service',
|
76
75
|
:'description',
|
76
|
+
:'retain_repo_versions',
|
77
77
|
])
|
78
78
|
end
|
79
79
|
|
@@ -92,20 +92,34 @@ module PulpContainerClient
|
|
92
92
|
h[k.to_sym] = v
|
93
93
|
}
|
94
94
|
|
95
|
-
if attributes.key?(:'
|
96
|
-
self.
|
95
|
+
if attributes.key?(:'manifest_signing_service')
|
96
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
97
|
+
end
|
98
|
+
|
99
|
+
if attributes.key?(:'pulp_labels')
|
100
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
101
|
+
self.pulp_labels = value
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
105
|
+
if attributes.key?(:'description')
|
106
|
+
self.description = attributes[:'description']
|
97
107
|
end
|
98
108
|
|
99
109
|
if attributes.key?(:'versions_href')
|
100
110
|
self.versions_href = attributes[:'versions_href']
|
101
111
|
end
|
102
112
|
|
113
|
+
if attributes.key?(:'pulp_created')
|
114
|
+
self.pulp_created = attributes[:'pulp_created']
|
115
|
+
end
|
116
|
+
|
103
117
|
if attributes.key?(:'latest_version_href')
|
104
118
|
self.latest_version_href = attributes[:'latest_version_href']
|
105
119
|
end
|
106
120
|
|
107
|
-
if attributes.key?(:'
|
108
|
-
self.
|
121
|
+
if attributes.key?(:'retain_repo_versions')
|
122
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
109
123
|
end
|
110
124
|
|
111
125
|
if attributes.key?(:'pulp_href')
|
@@ -115,20 +129,6 @@ module PulpContainerClient
|
|
115
129
|
if attributes.key?(:'name')
|
116
130
|
self.name = attributes[:'name']
|
117
131
|
end
|
118
|
-
|
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
|
-
end
|
132
132
|
end
|
133
133
|
|
134
134
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -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
|
-
retain_repo_versions == o.retain_repo_versions &&
|
173
|
-
versions_href == o.versions_href &&
|
174
|
-
latest_version_href == o.latest_version_href &&
|
175
172
|
manifest_signing_service == o.manifest_signing_service &&
|
176
|
-
|
177
|
-
name == o.name &&
|
173
|
+
pulp_labels == o.pulp_labels &&
|
178
174
|
description == o.description &&
|
175
|
+
versions_href == o.versions_href &&
|
179
176
|
pulp_created == o.pulp_created &&
|
180
|
-
|
177
|
+
latest_version_href == o.latest_version_href &&
|
178
|
+
retain_repo_versions == o.retain_repo_versions &&
|
179
|
+
pulp_href == o.pulp_href &&
|
180
|
+
name == o.name
|
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, pulp_labels, description, versions_href, pulp_created, latest_version_href, retain_repo_versions, pulp_href, name].hash
|
193
193
|
end
|
194
194
|
|
195
195
|
# Builds the object from hash
|