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.
Files changed (103) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/Gemfile.lock +79 -0
  4. data/README.md +150 -0
  5. data/Rakefile +10 -0
  6. data/docs/AnsibleCollectionsApi.md +66 -0
  7. data/docs/AnsibleDistribution.md +31 -0
  8. data/docs/AnsibleRemote.md +45 -0
  9. data/docs/AsyncOperationResponse.md +17 -0
  10. data/docs/Collection.md +41 -0
  11. data/docs/CollectionRemote.md +47 -0
  12. data/docs/ContentCollectionsApi.md +134 -0
  13. data/docs/ContentRolesApi.md +186 -0
  14. data/docs/DistributionsAnsibleApi.md +352 -0
  15. data/docs/GalaxyCollection.md +25 -0
  16. data/docs/GalaxyRole.md +21 -0
  17. data/docs/GalaxyRoleVersion.md +19 -0
  18. data/docs/InlineResponse200.md +23 -0
  19. data/docs/InlineResponse2001.md +23 -0
  20. data/docs/InlineResponse2002.md +23 -0
  21. data/docs/InlineResponse2003.md +23 -0
  22. data/docs/InlineResponse2004.md +23 -0
  23. data/docs/InlineResponse2005.md +23 -0
  24. data/docs/InlineResponse2006.md +23 -0
  25. data/docs/InlineResponse2007.md +23 -0
  26. data/docs/PulpAnsibleApiApi.md +60 -0
  27. data/docs/PulpAnsibleGalaxyApiCollectionsApi.md +113 -0
  28. data/docs/PulpAnsibleGalaxyApiRolesApi.md +67 -0
  29. data/docs/PulpAnsibleGalaxyApiV1VersionsApi.md +69 -0
  30. data/docs/PulpAnsibleGalaxyApiV2VersionsApi.md +67 -0
  31. data/docs/RemotesAnsibleApi.md +411 -0
  32. data/docs/RemotesCollectionApi.md +411 -0
  33. data/docs/RepositorySyncURL.md +19 -0
  34. data/docs/Role.md +29 -0
  35. data/git_push.sh +55 -0
  36. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +94 -0
  37. data/lib/pulp_ansible_client/api/content_collections_api.rb +169 -0
  38. data/lib/pulp_ansible_client/api/content_roles_api.rb +228 -0
  39. data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +430 -0
  40. data/lib/pulp_ansible_client/api/pulp_ansible_api_api.rb +80 -0
  41. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_collections_api.rb +140 -0
  42. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_roles_api.rb +88 -0
  43. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v1_versions_api.rb +94 -0
  44. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v2_versions_api.rb +88 -0
  45. data/lib/pulp_ansible_client/api/remotes_ansible_api.rb +504 -0
  46. data/lib/pulp_ansible_client/api/remotes_collection_api.rb +504 -0
  47. data/lib/pulp_ansible_client/api_client.rb +387 -0
  48. data/lib/pulp_ansible_client/api_error.rb +57 -0
  49. data/lib/pulp_ansible_client/configuration.rb +251 -0
  50. data/lib/pulp_ansible_client/models/ansible_distribution.rb +347 -0
  51. data/lib/pulp_ansible_client/models/ansible_remote.rb +539 -0
  52. data/lib/pulp_ansible_client/models/async_operation_response.rb +202 -0
  53. data/lib/pulp_ansible_client/models/collection.rb +494 -0
  54. data/lib/pulp_ansible_client/models/collection_remote.rb +572 -0
  55. data/lib/pulp_ansible_client/models/galaxy_collection.rb +304 -0
  56. data/lib/pulp_ansible_client/models/galaxy_role.rb +262 -0
  57. data/lib/pulp_ansible_client/models/galaxy_role_version.rb +229 -0
  58. data/lib/pulp_ansible_client/models/inline_response200.rb +235 -0
  59. data/lib/pulp_ansible_client/models/inline_response2001.rb +235 -0
  60. data/lib/pulp_ansible_client/models/inline_response2002.rb +235 -0
  61. data/lib/pulp_ansible_client/models/inline_response2003.rb +235 -0
  62. data/lib/pulp_ansible_client/models/inline_response2004.rb +235 -0
  63. data/lib/pulp_ansible_client/models/inline_response2005.rb +235 -0
  64. data/lib/pulp_ansible_client/models/inline_response2006.rb +235 -0
  65. data/lib/pulp_ansible_client/models/inline_response2007.rb +235 -0
  66. data/lib/pulp_ansible_client/models/repository_sync_url.rb +214 -0
  67. data/lib/pulp_ansible_client/models/role.rb +344 -0
  68. data/lib/pulp_ansible_client/version.rb +15 -0
  69. data/lib/pulp_ansible_client.rb +68 -0
  70. data/pulp_ansible_client.gemspec +45 -0
  71. data/spec/api/ansible_collections_api_spec.rb +48 -0
  72. data/spec/api/content_collections_api_spec.rb +67 -0
  73. data/spec/api/content_roles_api_spec.rb +78 -0
  74. data/spec/api/distributions_ansible_api_spec.rb +116 -0
  75. data/spec/api/pulp_ansible_api_api_spec.rb +46 -0
  76. data/spec/api/pulp_ansible_galaxy_api_collections_api_spec.rb +57 -0
  77. data/spec/api/pulp_ansible_galaxy_api_roles_api_spec.rb +48 -0
  78. data/spec/api/pulp_ansible_galaxy_api_v1_versions_api_spec.rb +49 -0
  79. data/spec/api/pulp_ansible_galaxy_api_v2_versions_api_spec.rb +48 -0
  80. data/spec/api/remotes_ansible_api_spec.rb +130 -0
  81. data/spec/api/remotes_collection_api_spec.rb +130 -0
  82. data/spec/api_client_spec.rb +226 -0
  83. data/spec/configuration_spec.rb +42 -0
  84. data/spec/models/ansible_distribution_spec.rb +83 -0
  85. data/spec/models/ansible_remote_spec.rb +129 -0
  86. data/spec/models/async_operation_response_spec.rb +41 -0
  87. data/spec/models/collection_remote_spec.rb +135 -0
  88. data/spec/models/collection_spec.rb +113 -0
  89. data/spec/models/galaxy_collection_spec.rb +65 -0
  90. data/spec/models/galaxy_role_spec.rb +53 -0
  91. data/spec/models/galaxy_role_version_spec.rb +47 -0
  92. data/spec/models/inline_response2001_spec.rb +59 -0
  93. data/spec/models/inline_response2002_spec.rb +59 -0
  94. data/spec/models/inline_response2003_spec.rb +59 -0
  95. data/spec/models/inline_response2004_spec.rb +59 -0
  96. data/spec/models/inline_response2005_spec.rb +59 -0
  97. data/spec/models/inline_response2006_spec.rb +59 -0
  98. data/spec/models/inline_response2007_spec.rb +59 -0
  99. data/spec/models/inline_response200_spec.rb +59 -0
  100. data/spec/models/repository_sync_url_spec.rb +47 -0
  101. data/spec/models/role_spec.rb +77 -0
  102. data/spec/spec_helper.rb +111 -0
  103. 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
+