pulp_ansible_client 0.24.2 → 0.24.3
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/AnsibleCollectionVersionResponse.md +6 -6
- data/docs/AnsibleGitRemote.md +26 -26
- data/docs/AnsibleGitRemoteResponse.md +26 -26
- data/docs/AnsibleRole.md +2 -2
- data/docs/AnsibleRoleResponse.md +6 -6
- data/docs/ContentCollectionVersionsApi.md +6 -6
- data/docs/ContentNamespacesApi.md +146 -0
- data/docs/DistributionsAnsibleApi.md +4 -2
- data/docs/PatchedansibleGitRemote.md +26 -26
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +9 -9
- data/lib/pulp_ansible_client/api/content_namespaces_api.rb +148 -0
- data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +6 -3
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +30 -30
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +223 -223
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +154 -154
- data/lib/pulp_ansible_client/models/ansible_role.rb +13 -13
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +32 -32
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +221 -221
- data/lib/pulp_ansible_client/models/unset_label.rb +1 -1
- data/lib/pulp_ansible_client/models/unset_label_response.rb +1 -1
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/spec/api/content_collection_versions_api_spec.rb +3 -3
- data/spec/api/content_namespaces_api_spec.rb +26 -0
- data/spec/api/distributions_ansible_api_spec.rb +2 -1
- data/spec/models/ansible_collection_version_response_spec.rb +6 -6
- data/spec/models/ansible_git_remote_response_spec.rb +18 -18
- data/spec/models/ansible_git_remote_spec.rb +19 -19
- data/spec/models/ansible_role_response_spec.rb +6 -6
- data/spec/models/ansible_role_spec.rb +2 -2
- data/spec/models/patchedansible_git_remote_spec.rb +19 -19
- metadata +2 -2
@@ -22,12 +22,12 @@ module PulpAnsibleClient
|
|
22
22
|
# Create a collection version
|
23
23
|
# Trigger an asynchronous task to create content,optionally create new repository version.
|
24
24
|
# @param [Hash] opts the optional parameters
|
25
|
-
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
26
25
|
# @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
|
27
26
|
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
28
|
-
# @option opts [String] :
|
29
|
-
# @option opts [String] :artifact Artifact file representing the physical content
|
27
|
+
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
30
28
|
# @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
29
|
+
# @option opts [String] :artifact Artifact file representing the physical content
|
30
|
+
# @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
|
31
31
|
# @option opts [String] :expected_name The name of the collection.
|
32
32
|
# @option opts [String] :expected_namespace The namespace of the collection.
|
33
33
|
# @option opts [String] :expected_version The version of the collection.
|
@@ -40,12 +40,12 @@ module PulpAnsibleClient
|
|
40
40
|
# Create a collection version
|
41
41
|
# Trigger an asynchronous task to create content,optionally create new repository version.
|
42
42
|
# @param [Hash] opts the optional parameters
|
43
|
-
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
44
43
|
# @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
|
45
44
|
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
46
|
-
# @option opts [String] :
|
47
|
-
# @option opts [String] :artifact Artifact file representing the physical content
|
45
|
+
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
48
46
|
# @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
47
|
+
# @option opts [String] :artifact Artifact file representing the physical content
|
48
|
+
# @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
|
49
49
|
# @option opts [String] :expected_name The name of the collection.
|
50
50
|
# @option opts [String] :expected_namespace The namespace of the collection.
|
51
51
|
# @option opts [String] :expected_version The version of the collection.
|
@@ -100,12 +100,12 @@ module PulpAnsibleClient
|
|
100
100
|
|
101
101
|
# form parameters
|
102
102
|
form_params = opts[:form_params] || {}
|
103
|
-
form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
104
103
|
form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
|
105
104
|
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
|
106
|
-
form_params['
|
107
|
-
form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
|
105
|
+
form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
108
106
|
form_params['pulp_labels'] = opts[:'pulp_labels'] if !opts[:'pulp_labels'].nil?
|
107
|
+
form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
|
108
|
+
form_params['file_url'] = opts[:'file_url'] if !opts[:'file_url'].nil?
|
109
109
|
form_params['expected_name'] = opts[:'expected_name'] if !opts[:'expected_name'].nil?
|
110
110
|
form_params['expected_namespace'] = opts[:'expected_namespace'] if !opts[:'expected_namespace'].nil?
|
111
111
|
form_params['expected_version'] = opts[:'expected_version'] if !opts[:'expected_version'].nil?
|
@@ -317,5 +317,153 @@ module PulpAnsibleClient
|
|
317
317
|
end
|
318
318
|
return data, status_code, headers
|
319
319
|
end
|
320
|
+
|
321
|
+
# Set a label
|
322
|
+
# Set a single pulp_label on the object to a specific value or null.
|
323
|
+
# @param ansible_ansible_namespace_metadata_href [String]
|
324
|
+
# @param set_label [SetLabel]
|
325
|
+
# @param [Hash] opts the optional parameters
|
326
|
+
# @return [SetLabelResponse]
|
327
|
+
def set_label(ansible_ansible_namespace_metadata_href, set_label, opts = {})
|
328
|
+
data, _status_code, _headers = set_label_with_http_info(ansible_ansible_namespace_metadata_href, set_label, opts)
|
329
|
+
data
|
330
|
+
end
|
331
|
+
|
332
|
+
# Set a label
|
333
|
+
# Set a single pulp_label on the object to a specific value or null.
|
334
|
+
# @param ansible_ansible_namespace_metadata_href [String]
|
335
|
+
# @param set_label [SetLabel]
|
336
|
+
# @param [Hash] opts the optional parameters
|
337
|
+
# @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
|
338
|
+
def set_label_with_http_info(ansible_ansible_namespace_metadata_href, set_label, opts = {})
|
339
|
+
if @api_client.config.debugging
|
340
|
+
@api_client.config.logger.debug 'Calling API: ContentNamespacesApi.set_label ...'
|
341
|
+
end
|
342
|
+
# verify the required parameter 'ansible_ansible_namespace_metadata_href' is set
|
343
|
+
if @api_client.config.client_side_validation && ansible_ansible_namespace_metadata_href.nil?
|
344
|
+
fail ArgumentError, "Missing the required parameter 'ansible_ansible_namespace_metadata_href' when calling ContentNamespacesApi.set_label"
|
345
|
+
end
|
346
|
+
# verify the required parameter 'set_label' is set
|
347
|
+
if @api_client.config.client_side_validation && set_label.nil?
|
348
|
+
fail ArgumentError, "Missing the required parameter 'set_label' when calling ContentNamespacesApi.set_label"
|
349
|
+
end
|
350
|
+
# resource path
|
351
|
+
local_var_path = '{ansible_ansible_namespace_metadata_href}set_label/'.sub('{' + 'ansible_ansible_namespace_metadata_href' + '}', CGI.escape(ansible_ansible_namespace_metadata_href.to_s).gsub('%2F', '/'))
|
352
|
+
|
353
|
+
# query parameters
|
354
|
+
query_params = opts[:query_params] || {}
|
355
|
+
|
356
|
+
# header parameters
|
357
|
+
header_params = opts[:header_params] || {}
|
358
|
+
# HTTP header 'Accept' (if needed)
|
359
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
360
|
+
# HTTP header 'Content-Type'
|
361
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
362
|
+
if !content_type.nil?
|
363
|
+
header_params['Content-Type'] = content_type
|
364
|
+
end
|
365
|
+
|
366
|
+
# form parameters
|
367
|
+
form_params = opts[:form_params] || {}
|
368
|
+
|
369
|
+
# http body (model)
|
370
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
|
371
|
+
|
372
|
+
# return_type
|
373
|
+
return_type = opts[:debug_return_type] || 'SetLabelResponse'
|
374
|
+
|
375
|
+
# auth_names
|
376
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
377
|
+
|
378
|
+
new_options = opts.merge(
|
379
|
+
:operation => :"ContentNamespacesApi.set_label",
|
380
|
+
:header_params => header_params,
|
381
|
+
:query_params => query_params,
|
382
|
+
:form_params => form_params,
|
383
|
+
:body => post_body,
|
384
|
+
:auth_names => auth_names,
|
385
|
+
:return_type => return_type
|
386
|
+
)
|
387
|
+
|
388
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
389
|
+
if @api_client.config.debugging
|
390
|
+
@api_client.config.logger.debug "API called: ContentNamespacesApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
391
|
+
end
|
392
|
+
return data, status_code, headers
|
393
|
+
end
|
394
|
+
|
395
|
+
# Unset a label
|
396
|
+
# Unset a single pulp_label on the object.
|
397
|
+
# @param ansible_ansible_namespace_metadata_href [String]
|
398
|
+
# @param unset_label [UnsetLabel]
|
399
|
+
# @param [Hash] opts the optional parameters
|
400
|
+
# @return [UnsetLabelResponse]
|
401
|
+
def unset_label(ansible_ansible_namespace_metadata_href, unset_label, opts = {})
|
402
|
+
data, _status_code, _headers = unset_label_with_http_info(ansible_ansible_namespace_metadata_href, unset_label, opts)
|
403
|
+
data
|
404
|
+
end
|
405
|
+
|
406
|
+
# Unset a label
|
407
|
+
# Unset a single pulp_label on the object.
|
408
|
+
# @param ansible_ansible_namespace_metadata_href [String]
|
409
|
+
# @param unset_label [UnsetLabel]
|
410
|
+
# @param [Hash] opts the optional parameters
|
411
|
+
# @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
|
412
|
+
def unset_label_with_http_info(ansible_ansible_namespace_metadata_href, unset_label, opts = {})
|
413
|
+
if @api_client.config.debugging
|
414
|
+
@api_client.config.logger.debug 'Calling API: ContentNamespacesApi.unset_label ...'
|
415
|
+
end
|
416
|
+
# verify the required parameter 'ansible_ansible_namespace_metadata_href' is set
|
417
|
+
if @api_client.config.client_side_validation && ansible_ansible_namespace_metadata_href.nil?
|
418
|
+
fail ArgumentError, "Missing the required parameter 'ansible_ansible_namespace_metadata_href' when calling ContentNamespacesApi.unset_label"
|
419
|
+
end
|
420
|
+
# verify the required parameter 'unset_label' is set
|
421
|
+
if @api_client.config.client_side_validation && unset_label.nil?
|
422
|
+
fail ArgumentError, "Missing the required parameter 'unset_label' when calling ContentNamespacesApi.unset_label"
|
423
|
+
end
|
424
|
+
# resource path
|
425
|
+
local_var_path = '{ansible_ansible_namespace_metadata_href}unset_label/'.sub('{' + 'ansible_ansible_namespace_metadata_href' + '}', CGI.escape(ansible_ansible_namespace_metadata_href.to_s).gsub('%2F', '/'))
|
426
|
+
|
427
|
+
# query parameters
|
428
|
+
query_params = opts[:query_params] || {}
|
429
|
+
|
430
|
+
# header parameters
|
431
|
+
header_params = opts[:header_params] || {}
|
432
|
+
# HTTP header 'Accept' (if needed)
|
433
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
434
|
+
# HTTP header 'Content-Type'
|
435
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
436
|
+
if !content_type.nil?
|
437
|
+
header_params['Content-Type'] = content_type
|
438
|
+
end
|
439
|
+
|
440
|
+
# form parameters
|
441
|
+
form_params = opts[:form_params] || {}
|
442
|
+
|
443
|
+
# http body (model)
|
444
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
|
445
|
+
|
446
|
+
# return_type
|
447
|
+
return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
|
448
|
+
|
449
|
+
# auth_names
|
450
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
451
|
+
|
452
|
+
new_options = opts.merge(
|
453
|
+
:operation => :"ContentNamespacesApi.unset_label",
|
454
|
+
:header_params => header_params,
|
455
|
+
:query_params => query_params,
|
456
|
+
:form_params => form_params,
|
457
|
+
:body => post_body,
|
458
|
+
:auth_names => auth_names,
|
459
|
+
:return_type => return_type
|
460
|
+
)
|
461
|
+
|
462
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
463
|
+
if @api_client.config.debugging
|
464
|
+
@api_client.config.logger.debug "API called: ContentNamespacesApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
465
|
+
end
|
466
|
+
return data, status_code, headers
|
467
|
+
end
|
320
468
|
end
|
321
469
|
end
|
@@ -231,6 +231,7 @@ module PulpAnsibleClient
|
|
231
231
|
# @option opts [String] :base_path__contains Filter results where base_path contains value
|
232
232
|
# @option opts [String] :base_path__icontains Filter results where base_path contains value
|
233
233
|
# @option opts [Array<String>] :base_path__in Filter results where base_path is in a comma-separated list of values
|
234
|
+
# @option opts [Boolean] :checkpoint Filter results where checkpoint matches value
|
234
235
|
# @option opts [Integer] :limit Number of results to return per page.
|
235
236
|
# @option opts [String] :name Filter results where name matches value
|
236
237
|
# @option opts [String] :name__contains Filter results where name contains value
|
@@ -242,7 +243,7 @@ module PulpAnsibleClient
|
|
242
243
|
# @option opts [String] :name__regex Filter results where name matches regex value
|
243
244
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
244
245
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
245
|
-
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
246
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `checkpoint` - Checkpoint * `-checkpoint` - Checkpoint (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
246
247
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
247
248
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
248
249
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
@@ -266,6 +267,7 @@ module PulpAnsibleClient
|
|
266
267
|
# @option opts [String] :base_path__contains Filter results where base_path contains value
|
267
268
|
# @option opts [String] :base_path__icontains Filter results where base_path contains value
|
268
269
|
# @option opts [Array<String>] :base_path__in Filter results where base_path is in a comma-separated list of values
|
270
|
+
# @option opts [Boolean] :checkpoint Filter results where checkpoint matches value
|
269
271
|
# @option opts [Integer] :limit Number of results to return per page.
|
270
272
|
# @option opts [String] :name Filter results where name matches value
|
271
273
|
# @option opts [String] :name__contains Filter results where name contains value
|
@@ -277,7 +279,7 @@ module PulpAnsibleClient
|
|
277
279
|
# @option opts [String] :name__regex Filter results where name matches regex value
|
278
280
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
279
281
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
280
|
-
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
282
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `checkpoint` - Checkpoint * `-checkpoint` - Checkpoint (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
281
283
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
282
284
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
283
285
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
@@ -293,7 +295,7 @@ module PulpAnsibleClient
|
|
293
295
|
if @api_client.config.debugging
|
294
296
|
@api_client.config.logger.debug 'Calling API: DistributionsAnsibleApi.list ...'
|
295
297
|
end
|
296
|
-
allowable_values = ["-base_path", "-hidden", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "base_path", "hidden", "name", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type"]
|
298
|
+
allowable_values = ["-base_path", "-checkpoint", "-hidden", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "base_path", "checkpoint", "hidden", "name", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type"]
|
297
299
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
298
300
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
299
301
|
end
|
@@ -306,6 +308,7 @@ module PulpAnsibleClient
|
|
306
308
|
query_params[:'base_path__contains'] = opts[:'base_path__contains'] if !opts[:'base_path__contains'].nil?
|
307
309
|
query_params[:'base_path__icontains'] = opts[:'base_path__icontains'] if !opts[:'base_path__icontains'].nil?
|
308
310
|
query_params[:'base_path__in'] = @api_client.build_collection_param(opts[:'base_path__in'], :csv) if !opts[:'base_path__in'].nil?
|
311
|
+
query_params[:'checkpoint'] = opts[:'checkpoint'] if !opts[:'checkpoint'].nil?
|
309
312
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
310
313
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
311
314
|
query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
|
@@ -16,23 +16,23 @@ require 'time'
|
|
16
16
|
module PulpAnsibleClient
|
17
17
|
# A serializer for CollectionVersion Content.
|
18
18
|
class AnsibleCollectionVersionResponse
|
19
|
-
attr_accessor :pulp_href
|
20
|
-
|
21
|
-
# Timestamp of creation.
|
22
|
-
attr_accessor :pulp_created
|
23
|
-
|
24
|
-
# Artifact file representing the physical content
|
25
|
-
attr_accessor :artifact
|
26
|
-
|
27
19
|
# The Pulp Resource Name (PRN).
|
28
20
|
attr_accessor :prn
|
29
21
|
|
30
22
|
# 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.
|
31
23
|
attr_accessor :pulp_last_updated
|
32
24
|
|
25
|
+
# Timestamp of creation.
|
26
|
+
attr_accessor :pulp_created
|
27
|
+
|
33
28
|
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
34
29
|
attr_accessor :pulp_labels
|
35
30
|
|
31
|
+
# Artifact file representing the physical content
|
32
|
+
attr_accessor :artifact
|
33
|
+
|
34
|
+
attr_accessor :pulp_href
|
35
|
+
|
36
36
|
# The SHA-256 checksum if available.
|
37
37
|
attr_accessor :sha256
|
38
38
|
|
@@ -107,12 +107,12 @@ module PulpAnsibleClient
|
|
107
107
|
# Attribute mapping from ruby-style variable name to JSON key.
|
108
108
|
def self.attribute_map
|
109
109
|
{
|
110
|
-
:'pulp_href' => :'pulp_href',
|
111
|
-
:'pulp_created' => :'pulp_created',
|
112
|
-
:'artifact' => :'artifact',
|
113
110
|
:'prn' => :'prn',
|
114
111
|
:'pulp_last_updated' => :'pulp_last_updated',
|
112
|
+
:'pulp_created' => :'pulp_created',
|
115
113
|
:'pulp_labels' => :'pulp_labels',
|
114
|
+
:'artifact' => :'artifact',
|
115
|
+
:'pulp_href' => :'pulp_href',
|
116
116
|
:'sha256' => :'sha256',
|
117
117
|
:'md5' => :'md5',
|
118
118
|
:'sha1' => :'sha1',
|
@@ -148,12 +148,12 @@ module PulpAnsibleClient
|
|
148
148
|
# Attribute type mapping.
|
149
149
|
def self.openapi_types
|
150
150
|
{
|
151
|
-
:'pulp_href' => :'String',
|
152
|
-
:'pulp_created' => :'Time',
|
153
|
-
:'artifact' => :'String',
|
154
151
|
:'prn' => :'String',
|
155
152
|
:'pulp_last_updated' => :'Time',
|
153
|
+
:'pulp_created' => :'Time',
|
156
154
|
:'pulp_labels' => :'Hash<String, String>',
|
155
|
+
:'artifact' => :'String',
|
156
|
+
:'pulp_href' => :'String',
|
157
157
|
:'sha256' => :'String',
|
158
158
|
:'md5' => :'String',
|
159
159
|
:'sha1' => :'String',
|
@@ -203,18 +203,6 @@ module PulpAnsibleClient
|
|
203
203
|
h[k.to_sym] = v
|
204
204
|
}
|
205
205
|
|
206
|
-
if attributes.key?(:'pulp_href')
|
207
|
-
self.pulp_href = attributes[:'pulp_href']
|
208
|
-
end
|
209
|
-
|
210
|
-
if attributes.key?(:'pulp_created')
|
211
|
-
self.pulp_created = attributes[:'pulp_created']
|
212
|
-
end
|
213
|
-
|
214
|
-
if attributes.key?(:'artifact')
|
215
|
-
self.artifact = attributes[:'artifact']
|
216
|
-
end
|
217
|
-
|
218
206
|
if attributes.key?(:'prn')
|
219
207
|
self.prn = attributes[:'prn']
|
220
208
|
end
|
@@ -223,12 +211,24 @@ module PulpAnsibleClient
|
|
223
211
|
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
224
212
|
end
|
225
213
|
|
214
|
+
if attributes.key?(:'pulp_created')
|
215
|
+
self.pulp_created = attributes[:'pulp_created']
|
216
|
+
end
|
217
|
+
|
226
218
|
if attributes.key?(:'pulp_labels')
|
227
219
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
228
220
|
self.pulp_labels = value
|
229
221
|
end
|
230
222
|
end
|
231
223
|
|
224
|
+
if attributes.key?(:'artifact')
|
225
|
+
self.artifact = attributes[:'artifact']
|
226
|
+
end
|
227
|
+
|
228
|
+
if attributes.key?(:'pulp_href')
|
229
|
+
self.pulp_href = attributes[:'pulp_href']
|
230
|
+
end
|
231
|
+
|
232
232
|
if attributes.key?(:'sha256')
|
233
233
|
self.sha256 = attributes[:'sha256']
|
234
234
|
end
|
@@ -502,12 +502,12 @@ module PulpAnsibleClient
|
|
502
502
|
def ==(o)
|
503
503
|
return true if self.equal?(o)
|
504
504
|
self.class == o.class &&
|
505
|
-
pulp_href == o.pulp_href &&
|
506
|
-
pulp_created == o.pulp_created &&
|
507
|
-
artifact == o.artifact &&
|
508
505
|
prn == o.prn &&
|
509
506
|
pulp_last_updated == o.pulp_last_updated &&
|
507
|
+
pulp_created == o.pulp_created &&
|
510
508
|
pulp_labels == o.pulp_labels &&
|
509
|
+
artifact == o.artifact &&
|
510
|
+
pulp_href == o.pulp_href &&
|
511
511
|
sha256 == o.sha256 &&
|
512
512
|
md5 == o.md5 &&
|
513
513
|
sha1 == o.sha1 &&
|
@@ -543,7 +543,7 @@ module PulpAnsibleClient
|
|
543
543
|
# Calculates hash code according to all attributes.
|
544
544
|
# @return [Integer] Hash code
|
545
545
|
def hash
|
546
|
-
[
|
546
|
+
[prn, pulp_last_updated, pulp_created, pulp_labels, artifact, pulp_href, sha256, md5, sha1, sha224, sha384, sha512, id, authors, contents, dependencies, description, docs_blob, manifest, files, documentation, homepage, issues, license, name, namespace, origin_repository, tags, version, requires_ansible].hash
|
547
547
|
end
|
548
548
|
|
549
549
|
# Builds the object from hash
|