pulp_ansible_client 0.8.1 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +15 -15
  3. data/docs/AnsibleCollectionRemote.md +7 -5
  4. data/docs/AnsibleCollectionRemoteResponse.md +7 -5
  5. data/docs/AnsibleCollectionVersionResponse.md +3 -3
  6. data/docs/AnsibleRoleRemote.md +7 -5
  7. data/docs/AnsibleRoleRemoteResponse.md +7 -5
  8. data/docs/AnsibleRoleResponse.md +3 -3
  9. data/docs/PatchedansibleCollectionRemote.md +7 -5
  10. data/docs/PatchedansibleRoleRemote.md +7 -5
  11. data/docs/{PulpAnsibleGalaxyApiV2VersionsApi.md → PulpAnsibleApiV2CollectionsVersionsApi.md} +4 -4
  12. data/docs/{PulpAnsibleGalaxyV3Api.md → PulpAnsibleApiV3Api.md} +4 -4
  13. data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +61 -0
  14. data/docs/PulpAnsibleApiV3CollectionsAllApi.md +67 -0
  15. data/docs/{PulpAnsibleGalaxyApiCollectionsApi.md → PulpAnsibleApiV3CollectionsApi.md} +12 -12
  16. data/docs/{PulpAnsibleGalaxyApiV3VersionsApi.md → PulpAnsibleApiV3CollectionsVersionsApi.md} +7 -7
  17. data/docs/{PulpAnsibleGalaxyApiV3CollectionsDocsBlobApi.md → PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md} +4 -4
  18. data/docs/{PulpAnsibleGalaxyApiV3CollectionsApi.md → PulpAnsibleArtifactsCollectionsV3Api.md} +4 -4
  19. data/lib/pulp_ansible_client/api/{pulp_ansible_galaxy_api_v2_versions_api.rb → pulp_ansible_api_v2_collections_versions_api.rb} +7 -7
  20. data/lib/pulp_ansible_client/api/{pulp_ansible_galaxy_v3_api.rb → pulp_ansible_api_v3_api.rb} +4 -4
  21. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collection_versions_all_api.rb +88 -0
  22. data/lib/pulp_ansible_client/api/{pulp_ansible_galaxy_api_v3_all_api.rb → pulp_ansible_api_v3_collections_all_api.rb} +9 -75
  23. data/lib/pulp_ansible_client/api/{pulp_ansible_galaxy_api_collections_api.rb → pulp_ansible_api_v3_collections_api.rb} +17 -17
  24. data/lib/pulp_ansible_client/api/{pulp_ansible_galaxy_api_v3_versions_api.rb → pulp_ansible_api_v3_collections_versions_api.rb} +12 -12
  25. data/lib/pulp_ansible_client/api/{pulp_ansible_galaxy_api_v3_collections_docs_blob_api.rb → pulp_ansible_api_v3_collections_versions_docs_blob_api.rb} +7 -7
  26. data/lib/pulp_ansible_client/api/{pulp_ansible_galaxy_api_v3_collections_api.rb → pulp_ansible_artifacts_collections_v3_api.rb} +5 -5
  27. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +18 -6
  28. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +18 -6
  29. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +11 -11
  30. data/lib/pulp_ansible_client/models/ansible_role_remote.rb +18 -6
  31. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +18 -6
  32. data/lib/pulp_ansible_client/models/ansible_role_response.rb +11 -11
  33. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +18 -6
  34. data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +18 -6
  35. data/lib/pulp_ansible_client/version.rb +1 -1
  36. data/lib/pulp_ansible_client.rb +8 -7
  37. data/spec/api/{pulp_ansible_galaxy_api_v2_versions_api_spec.rb → pulp_ansible_api_v2_collections_versions_api_spec.rb} +6 -6
  38. data/spec/api/{pulp_ansible_galaxy_v3_api_spec.rb → pulp_ansible_api_v3_api_spec.rb} +6 -6
  39. data/spec/api/pulp_ansible_api_v3_collection_versions_all_api_spec.rb +48 -0
  40. data/spec/api/{pulp_ansible_galaxy_api_v3_all_api_spec.rb → pulp_ansible_api_v3_collections_all_api_spec.rb} +8 -21
  41. data/spec/api/{pulp_ansible_galaxy_api_collections_api_spec.rb → pulp_ansible_api_v3_collections_api_spec.rb} +7 -7
  42. data/spec/api/{pulp_ansible_galaxy_api_v3_versions_api_spec.rb → pulp_ansible_api_v3_collections_versions_api_spec.rb} +6 -6
  43. data/spec/api/{pulp_ansible_galaxy_api_v3_collections_docs_blob_api_spec.rb → pulp_ansible_api_v3_collections_versions_docs_blob_api_spec.rb} +6 -6
  44. data/spec/api/{pulp_ansible_galaxy_api_v3_collections_api_spec.rb → pulp_ansible_artifacts_collections_v3_api_spec.rb} +6 -6
  45. data/spec/models/ansible_collection_remote_response_spec.rb +6 -0
  46. data/spec/models/ansible_collection_remote_spec.rb +6 -0
  47. data/spec/models/ansible_collection_version_response_spec.rb +3 -3
  48. data/spec/models/ansible_role_remote_response_spec.rb +6 -0
  49. data/spec/models/ansible_role_remote_spec.rb +6 -0
  50. data/spec/models/ansible_role_response_spec.rb +3 -3
  51. data/spec/models/patchedansible_collection_remote_spec.rb +6 -0
  52. data/spec/models/patchedansible_role_remote_spec.rb +6 -0
  53. metadata +33 -29
  54. data/docs/PulpAnsibleGalaxyApiV3AllApi.md +0 -120
@@ -1,10 +1,10 @@
1
- # PulpAnsibleClient::PulpAnsibleGalaxyApiV3CollectionsDocsBlobApi
1
+ # PulpAnsibleClient::PulpAnsibleApiV3CollectionsVersionsDocsBlobApi
2
2
 
3
3
  All URIs are relative to *http://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
- [**read**](PulpAnsibleGalaxyApiV3CollectionsDocsBlobApi.md#read) | **GET** /pulp_ansible/galaxy/{path}/api/v3/collections/{namespace}/{name}/versions/{version}/docs-blob/ |
7
+ [**read**](PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md#read) | **GET** /pulp_ansible/galaxy/{path}/api/v3/collections/{namespace}/{name}/versions/{version}/docs-blob/ |
8
8
 
9
9
 
10
10
 
@@ -22,7 +22,7 @@ Returns a CollectionVersion object.
22
22
  # load the gem
23
23
  require 'pulp_ansible_client'
24
24
 
25
- api_instance = PulpAnsibleClient::PulpAnsibleGalaxyApiV3CollectionsDocsBlobApi.new
25
+ api_instance = PulpAnsibleClient::PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.new
26
26
  name = 'name_example' # String |
27
27
  namespace = 'namespace_example' # String |
28
28
  path = 'path_example' # String |
@@ -36,7 +36,7 @@ begin
36
36
  result = api_instance.read(name, namespace, path, version, opts)
37
37
  p result
38
38
  rescue PulpAnsibleClient::ApiError => e
39
- puts "Exception when calling PulpAnsibleGalaxyApiV3CollectionsDocsBlobApi->read: #{e}"
39
+ puts "Exception when calling PulpAnsibleApiV3CollectionsVersionsDocsBlobApi->read: #{e}"
40
40
  end
41
41
  ```
42
42
 
@@ -1,10 +1,10 @@
1
- # PulpAnsibleClient::PulpAnsibleGalaxyApiV3CollectionsApi
1
+ # PulpAnsibleClient::PulpAnsibleArtifactsCollectionsV3Api
2
2
 
3
3
  All URIs are relative to *http://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
- [**create**](PulpAnsibleGalaxyApiV3CollectionsApi.md#create) | **POST** /pulp_ansible/galaxy/{path}/api/v3/artifacts/collections/ | Upload a collection
7
+ [**create**](PulpAnsibleArtifactsCollectionsV3Api.md#create) | **POST** /pulp_ansible/galaxy/{path}/api/v3/artifacts/collections/ | Upload a collection
8
8
 
9
9
 
10
10
 
@@ -22,7 +22,7 @@ Create an artifact and trigger an asynchronous task to create Collection content
22
22
  # load the gem
23
23
  require 'pulp_ansible_client'
24
24
 
25
- api_instance = PulpAnsibleClient::PulpAnsibleGalaxyApiV3CollectionsApi.new
25
+ api_instance = PulpAnsibleClient::PulpAnsibleArtifactsCollectionsV3Api.new
26
26
  path = 'path_example' # String |
27
27
  file = File.new('/path/to/file') # File | The Collection tarball.
28
28
  opts = {
@@ -37,7 +37,7 @@ begin
37
37
  result = api_instance.create(path, file, opts)
38
38
  p result
39
39
  rescue PulpAnsibleClient::ApiError => e
40
- puts "Exception when calling PulpAnsibleGalaxyApiV3CollectionsApi->create: #{e}"
40
+ puts "Exception when calling PulpAnsibleArtifactsCollectionsV3Api->create: #{e}"
41
41
  end
42
42
  ```
43
43
 
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'cgi'
14
14
 
15
15
  module PulpAnsibleClient
16
- class PulpAnsibleGalaxyApiV2VersionsApi
16
+ class PulpAnsibleApiV2CollectionsVersionsApi
17
17
  attr_accessor :api_client
18
18
 
19
19
  def initialize(api_client = ApiClient.default)
@@ -44,23 +44,23 @@ module PulpAnsibleClient
44
44
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
45
45
  def get_with_http_info(name, namespace, path, version, opts = {})
46
46
  if @api_client.config.debugging
47
- @api_client.config.logger.debug 'Calling API: PulpAnsibleGalaxyApiV2VersionsApi.get ...'
47
+ @api_client.config.logger.debug 'Calling API: PulpAnsibleApiV2CollectionsVersionsApi.get ...'
48
48
  end
49
49
  # verify the required parameter 'name' is set
50
50
  if @api_client.config.client_side_validation && name.nil?
51
- fail ArgumentError, "Missing the required parameter 'name' when calling PulpAnsibleGalaxyApiV2VersionsApi.get"
51
+ fail ArgumentError, "Missing the required parameter 'name' when calling PulpAnsibleApiV2CollectionsVersionsApi.get"
52
52
  end
53
53
  # verify the required parameter 'namespace' is set
54
54
  if @api_client.config.client_side_validation && namespace.nil?
55
- fail ArgumentError, "Missing the required parameter 'namespace' when calling PulpAnsibleGalaxyApiV2VersionsApi.get"
55
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling PulpAnsibleApiV2CollectionsVersionsApi.get"
56
56
  end
57
57
  # verify the required parameter 'path' is set
58
58
  if @api_client.config.client_side_validation && path.nil?
59
- fail ArgumentError, "Missing the required parameter 'path' when calling PulpAnsibleGalaxyApiV2VersionsApi.get"
59
+ fail ArgumentError, "Missing the required parameter 'path' when calling PulpAnsibleApiV2CollectionsVersionsApi.get"
60
60
  end
61
61
  # verify the required parameter 'version' is set
62
62
  if @api_client.config.client_side_validation && version.nil?
63
- fail ArgumentError, "Missing the required parameter 'version' when calling PulpAnsibleGalaxyApiV2VersionsApi.get"
63
+ fail ArgumentError, "Missing the required parameter 'version' when calling PulpAnsibleApiV2CollectionsVersionsApi.get"
64
64
  end
65
65
  # resource path
66
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', '/'))
@@ -96,7 +96,7 @@ module PulpAnsibleClient
96
96
 
97
97
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
98
98
  if @api_client.config.debugging
99
- @api_client.config.logger.debug "API called: PulpAnsibleGalaxyApiV2VersionsApi#get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
99
+ @api_client.config.logger.debug "API called: PulpAnsibleApiV2CollectionsVersionsApi#get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
100
100
  end
101
101
  return data, status_code, headers
102
102
  end
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'cgi'
14
14
 
15
15
  module PulpAnsibleClient
16
- class PulpAnsibleGalaxyV3Api
16
+ class PulpAnsibleApiV3Api
17
17
  attr_accessor :api_client
18
18
 
19
19
  def initialize(api_client = ApiClient.default)
@@ -38,11 +38,11 @@ module PulpAnsibleClient
38
38
  # @return [Array<(RepoMetadataResponse, Integer, Hash)>] RepoMetadataResponse data, response status code and response headers
39
39
  def read_with_http_info(path, opts = {})
40
40
  if @api_client.config.debugging
41
- @api_client.config.logger.debug 'Calling API: PulpAnsibleGalaxyV3Api.read ...'
41
+ @api_client.config.logger.debug 'Calling API: PulpAnsibleApiV3Api.read ...'
42
42
  end
43
43
  # verify the required parameter 'path' is set
44
44
  if @api_client.config.client_side_validation && path.nil?
45
- fail ArgumentError, "Missing the required parameter 'path' when calling PulpAnsibleGalaxyV3Api.read"
45
+ fail ArgumentError, "Missing the required parameter 'path' when calling PulpAnsibleApiV3Api.read"
46
46
  end
47
47
  # resource path
48
48
  local_var_path = '/pulp_ansible/galaxy/{path}/api/v3/'.sub('{' + 'path' + '}', CGI.escape(path.to_s).gsub('%2F', '/'))
@@ -80,7 +80,7 @@ module PulpAnsibleClient
80
80
 
81
81
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
82
82
  if @api_client.config.debugging
83
- @api_client.config.logger.debug "API called: PulpAnsibleGalaxyV3Api#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
83
+ @api_client.config.logger.debug "API called: PulpAnsibleApiV3Api#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
84
84
  end
85
85
  return data, status_code, headers
86
86
  end
@@ -0,0 +1,88 @@
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 PulpAnsibleApiV3CollectionVersionsAllApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Returns paginated CollectionVersions list.
23
+ # @param path [String]
24
+ # @param [Hash] opts the optional parameters
25
+ # @option opts [String] :fields A list of fields to include in the response.
26
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
27
+ # @return [Array<UnpaginatedCollectionVersionResponse>]
28
+ def list(path, opts = {})
29
+ data, _status_code, _headers = list_with_http_info(path, opts)
30
+ data
31
+ end
32
+
33
+ # Returns paginated CollectionVersions list.
34
+ # @param path [String]
35
+ # @param [Hash] opts the optional parameters
36
+ # @option opts [String] :fields A list of fields to include in the response.
37
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
38
+ # @return [Array<(Array<UnpaginatedCollectionVersionResponse>, Integer, Hash)>] Array<UnpaginatedCollectionVersionResponse> data, response status code and response headers
39
+ def list_with_http_info(path, opts = {})
40
+ if @api_client.config.debugging
41
+ @api_client.config.logger.debug 'Calling API: PulpAnsibleApiV3CollectionVersionsAllApi.list ...'
42
+ end
43
+ # verify the required parameter 'path' is set
44
+ if @api_client.config.client_side_validation && path.nil?
45
+ fail ArgumentError, "Missing the required parameter 'path' when calling PulpAnsibleApiV3CollectionVersionsAllApi.list"
46
+ end
47
+ # resource path
48
+ local_var_path = '/pulp_ansible/galaxy/{path}/api/v3/collection_versions/all/'.sub('{' + 'path' + '}', CGI.escape(path.to_s).gsub('%2F', '/'))
49
+
50
+ # query parameters
51
+ query_params = opts[:query_params] || {}
52
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
53
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] 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] || 'Array<UnpaginatedCollectionVersionResponse>'
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: PulpAnsibleApiV3CollectionVersionsAllApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
84
+ end
85
+ return data, status_code, headers
86
+ end
87
+ end
88
+ end
@@ -13,108 +13,42 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'cgi'
14
14
 
15
15
  module PulpAnsibleClient
16
- class PulpAnsibleGalaxyApiV3AllApi
16
+ class PulpAnsibleApiV3CollectionsAllApi
17
17
  attr_accessor :api_client
18
18
 
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # Returns paginated CollectionVersions list.
23
- # @param path [String]
24
- # @param [Hash] opts the optional parameters
25
- # @option opts [String] :fields A list of fields to include in the response.
26
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
27
- # @return [Array<UnpaginatedCollectionVersionResponse>]
28
- def list(path, opts = {})
29
- data, _status_code, _headers = list_with_http_info(path, opts)
30
- data
31
- end
32
-
33
- # Returns paginated CollectionVersions list.
34
- # @param path [String]
35
- # @param [Hash] opts the optional parameters
36
- # @option opts [String] :fields A list of fields to include in the response.
37
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
38
- # @return [Array<(Array<UnpaginatedCollectionVersionResponse>, Integer, Hash)>] Array<UnpaginatedCollectionVersionResponse> data, response status code and response headers
39
- def list_with_http_info(path, opts = {})
40
- if @api_client.config.debugging
41
- @api_client.config.logger.debug 'Calling API: PulpAnsibleGalaxyApiV3AllApi.list ...'
42
- end
43
- # verify the required parameter 'path' is set
44
- if @api_client.config.client_side_validation && path.nil?
45
- fail ArgumentError, "Missing the required parameter 'path' when calling PulpAnsibleGalaxyApiV3AllApi.list"
46
- end
47
- # resource path
48
- local_var_path = '/pulp_ansible/galaxy/{path}/api/v3/collection_versions/all/'.sub('{' + 'path' + '}', CGI.escape(path.to_s).gsub('%2F', '/'))
49
-
50
- # query parameters
51
- query_params = opts[:query_params] || {}
52
- query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
53
- query_params[:'exclude_fields'] = opts[:'exclude_fields'] 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] || 'Array<UnpaginatedCollectionVersionResponse>'
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: PulpAnsibleGalaxyApiV3AllApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
84
- end
85
- return data, status_code, headers
86
- end
87
-
88
22
  # Unpaginated ViewSet for Collections.
89
23
  # @param path [String]
90
24
  # @param [Hash] opts the optional parameters
91
- # @option opts [String] :deprecated
25
+ # @option opts [Boolean] :deprecated
92
26
  # @option opts [String] :name
93
27
  # @option opts [String] :namespace
94
28
  # @option opts [String] :fields A list of fields to include in the response.
95
29
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
96
30
  # @return [Array<CollectionResponse>]
97
- def list_0(path, opts = {})
98
- data, _status_code, _headers = list_0_with_http_info(path, opts)
31
+ def list(path, opts = {})
32
+ data, _status_code, _headers = list_with_http_info(path, opts)
99
33
  data
100
34
  end
101
35
 
102
36
  # Unpaginated ViewSet for Collections.
103
37
  # @param path [String]
104
38
  # @param [Hash] opts the optional parameters
105
- # @option opts [String] :deprecated
39
+ # @option opts [Boolean] :deprecated
106
40
  # @option opts [String] :name
107
41
  # @option opts [String] :namespace
108
42
  # @option opts [String] :fields A list of fields to include in the response.
109
43
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
110
44
  # @return [Array<(Array<CollectionResponse>, Integer, Hash)>] Array<CollectionResponse> data, response status code and response headers
111
- def list_0_with_http_info(path, opts = {})
45
+ def list_with_http_info(path, opts = {})
112
46
  if @api_client.config.debugging
113
- @api_client.config.logger.debug 'Calling API: PulpAnsibleGalaxyApiV3AllApi.list_0 ...'
47
+ @api_client.config.logger.debug 'Calling API: PulpAnsibleApiV3CollectionsAllApi.list ...'
114
48
  end
115
49
  # verify the required parameter 'path' is set
116
50
  if @api_client.config.client_side_validation && path.nil?
117
- fail ArgumentError, "Missing the required parameter 'path' when calling PulpAnsibleGalaxyApiV3AllApi.list_0"
51
+ fail ArgumentError, "Missing the required parameter 'path' when calling PulpAnsibleApiV3CollectionsAllApi.list"
118
52
  end
119
53
  # resource path
120
54
  local_var_path = '/pulp_ansible/galaxy/{path}/api/v3/collections/all/'.sub('{' + 'path' + '}', CGI.escape(path.to_s).gsub('%2F', '/'))
@@ -155,7 +89,7 @@ module PulpAnsibleClient
155
89
 
156
90
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
157
91
  if @api_client.config.debugging
158
- @api_client.config.logger.debug "API called: PulpAnsibleGalaxyApiV3AllApi#list_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
92
+ @api_client.config.logger.debug "API called: PulpAnsibleApiV3CollectionsAllApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
159
93
  end
160
94
  return data, status_code, headers
161
95
  end
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'cgi'
14
14
 
15
15
  module PulpAnsibleClient
16
- class PulpAnsibleGalaxyApiCollectionsApi
16
+ class PulpAnsibleApiV3CollectionsApi
17
17
  attr_accessor :api_client
18
18
 
19
19
  def initialize(api_client = ApiClient.default)
@@ -22,7 +22,7 @@ module PulpAnsibleClient
22
22
  # ViewSet for Collections.
23
23
  # @param path [String]
24
24
  # @param [Hash] opts the optional parameters
25
- # @option opts [String] :deprecated
25
+ # @option opts [Boolean] :deprecated
26
26
  # @option opts [Integer] :limit Number of results to return per page.
27
27
  # @option opts [String] :name
28
28
  # @option opts [String] :namespace
@@ -38,7 +38,7 @@ module PulpAnsibleClient
38
38
  # ViewSet for Collections.
39
39
  # @param path [String]
40
40
  # @param [Hash] opts the optional parameters
41
- # @option opts [String] :deprecated
41
+ # @option opts [Boolean] :deprecated
42
42
  # @option opts [Integer] :limit Number of results to return per page.
43
43
  # @option opts [String] :name
44
44
  # @option opts [String] :namespace
@@ -48,11 +48,11 @@ module PulpAnsibleClient
48
48
  # @return [Array<(PaginatedCollectionResponseList, Integer, Hash)>] PaginatedCollectionResponseList data, response status code and response headers
49
49
  def list_with_http_info(path, opts = {})
50
50
  if @api_client.config.debugging
51
- @api_client.config.logger.debug 'Calling API: PulpAnsibleGalaxyApiCollectionsApi.list ...'
51
+ @api_client.config.logger.debug 'Calling API: PulpAnsibleApiV3CollectionsApi.list ...'
52
52
  end
53
53
  # verify the required parameter 'path' is set
54
54
  if @api_client.config.client_side_validation && path.nil?
55
- fail ArgumentError, "Missing the required parameter 'path' when calling PulpAnsibleGalaxyApiCollectionsApi.list"
55
+ fail ArgumentError, "Missing the required parameter 'path' when calling PulpAnsibleApiV3CollectionsApi.list"
56
56
  end
57
57
  # resource path
58
58
  local_var_path = '/pulp_ansible/galaxy/{path}/api/v3/collections/'.sub('{' + 'path' + '}', CGI.escape(path.to_s).gsub('%2F', '/'))
@@ -95,7 +95,7 @@ module PulpAnsibleClient
95
95
 
96
96
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
97
97
  if @api_client.config.debugging
98
- @api_client.config.logger.debug "API called: PulpAnsibleGalaxyApiCollectionsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
98
+ @api_client.config.logger.debug "API called: PulpAnsibleApiV3CollectionsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
99
99
  end
100
100
  return data, status_code, headers
101
101
  end
@@ -123,19 +123,19 @@ module PulpAnsibleClient
123
123
  # @return [Array<(CollectionResponse, Integer, Hash)>] CollectionResponse data, response status code and response headers
124
124
  def read_with_http_info(name, namespace, path, opts = {})
125
125
  if @api_client.config.debugging
126
- @api_client.config.logger.debug 'Calling API: PulpAnsibleGalaxyApiCollectionsApi.read ...'
126
+ @api_client.config.logger.debug 'Calling API: PulpAnsibleApiV3CollectionsApi.read ...'
127
127
  end
128
128
  # verify the required parameter 'name' is set
129
129
  if @api_client.config.client_side_validation && name.nil?
130
- fail ArgumentError, "Missing the required parameter 'name' when calling PulpAnsibleGalaxyApiCollectionsApi.read"
130
+ fail ArgumentError, "Missing the required parameter 'name' when calling PulpAnsibleApiV3CollectionsApi.read"
131
131
  end
132
132
  # verify the required parameter 'namespace' is set
133
133
  if @api_client.config.client_side_validation && namespace.nil?
134
- fail ArgumentError, "Missing the required parameter 'namespace' when calling PulpAnsibleGalaxyApiCollectionsApi.read"
134
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling PulpAnsibleApiV3CollectionsApi.read"
135
135
  end
136
136
  # verify the required parameter 'path' is set
137
137
  if @api_client.config.client_side_validation && path.nil?
138
- fail ArgumentError, "Missing the required parameter 'path' when calling PulpAnsibleGalaxyApiCollectionsApi.read"
138
+ fail ArgumentError, "Missing the required parameter 'path' when calling PulpAnsibleApiV3CollectionsApi.read"
139
139
  end
140
140
  # resource path
141
141
  local_var_path = '/pulp_ansible/galaxy/{path}/api/v3/collections/{namespace}/{name}/'.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', '/'))
@@ -173,7 +173,7 @@ module PulpAnsibleClient
173
173
 
174
174
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
175
175
  if @api_client.config.debugging
176
- @api_client.config.logger.debug "API called: PulpAnsibleGalaxyApiCollectionsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
176
+ @api_client.config.logger.debug "API called: PulpAnsibleApiV3CollectionsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
177
177
  end
178
178
  return data, status_code, headers
179
179
  end
@@ -199,23 +199,23 @@ module PulpAnsibleClient
199
199
  # @return [Array<(CollectionResponse, Integer, Hash)>] CollectionResponse data, response status code and response headers
200
200
  def update_with_http_info(name, namespace, path, body, opts = {})
201
201
  if @api_client.config.debugging
202
- @api_client.config.logger.debug 'Calling API: PulpAnsibleGalaxyApiCollectionsApi.update ...'
202
+ @api_client.config.logger.debug 'Calling API: PulpAnsibleApiV3CollectionsApi.update ...'
203
203
  end
204
204
  # verify the required parameter 'name' is set
205
205
  if @api_client.config.client_side_validation && name.nil?
206
- fail ArgumentError, "Missing the required parameter 'name' when calling PulpAnsibleGalaxyApiCollectionsApi.update"
206
+ fail ArgumentError, "Missing the required parameter 'name' when calling PulpAnsibleApiV3CollectionsApi.update"
207
207
  end
208
208
  # verify the required parameter 'namespace' is set
209
209
  if @api_client.config.client_side_validation && namespace.nil?
210
- fail ArgumentError, "Missing the required parameter 'namespace' when calling PulpAnsibleGalaxyApiCollectionsApi.update"
210
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling PulpAnsibleApiV3CollectionsApi.update"
211
211
  end
212
212
  # verify the required parameter 'path' is set
213
213
  if @api_client.config.client_side_validation && path.nil?
214
- fail ArgumentError, "Missing the required parameter 'path' when calling PulpAnsibleGalaxyApiCollectionsApi.update"
214
+ fail ArgumentError, "Missing the required parameter 'path' when calling PulpAnsibleApiV3CollectionsApi.update"
215
215
  end
216
216
  # verify the required parameter 'body' is set
217
217
  if @api_client.config.client_side_validation && body.nil?
218
- fail ArgumentError, "Missing the required parameter 'body' when calling PulpAnsibleGalaxyApiCollectionsApi.update"
218
+ fail ArgumentError, "Missing the required parameter 'body' when calling PulpAnsibleApiV3CollectionsApi.update"
219
219
  end
220
220
  # resource path
221
221
  local_var_path = '/pulp_ansible/galaxy/{path}/api/v3/collections/{namespace}/{name}/'.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', '/'))
@@ -253,7 +253,7 @@ module PulpAnsibleClient
253
253
 
254
254
  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
255
255
  if @api_client.config.debugging
256
- @api_client.config.logger.debug "API called: PulpAnsibleGalaxyApiCollectionsApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
256
+ @api_client.config.logger.debug "API called: PulpAnsibleApiV3CollectionsApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
257
257
  end
258
258
  return data, status_code, headers
259
259
  end
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'cgi'
14
14
 
15
15
  module PulpAnsibleClient
16
- class PulpAnsibleGalaxyApiV3VersionsApi
16
+ class PulpAnsibleApiV3CollectionsVersionsApi
17
17
  attr_accessor :api_client
18
18
 
19
19
  def initialize(api_client = ApiClient.default)
@@ -64,19 +64,19 @@ module PulpAnsibleClient
64
64
  # @return [Array<(PaginatedCollectionVersionResponseList, Integer, Hash)>] PaginatedCollectionVersionResponseList data, response status code and response headers
65
65
  def list_with_http_info(name, namespace, path, opts = {})
66
66
  if @api_client.config.debugging
67
- @api_client.config.logger.debug 'Calling API: PulpAnsibleGalaxyApiV3VersionsApi.list ...'
67
+ @api_client.config.logger.debug 'Calling API: PulpAnsibleApiV3CollectionsVersionsApi.list ...'
68
68
  end
69
69
  # verify the required parameter 'name' is set
70
70
  if @api_client.config.client_side_validation && name.nil?
71
- fail ArgumentError, "Missing the required parameter 'name' when calling PulpAnsibleGalaxyApiV3VersionsApi.list"
71
+ fail ArgumentError, "Missing the required parameter 'name' when calling PulpAnsibleApiV3CollectionsVersionsApi.list"
72
72
  end
73
73
  # verify the required parameter 'namespace' is set
74
74
  if @api_client.config.client_side_validation && namespace.nil?
75
- fail ArgumentError, "Missing the required parameter 'namespace' when calling PulpAnsibleGalaxyApiV3VersionsApi.list"
75
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling PulpAnsibleApiV3CollectionsVersionsApi.list"
76
76
  end
77
77
  # verify the required parameter 'path' is set
78
78
  if @api_client.config.client_side_validation && path.nil?
79
- fail ArgumentError, "Missing the required parameter 'path' when calling PulpAnsibleGalaxyApiV3VersionsApi.list"
79
+ fail ArgumentError, "Missing the required parameter 'path' when calling PulpAnsibleApiV3CollectionsVersionsApi.list"
80
80
  end
81
81
  # resource path
82
82
  local_var_path = '/pulp_ansible/galaxy/{path}/api/v3/collections/{namespace}/{name}/versions/'.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', '/'))
@@ -125,7 +125,7 @@ module PulpAnsibleClient
125
125
 
126
126
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
127
127
  if @api_client.config.debugging
128
- @api_client.config.logger.debug "API called: PulpAnsibleGalaxyApiV3VersionsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
128
+ @api_client.config.logger.debug "API called: PulpAnsibleApiV3CollectionsVersionsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
129
129
  end
130
130
  return data, status_code, headers
131
131
  end
@@ -155,23 +155,23 @@ module PulpAnsibleClient
155
155
  # @return [Array<(CollectionVersionResponse, Integer, Hash)>] CollectionVersionResponse data, response status code and response headers
156
156
  def read_with_http_info(name, namespace, path, version, opts = {})
157
157
  if @api_client.config.debugging
158
- @api_client.config.logger.debug 'Calling API: PulpAnsibleGalaxyApiV3VersionsApi.read ...'
158
+ @api_client.config.logger.debug 'Calling API: PulpAnsibleApiV3CollectionsVersionsApi.read ...'
159
159
  end
160
160
  # verify the required parameter 'name' is set
161
161
  if @api_client.config.client_side_validation && name.nil?
162
- fail ArgumentError, "Missing the required parameter 'name' when calling PulpAnsibleGalaxyApiV3VersionsApi.read"
162
+ fail ArgumentError, "Missing the required parameter 'name' when calling PulpAnsibleApiV3CollectionsVersionsApi.read"
163
163
  end
164
164
  # verify the required parameter 'namespace' is set
165
165
  if @api_client.config.client_side_validation && namespace.nil?
166
- fail ArgumentError, "Missing the required parameter 'namespace' when calling PulpAnsibleGalaxyApiV3VersionsApi.read"
166
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling PulpAnsibleApiV3CollectionsVersionsApi.read"
167
167
  end
168
168
  # verify the required parameter 'path' is set
169
169
  if @api_client.config.client_side_validation && path.nil?
170
- fail ArgumentError, "Missing the required parameter 'path' when calling PulpAnsibleGalaxyApiV3VersionsApi.read"
170
+ fail ArgumentError, "Missing the required parameter 'path' when calling PulpAnsibleApiV3CollectionsVersionsApi.read"
171
171
  end
172
172
  # verify the required parameter 'version' is set
173
173
  if @api_client.config.client_side_validation && version.nil?
174
- fail ArgumentError, "Missing the required parameter 'version' when calling PulpAnsibleGalaxyApiV3VersionsApi.read"
174
+ fail ArgumentError, "Missing the required parameter 'version' when calling PulpAnsibleApiV3CollectionsVersionsApi.read"
175
175
  end
176
176
  # resource path
177
177
  local_var_path = '/pulp_ansible/galaxy/{path}/api/v3/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', '/'))
@@ -209,7 +209,7 @@ module PulpAnsibleClient
209
209
 
210
210
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
211
211
  if @api_client.config.debugging
212
- @api_client.config.logger.debug "API called: PulpAnsibleGalaxyApiV3VersionsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
212
+ @api_client.config.logger.debug "API called: PulpAnsibleApiV3CollectionsVersionsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
213
213
  end
214
214
  return data, status_code, headers
215
215
  end
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'cgi'
14
14
 
15
15
  module PulpAnsibleClient
16
- class PulpAnsibleGalaxyApiV3CollectionsDocsBlobApi
16
+ class PulpAnsibleApiV3CollectionsVersionsDocsBlobApi
17
17
  attr_accessor :api_client
18
18
 
19
19
  def initialize(api_client = ApiClient.default)
@@ -44,23 +44,23 @@ module PulpAnsibleClient
44
44
  # @return [Array<(CollectionVersionDocsResponse, Integer, Hash)>] CollectionVersionDocsResponse data, response status code and response headers
45
45
  def read_with_http_info(name, namespace, path, version, opts = {})
46
46
  if @api_client.config.debugging
47
- @api_client.config.logger.debug 'Calling API: PulpAnsibleGalaxyApiV3CollectionsDocsBlobApi.read ...'
47
+ @api_client.config.logger.debug 'Calling API: PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.read ...'
48
48
  end
49
49
  # verify the required parameter 'name' is set
50
50
  if @api_client.config.client_side_validation && name.nil?
51
- fail ArgumentError, "Missing the required parameter 'name' when calling PulpAnsibleGalaxyApiV3CollectionsDocsBlobApi.read"
51
+ fail ArgumentError, "Missing the required parameter 'name' when calling PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.read"
52
52
  end
53
53
  # verify the required parameter 'namespace' is set
54
54
  if @api_client.config.client_side_validation && namespace.nil?
55
- fail ArgumentError, "Missing the required parameter 'namespace' when calling PulpAnsibleGalaxyApiV3CollectionsDocsBlobApi.read"
55
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.read"
56
56
  end
57
57
  # verify the required parameter 'path' is set
58
58
  if @api_client.config.client_side_validation && path.nil?
59
- fail ArgumentError, "Missing the required parameter 'path' when calling PulpAnsibleGalaxyApiV3CollectionsDocsBlobApi.read"
59
+ fail ArgumentError, "Missing the required parameter 'path' when calling PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.read"
60
60
  end
61
61
  # verify the required parameter 'version' is set
62
62
  if @api_client.config.client_side_validation && version.nil?
63
- fail ArgumentError, "Missing the required parameter 'version' when calling PulpAnsibleGalaxyApiV3CollectionsDocsBlobApi.read"
63
+ fail ArgumentError, "Missing the required parameter 'version' when calling PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.read"
64
64
  end
65
65
  # resource path
66
66
  local_var_path = '/pulp_ansible/galaxy/{path}/api/v3/collections/{namespace}/{name}/versions/{version}/docs-blob/'.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', '/'))
@@ -98,7 +98,7 @@ module PulpAnsibleClient
98
98
 
99
99
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
100
100
  if @api_client.config.debugging
101
- @api_client.config.logger.debug "API called: PulpAnsibleGalaxyApiV3CollectionsDocsBlobApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
101
+ @api_client.config.logger.debug "API called: PulpAnsibleApiV3CollectionsVersionsDocsBlobApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
102
102
  end
103
103
  return data, status_code, headers
104
104
  end