pulp_ansible_client 0.2.0b15 → 0.2.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 +88 -61
- data/docs/AnsibleAnsibleDistribution.md +2 -8
- data/docs/AnsibleAnsibleDistributionResponse.md +31 -0
- data/docs/AnsibleAnsibleRepository.md +4 -10
- data/docs/AnsibleAnsibleRepositoryResponse.md +29 -0
- data/docs/AnsibleCollectionRemote.md +4 -10
- data/docs/AnsibleCollectionRemoteResponse.md +49 -0
- data/docs/{AnsibleCollection.md → AnsibleCollectionResponse.md} +2 -2
- data/docs/AnsibleCollectionVersion.md +5 -25
- data/docs/AnsibleCollectionVersionResponse.md +67 -0
- data/docs/AnsibleCollectionsApi.md +47 -47
- data/docs/AnsibleRole.md +1 -5
- data/docs/AnsibleRoleRemote.md +37 -0
- data/docs/{AnsibleAnsibleRemote.md → AnsibleRoleRemoteResponse.md} +5 -5
- data/docs/AnsibleRoleResponse.md +27 -0
- data/docs/{AnsibleTag.md → AnsibleTagResponse.md} +2 -2
- data/docs/CertificationEnum.md +16 -0
- data/docs/Collection.md +2 -12
- data/docs/CollectionImportApi.md +70 -0
- data/docs/{CollectionImportDetail.md → CollectionImportDetailResponse.md} +2 -2
- data/docs/CollectionMetadata.md +1 -19
- data/docs/CollectionMetadataResponse.md +35 -0
- data/docs/CollectionNamespaceResponse.md +17 -0
- data/docs/CollectionOneShot.md +25 -0
- data/docs/CollectionRef.md +1 -3
- data/docs/CollectionRefResponse.md +21 -0
- data/docs/CollectionResponse.md +31 -0
- data/docs/CollectionVersion.md +3 -19
- data/docs/CollectionVersionResponse.md +37 -0
- data/docs/ContentCollectionVersionsApi.md +42 -42
- data/docs/ContentRolesApi.md +32 -32
- data/docs/ContentSummary.md +3 -3
- data/docs/ContentSummaryResponse.md +21 -0
- data/docs/DistributionsAnsibleApi.md +108 -60
- data/docs/GalaxyCollection.md +1 -5
- data/docs/GalaxyCollectionListApi.md +65 -0
- data/docs/GalaxyCollectionResponse.md +23 -0
- data/docs/{GalaxyCollectionVersion.md → GalaxyCollectionVersionResponse.md} +7 -7
- data/docs/GalaxyDetailApi.md +61 -0
- data/docs/{GalaxyRole.md → GalaxyRoleResponse.md} +3 -3
- data/docs/{GalaxyRoleVersion.md → GalaxyRoleVersionResponse.md} +3 -3
- data/docs/InlineResponse200.md +3 -3
- data/docs/InlineResponse2001.md +3 -3
- data/docs/InlineResponse20010.md +3 -3
- data/docs/InlineResponse20011.md +3 -3
- data/docs/InlineResponse20012.md +3 -3
- data/docs/InlineResponse20013.md +3 -3
- data/docs/InlineResponse20014.md +23 -0
- data/docs/InlineResponse2002.md +3 -3
- data/docs/InlineResponse2003.md +3 -3
- data/docs/InlineResponse2004.md +3 -3
- data/docs/InlineResponse2005.md +3 -3
- data/docs/InlineResponse2006.md +3 -3
- data/docs/InlineResponse2007.md +3 -3
- data/docs/InlineResponse2008.md +3 -3
- data/docs/InlineResponse2009.md +3 -3
- data/docs/PatchedansibleAnsibleDistribution.md +25 -0
- data/docs/PatchedansibleAnsibleRepository.md +21 -0
- data/docs/PatchedansibleCollectionRemote.md +43 -0
- data/docs/PatchedansibleRoleRemote.md +37 -0
- data/docs/PolicyEnum.md +16 -0
- data/docs/PulpAnsibleApiApi.md +6 -12
- data/docs/PulpAnsibleGalaxyApiCollectionsApi.md +37 -108
- data/docs/PulpAnsibleGalaxyApiV2VersionsApi.md +17 -22
- data/docs/PulpAnsibleGalaxyApiV3CollectionsApi.md +1 -69
- data/docs/PulpAnsibleGalaxyApiV3CollectionsCertifiedApi.md +63 -0
- data/docs/PulpAnsibleGalaxyApiV3VersionsApi.md +172 -0
- data/docs/PulpAnsibleTagsApi.md +4 -4
- data/docs/RemotesCollectionApi.md +127 -67
- data/docs/RemotesRoleApi.md +428 -0
- data/docs/RepositoriesAnsibleApi.md +100 -76
- data/docs/RepositoriesAnsibleVersionsApi.md +96 -64
- data/docs/RepositoryAddRemoveContent.md +2 -2
- data/docs/RepositorySyncURL.md +1 -1
- data/docs/RepositoryVersion.md +1 -9
- data/docs/RepositoryVersionResponse.md +25 -0
- data/docs/{PulpAnsibleGalaxyApiV1VersionsApi.md → RoleListApi.md} +9 -17
- data/docs/{Tag.md → TagResponse.md} +2 -2
- data/docs/{PulpAnsibleGalaxyApiRolesApi.md → V1RolesApi.md} +9 -15
- data/docs/V2CollectionsApi.md +112 -0
- data/lib/pulp_ansible_client/api/ansible_collections_api.rb +74 -90
- data/lib/pulp_ansible_client/api/collection_import_api.rb +93 -0
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +67 -63
- data/lib/pulp_ansible_client/api/content_roles_api.rb +48 -48
- data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +153 -90
- data/lib/pulp_ansible_client/api/galaxy_collection_list_api.rb +94 -0
- data/lib/pulp_ansible_client/api/galaxy_detail_api.rb +88 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_api_api.rb +9 -9
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_collections_api.rb +77 -122
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v2_versions_api.rb +38 -28
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_collections_api.rb +3 -90
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_collections_certified_api.rb +108 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_versions_api.rb +264 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_tags_api.rb +6 -6
- data/lib/pulp_ansible_client/api/remotes_collection_api.rb +184 -103
- data/lib/pulp_ansible_client/api/remotes_role_api.rb +532 -0
- data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +151 -124
- data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +141 -96
- data/lib/pulp_ansible_client/api/{pulp_ansible_galaxy_api_v1_versions_api.rb → role_list_api.rb} +15 -21
- data/lib/pulp_ansible_client/api/{pulp_ansible_galaxy_api_roles_api.rb → v1_roles_api.rb} +15 -15
- data/lib/pulp_ansible_client/api/v2_collections_api.rb +159 -0
- data/lib/pulp_ansible_client/api_client.rb +2 -2
- data/lib/pulp_ansible_client/api_error.rb +2 -2
- data/lib/pulp_ansible_client/configuration.rb +3 -3
- data/lib/pulp_ansible_client/models/ansible_ansible_distribution.rb +8 -74
- data/lib/pulp_ansible_client/models/ansible_ansible_distribution_response.rb +290 -0
- data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +18 -78
- data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +271 -0
- data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +7 -232
- data/lib/pulp_ansible_client/models/{ansible_ansible_remote.rb → ansible_collection_remote_response.rb} +66 -166
- data/lib/pulp_ansible_client/models/{ansible_collection.rb → ansible_collection_response.rb} +6 -43
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +55 -250
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +721 -0
- data/lib/pulp_ansible_client/models/ansible_role.rb +4 -79
- data/lib/pulp_ansible_client/models/ansible_role_remote.rb +339 -0
- data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +368 -0
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +274 -0
- data/lib/pulp_ansible_client/models/{ansible_tag.rb → ansible_tag_response.rb} +6 -20
- data/lib/pulp_ansible_client/models/async_operation_response.rb +3 -2
- data/lib/pulp_ansible_client/models/certification_enum.rb +37 -0
- data/lib/pulp_ansible_client/models/collection.rb +7 -81
- data/lib/pulp_ansible_client/models/{collection_import_detail.rb → collection_import_detail_response.rb} +6 -24
- data/lib/pulp_ansible_client/models/collection_metadata.rb +4 -163
- data/lib/pulp_ansible_client/models/collection_metadata_response.rb +367 -0
- data/lib/pulp_ansible_client/models/collection_namespace.rb +3 -21
- data/lib/pulp_ansible_client/models/{tag.rb → collection_namespace_response.rb} +9 -18
- data/lib/pulp_ansible_client/models/collection_one_shot.rb +253 -0
- data/lib/pulp_ansible_client/models/collection_ref.rb +7 -53
- data/lib/pulp_ansible_client/models/collection_ref_response.rb +235 -0
- data/lib/pulp_ansible_client/models/collection_response.rb +285 -0
- data/lib/pulp_ansible_client/models/collection_version.rb +8 -143
- data/lib/pulp_ansible_client/models/collection_version_response.rb +307 -0
- data/lib/pulp_ansible_client/models/content_summary.rb +9 -15
- data/lib/pulp_ansible_client/models/content_summary_response.rb +240 -0
- data/lib/pulp_ansible_client/models/galaxy_collection.rb +7 -62
- data/lib/pulp_ansible_client/models/galaxy_collection_response.rb +244 -0
- data/lib/pulp_ansible_client/models/{galaxy_collection_version.rb → galaxy_collection_version_response.rb} +11 -29
- data/lib/pulp_ansible_client/models/{galaxy_role.rb → galaxy_role_response.rb} +7 -44
- data/lib/pulp_ansible_client/models/{galaxy_role_version.rb → galaxy_role_version_response.rb} +7 -25
- data/lib/pulp_ansible_client/models/inline_response200.rb +3 -13
- data/lib/pulp_ansible_client/models/inline_response2001.rb +3 -13
- data/lib/pulp_ansible_client/models/inline_response20010.rb +3 -13
- data/lib/pulp_ansible_client/models/inline_response20011.rb +3 -13
- data/lib/pulp_ansible_client/models/inline_response20012.rb +3 -13
- data/lib/pulp_ansible_client/models/inline_response20013.rb +3 -13
- data/lib/pulp_ansible_client/models/inline_response20014.rb +237 -0
- data/lib/pulp_ansible_client/models/inline_response2002.rb +3 -13
- data/lib/pulp_ansible_client/models/inline_response2003.rb +3 -13
- data/lib/pulp_ansible_client/models/inline_response2004.rb +3 -13
- data/lib/pulp_ansible_client/models/inline_response2005.rb +3 -13
- data/lib/pulp_ansible_client/models/inline_response2006.rb +3 -13
- data/lib/pulp_ansible_client/models/inline_response2007.rb +3 -13
- data/lib/pulp_ansible_client/models/inline_response2008.rb +3 -13
- data/lib/pulp_ansible_client/models/inline_response2009.rb +3 -13
- data/lib/pulp_ansible_client/models/patchedansible_ansible_distribution.rb +251 -0
- data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +229 -0
- data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +392 -0
- data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +329 -0
- data/lib/pulp_ansible_client/models/policy_enum.rb +36 -0
- data/lib/pulp_ansible_client/models/repository_add_remove_content.rb +5 -4
- data/lib/pulp_ansible_client/models/repository_sync_url.rb +3 -8
- data/lib/pulp_ansible_client/models/repository_version.rb +7 -43
- data/lib/pulp_ansible_client/models/repository_version_response.rb +246 -0
- data/lib/pulp_ansible_client/models/tag_response.rb +207 -0
- data/lib/pulp_ansible_client/version.rb +3 -3
- data/lib/pulp_ansible_client.rb +41 -13
- data/pulp_ansible_client.gemspec +4 -4
- data/spec/api/ansible_collections_api_spec.rb +21 -21
- data/spec/api/collection_import_api_spec.rb +50 -0
- data/spec/api/content_collection_versions_api_spec.rb +18 -18
- data/spec/api/content_roles_api_spec.rb +13 -13
- data/spec/api/distributions_ansible_api_spec.rb +39 -18
- data/spec/api/galaxy_collection_list_api_spec.rb +50 -0
- data/spec/api/galaxy_detail_api_spec.rb +48 -0
- data/spec/api/pulp_ansible_api_api_spec.rb +4 -4
- data/spec/api/pulp_ansible_galaxy_api_collections_api_spec.rb +19 -29
- data/spec/api/pulp_ansible_galaxy_api_v2_versions_api_spec.rb +10 -9
- data/spec/api/pulp_ansible_galaxy_api_v3_collections_api_spec.rb +2 -17
- data/spec/api/pulp_ansible_galaxy_api_v3_collections_certified_api_spec.rb +50 -0
- data/spec/api/pulp_ansible_galaxy_api_v3_versions_api_spec.rb +90 -0
- data/spec/api/pulp_ansible_tags_api_spec.rb +3 -3
- data/spec/api/remotes_collection_api_spec.rb +49 -22
- data/spec/api/remotes_role_api_spec.rb +150 -0
- data/spec/api/repositories_ansible_api_spec.rb +31 -22
- data/spec/api/repositories_ansible_versions_api_spec.rb +40 -25
- data/spec/api/{pulp_ansible_galaxy_api_v1_versions_api_spec.rb → role_list_api_spec.rb} +9 -10
- data/spec/api/{pulp_ansible_galaxy_api_roles_api_spec.rb → v1_roles_api_spec.rb} +9 -9
- data/spec/api/v2_collections_api_spec.rb +61 -0
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +2 -2
- data/spec/models/ansible_ansible_distribution_response_spec.rb +83 -0
- data/spec/models/ansible_ansible_distribution_spec.rb +2 -20
- data/spec/models/ansible_ansible_repository_response_spec.rb +77 -0
- data/spec/models/ansible_ansible_repository_spec.rb +5 -23
- data/spec/models/ansible_collection_remote_response_spec.rb +137 -0
- data/spec/models/ansible_collection_remote_spec.rb +2 -24
- data/spec/models/{ansible_collection_spec.rb → ansible_collection_response_spec.rb} +8 -8
- data/spec/models/ansible_collection_version_response_spec.rb +191 -0
- data/spec/models/ansible_collection_version_spec.rb +2 -62
- data/spec/models/{ansible_ansible_remote_spec.rb → ansible_role_remote_response_spec.rb} +8 -12
- data/spec/models/ansible_role_remote_spec.rb +101 -0
- data/spec/models/ansible_role_response_spec.rb +71 -0
- data/spec/models/ansible_role_spec.rb +2 -14
- data/spec/models/{ansible_tag_spec.rb → ansible_tag_response_spec.rb} +8 -8
- data/spec/models/async_operation_response_spec.rb +2 -2
- data/spec/models/certification_enum_spec.rb +35 -0
- data/spec/models/{collection_import_detail_spec.rb → collection_import_detail_response_spec.rb} +8 -8
- data/spec/models/collection_metadata_response_spec.rb +95 -0
- data/spec/models/collection_metadata_spec.rb +2 -56
- data/spec/models/collection_namespace_response_spec.rb +41 -0
- data/spec/models/collection_namespace_spec.rb +2 -2
- data/spec/models/collection_one_shot_spec.rb +65 -0
- data/spec/models/collection_ref_response_spec.rb +53 -0
- data/spec/models/collection_ref_spec.rb +2 -8
- data/spec/models/collection_response_spec.rb +83 -0
- data/spec/models/collection_spec.rb +2 -32
- data/spec/models/collection_version_response_spec.rb +101 -0
- data/spec/models/collection_version_spec.rb +2 -54
- data/spec/models/content_summary_response_spec.rb +53 -0
- data/spec/models/content_summary_spec.rb +2 -2
- data/spec/models/galaxy_collection_response_spec.rb +59 -0
- data/spec/models/galaxy_collection_spec.rb +2 -14
- data/spec/models/{galaxy_collection_version_spec.rb → galaxy_collection_version_response_spec.rb} +8 -8
- data/spec/models/{galaxy_role_spec.rb → galaxy_role_response_spec.rb} +8 -8
- data/spec/models/{galaxy_role_version_spec.rb → galaxy_role_version_response_spec.rb} +8 -8
- data/spec/models/inline_response20010_spec.rb +2 -2
- data/spec/models/inline_response20011_spec.rb +2 -2
- data/spec/models/inline_response20012_spec.rb +2 -2
- data/spec/models/inline_response20013_spec.rb +2 -2
- data/spec/models/inline_response20014_spec.rb +59 -0
- data/spec/models/inline_response2001_spec.rb +2 -2
- data/spec/models/inline_response2002_spec.rb +2 -2
- data/spec/models/inline_response2003_spec.rb +2 -2
- data/spec/models/inline_response2004_spec.rb +2 -2
- data/spec/models/inline_response2005_spec.rb +2 -2
- data/spec/models/inline_response2006_spec.rb +2 -2
- data/spec/models/inline_response2007_spec.rb +2 -2
- data/spec/models/inline_response2008_spec.rb +2 -2
- data/spec/models/inline_response2009_spec.rb +2 -2
- data/spec/models/inline_response200_spec.rb +2 -2
- data/spec/models/patchedansible_ansible_distribution_spec.rb +65 -0
- data/spec/models/patchedansible_ansible_repository_spec.rb +53 -0
- data/spec/models/patchedansible_collection_remote_spec.rb +119 -0
- data/spec/models/patchedansible_role_remote_spec.rb +101 -0
- data/spec/models/policy_enum_spec.rb +35 -0
- data/spec/models/repository_add_remove_content_spec.rb +2 -2
- data/spec/models/repository_sync_url_spec.rb +2 -2
- data/spec/models/repository_version_response_spec.rb +65 -0
- data/spec/models/repository_version_spec.rb +2 -26
- data/spec/models/{tag_spec.rb → tag_response_spec.rb} +8 -8
- data/spec/spec_helper.rb +2 -2
- metadata +192 -80
- data/docs/RemotesAnsibleApi.md +0 -368
- data/lib/pulp_ansible_client/api/remotes_ansible_api.rb +0 -451
- data/spec/api/remotes_ansible_api_spec.rb +0 -123
@@ -5,23 +5,23 @@ All URIs are relative to *http://pulp*
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
7
|
[**create**](RepositoriesAnsibleApi.md#create) | **POST** /pulp/api/v3/repositories/ansible/ansible/ | Create an ansible repository
|
8
|
-
[**delete**](RepositoriesAnsibleApi.md#delete) | **DELETE** {
|
8
|
+
[**delete**](RepositoriesAnsibleApi.md#delete) | **DELETE** {ansible_ansible_repository_href} | Delete an ansible repository
|
9
9
|
[**list**](RepositoriesAnsibleApi.md#list) | **GET** /pulp/api/v3/repositories/ansible/ansible/ | List ansible repositorys
|
10
|
-
[**modify**](RepositoriesAnsibleApi.md#modify) | **POST** {
|
11
|
-
[**partial_update**](RepositoriesAnsibleApi.md#partial_update) | **PATCH** {
|
12
|
-
[**read**](RepositoriesAnsibleApi.md#read) | **GET** {
|
13
|
-
[**sync**](RepositoriesAnsibleApi.md#sync) | **POST** {
|
14
|
-
[**update**](RepositoriesAnsibleApi.md#update) | **PUT** {
|
10
|
+
[**modify**](RepositoriesAnsibleApi.md#modify) | **POST** {ansible_ansible_repository_href}modify/ | Modify Repository Content
|
11
|
+
[**partial_update**](RepositoriesAnsibleApi.md#partial_update) | **PATCH** {ansible_ansible_repository_href} | Update an ansible repository
|
12
|
+
[**read**](RepositoriesAnsibleApi.md#read) | **GET** {ansible_ansible_repository_href} | Inspect an ansible repository
|
13
|
+
[**sync**](RepositoriesAnsibleApi.md#sync) | **POST** {ansible_ansible_repository_href}sync/ |
|
14
|
+
[**update**](RepositoriesAnsibleApi.md#update) | **PUT** {ansible_ansible_repository_href} | Update an ansible repository
|
15
15
|
|
16
16
|
|
17
17
|
|
18
18
|
## create
|
19
19
|
|
20
|
-
>
|
20
|
+
> AnsibleAnsibleRepositoryResponse create(ansible_ansible_repository)
|
21
21
|
|
22
22
|
Create an ansible repository
|
23
23
|
|
24
|
-
ViewSet for Ansible
|
24
|
+
ViewSet for Ansible Repositories.
|
25
25
|
|
26
26
|
### Example
|
27
27
|
|
@@ -30,17 +30,17 @@ ViewSet for Ansible Remotes.
|
|
30
30
|
require 'pulp_ansible_client'
|
31
31
|
# setup authorization
|
32
32
|
PulpAnsibleClient.configure do |config|
|
33
|
-
# Configure HTTP basic authorization:
|
33
|
+
# Configure HTTP basic authorization: basicAuth
|
34
34
|
config.username = 'YOUR USERNAME'
|
35
35
|
config.password = 'YOUR PASSWORD'
|
36
36
|
end
|
37
37
|
|
38
38
|
api_instance = PulpAnsibleClient::RepositoriesAnsibleApi.new
|
39
|
-
|
39
|
+
ansible_ansible_repository = PulpAnsibleClient::AnsibleAnsibleRepository.new # AnsibleAnsibleRepository |
|
40
40
|
|
41
41
|
begin
|
42
42
|
#Create an ansible repository
|
43
|
-
result = api_instance.create(
|
43
|
+
result = api_instance.create(ansible_ansible_repository)
|
44
44
|
p result
|
45
45
|
rescue PulpAnsibleClient::ApiError => e
|
46
46
|
puts "Exception when calling RepositoriesAnsibleApi->create: #{e}"
|
@@ -52,25 +52,25 @@ end
|
|
52
52
|
|
53
53
|
Name | Type | Description | Notes
|
54
54
|
------------- | ------------- | ------------- | -------------
|
55
|
-
**
|
55
|
+
**ansible_ansible_repository** | [**AnsibleAnsibleRepository**](AnsibleAnsibleRepository.md)| |
|
56
56
|
|
57
57
|
### Return type
|
58
58
|
|
59
|
-
[**
|
59
|
+
[**AnsibleAnsibleRepositoryResponse**](AnsibleAnsibleRepositoryResponse.md)
|
60
60
|
|
61
61
|
### Authorization
|
62
62
|
|
63
|
-
[
|
63
|
+
[basicAuth](../README.md#basicAuth)
|
64
64
|
|
65
65
|
### HTTP request headers
|
66
66
|
|
67
|
-
- **Content-Type**: application/json
|
67
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
68
68
|
- **Accept**: application/json
|
69
69
|
|
70
70
|
|
71
71
|
## delete
|
72
72
|
|
73
|
-
> AsyncOperationResponse delete(
|
73
|
+
> AsyncOperationResponse delete(ansible_ansible_repository_href, opts)
|
74
74
|
|
75
75
|
Delete an ansible repository
|
76
76
|
|
@@ -83,17 +83,22 @@ Trigger an asynchronous delete task
|
|
83
83
|
require 'pulp_ansible_client'
|
84
84
|
# setup authorization
|
85
85
|
PulpAnsibleClient.configure do |config|
|
86
|
-
# Configure HTTP basic authorization:
|
86
|
+
# Configure HTTP basic authorization: basicAuth
|
87
87
|
config.username = 'YOUR USERNAME'
|
88
88
|
config.password = 'YOUR PASSWORD'
|
89
89
|
end
|
90
90
|
|
91
91
|
api_instance = PulpAnsibleClient::RepositoriesAnsibleApi.new
|
92
|
-
|
92
|
+
ansible_ansible_repository_href = 'ansible_ansible_repository_href_example' # String |
|
93
|
+
opts = {
|
94
|
+
name: 'name_example', # String | name
|
95
|
+
name__in: 'name__in_example', # String | name__in
|
96
|
+
ordering: 'ordering_example' # String | Which field to use when ordering the results.
|
97
|
+
}
|
93
98
|
|
94
99
|
begin
|
95
100
|
#Delete an ansible repository
|
96
|
-
result = api_instance.delete(
|
101
|
+
result = api_instance.delete(ansible_ansible_repository_href, opts)
|
97
102
|
p result
|
98
103
|
rescue PulpAnsibleClient::ApiError => e
|
99
104
|
puts "Exception when calling RepositoriesAnsibleApi->delete: #{e}"
|
@@ -105,7 +110,10 @@ end
|
|
105
110
|
|
106
111
|
Name | Type | Description | Notes
|
107
112
|
------------- | ------------- | ------------- | -------------
|
108
|
-
**
|
113
|
+
**ansible_ansible_repository_href** | **String**| |
|
114
|
+
**name** | **String**| name | [optional]
|
115
|
+
**name__in** | **String**| name__in | [optional]
|
116
|
+
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
109
117
|
|
110
118
|
### Return type
|
111
119
|
|
@@ -113,7 +121,7 @@ Name | Type | Description | Notes
|
|
113
121
|
|
114
122
|
### Authorization
|
115
123
|
|
116
|
-
[
|
124
|
+
[basicAuth](../README.md#basicAuth)
|
117
125
|
|
118
126
|
### HTTP request headers
|
119
127
|
|
@@ -127,7 +135,7 @@ Name | Type | Description | Notes
|
|
127
135
|
|
128
136
|
List ansible repositorys
|
129
137
|
|
130
|
-
ViewSet for Ansible
|
138
|
+
ViewSet for Ansible Repositories.
|
131
139
|
|
132
140
|
### Example
|
133
141
|
|
@@ -136,18 +144,18 @@ ViewSet for Ansible Remotes.
|
|
136
144
|
require 'pulp_ansible_client'
|
137
145
|
# setup authorization
|
138
146
|
PulpAnsibleClient.configure do |config|
|
139
|
-
# Configure HTTP basic authorization:
|
147
|
+
# Configure HTTP basic authorization: basicAuth
|
140
148
|
config.username = 'YOUR USERNAME'
|
141
149
|
config.password = 'YOUR PASSWORD'
|
142
150
|
end
|
143
151
|
|
144
152
|
api_instance = PulpAnsibleClient::RepositoriesAnsibleApi.new
|
145
153
|
opts = {
|
146
|
-
ordering: 'ordering_example', # String | Which field to use when ordering the results.
|
147
|
-
name: 'name_example', # String |
|
148
|
-
name__in: 'name__in_example', # String | Filter results where name is in a comma-separated list of values
|
149
154
|
limit: 56, # Integer | Number of results to return per page.
|
155
|
+
name: 'name_example', # String | name
|
156
|
+
name__in: 'name__in_example', # String | name__in
|
150
157
|
offset: 56, # Integer | The initial index from which to return the results.
|
158
|
+
ordering: 'ordering_example', # String | Which field to use when ordering the results.
|
151
159
|
fields: 'fields_example', # String | A list of fields to include in the response.
|
152
160
|
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
153
161
|
}
|
@@ -166,11 +174,11 @@ end
|
|
166
174
|
|
167
175
|
Name | Type | Description | Notes
|
168
176
|
------------- | ------------- | ------------- | -------------
|
169
|
-
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
170
|
-
**name** | **String**| | [optional]
|
171
|
-
**name__in** | **String**| Filter results where name is in a comma-separated list of values | [optional]
|
172
177
|
**limit** | **Integer**| Number of results to return per page. | [optional]
|
178
|
+
**name** | **String**| name | [optional]
|
179
|
+
**name__in** | **String**| name__in | [optional]
|
173
180
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
181
|
+
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
174
182
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
175
183
|
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
176
184
|
|
@@ -180,7 +188,7 @@ Name | Type | Description | Notes
|
|
180
188
|
|
181
189
|
### Authorization
|
182
190
|
|
183
|
-
[
|
191
|
+
[basicAuth](../README.md#basicAuth)
|
184
192
|
|
185
193
|
### HTTP request headers
|
186
194
|
|
@@ -190,7 +198,7 @@ Name | Type | Description | Notes
|
|
190
198
|
|
191
199
|
## modify
|
192
200
|
|
193
|
-
> AsyncOperationResponse modify(
|
201
|
+
> AsyncOperationResponse modify(ansible_ansible_repository_href, repository_add_remove_content)
|
194
202
|
|
195
203
|
Modify Repository Content
|
196
204
|
|
@@ -203,18 +211,18 @@ Trigger an asynchronous task to create a new repository version.
|
|
203
211
|
require 'pulp_ansible_client'
|
204
212
|
# setup authorization
|
205
213
|
PulpAnsibleClient.configure do |config|
|
206
|
-
# Configure HTTP basic authorization:
|
214
|
+
# Configure HTTP basic authorization: basicAuth
|
207
215
|
config.username = 'YOUR USERNAME'
|
208
216
|
config.password = 'YOUR PASSWORD'
|
209
217
|
end
|
210
218
|
|
211
219
|
api_instance = PulpAnsibleClient::RepositoriesAnsibleApi.new
|
212
|
-
|
213
|
-
|
220
|
+
ansible_ansible_repository_href = 'ansible_ansible_repository_href_example' # String |
|
221
|
+
repository_add_remove_content = PulpAnsibleClient::RepositoryAddRemoveContent.new # RepositoryAddRemoveContent |
|
214
222
|
|
215
223
|
begin
|
216
224
|
#Modify Repository Content
|
217
|
-
result = api_instance.modify(
|
225
|
+
result = api_instance.modify(ansible_ansible_repository_href, repository_add_remove_content)
|
218
226
|
p result
|
219
227
|
rescue PulpAnsibleClient::ApiError => e
|
220
228
|
puts "Exception when calling RepositoriesAnsibleApi->modify: #{e}"
|
@@ -226,8 +234,8 @@ end
|
|
226
234
|
|
227
235
|
Name | Type | Description | Notes
|
228
236
|
------------- | ------------- | ------------- | -------------
|
229
|
-
**
|
230
|
-
**
|
237
|
+
**ansible_ansible_repository_href** | **String**| |
|
238
|
+
**repository_add_remove_content** | [**RepositoryAddRemoveContent**](RepositoryAddRemoveContent.md)| |
|
231
239
|
|
232
240
|
### Return type
|
233
241
|
|
@@ -235,19 +243,19 @@ Name | Type | Description | Notes
|
|
235
243
|
|
236
244
|
### Authorization
|
237
245
|
|
238
|
-
[
|
246
|
+
[basicAuth](../README.md#basicAuth)
|
239
247
|
|
240
248
|
### HTTP request headers
|
241
249
|
|
242
|
-
- **Content-Type**: application/json
|
250
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
243
251
|
- **Accept**: application/json
|
244
252
|
|
245
253
|
|
246
254
|
## partial_update
|
247
255
|
|
248
|
-
> AsyncOperationResponse partial_update(
|
256
|
+
> AsyncOperationResponse partial_update(ansible_ansible_repository_href, patchedansible_ansible_repository, opts)
|
249
257
|
|
250
|
-
|
258
|
+
Update an ansible repository
|
251
259
|
|
252
260
|
Trigger an asynchronous partial update task
|
253
261
|
|
@@ -258,18 +266,23 @@ Trigger an asynchronous partial update task
|
|
258
266
|
require 'pulp_ansible_client'
|
259
267
|
# setup authorization
|
260
268
|
PulpAnsibleClient.configure do |config|
|
261
|
-
# Configure HTTP basic authorization:
|
269
|
+
# Configure HTTP basic authorization: basicAuth
|
262
270
|
config.username = 'YOUR USERNAME'
|
263
271
|
config.password = 'YOUR PASSWORD'
|
264
272
|
end
|
265
273
|
|
266
274
|
api_instance = PulpAnsibleClient::RepositoriesAnsibleApi.new
|
267
|
-
|
268
|
-
|
275
|
+
ansible_ansible_repository_href = 'ansible_ansible_repository_href_example' # String |
|
276
|
+
patchedansible_ansible_repository = PulpAnsibleClient::PatchedansibleAnsibleRepository.new # PatchedansibleAnsibleRepository |
|
277
|
+
opts = {
|
278
|
+
name: 'name_example', # String | name
|
279
|
+
name__in: 'name__in_example', # String | name__in
|
280
|
+
ordering: 'ordering_example' # String | Which field to use when ordering the results.
|
281
|
+
}
|
269
282
|
|
270
283
|
begin
|
271
|
-
#
|
272
|
-
result = api_instance.partial_update(
|
284
|
+
#Update an ansible repository
|
285
|
+
result = api_instance.partial_update(ansible_ansible_repository_href, patchedansible_ansible_repository, opts)
|
273
286
|
p result
|
274
287
|
rescue PulpAnsibleClient::ApiError => e
|
275
288
|
puts "Exception when calling RepositoriesAnsibleApi->partial_update: #{e}"
|
@@ -281,8 +294,11 @@ end
|
|
281
294
|
|
282
295
|
Name | Type | Description | Notes
|
283
296
|
------------- | ------------- | ------------- | -------------
|
284
|
-
**
|
285
|
-
**
|
297
|
+
**ansible_ansible_repository_href** | **String**| |
|
298
|
+
**patchedansible_ansible_repository** | [**PatchedansibleAnsibleRepository**](PatchedansibleAnsibleRepository.md)| |
|
299
|
+
**name** | **String**| name | [optional]
|
300
|
+
**name__in** | **String**| name__in | [optional]
|
301
|
+
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
286
302
|
|
287
303
|
### Return type
|
288
304
|
|
@@ -290,21 +306,21 @@ Name | Type | Description | Notes
|
|
290
306
|
|
291
307
|
### Authorization
|
292
308
|
|
293
|
-
[
|
309
|
+
[basicAuth](../README.md#basicAuth)
|
294
310
|
|
295
311
|
### HTTP request headers
|
296
312
|
|
297
|
-
- **Content-Type**: application/json
|
313
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
298
314
|
- **Accept**: application/json
|
299
315
|
|
300
316
|
|
301
317
|
## read
|
302
318
|
|
303
|
-
>
|
319
|
+
> AnsibleAnsibleRepositoryResponse read(ansible_ansible_repository_href, opts)
|
304
320
|
|
305
321
|
Inspect an ansible repository
|
306
322
|
|
307
|
-
ViewSet for Ansible
|
323
|
+
ViewSet for Ansible Repositories.
|
308
324
|
|
309
325
|
### Example
|
310
326
|
|
@@ -313,13 +329,13 @@ ViewSet for Ansible Remotes.
|
|
313
329
|
require 'pulp_ansible_client'
|
314
330
|
# setup authorization
|
315
331
|
PulpAnsibleClient.configure do |config|
|
316
|
-
# Configure HTTP basic authorization:
|
332
|
+
# Configure HTTP basic authorization: basicAuth
|
317
333
|
config.username = 'YOUR USERNAME'
|
318
334
|
config.password = 'YOUR PASSWORD'
|
319
335
|
end
|
320
336
|
|
321
337
|
api_instance = PulpAnsibleClient::RepositoriesAnsibleApi.new
|
322
|
-
|
338
|
+
ansible_ansible_repository_href = 'ansible_ansible_repository_href_example' # String |
|
323
339
|
opts = {
|
324
340
|
fields: 'fields_example', # String | A list of fields to include in the response.
|
325
341
|
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
@@ -327,7 +343,7 @@ opts = {
|
|
327
343
|
|
328
344
|
begin
|
329
345
|
#Inspect an ansible repository
|
330
|
-
result = api_instance.read(
|
346
|
+
result = api_instance.read(ansible_ansible_repository_href, opts)
|
331
347
|
p result
|
332
348
|
rescue PulpAnsibleClient::ApiError => e
|
333
349
|
puts "Exception when calling RepositoriesAnsibleApi->read: #{e}"
|
@@ -339,17 +355,17 @@ end
|
|
339
355
|
|
340
356
|
Name | Type | Description | Notes
|
341
357
|
------------- | ------------- | ------------- | -------------
|
342
|
-
**
|
358
|
+
**ansible_ansible_repository_href** | **String**| |
|
343
359
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
344
360
|
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
345
361
|
|
346
362
|
### Return type
|
347
363
|
|
348
|
-
[**
|
364
|
+
[**AnsibleAnsibleRepositoryResponse**](AnsibleAnsibleRepositoryResponse.md)
|
349
365
|
|
350
366
|
### Authorization
|
351
367
|
|
352
|
-
[
|
368
|
+
[basicAuth](../README.md#basicAuth)
|
353
369
|
|
354
370
|
### HTTP request headers
|
355
371
|
|
@@ -359,7 +375,7 @@ Name | Type | Description | Notes
|
|
359
375
|
|
360
376
|
## sync
|
361
377
|
|
362
|
-
> AsyncOperationResponse sync(
|
378
|
+
> AsyncOperationResponse sync(ansible_ansible_repository_href, repository_sync_url)
|
363
379
|
|
364
380
|
|
365
381
|
|
@@ -372,17 +388,17 @@ Trigger an asynchronous task to sync Ansible content.
|
|
372
388
|
require 'pulp_ansible_client'
|
373
389
|
# setup authorization
|
374
390
|
PulpAnsibleClient.configure do |config|
|
375
|
-
# Configure HTTP basic authorization:
|
391
|
+
# Configure HTTP basic authorization: basicAuth
|
376
392
|
config.username = 'YOUR USERNAME'
|
377
393
|
config.password = 'YOUR PASSWORD'
|
378
394
|
end
|
379
395
|
|
380
396
|
api_instance = PulpAnsibleClient::RepositoriesAnsibleApi.new
|
381
|
-
|
382
|
-
|
397
|
+
ansible_ansible_repository_href = 'ansible_ansible_repository_href_example' # String |
|
398
|
+
repository_sync_url = PulpAnsibleClient::RepositorySyncURL.new # RepositorySyncURL |
|
383
399
|
|
384
400
|
begin
|
385
|
-
result = api_instance.sync(
|
401
|
+
result = api_instance.sync(ansible_ansible_repository_href, repository_sync_url)
|
386
402
|
p result
|
387
403
|
rescue PulpAnsibleClient::ApiError => e
|
388
404
|
puts "Exception when calling RepositoriesAnsibleApi->sync: #{e}"
|
@@ -394,8 +410,8 @@ end
|
|
394
410
|
|
395
411
|
Name | Type | Description | Notes
|
396
412
|
------------- | ------------- | ------------- | -------------
|
397
|
-
**
|
398
|
-
**
|
413
|
+
**ansible_ansible_repository_href** | **String**| |
|
414
|
+
**repository_sync_url** | [**RepositorySyncURL**](RepositorySyncURL.md)| |
|
399
415
|
|
400
416
|
### Return type
|
401
417
|
|
@@ -403,17 +419,17 @@ Name | Type | Description | Notes
|
|
403
419
|
|
404
420
|
### Authorization
|
405
421
|
|
406
|
-
[
|
422
|
+
[basicAuth](../README.md#basicAuth)
|
407
423
|
|
408
424
|
### HTTP request headers
|
409
425
|
|
410
|
-
- **Content-Type**: application/json
|
426
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
411
427
|
- **Accept**: application/json
|
412
428
|
|
413
429
|
|
414
430
|
## update
|
415
431
|
|
416
|
-
> AsyncOperationResponse update(
|
432
|
+
> AsyncOperationResponse update(ansible_ansible_repository_href, ansible_ansible_repository, opts)
|
417
433
|
|
418
434
|
Update an ansible repository
|
419
435
|
|
@@ -426,18 +442,23 @@ Trigger an asynchronous update task
|
|
426
442
|
require 'pulp_ansible_client'
|
427
443
|
# setup authorization
|
428
444
|
PulpAnsibleClient.configure do |config|
|
429
|
-
# Configure HTTP basic authorization:
|
445
|
+
# Configure HTTP basic authorization: basicAuth
|
430
446
|
config.username = 'YOUR USERNAME'
|
431
447
|
config.password = 'YOUR PASSWORD'
|
432
448
|
end
|
433
449
|
|
434
450
|
api_instance = PulpAnsibleClient::RepositoriesAnsibleApi.new
|
435
|
-
|
436
|
-
|
451
|
+
ansible_ansible_repository_href = 'ansible_ansible_repository_href_example' # String |
|
452
|
+
ansible_ansible_repository = PulpAnsibleClient::AnsibleAnsibleRepository.new # AnsibleAnsibleRepository |
|
453
|
+
opts = {
|
454
|
+
name: 'name_example', # String | name
|
455
|
+
name__in: 'name__in_example', # String | name__in
|
456
|
+
ordering: 'ordering_example' # String | Which field to use when ordering the results.
|
457
|
+
}
|
437
458
|
|
438
459
|
begin
|
439
460
|
#Update an ansible repository
|
440
|
-
result = api_instance.update(
|
461
|
+
result = api_instance.update(ansible_ansible_repository_href, ansible_ansible_repository, opts)
|
441
462
|
p result
|
442
463
|
rescue PulpAnsibleClient::ApiError => e
|
443
464
|
puts "Exception when calling RepositoriesAnsibleApi->update: #{e}"
|
@@ -449,8 +470,11 @@ end
|
|
449
470
|
|
450
471
|
Name | Type | Description | Notes
|
451
472
|
------------- | ------------- | ------------- | -------------
|
452
|
-
**
|
453
|
-
**
|
473
|
+
**ansible_ansible_repository_href** | **String**| |
|
474
|
+
**ansible_ansible_repository** | [**AnsibleAnsibleRepository**](AnsibleAnsibleRepository.md)| |
|
475
|
+
**name** | **String**| name | [optional]
|
476
|
+
**name__in** | **String**| name__in | [optional]
|
477
|
+
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
454
478
|
|
455
479
|
### Return type
|
456
480
|
|
@@ -458,10 +482,10 @@ Name | Type | Description | Notes
|
|
458
482
|
|
459
483
|
### Authorization
|
460
484
|
|
461
|
-
[
|
485
|
+
[basicAuth](../README.md#basicAuth)
|
462
486
|
|
463
487
|
### HTTP request headers
|
464
488
|
|
465
|
-
- **Content-Type**: application/json
|
489
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
466
490
|
- **Accept**: application/json
|
467
491
|
|