pulp_container_client 2.11.0.dev1640229070 → 2.11.0.dev1640401915
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of pulp_container_client might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/docs/ContainerContainerDistribution.md +4 -4
- data/docs/ContainerContainerDistributionResponse.md +8 -8
- data/docs/ContainerContainerPushRepository.md +5 -5
- data/docs/ContainerContainerPushRepositoryResponse.md +11 -11
- data/docs/PatchedcontainerContainerDistribution.md +4 -4
- data/docs/PatchedcontainerContainerPushRepository.md +5 -5
- data/lib/pulp_container_client/models/container_container_distribution.rb +41 -41
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +35 -35
- data/lib/pulp_container_client/models/container_container_push_repository.rb +33 -33
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +39 -39
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +32 -32
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +33 -33
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/models/container_container_distribution_response_spec.rb +5 -5
- data/spec/models/container_container_distribution_spec.rb +3 -3
- data/spec/models/container_container_push_repository_response_spec.rb +8 -8
- data/spec/models/container_container_push_repository_spec.rb +3 -3
- data/spec/models/patchedcontainer_container_distribution_spec.rb +3 -3
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +3 -3
- metadata +2 -2
@@ -15,34 +15,34 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class ContainerContainerPushRepository
|
18
|
-
attr_accessor :pulp_labels
|
19
|
-
|
20
18
|
# 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.
|
21
19
|
attr_accessor :retain_repo_versions
|
22
20
|
|
21
|
+
# An optional description.
|
22
|
+
attr_accessor :description
|
23
|
+
|
23
24
|
# A unique name for this repository.
|
24
25
|
attr_accessor :name
|
25
26
|
|
26
|
-
|
27
|
-
attr_accessor :description
|
27
|
+
attr_accessor :pulp_labels
|
28
28
|
|
29
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
30
30
|
def self.attribute_map
|
31
31
|
{
|
32
|
-
:'pulp_labels' => :'pulp_labels',
|
33
32
|
:'retain_repo_versions' => :'retain_repo_versions',
|
33
|
+
:'description' => :'description',
|
34
34
|
:'name' => :'name',
|
35
|
-
:'
|
35
|
+
:'pulp_labels' => :'pulp_labels'
|
36
36
|
}
|
37
37
|
end
|
38
38
|
|
39
39
|
# Attribute type mapping.
|
40
40
|
def self.openapi_types
|
41
41
|
{
|
42
|
-
:'pulp_labels' => :'Object',
|
43
42
|
:'retain_repo_versions' => :'Integer',
|
43
|
+
:'description' => :'String',
|
44
44
|
:'name' => :'String',
|
45
|
-
:'
|
45
|
+
:'pulp_labels' => :'Object'
|
46
46
|
}
|
47
47
|
end
|
48
48
|
|
@@ -50,7 +50,7 @@ module PulpContainerClient
|
|
50
50
|
def self.openapi_nullable
|
51
51
|
Set.new([
|
52
52
|
:'retain_repo_versions',
|
53
|
-
:'description'
|
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?(:'pulp_labels')
|
73
|
-
self.pulp_labels = attributes[:'pulp_labels']
|
74
|
-
end
|
75
|
-
|
76
72
|
if attributes.key?(:'retain_repo_versions')
|
77
73
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
78
74
|
end
|
79
75
|
|
76
|
+
if attributes.key?(:'description')
|
77
|
+
self.description = attributes[:'description']
|
78
|
+
end
|
79
|
+
|
80
80
|
if attributes.key?(:'name')
|
81
81
|
self.name = attributes[:'name']
|
82
82
|
end
|
83
83
|
|
84
|
-
if attributes.key?(:'
|
85
|
-
self.
|
84
|
+
if attributes.key?(:'pulp_labels')
|
85
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
86
86
|
end
|
87
87
|
end
|
88
88
|
|
@@ -94,6 +94,10 @@ module PulpContainerClient
|
|
94
94
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
95
95
|
end
|
96
96
|
|
97
|
+
if !@description.nil? && @description.to_s.length < 1
|
98
|
+
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
99
|
+
end
|
100
|
+
|
97
101
|
if @name.nil?
|
98
102
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
99
103
|
end
|
@@ -102,10 +106,6 @@ module PulpContainerClient
|
|
102
106
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
103
107
|
end
|
104
108
|
|
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
|
-
|
109
109
|
invalid_properties
|
110
110
|
end
|
111
111
|
|
@@ -113,9 +113,9 @@ module PulpContainerClient
|
|
113
113
|
# @return true if the model is valid
|
114
114
|
def valid?
|
115
115
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
116
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
116
117
|
return false if @name.nil?
|
117
118
|
return false if @name.to_s.length < 1
|
118
|
-
return false if !@description.nil? && @description.to_s.length < 1
|
119
119
|
true
|
120
120
|
end
|
121
121
|
|
@@ -129,6 +129,16 @@ module PulpContainerClient
|
|
129
129
|
@retain_repo_versions = retain_repo_versions
|
130
130
|
end
|
131
131
|
|
132
|
+
# Custom attribute writer method with validation
|
133
|
+
# @param [Object] description Value to be assigned
|
134
|
+
def description=(description)
|
135
|
+
if !description.nil? && description.to_s.length < 1
|
136
|
+
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
137
|
+
end
|
138
|
+
|
139
|
+
@description = description
|
140
|
+
end
|
141
|
+
|
132
142
|
# Custom attribute writer method with validation
|
133
143
|
# @param [Object] name Value to be assigned
|
134
144
|
def name=(name)
|
@@ -143,25 +153,15 @@ module PulpContainerClient
|
|
143
153
|
@name = name
|
144
154
|
end
|
145
155
|
|
146
|
-
# Custom attribute writer method with validation
|
147
|
-
# @param [Object] description Value to be assigned
|
148
|
-
def description=(description)
|
149
|
-
if !description.nil? && description.to_s.length < 1
|
150
|
-
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
151
|
-
end
|
152
|
-
|
153
|
-
@description = description
|
154
|
-
end
|
155
|
-
|
156
156
|
# Checks equality by comparing each attribute.
|
157
157
|
# @param [Object] Object to be compared
|
158
158
|
def ==(o)
|
159
159
|
return true if self.equal?(o)
|
160
160
|
self.class == o.class &&
|
161
|
-
pulp_labels == o.pulp_labels &&
|
162
161
|
retain_repo_versions == o.retain_repo_versions &&
|
162
|
+
description == o.description &&
|
163
163
|
name == o.name &&
|
164
|
-
|
164
|
+
pulp_labels == o.pulp_labels
|
165
165
|
end
|
166
166
|
|
167
167
|
# @see the `==` method
|
@@ -173,7 +173,7 @@ module PulpContainerClient
|
|
173
173
|
# Calculates hash code according to all attributes.
|
174
174
|
# @return [Integer] Hash code
|
175
175
|
def hash
|
176
|
-
[
|
176
|
+
[retain_repo_versions, description, name, pulp_labels].hash
|
177
177
|
end
|
178
178
|
|
179
179
|
# Builds the object from hash
|
@@ -15,51 +15,51 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class ContainerContainerPushRepositoryResponse
|
18
|
-
|
19
|
-
attr_accessor :pulp_created
|
20
|
-
|
21
|
-
attr_accessor :versions_href
|
18
|
+
attr_accessor :pulp_href
|
22
19
|
|
23
|
-
attr_accessor :
|
20
|
+
attr_accessor :latest_version_href
|
24
21
|
|
25
22
|
# 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.
|
26
23
|
attr_accessor :retain_repo_versions
|
27
24
|
|
28
|
-
|
25
|
+
# Timestamp of creation.
|
26
|
+
attr_accessor :pulp_created
|
29
27
|
|
30
|
-
|
31
|
-
attr_accessor :name
|
28
|
+
attr_accessor :versions_href
|
32
29
|
|
33
30
|
# An optional description.
|
34
31
|
attr_accessor :description
|
35
32
|
|
36
|
-
|
33
|
+
# A unique name for this repository.
|
34
|
+
attr_accessor :name
|
35
|
+
|
36
|
+
attr_accessor :pulp_labels
|
37
37
|
|
38
38
|
# Attribute mapping from ruby-style variable name to JSON key.
|
39
39
|
def self.attribute_map
|
40
40
|
{
|
41
|
+
:'pulp_href' => :'pulp_href',
|
42
|
+
:'latest_version_href' => :'latest_version_href',
|
43
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
41
44
|
:'pulp_created' => :'pulp_created',
|
42
45
|
:'versions_href' => :'versions_href',
|
43
|
-
:'pulp_labels' => :'pulp_labels',
|
44
|
-
:'retain_repo_versions' => :'retain_repo_versions',
|
45
|
-
:'pulp_href' => :'pulp_href',
|
46
|
-
:'name' => :'name',
|
47
46
|
:'description' => :'description',
|
48
|
-
:'
|
47
|
+
:'name' => :'name',
|
48
|
+
:'pulp_labels' => :'pulp_labels'
|
49
49
|
}
|
50
50
|
end
|
51
51
|
|
52
52
|
# Attribute type mapping.
|
53
53
|
def self.openapi_types
|
54
54
|
{
|
55
|
+
:'pulp_href' => :'String',
|
56
|
+
:'latest_version_href' => :'String',
|
57
|
+
:'retain_repo_versions' => :'Integer',
|
55
58
|
:'pulp_created' => :'DateTime',
|
56
59
|
:'versions_href' => :'String',
|
57
|
-
:'pulp_labels' => :'Object',
|
58
|
-
:'retain_repo_versions' => :'Integer',
|
59
|
-
:'pulp_href' => :'String',
|
60
|
-
:'name' => :'String',
|
61
60
|
:'description' => :'String',
|
62
|
-
:'
|
61
|
+
:'name' => :'String',
|
62
|
+
:'pulp_labels' => :'Object'
|
63
63
|
}
|
64
64
|
end
|
65
65
|
|
@@ -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?(:'versions_href')
|
94
|
-
self.versions_href = attributes[:'versions_href']
|
89
|
+
if attributes.key?(:'pulp_href')
|
90
|
+
self.pulp_href = attributes[:'pulp_href']
|
95
91
|
end
|
96
92
|
|
97
|
-
if attributes.key?(:'
|
98
|
-
self.
|
93
|
+
if attributes.key?(:'latest_version_href')
|
94
|
+
self.latest_version_href = attributes[:'latest_version_href']
|
99
95
|
end
|
100
96
|
|
101
97
|
if attributes.key?(:'retain_repo_versions')
|
102
98
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
103
99
|
end
|
104
100
|
|
105
|
-
if attributes.key?(:'
|
106
|
-
self.
|
101
|
+
if attributes.key?(:'pulp_created')
|
102
|
+
self.pulp_created = attributes[:'pulp_created']
|
107
103
|
end
|
108
104
|
|
109
|
-
if attributes.key?(:'
|
110
|
-
self.
|
105
|
+
if attributes.key?(:'versions_href')
|
106
|
+
self.versions_href = attributes[:'versions_href']
|
111
107
|
end
|
112
108
|
|
113
109
|
if attributes.key?(:'description')
|
114
110
|
self.description = attributes[:'description']
|
115
111
|
end
|
116
112
|
|
117
|
-
if attributes.key?(:'
|
118
|
-
self.
|
113
|
+
if attributes.key?(:'name')
|
114
|
+
self.name = attributes[:'name']
|
115
|
+
end
|
116
|
+
|
117
|
+
if attributes.key?(:'pulp_labels')
|
118
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
119
119
|
end
|
120
120
|
end
|
121
121
|
|
@@ -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
|
+
pulp_href == o.pulp_href &&
|
161
|
+
latest_version_href == o.latest_version_href &&
|
162
|
+
retain_repo_versions == o.retain_repo_versions &&
|
160
163
|
pulp_created == o.pulp_created &&
|
161
164
|
versions_href == o.versions_href &&
|
162
|
-
pulp_labels == o.pulp_labels &&
|
163
|
-
retain_repo_versions == o.retain_repo_versions &&
|
164
|
-
pulp_href == o.pulp_href &&
|
165
|
-
name == o.name &&
|
166
165
|
description == o.description &&
|
167
|
-
|
166
|
+
name == o.name &&
|
167
|
+
pulp_labels == o.pulp_labels
|
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_href, latest_version_href, retain_repo_versions, pulp_created, versions_href, description, name, pulp_labels].hash
|
180
180
|
end
|
181
181
|
|
182
182
|
# Builds the object from hash
|
@@ -18,16 +18,16 @@ module PulpContainerClient
|
|
18
18
|
# An optional content-guard. If none is specified, a default one will be used.
|
19
19
|
attr_accessor :content_guard
|
20
20
|
|
21
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
22
|
+
attr_accessor :base_path
|
23
|
+
|
21
24
|
# The latest RepositoryVersion for this Repository will be served.
|
22
25
|
attr_accessor :repository
|
23
26
|
|
24
|
-
attr_accessor :pulp_labels
|
25
|
-
|
26
27
|
# A unique name. Ex, `rawhide` and `stable`.
|
27
28
|
attr_accessor :name
|
28
29
|
|
29
|
-
|
30
|
-
attr_accessor :base_path
|
30
|
+
attr_accessor :pulp_labels
|
31
31
|
|
32
32
|
# RepositoryVersion to be served
|
33
33
|
attr_accessor :repository_version
|
@@ -42,10 +42,10 @@ module PulpContainerClient
|
|
42
42
|
def self.attribute_map
|
43
43
|
{
|
44
44
|
:'content_guard' => :'content_guard',
|
45
|
+
:'base_path' => :'base_path',
|
45
46
|
:'repository' => :'repository',
|
46
|
-
:'pulp_labels' => :'pulp_labels',
|
47
47
|
:'name' => :'name',
|
48
|
-
:'
|
48
|
+
:'pulp_labels' => :'pulp_labels',
|
49
49
|
:'repository_version' => :'repository_version',
|
50
50
|
:'private' => :'private',
|
51
51
|
:'description' => :'description'
|
@@ -56,10 +56,10 @@ module PulpContainerClient
|
|
56
56
|
def self.openapi_types
|
57
57
|
{
|
58
58
|
:'content_guard' => :'String',
|
59
|
+
:'base_path' => :'String',
|
59
60
|
:'repository' => :'String',
|
60
|
-
:'pulp_labels' => :'Object',
|
61
61
|
:'name' => :'String',
|
62
|
-
:'
|
62
|
+
:'pulp_labels' => :'Object',
|
63
63
|
:'repository_version' => :'String',
|
64
64
|
:'private' => :'Boolean',
|
65
65
|
:'description' => :'String'
|
@@ -94,20 +94,20 @@ module PulpContainerClient
|
|
94
94
|
self.content_guard = attributes[:'content_guard']
|
95
95
|
end
|
96
96
|
|
97
|
-
if attributes.key?(:'
|
98
|
-
self.
|
97
|
+
if attributes.key?(:'base_path')
|
98
|
+
self.base_path = attributes[:'base_path']
|
99
99
|
end
|
100
100
|
|
101
|
-
if attributes.key?(:'
|
102
|
-
self.
|
101
|
+
if attributes.key?(:'repository')
|
102
|
+
self.repository = attributes[:'repository']
|
103
103
|
end
|
104
104
|
|
105
105
|
if attributes.key?(:'name')
|
106
106
|
self.name = attributes[:'name']
|
107
107
|
end
|
108
108
|
|
109
|
-
if attributes.key?(:'
|
110
|
-
self.
|
109
|
+
if attributes.key?(:'pulp_labels')
|
110
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
111
111
|
end
|
112
112
|
|
113
113
|
if attributes.key?(:'repository_version')
|
@@ -127,14 +127,14 @@ module PulpContainerClient
|
|
127
127
|
# @return Array for valid properties with the reasons
|
128
128
|
def list_invalid_properties
|
129
129
|
invalid_properties = Array.new
|
130
|
-
if !@name.nil? && @name.to_s.length < 1
|
131
|
-
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
132
|
-
end
|
133
|
-
|
134
130
|
if !@base_path.nil? && @base_path.to_s.length < 1
|
135
131
|
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
136
132
|
end
|
137
133
|
|
134
|
+
if !@name.nil? && @name.to_s.length < 1
|
135
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
136
|
+
end
|
137
|
+
|
138
138
|
if !@description.nil? && @description.to_s.length < 1
|
139
139
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
140
140
|
end
|
@@ -145,22 +145,12 @@ module PulpContainerClient
|
|
145
145
|
# Check to see if the all the properties in the model are valid
|
146
146
|
# @return true if the model is valid
|
147
147
|
def valid?
|
148
|
-
return false if !@name.nil? && @name.to_s.length < 1
|
149
148
|
return false if !@base_path.nil? && @base_path.to_s.length < 1
|
149
|
+
return false if !@name.nil? && @name.to_s.length < 1
|
150
150
|
return false if !@description.nil? && @description.to_s.length < 1
|
151
151
|
true
|
152
152
|
end
|
153
153
|
|
154
|
-
# Custom attribute writer method with validation
|
155
|
-
# @param [Object] name Value to be assigned
|
156
|
-
def name=(name)
|
157
|
-
if !name.nil? && name.to_s.length < 1
|
158
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
159
|
-
end
|
160
|
-
|
161
|
-
@name = name
|
162
|
-
end
|
163
|
-
|
164
154
|
# Custom attribute writer method with validation
|
165
155
|
# @param [Object] base_path Value to be assigned
|
166
156
|
def base_path=(base_path)
|
@@ -171,6 +161,16 @@ module PulpContainerClient
|
|
171
161
|
@base_path = base_path
|
172
162
|
end
|
173
163
|
|
164
|
+
# Custom attribute writer method with validation
|
165
|
+
# @param [Object] name Value to be assigned
|
166
|
+
def name=(name)
|
167
|
+
if !name.nil? && name.to_s.length < 1
|
168
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
169
|
+
end
|
170
|
+
|
171
|
+
@name = name
|
172
|
+
end
|
173
|
+
|
174
174
|
# Custom attribute writer method with validation
|
175
175
|
# @param [Object] description Value to be assigned
|
176
176
|
def description=(description)
|
@@ -187,10 +187,10 @@ module PulpContainerClient
|
|
187
187
|
return true if self.equal?(o)
|
188
188
|
self.class == o.class &&
|
189
189
|
content_guard == o.content_guard &&
|
190
|
+
base_path == o.base_path &&
|
190
191
|
repository == o.repository &&
|
191
|
-
pulp_labels == o.pulp_labels &&
|
192
192
|
name == o.name &&
|
193
|
-
|
193
|
+
pulp_labels == o.pulp_labels &&
|
194
194
|
repository_version == o.repository_version &&
|
195
195
|
private == o.private &&
|
196
196
|
description == o.description
|
@@ -205,7 +205,7 @@ module PulpContainerClient
|
|
205
205
|
# Calculates hash code according to all attributes.
|
206
206
|
# @return [Integer] Hash code
|
207
207
|
def hash
|
208
|
-
[content_guard,
|
208
|
+
[content_guard, base_path, repository, name, pulp_labels, repository_version, private, description].hash
|
209
209
|
end
|
210
210
|
|
211
211
|
# Builds the object from hash
|
@@ -15,34 +15,34 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class PatchedcontainerContainerPushRepository
|
18
|
-
attr_accessor :pulp_labels
|
19
|
-
|
20
18
|
# 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.
|
21
19
|
attr_accessor :retain_repo_versions
|
22
20
|
|
21
|
+
# An optional description.
|
22
|
+
attr_accessor :description
|
23
|
+
|
23
24
|
# A unique name for this repository.
|
24
25
|
attr_accessor :name
|
25
26
|
|
26
|
-
|
27
|
-
attr_accessor :description
|
27
|
+
attr_accessor :pulp_labels
|
28
28
|
|
29
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
30
30
|
def self.attribute_map
|
31
31
|
{
|
32
|
-
:'pulp_labels' => :'pulp_labels',
|
33
32
|
:'retain_repo_versions' => :'retain_repo_versions',
|
33
|
+
:'description' => :'description',
|
34
34
|
:'name' => :'name',
|
35
|
-
:'
|
35
|
+
:'pulp_labels' => :'pulp_labels'
|
36
36
|
}
|
37
37
|
end
|
38
38
|
|
39
39
|
# Attribute type mapping.
|
40
40
|
def self.openapi_types
|
41
41
|
{
|
42
|
-
:'pulp_labels' => :'Object',
|
43
42
|
:'retain_repo_versions' => :'Integer',
|
43
|
+
:'description' => :'String',
|
44
44
|
:'name' => :'String',
|
45
|
-
:'
|
45
|
+
:'pulp_labels' => :'Object'
|
46
46
|
}
|
47
47
|
end
|
48
48
|
|
@@ -50,7 +50,7 @@ module PulpContainerClient
|
|
50
50
|
def self.openapi_nullable
|
51
51
|
Set.new([
|
52
52
|
:'retain_repo_versions',
|
53
|
-
:'description'
|
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?(:'pulp_labels')
|
73
|
-
self.pulp_labels = attributes[:'pulp_labels']
|
74
|
-
end
|
75
|
-
|
76
72
|
if attributes.key?(:'retain_repo_versions')
|
77
73
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
78
74
|
end
|
79
75
|
|
76
|
+
if attributes.key?(:'description')
|
77
|
+
self.description = attributes[:'description']
|
78
|
+
end
|
79
|
+
|
80
80
|
if attributes.key?(:'name')
|
81
81
|
self.name = attributes[:'name']
|
82
82
|
end
|
83
83
|
|
84
|
-
if attributes.key?(:'
|
85
|
-
self.
|
84
|
+
if attributes.key?(:'pulp_labels')
|
85
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
86
86
|
end
|
87
87
|
end
|
88
88
|
|
@@ -94,14 +94,14 @@ module PulpContainerClient
|
|
94
94
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
95
95
|
end
|
96
96
|
|
97
|
-
if !@name.nil? && @name.to_s.length < 1
|
98
|
-
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
99
|
-
end
|
100
|
-
|
101
97
|
if !@description.nil? && @description.to_s.length < 1
|
102
98
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
103
99
|
end
|
104
100
|
|
101
|
+
if !@name.nil? && @name.to_s.length < 1
|
102
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
103
|
+
end
|
104
|
+
|
105
105
|
invalid_properties
|
106
106
|
end
|
107
107
|
|
@@ -109,8 +109,8 @@ module PulpContainerClient
|
|
109
109
|
# @return true if the model is valid
|
110
110
|
def valid?
|
111
111
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
112
|
-
return false if !@name.nil? && @name.to_s.length < 1
|
113
112
|
return false if !@description.nil? && @description.to_s.length < 1
|
113
|
+
return false if !@name.nil? && @name.to_s.length < 1
|
114
114
|
true
|
115
115
|
end
|
116
116
|
|
@@ -124,16 +124,6 @@ module PulpContainerClient
|
|
124
124
|
@retain_repo_versions = retain_repo_versions
|
125
125
|
end
|
126
126
|
|
127
|
-
# Custom attribute writer method with validation
|
128
|
-
# @param [Object] name Value to be assigned
|
129
|
-
def name=(name)
|
130
|
-
if !name.nil? && name.to_s.length < 1
|
131
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
132
|
-
end
|
133
|
-
|
134
|
-
@name = name
|
135
|
-
end
|
136
|
-
|
137
127
|
# Custom attribute writer method with validation
|
138
128
|
# @param [Object] description Value to be assigned
|
139
129
|
def description=(description)
|
@@ -144,15 +134,25 @@ module PulpContainerClient
|
|
144
134
|
@description = description
|
145
135
|
end
|
146
136
|
|
137
|
+
# Custom attribute writer method with validation
|
138
|
+
# @param [Object] name Value to be assigned
|
139
|
+
def name=(name)
|
140
|
+
if !name.nil? && name.to_s.length < 1
|
141
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
142
|
+
end
|
143
|
+
|
144
|
+
@name = name
|
145
|
+
end
|
146
|
+
|
147
147
|
# Checks equality by comparing each attribute.
|
148
148
|
# @param [Object] Object to be compared
|
149
149
|
def ==(o)
|
150
150
|
return true if self.equal?(o)
|
151
151
|
self.class == o.class &&
|
152
|
-
pulp_labels == o.pulp_labels &&
|
153
152
|
retain_repo_versions == o.retain_repo_versions &&
|
153
|
+
description == o.description &&
|
154
154
|
name == o.name &&
|
155
|
-
|
155
|
+
pulp_labels == o.pulp_labels
|
156
156
|
end
|
157
157
|
|
158
158
|
# @see the `==` method
|
@@ -164,7 +164,7 @@ module PulpContainerClient
|
|
164
164
|
# Calculates hash code according to all attributes.
|
165
165
|
# @return [Integer] Hash code
|
166
166
|
def hash
|
167
|
-
[
|
167
|
+
[retain_repo_versions, description, name, pulp_labels].hash
|
168
168
|
end
|
169
169
|
|
170
170
|
# Builds the object from hash
|
@@ -38,25 +38,25 @@ describe 'ContainerContainerDistributionResponse' do
|
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
-
describe 'test attribute "
|
41
|
+
describe 'test attribute "pulp_href"' do
|
42
42
|
it 'should work' do
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
-
describe 'test attribute "
|
47
|
+
describe 'test attribute "base_path"' do
|
48
48
|
it 'should work' do
|
49
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
-
describe 'test attribute "
|
53
|
+
describe 'test attribute "repository"' do
|
54
54
|
it 'should work' do
|
55
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
59
|
-
describe 'test attribute "
|
59
|
+
describe 'test attribute "pulp_created"' do
|
60
60
|
it 'should work' do
|
61
61
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
62
|
end
|
@@ -68,7 +68,7 @@ describe 'ContainerContainerDistributionResponse' do
|
|
68
68
|
end
|
69
69
|
end
|
70
70
|
|
71
|
-
describe 'test attribute "
|
71
|
+
describe 'test attribute "pulp_labels"' do
|
72
72
|
it 'should work' do
|
73
73
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
74
74
|
end
|