pulp_ansible_client 0.21.5 → 0.22.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (120) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -15
  3. data/docs/{AnsibleCollection.md → AnsibleAnsibleCollectionDeprecated.md} +4 -2
  4. data/docs/AnsibleAnsibleCollectionDeprecatedResponse.md +25 -0
  5. data/docs/AnsibleAnsibleRepositoryResponse.md +2 -0
  6. data/docs/AnsibleCollectionRemoteResponse.md +2 -2
  7. data/docs/AnsibleCollectionRemoteResponseHiddenFields.md +2 -2
  8. data/docs/AnsibleCollectionVersionResponse.md +11 -9
  9. data/docs/AnsibleCollectionVersionSignatureResponse.md +2 -0
  10. data/docs/AnsibleCollectionsApi.md +60 -0
  11. data/docs/AnsibleGitRemote.md +28 -28
  12. data/docs/AnsibleGitRemoteResponse.md +26 -26
  13. data/docs/AnsibleRoleRemoteResponse.md +2 -2
  14. data/docs/AnsibleRoleResponse.md +6 -4
  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 +10 -10
  21. data/docs/Copy.md +1 -1
  22. data/docs/PaginatedGalaxyRoleResponseList.md +2 -2
  23. data/docs/PaginatedGalaxyRoleVersionResponseList.md +2 -2
  24. data/docs/PaginatedRepositoryVersionResponseList.md +2 -2
  25. data/docs/PaginatedTagResponseList.md +2 -2
  26. data/docs/PaginatedansibleAnsibleCollectionDeprecatedResponseList.md +23 -0
  27. data/docs/PaginatedansibleAnsibleDistributionResponseList.md +2 -2
  28. data/docs/PaginatedansibleAnsibleNamespaceMetadataResponseList.md +2 -2
  29. data/docs/PaginatedansibleAnsibleRepositoryResponseList.md +2 -2
  30. data/docs/PaginatedansibleCollectionRemoteResponseList.md +2 -2
  31. data/docs/PaginatedansibleCollectionResponseList.md +2 -2
  32. data/docs/PaginatedansibleCollectionVersionMarkResponseList.md +2 -2
  33. data/docs/PaginatedansibleCollectionVersionResponseList.md +2 -2
  34. data/docs/PaginatedansibleCollectionVersionSignatureResponseList.md +2 -2
  35. data/docs/PaginatedansibleGitRemoteResponseList.md +2 -2
  36. data/docs/PaginatedansibleRoleRemoteResponseList.md +2 -2
  37. data/docs/PaginatedansibleRoleResponseList.md +2 -2
  38. data/docs/PatchedansibleGitRemote.md +28 -28
  39. data/docs/RepositoryResponse.md +2 -0
  40. data/docs/RepositoryVersionResponse.md +2 -0
  41. data/docs/VersionsApi.md +0 -55
  42. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +68 -0
  43. data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +20 -20
  44. data/lib/pulp_ansible_client/api/versions_api.rb +0 -69
  45. data/lib/pulp_ansible_client/models/{ansible_collection.rb → ansible_ansible_collection_deprecated.rb} +15 -5
  46. data/lib/pulp_ansible_client/models/{galaxy_collection_version_response.rb → ansible_ansible_collection_deprecated_response.rb} +45 -54
  47. data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +11 -1
  48. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +11 -11
  49. data/lib/pulp_ansible_client/models/ansible_collection_remote_response_hidden_fields.rb +10 -0
  50. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +30 -20
  51. data/lib/pulp_ansible_client/models/ansible_collection_version_signature_response.rb +11 -1
  52. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +232 -232
  53. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +153 -153
  54. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +11 -11
  55. data/lib/pulp_ansible_client/models/ansible_role_response.rb +25 -15
  56. data/lib/pulp_ansible_client/models/collection_import_detail_response.rb +2 -2
  57. data/lib/pulp_ansible_client/models/collection_metadata_response.rb +2 -2
  58. data/lib/pulp_ansible_client/models/collection_summary_response.rb +2 -2
  59. data/lib/pulp_ansible_client/models/collection_version_docs_response.rb +1 -1
  60. data/lib/pulp_ansible_client/models/collection_version_response.rb +2 -2
  61. data/lib/pulp_ansible_client/models/copy.rb +1 -1
  62. data/lib/pulp_ansible_client/models/paginated_galaxy_role_response_list.rb +10 -0
  63. data/lib/pulp_ansible_client/models/paginated_galaxy_role_version_response_list.rb +10 -0
  64. data/lib/pulp_ansible_client/models/paginated_repository_version_response_list.rb +10 -0
  65. data/lib/pulp_ansible_client/models/paginated_tag_response_list.rb +10 -0
  66. data/lib/pulp_ansible_client/models/{paginated_galaxy_collection_response_list.rb → paginatedansible_ansible_collection_deprecated_response_list.rb} +14 -4
  67. data/lib/pulp_ansible_client/models/paginatedansible_ansible_distribution_response_list.rb +10 -0
  68. data/lib/pulp_ansible_client/models/paginatedansible_ansible_namespace_metadata_response_list.rb +10 -0
  69. data/lib/pulp_ansible_client/models/paginatedansible_ansible_repository_response_list.rb +10 -0
  70. data/lib/pulp_ansible_client/models/paginatedansible_collection_remote_response_list.rb +10 -0
  71. data/lib/pulp_ansible_client/models/paginatedansible_collection_response_list.rb +10 -0
  72. data/lib/pulp_ansible_client/models/paginatedansible_collection_version_mark_response_list.rb +10 -0
  73. data/lib/pulp_ansible_client/models/paginatedansible_collection_version_response_list.rb +10 -0
  74. data/lib/pulp_ansible_client/models/paginatedansible_collection_version_signature_response_list.rb +10 -0
  75. data/lib/pulp_ansible_client/models/paginatedansible_git_remote_response_list.rb +10 -0
  76. data/lib/pulp_ansible_client/models/paginatedansible_role_remote_response_list.rb +10 -0
  77. data/lib/pulp_ansible_client/models/paginatedansible_role_response_list.rb +10 -0
  78. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +226 -226
  79. data/lib/pulp_ansible_client/models/repository_response.rb +11 -1
  80. data/lib/pulp_ansible_client/models/repository_version_response.rb +11 -1
  81. data/lib/pulp_ansible_client/version.rb +1 -1
  82. data/lib/pulp_ansible_client.rb +3 -9
  83. data/spec/api/ansible_collections_api_spec.rb +14 -0
  84. data/spec/api/content_collection_deprecations_api_spec.rb +5 -5
  85. data/spec/api/versions_api_spec.rb +0 -14
  86. data/spec/models/{galaxy_collection_version_response_spec.rb → ansible_ansible_collection_deprecated_response_spec.rb} +11 -17
  87. data/spec/models/{ansible_collection_spec.rb → ansible_ansible_collection_deprecated_spec.rb} +12 -6
  88. data/spec/models/ansible_ansible_repository_response_spec.rb +6 -0
  89. data/spec/models/ansible_collection_remote_response_spec.rb +6 -6
  90. data/spec/models/ansible_collection_version_response_spec.rb +8 -2
  91. data/spec/models/ansible_collection_version_signature_response_spec.rb +6 -0
  92. data/spec/models/ansible_git_remote_response_spec.rb +17 -17
  93. data/spec/models/ansible_git_remote_spec.rb +20 -20
  94. data/spec/models/ansible_role_remote_response_spec.rb +6 -6
  95. data/spec/models/ansible_role_response_spec.rb +8 -2
  96. data/spec/models/{paginated_galaxy_collection_version_response_list_spec.rb → paginatedansible_ansible_collection_deprecated_response_list_spec.rb} +6 -6
  97. data/spec/models/patchedansible_git_remote_spec.rb +20 -20
  98. data/spec/models/repository_response_spec.rb +6 -0
  99. data/spec/models/repository_version_response_spec.rb +6 -0
  100. metadata +135 -159
  101. data/docs/ApiCollectionsApi.md +0 -112
  102. data/docs/GalaxyCollection.md +0 -23
  103. data/docs/GalaxyCollectionResponse.md +0 -31
  104. data/docs/GalaxyCollectionVersionResponse.md +0 -27
  105. data/docs/GalaxyDetailApi.md +0 -61
  106. data/docs/PaginatedGalaxyCollectionResponseList.md +0 -23
  107. data/docs/PaginatedGalaxyCollectionVersionResponseList.md +0 -23
  108. data/docs/PulpAnsibleApiV2CollectionsVersionsApi.md +0 -66
  109. data/lib/pulp_ansible_client/api/api_collections_api.rb +0 -159
  110. data/lib/pulp_ansible_client/api/galaxy_detail_api.rb +0 -88
  111. data/lib/pulp_ansible_client/api/pulp_ansible_api_v2_collections_versions_api.rb +0 -104
  112. data/lib/pulp_ansible_client/models/galaxy_collection.rb +0 -292
  113. data/lib/pulp_ansible_client/models/galaxy_collection_response.rb +0 -294
  114. data/lib/pulp_ansible_client/models/paginated_galaxy_collection_version_response_list.rb +0 -237
  115. data/spec/api/api_collections_api_spec.rb +0 -61
  116. data/spec/api/galaxy_detail_api_spec.rb +0 -48
  117. data/spec/api/pulp_ansible_api_v2_collections_versions_api_spec.rb +0 -51
  118. data/spec/models/galaxy_collection_response_spec.rb +0 -83
  119. data/spec/models/galaxy_collection_spec.rb +0 -59
  120. data/spec/models/paginated_galaxy_collection_response_list_spec.rb +0 -59
@@ -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://pulp*
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::PaginatedGalaxyCollectionResponseList
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **count** | **Integer** | | [optional]
8
- **_next** | **String** | | [optional]
9
- **previous** | **String** | | [optional]
10
- **results** | [**Array&lt;GalaxyCollectionResponse&gt;**](GalaxyCollectionResponse.md) | | [optional]
11
-
12
- ## Code Sample
13
-
14
- ```ruby
15
- require 'PulpAnsibleClient'
16
-
17
- instance = PulpAnsibleClient::PaginatedGalaxyCollectionResponseList.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,23 +0,0 @@
1
- # PulpAnsibleClient::PaginatedGalaxyCollectionVersionResponseList
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **count** | **Integer** | | [optional]
8
- **_next** | **String** | | [optional]
9
- **previous** | **String** | | [optional]
10
- **results** | [**Array&lt;GalaxyCollectionVersionResponse&gt;**](GalaxyCollectionVersionResponse.md) | | [optional]
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://pulp*
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
@@ -1,104 +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 PulpAnsibleApiV2CollectionsVersionsApi
17
- attr_accessor :api_client
18
-
19
- def initialize(api_client = ApiClient.default)
20
- @api_client = api_client
21
- end
22
- # Return a response to the \"GET\" action.
23
- # @param name [String]
24
- # @param namespace [String]
25
- # @param path [String]
26
- # @param version [String]
27
- # @param [Hash] opts the optional parameters
28
- # @option opts [Array<String>] :fields A list of fields to include in the response.
29
- # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
30
- # @return [nil]
31
- def get(name, namespace, path, version, opts = {})
32
- get_with_http_info(name, namespace, path, version, opts)
33
- nil
34
- end
35
-
36
- # Return a response to the \&quot;GET\&quot; action.
37
- # @param name [String]
38
- # @param namespace [String]
39
- # @param path [String]
40
- # @param version [String]
41
- # @param [Hash] opts the optional parameters
42
- # @option opts [Array<String>] :fields A list of fields to include in the response.
43
- # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
44
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
45
- def get_with_http_info(name, namespace, path, version, opts = {})
46
- if @api_client.config.debugging
47
- @api_client.config.logger.debug 'Calling API: PulpAnsibleApiV2CollectionsVersionsApi.get ...'
48
- end
49
- # verify the required parameter 'name' is set
50
- if @api_client.config.client_side_validation && name.nil?
51
- fail ArgumentError, "Missing the required parameter 'name' when calling PulpAnsibleApiV2CollectionsVersionsApi.get"
52
- end
53
- # verify the required parameter 'namespace' is set
54
- if @api_client.config.client_side_validation && namespace.nil?
55
- fail ArgumentError, "Missing the required parameter 'namespace' when calling PulpAnsibleApiV2CollectionsVersionsApi.get"
56
- end
57
- # verify the required parameter 'path' is set
58
- if @api_client.config.client_side_validation && path.nil?
59
- fail ArgumentError, "Missing the required parameter 'path' when calling PulpAnsibleApiV2CollectionsVersionsApi.get"
60
- end
61
- # verify the required parameter 'version' is set
62
- if @api_client.config.client_side_validation && version.nil?
63
- fail ArgumentError, "Missing the required parameter 'version' when calling PulpAnsibleApiV2CollectionsVersionsApi.get"
64
- end
65
- # resource path
66
- local_var_path = '/pulp_ansible/galaxy/{path}/api/v2/collections/{namespace}/{name}/versions/{version}/'.sub('{' + 'name' + '}', CGI.escape(name.to_s).gsub('%2F', '/')).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s).gsub('%2F', '/')).sub('{' + 'path' + '}', CGI.escape(path.to_s).gsub('%2F', '/')).sub('{' + 'version' + '}', CGI.escape(version.to_s).gsub('%2F', '/'))
67
-
68
- # query parameters
69
- query_params = opts[:query_params] || {}
70
- query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
71
- query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
72
-
73
- # header parameters
74
- header_params = opts[:header_params] || {}
75
-
76
- # form parameters
77
- form_params = opts[:form_params] || {}
78
-
79
- # http body (model)
80
- post_body = opts[:body]
81
-
82
- # return_type
83
- return_type = opts[:return_type]
84
-
85
- # auth_names
86
- auth_names = opts[:auth_names] || []
87
-
88
- new_options = opts.merge(
89
- :header_params => header_params,
90
- :query_params => query_params,
91
- :form_params => form_params,
92
- :body => post_body,
93
- :auth_names => auth_names,
94
- :return_type => return_type
95
- )
96
-
97
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
98
- if @api_client.config.debugging
99
- @api_client.config.logger.debug "API called: PulpAnsibleApiV2CollectionsVersionsApi#get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
100
- end
101
- return data, status_code, headers
102
- end
103
- end
104
- end