pulp_container_client 2.22.1 → 2.22.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 +5 -5
- data/docs/ContainerContainerDistributionResponse.md +11 -11
- data/docs/ContainerContainerPullThroughDistribution.md +5 -5
- data/docs/ContainerContainerPullThroughDistributionResponse.md +11 -11
- data/docs/ContainerContainerPushRepository.md +6 -6
- data/docs/ContainerContainerPushRepositoryResponse.md +14 -14
- data/docs/PatchedcontainerContainerDistribution.md +5 -5
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +5 -5
- data/docs/PatchedcontainerContainerPushRepository.md +6 -6
- data/lib/pulp_container_client/models/container_container_distribution.rb +45 -45
- 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 +45 -45
- 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 +63 -63
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +36 -36
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +36 -36
- 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 +11 -11
- data/spec/models/container_container_distribution_spec.rb +6 -6
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +11 -11
- data/spec/models/container_container_pull_through_distribution_spec.rb +6 -6
- 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 +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 +60 -60
@@ -15,48 +15,48 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class ContainerContainerPushRepository
|
18
|
+
attr_accessor :pulp_labels
|
19
|
+
|
20
|
+
# An optional description.
|
21
|
+
attr_accessor :description
|
22
|
+
|
18
23
|
# A unique name for this repository.
|
19
24
|
attr_accessor :name
|
20
25
|
|
21
26
|
# A reference to an associated signing service.
|
22
27
|
attr_accessor :manifest_signing_service
|
23
28
|
|
24
|
-
# An optional description.
|
25
|
-
attr_accessor :description
|
26
|
-
|
27
29
|
# Retain X versions of the repository. Default is null which retains all versions.
|
28
30
|
attr_accessor :retain_repo_versions
|
29
31
|
|
30
|
-
attr_accessor :pulp_labels
|
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
|
+
:'description' => :'description',
|
35
37
|
:'name' => :'name',
|
36
38
|
:'manifest_signing_service' => :'manifest_signing_service',
|
37
|
-
:'
|
38
|
-
:'retain_repo_versions' => :'retain_repo_versions',
|
39
|
-
:'pulp_labels' => :'pulp_labels'
|
39
|
+
:'retain_repo_versions' => :'retain_repo_versions'
|
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
|
+
:'description' => :'String',
|
46
48
|
:'name' => :'String',
|
47
49
|
:'manifest_signing_service' => :'String',
|
48
|
-
:'
|
49
|
-
:'retain_repo_versions' => :'Integer',
|
50
|
-
:'pulp_labels' => :'Hash<String, String>'
|
50
|
+
:'retain_repo_versions' => :'Integer'
|
51
51
|
}
|
52
52
|
end
|
53
53
|
|
54
54
|
# List of attributes with nullable: true
|
55
55
|
def self.openapi_nullable
|
56
56
|
Set.new([
|
57
|
-
:'manifest_signing_service',
|
58
57
|
:'description',
|
59
|
-
:'
|
58
|
+
:'manifest_signing_service',
|
59
|
+
:'retain_repo_versions'
|
60
60
|
])
|
61
61
|
end
|
62
62
|
|
@@ -75,6 +75,16 @@ module PulpContainerClient
|
|
75
75
|
h[k.to_sym] = v
|
76
76
|
}
|
77
77
|
|
78
|
+
if attributes.key?(:'pulp_labels')
|
79
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
80
|
+
self.pulp_labels = value
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
if attributes.key?(:'description')
|
85
|
+
self.description = attributes[:'description']
|
86
|
+
end
|
87
|
+
|
78
88
|
if attributes.key?(:'name')
|
79
89
|
self.name = attributes[:'name']
|
80
90
|
end
|
@@ -83,25 +93,19 @@ module PulpContainerClient
|
|
83
93
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
84
94
|
end
|
85
95
|
|
86
|
-
if attributes.key?(:'description')
|
87
|
-
self.description = attributes[:'description']
|
88
|
-
end
|
89
|
-
|
90
96
|
if attributes.key?(:'retain_repo_versions')
|
91
97
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
92
98
|
end
|
93
|
-
|
94
|
-
if attributes.key?(:'pulp_labels')
|
95
|
-
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
96
|
-
self.pulp_labels = value
|
97
|
-
end
|
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
|
+
description == o.description &&
|
173
175
|
name == o.name &&
|
174
176
|
manifest_signing_service == o.manifest_signing_service &&
|
175
|
-
|
176
|
-
retain_repo_versions == o.retain_repo_versions &&
|
177
|
-
pulp_labels == o.pulp_labels
|
177
|
+
retain_repo_versions == o.retain_repo_versions
|
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
|
+
[pulp_labels, description, name, manifest_signing_service, retain_repo_versions].hash
|
190
190
|
end
|
191
191
|
|
192
192
|
# Builds the object from hash
|
@@ -17,47 +17,47 @@ module PulpContainerClient
|
|
17
17
|
class ContainerContainerPushRepositoryResponse
|
18
18
|
attr_accessor :versions_href
|
19
19
|
|
20
|
-
#
|
21
|
-
attr_accessor :
|
22
|
-
|
23
|
-
# A reference to an associated signing service.
|
24
|
-
attr_accessor :manifest_signing_service
|
25
|
-
|
26
|
-
# An optional description.
|
27
|
-
attr_accessor :description
|
28
|
-
|
29
|
-
# Retain X versions of the repository. Default is null which retains all versions.
|
30
|
-
attr_accessor :retain_repo_versions
|
20
|
+
# 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.
|
21
|
+
attr_accessor :pulp_last_updated
|
31
22
|
|
32
23
|
attr_accessor :pulp_labels
|
33
24
|
|
34
|
-
attr_accessor :pulp_href
|
35
|
-
|
36
|
-
attr_accessor :latest_version_href
|
37
|
-
|
38
25
|
# Timestamp of creation.
|
39
26
|
attr_accessor :pulp_created
|
40
27
|
|
28
|
+
attr_accessor :latest_version_href
|
29
|
+
|
41
30
|
# The Pulp Resource Name (PRN).
|
42
31
|
attr_accessor :prn
|
43
32
|
|
44
|
-
#
|
45
|
-
attr_accessor :
|
33
|
+
# An optional description.
|
34
|
+
attr_accessor :description
|
35
|
+
|
36
|
+
attr_accessor :pulp_href
|
37
|
+
|
38
|
+
# A unique name for this repository.
|
39
|
+
attr_accessor :name
|
40
|
+
|
41
|
+
# A reference to an associated signing service.
|
42
|
+
attr_accessor :manifest_signing_service
|
43
|
+
|
44
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
45
|
+
attr_accessor :retain_repo_versions
|
46
46
|
|
47
47
|
# Attribute mapping from ruby-style variable name to JSON key.
|
48
48
|
def self.attribute_map
|
49
49
|
{
|
50
50
|
:'versions_href' => :'versions_href',
|
51
|
-
:'
|
52
|
-
:'manifest_signing_service' => :'manifest_signing_service',
|
53
|
-
:'description' => :'description',
|
54
|
-
:'retain_repo_versions' => :'retain_repo_versions',
|
51
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
55
52
|
:'pulp_labels' => :'pulp_labels',
|
56
|
-
:'pulp_href' => :'pulp_href',
|
57
|
-
:'latest_version_href' => :'latest_version_href',
|
58
53
|
:'pulp_created' => :'pulp_created',
|
54
|
+
:'latest_version_href' => :'latest_version_href',
|
59
55
|
:'prn' => :'prn',
|
60
|
-
:'
|
56
|
+
:'description' => :'description',
|
57
|
+
:'pulp_href' => :'pulp_href',
|
58
|
+
:'name' => :'name',
|
59
|
+
:'manifest_signing_service' => :'manifest_signing_service',
|
60
|
+
:'retain_repo_versions' => :'retain_repo_versions'
|
61
61
|
}
|
62
62
|
end
|
63
63
|
|
@@ -65,25 +65,25 @@ module PulpContainerClient
|
|
65
65
|
def self.openapi_types
|
66
66
|
{
|
67
67
|
:'versions_href' => :'String',
|
68
|
-
:'
|
69
|
-
:'manifest_signing_service' => :'String',
|
70
|
-
:'description' => :'String',
|
71
|
-
:'retain_repo_versions' => :'Integer',
|
68
|
+
:'pulp_last_updated' => :'DateTime',
|
72
69
|
:'pulp_labels' => :'Hash<String, String>',
|
73
|
-
:'pulp_href' => :'String',
|
74
|
-
:'latest_version_href' => :'String',
|
75
70
|
:'pulp_created' => :'DateTime',
|
71
|
+
:'latest_version_href' => :'String',
|
76
72
|
:'prn' => :'String',
|
77
|
-
:'
|
73
|
+
:'description' => :'String',
|
74
|
+
:'pulp_href' => :'String',
|
75
|
+
:'name' => :'String',
|
76
|
+
:'manifest_signing_service' => :'String',
|
77
|
+
:'retain_repo_versions' => :'Integer'
|
78
78
|
}
|
79
79
|
end
|
80
80
|
|
81
81
|
# List of attributes with nullable: true
|
82
82
|
def self.openapi_nullable
|
83
83
|
Set.new([
|
84
|
-
:'manifest_signing_service',
|
85
84
|
:'description',
|
86
|
-
:'
|
85
|
+
:'manifest_signing_service',
|
86
|
+
:'retain_repo_versions'
|
87
87
|
])
|
88
88
|
end
|
89
89
|
|
@@ -106,20 +106,8 @@ module PulpContainerClient
|
|
106
106
|
self.versions_href = attributes[:'versions_href']
|
107
107
|
end
|
108
108
|
|
109
|
-
if attributes.key?(:'
|
110
|
-
self.
|
111
|
-
end
|
112
|
-
|
113
|
-
if attributes.key?(:'manifest_signing_service')
|
114
|
-
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
115
|
-
end
|
116
|
-
|
117
|
-
if attributes.key?(:'description')
|
118
|
-
self.description = attributes[:'description']
|
119
|
-
end
|
120
|
-
|
121
|
-
if attributes.key?(:'retain_repo_versions')
|
122
|
-
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
109
|
+
if attributes.key?(:'pulp_last_updated')
|
110
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
123
111
|
end
|
124
112
|
|
125
113
|
if attributes.key?(:'pulp_labels')
|
@@ -128,24 +116,36 @@ module PulpContainerClient
|
|
128
116
|
end
|
129
117
|
end
|
130
118
|
|
131
|
-
if attributes.key?(:'
|
132
|
-
self.
|
119
|
+
if attributes.key?(:'pulp_created')
|
120
|
+
self.pulp_created = attributes[:'pulp_created']
|
133
121
|
end
|
134
122
|
|
135
123
|
if attributes.key?(:'latest_version_href')
|
136
124
|
self.latest_version_href = attributes[:'latest_version_href']
|
137
125
|
end
|
138
126
|
|
139
|
-
if attributes.key?(:'pulp_created')
|
140
|
-
self.pulp_created = attributes[:'pulp_created']
|
141
|
-
end
|
142
|
-
|
143
127
|
if attributes.key?(:'prn')
|
144
128
|
self.prn = attributes[:'prn']
|
145
129
|
end
|
146
130
|
|
147
|
-
if attributes.key?(:'
|
148
|
-
self.
|
131
|
+
if attributes.key?(:'description')
|
132
|
+
self.description = attributes[:'description']
|
133
|
+
end
|
134
|
+
|
135
|
+
if attributes.key?(:'pulp_href')
|
136
|
+
self.pulp_href = attributes[:'pulp_href']
|
137
|
+
end
|
138
|
+
|
139
|
+
if attributes.key?(:'name')
|
140
|
+
self.name = attributes[:'name']
|
141
|
+
end
|
142
|
+
|
143
|
+
if attributes.key?(:'manifest_signing_service')
|
144
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
145
|
+
end
|
146
|
+
|
147
|
+
if attributes.key?(:'retain_repo_versions')
|
148
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
149
149
|
end
|
150
150
|
end
|
151
151
|
|
@@ -188,16 +188,16 @@ module PulpContainerClient
|
|
188
188
|
return true if self.equal?(o)
|
189
189
|
self.class == o.class &&
|
190
190
|
versions_href == o.versions_href &&
|
191
|
-
|
192
|
-
manifest_signing_service == o.manifest_signing_service &&
|
193
|
-
description == o.description &&
|
194
|
-
retain_repo_versions == o.retain_repo_versions &&
|
191
|
+
pulp_last_updated == o.pulp_last_updated &&
|
195
192
|
pulp_labels == o.pulp_labels &&
|
196
|
-
pulp_href == o.pulp_href &&
|
197
|
-
latest_version_href == o.latest_version_href &&
|
198
193
|
pulp_created == o.pulp_created &&
|
194
|
+
latest_version_href == o.latest_version_href &&
|
199
195
|
prn == o.prn &&
|
200
|
-
|
196
|
+
description == o.description &&
|
197
|
+
pulp_href == o.pulp_href &&
|
198
|
+
name == o.name &&
|
199
|
+
manifest_signing_service == o.manifest_signing_service &&
|
200
|
+
retain_repo_versions == o.retain_repo_versions
|
201
201
|
end
|
202
202
|
|
203
203
|
# @see the `==` method
|
@@ -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
|
-
[versions_href,
|
212
|
+
[versions_href, pulp_last_updated, pulp_labels, pulp_created, latest_version_href, prn, description, pulp_href, name, manifest_signing_service, retain_repo_versions].hash
|
213
213
|
end
|
214
214
|
|
215
215
|
# Builds the object from hash
|
@@ -15,23 +15,23 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class PatchedcontainerContainerDistribution
|
18
|
-
# A unique name. Ex, `rawhide` and `stable`.
|
19
|
-
attr_accessor :name
|
20
|
-
|
21
18
|
# The latest RepositoryVersion for this Repository will be served.
|
22
19
|
attr_accessor :repository
|
23
20
|
|
24
|
-
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
25
|
-
attr_accessor :base_path
|
26
|
-
|
27
21
|
attr_accessor :pulp_labels
|
28
22
|
|
29
23
|
# An optional content-guard. If none is specified, a default one will be used.
|
30
24
|
attr_accessor :content_guard
|
31
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
|
+
|
32
29
|
# Whether this distribution should be shown in the content app.
|
33
30
|
attr_accessor :hidden
|
34
31
|
|
32
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
33
|
+
attr_accessor :name
|
34
|
+
|
35
35
|
# RepositoryVersion to be served
|
36
36
|
attr_accessor :repository_version
|
37
37
|
|
@@ -44,12 +44,12 @@ module PulpContainerClient
|
|
44
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
45
45
|
def self.attribute_map
|
46
46
|
{
|
47
|
-
:'name' => :'name',
|
48
47
|
:'repository' => :'repository',
|
49
|
-
:'base_path' => :'base_path',
|
50
48
|
:'pulp_labels' => :'pulp_labels',
|
51
49
|
:'content_guard' => :'content_guard',
|
50
|
+
:'base_path' => :'base_path',
|
52
51
|
:'hidden' => :'hidden',
|
52
|
+
:'name' => :'name',
|
53
53
|
:'repository_version' => :'repository_version',
|
54
54
|
:'private' => :'private',
|
55
55
|
:'description' => :'description'
|
@@ -59,12 +59,12 @@ module PulpContainerClient
|
|
59
59
|
# Attribute type mapping.
|
60
60
|
def self.openapi_types
|
61
61
|
{
|
62
|
-
:'name' => :'String',
|
63
62
|
:'repository' => :'String',
|
64
|
-
:'base_path' => :'String',
|
65
63
|
:'pulp_labels' => :'Hash<String, String>',
|
66
64
|
:'content_guard' => :'String',
|
65
|
+
:'base_path' => :'String',
|
67
66
|
:'hidden' => :'Boolean',
|
67
|
+
:'name' => :'String',
|
68
68
|
:'repository_version' => :'String',
|
69
69
|
:'private' => :'Boolean',
|
70
70
|
:'description' => :'String'
|
@@ -95,18 +95,10 @@ module PulpContainerClient
|
|
95
95
|
h[k.to_sym] = v
|
96
96
|
}
|
97
97
|
|
98
|
-
if attributes.key?(:'name')
|
99
|
-
self.name = attributes[:'name']
|
100
|
-
end
|
101
|
-
|
102
98
|
if attributes.key?(:'repository')
|
103
99
|
self.repository = attributes[:'repository']
|
104
100
|
end
|
105
101
|
|
106
|
-
if attributes.key?(:'base_path')
|
107
|
-
self.base_path = attributes[:'base_path']
|
108
|
-
end
|
109
|
-
|
110
102
|
if attributes.key?(:'pulp_labels')
|
111
103
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
112
104
|
self.pulp_labels = value
|
@@ -117,12 +109,20 @@ module PulpContainerClient
|
|
117
109
|
self.content_guard = attributes[:'content_guard']
|
118
110
|
end
|
119
111
|
|
112
|
+
if attributes.key?(:'base_path')
|
113
|
+
self.base_path = attributes[:'base_path']
|
114
|
+
end
|
115
|
+
|
120
116
|
if attributes.key?(:'hidden')
|
121
117
|
self.hidden = attributes[:'hidden']
|
122
118
|
else
|
123
119
|
self.hidden = false
|
124
120
|
end
|
125
121
|
|
122
|
+
if attributes.key?(:'name')
|
123
|
+
self.name = attributes[:'name']
|
124
|
+
end
|
125
|
+
|
126
126
|
if attributes.key?(:'repository_version')
|
127
127
|
self.repository_version = attributes[:'repository_version']
|
128
128
|
end
|
@@ -140,14 +140,14 @@ module PulpContainerClient
|
|
140
140
|
# @return Array for valid properties with the reasons
|
141
141
|
def list_invalid_properties
|
142
142
|
invalid_properties = Array.new
|
143
|
-
if !@name.nil? && @name.to_s.length < 1
|
144
|
-
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
145
|
-
end
|
146
|
-
|
147
143
|
if !@base_path.nil? && @base_path.to_s.length < 1
|
148
144
|
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
149
145
|
end
|
150
146
|
|
147
|
+
if !@name.nil? && @name.to_s.length < 1
|
148
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
149
|
+
end
|
150
|
+
|
151
151
|
if !@description.nil? && @description.to_s.length < 1
|
152
152
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
153
153
|
end
|
@@ -158,22 +158,12 @@ module PulpContainerClient
|
|
158
158
|
# Check to see if the all the properties in the model are valid
|
159
159
|
# @return true if the model is valid
|
160
160
|
def valid?
|
161
|
-
return false if !@name.nil? && @name.to_s.length < 1
|
162
161
|
return false if !@base_path.nil? && @base_path.to_s.length < 1
|
162
|
+
return false if !@name.nil? && @name.to_s.length < 1
|
163
163
|
return false if !@description.nil? && @description.to_s.length < 1
|
164
164
|
true
|
165
165
|
end
|
166
166
|
|
167
|
-
# Custom attribute writer method with validation
|
168
|
-
# @param [Object] name Value to be assigned
|
169
|
-
def name=(name)
|
170
|
-
if !name.nil? && name.to_s.length < 1
|
171
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
172
|
-
end
|
173
|
-
|
174
|
-
@name = name
|
175
|
-
end
|
176
|
-
|
177
167
|
# Custom attribute writer method with validation
|
178
168
|
# @param [Object] base_path Value to be assigned
|
179
169
|
def base_path=(base_path)
|
@@ -184,6 +174,16 @@ module PulpContainerClient
|
|
184
174
|
@base_path = base_path
|
185
175
|
end
|
186
176
|
|
177
|
+
# Custom attribute writer method with validation
|
178
|
+
# @param [Object] name Value to be assigned
|
179
|
+
def name=(name)
|
180
|
+
if !name.nil? && name.to_s.length < 1
|
181
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
182
|
+
end
|
183
|
+
|
184
|
+
@name = name
|
185
|
+
end
|
186
|
+
|
187
187
|
# Custom attribute writer method with validation
|
188
188
|
# @param [Object] description Value to be assigned
|
189
189
|
def description=(description)
|
@@ -199,12 +199,12 @@ module PulpContainerClient
|
|
199
199
|
def ==(o)
|
200
200
|
return true if self.equal?(o)
|
201
201
|
self.class == o.class &&
|
202
|
-
name == o.name &&
|
203
202
|
repository == o.repository &&
|
204
|
-
base_path == o.base_path &&
|
205
203
|
pulp_labels == o.pulp_labels &&
|
206
204
|
content_guard == o.content_guard &&
|
205
|
+
base_path == o.base_path &&
|
207
206
|
hidden == o.hidden &&
|
207
|
+
name == o.name &&
|
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
|
-
[
|
222
|
+
[repository, pulp_labels, content_guard, base_path, hidden, name, repository_version, private, description].hash
|
223
223
|
end
|
224
224
|
|
225
225
|
# Builds the object from hash
|