pulp_container_client 2.19.6 → 2.19.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/docs/ContainerContainerDistribution.md +4 -4
- data/docs/ContainerContainerDistributionResponse.md +11 -11
- data/docs/ContainerContainerPullThroughDistribution.md +4 -4
- data/docs/ContainerContainerPullThroughDistributionResponse.md +11 -11
- data/docs/ContainerContainerPushRepository.md +2 -2
- data/docs/ContainerContainerPushRepositoryResponse.md +13 -13
- data/docs/PatchedcontainerContainerDistribution.md +4 -4
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +4 -4
- data/docs/PatchedcontainerContainerPushRepository.md +2 -2
- data/lib/pulp_container_client/models/container_container_distribution.rb +47 -47
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +51 -51
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +47 -47
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +51 -51
- data/lib/pulp_container_client/models/container_container_push_repository.rb +27 -27
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +52 -52
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +38 -38
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +38 -38
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +27 -27
- 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 +5 -5
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +8 -8
- data/spec/models/container_container_pull_through_distribution_spec.rb +5 -5
- data/spec/models/container_container_push_repository_response_spec.rb +10 -10
- data/spec/models/container_container_push_repository_spec.rb +3 -3
- data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +3 -3
- metadata +2 -2
|
@@ -17,15 +17,15 @@ module PulpContainerClient
|
|
|
17
17
|
class ContainerContainerPushRepository
|
|
18
18
|
attr_accessor :pulp_labels
|
|
19
19
|
|
|
20
|
+
# An optional description.
|
|
21
|
+
attr_accessor :description
|
|
22
|
+
|
|
20
23
|
# A unique name for this repository.
|
|
21
24
|
attr_accessor :name
|
|
22
25
|
|
|
23
26
|
# A reference to an associated signing service.
|
|
24
27
|
attr_accessor :manifest_signing_service
|
|
25
28
|
|
|
26
|
-
# An optional description.
|
|
27
|
-
attr_accessor :description
|
|
28
|
-
|
|
29
29
|
# Retain X versions of the repository. Default is null which retains all versions.
|
|
30
30
|
attr_accessor :retain_repo_versions
|
|
31
31
|
|
|
@@ -33,9 +33,9 @@ module PulpContainerClient
|
|
|
33
33
|
def self.attribute_map
|
|
34
34
|
{
|
|
35
35
|
:'pulp_labels' => :'pulp_labels',
|
|
36
|
+
:'description' => :'description',
|
|
36
37
|
:'name' => :'name',
|
|
37
38
|
:'manifest_signing_service' => :'manifest_signing_service',
|
|
38
|
-
:'description' => :'description',
|
|
39
39
|
:'retain_repo_versions' => :'retain_repo_versions'
|
|
40
40
|
}
|
|
41
41
|
end
|
|
@@ -44,9 +44,9 @@ module PulpContainerClient
|
|
|
44
44
|
def self.openapi_types
|
|
45
45
|
{
|
|
46
46
|
:'pulp_labels' => :'Hash<String, String>',
|
|
47
|
+
:'description' => :'String',
|
|
47
48
|
:'name' => :'String',
|
|
48
49
|
:'manifest_signing_service' => :'String',
|
|
49
|
-
:'description' => :'String',
|
|
50
50
|
:'retain_repo_versions' => :'Integer'
|
|
51
51
|
}
|
|
52
52
|
end
|
|
@@ -54,8 +54,8 @@ module PulpContainerClient
|
|
|
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',
|
|
58
|
+
:'manifest_signing_service',
|
|
59
59
|
:'retain_repo_versions'
|
|
60
60
|
])
|
|
61
61
|
end
|
|
@@ -81,6 +81,10 @@ module PulpContainerClient
|
|
|
81
81
|
end
|
|
82
82
|
end
|
|
83
83
|
|
|
84
|
+
if attributes.key?(:'description')
|
|
85
|
+
self.description = attributes[:'description']
|
|
86
|
+
end
|
|
87
|
+
|
|
84
88
|
if attributes.key?(:'name')
|
|
85
89
|
self.name = attributes[:'name']
|
|
86
90
|
end
|
|
@@ -89,10 +93,6 @@ module PulpContainerClient
|
|
|
89
93
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
90
94
|
end
|
|
91
95
|
|
|
92
|
-
if attributes.key?(:'description')
|
|
93
|
-
self.description = attributes[:'description']
|
|
94
|
-
end
|
|
95
|
-
|
|
96
96
|
if attributes.key?(:'retain_repo_versions')
|
|
97
97
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
98
98
|
end
|
|
@@ -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 @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)
|
|
@@ -171,9 +171,9 @@ module PulpContainerClient
|
|
|
171
171
|
return true if self.equal?(o)
|
|
172
172
|
self.class == o.class &&
|
|
173
173
|
pulp_labels == o.pulp_labels &&
|
|
174
|
+
description == o.description &&
|
|
174
175
|
name == o.name &&
|
|
175
176
|
manifest_signing_service == o.manifest_signing_service &&
|
|
176
|
-
description == o.description &&
|
|
177
177
|
retain_repo_versions == o.retain_repo_versions
|
|
178
178
|
end
|
|
179
179
|
|
|
@@ -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
|
-
[pulp_labels, name, manifest_signing_service,
|
|
189
|
+
[pulp_labels, description, name, manifest_signing_service, retain_repo_versions].hash
|
|
190
190
|
end
|
|
191
191
|
|
|
192
192
|
# Builds the object from hash
|
|
@@ -15,69 +15,69 @@ require 'date'
|
|
|
15
15
|
module PulpContainerClient
|
|
16
16
|
# Serializer for Container Push Repositories.
|
|
17
17
|
class ContainerContainerPushRepositoryResponse
|
|
18
|
+
# 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.
|
|
19
|
+
attr_accessor :pulp_last_updated
|
|
20
|
+
|
|
18
21
|
attr_accessor :pulp_labels
|
|
19
22
|
|
|
20
|
-
|
|
21
|
-
attr_accessor :name
|
|
23
|
+
attr_accessor :pulp_href
|
|
22
24
|
|
|
23
|
-
|
|
25
|
+
# Timestamp of creation.
|
|
26
|
+
attr_accessor :pulp_created
|
|
24
27
|
|
|
25
|
-
|
|
26
|
-
attr_accessor :manifest_signing_service
|
|
28
|
+
attr_accessor :versions_href
|
|
27
29
|
|
|
28
30
|
# An optional description.
|
|
29
31
|
attr_accessor :description
|
|
30
32
|
|
|
31
|
-
#
|
|
32
|
-
attr_accessor :
|
|
33
|
-
|
|
34
|
-
attr_accessor :pulp_href
|
|
33
|
+
# A unique name for this repository.
|
|
34
|
+
attr_accessor :name
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
# A reference to an associated signing service.
|
|
37
|
+
attr_accessor :manifest_signing_service
|
|
37
38
|
|
|
38
|
-
#
|
|
39
|
-
attr_accessor :
|
|
39
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
|
40
|
+
attr_accessor :retain_repo_versions
|
|
40
41
|
|
|
41
|
-
|
|
42
|
-
attr_accessor :pulp_created
|
|
42
|
+
attr_accessor :latest_version_href
|
|
43
43
|
|
|
44
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
45
45
|
def self.attribute_map
|
|
46
46
|
{
|
|
47
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
|
47
48
|
:'pulp_labels' => :'pulp_labels',
|
|
49
|
+
:'pulp_href' => :'pulp_href',
|
|
50
|
+
:'pulp_created' => :'pulp_created',
|
|
51
|
+
:'versions_href' => :'versions_href',
|
|
52
|
+
:'description' => :'description',
|
|
48
53
|
:'name' => :'name',
|
|
49
|
-
:'latest_version_href' => :'latest_version_href',
|
|
50
54
|
:'manifest_signing_service' => :'manifest_signing_service',
|
|
51
|
-
:'description' => :'description',
|
|
52
55
|
:'retain_repo_versions' => :'retain_repo_versions',
|
|
53
|
-
:'
|
|
54
|
-
:'versions_href' => :'versions_href',
|
|
55
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
|
56
|
-
:'pulp_created' => :'pulp_created'
|
|
56
|
+
:'latest_version_href' => :'latest_version_href'
|
|
57
57
|
}
|
|
58
58
|
end
|
|
59
59
|
|
|
60
60
|
# Attribute type mapping.
|
|
61
61
|
def self.openapi_types
|
|
62
62
|
{
|
|
63
|
+
:'pulp_last_updated' => :'DateTime',
|
|
63
64
|
:'pulp_labels' => :'Hash<String, String>',
|
|
65
|
+
:'pulp_href' => :'String',
|
|
66
|
+
:'pulp_created' => :'DateTime',
|
|
67
|
+
:'versions_href' => :'String',
|
|
68
|
+
:'description' => :'String',
|
|
64
69
|
:'name' => :'String',
|
|
65
|
-
:'latest_version_href' => :'String',
|
|
66
70
|
:'manifest_signing_service' => :'String',
|
|
67
|
-
:'description' => :'String',
|
|
68
71
|
:'retain_repo_versions' => :'Integer',
|
|
69
|
-
:'
|
|
70
|
-
:'versions_href' => :'String',
|
|
71
|
-
:'pulp_last_updated' => :'DateTime',
|
|
72
|
-
:'pulp_created' => :'DateTime'
|
|
72
|
+
:'latest_version_href' => :'String'
|
|
73
73
|
}
|
|
74
74
|
end
|
|
75
75
|
|
|
76
76
|
# List of attributes with nullable: true
|
|
77
77
|
def self.openapi_nullable
|
|
78
78
|
Set.new([
|
|
79
|
-
:'manifest_signing_service',
|
|
80
79
|
:'description',
|
|
80
|
+
:'manifest_signing_service',
|
|
81
81
|
:'retain_repo_versions',
|
|
82
82
|
])
|
|
83
83
|
end
|
|
@@ -97,46 +97,46 @@ module PulpContainerClient
|
|
|
97
97
|
h[k.to_sym] = v
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
+
if attributes.key?(:'pulp_last_updated')
|
|
101
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
102
|
+
end
|
|
103
|
+
|
|
100
104
|
if attributes.key?(:'pulp_labels')
|
|
101
105
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
102
106
|
self.pulp_labels = value
|
|
103
107
|
end
|
|
104
108
|
end
|
|
105
109
|
|
|
106
|
-
if attributes.key?(:'
|
|
107
|
-
self.
|
|
110
|
+
if attributes.key?(:'pulp_href')
|
|
111
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
108
112
|
end
|
|
109
113
|
|
|
110
|
-
if attributes.key?(:'
|
|
111
|
-
self.
|
|
114
|
+
if attributes.key?(:'pulp_created')
|
|
115
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
112
116
|
end
|
|
113
117
|
|
|
114
|
-
if attributes.key?(:'
|
|
115
|
-
self.
|
|
118
|
+
if attributes.key?(:'versions_href')
|
|
119
|
+
self.versions_href = attributes[:'versions_href']
|
|
116
120
|
end
|
|
117
121
|
|
|
118
122
|
if attributes.key?(:'description')
|
|
119
123
|
self.description = attributes[:'description']
|
|
120
124
|
end
|
|
121
125
|
|
|
122
|
-
if attributes.key?(:'
|
|
123
|
-
self.
|
|
124
|
-
end
|
|
125
|
-
|
|
126
|
-
if attributes.key?(:'pulp_href')
|
|
127
|
-
self.pulp_href = attributes[:'pulp_href']
|
|
126
|
+
if attributes.key?(:'name')
|
|
127
|
+
self.name = attributes[:'name']
|
|
128
128
|
end
|
|
129
129
|
|
|
130
|
-
if attributes.key?(:'
|
|
131
|
-
self.
|
|
130
|
+
if attributes.key?(:'manifest_signing_service')
|
|
131
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
132
132
|
end
|
|
133
133
|
|
|
134
|
-
if attributes.key?(:'
|
|
135
|
-
self.
|
|
134
|
+
if attributes.key?(:'retain_repo_versions')
|
|
135
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
136
136
|
end
|
|
137
137
|
|
|
138
|
-
if attributes.key?(:'
|
|
139
|
-
self.
|
|
138
|
+
if attributes.key?(:'latest_version_href')
|
|
139
|
+
self.latest_version_href = attributes[:'latest_version_href']
|
|
140
140
|
end
|
|
141
141
|
end
|
|
142
142
|
|
|
@@ -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
|
+
pulp_last_updated == o.pulp_last_updated &&
|
|
181
182
|
pulp_labels == o.pulp_labels &&
|
|
183
|
+
pulp_href == o.pulp_href &&
|
|
184
|
+
pulp_created == o.pulp_created &&
|
|
185
|
+
versions_href == o.versions_href &&
|
|
186
|
+
description == o.description &&
|
|
182
187
|
name == o.name &&
|
|
183
|
-
latest_version_href == o.latest_version_href &&
|
|
184
188
|
manifest_signing_service == o.manifest_signing_service &&
|
|
185
|
-
description == o.description &&
|
|
186
189
|
retain_repo_versions == o.retain_repo_versions &&
|
|
187
|
-
|
|
188
|
-
versions_href == o.versions_href &&
|
|
189
|
-
pulp_last_updated == o.pulp_last_updated &&
|
|
190
|
-
pulp_created == o.pulp_created
|
|
190
|
+
latest_version_href == o.latest_version_href
|
|
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
|
-
[pulp_labels,
|
|
202
|
+
[pulp_last_updated, pulp_labels, pulp_href, pulp_created, versions_href, description, name, manifest_signing_service, retain_repo_versions, latest_version_href].hash
|
|
203
203
|
end
|
|
204
204
|
|
|
205
205
|
# Builds the object from hash
|
|
@@ -17,21 +17,21 @@ module PulpContainerClient
|
|
|
17
17
|
class PatchedcontainerContainerDistribution
|
|
18
18
|
attr_accessor :pulp_labels
|
|
19
19
|
|
|
20
|
-
# A unique name. Ex, `rawhide` and `stable`.
|
|
21
|
-
attr_accessor :name
|
|
22
|
-
|
|
23
20
|
# An optional content-guard. If none is specified, a default one will be used.
|
|
24
21
|
attr_accessor :content_guard
|
|
25
22
|
|
|
26
|
-
# Whether this distribution should be shown in the content app.
|
|
27
|
-
attr_accessor :hidden
|
|
28
|
-
|
|
29
23
|
# The latest RepositoryVersion for this Repository will be served.
|
|
30
24
|
attr_accessor :repository
|
|
31
25
|
|
|
32
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\")
|
|
33
27
|
attr_accessor :base_path
|
|
34
28
|
|
|
29
|
+
# Whether this distribution should be shown in the content app.
|
|
30
|
+
attr_accessor :hidden
|
|
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
|
|
|
@@ -45,11 +45,11 @@ module PulpContainerClient
|
|
|
45
45
|
def self.attribute_map
|
|
46
46
|
{
|
|
47
47
|
:'pulp_labels' => :'pulp_labels',
|
|
48
|
-
:'name' => :'name',
|
|
49
48
|
:'content_guard' => :'content_guard',
|
|
50
|
-
:'hidden' => :'hidden',
|
|
51
49
|
:'repository' => :'repository',
|
|
52
50
|
:'base_path' => :'base_path',
|
|
51
|
+
:'hidden' => :'hidden',
|
|
52
|
+
:'name' => :'name',
|
|
53
53
|
:'repository_version' => :'repository_version',
|
|
54
54
|
:'private' => :'private',
|
|
55
55
|
:'description' => :'description'
|
|
@@ -60,11 +60,11 @@ module PulpContainerClient
|
|
|
60
60
|
def self.openapi_types
|
|
61
61
|
{
|
|
62
62
|
:'pulp_labels' => :'Hash<String, String>',
|
|
63
|
-
:'name' => :'String',
|
|
64
63
|
:'content_guard' => :'String',
|
|
65
|
-
:'hidden' => :'Boolean',
|
|
66
64
|
:'repository' => :'String',
|
|
67
65
|
:'base_path' => :'String',
|
|
66
|
+
:'hidden' => :'Boolean',
|
|
67
|
+
:'name' => :'String',
|
|
68
68
|
:'repository_version' => :'String',
|
|
69
69
|
:'private' => :'Boolean',
|
|
70
70
|
:'description' => :'String'
|
|
@@ -101,20 +101,10 @@ module PulpContainerClient
|
|
|
101
101
|
end
|
|
102
102
|
end
|
|
103
103
|
|
|
104
|
-
if attributes.key?(:'name')
|
|
105
|
-
self.name = attributes[:'name']
|
|
106
|
-
end
|
|
107
|
-
|
|
108
104
|
if attributes.key?(:'content_guard')
|
|
109
105
|
self.content_guard = attributes[:'content_guard']
|
|
110
106
|
end
|
|
111
107
|
|
|
112
|
-
if attributes.key?(:'hidden')
|
|
113
|
-
self.hidden = attributes[:'hidden']
|
|
114
|
-
else
|
|
115
|
-
self.hidden = false
|
|
116
|
-
end
|
|
117
|
-
|
|
118
108
|
if attributes.key?(:'repository')
|
|
119
109
|
self.repository = attributes[:'repository']
|
|
120
110
|
end
|
|
@@ -123,6 +113,16 @@ module PulpContainerClient
|
|
|
123
113
|
self.base_path = attributes[:'base_path']
|
|
124
114
|
end
|
|
125
115
|
|
|
116
|
+
if attributes.key?(:'hidden')
|
|
117
|
+
self.hidden = attributes[:'hidden']
|
|
118
|
+
else
|
|
119
|
+
self.hidden = false
|
|
120
|
+
end
|
|
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)
|
|
@@ -200,11 +200,11 @@ module PulpContainerClient
|
|
|
200
200
|
return true if self.equal?(o)
|
|
201
201
|
self.class == o.class &&
|
|
202
202
|
pulp_labels == o.pulp_labels &&
|
|
203
|
-
name == o.name &&
|
|
204
203
|
content_guard == o.content_guard &&
|
|
205
|
-
hidden == o.hidden &&
|
|
206
204
|
repository == o.repository &&
|
|
207
205
|
base_path == o.base_path &&
|
|
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
|
-
[pulp_labels,
|
|
222
|
+
[pulp_labels, content_guard, repository, base_path, hidden, name, repository_version, private, description].hash
|
|
223
223
|
end
|
|
224
224
|
|
|
225
225
|
# Builds the object from hash
|