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