pulp_ansible_client 0.18.3 → 0.19.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +34 -47
- data/docs/AnsibleCollectionRemoteResponseHiddenFields.md +2 -2
- data/docs/AnsibleCollectionVersion.md +3 -3
- data/docs/AnsibleCollectionVersionResponse.md +3 -3
- data/docs/AnsibleCollectionsApi.md +9 -15
- data/docs/AnsibleCopyApi.md +1 -1
- data/docs/AnsibleGitRemote.md +25 -25
- data/docs/AnsibleGitRemoteResponse.md +23 -23
- data/docs/AnsibleRole.md +3 -3
- data/docs/ApiCollectionsApi.md +1 -1
- data/docs/ApiRolesApi.md +1 -1
- data/docs/CollectionImportApi.md +1 -1
- data/docs/CollectionNamespaceResponse.md +1 -1
- data/docs/CollectionResponse.md +5 -3
- data/docs/CollectionVersionResponse.md +1 -1
- data/docs/CollectionVersionSignatureResponse.md +23 -0
- data/docs/ContentCollectionDeprecationsApi.md +1 -3
- data/docs/ContentCollectionMarksApi.md +2 -4
- data/docs/ContentCollectionSignaturesApi.md +3 -5
- data/docs/ContentCollectionVersionsApi.md +5 -5
- data/docs/ContentNamespacesApi.md +1 -19
- data/docs/ContentRolesApi.md +1 -3
- data/docs/DistributionsAnsibleApi.md +10 -136
- data/docs/GalaxyDetailApi.md +1 -1
- data/docs/{UnsetLabel.md → PatchedCollection.md} +3 -3
- data/docs/PatchedansibleGitRemote.md +25 -25
- data/docs/PulpAnsibleApiApi.md +1 -1
- data/docs/PulpAnsibleApiV2CollectionsVersionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3Api.md +1 -1
- data/docs/PulpAnsibleApiV3ArtifactsCollectionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionsAllApi.md +1 -3
- data/docs/PulpAnsibleApiV3CollectionsApi.md +5 -7
- data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +3 -3
- data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleApiV3NamespacesApi.md +1 -19
- data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -3
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +5 -7
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +3 -3
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md +5 -23
- data/docs/{ApiPluginAnsibleSearchCollectionVersionsApi.md → PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.md} +17 -18
- data/docs/PulpAnsibleArtifactsCollectionsV3Api.md +1 -1
- data/docs/PulpAnsibleDefaultApiApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3Api.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionVersionsAllApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +1 -3
- data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +5 -7
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +3 -3
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3NamespacesApi.md +1 -19
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -3
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +5 -7
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +3 -3
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md +5 -23
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md +3 -4
- data/docs/PulpAnsibleTagsApi.md +1 -1
- data/docs/RemotesCollectionApi.md +9 -135
- data/docs/RemotesGitApi.md +9 -135
- data/docs/RemotesRoleApi.md +9 -135
- data/docs/RepositoriesAnsibleApi.md +10 -136
- data/docs/RepositoriesAnsibleVersionsApi.md +1 -3
- data/docs/UnpaginatedCollectionVersionResponse.md +1 -1
- data/docs/VersionsApi.md +1 -1
- data/lib/pulp_ansible_client/api/ansible_collections_api.rb +0 -11
- data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +0 -3
- data/lib/pulp_ansible_client/api/content_collection_marks_api.rb +0 -3
- data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +0 -3
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +6 -6
- data/lib/pulp_ansible_client/api/content_namespaces_api.rb +0 -27
- data/lib/pulp_ansible_client/api/content_roles_api.rb +0 -3
- data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +0 -163
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_all_api.rb +0 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_api.rb +9 -12
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +3 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_namespaces_api.rb +0 -27
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api.rb +0 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api.rb +9 -12
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +3 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api.rb +8 -35
- data/lib/pulp_ansible_client/api/{api_plugin_ansible_search_collection_versions_api.rb → pulp_ansible_api_v3_plugin_ansible_search_collection_versions_api.rb} +24 -26
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_all_api.rb +0 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_api.rb +9 -12
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +3 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_namespaces_api.rb +0 -27
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api.rb +0 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api.rb +9 -12
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +3 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api.rb +8 -35
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api.rb +0 -2
- data/lib/pulp_ansible_client/api/remotes_collection_api.rb +0 -163
- data/lib/pulp_ansible_client/api/remotes_git_api.rb +0 -163
- data/lib/pulp_ansible_client/api/remotes_role_api.rb +0 -163
- data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +0 -163
- data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +0 -3
- data/lib/pulp_ansible_client/configuration.rb +3 -3
- data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +20 -20
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +20 -20
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response_hidden_fields.rb +0 -10
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +11 -11
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +11 -11
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +217 -217
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +143 -143
- data/lib/pulp_ansible_client/models/ansible_role.rb +11 -11
- data/lib/pulp_ansible_client/models/ansible_role_remote.rb +20 -20
- data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +20 -20
- data/lib/pulp_ansible_client/models/collection_namespace_response.rb +1 -0
- data/lib/pulp_ansible_client/models/collection_response.rb +19 -6
- data/lib/pulp_ansible_client/models/collection_version_response.rb +9 -2
- data/lib/pulp_ansible_client/models/{set_label.rb → collection_version_signature_response.rb} +49 -42
- data/lib/pulp_ansible_client/models/{unset_label_response.rb → patched_collection.rb} +11 -46
- data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +20 -20
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +216 -216
- data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +20 -20
- data/lib/pulp_ansible_client/models/unpaginated_collection_version_response.rb +9 -2
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/lib/pulp_ansible_client.rb +3 -5
- data/spec/api/ansible_collections_api_spec.rb +0 -5
- data/spec/api/content_collection_deprecations_api_spec.rb +0 -1
- data/spec/api/content_collection_marks_api_spec.rb +0 -1
- data/spec/api/content_collection_signatures_api_spec.rb +0 -1
- data/spec/api/content_collection_versions_api_spec.rb +2 -2
- data/spec/api/content_namespaces_api_spec.rb +0 -9
- data/spec/api/content_roles_api_spec.rb +0 -1
- data/spec/api/distributions_ansible_api_spec.rb +0 -35
- data/spec/api/pulp_ansible_api_v3_collections_all_api_spec.rb +0 -1
- data/spec/api/pulp_ansible_api_v3_collections_api_spec.rb +1 -2
- data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_api_v3_namespaces_api_spec.rb +0 -9
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +0 -1
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api_spec.rb +1 -2
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api_spec.rb +4 -13
- data/spec/api/{api_plugin_ansible_search_collection_versions_api_spec.rb → pulp_ansible_api_v3_plugin_ansible_search_collection_versions_api_spec.rb} +8 -9
- data/spec/api/pulp_ansible_default_api_v3_collections_all_api_spec.rb +0 -1
- data/spec/api/pulp_ansible_default_api_v3_collections_api_spec.rb +1 -2
- data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_default_api_v3_namespaces_api_spec.rb +0 -9
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +0 -1
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api_spec.rb +1 -2
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api_spec.rb +4 -13
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api_spec.rb +0 -1
- data/spec/api/remotes_collection_api_spec.rb +0 -35
- data/spec/api/remotes_git_api_spec.rb +0 -35
- data/spec/api/remotes_role_api_spec.rb +0 -35
- data/spec/api/repositories_ansible_api_spec.rb +0 -35
- data/spec/api/repositories_ansible_versions_api_spec.rb +0 -1
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/ansible_collection_version_response_spec.rb +2 -2
- data/spec/models/ansible_collection_version_spec.rb +3 -3
- data/spec/models/ansible_git_remote_response_spec.rb +16 -16
- data/spec/models/ansible_git_remote_spec.rb +19 -19
- data/spec/models/ansible_role_spec.rb +2 -2
- data/spec/models/collection_response_spec.rb +6 -0
- data/spec/models/collection_version_signature_response_spec.rb +59 -0
- data/spec/models/{unset_label_spec.rb → patched_collection_spec.rb} +7 -7
- data/spec/models/patchedansible_git_remote_spec.rb +19 -19
- metadata +155 -163
- data/docs/SetLabel.md +0 -19
- data/docs/SetLabelResponse.md +0 -19
- data/docs/UnsetLabelResponse.md +0 -19
- data/lib/pulp_ansible_client/models/set_label_response.rb +0 -243
- data/lib/pulp_ansible_client/models/unset_label.rb +0 -242
- data/spec/models/set_label_response_spec.rb +0 -47
- data/spec/models/set_label_spec.rb +0 -47
- data/spec/models/unset_label_response_spec.rb +0 -47
@@ -19,7 +19,6 @@ module PulpAnsibleClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
# Add a role
|
23
22
|
# Add a role for this object to users/groups.
|
24
23
|
# @param ansible_ansible_repository_href [String]
|
25
24
|
# @param nested_role [NestedRole]
|
@@ -30,7 +29,6 @@ module PulpAnsibleClient
|
|
30
29
|
data
|
31
30
|
end
|
32
31
|
|
33
|
-
# Add a role
|
34
32
|
# Add a role for this object to users/groups.
|
35
33
|
# @param ansible_ansible_repository_href [String]
|
36
34
|
# @param nested_role [NestedRole]
|
@@ -291,18 +289,13 @@ module PulpAnsibleClient
|
|
291
289
|
# @option opts [String] :name Filter results where name matches value
|
292
290
|
# @option opts [String] :name__contains Filter results where name contains value
|
293
291
|
# @option opts [String] :name__icontains Filter results where name contains value
|
294
|
-
# @option opts [String] :name__iexact Filter results where name matches value
|
295
292
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
296
|
-
# @option opts [String] :name__iregex Filter results where name matches regex value
|
297
|
-
# @option opts [String] :name__istartswith Filter results where name starts with value
|
298
|
-
# @option opts [String] :name__regex Filter results where name matches regex value
|
299
293
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
300
294
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
301
295
|
# @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) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
302
296
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
303
297
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
304
298
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
305
|
-
# @option opts [String] :q
|
306
299
|
# @option opts [String] :remote Foreign Key referenced by HREF
|
307
300
|
# @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
|
308
301
|
# @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
|
@@ -329,18 +322,13 @@ module PulpAnsibleClient
|
|
329
322
|
# @option opts [String] :name Filter results where name matches value
|
330
323
|
# @option opts [String] :name__contains Filter results where name contains value
|
331
324
|
# @option opts [String] :name__icontains Filter results where name contains value
|
332
|
-
# @option opts [String] :name__iexact Filter results where name matches value
|
333
325
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
334
|
-
# @option opts [String] :name__iregex Filter results where name matches regex value
|
335
|
-
# @option opts [String] :name__istartswith Filter results where name starts with value
|
336
|
-
# @option opts [String] :name__regex Filter results where name matches regex value
|
337
326
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
338
327
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
339
328
|
# @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) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
340
329
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
341
330
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
342
331
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
343
|
-
# @option opts [String] :q
|
344
332
|
# @option opts [String] :remote Foreign Key referenced by HREF
|
345
333
|
# @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
|
346
334
|
# @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
|
@@ -372,18 +360,13 @@ module PulpAnsibleClient
|
|
372
360
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
373
361
|
query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
|
374
362
|
query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
|
375
|
-
query_params[:'name__iexact'] = opts[:'name__iexact'] if !opts[:'name__iexact'].nil?
|
376
363
|
query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
|
377
|
-
query_params[:'name__iregex'] = opts[:'name__iregex'] if !opts[:'name__iregex'].nil?
|
378
|
-
query_params[:'name__istartswith'] = opts[:'name__istartswith'] if !opts[:'name__istartswith'].nil?
|
379
|
-
query_params[:'name__regex'] = opts[:'name__regex'] if !opts[:'name__regex'].nil?
|
380
364
|
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
381
365
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
382
366
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
383
367
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
384
368
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
385
369
|
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
386
|
-
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
387
370
|
query_params[:'remote'] = opts[:'remote'] if !opts[:'remote'].nil?
|
388
371
|
query_params[:'retain_repo_versions'] = opts[:'retain_repo_versions'] if !opts[:'retain_repo_versions'].nil?
|
389
372
|
query_params[:'retain_repo_versions__gt'] = opts[:'retain_repo_versions__gt'] if !opts[:'retain_repo_versions__gt'].nil?
|
@@ -430,7 +413,6 @@ module PulpAnsibleClient
|
|
430
413
|
return data, status_code, headers
|
431
414
|
end
|
432
415
|
|
433
|
-
# List roles
|
434
416
|
# List roles assigned to this object.
|
435
417
|
# @param ansible_ansible_repository_href [String]
|
436
418
|
# @param [Hash] opts the optional parameters
|
@@ -442,7 +424,6 @@ module PulpAnsibleClient
|
|
442
424
|
data
|
443
425
|
end
|
444
426
|
|
445
|
-
# List roles
|
446
427
|
# List roles assigned to this object.
|
447
428
|
# @param ansible_ansible_repository_href [String]
|
448
429
|
# @param [Hash] opts the optional parameters
|
@@ -704,7 +685,6 @@ module PulpAnsibleClient
|
|
704
685
|
return data, status_code, headers
|
705
686
|
end
|
706
687
|
|
707
|
-
# List user permissions
|
708
688
|
# List permissions available to the current user on this object.
|
709
689
|
# @param ansible_ansible_repository_href [String]
|
710
690
|
# @param [Hash] opts the optional parameters
|
@@ -716,7 +696,6 @@ module PulpAnsibleClient
|
|
716
696
|
data
|
717
697
|
end
|
718
698
|
|
719
|
-
# List user permissions
|
720
699
|
# List permissions available to the current user on this object.
|
721
700
|
# @param ansible_ansible_repository_href [String]
|
722
701
|
# @param [Hash] opts the optional parameters
|
@@ -978,7 +957,6 @@ module PulpAnsibleClient
|
|
978
957
|
return data, status_code, headers
|
979
958
|
end
|
980
959
|
|
981
|
-
# Remove a role
|
982
960
|
# Remove a role for this object from users/groups.
|
983
961
|
# @param ansible_ansible_repository_href [String]
|
984
962
|
# @param nested_role [NestedRole]
|
@@ -989,7 +967,6 @@ module PulpAnsibleClient
|
|
989
967
|
data
|
990
968
|
end
|
991
969
|
|
992
|
-
# Remove a role
|
993
970
|
# Remove a role for this object from users/groups.
|
994
971
|
# @param ansible_ansible_repository_href [String]
|
995
972
|
# @param nested_role [NestedRole]
|
@@ -1048,76 +1025,6 @@ module PulpAnsibleClient
|
|
1048
1025
|
return data, status_code, headers
|
1049
1026
|
end
|
1050
1027
|
|
1051
|
-
# Set a label
|
1052
|
-
# Set a single pulp_label on the object to a specific value or null.
|
1053
|
-
# @param ansible_ansible_repository_href [String]
|
1054
|
-
# @param set_label [SetLabel]
|
1055
|
-
# @param [Hash] opts the optional parameters
|
1056
|
-
# @return [SetLabelResponse]
|
1057
|
-
def set_label(ansible_ansible_repository_href, set_label, opts = {})
|
1058
|
-
data, _status_code, _headers = set_label_with_http_info(ansible_ansible_repository_href, set_label, opts)
|
1059
|
-
data
|
1060
|
-
end
|
1061
|
-
|
1062
|
-
# Set a label
|
1063
|
-
# Set a single pulp_label on the object to a specific value or null.
|
1064
|
-
# @param ansible_ansible_repository_href [String]
|
1065
|
-
# @param set_label [SetLabel]
|
1066
|
-
# @param [Hash] opts the optional parameters
|
1067
|
-
# @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
|
1068
|
-
def set_label_with_http_info(ansible_ansible_repository_href, set_label, opts = {})
|
1069
|
-
if @api_client.config.debugging
|
1070
|
-
@api_client.config.logger.debug 'Calling API: RepositoriesAnsibleApi.set_label ...'
|
1071
|
-
end
|
1072
|
-
# verify the required parameter 'ansible_ansible_repository_href' is set
|
1073
|
-
if @api_client.config.client_side_validation && ansible_ansible_repository_href.nil?
|
1074
|
-
fail ArgumentError, "Missing the required parameter 'ansible_ansible_repository_href' when calling RepositoriesAnsibleApi.set_label"
|
1075
|
-
end
|
1076
|
-
# verify the required parameter 'set_label' is set
|
1077
|
-
if @api_client.config.client_side_validation && set_label.nil?
|
1078
|
-
fail ArgumentError, "Missing the required parameter 'set_label' when calling RepositoriesAnsibleApi.set_label"
|
1079
|
-
end
|
1080
|
-
# resource path
|
1081
|
-
local_var_path = '{ansible_ansible_repository_href}set_label/'.sub('{' + 'ansible_ansible_repository_href' + '}', CGI.escape(ansible_ansible_repository_href.to_s).gsub('%2F', '/'))
|
1082
|
-
|
1083
|
-
# query parameters
|
1084
|
-
query_params = opts[:query_params] || {}
|
1085
|
-
|
1086
|
-
# header parameters
|
1087
|
-
header_params = opts[:header_params] || {}
|
1088
|
-
# HTTP header 'Accept' (if needed)
|
1089
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1090
|
-
# HTTP header 'Content-Type'
|
1091
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
1092
|
-
|
1093
|
-
# form parameters
|
1094
|
-
form_params = opts[:form_params] || {}
|
1095
|
-
|
1096
|
-
# http body (model)
|
1097
|
-
post_body = opts[:body] || @api_client.object_to_http_body(set_label)
|
1098
|
-
|
1099
|
-
# return_type
|
1100
|
-
return_type = opts[:return_type] || 'SetLabelResponse'
|
1101
|
-
|
1102
|
-
# auth_names
|
1103
|
-
auth_names = opts[:auth_names] || ['basicAuth']
|
1104
|
-
|
1105
|
-
new_options = opts.merge(
|
1106
|
-
:header_params => header_params,
|
1107
|
-
:query_params => query_params,
|
1108
|
-
:form_params => form_params,
|
1109
|
-
:body => post_body,
|
1110
|
-
:auth_names => auth_names,
|
1111
|
-
:return_type => return_type
|
1112
|
-
)
|
1113
|
-
|
1114
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1115
|
-
if @api_client.config.debugging
|
1116
|
-
@api_client.config.logger.debug "API called: RepositoriesAnsibleApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1117
|
-
end
|
1118
|
-
return data, status_code, headers
|
1119
|
-
end
|
1120
|
-
|
1121
1028
|
# Trigger an asynchronous task to sign Ansible content.
|
1122
1029
|
# @param ansible_ansible_repository_href [String]
|
1123
1030
|
# @param ansible_repository_signature [AnsibleRepositorySignature]
|
@@ -1322,76 +1229,6 @@ module PulpAnsibleClient
|
|
1322
1229
|
return data, status_code, headers
|
1323
1230
|
end
|
1324
1231
|
|
1325
|
-
# Unset a label
|
1326
|
-
# Unset a single pulp_label on the object.
|
1327
|
-
# @param ansible_ansible_repository_href [String]
|
1328
|
-
# @param unset_label [UnsetLabel]
|
1329
|
-
# @param [Hash] opts the optional parameters
|
1330
|
-
# @return [UnsetLabelResponse]
|
1331
|
-
def unset_label(ansible_ansible_repository_href, unset_label, opts = {})
|
1332
|
-
data, _status_code, _headers = unset_label_with_http_info(ansible_ansible_repository_href, unset_label, opts)
|
1333
|
-
data
|
1334
|
-
end
|
1335
|
-
|
1336
|
-
# Unset a label
|
1337
|
-
# Unset a single pulp_label on the object.
|
1338
|
-
# @param ansible_ansible_repository_href [String]
|
1339
|
-
# @param unset_label [UnsetLabel]
|
1340
|
-
# @param [Hash] opts the optional parameters
|
1341
|
-
# @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
|
1342
|
-
def unset_label_with_http_info(ansible_ansible_repository_href, unset_label, opts = {})
|
1343
|
-
if @api_client.config.debugging
|
1344
|
-
@api_client.config.logger.debug 'Calling API: RepositoriesAnsibleApi.unset_label ...'
|
1345
|
-
end
|
1346
|
-
# verify the required parameter 'ansible_ansible_repository_href' is set
|
1347
|
-
if @api_client.config.client_side_validation && ansible_ansible_repository_href.nil?
|
1348
|
-
fail ArgumentError, "Missing the required parameter 'ansible_ansible_repository_href' when calling RepositoriesAnsibleApi.unset_label"
|
1349
|
-
end
|
1350
|
-
# verify the required parameter 'unset_label' is set
|
1351
|
-
if @api_client.config.client_side_validation && unset_label.nil?
|
1352
|
-
fail ArgumentError, "Missing the required parameter 'unset_label' when calling RepositoriesAnsibleApi.unset_label"
|
1353
|
-
end
|
1354
|
-
# resource path
|
1355
|
-
local_var_path = '{ansible_ansible_repository_href}unset_label/'.sub('{' + 'ansible_ansible_repository_href' + '}', CGI.escape(ansible_ansible_repository_href.to_s).gsub('%2F', '/'))
|
1356
|
-
|
1357
|
-
# query parameters
|
1358
|
-
query_params = opts[:query_params] || {}
|
1359
|
-
|
1360
|
-
# header parameters
|
1361
|
-
header_params = opts[:header_params] || {}
|
1362
|
-
# HTTP header 'Accept' (if needed)
|
1363
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1364
|
-
# HTTP header 'Content-Type'
|
1365
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
1366
|
-
|
1367
|
-
# form parameters
|
1368
|
-
form_params = opts[:form_params] || {}
|
1369
|
-
|
1370
|
-
# http body (model)
|
1371
|
-
post_body = opts[:body] || @api_client.object_to_http_body(unset_label)
|
1372
|
-
|
1373
|
-
# return_type
|
1374
|
-
return_type = opts[:return_type] || 'UnsetLabelResponse'
|
1375
|
-
|
1376
|
-
# auth_names
|
1377
|
-
auth_names = opts[:auth_names] || ['basicAuth']
|
1378
|
-
|
1379
|
-
new_options = opts.merge(
|
1380
|
-
:header_params => header_params,
|
1381
|
-
:query_params => query_params,
|
1382
|
-
:form_params => form_params,
|
1383
|
-
:body => post_body,
|
1384
|
-
:auth_names => auth_names,
|
1385
|
-
:return_type => return_type
|
1386
|
-
)
|
1387
|
-
|
1388
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1389
|
-
if @api_client.config.debugging
|
1390
|
-
@api_client.config.logger.debug "API called: RepositoriesAnsibleApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1391
|
-
end
|
1392
|
-
return data, status_code, headers
|
1393
|
-
end
|
1394
|
-
|
1395
1232
|
# Update an ansible repository
|
1396
1233
|
# Trigger an asynchronous update task
|
1397
1234
|
# @param ansible_ansible_repository_href [String]
|
@@ -103,7 +103,6 @@ module PulpAnsibleClient
|
|
103
103
|
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
104
104
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
105
105
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
106
|
-
# @option opts [String] :q
|
107
106
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
108
107
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
109
108
|
# @return [PaginatedRepositoryVersionResponseList]
|
@@ -134,7 +133,6 @@ module PulpAnsibleClient
|
|
134
133
|
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
135
134
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
136
135
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
137
|
-
# @option opts [String] :q
|
138
136
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
139
137
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
140
138
|
# @return [Array<(PaginatedRepositoryVersionResponseList, Integer, Hash)>] PaginatedRepositoryVersionResponseList data, response status code and response headers
|
@@ -173,7 +171,6 @@ module PulpAnsibleClient
|
|
173
171
|
query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
|
174
172
|
query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
|
175
173
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
176
|
-
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
177
174
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
178
175
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
179
176
|
|
@@ -127,8 +127,8 @@ module PulpAnsibleClient
|
|
127
127
|
attr_accessor :force_ending_format
|
128
128
|
|
129
129
|
def initialize
|
130
|
-
@scheme = '
|
131
|
-
@host = '
|
130
|
+
@scheme = 'https'
|
131
|
+
@host = 'pulp'
|
132
132
|
@base_path = ''
|
133
133
|
@api_key = {}
|
134
134
|
@api_key_prefix = {}
|
@@ -210,7 +210,7 @@ module PulpAnsibleClient
|
|
210
210
|
def server_settings
|
211
211
|
[
|
212
212
|
{
|
213
|
-
url: "
|
213
|
+
url: "https://pulp/",
|
214
214
|
description: "No description provided",
|
215
215
|
}
|
216
216
|
]
|
@@ -364,20 +364,20 @@ module PulpAnsibleClient
|
|
364
364
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
365
365
|
end
|
366
366
|
|
367
|
-
if !@total_timeout.nil? && @total_timeout < 0
|
368
|
-
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
|
367
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
368
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
369
369
|
end
|
370
370
|
|
371
|
-
if !@connect_timeout.nil? && @connect_timeout < 0
|
372
|
-
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
|
371
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
372
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
373
373
|
end
|
374
374
|
|
375
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
376
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
|
375
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
376
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
377
377
|
end
|
378
378
|
|
379
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
380
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
|
379
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
380
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
381
381
|
end
|
382
382
|
|
383
383
|
if !@requirements_file.nil? && @requirements_file.to_s.length < 1
|
@@ -419,10 +419,10 @@ module PulpAnsibleClient
|
|
419
419
|
return false if !@username.nil? && @username.to_s.length < 1
|
420
420
|
return false if !@password.nil? && @password.to_s.length < 1
|
421
421
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
422
|
-
return false if !@total_timeout.nil? && @total_timeout < 0
|
423
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
424
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
425
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
422
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
423
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
424
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
425
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
426
426
|
return false if !@requirements_file.nil? && @requirements_file.to_s.length < 1
|
427
427
|
return false if !@auth_url.nil? && @auth_url.to_s.length > 255
|
428
428
|
return false if !@auth_url.nil? && @auth_url.to_s.length < 1
|
@@ -552,8 +552,8 @@ module PulpAnsibleClient
|
|
552
552
|
# Custom attribute writer method with validation
|
553
553
|
# @param [Object] total_timeout Value to be assigned
|
554
554
|
def total_timeout=(total_timeout)
|
555
|
-
if !total_timeout.nil? && total_timeout < 0
|
556
|
-
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
|
555
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
556
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
557
557
|
end
|
558
558
|
|
559
559
|
@total_timeout = total_timeout
|
@@ -562,8 +562,8 @@ module PulpAnsibleClient
|
|
562
562
|
# Custom attribute writer method with validation
|
563
563
|
# @param [Object] connect_timeout Value to be assigned
|
564
564
|
def connect_timeout=(connect_timeout)
|
565
|
-
if !connect_timeout.nil? && connect_timeout < 0
|
566
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
|
565
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
566
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
567
567
|
end
|
568
568
|
|
569
569
|
@connect_timeout = connect_timeout
|
@@ -572,8 +572,8 @@ module PulpAnsibleClient
|
|
572
572
|
# Custom attribute writer method with validation
|
573
573
|
# @param [Object] sock_connect_timeout Value to be assigned
|
574
574
|
def sock_connect_timeout=(sock_connect_timeout)
|
575
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
576
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
|
575
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
576
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
577
577
|
end
|
578
578
|
|
579
579
|
@sock_connect_timeout = sock_connect_timeout
|
@@ -582,8 +582,8 @@ module PulpAnsibleClient
|
|
582
582
|
# Custom attribute writer method with validation
|
583
583
|
# @param [Object] sock_read_timeout Value to be assigned
|
584
584
|
def sock_read_timeout=(sock_read_timeout)
|
585
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
586
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
|
585
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
586
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
587
587
|
end
|
588
588
|
|
589
589
|
@sock_read_timeout = sock_read_timeout
|
@@ -309,20 +309,20 @@ module PulpAnsibleClient
|
|
309
309
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
310
310
|
end
|
311
311
|
|
312
|
-
if !@total_timeout.nil? && @total_timeout < 0
|
313
|
-
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
|
312
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
313
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
314
314
|
end
|
315
315
|
|
316
|
-
if !@connect_timeout.nil? && @connect_timeout < 0
|
317
|
-
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
|
316
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
317
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
318
318
|
end
|
319
319
|
|
320
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
321
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
|
320
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
321
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
322
322
|
end
|
323
323
|
|
324
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
325
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
|
324
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
325
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
326
326
|
end
|
327
327
|
|
328
328
|
if !@auth_url.nil? && @auth_url.to_s.length > 255
|
@@ -338,10 +338,10 @@ module PulpAnsibleClient
|
|
338
338
|
return false if @name.nil?
|
339
339
|
return false if @url.nil?
|
340
340
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
341
|
-
return false if !@total_timeout.nil? && @total_timeout < 0
|
342
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
343
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
344
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
341
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
342
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
343
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
344
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
345
345
|
return false if !@auth_url.nil? && @auth_url.to_s.length > 255
|
346
346
|
true
|
347
347
|
end
|
@@ -359,8 +359,8 @@ module PulpAnsibleClient
|
|
359
359
|
# Custom attribute writer method with validation
|
360
360
|
# @param [Object] total_timeout Value to be assigned
|
361
361
|
def total_timeout=(total_timeout)
|
362
|
-
if !total_timeout.nil? && total_timeout < 0
|
363
|
-
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
|
362
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
363
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
364
364
|
end
|
365
365
|
|
366
366
|
@total_timeout = total_timeout
|
@@ -369,8 +369,8 @@ module PulpAnsibleClient
|
|
369
369
|
# Custom attribute writer method with validation
|
370
370
|
# @param [Object] connect_timeout Value to be assigned
|
371
371
|
def connect_timeout=(connect_timeout)
|
372
|
-
if !connect_timeout.nil? && connect_timeout < 0
|
373
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
|
372
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
373
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
374
374
|
end
|
375
375
|
|
376
376
|
@connect_timeout = connect_timeout
|
@@ -379,8 +379,8 @@ module PulpAnsibleClient
|
|
379
379
|
# Custom attribute writer method with validation
|
380
380
|
# @param [Object] sock_connect_timeout Value to be assigned
|
381
381
|
def sock_connect_timeout=(sock_connect_timeout)
|
382
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
383
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
|
382
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
383
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
384
384
|
end
|
385
385
|
|
386
386
|
@sock_connect_timeout = sock_connect_timeout
|
@@ -389,8 +389,8 @@ module PulpAnsibleClient
|
|
389
389
|
# Custom attribute writer method with validation
|
390
390
|
# @param [Object] sock_read_timeout Value to be assigned
|
391
391
|
def sock_read_timeout=(sock_read_timeout)
|
392
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
393
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
|
392
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
393
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
394
394
|
end
|
395
395
|
|
396
396
|
@sock_read_timeout = sock_read_timeout
|
@@ -68,22 +68,12 @@ module PulpAnsibleClient
|
|
68
68
|
# @return Array for valid properties with the reasons
|
69
69
|
def list_invalid_properties
|
70
70
|
invalid_properties = Array.new
|
71
|
-
if @name.nil?
|
72
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
73
|
-
end
|
74
|
-
|
75
|
-
if @is_set.nil?
|
76
|
-
invalid_properties.push('invalid value for "is_set", is_set cannot be nil.')
|
77
|
-
end
|
78
|
-
|
79
71
|
invalid_properties
|
80
72
|
end
|
81
73
|
|
82
74
|
# Check to see if the all the properties in the model are valid
|
83
75
|
# @return true if the model is valid
|
84
76
|
def valid?
|
85
|
-
return false if @name.nil?
|
86
|
-
return false if @is_set.nil?
|
87
77
|
true
|
88
78
|
end
|
89
79
|
|
@@ -15,15 +15,15 @@ require 'date'
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
# A serializer for CollectionVersion Content.
|
17
17
|
class AnsibleCollectionVersion
|
18
|
-
# Artifact file representing the physical content
|
19
|
-
attr_accessor :artifact
|
20
|
-
|
21
18
|
# An uncommitted upload that may be turned into the artifact of the content unit.
|
22
19
|
attr_accessor :upload
|
23
20
|
|
24
21
|
# A URI of a repository the new content unit should be associated with.
|
25
22
|
attr_accessor :repository
|
26
23
|
|
24
|
+
# Artifact file representing the physical content
|
25
|
+
attr_accessor :artifact
|
26
|
+
|
27
27
|
# An uploaded file that may be turned into the artifact of the content unit.
|
28
28
|
attr_accessor :file
|
29
29
|
|
@@ -39,9 +39,9 @@ module PulpAnsibleClient
|
|
39
39
|
# Attribute mapping from ruby-style variable name to JSON key.
|
40
40
|
def self.attribute_map
|
41
41
|
{
|
42
|
-
:'artifact' => :'artifact',
|
43
42
|
:'upload' => :'upload',
|
44
43
|
:'repository' => :'repository',
|
44
|
+
:'artifact' => :'artifact',
|
45
45
|
:'file' => :'file',
|
46
46
|
:'expected_name' => :'expected_name',
|
47
47
|
:'expected_namespace' => :'expected_namespace',
|
@@ -52,9 +52,9 @@ module PulpAnsibleClient
|
|
52
52
|
# Attribute type mapping.
|
53
53
|
def self.openapi_types
|
54
54
|
{
|
55
|
-
:'artifact' => :'String',
|
56
55
|
:'upload' => :'String',
|
57
56
|
:'repository' => :'String',
|
57
|
+
:'artifact' => :'String',
|
58
58
|
:'file' => :'File',
|
59
59
|
:'expected_name' => :'String',
|
60
60
|
:'expected_namespace' => :'String',
|
@@ -83,10 +83,6 @@ module PulpAnsibleClient
|
|
83
83
|
h[k.to_sym] = v
|
84
84
|
}
|
85
85
|
|
86
|
-
if attributes.key?(:'artifact')
|
87
|
-
self.artifact = attributes[:'artifact']
|
88
|
-
end
|
89
|
-
|
90
86
|
if attributes.key?(:'upload')
|
91
87
|
self.upload = attributes[:'upload']
|
92
88
|
end
|
@@ -95,6 +91,10 @@ module PulpAnsibleClient
|
|
95
91
|
self.repository = attributes[:'repository']
|
96
92
|
end
|
97
93
|
|
94
|
+
if attributes.key?(:'artifact')
|
95
|
+
self.artifact = attributes[:'artifact']
|
96
|
+
end
|
97
|
+
|
98
98
|
if attributes.key?(:'file')
|
99
99
|
self.file = attributes[:'file']
|
100
100
|
end
|
@@ -202,9 +202,9 @@ module PulpAnsibleClient
|
|
202
202
|
def ==(o)
|
203
203
|
return true if self.equal?(o)
|
204
204
|
self.class == o.class &&
|
205
|
-
artifact == o.artifact &&
|
206
205
|
upload == o.upload &&
|
207
206
|
repository == o.repository &&
|
207
|
+
artifact == o.artifact &&
|
208
208
|
file == o.file &&
|
209
209
|
expected_name == o.expected_name &&
|
210
210
|
expected_namespace == o.expected_namespace &&
|
@@ -220,7 +220,7 @@ module PulpAnsibleClient
|
|
220
220
|
# Calculates hash code according to all attributes.
|
221
221
|
# @return [Integer] Hash code
|
222
222
|
def hash
|
223
|
-
[
|
223
|
+
[upload, repository, artifact, file, expected_name, expected_namespace, expected_version].hash
|
224
224
|
end
|
225
225
|
|
226
226
|
# Builds the object from hash
|