pulpcore_client 3.71.2 → 3.72.0
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 +6 -4
- data/docs/ArtifactDistributionResponse.md +13 -13
- data/docs/Domain.md +2 -0
- data/docs/DomainResponse.md +2 -0
- data/docs/DomainsApi.md +150 -2
- data/docs/FilesystemExportResponse.md +1 -1
- data/docs/GenericRemoteResponse.md +1 -1
- data/docs/GroupRoleResponse.md +1 -1
- data/docs/NestedOpenPGPPublicSubkeyResponse.md +1 -1
- data/docs/NestedOpenPGPUserAttributeResponse.md +1 -1
- data/docs/NestedOpenPGPUserIDResponse.md +1 -1
- data/docs/OpenPGPPublicKeyResponse.md +3 -3
- data/docs/OpenPGPPublicSubkeyResponse.md +1 -1
- data/docs/OpenPGPUserAttributeResponse.md +1 -1
- data/docs/OpenPGPUserIDResponse.md +1 -1
- data/docs/PatchedDomain.md +2 -0
- data/docs/PulpExportResponse.md +1 -1
- data/docs/Purge.md +1 -1
- data/docs/RBACContentGuardResponse.md +2 -2
- data/docs/TaskGroupResponse.md +2 -2
- data/docs/TaskResponse.md +4 -4
- data/docs/UploadDetailResponse.md +1 -1
- data/docs/UpstreamPulpResponse.md +1 -1
- data/docs/UserResponse.md +2 -2
- data/docs/UserRoleResponse.md +1 -1
- data/lib/pulpcore_client/api/domains_api.rb +154 -3
- data/lib/pulpcore_client/models/artifact_distribution_response.rb +59 -59
- data/lib/pulpcore_client/models/domain.rb +12 -1
- data/lib/pulpcore_client/models/domain_response.rb +12 -1
- data/lib/pulpcore_client/models/generic_remote_response.rb +0 -15
- data/lib/pulpcore_client/models/nested_open_pgp_signature.rb +0 -9
- data/lib/pulpcore_client/models/nested_open_pgp_signature_response.rb +0 -15
- data/lib/pulpcore_client/models/open_pgp_keyring.rb +0 -15
- data/lib/pulpcore_client/models/open_pgp_keyring_response.rb +0 -15
- data/lib/pulpcore_client/models/open_pgp_signature_response.rb +0 -15
- data/lib/pulpcore_client/models/paginated_access_policy_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_artifact_distribution_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_artifact_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_composite_content_guard_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_content_guard_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_content_redirect_content_guard_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_distribution_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_domain_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_filesystem_export_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_filesystem_exporter_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_generic_remote_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_group_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_group_role_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_group_user_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_header_content_guard_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_import_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_multiple_artifact_content_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_open_pgp_distribution_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_open_pgp_keyring_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_open_pgp_public_key_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_open_pgp_public_subkey_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_open_pgp_signature_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_open_pgp_user_attribute_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_open_pgp_user_id_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_publication_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_pulp_export_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_pulp_exporter_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_pulp_importer_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_rbac_content_guard_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_repository_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_repository_version_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_role_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_signing_service_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_task_group_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_task_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_task_schedule_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_upload_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_upstream_pulp_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_user_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_user_role_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_worker_response_list.rb +0 -2
- data/lib/pulpcore_client/models/patched_domain.rb +12 -1
- data/lib/pulpcore_client/models/patched_open_pgp_keyring.rb +0 -15
- data/lib/pulpcore_client/models/purge.rb +2 -0
- data/lib/pulpcore_client/models/repository_response.rb +0 -15
- data/lib/pulpcore_client/models/storage_response.rb +0 -45
- data/lib/pulpcore_client/version.rb +1 -1
- data/spec/api/domains_api_spec.rb +28 -1
- data/spec/models/artifact_distribution_response_spec.rb +11 -11
- data/spec/models/domain_response_spec.rb +6 -0
- data/spec/models/domain_spec.rb +6 -0
- data/spec/models/patched_domain_spec.rb +6 -0
- metadata +2 -2
@@ -123,10 +123,6 @@ module PulpcoreClient
|
|
123
123
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
124
124
|
end
|
125
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
126
|
invalid_properties
|
131
127
|
end
|
132
128
|
|
@@ -137,7 +133,6 @@ module PulpcoreClient
|
|
137
133
|
return false if @name.nil?
|
138
134
|
return false if @name.to_s.length < 1
|
139
135
|
return false if !@description.nil? && @description.to_s.length < 1
|
140
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
141
136
|
true
|
142
137
|
end
|
143
138
|
|
@@ -165,16 +160,6 @@ module PulpcoreClient
|
|
165
160
|
@description = description
|
166
161
|
end
|
167
162
|
|
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
163
|
# Checks equality by comparing each attribute.
|
179
164
|
# @param [Object] Object to be compared
|
180
165
|
def ==(o)
|
@@ -166,10 +166,6 @@ module PulpcoreClient
|
|
166
166
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
167
167
|
end
|
168
168
|
|
169
|
-
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
170
|
-
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
171
|
-
end
|
172
|
-
|
173
169
|
invalid_properties
|
174
170
|
end
|
175
171
|
|
@@ -178,20 +174,9 @@ module PulpcoreClient
|
|
178
174
|
def valid?
|
179
175
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
180
176
|
return false if @name.nil?
|
181
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
182
177
|
true
|
183
178
|
end
|
184
179
|
|
185
|
-
# Custom attribute writer method with validation
|
186
|
-
# @param [Object] retain_repo_versions Value to be assigned
|
187
|
-
def retain_repo_versions=(retain_repo_versions)
|
188
|
-
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
189
|
-
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
190
|
-
end
|
191
|
-
|
192
|
-
@retain_repo_versions = retain_repo_versions
|
193
|
-
end
|
194
|
-
|
195
180
|
# Checks equality by comparing each attribute.
|
196
181
|
# @param [Object] Object to be compared
|
197
182
|
def ==(o)
|
@@ -167,10 +167,6 @@ module PulpcoreClient
|
|
167
167
|
def list_invalid_properties
|
168
168
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
169
169
|
invalid_properties = Array.new
|
170
|
-
if !@issuer.nil? && @issuer.to_s.length > 16
|
171
|
-
invalid_properties.push('invalid value for "issuer", the character length must be smaller than or equal to 16.')
|
172
|
-
end
|
173
|
-
|
174
170
|
if @created.nil?
|
175
171
|
invalid_properties.push('invalid value for "created", created cannot be nil.')
|
176
172
|
end
|
@@ -186,22 +182,11 @@ module PulpcoreClient
|
|
186
182
|
# @return true if the model is valid
|
187
183
|
def valid?
|
188
184
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
189
|
-
return false if !@issuer.nil? && @issuer.to_s.length > 16
|
190
185
|
return false if @created.nil?
|
191
186
|
return false if @expired.nil?
|
192
187
|
true
|
193
188
|
end
|
194
189
|
|
195
|
-
# Custom attribute writer method with validation
|
196
|
-
# @param [Object] issuer Value to be assigned
|
197
|
-
def issuer=(issuer)
|
198
|
-
if !issuer.nil? && issuer.to_s.length > 16
|
199
|
-
fail ArgumentError, 'invalid value for "issuer", the character length must be smaller than or equal to 16.'
|
200
|
-
end
|
201
|
-
|
202
|
-
@issuer = issuer
|
203
|
-
end
|
204
|
-
|
205
190
|
# Checks equality by comparing each attribute.
|
206
191
|
# @param [Object] Object to be compared
|
207
192
|
def ==(o)
|
@@ -22,6 +22,8 @@ module PulpcoreClient
|
|
22
22
|
# An optional description.
|
23
23
|
attr_accessor :description
|
24
24
|
|
25
|
+
attr_accessor :pulp_labels
|
26
|
+
|
25
27
|
# Backend storage class for domain. * `pulpcore.app.models.storage.FileSystem` - Use local filesystem as storage * `storages.backends.s3boto3.S3Boto3Storage` - Use Amazon S3 as storage * `storages.backends.azure_storage.AzureStorage` - Use Azure Blob as storage
|
26
28
|
attr_accessor :storage_class
|
27
29
|
|
@@ -61,6 +63,7 @@ module PulpcoreClient
|
|
61
63
|
{
|
62
64
|
:'name' => :'name',
|
63
65
|
:'description' => :'description',
|
66
|
+
:'pulp_labels' => :'pulp_labels',
|
64
67
|
:'storage_class' => :'storage_class',
|
65
68
|
:'storage_settings' => :'storage_settings',
|
66
69
|
:'redirect_to_object_storage' => :'redirect_to_object_storage',
|
@@ -78,6 +81,7 @@ module PulpcoreClient
|
|
78
81
|
{
|
79
82
|
:'name' => :'String',
|
80
83
|
:'description' => :'String',
|
84
|
+
:'pulp_labels' => :'Hash<String, String>',
|
81
85
|
:'storage_class' => :'StorageClassEnum',
|
82
86
|
:'storage_settings' => :'Object',
|
83
87
|
:'redirect_to_object_storage' => :'Boolean',
|
@@ -115,6 +119,12 @@ module PulpcoreClient
|
|
115
119
|
self.description = attributes[:'description']
|
116
120
|
end
|
117
121
|
|
122
|
+
if attributes.key?(:'pulp_labels')
|
123
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
124
|
+
self.pulp_labels = value
|
125
|
+
end
|
126
|
+
end
|
127
|
+
|
118
128
|
if attributes.key?(:'storage_class')
|
119
129
|
self.storage_class = attributes[:'storage_class']
|
120
130
|
end
|
@@ -212,6 +222,7 @@ module PulpcoreClient
|
|
212
222
|
self.class == o.class &&
|
213
223
|
name == o.name &&
|
214
224
|
description == o.description &&
|
225
|
+
pulp_labels == o.pulp_labels &&
|
215
226
|
storage_class == o.storage_class &&
|
216
227
|
storage_settings == o.storage_settings &&
|
217
228
|
redirect_to_object_storage == o.redirect_to_object_storage &&
|
@@ -227,7 +238,7 @@ module PulpcoreClient
|
|
227
238
|
# Calculates hash code according to all attributes.
|
228
239
|
# @return [Integer] Hash code
|
229
240
|
def hash
|
230
|
-
[name, description, storage_class, storage_settings, redirect_to_object_storage, hide_guarded_distributions].hash
|
241
|
+
[name, description, pulp_labels, storage_class, storage_settings, redirect_to_object_storage, hide_guarded_distributions].hash
|
231
242
|
end
|
232
243
|
|
233
244
|
# Builds the object from hash
|
@@ -117,10 +117,6 @@ module PulpcoreClient
|
|
117
117
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
118
118
|
end
|
119
119
|
|
120
|
-
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
121
|
-
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
122
|
-
end
|
123
|
-
|
124
120
|
invalid_properties
|
125
121
|
end
|
126
122
|
|
@@ -130,7 +126,6 @@ module PulpcoreClient
|
|
130
126
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
131
127
|
return false if !@name.nil? && @name.to_s.length < 1
|
132
128
|
return false if !@description.nil? && @description.to_s.length < 1
|
133
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
134
129
|
true
|
135
130
|
end
|
136
131
|
|
@@ -158,16 +153,6 @@ module PulpcoreClient
|
|
158
153
|
@description = description
|
159
154
|
end
|
160
155
|
|
161
|
-
# Custom attribute writer method with validation
|
162
|
-
# @param [Object] retain_repo_versions Value to be assigned
|
163
|
-
def retain_repo_versions=(retain_repo_versions)
|
164
|
-
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
165
|
-
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
166
|
-
end
|
167
|
-
|
168
|
-
@retain_repo_versions = retain_repo_versions
|
169
|
-
end
|
170
|
-
|
171
156
|
# Checks equality by comparing each attribute.
|
172
157
|
# @param [Object] Object to be compared
|
173
158
|
def ==(o)
|
@@ -166,10 +166,6 @@ module PulpcoreClient
|
|
166
166
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
167
167
|
end
|
168
168
|
|
169
|
-
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
170
|
-
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
171
|
-
end
|
172
|
-
|
173
169
|
invalid_properties
|
174
170
|
end
|
175
171
|
|
@@ -178,20 +174,9 @@ module PulpcoreClient
|
|
178
174
|
def valid?
|
179
175
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
180
176
|
return false if @name.nil?
|
181
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
182
177
|
true
|
183
178
|
end
|
184
179
|
|
185
|
-
# Custom attribute writer method with validation
|
186
|
-
# @param [Object] retain_repo_versions Value to be assigned
|
187
|
-
def retain_repo_versions=(retain_repo_versions)
|
188
|
-
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
189
|
-
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
190
|
-
end
|
191
|
-
|
192
|
-
@retain_repo_versions = retain_repo_versions
|
193
|
-
end
|
194
|
-
|
195
180
|
# Checks equality by comparing each attribute.
|
196
181
|
# @param [Object] Object to be compared
|
197
182
|
def ==(o)
|