pulp_ansible_client 0.21.7 → 0.22.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) 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/AnsibleCollectionVersion.md +2 -2
  6. data/docs/AnsibleCollectionVersionResponse.md +10 -10
  7. data/docs/AnsibleCollectionsApi.md +60 -0
  8. data/docs/AnsibleGitRemote.md +25 -25
  9. data/docs/AnsibleGitRemoteResponse.md +22 -22
  10. data/docs/AnsibleRoleResponse.md +5 -5
  11. data/docs/CollectionImportDetailResponse.md +2 -2
  12. data/docs/CollectionMetadataResponse.md +2 -2
  13. data/docs/CollectionSummaryResponse.md +2 -2
  14. data/docs/CollectionVersionDocsResponse.md +1 -1
  15. data/docs/CollectionVersionResponse.md +2 -2
  16. data/docs/ContentCollectionDeprecationsApi.md +10 -10
  17. data/docs/ContentCollectionVersionsApi.md +2 -2
  18. data/docs/Copy.md +1 -1
  19. data/docs/{PaginatedGalaxyCollectionVersionResponseList.md → PaginatedansibleAnsibleCollectionDeprecatedResponseList.md} +5 -5
  20. data/docs/PatchedansibleGitRemote.md +25 -25
  21. data/docs/VersionsApi.md +0 -55
  22. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +68 -0
  23. data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +20 -20
  24. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +3 -3
  25. data/lib/pulp_ansible_client/api/versions_api.rb +0 -69
  26. data/lib/pulp_ansible_client/models/{ansible_collection.rb → ansible_ansible_collection_deprecated.rb} +15 -5
  27. data/lib/pulp_ansible_client/models/{galaxy_collection_version_response.rb → ansible_ansible_collection_deprecated_response.rb} +45 -54
  28. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +11 -11
  29. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +22 -22
  30. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +203 -203
  31. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +139 -139
  32. data/lib/pulp_ansible_client/models/ansible_role_response.rb +17 -17
  33. data/lib/pulp_ansible_client/models/collection_import_detail_response.rb +2 -2
  34. data/lib/pulp_ansible_client/models/collection_metadata_response.rb +2 -2
  35. data/lib/pulp_ansible_client/models/collection_summary_response.rb +2 -2
  36. data/lib/pulp_ansible_client/models/collection_version_docs_response.rb +1 -1
  37. data/lib/pulp_ansible_client/models/collection_version_response.rb +2 -2
  38. data/lib/pulp_ansible_client/models/copy.rb +1 -1
  39. data/lib/pulp_ansible_client/models/{paginated_galaxy_collection_response_list.rb → paginatedansible_ansible_collection_deprecated_response_list.rb} +4 -4
  40. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +203 -203
  41. data/lib/pulp_ansible_client/version.rb +1 -1
  42. data/lib/pulp_ansible_client.rb +3 -9
  43. data/spec/api/ansible_collections_api_spec.rb +14 -0
  44. data/spec/api/content_collection_deprecations_api_spec.rb +5 -5
  45. data/spec/api/content_collection_versions_api_spec.rb +1 -1
  46. data/spec/api/versions_api_spec.rb +0 -14
  47. data/spec/models/{galaxy_collection_version_response_spec.rb → ansible_ansible_collection_deprecated_response_spec.rb} +11 -17
  48. data/spec/models/{ansible_collection_spec.rb → ansible_ansible_collection_deprecated_spec.rb} +12 -6
  49. data/spec/models/ansible_collection_version_response_spec.rb +3 -3
  50. data/spec/models/ansible_collection_version_spec.rb +3 -3
  51. data/spec/models/ansible_git_remote_response_spec.rb +18 -18
  52. data/spec/models/ansible_git_remote_spec.rb +19 -19
  53. data/spec/models/ansible_role_response_spec.rb +3 -3
  54. data/spec/models/{paginated_galaxy_collection_version_response_list_spec.rb → paginatedansible_ansible_collection_deprecated_response_list_spec.rb} +6 -6
  55. data/spec/models/patchedansible_git_remote_spec.rb +19 -19
  56. metadata +13 -37
  57. data/docs/ApiCollectionsApi.md +0 -112
  58. data/docs/GalaxyCollection.md +0 -23
  59. data/docs/GalaxyCollectionResponse.md +0 -31
  60. data/docs/GalaxyCollectionVersionResponse.md +0 -27
  61. data/docs/GalaxyDetailApi.md +0 -61
  62. data/docs/PaginatedGalaxyCollectionResponseList.md +0 -23
  63. data/docs/PulpAnsibleApiV2CollectionsVersionsApi.md +0 -66
  64. data/lib/pulp_ansible_client/api/api_collections_api.rb +0 -159
  65. data/lib/pulp_ansible_client/api/galaxy_detail_api.rb +0 -88
  66. data/lib/pulp_ansible_client/api/pulp_ansible_api_v2_collections_versions_api.rb +0 -104
  67. data/lib/pulp_ansible_client/models/galaxy_collection.rb +0 -292
  68. data/lib/pulp_ansible_client/models/galaxy_collection_response.rb +0 -294
  69. data/lib/pulp_ansible_client/models/paginated_galaxy_collection_version_response_list.rb +0 -247
  70. data/spec/api/api_collections_api_spec.rb +0 -61
  71. data/spec/api/galaxy_detail_api_spec.rb +0 -48
  72. data/spec/api/pulp_ansible_api_v2_collections_versions_api_spec.rb +0 -51
  73. data/spec/models/galaxy_collection_response_spec.rb +0 -83
  74. data/spec/models/galaxy_collection_spec.rb +0 -59
  75. data/spec/models/paginated_galaxy_collection_response_list_spec.rb +0 -59
@@ -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
@@ -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