pulp_ansible_client 0.18.0 → 0.18.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +44 -29
- data/docs/AnsibleCollectionVersionResponse.md +4 -4
- data/docs/AnsibleCollectionVersionSignature.md +3 -3
- data/docs/AnsibleCollectionsApi.md +15 -9
- data/docs/AnsibleCopyApi.md +1 -1
- data/docs/AnsibleGitRemote.md +30 -30
- data/docs/AnsibleGitRemoteResponse.md +27 -27
- data/docs/AnsibleRole.md +2 -0
- data/docs/AnsibleRoleResponse.md +3 -3
- data/docs/ApiCollectionsApi.md +1 -1
- data/docs/ApiRolesApi.md +1 -1
- data/docs/CollectionImportApi.md +1 -1
- data/docs/ContentCollectionDeprecationsApi.md +3 -1
- data/docs/ContentCollectionMarksApi.md +4 -2
- data/docs/ContentCollectionSignaturesApi.md +5 -3
- data/docs/ContentCollectionVersionsApi.md +1 -1
- data/docs/ContentNamespacesApi.md +19 -1
- data/docs/ContentRolesApi.md +3 -1
- data/docs/DistributionsAnsibleApi.md +138 -12
- data/docs/GalaxyDetailApi.md +1 -1
- data/docs/PatchedansibleGitRemote.md +30 -30
- 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 +3 -1
- data/docs/PulpAnsibleApiV3CollectionsApi.md +3 -1
- data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleApiV3NamespacesApi.md +19 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +3 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +3 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md +23 -5
- data/docs/PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.md +1 -1
- 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 +3 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +3 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3NamespacesApi.md +19 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +3 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +3 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md +23 -5
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md +1 -1
- data/docs/PulpAnsibleTagsApi.md +1 -1
- data/docs/RemotesCollectionApi.md +135 -9
- data/docs/RemotesGitApi.md +135 -9
- data/docs/RemotesRoleApi.md +135 -9
- data/docs/RepositoriesAnsibleApi.md +136 -10
- data/docs/RepositoriesAnsibleVersionsApi.md +3 -1
- data/docs/SetLabel.md +19 -0
- data/docs/SetLabelResponse.md +19 -0
- data/docs/TaskResponse.md +2 -0
- data/docs/UnsetLabel.md +17 -0
- data/docs/UnsetLabelResponse.md +19 -0
- data/docs/VersionsApi.md +1 -1
- data/lib/pulp_ansible_client/api/ansible_collections_api.rb +11 -0
- data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +3 -0
- data/lib/pulp_ansible_client/api/content_collection_marks_api.rb +3 -0
- data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +3 -0
- data/lib/pulp_ansible_client/api/content_namespaces_api.rb +27 -0
- data/lib/pulp_ansible_client/api/content_roles_api.rb +3 -0
- data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +166 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_all_api.rb +3 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_api.rb +3 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_namespaces_api.rb +27 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api.rb +3 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api.rb +3 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api.rb +35 -8
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_all_api.rb +3 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_api.rb +3 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_namespaces_api.rb +27 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api.rb +3 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api.rb +3 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api.rb +35 -8
- data/lib/pulp_ansible_client/api/remotes_collection_api.rb +163 -0
- data/lib/pulp_ansible_client/api/remotes_git_api.rb +163 -0
- data/lib/pulp_ansible_client/api/remotes_role_api.rb +163 -0
- data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +163 -0
- data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +3 -0
- data/lib/pulp_ansible_client/configuration.rb +2 -2
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +14 -14
- data/lib/pulp_ansible_client/models/ansible_collection_version_signature.rb +11 -11
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +236 -236
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +141 -141
- data/lib/pulp_ansible_client/models/ansible_role.rb +11 -1
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +10 -10
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +227 -227
- data/lib/pulp_ansible_client/models/set_label.rb +252 -0
- data/lib/pulp_ansible_client/models/set_label_response.rb +243 -0
- data/lib/pulp_ansible_client/models/task_response.rb +11 -1
- data/lib/pulp_ansible_client/models/unset_label.rb +242 -0
- data/lib/pulp_ansible_client/models/unset_label_response.rb +242 -0
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/lib/pulp_ansible_client.rb +4 -0
- data/spec/api/ansible_collections_api_spec.rb +5 -0
- data/spec/api/content_collection_deprecations_api_spec.rb +1 -0
- data/spec/api/content_collection_marks_api_spec.rb +1 -0
- data/spec/api/content_collection_signatures_api_spec.rb +1 -0
- data/spec/api/content_namespaces_api_spec.rb +9 -0
- data/spec/api/content_roles_api_spec.rb +1 -0
- data/spec/api/distributions_ansible_api_spec.rb +36 -1
- data/spec/api/pulp_ansible_api_v3_collections_all_api_spec.rb +1 -0
- data/spec/api/pulp_ansible_api_v3_collections_api_spec.rb +1 -0
- data/spec/api/pulp_ansible_api_v3_namespaces_api_spec.rb +9 -0
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +1 -0
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api_spec.rb +1 -0
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api_spec.rb +13 -4
- data/spec/api/pulp_ansible_default_api_v3_collections_all_api_spec.rb +1 -0
- data/spec/api/pulp_ansible_default_api_v3_collections_api_spec.rb +1 -0
- data/spec/api/pulp_ansible_default_api_v3_namespaces_api_spec.rb +9 -0
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +1 -0
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api_spec.rb +1 -0
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api_spec.rb +13 -4
- data/spec/api/remotes_collection_api_spec.rb +35 -0
- data/spec/api/remotes_git_api_spec.rb +35 -0
- data/spec/api/remotes_role_api_spec.rb +35 -0
- data/spec/api/repositories_ansible_api_spec.rb +35 -0
- data/spec/api/repositories_ansible_versions_api_spec.rb +1 -0
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/ansible_collection_version_response_spec.rb +2 -2
- data/spec/models/ansible_collection_version_signature_spec.rb +2 -2
- 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 +3 -3
- data/spec/models/ansible_role_spec.rb +6 -0
- data/spec/models/patchedansible_git_remote_spec.rb +19 -19
- data/spec/models/set_label_response_spec.rb +47 -0
- data/spec/models/set_label_spec.rb +47 -0
- data/spec/models/task_response_spec.rb +6 -0
- data/spec/models/unset_label_response_spec.rb +47 -0
- data/spec/models/unset_label_spec.rb +41 -0
- metadata +143 -127
@@ -19,6 +19,7 @@ module PulpAnsibleClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
# Add a role
|
22
23
|
# Add a role for this object to users/groups.
|
23
24
|
# @param ansible_ansible_repository_href [String]
|
24
25
|
# @param nested_role [NestedRole]
|
@@ -29,6 +30,7 @@ module PulpAnsibleClient
|
|
29
30
|
data
|
30
31
|
end
|
31
32
|
|
33
|
+
# Add a role
|
32
34
|
# Add a role for this object to users/groups.
|
33
35
|
# @param ansible_ansible_repository_href [String]
|
34
36
|
# @param nested_role [NestedRole]
|
@@ -289,13 +291,18 @@ module PulpAnsibleClient
|
|
289
291
|
# @option opts [String] :name Filter results where name matches value
|
290
292
|
# @option opts [String] :name__contains Filter results where name contains value
|
291
293
|
# @option opts [String] :name__icontains Filter results where name contains value
|
294
|
+
# @option opts [String] :name__iexact Filter results where name matches value
|
292
295
|
# @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
|
293
299
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
294
300
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
295
301
|
# @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)
|
296
302
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
297
303
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
298
304
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
305
|
+
# @option opts [String] :q
|
299
306
|
# @option opts [String] :remote Foreign Key referenced by HREF
|
300
307
|
# @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
|
301
308
|
# @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
|
@@ -322,13 +329,18 @@ module PulpAnsibleClient
|
|
322
329
|
# @option opts [String] :name Filter results where name matches value
|
323
330
|
# @option opts [String] :name__contains Filter results where name contains value
|
324
331
|
# @option opts [String] :name__icontains Filter results where name contains value
|
332
|
+
# @option opts [String] :name__iexact Filter results where name matches value
|
325
333
|
# @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
|
326
337
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
327
338
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
328
339
|
# @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)
|
329
340
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
330
341
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
331
342
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
343
|
+
# @option opts [String] :q
|
332
344
|
# @option opts [String] :remote Foreign Key referenced by HREF
|
333
345
|
# @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
|
334
346
|
# @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
|
@@ -360,13 +372,18 @@ module PulpAnsibleClient
|
|
360
372
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
361
373
|
query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
|
362
374
|
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?
|
363
376
|
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?
|
364
380
|
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
365
381
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
366
382
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
367
383
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
368
384
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
369
385
|
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?
|
370
387
|
query_params[:'remote'] = opts[:'remote'] if !opts[:'remote'].nil?
|
371
388
|
query_params[:'retain_repo_versions'] = opts[:'retain_repo_versions'] if !opts[:'retain_repo_versions'].nil?
|
372
389
|
query_params[:'retain_repo_versions__gt'] = opts[:'retain_repo_versions__gt'] if !opts[:'retain_repo_versions__gt'].nil?
|
@@ -413,6 +430,7 @@ module PulpAnsibleClient
|
|
413
430
|
return data, status_code, headers
|
414
431
|
end
|
415
432
|
|
433
|
+
# List roles
|
416
434
|
# List roles assigned to this object.
|
417
435
|
# @param ansible_ansible_repository_href [String]
|
418
436
|
# @param [Hash] opts the optional parameters
|
@@ -424,6 +442,7 @@ module PulpAnsibleClient
|
|
424
442
|
data
|
425
443
|
end
|
426
444
|
|
445
|
+
# List roles
|
427
446
|
# List roles assigned to this object.
|
428
447
|
# @param ansible_ansible_repository_href [String]
|
429
448
|
# @param [Hash] opts the optional parameters
|
@@ -685,6 +704,7 @@ module PulpAnsibleClient
|
|
685
704
|
return data, status_code, headers
|
686
705
|
end
|
687
706
|
|
707
|
+
# List user permissions
|
688
708
|
# List permissions available to the current user on this object.
|
689
709
|
# @param ansible_ansible_repository_href [String]
|
690
710
|
# @param [Hash] opts the optional parameters
|
@@ -696,6 +716,7 @@ module PulpAnsibleClient
|
|
696
716
|
data
|
697
717
|
end
|
698
718
|
|
719
|
+
# List user permissions
|
699
720
|
# List permissions available to the current user on this object.
|
700
721
|
# @param ansible_ansible_repository_href [String]
|
701
722
|
# @param [Hash] opts the optional parameters
|
@@ -957,6 +978,7 @@ module PulpAnsibleClient
|
|
957
978
|
return data, status_code, headers
|
958
979
|
end
|
959
980
|
|
981
|
+
# Remove a role
|
960
982
|
# Remove a role for this object from users/groups.
|
961
983
|
# @param ansible_ansible_repository_href [String]
|
962
984
|
# @param nested_role [NestedRole]
|
@@ -967,6 +989,7 @@ module PulpAnsibleClient
|
|
967
989
|
data
|
968
990
|
end
|
969
991
|
|
992
|
+
# Remove a role
|
970
993
|
# Remove a role for this object from users/groups.
|
971
994
|
# @param ansible_ansible_repository_href [String]
|
972
995
|
# @param nested_role [NestedRole]
|
@@ -1025,6 +1048,76 @@ module PulpAnsibleClient
|
|
1025
1048
|
return data, status_code, headers
|
1026
1049
|
end
|
1027
1050
|
|
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
|
+
|
1028
1121
|
# Trigger an asynchronous task to sign Ansible content.
|
1029
1122
|
# @param ansible_ansible_repository_href [String]
|
1030
1123
|
# @param ansible_repository_signature [AnsibleRepositorySignature]
|
@@ -1229,6 +1322,76 @@ module PulpAnsibleClient
|
|
1229
1322
|
return data, status_code, headers
|
1230
1323
|
end
|
1231
1324
|
|
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
|
+
|
1232
1395
|
# Update an ansible repository
|
1233
1396
|
# Trigger an asynchronous update task
|
1234
1397
|
# @param ansible_ansible_repository_href [String]
|
@@ -103,6 +103,7 @@ 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
|
106
107
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
107
108
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
108
109
|
# @return [PaginatedRepositoryVersionResponseList]
|
@@ -133,6 +134,7 @@ module PulpAnsibleClient
|
|
133
134
|
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
134
135
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
135
136
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
137
|
+
# @option opts [String] :q
|
136
138
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
137
139
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
138
140
|
# @return [Array<(PaginatedRepositoryVersionResponseList, Integer, Hash)>] PaginatedRepositoryVersionResponseList data, response status code and response headers
|
@@ -171,6 +173,7 @@ module PulpAnsibleClient
|
|
171
173
|
query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
|
172
174
|
query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
|
173
175
|
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?
|
174
177
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
175
178
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
176
179
|
|
@@ -127,7 +127,7 @@ module PulpAnsibleClient
|
|
127
127
|
attr_accessor :force_ending_format
|
128
128
|
|
129
129
|
def initialize
|
130
|
-
@scheme = '
|
130
|
+
@scheme = 'http'
|
131
131
|
@host = 'pulp'
|
132
132
|
@base_path = ''
|
133
133
|
@api_key = {}
|
@@ -210,7 +210,7 @@ module PulpAnsibleClient
|
|
210
210
|
def server_settings
|
211
211
|
[
|
212
212
|
{
|
213
|
-
url: "
|
213
|
+
url: "http://pulp/",
|
214
214
|
description: "No description provided",
|
215
215
|
}
|
216
216
|
]
|
@@ -15,13 +15,13 @@ require 'date'
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
# A serializer for CollectionVersion Content.
|
17
17
|
class AnsibleCollectionVersionResponse
|
18
|
-
|
18
|
+
# Timestamp of creation.
|
19
|
+
attr_accessor :pulp_created
|
19
20
|
|
20
21
|
# Artifact file representing the physical content
|
21
22
|
attr_accessor :artifact
|
22
23
|
|
23
|
-
|
24
|
-
attr_accessor :pulp_created
|
24
|
+
attr_accessor :pulp_href
|
25
25
|
|
26
26
|
# The SHA-256 checksum if available.
|
27
27
|
attr_accessor :sha256
|
@@ -97,9 +97,9 @@ module PulpAnsibleClient
|
|
97
97
|
# Attribute mapping from ruby-style variable name to JSON key.
|
98
98
|
def self.attribute_map
|
99
99
|
{
|
100
|
-
:'pulp_href' => :'pulp_href',
|
101
|
-
:'artifact' => :'artifact',
|
102
100
|
:'pulp_created' => :'pulp_created',
|
101
|
+
:'artifact' => :'artifact',
|
102
|
+
:'pulp_href' => :'pulp_href',
|
103
103
|
:'sha256' => :'sha256',
|
104
104
|
:'md5' => :'md5',
|
105
105
|
:'sha1' => :'sha1',
|
@@ -130,9 +130,9 @@ module PulpAnsibleClient
|
|
130
130
|
# Attribute type mapping.
|
131
131
|
def self.openapi_types
|
132
132
|
{
|
133
|
-
:'pulp_href' => :'String',
|
134
|
-
:'artifact' => :'String',
|
135
133
|
:'pulp_created' => :'DateTime',
|
134
|
+
:'artifact' => :'String',
|
135
|
+
:'pulp_href' => :'String',
|
136
136
|
:'sha256' => :'String',
|
137
137
|
:'md5' => :'String',
|
138
138
|
:'sha1' => :'String',
|
@@ -182,16 +182,16 @@ module PulpAnsibleClient
|
|
182
182
|
h[k.to_sym] = v
|
183
183
|
}
|
184
184
|
|
185
|
-
if attributes.key?(:'
|
186
|
-
self.
|
185
|
+
if attributes.key?(:'pulp_created')
|
186
|
+
self.pulp_created = attributes[:'pulp_created']
|
187
187
|
end
|
188
188
|
|
189
189
|
if attributes.key?(:'artifact')
|
190
190
|
self.artifact = attributes[:'artifact']
|
191
191
|
end
|
192
192
|
|
193
|
-
if attributes.key?(:'
|
194
|
-
self.
|
193
|
+
if attributes.key?(:'pulp_href')
|
194
|
+
self.pulp_href = attributes[:'pulp_href']
|
195
195
|
end
|
196
196
|
|
197
197
|
if attributes.key?(:'sha256')
|
@@ -435,9 +435,9 @@ module PulpAnsibleClient
|
|
435
435
|
def ==(o)
|
436
436
|
return true if self.equal?(o)
|
437
437
|
self.class == o.class &&
|
438
|
-
pulp_href == o.pulp_href &&
|
439
|
-
artifact == o.artifact &&
|
440
438
|
pulp_created == o.pulp_created &&
|
439
|
+
artifact == o.artifact &&
|
440
|
+
pulp_href == o.pulp_href &&
|
441
441
|
sha256 == o.sha256 &&
|
442
442
|
md5 == o.md5 &&
|
443
443
|
sha1 == o.sha1 &&
|
@@ -473,7 +473,7 @@ module PulpAnsibleClient
|
|
473
473
|
# Calculates hash code according to all attributes.
|
474
474
|
# @return [Integer] Hash code
|
475
475
|
def hash
|
476
|
-
[
|
476
|
+
[pulp_created, 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
|
477
477
|
end
|
478
478
|
|
479
479
|
# Builds the object from hash
|
@@ -15,20 +15,20 @@ require 'date'
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
# A serializer for signature models.
|
17
17
|
class AnsibleCollectionVersionSignature
|
18
|
-
# An uploaded file that may be turned into the artifact of the content unit.
|
19
|
-
attr_accessor :file
|
20
|
-
|
21
18
|
# A URI of a repository the new content unit should be associated with.
|
22
19
|
attr_accessor :repository
|
23
20
|
|
21
|
+
# An uploaded file that may be turned into the artifact of the content unit.
|
22
|
+
attr_accessor :file
|
23
|
+
|
24
24
|
# The content this signature is pointing to.
|
25
25
|
attr_accessor :signed_collection
|
26
26
|
|
27
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
28
28
|
def self.attribute_map
|
29
29
|
{
|
30
|
-
:'file' => :'file',
|
31
30
|
:'repository' => :'repository',
|
31
|
+
:'file' => :'file',
|
32
32
|
:'signed_collection' => :'signed_collection'
|
33
33
|
}
|
34
34
|
end
|
@@ -36,8 +36,8 @@ module PulpAnsibleClient
|
|
36
36
|
# Attribute type mapping.
|
37
37
|
def self.openapi_types
|
38
38
|
{
|
39
|
-
:'file' => :'File',
|
40
39
|
:'repository' => :'String',
|
40
|
+
:'file' => :'File',
|
41
41
|
:'signed_collection' => :'String'
|
42
42
|
}
|
43
43
|
end
|
@@ -63,14 +63,14 @@ module PulpAnsibleClient
|
|
63
63
|
h[k.to_sym] = v
|
64
64
|
}
|
65
65
|
|
66
|
-
if attributes.key?(:'file')
|
67
|
-
self.file = attributes[:'file']
|
68
|
-
end
|
69
|
-
|
70
66
|
if attributes.key?(:'repository')
|
71
67
|
self.repository = attributes[:'repository']
|
72
68
|
end
|
73
69
|
|
70
|
+
if attributes.key?(:'file')
|
71
|
+
self.file = attributes[:'file']
|
72
|
+
end
|
73
|
+
|
74
74
|
if attributes.key?(:'signed_collection')
|
75
75
|
self.signed_collection = attributes[:'signed_collection']
|
76
76
|
end
|
@@ -104,8 +104,8 @@ module PulpAnsibleClient
|
|
104
104
|
def ==(o)
|
105
105
|
return true if self.equal?(o)
|
106
106
|
self.class == o.class &&
|
107
|
-
file == o.file &&
|
108
107
|
repository == o.repository &&
|
108
|
+
file == o.file &&
|
109
109
|
signed_collection == o.signed_collection
|
110
110
|
end
|
111
111
|
|
@@ -118,7 +118,7 @@ module PulpAnsibleClient
|
|
118
118
|
# Calculates hash code according to all attributes.
|
119
119
|
# @return [Integer] Hash code
|
120
120
|
def hash
|
121
|
-
[
|
121
|
+
[repository, file, signed_collection].hash
|
122
122
|
end
|
123
123
|
|
124
124
|
# Builds the object from hash
|