pulp_ansible_client 0.2.0b1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/Gemfile.lock +79 -0
- data/README.md +150 -0
- data/Rakefile +10 -0
- data/docs/AnsibleCollectionsApi.md +66 -0
- data/docs/AnsibleDistribution.md +31 -0
- data/docs/AnsibleRemote.md +45 -0
- data/docs/AsyncOperationResponse.md +17 -0
- data/docs/Collection.md +41 -0
- data/docs/CollectionRemote.md +47 -0
- data/docs/ContentCollectionsApi.md +134 -0
- data/docs/ContentRolesApi.md +186 -0
- data/docs/DistributionsAnsibleApi.md +352 -0
- data/docs/GalaxyCollection.md +25 -0
- data/docs/GalaxyRole.md +21 -0
- data/docs/GalaxyRoleVersion.md +19 -0
- data/docs/InlineResponse200.md +23 -0
- data/docs/InlineResponse2001.md +23 -0
- data/docs/InlineResponse2002.md +23 -0
- data/docs/InlineResponse2003.md +23 -0
- data/docs/InlineResponse2004.md +23 -0
- data/docs/InlineResponse2005.md +23 -0
- data/docs/InlineResponse2006.md +23 -0
- data/docs/InlineResponse2007.md +23 -0
- data/docs/PulpAnsibleApiApi.md +60 -0
- data/docs/PulpAnsibleGalaxyApiCollectionsApi.md +113 -0
- data/docs/PulpAnsibleGalaxyApiRolesApi.md +67 -0
- data/docs/PulpAnsibleGalaxyApiV1VersionsApi.md +69 -0
- data/docs/PulpAnsibleGalaxyApiV2VersionsApi.md +67 -0
- data/docs/RemotesAnsibleApi.md +411 -0
- data/docs/RemotesCollectionApi.md +411 -0
- data/docs/RepositorySyncURL.md +19 -0
- data/docs/Role.md +29 -0
- data/git_push.sh +55 -0
- data/lib/pulp_ansible_client/api/ansible_collections_api.rb +94 -0
- data/lib/pulp_ansible_client/api/content_collections_api.rb +169 -0
- data/lib/pulp_ansible_client/api/content_roles_api.rb +228 -0
- data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +430 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_api_api.rb +80 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_collections_api.rb +140 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_roles_api.rb +88 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v1_versions_api.rb +94 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v2_versions_api.rb +88 -0
- data/lib/pulp_ansible_client/api/remotes_ansible_api.rb +504 -0
- data/lib/pulp_ansible_client/api/remotes_collection_api.rb +504 -0
- data/lib/pulp_ansible_client/api_client.rb +387 -0
- data/lib/pulp_ansible_client/api_error.rb +57 -0
- data/lib/pulp_ansible_client/configuration.rb +251 -0
- data/lib/pulp_ansible_client/models/ansible_distribution.rb +347 -0
- data/lib/pulp_ansible_client/models/ansible_remote.rb +539 -0
- data/lib/pulp_ansible_client/models/async_operation_response.rb +202 -0
- data/lib/pulp_ansible_client/models/collection.rb +494 -0
- data/lib/pulp_ansible_client/models/collection_remote.rb +572 -0
- data/lib/pulp_ansible_client/models/galaxy_collection.rb +304 -0
- data/lib/pulp_ansible_client/models/galaxy_role.rb +262 -0
- data/lib/pulp_ansible_client/models/galaxy_role_version.rb +229 -0
- data/lib/pulp_ansible_client/models/inline_response200.rb +235 -0
- data/lib/pulp_ansible_client/models/inline_response2001.rb +235 -0
- data/lib/pulp_ansible_client/models/inline_response2002.rb +235 -0
- data/lib/pulp_ansible_client/models/inline_response2003.rb +235 -0
- data/lib/pulp_ansible_client/models/inline_response2004.rb +235 -0
- data/lib/pulp_ansible_client/models/inline_response2005.rb +235 -0
- data/lib/pulp_ansible_client/models/inline_response2006.rb +235 -0
- data/lib/pulp_ansible_client/models/inline_response2007.rb +235 -0
- data/lib/pulp_ansible_client/models/repository_sync_url.rb +214 -0
- data/lib/pulp_ansible_client/models/role.rb +344 -0
- data/lib/pulp_ansible_client/version.rb +15 -0
- data/lib/pulp_ansible_client.rb +68 -0
- data/pulp_ansible_client.gemspec +45 -0
- data/spec/api/ansible_collections_api_spec.rb +48 -0
- data/spec/api/content_collections_api_spec.rb +67 -0
- data/spec/api/content_roles_api_spec.rb +78 -0
- data/spec/api/distributions_ansible_api_spec.rb +116 -0
- data/spec/api/pulp_ansible_api_api_spec.rb +46 -0
- data/spec/api/pulp_ansible_galaxy_api_collections_api_spec.rb +57 -0
- data/spec/api/pulp_ansible_galaxy_api_roles_api_spec.rb +48 -0
- data/spec/api/pulp_ansible_galaxy_api_v1_versions_api_spec.rb +49 -0
- data/spec/api/pulp_ansible_galaxy_api_v2_versions_api_spec.rb +48 -0
- data/spec/api/remotes_ansible_api_spec.rb +130 -0
- data/spec/api/remotes_collection_api_spec.rb +130 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/ansible_distribution_spec.rb +83 -0
- data/spec/models/ansible_remote_spec.rb +129 -0
- data/spec/models/async_operation_response_spec.rb +41 -0
- data/spec/models/collection_remote_spec.rb +135 -0
- data/spec/models/collection_spec.rb +113 -0
- data/spec/models/galaxy_collection_spec.rb +65 -0
- data/spec/models/galaxy_role_spec.rb +53 -0
- data/spec/models/galaxy_role_version_spec.rb +47 -0
- data/spec/models/inline_response2001_spec.rb +59 -0
- data/spec/models/inline_response2002_spec.rb +59 -0
- data/spec/models/inline_response2003_spec.rb +59 -0
- data/spec/models/inline_response2004_spec.rb +59 -0
- data/spec/models/inline_response2005_spec.rb +59 -0
- data/spec/models/inline_response2006_spec.rb +59 -0
- data/spec/models/inline_response2007_spec.rb +59 -0
- data/spec/models/inline_response200_spec.rb +59 -0
- data/spec/models/repository_sync_url_spec.rb +47 -0
- data/spec/models/role_spec.rb +77 -0
- data/spec/spec_helper.rb +111 -0
- metadata +357 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# PulpAnsibleClient::InlineResponse2004
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**_next** | **String** | | [optional]
|
|
8
|
+
**previous** | **String** | | [optional]
|
|
9
|
+
**count** | **Integer** | |
|
|
10
|
+
**results** | [**Array<CollectionRemote>**](CollectionRemote.md) | |
|
|
11
|
+
|
|
12
|
+
## Code Sample
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'PulpAnsibleClient'
|
|
16
|
+
|
|
17
|
+
instance = PulpAnsibleClient::InlineResponse2004.new(_next: null,
|
|
18
|
+
previous: null,
|
|
19
|
+
count: null,
|
|
20
|
+
results: null)
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# PulpAnsibleClient::InlineResponse2005
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**_next** | **String** | | [optional]
|
|
8
|
+
**previous** | **String** | | [optional]
|
|
9
|
+
**count** | **Integer** | |
|
|
10
|
+
**results** | [**Array<GalaxyRole>**](GalaxyRole.md) | |
|
|
11
|
+
|
|
12
|
+
## Code Sample
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'PulpAnsibleClient'
|
|
16
|
+
|
|
17
|
+
instance = PulpAnsibleClient::InlineResponse2005.new(_next: null,
|
|
18
|
+
previous: null,
|
|
19
|
+
count: null,
|
|
20
|
+
results: null)
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# PulpAnsibleClient::InlineResponse2006
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**_next** | **String** | | [optional]
|
|
8
|
+
**previous** | **String** | | [optional]
|
|
9
|
+
**count** | **Integer** | |
|
|
10
|
+
**results** | [**Array<GalaxyRoleVersion>**](GalaxyRoleVersion.md) | |
|
|
11
|
+
|
|
12
|
+
## Code Sample
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'PulpAnsibleClient'
|
|
16
|
+
|
|
17
|
+
instance = PulpAnsibleClient::InlineResponse2006.new(_next: null,
|
|
18
|
+
previous: null,
|
|
19
|
+
count: null,
|
|
20
|
+
results: null)
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# PulpAnsibleClient::InlineResponse2007
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**_next** | **String** | | [optional]
|
|
8
|
+
**previous** | **String** | | [optional]
|
|
9
|
+
**count** | **Integer** | |
|
|
10
|
+
**results** | [**Array<GalaxyCollection>**](GalaxyCollection.md) | |
|
|
11
|
+
|
|
12
|
+
## Code Sample
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'PulpAnsibleClient'
|
|
16
|
+
|
|
17
|
+
instance = PulpAnsibleClient::InlineResponse2007.new(_next: null,
|
|
18
|
+
previous: null,
|
|
19
|
+
count: null,
|
|
20
|
+
results: null)
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# PulpAnsibleClient::PulpAnsibleApiApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost:24817*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**list**](PulpAnsibleApiApi.md#list) | **GET** /pulp_ansible/galaxy/{path}/api/ |
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## list
|
|
12
|
+
|
|
13
|
+
> list(path)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
Return a response to the \"GET\" action.
|
|
18
|
+
|
|
19
|
+
### Example
|
|
20
|
+
|
|
21
|
+
```ruby
|
|
22
|
+
# load the gem
|
|
23
|
+
require 'pulp_ansible_client'
|
|
24
|
+
# setup authorization
|
|
25
|
+
PulpAnsibleClient.configure do |config|
|
|
26
|
+
# Configure HTTP basic authorization: Basic
|
|
27
|
+
config.username = 'YOUR USERNAME'
|
|
28
|
+
config.password = 'YOUR PASSWORD'
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
api_instance = PulpAnsibleClient::PulpAnsibleApiApi.new
|
|
32
|
+
path = 'path_example' # String |
|
|
33
|
+
|
|
34
|
+
begin
|
|
35
|
+
api_instance.list(path)
|
|
36
|
+
rescue PulpAnsibleClient::ApiError => e
|
|
37
|
+
puts "Exception when calling PulpAnsibleApiApi->list: #{e}"
|
|
38
|
+
end
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Parameters
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
Name | Type | Description | Notes
|
|
45
|
+
------------- | ------------- | ------------- | -------------
|
|
46
|
+
**path** | **String**| |
|
|
47
|
+
|
|
48
|
+
### Return type
|
|
49
|
+
|
|
50
|
+
nil (empty response body)
|
|
51
|
+
|
|
52
|
+
### Authorization
|
|
53
|
+
|
|
54
|
+
[Basic](../README.md#Basic)
|
|
55
|
+
|
|
56
|
+
### HTTP request headers
|
|
57
|
+
|
|
58
|
+
- **Content-Type**: Not defined
|
|
59
|
+
- **Accept**: Not defined
|
|
60
|
+
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
# PulpAnsibleClient::PulpAnsibleGalaxyApiCollectionsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost:24817*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**create**](PulpAnsibleGalaxyApiCollectionsApi.md#create) | **POST** /pulp_ansible/galaxy/{path}/api/v2/collections/ |
|
|
8
|
+
[**read**](PulpAnsibleGalaxyApiCollectionsApi.md#read) | **GET** {collection_href} |
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
## create
|
|
13
|
+
|
|
14
|
+
> create(path)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
Queues a task that creates a new Collection from an uploaded artifact.
|
|
19
|
+
|
|
20
|
+
### Example
|
|
21
|
+
|
|
22
|
+
```ruby
|
|
23
|
+
# load the gem
|
|
24
|
+
require 'pulp_ansible_client'
|
|
25
|
+
# setup authorization
|
|
26
|
+
PulpAnsibleClient.configure do |config|
|
|
27
|
+
# Configure HTTP basic authorization: Basic
|
|
28
|
+
config.username = 'YOUR USERNAME'
|
|
29
|
+
config.password = 'YOUR PASSWORD'
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
api_instance = PulpAnsibleClient::PulpAnsibleGalaxyApiCollectionsApi.new
|
|
33
|
+
path = 'path_example' # String |
|
|
34
|
+
|
|
35
|
+
begin
|
|
36
|
+
api_instance.create(path)
|
|
37
|
+
rescue PulpAnsibleClient::ApiError => e
|
|
38
|
+
puts "Exception when calling PulpAnsibleGalaxyApiCollectionsApi->create: #{e}"
|
|
39
|
+
end
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Parameters
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
Name | Type | Description | Notes
|
|
46
|
+
------------- | ------------- | ------------- | -------------
|
|
47
|
+
**path** | **String**| |
|
|
48
|
+
|
|
49
|
+
### Return type
|
|
50
|
+
|
|
51
|
+
nil (empty response body)
|
|
52
|
+
|
|
53
|
+
### Authorization
|
|
54
|
+
|
|
55
|
+
[Basic](../README.md#Basic)
|
|
56
|
+
|
|
57
|
+
### HTTP request headers
|
|
58
|
+
|
|
59
|
+
- **Content-Type**: Not defined
|
|
60
|
+
- **Accept**: Not defined
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
## read
|
|
64
|
+
|
|
65
|
+
> GalaxyCollection read(collection_href)
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
Get the detail view of a Collection.
|
|
70
|
+
|
|
71
|
+
### Example
|
|
72
|
+
|
|
73
|
+
```ruby
|
|
74
|
+
# load the gem
|
|
75
|
+
require 'pulp_ansible_client'
|
|
76
|
+
# setup authorization
|
|
77
|
+
PulpAnsibleClient.configure do |config|
|
|
78
|
+
# Configure HTTP basic authorization: Basic
|
|
79
|
+
config.username = 'YOUR USERNAME'
|
|
80
|
+
config.password = 'YOUR PASSWORD'
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
api_instance = PulpAnsibleClient::PulpAnsibleGalaxyApiCollectionsApi.new
|
|
84
|
+
collection_href = 'collection_href_example' # String | URI of Collection. e.g.: /pulp_ansible/galaxy/1/api/v2/collections/1/1/
|
|
85
|
+
|
|
86
|
+
begin
|
|
87
|
+
result = api_instance.read(collection_href)
|
|
88
|
+
p result
|
|
89
|
+
rescue PulpAnsibleClient::ApiError => e
|
|
90
|
+
puts "Exception when calling PulpAnsibleGalaxyApiCollectionsApi->read: #{e}"
|
|
91
|
+
end
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
### Parameters
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
Name | Type | Description | Notes
|
|
98
|
+
------------- | ------------- | ------------- | -------------
|
|
99
|
+
**collection_href** | **String**| URI of Collection. e.g.: /pulp_ansible/galaxy/1/api/v2/collections/1/1/ |
|
|
100
|
+
|
|
101
|
+
### Return type
|
|
102
|
+
|
|
103
|
+
[**GalaxyCollection**](GalaxyCollection.md)
|
|
104
|
+
|
|
105
|
+
### Authorization
|
|
106
|
+
|
|
107
|
+
[Basic](../README.md#Basic)
|
|
108
|
+
|
|
109
|
+
### HTTP request headers
|
|
110
|
+
|
|
111
|
+
- **Content-Type**: Not defined
|
|
112
|
+
- **Accept**: application/json
|
|
113
|
+
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# PulpAnsibleClient::PulpAnsibleGalaxyApiRolesApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost:24817*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**list**](PulpAnsibleGalaxyApiRolesApi.md#list) | **GET** /pulp_ansible/galaxy/{path}/api/v1/roles/ |
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## list
|
|
12
|
+
|
|
13
|
+
> InlineResponse2005 list(path, opts)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
APIView for Roles.
|
|
18
|
+
|
|
19
|
+
### Example
|
|
20
|
+
|
|
21
|
+
```ruby
|
|
22
|
+
# load the gem
|
|
23
|
+
require 'pulp_ansible_client'
|
|
24
|
+
# setup authorization
|
|
25
|
+
PulpAnsibleClient.configure do |config|
|
|
26
|
+
# Configure HTTP basic authorization: Basic
|
|
27
|
+
config.username = 'YOUR USERNAME'
|
|
28
|
+
config.password = 'YOUR PASSWORD'
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
api_instance = PulpAnsibleClient::PulpAnsibleGalaxyApiRolesApi.new
|
|
32
|
+
path = 'path_example' # String |
|
|
33
|
+
opts = {
|
|
34
|
+
page: 56, # Integer | A page number within the paginated result set.
|
|
35
|
+
page_size: 56 # Integer | Number of results to return per page.
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
begin
|
|
39
|
+
result = api_instance.list(path, opts)
|
|
40
|
+
p result
|
|
41
|
+
rescue PulpAnsibleClient::ApiError => e
|
|
42
|
+
puts "Exception when calling PulpAnsibleGalaxyApiRolesApi->list: #{e}"
|
|
43
|
+
end
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Parameters
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
Name | Type | Description | Notes
|
|
50
|
+
------------- | ------------- | ------------- | -------------
|
|
51
|
+
**path** | **String**| |
|
|
52
|
+
**page** | **Integer**| A page number within the paginated result set. | [optional]
|
|
53
|
+
**page_size** | **Integer**| Number of results to return per page. | [optional]
|
|
54
|
+
|
|
55
|
+
### Return type
|
|
56
|
+
|
|
57
|
+
[**InlineResponse2005**](InlineResponse2005.md)
|
|
58
|
+
|
|
59
|
+
### Authorization
|
|
60
|
+
|
|
61
|
+
[Basic](../README.md#Basic)
|
|
62
|
+
|
|
63
|
+
### HTTP request headers
|
|
64
|
+
|
|
65
|
+
- **Content-Type**: Not defined
|
|
66
|
+
- **Accept**: application/json
|
|
67
|
+
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# PulpAnsibleClient::PulpAnsibleGalaxyApiV1VersionsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost:24817*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**list**](PulpAnsibleGalaxyApiV1VersionsApi.md#list) | **GET** /pulp_ansible/galaxy/{path}/api/v1/roles/{role_pk}/versions/ |
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## list
|
|
12
|
+
|
|
13
|
+
> InlineResponse2006 list(path, role_pk, opts)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
APIView for Role Versions.
|
|
18
|
+
|
|
19
|
+
### Example
|
|
20
|
+
|
|
21
|
+
```ruby
|
|
22
|
+
# load the gem
|
|
23
|
+
require 'pulp_ansible_client'
|
|
24
|
+
# setup authorization
|
|
25
|
+
PulpAnsibleClient.configure do |config|
|
|
26
|
+
# Configure HTTP basic authorization: Basic
|
|
27
|
+
config.username = 'YOUR USERNAME'
|
|
28
|
+
config.password = 'YOUR PASSWORD'
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
api_instance = PulpAnsibleClient::PulpAnsibleGalaxyApiV1VersionsApi.new
|
|
32
|
+
path = 'path_example' # String |
|
|
33
|
+
role_pk = 'role_pk_example' # String |
|
|
34
|
+
opts = {
|
|
35
|
+
page: 56, # Integer | A page number within the paginated result set.
|
|
36
|
+
page_size: 56 # Integer | Number of results to return per page.
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
begin
|
|
40
|
+
result = api_instance.list(path, role_pk, opts)
|
|
41
|
+
p result
|
|
42
|
+
rescue PulpAnsibleClient::ApiError => e
|
|
43
|
+
puts "Exception when calling PulpAnsibleGalaxyApiV1VersionsApi->list: #{e}"
|
|
44
|
+
end
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### Parameters
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
Name | Type | Description | Notes
|
|
51
|
+
------------- | ------------- | ------------- | -------------
|
|
52
|
+
**path** | **String**| |
|
|
53
|
+
**role_pk** | **String**| |
|
|
54
|
+
**page** | **Integer**| A page number within the paginated result set. | [optional]
|
|
55
|
+
**page_size** | **Integer**| Number of results to return per page. | [optional]
|
|
56
|
+
|
|
57
|
+
### Return type
|
|
58
|
+
|
|
59
|
+
[**InlineResponse2006**](InlineResponse2006.md)
|
|
60
|
+
|
|
61
|
+
### Authorization
|
|
62
|
+
|
|
63
|
+
[Basic](../README.md#Basic)
|
|
64
|
+
|
|
65
|
+
### HTTP request headers
|
|
66
|
+
|
|
67
|
+
- **Content-Type**: Not defined
|
|
68
|
+
- **Accept**: application/json
|
|
69
|
+
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# PulpAnsibleClient::PulpAnsibleGalaxyApiV2VersionsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost:24817*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**list**](PulpAnsibleGalaxyApiV2VersionsApi.md#list) | **GET** {collection_href}versions/ |
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## list
|
|
12
|
+
|
|
13
|
+
> InlineResponse2007 list(collection_href, opts)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
APIView for Collections by namespace/name.
|
|
18
|
+
|
|
19
|
+
### Example
|
|
20
|
+
|
|
21
|
+
```ruby
|
|
22
|
+
# load the gem
|
|
23
|
+
require 'pulp_ansible_client'
|
|
24
|
+
# setup authorization
|
|
25
|
+
PulpAnsibleClient.configure do |config|
|
|
26
|
+
# Configure HTTP basic authorization: Basic
|
|
27
|
+
config.username = 'YOUR USERNAME'
|
|
28
|
+
config.password = 'YOUR PASSWORD'
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
api_instance = PulpAnsibleClient::PulpAnsibleGalaxyApiV2VersionsApi.new
|
|
32
|
+
collection_href = 'collection_href_example' # String | URI of Collection. e.g.: /pulp_ansible/galaxy/1/api/v2/collections/1/1/
|
|
33
|
+
opts = {
|
|
34
|
+
page: 56, # Integer | A page number within the paginated result set.
|
|
35
|
+
page_size: 56 # Integer | Number of results to return per page.
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
begin
|
|
39
|
+
result = api_instance.list(collection_href, opts)
|
|
40
|
+
p result
|
|
41
|
+
rescue PulpAnsibleClient::ApiError => e
|
|
42
|
+
puts "Exception when calling PulpAnsibleGalaxyApiV2VersionsApi->list: #{e}"
|
|
43
|
+
end
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Parameters
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
Name | Type | Description | Notes
|
|
50
|
+
------------- | ------------- | ------------- | -------------
|
|
51
|
+
**collection_href** | **String**| URI of Collection. e.g.: /pulp_ansible/galaxy/1/api/v2/collections/1/1/ |
|
|
52
|
+
**page** | **Integer**| A page number within the paginated result set. | [optional]
|
|
53
|
+
**page_size** | **Integer**| Number of results to return per page. | [optional]
|
|
54
|
+
|
|
55
|
+
### Return type
|
|
56
|
+
|
|
57
|
+
[**InlineResponse2007**](InlineResponse2007.md)
|
|
58
|
+
|
|
59
|
+
### Authorization
|
|
60
|
+
|
|
61
|
+
[Basic](../README.md#Basic)
|
|
62
|
+
|
|
63
|
+
### HTTP request headers
|
|
64
|
+
|
|
65
|
+
- **Content-Type**: Not defined
|
|
66
|
+
- **Accept**: application/json
|
|
67
|
+
|