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