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