pulp_ansible_client 0.21.10 → 0.22.0

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 (137) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +12 -19
  3. data/docs/{AnsibleCollection.md → AnsibleAnsibleCollectionDeprecated.md} +4 -2
  4. data/docs/AnsibleAnsibleCollectionDeprecatedResponse.md +25 -0
  5. data/docs/AnsibleCollectionVersion.md +3 -3
  6. data/docs/AnsibleCollectionVersionResponse.md +8 -8
  7. data/docs/AnsibleCollectionsApi.md +61 -1
  8. data/docs/AnsibleCopyApi.md +1 -1
  9. data/docs/AnsibleGitRemote.md +30 -30
  10. data/docs/AnsibleGitRemoteResponse.md +27 -27
  11. data/docs/AnsibleRole.md +3 -3
  12. data/docs/AnsibleRoleResponse.md +3 -3
  13. data/docs/ApiRolesApi.md +1 -1
  14. data/docs/CollectionImportApi.md +1 -1
  15. data/docs/CollectionImportDetailResponse.md +2 -2
  16. data/docs/CollectionMetadataResponse.md +2 -2
  17. data/docs/CollectionSummaryResponse.md +2 -2
  18. data/docs/CollectionVersionDocsResponse.md +1 -1
  19. data/docs/CollectionVersionResponse.md +2 -2
  20. data/docs/ContentCollectionDeprecationsApi.md +11 -11
  21. data/docs/ContentCollectionMarksApi.md +1 -1
  22. data/docs/ContentCollectionSignaturesApi.md +1 -1
  23. data/docs/ContentCollectionVersionsApi.md +3 -3
  24. data/docs/ContentNamespacesApi.md +1 -1
  25. data/docs/ContentRolesApi.md +1 -1
  26. data/docs/Copy.md +1 -1
  27. data/docs/DistributionsAnsibleApi.md +1 -1
  28. data/docs/{PaginatedGalaxyCollectionResponseList.md → PaginatedansibleAnsibleCollectionDeprecatedResponseList.md} +5 -5
  29. data/docs/PatchedansibleGitRemote.md +30 -30
  30. data/docs/PulpAnsibleApiApi.md +1 -1
  31. data/docs/PulpAnsibleApiV3Api.md +1 -1
  32. data/docs/PulpAnsibleApiV3ArtifactsCollectionsApi.md +1 -1
  33. data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +1 -1
  34. data/docs/PulpAnsibleApiV3CollectionsAllApi.md +1 -1
  35. data/docs/PulpAnsibleApiV3CollectionsApi.md +1 -1
  36. data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +1 -1
  37. data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +1 -1
  38. data/docs/PulpAnsibleApiV3NamespacesApi.md +1 -1
  39. data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +1 -1
  40. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -1
  41. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
  42. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +1 -1
  43. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
  44. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +1 -1
  45. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
  46. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
  47. data/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md +1 -1
  48. data/docs/{ApiPluginAnsibleSearchCollectionVersionsApi.md → PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.md} +17 -18
  49. data/docs/PulpAnsibleArtifactsCollectionsV3Api.md +1 -1
  50. data/docs/PulpAnsibleDefaultApiApi.md +1 -1
  51. data/docs/PulpAnsibleDefaultApiV3Api.md +1 -1
  52. data/docs/PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md +1 -1
  53. data/docs/PulpAnsibleDefaultApiV3CollectionVersionsAllApi.md +1 -1
  54. data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +1 -1
  55. data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +1 -1
  56. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +1 -1
  57. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +1 -1
  58. data/docs/PulpAnsibleDefaultApiV3NamespacesApi.md +1 -1
  59. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +1 -1
  60. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -1
  61. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
  62. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +1 -1
  63. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
  64. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +1 -1
  65. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
  66. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
  67. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md +1 -1
  68. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md +3 -4
  69. data/docs/PulpAnsibleTagsApi.md +1 -1
  70. data/docs/RemotesCollectionApi.md +1 -1
  71. data/docs/RemotesGitApi.md +1 -1
  72. data/docs/RemotesRoleApi.md +1 -1
  73. data/docs/RepositoriesAnsibleApi.md +1 -1
  74. data/docs/RepositoriesAnsibleVersionsApi.md +1 -1
  75. data/docs/VersionsApi.md +1 -56
  76. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +68 -0
  77. data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +20 -20
  78. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +3 -3
  79. data/lib/pulp_ansible_client/api/{api_plugin_ansible_search_collection_versions_api.rb → pulp_ansible_api_v3_plugin_ansible_search_collection_versions_api.rb} +24 -26
  80. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api.rb +0 -2
  81. data/lib/pulp_ansible_client/api/versions_api.rb +0 -69
  82. data/lib/pulp_ansible_client/configuration.rb +2 -2
  83. data/lib/pulp_ansible_client/models/{ansible_collection.rb → ansible_ansible_collection_deprecated.rb} +15 -5
  84. data/lib/pulp_ansible_client/models/{galaxy_collection_version_response.rb → ansible_ansible_collection_deprecated_response.rb} +45 -54
  85. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +11 -11
  86. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +16 -16
  87. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +258 -258
  88. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +151 -151
  89. data/lib/pulp_ansible_client/models/ansible_role.rb +11 -11
  90. data/lib/pulp_ansible_client/models/ansible_role_response.rb +11 -11
  91. data/lib/pulp_ansible_client/models/collection_import_detail_response.rb +2 -2
  92. data/lib/pulp_ansible_client/models/collection_metadata_response.rb +2 -2
  93. data/lib/pulp_ansible_client/models/collection_summary_response.rb +2 -2
  94. data/lib/pulp_ansible_client/models/collection_version_docs_response.rb +1 -1
  95. data/lib/pulp_ansible_client/models/collection_version_response.rb +2 -2
  96. data/lib/pulp_ansible_client/models/copy.rb +1 -1
  97. data/lib/pulp_ansible_client/models/{paginated_galaxy_collection_version_response_list.rb → paginatedansible_ansible_collection_deprecated_response_list.rb} +4 -4
  98. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +249 -249
  99. data/lib/pulp_ansible_client/version.rb +1 -1
  100. data/lib/pulp_ansible_client.rb +4 -10
  101. data/spec/api/ansible_collections_api_spec.rb +14 -0
  102. data/spec/api/content_collection_deprecations_api_spec.rb +5 -5
  103. data/spec/api/content_collection_versions_api_spec.rb +1 -1
  104. data/spec/api/{api_plugin_ansible_search_collection_versions_api_spec.rb → pulp_ansible_api_v3_plugin_ansible_search_collection_versions_api_spec.rb} +8 -9
  105. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api_spec.rb +0 -1
  106. data/spec/api/versions_api_spec.rb +0 -14
  107. data/spec/configuration_spec.rb +3 -3
  108. data/spec/models/{galaxy_collection_version_response_spec.rb → ansible_ansible_collection_deprecated_response_spec.rb} +11 -17
  109. data/spec/models/{ansible_collection_spec.rb → ansible_ansible_collection_deprecated_spec.rb} +12 -6
  110. data/spec/models/ansible_collection_version_response_spec.rb +4 -4
  111. data/spec/models/ansible_collection_version_spec.rb +4 -4
  112. data/spec/models/ansible_git_remote_response_spec.rb +18 -18
  113. data/spec/models/ansible_git_remote_spec.rb +20 -20
  114. data/spec/models/ansible_role_response_spec.rb +4 -4
  115. data/spec/models/ansible_role_spec.rb +2 -2
  116. data/spec/models/{paginated_galaxy_collection_version_response_list_spec.rb → paginatedansible_ansible_collection_deprecated_response_list_spec.rb} +6 -6
  117. data/spec/models/patchedansible_git_remote_spec.rb +20 -20
  118. metadata +157 -181
  119. data/docs/ApiCollectionsApi.md +0 -112
  120. data/docs/GalaxyCollection.md +0 -23
  121. data/docs/GalaxyCollectionResponse.md +0 -31
  122. data/docs/GalaxyCollectionVersionResponse.md +0 -27
  123. data/docs/GalaxyDetailApi.md +0 -61
  124. data/docs/PaginatedGalaxyCollectionVersionResponseList.md +0 -23
  125. data/docs/PulpAnsibleApiV2CollectionsVersionsApi.md +0 -66
  126. data/lib/pulp_ansible_client/api/api_collections_api.rb +0 -159
  127. data/lib/pulp_ansible_client/api/galaxy_detail_api.rb +0 -88
  128. data/lib/pulp_ansible_client/api/pulp_ansible_api_v2_collections_versions_api.rb +0 -104
  129. data/lib/pulp_ansible_client/models/galaxy_collection.rb +0 -292
  130. data/lib/pulp_ansible_client/models/galaxy_collection_response.rb +0 -294
  131. data/lib/pulp_ansible_client/models/paginated_galaxy_collection_response_list.rb +0 -247
  132. data/spec/api/api_collections_api_spec.rb +0 -61
  133. data/spec/api/galaxy_detail_api_spec.rb +0 -48
  134. data/spec/api/pulp_ansible_api_v2_collections_versions_api_spec.rb +0 -51
  135. data/spec/models/galaxy_collection_response_spec.rb +0 -83
  136. data/spec/models/galaxy_collection_spec.rb +0 -59
  137. data/spec/models/paginated_galaxy_collection_response_list_spec.rb +0 -59
@@ -1,112 +0,0 @@
1
- # PulpAnsibleClient::ApiCollectionsApi
2
-
3
- All URIs are relative to *http://localhost:24817*
4
-
5
- Method | HTTP request | Description
6
- ------------- | ------------- | -------------
7
- [**get**](ApiCollectionsApi.md#get) | **GET** {ansible_collection_href}api/v2/collections/ |
8
- [**post**](ApiCollectionsApi.md#post) | **POST** {ansible_collection_href}api/v2/collections/ |
9
-
10
-
11
-
12
- ## get
13
-
14
- > PaginatedGalaxyCollectionResponseList get(ansible_collection_href, opts)
15
-
16
-
17
-
18
- View for Collection models.
19
-
20
- ### Example
21
-
22
- ```ruby
23
- # load the gem
24
- require 'pulp_ansible_client'
25
-
26
- api_instance = PulpAnsibleClient::ApiCollectionsApi.new
27
- ansible_collection_href = 'ansible_collection_href_example' # String |
28
- opts = {
29
- page: 56, # Integer | A page number within the paginated result set.
30
- fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
31
- exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
32
- }
33
-
34
- begin
35
- result = api_instance.get(ansible_collection_href, opts)
36
- p result
37
- rescue PulpAnsibleClient::ApiError => e
38
- puts "Exception when calling ApiCollectionsApi->get: #{e}"
39
- end
40
- ```
41
-
42
- ### Parameters
43
-
44
-
45
- Name | Type | Description | Notes
46
- ------------- | ------------- | ------------- | -------------
47
- **ansible_collection_href** | **String**| |
48
- **page** | **Integer**| A page number within the paginated result set. | [optional]
49
- **fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to include in the response. | [optional]
50
- **exclude_fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to exclude from the response. | [optional]
51
-
52
- ### Return type
53
-
54
- [**PaginatedGalaxyCollectionResponseList**](PaginatedGalaxyCollectionResponseList.md)
55
-
56
- ### Authorization
57
-
58
- No authorization required
59
-
60
- ### HTTP request headers
61
-
62
- - **Content-Type**: Not defined
63
- - **Accept**: application/json
64
-
65
-
66
- ## post
67
-
68
- > GalaxyCollectionResponse post(ansible_collection_href, galaxy_collection)
69
-
70
-
71
-
72
- Queues a task that creates a new Collection from an uploaded artifact.
73
-
74
- ### Example
75
-
76
- ```ruby
77
- # load the gem
78
- require 'pulp_ansible_client'
79
-
80
- api_instance = PulpAnsibleClient::ApiCollectionsApi.new
81
- ansible_collection_href = 'ansible_collection_href_example' # String |
82
- galaxy_collection = PulpAnsibleClient::GalaxyCollection.new # GalaxyCollection |
83
-
84
- begin
85
- result = api_instance.post(ansible_collection_href, galaxy_collection)
86
- p result
87
- rescue PulpAnsibleClient::ApiError => e
88
- puts "Exception when calling ApiCollectionsApi->post: #{e}"
89
- end
90
- ```
91
-
92
- ### Parameters
93
-
94
-
95
- Name | Type | Description | Notes
96
- ------------- | ------------- | ------------- | -------------
97
- **ansible_collection_href** | **String**| |
98
- **galaxy_collection** | [**GalaxyCollection**](GalaxyCollection.md)| |
99
-
100
- ### Return type
101
-
102
- [**GalaxyCollectionResponse**](GalaxyCollectionResponse.md)
103
-
104
- ### Authorization
105
-
106
- No authorization required
107
-
108
- ### HTTP request headers
109
-
110
- - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
111
- - **Accept**: application/json
112
-
@@ -1,23 +0,0 @@
1
- # PulpAnsibleClient::GalaxyCollection
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **id** | **String** | |
8
- **name** | **String** | |
9
- **created** | **DateTime** | |
10
- **modified** | **DateTime** | |
11
-
12
- ## Code Sample
13
-
14
- ```ruby
15
- require 'PulpAnsibleClient'
16
-
17
- instance = PulpAnsibleClient::GalaxyCollection.new(id: null,
18
- name: null,
19
- created: null,
20
- modified: null)
21
- ```
22
-
23
-
@@ -1,31 +0,0 @@
1
- # PulpAnsibleClient::GalaxyCollectionResponse
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **id** | **String** | |
8
- **name** | **String** | |
9
- **namespace** | [**Object**](.md) | Create a namespace dict. | [optional] [readonly]
10
- **href** | **String** | Get href. | [optional] [readonly]
11
- **versions_url** | **String** | Get versions_url. | [optional] [readonly]
12
- **created** | **DateTime** | |
13
- **modified** | **DateTime** | |
14
- **latest_version** | [**Object**](.md) | Get latest version. | [optional] [readonly]
15
-
16
- ## Code Sample
17
-
18
- ```ruby
19
- require 'PulpAnsibleClient'
20
-
21
- instance = PulpAnsibleClient::GalaxyCollectionResponse.new(id: null,
22
- name: null,
23
- namespace: null,
24
- href: null,
25
- versions_url: null,
26
- created: null,
27
- modified: null,
28
- latest_version: null)
29
- ```
30
-
31
-
@@ -1,27 +0,0 @@
1
- # PulpAnsibleClient::GalaxyCollectionVersionResponse
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **version** | **String** | |
8
- **href** | **String** | Get href. | [optional] [readonly]
9
- **namespace** | [**Object**](.md) | Create a namespace dict. | [optional] [readonly]
10
- **collection** | [**Object**](.md) | Create a collection dict. | [optional] [readonly]
11
- **artifact** | [**Object**](.md) | Create an artifact dict. | [optional] [readonly]
12
- **metadata** | [**CollectionMetadataResponse**](CollectionMetadataResponse.md) | |
13
-
14
- ## Code Sample
15
-
16
- ```ruby
17
- require 'PulpAnsibleClient'
18
-
19
- instance = PulpAnsibleClient::GalaxyCollectionVersionResponse.new(version: null,
20
- href: null,
21
- namespace: null,
22
- collection: null,
23
- artifact: null,
24
- metadata: null)
25
- ```
26
-
27
-
@@ -1,61 +0,0 @@
1
- # PulpAnsibleClient::GalaxyDetailApi
2
-
3
- All URIs are relative to *http://localhost:24817*
4
-
5
- Method | HTTP request | Description
6
- ------------- | ------------- | -------------
7
- [**get**](GalaxyDetailApi.md#get) | **GET** {ansible_collection_href} |
8
-
9
-
10
-
11
- ## get
12
-
13
- > GalaxyCollectionResponse get(ansible_collection_href, opts)
14
-
15
-
16
-
17
- Get the detail view of a Collection.
18
-
19
- ### Example
20
-
21
- ```ruby
22
- # load the gem
23
- require 'pulp_ansible_client'
24
-
25
- api_instance = PulpAnsibleClient::GalaxyDetailApi.new
26
- ansible_collection_href = 'ansible_collection_href_example' # String |
27
- opts = {
28
- fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
29
- exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
30
- }
31
-
32
- begin
33
- result = api_instance.get(ansible_collection_href, opts)
34
- p result
35
- rescue PulpAnsibleClient::ApiError => e
36
- puts "Exception when calling GalaxyDetailApi->get: #{e}"
37
- end
38
- ```
39
-
40
- ### Parameters
41
-
42
-
43
- Name | Type | Description | Notes
44
- ------------- | ------------- | ------------- | -------------
45
- **ansible_collection_href** | **String**| |
46
- **fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to include in the response. | [optional]
47
- **exclude_fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to exclude from the response. | [optional]
48
-
49
- ### Return type
50
-
51
- [**GalaxyCollectionResponse**](GalaxyCollectionResponse.md)
52
-
53
- ### Authorization
54
-
55
- No authorization required
56
-
57
- ### HTTP request headers
58
-
59
- - **Content-Type**: Not defined
60
- - **Accept**: application/json
61
-
@@ -1,23 +0,0 @@
1
- # PulpAnsibleClient::PaginatedGalaxyCollectionVersionResponseList
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **count** | **Integer** | |
8
- **_next** | **String** | | [optional]
9
- **previous** | **String** | | [optional]
10
- **results** | [**Array&lt;GalaxyCollectionVersionResponse&gt;**](GalaxyCollectionVersionResponse.md) | |
11
-
12
- ## Code Sample
13
-
14
- ```ruby
15
- require 'PulpAnsibleClient'
16
-
17
- instance = PulpAnsibleClient::PaginatedGalaxyCollectionVersionResponseList.new(count: 123,
18
- _next: http://api.example.org/accounts/?page&#x3D;4,
19
- previous: http://api.example.org/accounts/?page&#x3D;2,
20
- results: null)
21
- ```
22
-
23
-
@@ -1,66 +0,0 @@
1
- # PulpAnsibleClient::PulpAnsibleApiV2CollectionsVersionsApi
2
-
3
- All URIs are relative to *http://localhost:24817*
4
-
5
- Method | HTTP request | Description
6
- ------------- | ------------- | -------------
7
- [**get**](PulpAnsibleApiV2CollectionsVersionsApi.md#get) | **GET** /pulp_ansible/galaxy/{path}/api/v2/collections/{namespace}/{name}/versions/{version}/ |
8
-
9
-
10
-
11
- ## get
12
-
13
- > get(name, namespace, path, version, opts)
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
-
25
- api_instance = PulpAnsibleClient::PulpAnsibleApiV2CollectionsVersionsApi.new
26
- name = 'name_example' # String |
27
- namespace = 'namespace_example' # String |
28
- path = 'path_example' # String |
29
- version = 'version_example' # String |
30
- opts = {
31
- fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
32
- exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
33
- }
34
-
35
- begin
36
- api_instance.get(name, namespace, path, version, opts)
37
- rescue PulpAnsibleClient::ApiError => e
38
- puts "Exception when calling PulpAnsibleApiV2CollectionsVersionsApi->get: #{e}"
39
- end
40
- ```
41
-
42
- ### Parameters
43
-
44
-
45
- Name | Type | Description | Notes
46
- ------------- | ------------- | ------------- | -------------
47
- **name** | **String**| |
48
- **namespace** | **String**| |
49
- **path** | **String**| |
50
- **version** | **String**| |
51
- **fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to include in the response. | [optional]
52
- **exclude_fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to exclude from the response. | [optional]
53
-
54
- ### Return type
55
-
56
- nil (empty response body)
57
-
58
- ### Authorization
59
-
60
- No authorization required
61
-
62
- ### HTTP request headers
63
-
64
- - **Content-Type**: Not defined
65
- - **Accept**: Not defined
66
-
@@ -1,159 +0,0 @@
1
- =begin
2
- #Pulp 3 API
3
-
4
- #Fetch, Upload, Organize, and Distribute Software Packages
5
-
6
- The version of the OpenAPI document: v3
7
- Contact: pulp-list@redhat.com
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.1
10
-
11
- =end
12
-
13
- require 'cgi'
14
-
15
- module PulpAnsibleClient
16
- class ApiCollectionsApi
17
- attr_accessor :api_client
18
-
19
- def initialize(api_client = ApiClient.default)
20
- @api_client = api_client
21
- end
22
- # View for Collection models.
23
- # @param ansible_collection_href [String]
24
- # @param [Hash] opts the optional parameters
25
- # @option opts [Integer] :page A page number within the paginated result set.
26
- # @option opts [Array<String>] :fields A list of fields to include in the response.
27
- # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
28
- # @return [PaginatedGalaxyCollectionResponseList]
29
- def get(ansible_collection_href, opts = {})
30
- data, _status_code, _headers = get_with_http_info(ansible_collection_href, opts)
31
- data
32
- end
33
-
34
- # View for Collection models.
35
- # @param ansible_collection_href [String]
36
- # @param [Hash] opts the optional parameters
37
- # @option opts [Integer] :page A page number within the paginated result set.
38
- # @option opts [Array<String>] :fields A list of fields to include in the response.
39
- # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
40
- # @return [Array<(PaginatedGalaxyCollectionResponseList, Integer, Hash)>] PaginatedGalaxyCollectionResponseList data, response status code and response headers
41
- def get_with_http_info(ansible_collection_href, opts = {})
42
- if @api_client.config.debugging
43
- @api_client.config.logger.debug 'Calling API: ApiCollectionsApi.get ...'
44
- end
45
- # verify the required parameter 'ansible_collection_href' is set
46
- if @api_client.config.client_side_validation && ansible_collection_href.nil?
47
- fail ArgumentError, "Missing the required parameter 'ansible_collection_href' when calling ApiCollectionsApi.get"
48
- end
49
- # resource path
50
- local_var_path = '{ansible_collection_href}api/v2/collections/'.sub('{' + 'ansible_collection_href' + '}', CGI.escape(ansible_collection_href.to_s).gsub('%2F', '/'))
51
-
52
- # query parameters
53
- query_params = opts[:query_params] || {}
54
- query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
55
- query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
56
- query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
57
-
58
- # header parameters
59
- header_params = opts[:header_params] || {}
60
- # HTTP header 'Accept' (if needed)
61
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
62
-
63
- # form parameters
64
- form_params = opts[:form_params] || {}
65
-
66
- # http body (model)
67
- post_body = opts[:body]
68
-
69
- # return_type
70
- return_type = opts[:return_type] || 'PaginatedGalaxyCollectionResponseList'
71
-
72
- # auth_names
73
- auth_names = opts[:auth_names] || []
74
-
75
- new_options = opts.merge(
76
- :header_params => header_params,
77
- :query_params => query_params,
78
- :form_params => form_params,
79
- :body => post_body,
80
- :auth_names => auth_names,
81
- :return_type => return_type
82
- )
83
-
84
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
85
- if @api_client.config.debugging
86
- @api_client.config.logger.debug "API called: ApiCollectionsApi#get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
87
- end
88
- return data, status_code, headers
89
- end
90
-
91
- # Queues a task that creates a new Collection from an uploaded artifact.
92
- # @param ansible_collection_href [String]
93
- # @param galaxy_collection [GalaxyCollection]
94
- # @param [Hash] opts the optional parameters
95
- # @return [GalaxyCollectionResponse]
96
- def post(ansible_collection_href, galaxy_collection, opts = {})
97
- data, _status_code, _headers = post_with_http_info(ansible_collection_href, galaxy_collection, opts)
98
- data
99
- end
100
-
101
- # Queues a task that creates a new Collection from an uploaded artifact.
102
- # @param ansible_collection_href [String]
103
- # @param galaxy_collection [GalaxyCollection]
104
- # @param [Hash] opts the optional parameters
105
- # @return [Array<(GalaxyCollectionResponse, Integer, Hash)>] GalaxyCollectionResponse data, response status code and response headers
106
- def post_with_http_info(ansible_collection_href, galaxy_collection, opts = {})
107
- if @api_client.config.debugging
108
- @api_client.config.logger.debug 'Calling API: ApiCollectionsApi.post ...'
109
- end
110
- # verify the required parameter 'ansible_collection_href' is set
111
- if @api_client.config.client_side_validation && ansible_collection_href.nil?
112
- fail ArgumentError, "Missing the required parameter 'ansible_collection_href' when calling ApiCollectionsApi.post"
113
- end
114
- # verify the required parameter 'galaxy_collection' is set
115
- if @api_client.config.client_side_validation && galaxy_collection.nil?
116
- fail ArgumentError, "Missing the required parameter 'galaxy_collection' when calling ApiCollectionsApi.post"
117
- end
118
- # resource path
119
- local_var_path = '{ansible_collection_href}api/v2/collections/'.sub('{' + 'ansible_collection_href' + '}', CGI.escape(ansible_collection_href.to_s).gsub('%2F', '/'))
120
-
121
- # query parameters
122
- query_params = opts[:query_params] || {}
123
-
124
- # header parameters
125
- header_params = opts[:header_params] || {}
126
- # HTTP header 'Accept' (if needed)
127
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
128
- # HTTP header 'Content-Type'
129
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
130
-
131
- # form parameters
132
- form_params = opts[:form_params] || {}
133
-
134
- # http body (model)
135
- post_body = opts[:body] || @api_client.object_to_http_body(galaxy_collection)
136
-
137
- # return_type
138
- return_type = opts[:return_type] || 'GalaxyCollectionResponse'
139
-
140
- # auth_names
141
- auth_names = opts[:auth_names] || []
142
-
143
- new_options = opts.merge(
144
- :header_params => header_params,
145
- :query_params => query_params,
146
- :form_params => form_params,
147
- :body => post_body,
148
- :auth_names => auth_names,
149
- :return_type => return_type
150
- )
151
-
152
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
153
- if @api_client.config.debugging
154
- @api_client.config.logger.debug "API called: ApiCollectionsApi#post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
155
- end
156
- return data, status_code, headers
157
- end
158
- end
159
- end
@@ -1,88 +0,0 @@
1
- =begin
2
- #Pulp 3 API
3
-
4
- #Fetch, Upload, Organize, and Distribute Software Packages
5
-
6
- The version of the OpenAPI document: v3
7
- Contact: pulp-list@redhat.com
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.1
10
-
11
- =end
12
-
13
- require 'cgi'
14
-
15
- module PulpAnsibleClient
16
- class GalaxyDetailApi
17
- attr_accessor :api_client
18
-
19
- def initialize(api_client = ApiClient.default)
20
- @api_client = api_client
21
- end
22
- # Get the detail view of a Collection.
23
- # @param ansible_collection_href [String]
24
- # @param [Hash] opts the optional parameters
25
- # @option opts [Array<String>] :fields A list of fields to include in the response.
26
- # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
27
- # @return [GalaxyCollectionResponse]
28
- def get(ansible_collection_href, opts = {})
29
- data, _status_code, _headers = get_with_http_info(ansible_collection_href, opts)
30
- data
31
- end
32
-
33
- # Get the detail view of a Collection.
34
- # @param ansible_collection_href [String]
35
- # @param [Hash] opts the optional parameters
36
- # @option opts [Array<String>] :fields A list of fields to include in the response.
37
- # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
38
- # @return [Array<(GalaxyCollectionResponse, Integer, Hash)>] GalaxyCollectionResponse data, response status code and response headers
39
- def get_with_http_info(ansible_collection_href, opts = {})
40
- if @api_client.config.debugging
41
- @api_client.config.logger.debug 'Calling API: GalaxyDetailApi.get ...'
42
- end
43
- # verify the required parameter 'ansible_collection_href' is set
44
- if @api_client.config.client_side_validation && ansible_collection_href.nil?
45
- fail ArgumentError, "Missing the required parameter 'ansible_collection_href' when calling GalaxyDetailApi.get"
46
- end
47
- # resource path
48
- local_var_path = '{ansible_collection_href}'.sub('{' + 'ansible_collection_href' + '}', CGI.escape(ansible_collection_href.to_s).gsub('%2F', '/'))
49
-
50
- # query parameters
51
- query_params = opts[:query_params] || {}
52
- query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
53
- query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
54
-
55
- # header parameters
56
- header_params = opts[:header_params] || {}
57
- # HTTP header 'Accept' (if needed)
58
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
59
-
60
- # form parameters
61
- form_params = opts[:form_params] || {}
62
-
63
- # http body (model)
64
- post_body = opts[:body]
65
-
66
- # return_type
67
- return_type = opts[:return_type] || 'GalaxyCollectionResponse'
68
-
69
- # auth_names
70
- auth_names = opts[:auth_names] || []
71
-
72
- new_options = opts.merge(
73
- :header_params => header_params,
74
- :query_params => query_params,
75
- :form_params => form_params,
76
- :body => post_body,
77
- :auth_names => auth_names,
78
- :return_type => return_type
79
- )
80
-
81
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
82
- if @api_client.config.debugging
83
- @api_client.config.logger.debug "API called: GalaxyDetailApi#get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
84
- end
85
- return data, status_code, headers
86
- end
87
- end
88
- end