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