pulp_container_client 2.9.10 → 2.10.0
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 +9 -9
- data/docs/ContainerContainerPushRepository.md +6 -6
- data/docs/ContainerContainerPushRepositoryResponse.md +11 -11
- data/docs/ContainerContainerRemote.md +1 -1
- data/docs/ContainerContainerRemoteResponse.md +1 -1
- data/docs/PatchedcontainerContainerDistribution.md +7 -7
- data/docs/PatchedcontainerContainerPushRepository.md +6 -6
- data/docs/PatchedcontainerContainerRemote.md +1 -1
- data/git_push.sh +58 -0
- data/lib/pulp_container_client/api/repositories_container_api.rb +4 -0
- data/lib/pulp_container_client/api_client.rb +5 -2
- data/lib/pulp_container_client/configuration.rb +0 -1
- data/lib/pulp_container_client/models/container_container_distribution.rb +81 -28
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +40 -40
- data/lib/pulp_container_client/models/container_container_namespace.rb +9 -0
- data/lib/pulp_container_client/models/container_container_push_repository.rb +62 -28
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +52 -52
- data/lib/pulp_container_client/models/container_container_remote.rb +178 -1
- data/lib/pulp_container_client/models/container_container_remote_response.rb +1 -1
- data/lib/pulp_container_client/models/container_container_repository.rb +34 -0
- data/lib/pulp_container_client/models/container_content_redirect_content_guard.rb +34 -0
- data/lib/pulp_container_client/models/oci_build_image.rb +15 -0
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +70 -25
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +55 -25
- data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +166 -1
- data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +30 -0
- data/lib/pulp_container_client/models/patchedcontainer_content_redirect_content_guard.rb +30 -0
- data/lib/pulp_container_client/models/remove_image.rb +19 -0
- data/lib/pulp_container_client/models/tag_image.rb +28 -0
- data/lib/pulp_container_client/models/un_tag_image.rb +9 -0
- data/lib/pulp_container_client/version.rb +1 -1
- data/pulp_container_client.gemspec +3 -3
- data/spec/models/container_container_distribution_response_spec.rb +7 -7
- data/spec/models/container_container_distribution_spec.rb +4 -4
- data/spec/models/container_container_push_repository_response_spec.rb +8 -8
- data/spec/models/container_container_push_repository_spec.rb +4 -4
- data/spec/models/patchedcontainer_container_distribution_spec.rb +4 -4
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
- metadata +50 -55
@@ -15,24 +15,24 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class ContainerContainerDistributionResponse
|
18
|
-
#
|
19
|
-
attr_accessor :
|
18
|
+
# Timestamp of creation.
|
19
|
+
attr_accessor :pulp_created
|
20
20
|
|
21
|
-
|
22
|
-
|
21
|
+
attr_accessor :pulp_labels
|
22
|
+
|
23
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
24
|
+
attr_accessor :content_guard
|
23
25
|
|
24
26
|
# A unique name. Ex, `rawhide` and `stable`.
|
25
27
|
attr_accessor :name
|
26
28
|
|
27
|
-
#
|
28
|
-
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
|
29
31
|
|
30
32
|
attr_accessor :pulp_href
|
31
33
|
|
32
|
-
|
33
|
-
|
34
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
35
|
-
attr_accessor :content_guard
|
34
|
+
# The latest RepositoryVersion for this Repository will be served.
|
35
|
+
attr_accessor :repository
|
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
|
-
:'base_path' => :'base_path',
|
56
|
-
:'repository' => :'repository',
|
57
|
-
:'name' => :'name',
|
58
55
|
:'pulp_created' => :'pulp_created',
|
59
|
-
:'pulp_href' => :'pulp_href',
|
60
56
|
:'pulp_labels' => :'pulp_labels',
|
61
57
|
:'content_guard' => :'content_guard',
|
58
|
+
:'name' => :'name',
|
59
|
+
:'base_path' => :'base_path',
|
60
|
+
:'pulp_href' => :'pulp_href',
|
61
|
+
:'repository' => :'repository',
|
62
62
|
:'repository_version' => :'repository_version',
|
63
63
|
:'registry_path' => :'registry_path',
|
64
64
|
:'namespace' => :'namespace',
|
@@ -70,13 +70,13 @@ module PulpContainerClient
|
|
70
70
|
# Attribute type mapping.
|
71
71
|
def self.openapi_types
|
72
72
|
{
|
73
|
-
:'base_path' => :'String',
|
74
|
-
:'repository' => :'String',
|
75
|
-
:'name' => :'String',
|
76
73
|
:'pulp_created' => :'DateTime',
|
77
|
-
:'pulp_href' => :'String',
|
78
74
|
:'pulp_labels' => :'Object',
|
79
75
|
:'content_guard' => :'String',
|
76
|
+
:'name' => :'String',
|
77
|
+
:'base_path' => :'String',
|
78
|
+
:'pulp_href' => :'String',
|
79
|
+
:'repository' => :'String',
|
80
80
|
:'repository_version' => :'String',
|
81
81
|
:'registry_path' => :'String',
|
82
82
|
:'namespace' => :'String',
|
@@ -109,32 +109,32 @@ module PulpContainerClient
|
|
109
109
|
h[k.to_sym] = v
|
110
110
|
}
|
111
111
|
|
112
|
-
if attributes.key?(:'
|
113
|
-
self.
|
112
|
+
if attributes.key?(:'pulp_created')
|
113
|
+
self.pulp_created = attributes[:'pulp_created']
|
114
114
|
end
|
115
115
|
|
116
|
-
if attributes.key?(:'
|
117
|
-
self.
|
116
|
+
if attributes.key?(:'pulp_labels')
|
117
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
118
|
+
end
|
119
|
+
|
120
|
+
if attributes.key?(:'content_guard')
|
121
|
+
self.content_guard = attributes[:'content_guard']
|
118
122
|
end
|
119
123
|
|
120
124
|
if attributes.key?(:'name')
|
121
125
|
self.name = attributes[:'name']
|
122
126
|
end
|
123
127
|
|
124
|
-
if attributes.key?(:'
|
125
|
-
self.
|
128
|
+
if attributes.key?(:'base_path')
|
129
|
+
self.base_path = attributes[:'base_path']
|
126
130
|
end
|
127
131
|
|
128
132
|
if attributes.key?(:'pulp_href')
|
129
133
|
self.pulp_href = attributes[:'pulp_href']
|
130
134
|
end
|
131
135
|
|
132
|
-
if attributes.key?(:'
|
133
|
-
self.
|
134
|
-
end
|
135
|
-
|
136
|
-
if attributes.key?(:'content_guard')
|
137
|
-
self.content_guard = attributes[:'content_guard']
|
136
|
+
if attributes.key?(:'repository')
|
137
|
+
self.repository = attributes[:'repository']
|
138
138
|
end
|
139
139
|
|
140
140
|
if attributes.key?(:'repository_version')
|
@@ -162,22 +162,22 @@ module PulpContainerClient
|
|
162
162
|
# @return Array for valid properties with the reasons
|
163
163
|
def list_invalid_properties
|
164
164
|
invalid_properties = Array.new
|
165
|
-
if @base_path.nil?
|
166
|
-
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
167
|
-
end
|
168
|
-
|
169
165
|
if @name.nil?
|
170
166
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
171
167
|
end
|
172
168
|
|
169
|
+
if @base_path.nil?
|
170
|
+
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
171
|
+
end
|
172
|
+
|
173
173
|
invalid_properties
|
174
174
|
end
|
175
175
|
|
176
176
|
# Check to see if the all the properties in the model are valid
|
177
177
|
# @return true if the model is valid
|
178
178
|
def valid?
|
179
|
-
return false if @base_path.nil?
|
180
179
|
return false if @name.nil?
|
180
|
+
return false if @base_path.nil?
|
181
181
|
true
|
182
182
|
end
|
183
183
|
|
@@ -186,13 +186,13 @@ module PulpContainerClient
|
|
186
186
|
def ==(o)
|
187
187
|
return true if self.equal?(o)
|
188
188
|
self.class == o.class &&
|
189
|
-
base_path == o.base_path &&
|
190
|
-
repository == o.repository &&
|
191
|
-
name == o.name &&
|
192
189
|
pulp_created == o.pulp_created &&
|
193
|
-
pulp_href == o.pulp_href &&
|
194
190
|
pulp_labels == o.pulp_labels &&
|
195
191
|
content_guard == o.content_guard &&
|
192
|
+
name == o.name &&
|
193
|
+
base_path == o.base_path &&
|
194
|
+
pulp_href == o.pulp_href &&
|
195
|
+
repository == o.repository &&
|
196
196
|
repository_version == o.repository_version &&
|
197
197
|
registry_path == o.registry_path &&
|
198
198
|
namespace == o.namespace &&
|
@@ -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
|
+
[pulp_created, pulp_labels, content_guard, name, base_path, pulp_href, repository, repository_version, registry_path, namespace, private, description].hash
|
213
213
|
end
|
214
214
|
|
215
215
|
# Builds the object from hash
|
@@ -69,6 +69,10 @@ module PulpContainerClient
|
|
69
69
|
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 255.')
|
70
70
|
end
|
71
71
|
|
72
|
+
if @name.to_s.length < 1
|
73
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
74
|
+
end
|
75
|
+
|
72
76
|
invalid_properties
|
73
77
|
end
|
74
78
|
|
@@ -77,6 +81,7 @@ module PulpContainerClient
|
|
77
81
|
def valid?
|
78
82
|
return false if @name.nil?
|
79
83
|
return false if @name.to_s.length > 255
|
84
|
+
return false if @name.to_s.length < 1
|
80
85
|
true
|
81
86
|
end
|
82
87
|
|
@@ -91,6 +96,10 @@ module PulpContainerClient
|
|
91
96
|
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 255.'
|
92
97
|
end
|
93
98
|
|
99
|
+
if name.to_s.length < 1
|
100
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
101
|
+
end
|
102
|
+
|
94
103
|
@name = name
|
95
104
|
end
|
96
105
|
|
@@ -15,42 +15,42 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class ContainerContainerPushRepository
|
18
|
-
#
|
19
|
-
attr_accessor :
|
18
|
+
# An optional description.
|
19
|
+
attr_accessor :description
|
20
|
+
|
21
|
+
attr_accessor :pulp_labels
|
20
22
|
|
21
23
|
# Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
|
22
24
|
attr_accessor :retain_repo_versions
|
23
25
|
|
24
|
-
|
25
|
-
|
26
|
-
# An optional description.
|
27
|
-
attr_accessor :description
|
26
|
+
# A unique name for this repository.
|
27
|
+
attr_accessor :name
|
28
28
|
|
29
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
30
30
|
def self.attribute_map
|
31
31
|
{
|
32
|
-
:'
|
33
|
-
:'retain_repo_versions' => :'retain_repo_versions',
|
32
|
+
:'description' => :'description',
|
34
33
|
:'pulp_labels' => :'pulp_labels',
|
35
|
-
:'
|
34
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
35
|
+
:'name' => :'name'
|
36
36
|
}
|
37
37
|
end
|
38
38
|
|
39
39
|
# Attribute type mapping.
|
40
40
|
def self.openapi_types
|
41
41
|
{
|
42
|
-
:'
|
43
|
-
:'retain_repo_versions' => :'Integer',
|
42
|
+
:'description' => :'String',
|
44
43
|
:'pulp_labels' => :'Object',
|
45
|
-
:'
|
44
|
+
:'retain_repo_versions' => :'Integer',
|
45
|
+
:'name' => :'String'
|
46
46
|
}
|
47
47
|
end
|
48
48
|
|
49
49
|
# List of attributes with nullable: true
|
50
50
|
def self.openapi_nullable
|
51
51
|
Set.new([
|
52
|
+
:'description',
|
52
53
|
:'retain_repo_versions',
|
53
|
-
:'description'
|
54
54
|
])
|
55
55
|
end
|
56
56
|
|
@@ -69,20 +69,20 @@ module PulpContainerClient
|
|
69
69
|
h[k.to_sym] = v
|
70
70
|
}
|
71
71
|
|
72
|
-
if attributes.key?(:'
|
73
|
-
self.
|
74
|
-
end
|
75
|
-
|
76
|
-
if attributes.key?(:'retain_repo_versions')
|
77
|
-
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
72
|
+
if attributes.key?(:'description')
|
73
|
+
self.description = attributes[:'description']
|
78
74
|
end
|
79
75
|
|
80
76
|
if attributes.key?(:'pulp_labels')
|
81
77
|
self.pulp_labels = attributes[:'pulp_labels']
|
82
78
|
end
|
83
79
|
|
84
|
-
if attributes.key?(:'
|
85
|
-
self.
|
80
|
+
if attributes.key?(:'retain_repo_versions')
|
81
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
82
|
+
end
|
83
|
+
|
84
|
+
if attributes.key?(:'name')
|
85
|
+
self.name = attributes[:'name']
|
86
86
|
end
|
87
87
|
end
|
88
88
|
|
@@ -90,25 +90,45 @@ module PulpContainerClient
|
|
90
90
|
# @return Array for valid properties with the reasons
|
91
91
|
def list_invalid_properties
|
92
92
|
invalid_properties = Array.new
|
93
|
-
if
|
94
|
-
invalid_properties.push('invalid value for "
|
93
|
+
if !@description.nil? && @description.to_s.length < 1
|
94
|
+
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
95
95
|
end
|
96
96
|
|
97
97
|
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
98
98
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
99
99
|
end
|
100
100
|
|
101
|
+
if @name.nil?
|
102
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
103
|
+
end
|
104
|
+
|
105
|
+
if @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
|
+
|
101
109
|
invalid_properties
|
102
110
|
end
|
103
111
|
|
104
112
|
# Check to see if the all the properties in the model are valid
|
105
113
|
# @return true if the model is valid
|
106
114
|
def valid?
|
107
|
-
return false if
|
115
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
108
116
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
117
|
+
return false if @name.nil?
|
118
|
+
return false if @name.to_s.length < 1
|
109
119
|
true
|
110
120
|
end
|
111
121
|
|
122
|
+
# Custom attribute writer method with validation
|
123
|
+
# @param [Object] description Value to be assigned
|
124
|
+
def description=(description)
|
125
|
+
if !description.nil? && description.to_s.length < 1
|
126
|
+
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
127
|
+
end
|
128
|
+
|
129
|
+
@description = description
|
130
|
+
end
|
131
|
+
|
112
132
|
# Custom attribute writer method with validation
|
113
133
|
# @param [Object] retain_repo_versions Value to be assigned
|
114
134
|
def retain_repo_versions=(retain_repo_versions)
|
@@ -119,15 +139,29 @@ module PulpContainerClient
|
|
119
139
|
@retain_repo_versions = retain_repo_versions
|
120
140
|
end
|
121
141
|
|
142
|
+
# Custom attribute writer method with validation
|
143
|
+
# @param [Object] name Value to be assigned
|
144
|
+
def name=(name)
|
145
|
+
if name.nil?
|
146
|
+
fail ArgumentError, 'name cannot be nil'
|
147
|
+
end
|
148
|
+
|
149
|
+
if name.to_s.length < 1
|
150
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
151
|
+
end
|
152
|
+
|
153
|
+
@name = name
|
154
|
+
end
|
155
|
+
|
122
156
|
# Checks equality by comparing each attribute.
|
123
157
|
# @param [Object] Object to be compared
|
124
158
|
def ==(o)
|
125
159
|
return true if self.equal?(o)
|
126
160
|
self.class == o.class &&
|
127
|
-
|
128
|
-
retain_repo_versions == o.retain_repo_versions &&
|
161
|
+
description == o.description &&
|
129
162
|
pulp_labels == o.pulp_labels &&
|
130
|
-
|
163
|
+
retain_repo_versions == o.retain_repo_versions &&
|
164
|
+
name == o.name
|
131
165
|
end
|
132
166
|
|
133
167
|
# @see the `==` method
|
@@ -139,7 +173,7 @@ module PulpContainerClient
|
|
139
173
|
# Calculates hash code according to all attributes.
|
140
174
|
# @return [Integer] Hash code
|
141
175
|
def hash
|
142
|
-
[
|
176
|
+
[description, pulp_labels, retain_repo_versions, name].hash
|
143
177
|
end
|
144
178
|
|
145
179
|
# Builds the object from hash
|
@@ -15,59 +15,59 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class ContainerContainerPushRepositoryResponse
|
18
|
-
attr_accessor :latest_version_href
|
19
|
-
|
20
|
-
# A unique name for this repository.
|
21
|
-
attr_accessor :name
|
22
|
-
|
23
|
-
attr_accessor :versions_href
|
24
|
-
|
25
18
|
# Timestamp of creation.
|
26
19
|
attr_accessor :pulp_created
|
27
20
|
|
21
|
+
# An optional description.
|
22
|
+
attr_accessor :description
|
23
|
+
|
24
|
+
attr_accessor :pulp_labels
|
25
|
+
|
28
26
|
# 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.
|
29
27
|
attr_accessor :retain_repo_versions
|
30
28
|
|
31
|
-
|
29
|
+
# A unique name for this repository.
|
30
|
+
attr_accessor :name
|
32
31
|
|
33
|
-
attr_accessor :
|
32
|
+
attr_accessor :versions_href
|
34
33
|
|
35
|
-
|
36
|
-
|
34
|
+
attr_accessor :latest_version_href
|
35
|
+
|
36
|
+
attr_accessor :pulp_href
|
37
37
|
|
38
38
|
# Attribute mapping from ruby-style variable name to JSON key.
|
39
39
|
def self.attribute_map
|
40
40
|
{
|
41
|
-
:'latest_version_href' => :'latest_version_href',
|
42
|
-
:'name' => :'name',
|
43
|
-
:'versions_href' => :'versions_href',
|
44
41
|
:'pulp_created' => :'pulp_created',
|
45
|
-
:'
|
46
|
-
:'pulp_href' => :'pulp_href',
|
42
|
+
:'description' => :'description',
|
47
43
|
:'pulp_labels' => :'pulp_labels',
|
48
|
-
:'
|
44
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
45
|
+
:'name' => :'name',
|
46
|
+
:'versions_href' => :'versions_href',
|
47
|
+
:'latest_version_href' => :'latest_version_href',
|
48
|
+
:'pulp_href' => :'pulp_href'
|
49
49
|
}
|
50
50
|
end
|
51
51
|
|
52
52
|
# Attribute type mapping.
|
53
53
|
def self.openapi_types
|
54
54
|
{
|
55
|
-
:'latest_version_href' => :'String',
|
56
|
-
:'name' => :'String',
|
57
|
-
:'versions_href' => :'String',
|
58
55
|
:'pulp_created' => :'DateTime',
|
59
|
-
:'
|
60
|
-
:'pulp_href' => :'String',
|
56
|
+
:'description' => :'String',
|
61
57
|
:'pulp_labels' => :'Object',
|
62
|
-
:'
|
58
|
+
:'retain_repo_versions' => :'Integer',
|
59
|
+
:'name' => :'String',
|
60
|
+
:'versions_href' => :'String',
|
61
|
+
:'latest_version_href' => :'String',
|
62
|
+
:'pulp_href' => :'String'
|
63
63
|
}
|
64
64
|
end
|
65
65
|
|
66
66
|
# List of attributes with nullable: true
|
67
67
|
def self.openapi_nullable
|
68
68
|
Set.new([
|
69
|
+
:'description',
|
69
70
|
:'retain_repo_versions',
|
70
|
-
:'description'
|
71
71
|
])
|
72
72
|
end
|
73
73
|
|
@@ -86,36 +86,36 @@ module PulpContainerClient
|
|
86
86
|
h[k.to_sym] = v
|
87
87
|
}
|
88
88
|
|
89
|
-
if attributes.key?(:'
|
90
|
-
self.
|
91
|
-
end
|
92
|
-
|
93
|
-
if attributes.key?(:'name')
|
94
|
-
self.name = attributes[:'name']
|
89
|
+
if attributes.key?(:'pulp_created')
|
90
|
+
self.pulp_created = attributes[:'pulp_created']
|
95
91
|
end
|
96
92
|
|
97
|
-
if attributes.key?(:'
|
98
|
-
self.
|
93
|
+
if attributes.key?(:'description')
|
94
|
+
self.description = attributes[:'description']
|
99
95
|
end
|
100
96
|
|
101
|
-
if attributes.key?(:'
|
102
|
-
self.
|
97
|
+
if attributes.key?(:'pulp_labels')
|
98
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
103
99
|
end
|
104
100
|
|
105
101
|
if attributes.key?(:'retain_repo_versions')
|
106
102
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
107
103
|
end
|
108
104
|
|
109
|
-
if attributes.key?(:'
|
110
|
-
self.
|
105
|
+
if attributes.key?(:'name')
|
106
|
+
self.name = attributes[:'name']
|
111
107
|
end
|
112
108
|
|
113
|
-
if attributes.key?(:'
|
114
|
-
self.
|
109
|
+
if attributes.key?(:'versions_href')
|
110
|
+
self.versions_href = attributes[:'versions_href']
|
115
111
|
end
|
116
112
|
|
117
|
-
if attributes.key?(:'
|
118
|
-
self.
|
113
|
+
if attributes.key?(:'latest_version_href')
|
114
|
+
self.latest_version_href = attributes[:'latest_version_href']
|
115
|
+
end
|
116
|
+
|
117
|
+
if attributes.key?(:'pulp_href')
|
118
|
+
self.pulp_href = attributes[:'pulp_href']
|
119
119
|
end
|
120
120
|
end
|
121
121
|
|
@@ -123,22 +123,22 @@ module PulpContainerClient
|
|
123
123
|
# @return Array for valid properties with the reasons
|
124
124
|
def list_invalid_properties
|
125
125
|
invalid_properties = Array.new
|
126
|
-
if @name.nil?
|
127
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
128
|
-
end
|
129
|
-
|
130
126
|
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
131
127
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
132
128
|
end
|
133
129
|
|
130
|
+
if @name.nil?
|
131
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
132
|
+
end
|
133
|
+
|
134
134
|
invalid_properties
|
135
135
|
end
|
136
136
|
|
137
137
|
# Check to see if the all the properties in the model are valid
|
138
138
|
# @return true if the model is valid
|
139
139
|
def valid?
|
140
|
-
return false if @name.nil?
|
141
140
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
141
|
+
return false if @name.nil?
|
142
142
|
true
|
143
143
|
end
|
144
144
|
|
@@ -157,14 +157,14 @@ module PulpContainerClient
|
|
157
157
|
def ==(o)
|
158
158
|
return true if self.equal?(o)
|
159
159
|
self.class == o.class &&
|
160
|
-
latest_version_href == o.latest_version_href &&
|
161
|
-
name == o.name &&
|
162
|
-
versions_href == o.versions_href &&
|
163
160
|
pulp_created == o.pulp_created &&
|
164
|
-
|
165
|
-
pulp_href == o.pulp_href &&
|
161
|
+
description == o.description &&
|
166
162
|
pulp_labels == o.pulp_labels &&
|
167
|
-
|
163
|
+
retain_repo_versions == o.retain_repo_versions &&
|
164
|
+
name == o.name &&
|
165
|
+
versions_href == o.versions_href &&
|
166
|
+
latest_version_href == o.latest_version_href &&
|
167
|
+
pulp_href == o.pulp_href
|
168
168
|
end
|
169
169
|
|
170
170
|
# @see the `==` method
|
@@ -176,7 +176,7 @@ module PulpContainerClient
|
|
176
176
|
# Calculates hash code according to all attributes.
|
177
177
|
# @return [Integer] Hash code
|
178
178
|
def hash
|
179
|
-
[
|
179
|
+
[pulp_created, description, pulp_labels, retain_repo_versions, name, versions_href, latest_version_href, pulp_href].hash
|
180
180
|
end
|
181
181
|
|
182
182
|
# Builds the object from hash
|