pulp_ansible_client 0.16.5 → 0.17.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 +89 -21
- data/docs/AnsibleAnsibleNamespaceMetadata.md +29 -0
- data/docs/AnsibleAnsibleNamespaceMetadataResponse.md +35 -0
- data/docs/AnsibleAnsibleRepository.md +4 -2
- data/docs/AnsibleAnsibleRepositoryResponse.md +6 -2
- data/docs/AnsibleCollectionRemoteResponse.md +3 -1
- data/docs/AnsibleCollectionRemoteResponseHiddenFields.md +2 -2
- data/docs/AnsibleCollectionVersion.md +5 -5
- data/docs/AnsibleCollectionVersionMark.md +19 -0
- data/docs/AnsibleCollectionVersionMarkResponse.md +23 -0
- data/docs/AnsibleCollectionsApi.md +229 -1
- data/docs/AnsibleCopyApi.md +1 -1
- data/docs/AnsibleGitRemote.md +28 -28
- data/docs/AnsibleGitRemoteResponse.md +24 -24
- data/docs/AnsibleRepositoryMark.md +19 -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/CollectionNamespaceResponse.md +3 -1
- data/docs/CollectionSummaryResponse.md +35 -0
- data/docs/CollectionVersionCopyMove.md +21 -0
- data/docs/CollectionVersionListResponse.md +3 -1
- data/docs/CollectionVersionResponse.md +2 -0
- data/docs/CollectionVersionSearchList.md +27 -0
- data/docs/CollectionVersionSearchListResponse.md +29 -0
- data/docs/ContentCollectionDeprecationsApi.md +1 -1
- data/docs/ContentCollectionMarksApi.md +198 -0
- data/docs/ContentCollectionSignaturesApi.md +1 -1
- data/docs/ContentCollectionVersionsApi.md +5 -5
- data/docs/ContentNamespacesApi.md +220 -0
- data/docs/ContentRolesApi.md +1 -1
- data/docs/DistributionsAnsibleApi.md +233 -1
- data/docs/GalaxyDetailApi.md +1 -1
- data/docs/MyPermissionsResponse.md +17 -0
- data/docs/NamespaceLink.md +19 -0
- data/docs/NamespaceLinkResponse.md +19 -0
- data/docs/NestedRole.md +21 -0
- data/docs/NestedRoleResponse.md +21 -0
- data/docs/ObjectRolesResponse.md +17 -0
- data/docs/PaginatedCollectionVersionSearchListResponseList.md +21 -0
- data/docs/PaginatedansibleAnsibleNamespaceMetadataResponseList.md +23 -0
- data/docs/PaginatedansibleCollectionVersionMarkResponseList.md +23 -0
- data/docs/PatchedansibleAnsibleNamespaceMetadata.md +29 -0
- data/docs/PatchedansibleAnsibleRepository.md +4 -2
- data/docs/PatchedansibleGitRemote.md +28 -28
- data/docs/ProgressReportResponse.md +27 -0
- 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 -1
- data/docs/PulpAnsibleApiV3CollectionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleApiV3NamespacesApi.md +158 -0
- data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +7 -7
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md +363 -0
- data/docs/PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.md +168 -0
- 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 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3NamespacesApi.md +154 -0
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +7 -7
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md +353 -0
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md +164 -0
- data/docs/PulpAnsibleTagsApi.md +1 -1
- data/docs/RemotesCollectionApi.md +237 -1
- data/docs/RemotesGitApi.md +229 -1
- data/docs/RemotesRoleApi.md +229 -1
- data/docs/RepositoriesAnsibleApi.md +465 -1
- data/docs/RepositoriesAnsibleVersionsApi.md +1 -1
- data/docs/Repository.md +25 -0
- data/docs/RepositoryAddRemoveContent.md +2 -2
- data/docs/RepositoryResponse.md +33 -0
- data/docs/Task.md +19 -0
- data/docs/TaskResponse.md +45 -0
- data/docs/UnpaginatedCollectionVersionResponse.md +2 -0
- data/docs/VersionsApi.md +11 -11
- data/lib/pulp_ansible_client/api/ansible_collections_api.rb +268 -0
- data/lib/pulp_ansible_client/api/content_collection_marks_api.rb +247 -0
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +6 -6
- data/lib/pulp_ansible_client/api/content_namespaces_api.rb +276 -0
- data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +274 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_namespaces_api.rb +209 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_client_configuration_api.rb +8 -8
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api.rb +531 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_search_collection_versions_api.rb +229 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_namespaces_api.rb +197 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_client_configuration_api.rb +7 -7
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api.rb +501 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api.rb +217 -0
- data/lib/pulp_ansible_client/api/remotes_collection_api.rb +281 -1
- data/lib/pulp_ansible_client/api/remotes_git_api.rb +268 -0
- data/lib/pulp_ansible_client/api/remotes_role_api.rb +268 -0
- data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +564 -0
- data/lib/pulp_ansible_client/api/versions_api.rb +12 -12
- data/lib/pulp_ansible_client/configuration.rb +3 -3
- data/lib/pulp_ansible_client/models/ansible_ansible_namespace_metadata.rb +359 -0
- data/lib/pulp_ansible_client/models/ansible_ansible_namespace_metadata_response.rb +402 -0
- data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +15 -6
- data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +24 -6
- data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +20 -20
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +33 -24
- 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 +21 -21
- data/lib/pulp_ansible_client/models/ansible_collection_version_mark.rb +258 -0
- data/lib/pulp_ansible_client/models/ansible_collection_version_mark_response.rb +268 -0
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +237 -237
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +150 -150
- data/lib/pulp_ansible_client/models/ansible_repository_mark.rb +260 -0
- 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/ansible_role_response.rb +10 -10
- data/lib/pulp_ansible_client/models/collection_namespace_response.rb +13 -4
- data/lib/pulp_ansible_client/models/collection_summary_response.rb +359 -0
- data/lib/pulp_ansible_client/models/collection_version_copy_move.rb +242 -0
- data/lib/pulp_ansible_client/models/collection_version_list_response.rb +16 -5
- data/lib/pulp_ansible_client/models/collection_version_response.rb +12 -1
- data/lib/pulp_ansible_client/models/collection_version_search_list.rb +279 -0
- data/lib/pulp_ansible_client/models/collection_version_search_list_response.rb +287 -0
- data/lib/pulp_ansible_client/models/my_permissions_response.rb +213 -0
- data/lib/pulp_ansible_client/models/namespace_link.rb +282 -0
- data/lib/pulp_ansible_client/models/namespace_link_response.rb +264 -0
- data/lib/pulp_ansible_client/models/nested_role.rb +253 -0
- data/lib/pulp_ansible_client/models/nested_role_response.rb +234 -0
- data/lib/pulp_ansible_client/models/object_roles_response.rb +213 -0
- data/lib/pulp_ansible_client/models/paginated_collection_version_search_list_response_list.rb +226 -0
- data/lib/pulp_ansible_client/models/paginatedansible_ansible_namespace_metadata_response_list.rb +237 -0
- data/lib/pulp_ansible_client/models/paginatedansible_collection_version_mark_response_list.rb +237 -0
- data/lib/pulp_ansible_client/models/patchedansible_ansible_namespace_metadata.rb +350 -0
- data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +15 -6
- data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +20 -20
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +226 -226
- data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +20 -20
- data/lib/pulp_ansible_client/models/progress_report_response.rb +259 -0
- data/lib/pulp_ansible_client/models/repository.rb +306 -0
- data/lib/pulp_ansible_client/models/repository_add_remove_content.rb +2 -2
- data/lib/pulp_ansible_client/models/repository_response.rb +309 -0
- data/lib/pulp_ansible_client/models/task.rb +266 -0
- data/lib/pulp_ansible_client/models/task_response.rb +366 -0
- data/lib/pulp_ansible_client/models/unpaginated_collection_version_response.rb +12 -1
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/lib/pulp_ansible_client.rb +32 -0
- data/spec/api/ansible_collections_api_spec.rb +50 -0
- data/spec/api/content_collection_marks_api_spec.rb +83 -0
- data/spec/api/content_collection_versions_api_spec.rb +2 -2
- data/spec/api/content_namespaces_api_spec.rb +93 -0
- data/spec/api/distributions_ansible_api_spec.rb +52 -0
- data/spec/api/pulp_ansible_api_v3_namespaces_api_spec.rb +77 -0
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_client_configuration_api_spec.rb +3 -3
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api_spec.rb +131 -0
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_search_collection_versions_api_spec.rb +83 -0
- data/spec/api/pulp_ansible_default_api_v3_namespaces_api_spec.rb +75 -0
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_client_configuration_api_spec.rb +3 -3
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api_spec.rb +126 -0
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api_spec.rb +81 -0
- data/spec/api/remotes_collection_api_spec.rb +54 -0
- data/spec/api/remotes_git_api_spec.rb +50 -0
- data/spec/api/remotes_role_api_spec.rb +50 -0
- data/spec/api/repositories_ansible_api_spec.rb +106 -0
- data/spec/api/versions_api_spec.rb +4 -4
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/ansible_ansible_namespace_metadata_response_spec.rb +95 -0
- data/spec/models/ansible_ansible_namespace_metadata_spec.rb +77 -0
- data/spec/models/ansible_ansible_repository_response_spec.rb +12 -0
- data/spec/models/ansible_ansible_repository_spec.rb +6 -0
- data/spec/models/ansible_collection_remote_response_spec.rb +6 -0
- data/spec/models/ansible_collection_version_mark_response_spec.rb +59 -0
- data/spec/models/ansible_collection_version_mark_spec.rb +47 -0
- data/spec/models/ansible_collection_version_spec.rb +4 -4
- data/spec/models/ansible_git_remote_response_spec.rb +19 -19
- data/spec/models/ansible_git_remote_spec.rb +20 -20
- data/spec/models/ansible_repository_mark_spec.rb +47 -0
- data/spec/models/ansible_role_response_spec.rb +2 -2
- data/spec/models/collection_namespace_response_spec.rb +6 -0
- data/spec/models/collection_summary_response_spec.rb +95 -0
- data/spec/models/collection_version_copy_move_spec.rb +53 -0
- data/spec/models/collection_version_list_response_spec.rb +6 -0
- data/spec/models/collection_version_response_spec.rb +6 -0
- data/spec/models/collection_version_search_list_response_spec.rb +77 -0
- data/spec/models/collection_version_search_list_spec.rb +71 -0
- data/spec/models/my_permissions_response_spec.rb +41 -0
- data/spec/models/namespace_link_response_spec.rb +47 -0
- data/spec/models/namespace_link_spec.rb +47 -0
- data/spec/models/nested_role_response_spec.rb +53 -0
- data/spec/models/nested_role_spec.rb +53 -0
- data/spec/models/object_roles_response_spec.rb +41 -0
- data/spec/models/paginated_collection_version_search_list_response_list_spec.rb +53 -0
- data/spec/models/paginatedansible_ansible_namespace_metadata_response_list_spec.rb +59 -0
- data/spec/models/paginatedansible_collection_version_mark_response_list_spec.rb +59 -0
- data/spec/models/patchedansible_ansible_namespace_metadata_spec.rb +77 -0
- data/spec/models/patchedansible_ansible_repository_spec.rb +6 -0
- data/spec/models/patchedansible_git_remote_spec.rb +20 -20
- data/spec/models/progress_report_response_spec.rb +71 -0
- data/spec/models/repository_response_spec.rb +89 -0
- data/spec/models/repository_spec.rb +65 -0
- data/spec/models/task_response_spec.rb +125 -0
- data/spec/models/task_spec.rb +47 -0
- data/spec/models/unpaginated_collection_version_response_spec.rb +6 -0
- metadata +242 -114
@@ -1,18 +1,76 @@
|
|
1
1
|
# PulpAnsibleClient::RemotesCollectionApi
|
2
2
|
|
3
|
-
All URIs are relative to *
|
3
|
+
All URIs are relative to *https://pulp*
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
+
[**add_role**](RemotesCollectionApi.md#add_role) | **POST** {ansible_collection_remote_href}add_role/ |
|
7
8
|
[**create**](RemotesCollectionApi.md#create) | **POST** /pulp/api/v3/remotes/ansible/collection/ | Create a collection remote
|
8
9
|
[**delete**](RemotesCollectionApi.md#delete) | **DELETE** {ansible_collection_remote_href} | Delete a collection remote
|
9
10
|
[**list**](RemotesCollectionApi.md#list) | **GET** /pulp/api/v3/remotes/ansible/collection/ | List collection remotes
|
11
|
+
[**list_roles**](RemotesCollectionApi.md#list_roles) | **GET** {ansible_collection_remote_href}list_roles/ |
|
12
|
+
[**my_permissions**](RemotesCollectionApi.md#my_permissions) | **GET** {ansible_collection_remote_href}my_permissions/ |
|
10
13
|
[**partial_update**](RemotesCollectionApi.md#partial_update) | **PATCH** {ansible_collection_remote_href} | Update a collection remote
|
11
14
|
[**read**](RemotesCollectionApi.md#read) | **GET** {ansible_collection_remote_href} | Inspect a collection remote
|
15
|
+
[**remove_role**](RemotesCollectionApi.md#remove_role) | **POST** {ansible_collection_remote_href}remove_role/ |
|
12
16
|
[**update**](RemotesCollectionApi.md#update) | **PUT** {ansible_collection_remote_href} | Update a collection remote
|
13
17
|
|
14
18
|
|
15
19
|
|
20
|
+
## add_role
|
21
|
+
|
22
|
+
> NestedRoleResponse add_role(ansible_collection_remote_href, nested_role)
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
Add a role for this object to users/groups.
|
27
|
+
|
28
|
+
### Example
|
29
|
+
|
30
|
+
```ruby
|
31
|
+
# load the gem
|
32
|
+
require 'pulp_ansible_client'
|
33
|
+
# setup authorization
|
34
|
+
PulpAnsibleClient.configure do |config|
|
35
|
+
# Configure HTTP basic authorization: basicAuth
|
36
|
+
config.username = 'YOUR USERNAME'
|
37
|
+
config.password = 'YOUR PASSWORD'
|
38
|
+
end
|
39
|
+
|
40
|
+
api_instance = PulpAnsibleClient::RemotesCollectionApi.new
|
41
|
+
ansible_collection_remote_href = 'ansible_collection_remote_href_example' # String |
|
42
|
+
nested_role = PulpAnsibleClient::NestedRole.new # NestedRole |
|
43
|
+
|
44
|
+
begin
|
45
|
+
result = api_instance.add_role(ansible_collection_remote_href, nested_role)
|
46
|
+
p result
|
47
|
+
rescue PulpAnsibleClient::ApiError => e
|
48
|
+
puts "Exception when calling RemotesCollectionApi->add_role: #{e}"
|
49
|
+
end
|
50
|
+
```
|
51
|
+
|
52
|
+
### Parameters
|
53
|
+
|
54
|
+
|
55
|
+
Name | Type | Description | Notes
|
56
|
+
------------- | ------------- | ------------- | -------------
|
57
|
+
**ansible_collection_remote_href** | **String**| |
|
58
|
+
**nested_role** | [**NestedRole**](NestedRole.md)| |
|
59
|
+
|
60
|
+
### Return type
|
61
|
+
|
62
|
+
[**NestedRoleResponse**](NestedRoleResponse.md)
|
63
|
+
|
64
|
+
### Authorization
|
65
|
+
|
66
|
+
[basicAuth](../README.md#basicAuth)
|
67
|
+
|
68
|
+
### HTTP request headers
|
69
|
+
|
70
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
71
|
+
- **Accept**: application/json
|
72
|
+
|
73
|
+
|
16
74
|
## create
|
17
75
|
|
18
76
|
> AnsibleCollectionRemoteResponse create(ansible_collection_remote)
|
@@ -156,6 +214,10 @@ opts = {
|
|
156
214
|
pulp_last_updated__lt: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_last_updated is less than value
|
157
215
|
pulp_last_updated__lte: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where pulp_last_updated is less than or equal to value
|
158
216
|
pulp_last_updated__range: [DateTime.parse('2013-10-20T19:20:30+01:00')], # Array<DateTime> | Filter results where pulp_last_updated is between two comma separated values
|
217
|
+
url: 'url_example', # String | Filter results where url matches value
|
218
|
+
url__contains: 'url__contains_example', # String | Filter results where url contains value
|
219
|
+
url__icontains: 'url__icontains_example', # String | Filter results where url contains value
|
220
|
+
url__in: ['url__in_example'], # Array<String> | Filter results where url is in a comma-separated list of values
|
159
221
|
fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
|
160
222
|
exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
|
161
223
|
}
|
@@ -189,6 +251,10 @@ Name | Type | Description | Notes
|
|
189
251
|
**pulp_last_updated__lt** | **DateTime**| Filter results where pulp_last_updated is less than value | [optional]
|
190
252
|
**pulp_last_updated__lte** | **DateTime**| Filter results where pulp_last_updated is less than or equal to value | [optional]
|
191
253
|
**pulp_last_updated__range** | [**Array<DateTime>**](DateTime.md)| Filter results where pulp_last_updated is between two comma separated values | [optional]
|
254
|
+
**url** | **String**| Filter results where url matches value | [optional]
|
255
|
+
**url__contains** | **String**| Filter results where url contains value | [optional]
|
256
|
+
**url__icontains** | **String**| Filter results where url contains value | [optional]
|
257
|
+
**url__in** | [**Array<String>**](String.md)| Filter results where url is in a comma-separated list of values | [optional]
|
192
258
|
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
193
259
|
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
194
260
|
|
@@ -206,6 +272,122 @@ Name | Type | Description | Notes
|
|
206
272
|
- **Accept**: application/json
|
207
273
|
|
208
274
|
|
275
|
+
## list_roles
|
276
|
+
|
277
|
+
> ObjectRolesResponse list_roles(ansible_collection_remote_href, opts)
|
278
|
+
|
279
|
+
|
280
|
+
|
281
|
+
List roles assigned to this object.
|
282
|
+
|
283
|
+
### Example
|
284
|
+
|
285
|
+
```ruby
|
286
|
+
# load the gem
|
287
|
+
require 'pulp_ansible_client'
|
288
|
+
# setup authorization
|
289
|
+
PulpAnsibleClient.configure do |config|
|
290
|
+
# Configure HTTP basic authorization: basicAuth
|
291
|
+
config.username = 'YOUR USERNAME'
|
292
|
+
config.password = 'YOUR PASSWORD'
|
293
|
+
end
|
294
|
+
|
295
|
+
api_instance = PulpAnsibleClient::RemotesCollectionApi.new
|
296
|
+
ansible_collection_remote_href = 'ansible_collection_remote_href_example' # String |
|
297
|
+
opts = {
|
298
|
+
fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
|
299
|
+
exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
|
300
|
+
}
|
301
|
+
|
302
|
+
begin
|
303
|
+
result = api_instance.list_roles(ansible_collection_remote_href, opts)
|
304
|
+
p result
|
305
|
+
rescue PulpAnsibleClient::ApiError => e
|
306
|
+
puts "Exception when calling RemotesCollectionApi->list_roles: #{e}"
|
307
|
+
end
|
308
|
+
```
|
309
|
+
|
310
|
+
### Parameters
|
311
|
+
|
312
|
+
|
313
|
+
Name | Type | Description | Notes
|
314
|
+
------------- | ------------- | ------------- | -------------
|
315
|
+
**ansible_collection_remote_href** | **String**| |
|
316
|
+
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
317
|
+
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
318
|
+
|
319
|
+
### Return type
|
320
|
+
|
321
|
+
[**ObjectRolesResponse**](ObjectRolesResponse.md)
|
322
|
+
|
323
|
+
### Authorization
|
324
|
+
|
325
|
+
[basicAuth](../README.md#basicAuth)
|
326
|
+
|
327
|
+
### HTTP request headers
|
328
|
+
|
329
|
+
- **Content-Type**: Not defined
|
330
|
+
- **Accept**: application/json
|
331
|
+
|
332
|
+
|
333
|
+
## my_permissions
|
334
|
+
|
335
|
+
> MyPermissionsResponse my_permissions(ansible_collection_remote_href, opts)
|
336
|
+
|
337
|
+
|
338
|
+
|
339
|
+
List permissions available to the current user on this object.
|
340
|
+
|
341
|
+
### Example
|
342
|
+
|
343
|
+
```ruby
|
344
|
+
# load the gem
|
345
|
+
require 'pulp_ansible_client'
|
346
|
+
# setup authorization
|
347
|
+
PulpAnsibleClient.configure do |config|
|
348
|
+
# Configure HTTP basic authorization: basicAuth
|
349
|
+
config.username = 'YOUR USERNAME'
|
350
|
+
config.password = 'YOUR PASSWORD'
|
351
|
+
end
|
352
|
+
|
353
|
+
api_instance = PulpAnsibleClient::RemotesCollectionApi.new
|
354
|
+
ansible_collection_remote_href = 'ansible_collection_remote_href_example' # String |
|
355
|
+
opts = {
|
356
|
+
fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
|
357
|
+
exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
|
358
|
+
}
|
359
|
+
|
360
|
+
begin
|
361
|
+
result = api_instance.my_permissions(ansible_collection_remote_href, opts)
|
362
|
+
p result
|
363
|
+
rescue PulpAnsibleClient::ApiError => e
|
364
|
+
puts "Exception when calling RemotesCollectionApi->my_permissions: #{e}"
|
365
|
+
end
|
366
|
+
```
|
367
|
+
|
368
|
+
### Parameters
|
369
|
+
|
370
|
+
|
371
|
+
Name | Type | Description | Notes
|
372
|
+
------------- | ------------- | ------------- | -------------
|
373
|
+
**ansible_collection_remote_href** | **String**| |
|
374
|
+
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
375
|
+
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
376
|
+
|
377
|
+
### Return type
|
378
|
+
|
379
|
+
[**MyPermissionsResponse**](MyPermissionsResponse.md)
|
380
|
+
|
381
|
+
### Authorization
|
382
|
+
|
383
|
+
[basicAuth](../README.md#basicAuth)
|
384
|
+
|
385
|
+
### HTTP request headers
|
386
|
+
|
387
|
+
- **Content-Type**: Not defined
|
388
|
+
- **Accept**: application/json
|
389
|
+
|
390
|
+
|
209
391
|
## partial_update
|
210
392
|
|
211
393
|
> AsyncOperationResponse partial_update(ansible_collection_remote_href, patchedansible_collection_remote)
|
@@ -320,6 +502,60 @@ Name | Type | Description | Notes
|
|
320
502
|
- **Accept**: application/json
|
321
503
|
|
322
504
|
|
505
|
+
## remove_role
|
506
|
+
|
507
|
+
> NestedRoleResponse remove_role(ansible_collection_remote_href, nested_role)
|
508
|
+
|
509
|
+
|
510
|
+
|
511
|
+
Remove a role for this object from users/groups.
|
512
|
+
|
513
|
+
### Example
|
514
|
+
|
515
|
+
```ruby
|
516
|
+
# load the gem
|
517
|
+
require 'pulp_ansible_client'
|
518
|
+
# setup authorization
|
519
|
+
PulpAnsibleClient.configure do |config|
|
520
|
+
# Configure HTTP basic authorization: basicAuth
|
521
|
+
config.username = 'YOUR USERNAME'
|
522
|
+
config.password = 'YOUR PASSWORD'
|
523
|
+
end
|
524
|
+
|
525
|
+
api_instance = PulpAnsibleClient::RemotesCollectionApi.new
|
526
|
+
ansible_collection_remote_href = 'ansible_collection_remote_href_example' # String |
|
527
|
+
nested_role = PulpAnsibleClient::NestedRole.new # NestedRole |
|
528
|
+
|
529
|
+
begin
|
530
|
+
result = api_instance.remove_role(ansible_collection_remote_href, nested_role)
|
531
|
+
p result
|
532
|
+
rescue PulpAnsibleClient::ApiError => e
|
533
|
+
puts "Exception when calling RemotesCollectionApi->remove_role: #{e}"
|
534
|
+
end
|
535
|
+
```
|
536
|
+
|
537
|
+
### Parameters
|
538
|
+
|
539
|
+
|
540
|
+
Name | Type | Description | Notes
|
541
|
+
------------- | ------------- | ------------- | -------------
|
542
|
+
**ansible_collection_remote_href** | **String**| |
|
543
|
+
**nested_role** | [**NestedRole**](NestedRole.md)| |
|
544
|
+
|
545
|
+
### Return type
|
546
|
+
|
547
|
+
[**NestedRoleResponse**](NestedRoleResponse.md)
|
548
|
+
|
549
|
+
### Authorization
|
550
|
+
|
551
|
+
[basicAuth](../README.md#basicAuth)
|
552
|
+
|
553
|
+
### HTTP request headers
|
554
|
+
|
555
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
556
|
+
- **Accept**: application/json
|
557
|
+
|
558
|
+
|
323
559
|
## update
|
324
560
|
|
325
561
|
> AsyncOperationResponse update(ansible_collection_remote_href, ansible_collection_remote)
|
data/docs/RemotesGitApi.md
CHANGED
@@ -1,18 +1,76 @@
|
|
1
1
|
# PulpAnsibleClient::RemotesGitApi
|
2
2
|
|
3
|
-
All URIs are relative to *
|
3
|
+
All URIs are relative to *https://pulp*
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
+
[**add_role**](RemotesGitApi.md#add_role) | **POST** {ansible_git_remote_href}add_role/ |
|
7
8
|
[**create**](RemotesGitApi.md#create) | **POST** /pulp/api/v3/remotes/ansible/git/ | Create a git remote
|
8
9
|
[**delete**](RemotesGitApi.md#delete) | **DELETE** {ansible_git_remote_href} | Delete a git remote
|
9
10
|
[**list**](RemotesGitApi.md#list) | **GET** /pulp/api/v3/remotes/ansible/git/ | List git remotes
|
11
|
+
[**list_roles**](RemotesGitApi.md#list_roles) | **GET** {ansible_git_remote_href}list_roles/ |
|
12
|
+
[**my_permissions**](RemotesGitApi.md#my_permissions) | **GET** {ansible_git_remote_href}my_permissions/ |
|
10
13
|
[**partial_update**](RemotesGitApi.md#partial_update) | **PATCH** {ansible_git_remote_href} | Update a git remote
|
11
14
|
[**read**](RemotesGitApi.md#read) | **GET** {ansible_git_remote_href} | Inspect a git remote
|
15
|
+
[**remove_role**](RemotesGitApi.md#remove_role) | **POST** {ansible_git_remote_href}remove_role/ |
|
12
16
|
[**update**](RemotesGitApi.md#update) | **PUT** {ansible_git_remote_href} | Update a git remote
|
13
17
|
|
14
18
|
|
15
19
|
|
20
|
+
## add_role
|
21
|
+
|
22
|
+
> NestedRoleResponse add_role(ansible_git_remote_href, nested_role)
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
Add a role for this object to users/groups.
|
27
|
+
|
28
|
+
### Example
|
29
|
+
|
30
|
+
```ruby
|
31
|
+
# load the gem
|
32
|
+
require 'pulp_ansible_client'
|
33
|
+
# setup authorization
|
34
|
+
PulpAnsibleClient.configure do |config|
|
35
|
+
# Configure HTTP basic authorization: basicAuth
|
36
|
+
config.username = 'YOUR USERNAME'
|
37
|
+
config.password = 'YOUR PASSWORD'
|
38
|
+
end
|
39
|
+
|
40
|
+
api_instance = PulpAnsibleClient::RemotesGitApi.new
|
41
|
+
ansible_git_remote_href = 'ansible_git_remote_href_example' # String |
|
42
|
+
nested_role = PulpAnsibleClient::NestedRole.new # NestedRole |
|
43
|
+
|
44
|
+
begin
|
45
|
+
result = api_instance.add_role(ansible_git_remote_href, nested_role)
|
46
|
+
p result
|
47
|
+
rescue PulpAnsibleClient::ApiError => e
|
48
|
+
puts "Exception when calling RemotesGitApi->add_role: #{e}"
|
49
|
+
end
|
50
|
+
```
|
51
|
+
|
52
|
+
### Parameters
|
53
|
+
|
54
|
+
|
55
|
+
Name | Type | Description | Notes
|
56
|
+
------------- | ------------- | ------------- | -------------
|
57
|
+
**ansible_git_remote_href** | **String**| |
|
58
|
+
**nested_role** | [**NestedRole**](NestedRole.md)| |
|
59
|
+
|
60
|
+
### Return type
|
61
|
+
|
62
|
+
[**NestedRoleResponse**](NestedRoleResponse.md)
|
63
|
+
|
64
|
+
### Authorization
|
65
|
+
|
66
|
+
[basicAuth](../README.md#basicAuth)
|
67
|
+
|
68
|
+
### HTTP request headers
|
69
|
+
|
70
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
71
|
+
- **Accept**: application/json
|
72
|
+
|
73
|
+
|
16
74
|
## create
|
17
75
|
|
18
76
|
> AnsibleGitRemoteResponse create(ansible_git_remote)
|
@@ -206,6 +264,122 @@ Name | Type | Description | Notes
|
|
206
264
|
- **Accept**: application/json
|
207
265
|
|
208
266
|
|
267
|
+
## list_roles
|
268
|
+
|
269
|
+
> ObjectRolesResponse list_roles(ansible_git_remote_href, opts)
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
List roles assigned to this object.
|
274
|
+
|
275
|
+
### Example
|
276
|
+
|
277
|
+
```ruby
|
278
|
+
# load the gem
|
279
|
+
require 'pulp_ansible_client'
|
280
|
+
# setup authorization
|
281
|
+
PulpAnsibleClient.configure do |config|
|
282
|
+
# Configure HTTP basic authorization: basicAuth
|
283
|
+
config.username = 'YOUR USERNAME'
|
284
|
+
config.password = 'YOUR PASSWORD'
|
285
|
+
end
|
286
|
+
|
287
|
+
api_instance = PulpAnsibleClient::RemotesGitApi.new
|
288
|
+
ansible_git_remote_href = 'ansible_git_remote_href_example' # String |
|
289
|
+
opts = {
|
290
|
+
fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
|
291
|
+
exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
|
292
|
+
}
|
293
|
+
|
294
|
+
begin
|
295
|
+
result = api_instance.list_roles(ansible_git_remote_href, opts)
|
296
|
+
p result
|
297
|
+
rescue PulpAnsibleClient::ApiError => e
|
298
|
+
puts "Exception when calling RemotesGitApi->list_roles: #{e}"
|
299
|
+
end
|
300
|
+
```
|
301
|
+
|
302
|
+
### Parameters
|
303
|
+
|
304
|
+
|
305
|
+
Name | Type | Description | Notes
|
306
|
+
------------- | ------------- | ------------- | -------------
|
307
|
+
**ansible_git_remote_href** | **String**| |
|
308
|
+
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
309
|
+
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
310
|
+
|
311
|
+
### Return type
|
312
|
+
|
313
|
+
[**ObjectRolesResponse**](ObjectRolesResponse.md)
|
314
|
+
|
315
|
+
### Authorization
|
316
|
+
|
317
|
+
[basicAuth](../README.md#basicAuth)
|
318
|
+
|
319
|
+
### HTTP request headers
|
320
|
+
|
321
|
+
- **Content-Type**: Not defined
|
322
|
+
- **Accept**: application/json
|
323
|
+
|
324
|
+
|
325
|
+
## my_permissions
|
326
|
+
|
327
|
+
> MyPermissionsResponse my_permissions(ansible_git_remote_href, opts)
|
328
|
+
|
329
|
+
|
330
|
+
|
331
|
+
List permissions available to the current user on this object.
|
332
|
+
|
333
|
+
### Example
|
334
|
+
|
335
|
+
```ruby
|
336
|
+
# load the gem
|
337
|
+
require 'pulp_ansible_client'
|
338
|
+
# setup authorization
|
339
|
+
PulpAnsibleClient.configure do |config|
|
340
|
+
# Configure HTTP basic authorization: basicAuth
|
341
|
+
config.username = 'YOUR USERNAME'
|
342
|
+
config.password = 'YOUR PASSWORD'
|
343
|
+
end
|
344
|
+
|
345
|
+
api_instance = PulpAnsibleClient::RemotesGitApi.new
|
346
|
+
ansible_git_remote_href = 'ansible_git_remote_href_example' # String |
|
347
|
+
opts = {
|
348
|
+
fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
|
349
|
+
exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
|
350
|
+
}
|
351
|
+
|
352
|
+
begin
|
353
|
+
result = api_instance.my_permissions(ansible_git_remote_href, opts)
|
354
|
+
p result
|
355
|
+
rescue PulpAnsibleClient::ApiError => e
|
356
|
+
puts "Exception when calling RemotesGitApi->my_permissions: #{e}"
|
357
|
+
end
|
358
|
+
```
|
359
|
+
|
360
|
+
### Parameters
|
361
|
+
|
362
|
+
|
363
|
+
Name | Type | Description | Notes
|
364
|
+
------------- | ------------- | ------------- | -------------
|
365
|
+
**ansible_git_remote_href** | **String**| |
|
366
|
+
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
367
|
+
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
368
|
+
|
369
|
+
### Return type
|
370
|
+
|
371
|
+
[**MyPermissionsResponse**](MyPermissionsResponse.md)
|
372
|
+
|
373
|
+
### Authorization
|
374
|
+
|
375
|
+
[basicAuth](../README.md#basicAuth)
|
376
|
+
|
377
|
+
### HTTP request headers
|
378
|
+
|
379
|
+
- **Content-Type**: Not defined
|
380
|
+
- **Accept**: application/json
|
381
|
+
|
382
|
+
|
209
383
|
## partial_update
|
210
384
|
|
211
385
|
> AsyncOperationResponse partial_update(ansible_git_remote_href, patchedansible_git_remote)
|
@@ -320,6 +494,60 @@ Name | Type | Description | Notes
|
|
320
494
|
- **Accept**: application/json
|
321
495
|
|
322
496
|
|
497
|
+
## remove_role
|
498
|
+
|
499
|
+
> NestedRoleResponse remove_role(ansible_git_remote_href, nested_role)
|
500
|
+
|
501
|
+
|
502
|
+
|
503
|
+
Remove a role for this object from users/groups.
|
504
|
+
|
505
|
+
### Example
|
506
|
+
|
507
|
+
```ruby
|
508
|
+
# load the gem
|
509
|
+
require 'pulp_ansible_client'
|
510
|
+
# setup authorization
|
511
|
+
PulpAnsibleClient.configure do |config|
|
512
|
+
# Configure HTTP basic authorization: basicAuth
|
513
|
+
config.username = 'YOUR USERNAME'
|
514
|
+
config.password = 'YOUR PASSWORD'
|
515
|
+
end
|
516
|
+
|
517
|
+
api_instance = PulpAnsibleClient::RemotesGitApi.new
|
518
|
+
ansible_git_remote_href = 'ansible_git_remote_href_example' # String |
|
519
|
+
nested_role = PulpAnsibleClient::NestedRole.new # NestedRole |
|
520
|
+
|
521
|
+
begin
|
522
|
+
result = api_instance.remove_role(ansible_git_remote_href, nested_role)
|
523
|
+
p result
|
524
|
+
rescue PulpAnsibleClient::ApiError => e
|
525
|
+
puts "Exception when calling RemotesGitApi->remove_role: #{e}"
|
526
|
+
end
|
527
|
+
```
|
528
|
+
|
529
|
+
### Parameters
|
530
|
+
|
531
|
+
|
532
|
+
Name | Type | Description | Notes
|
533
|
+
------------- | ------------- | ------------- | -------------
|
534
|
+
**ansible_git_remote_href** | **String**| |
|
535
|
+
**nested_role** | [**NestedRole**](NestedRole.md)| |
|
536
|
+
|
537
|
+
### Return type
|
538
|
+
|
539
|
+
[**NestedRoleResponse**](NestedRoleResponse.md)
|
540
|
+
|
541
|
+
### Authorization
|
542
|
+
|
543
|
+
[basicAuth](../README.md#basicAuth)
|
544
|
+
|
545
|
+
### HTTP request headers
|
546
|
+
|
547
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
548
|
+
- **Accept**: application/json
|
549
|
+
|
550
|
+
|
323
551
|
## update
|
324
552
|
|
325
553
|
> AsyncOperationResponse update(ansible_git_remote_href, ansible_git_remote)
|