pulp_ansible_client 0.19.0 → 0.20.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 -32
- data/docs/AnsibleAnsibleRepositoryResponse.md +1 -1
- data/docs/AnsibleCollectionRemoteResponse.md +1 -1
- data/docs/AnsibleCollectionVersion.md +6 -6
- data/docs/AnsibleCollectionsApi.md +15 -9
- data/docs/AnsibleCopyApi.md +1 -1
- data/docs/AnsibleGitRemote.md +24 -24
- data/docs/AnsibleGitRemoteResponse.md +22 -22
- data/docs/ApiCollectionsApi.md +1 -1
- data/docs/ApiRolesApi.md +1 -1
- data/docs/CollectionImportApi.md +1 -1
- data/docs/CollectionVersionListResponse.md +1 -1
- data/docs/CollectionVersionResponse.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 +7 -7
- data/docs/ContentNamespacesApi.md +19 -1
- data/docs/ContentRolesApi.md +3 -1
- data/docs/DistributionsAnsibleApi.md +136 -10
- data/docs/GalaxyDetailApi.md +1 -1
- data/docs/PatchedansibleGitRemote.md +24 -24
- 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/UnpaginatedCollectionVersionResponse.md +1 -1
- 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_collection_versions_api.rb +9 -9
- 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 +163 -0
- 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_ansible_repository_response.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +25 -25
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +195 -195
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +130 -130
- data/lib/pulp_ansible_client/models/collection_version_list_response.rb +24 -0
- data/lib/pulp_ansible_client/models/collection_version_response.rb +24 -0
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +186 -186
- data/lib/pulp_ansible_client/models/{progress_report_response.rb → set_label.rb} +52 -59
- data/lib/pulp_ansible_client/models/set_label_response.rb +243 -0
- data/lib/pulp_ansible_client/models/unpaginated_collection_version_response.rb +24 -0
- data/lib/pulp_ansible_client/models/{task.rb → unset_label.rb} +31 -55
- 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 -3
- 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_collection_versions_api_spec.rb +3 -3
- 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 +35 -0
- 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_spec.rb +4 -4
- data/spec/models/ansible_git_remote_response_spec.rb +17 -17
- data/spec/models/ansible_git_remote_spec.rb +18 -18
- data/spec/models/patchedansible_git_remote_spec.rb +18 -18
- data/spec/models/set_label_response_spec.rb +47 -0
- data/spec/models/{task_spec.rb → set_label_spec.rb} +8 -8
- data/spec/models/unset_label_response_spec.rb +47 -0
- data/spec/models/unset_label_spec.rb +41 -0
- metadata +147 -143
- data/docs/ProgressReportResponse.md +0 -27
- data/docs/Task.md +0 -19
- data/docs/TaskResponse.md +0 -47
- data/lib/pulp_ansible_client/models/task_response.rb +0 -376
- data/spec/models/progress_report_response_spec.rb +0 -71
- data/spec/models/task_response_spec.rb +0 -131
@@ -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,17 +15,17 @@ require 'date'
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
# A serializer for CollectionVersion Content.
|
17
17
|
class AnsibleCollectionVersion
|
18
|
-
# An
|
19
|
-
attr_accessor :
|
20
|
-
|
21
|
-
# A URI of a repository the new content unit should be associated with.
|
22
|
-
attr_accessor :repository
|
18
|
+
# An uploaded file that may be turned into the artifact of the content unit.
|
19
|
+
attr_accessor :file
|
23
20
|
|
24
21
|
# Artifact file representing the physical content
|
25
22
|
attr_accessor :artifact
|
26
23
|
|
27
|
-
#
|
28
|
-
attr_accessor :
|
24
|
+
# A URI of a repository the new content unit should be associated with.
|
25
|
+
attr_accessor :repository
|
26
|
+
|
27
|
+
# An uncommitted upload that may be turned into the artifact of the content unit.
|
28
|
+
attr_accessor :upload
|
29
29
|
|
30
30
|
# The name of the collection.
|
31
31
|
attr_accessor :expected_name
|
@@ -39,10 +39,10 @@ module PulpAnsibleClient
|
|
39
39
|
# Attribute mapping from ruby-style variable name to JSON key.
|
40
40
|
def self.attribute_map
|
41
41
|
{
|
42
|
-
:'upload' => :'upload',
|
43
|
-
:'repository' => :'repository',
|
44
|
-
:'artifact' => :'artifact',
|
45
42
|
:'file' => :'file',
|
43
|
+
:'artifact' => :'artifact',
|
44
|
+
:'repository' => :'repository',
|
45
|
+
:'upload' => :'upload',
|
46
46
|
:'expected_name' => :'expected_name',
|
47
47
|
:'expected_namespace' => :'expected_namespace',
|
48
48
|
:'expected_version' => :'expected_version'
|
@@ -52,10 +52,10 @@ module PulpAnsibleClient
|
|
52
52
|
# Attribute type mapping.
|
53
53
|
def self.openapi_types
|
54
54
|
{
|
55
|
-
:'upload' => :'String',
|
56
|
-
:'repository' => :'String',
|
57
|
-
:'artifact' => :'String',
|
58
55
|
:'file' => :'File',
|
56
|
+
:'artifact' => :'String',
|
57
|
+
:'repository' => :'String',
|
58
|
+
:'upload' => :'String',
|
59
59
|
:'expected_name' => :'String',
|
60
60
|
:'expected_namespace' => :'String',
|
61
61
|
:'expected_version' => :'String'
|
@@ -83,20 +83,20 @@ module PulpAnsibleClient
|
|
83
83
|
h[k.to_sym] = v
|
84
84
|
}
|
85
85
|
|
86
|
-
if attributes.key?(:'
|
87
|
-
self.
|
88
|
-
end
|
89
|
-
|
90
|
-
if attributes.key?(:'repository')
|
91
|
-
self.repository = attributes[:'repository']
|
86
|
+
if attributes.key?(:'file')
|
87
|
+
self.file = attributes[:'file']
|
92
88
|
end
|
93
89
|
|
94
90
|
if attributes.key?(:'artifact')
|
95
91
|
self.artifact = attributes[:'artifact']
|
96
92
|
end
|
97
93
|
|
98
|
-
if attributes.key?(:'
|
99
|
-
self.
|
94
|
+
if attributes.key?(:'repository')
|
95
|
+
self.repository = attributes[:'repository']
|
96
|
+
end
|
97
|
+
|
98
|
+
if attributes.key?(:'upload')
|
99
|
+
self.upload = attributes[:'upload']
|
100
100
|
end
|
101
101
|
|
102
102
|
if attributes.key?(:'expected_name')
|
@@ -202,10 +202,10 @@ module PulpAnsibleClient
|
|
202
202
|
def ==(o)
|
203
203
|
return true if self.equal?(o)
|
204
204
|
self.class == o.class &&
|
205
|
-
upload == o.upload &&
|
206
|
-
repository == o.repository &&
|
207
|
-
artifact == o.artifact &&
|
208
205
|
file == o.file &&
|
206
|
+
artifact == o.artifact &&
|
207
|
+
repository == o.repository &&
|
208
|
+
upload == o.upload &&
|
209
209
|
expected_name == o.expected_name &&
|
210
210
|
expected_namespace == o.expected_namespace &&
|
211
211
|
expected_version == o.expected_version
|
@@ -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
|
+
[file, artifact, repository, upload, expected_name, expected_namespace, expected_version].hash
|
224
224
|
end
|
225
225
|
|
226
226
|
# Builds the object from hash
|