pulp_ansible_client 0.12.1 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (136) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +52 -5
  3. data/docs/AnsibleAnsibleRepository.md +3 -1
  4. data/docs/AnsibleAnsibleRepositoryResponse.md +3 -1
  5. data/docs/AnsibleCollectionVersionResponse.md +4 -4
  6. data/docs/AnsibleCollectionVersionSignature.md +21 -0
  7. data/docs/AnsibleCollectionVersionSignatureResponse.md +2 -2
  8. data/docs/AnsibleGitRemote.md +27 -27
  9. data/docs/AnsibleGitRemoteResponse.md +23 -23
  10. data/docs/AnsibleRoleResponse.md +4 -4
  11. data/docs/CollectionVersionListResponse.md +25 -0
  12. data/docs/ContentCollectionSignaturesApi.md +64 -4
  13. data/docs/KeyringEnum.md +16 -0
  14. data/docs/{PaginatedCollectionVersionResponseList.md → PaginatedCollectionVersionListResponseList.md} +3 -3
  15. data/docs/PatchedansibleAnsibleRepository.md +3 -1
  16. data/docs/PatchedansibleGitRemote.md +27 -27
  17. data/docs/PulpAnsibleApiV3Api.md +8 -2
  18. data/docs/PulpAnsibleApiV3ArtifactsCollectionsApi.md +68 -0
  19. data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +8 -2
  20. data/docs/PulpAnsibleApiV3CollectionsAllApi.md +8 -2
  21. data/docs/PulpAnsibleApiV3CollectionsApi.md +81 -6
  22. data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +77 -6
  23. data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +8 -2
  24. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +75 -0
  25. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +69 -0
  26. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +69 -0
  27. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +70 -0
  28. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +264 -0
  29. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +223 -0
  30. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +75 -0
  31. data/docs/PulpAnsibleArtifactsCollectionsV3Api.md +205 -1
  32. data/docs/PulpAnsibleDefaultApiApi.md +50 -0
  33. data/docs/PulpAnsibleDefaultApiV3Api.md +57 -0
  34. data/docs/PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md +68 -0
  35. data/docs/PulpAnsibleDefaultApiV3CollectionVersionsAllApi.md +57 -0
  36. data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +71 -0
  37. data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +248 -0
  38. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +211 -0
  39. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +71 -0
  40. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +73 -0
  41. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +67 -0
  42. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +67 -0
  43. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +68 -0
  44. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +256 -0
  45. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +217 -0
  46. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +73 -0
  47. data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +79 -4
  48. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_api.rb +3 -3
  49. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_artifacts_collections_api.rb +92 -0
  50. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collection_versions_all_api.rb +3 -3
  51. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_all_api.rb +3 -3
  52. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_api.rb +81 -9
  53. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +87 -9
  54. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_docs_blob_api.rb +3 -3
  55. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api.rb +103 -0
  56. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_versions_api.rb +94 -0
  57. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_api.rb +94 -0
  58. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_artifacts_api.rb +98 -0
  59. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api.rb +357 -0
  60. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +313 -0
  61. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api.rb +112 -0
  62. data/lib/pulp_ansible_client/api/pulp_ansible_artifacts_collections_v3_api.rb +298 -1
  63. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_api.rb +74 -0
  64. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_api.rb +76 -0
  65. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_artifacts_collections_api.rb +92 -0
  66. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collection_versions_all_api.rb +76 -0
  67. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_all_api.rb +91 -0
  68. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_api.rb +309 -0
  69. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +277 -0
  70. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_docs_blob_api.rb +100 -0
  71. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api.rb +97 -0
  72. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_versions_api.rb +88 -0
  73. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_api.rb +88 -0
  74. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_artifacts_api.rb +92 -0
  75. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api.rb +333 -0
  76. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +295 -0
  77. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api.rb +106 -0
  78. data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +15 -5
  79. data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +15 -5
  80. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +14 -14
  81. data/lib/pulp_ansible_client/models/ansible_collection_version_signature.rb +238 -0
  82. data/lib/pulp_ansible_client/models/ansible_collection_version_signature_response.rb +0 -5
  83. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +225 -225
  84. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +130 -130
  85. data/lib/pulp_ansible_client/models/ansible_role_response.rb +14 -14
  86. data/lib/pulp_ansible_client/models/collection_version_list_response.rb +269 -0
  87. data/lib/pulp_ansible_client/models/keyring_enum.rb +40 -0
  88. data/lib/pulp_ansible_client/models/{paginated_collection_version_response_list.rb → paginated_collection_version_list_response_list.rb} +4 -4
  89. data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +15 -5
  90. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +220 -220
  91. data/lib/pulp_ansible_client/version.rb +1 -1
  92. data/lib/pulp_ansible_client.rb +27 -1
  93. data/spec/api/content_collection_signatures_api_spec.rb +16 -2
  94. data/spec/api/pulp_ansible_api_v3_api_spec.rb +1 -1
  95. data/spec/api/pulp_ansible_api_v3_artifacts_collections_api_spec.rb +49 -0
  96. data/spec/api/pulp_ansible_api_v3_collection_versions_all_api_spec.rb +1 -1
  97. data/spec/api/pulp_ansible_api_v3_collections_all_api_spec.rb +1 -1
  98. data/spec/api/pulp_ansible_api_v3_collections_api_spec.rb +16 -3
  99. data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +17 -3
  100. data/spec/api/pulp_ansible_api_v3_collections_versions_docs_blob_api_spec.rb +1 -1
  101. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +52 -0
  102. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_versions_api_spec.rb +49 -0
  103. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_api_spec.rb +49 -0
  104. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_artifacts_api_spec.rb +50 -0
  105. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api_spec.rb +99 -0
  106. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +94 -0
  107. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api_spec.rb +52 -0
  108. data/spec/api/pulp_ansible_artifacts_collections_v3_api_spec.rb +51 -0
  109. data/spec/api/pulp_ansible_default_api_api_spec.rb +45 -0
  110. data/spec/api/pulp_ansible_default_api_v3_api_spec.rb +45 -0
  111. data/spec/api/pulp_ansible_default_api_v3_artifacts_collections_api_spec.rb +49 -0
  112. data/spec/api/pulp_ansible_default_api_v3_collection_versions_all_api_spec.rb +45 -0
  113. data/spec/api/pulp_ansible_default_api_v3_collections_all_api_spec.rb +50 -0
  114. data/spec/api/pulp_ansible_default_api_v3_collections_api_spec.rb +91 -0
  115. data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +88 -0
  116. data/spec/api/pulp_ansible_default_api_v3_collections_versions_docs_blob_api_spec.rb +50 -0
  117. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +51 -0
  118. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_versions_api_spec.rb +48 -0
  119. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_api_spec.rb +48 -0
  120. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_artifacts_api_spec.rb +49 -0
  121. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api_spec.rb +95 -0
  122. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +91 -0
  123. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_docs_blob_api_spec.rb +51 -0
  124. data/spec/models/ansible_ansible_repository_response_spec.rb +6 -0
  125. data/spec/models/ansible_ansible_repository_spec.rb +6 -0
  126. data/spec/models/ansible_collection_version_response_spec.rb +2 -2
  127. data/spec/models/ansible_collection_version_signature_spec.rb +53 -0
  128. data/spec/models/ansible_git_remote_response_spec.rb +18 -18
  129. data/spec/models/ansible_git_remote_spec.rb +19 -19
  130. data/spec/models/ansible_role_response_spec.rb +2 -2
  131. data/spec/models/collection_version_list_response_spec.rb +65 -0
  132. data/spec/models/keyring_enum_spec.rb +35 -0
  133. data/spec/models/{paginated_collection_version_response_list_spec.rb → paginated_collection_version_list_response_list_spec.rb} +6 -6
  134. data/spec/models/patchedansible_ansible_repository_spec.rb +6 -0
  135. data/spec/models/patchedansible_git_remote_spec.rb +19 -19
  136. metadata +109 -5
@@ -19,6 +19,81 @@ module PulpAnsibleClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
+ # Create a collection version signature
23
+ # Trigger an asynchronous task to create content,optionally create new repository version.
24
+ # @param file [File] An uploaded file that may be turned into the artifact of the content unit.
25
+ # @param signed_collection [String] The content this signature is pointing to.
26
+ # @param [Hash] opts the optional parameters
27
+ # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
28
+ # @return [AsyncOperationResponse]
29
+ def create(file, signed_collection, opts = {})
30
+ data, _status_code, _headers = create_with_http_info(file, signed_collection, opts)
31
+ data
32
+ end
33
+
34
+ # Create a collection version signature
35
+ # Trigger an asynchronous task to create content,optionally create new repository version.
36
+ # @param file [File] An uploaded file that may be turned into the artifact of the content unit.
37
+ # @param signed_collection [String] The content this signature is pointing to.
38
+ # @param [Hash] opts the optional parameters
39
+ # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
40
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
41
+ def create_with_http_info(file, signed_collection, opts = {})
42
+ if @api_client.config.debugging
43
+ @api_client.config.logger.debug 'Calling API: ContentCollectionSignaturesApi.create ...'
44
+ end
45
+ # verify the required parameter 'file' is set
46
+ if @api_client.config.client_side_validation && file.nil?
47
+ fail ArgumentError, "Missing the required parameter 'file' when calling ContentCollectionSignaturesApi.create"
48
+ end
49
+ # verify the required parameter 'signed_collection' is set
50
+ if @api_client.config.client_side_validation && signed_collection.nil?
51
+ fail ArgumentError, "Missing the required parameter 'signed_collection' when calling ContentCollectionSignaturesApi.create"
52
+ end
53
+ # resource path
54
+ local_var_path = '/pulp/api/v3/content/ansible/collection_signatures/'
55
+
56
+ # query parameters
57
+ query_params = opts[:query_params] || {}
58
+
59
+ # header parameters
60
+ header_params = opts[:header_params] || {}
61
+ # HTTP header 'Accept' (if needed)
62
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
63
+ # HTTP header 'Content-Type'
64
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/x-www-form-urlencoded'])
65
+
66
+ # form parameters
67
+ form_params = opts[:form_params] || {}
68
+ form_params['file'] = file
69
+ form_params['signed_collection'] = signed_collection
70
+ form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
71
+
72
+ # http body (model)
73
+ post_body = opts[:body]
74
+
75
+ # return_type
76
+ return_type = opts[:return_type] || 'AsyncOperationResponse'
77
+
78
+ # auth_names
79
+ auth_names = opts[:auth_names] || ['basicAuth']
80
+
81
+ new_options = opts.merge(
82
+ :header_params => header_params,
83
+ :query_params => query_params,
84
+ :form_params => form_params,
85
+ :body => post_body,
86
+ :auth_names => auth_names,
87
+ :return_type => return_type
88
+ )
89
+
90
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
91
+ if @api_client.config.debugging
92
+ @api_client.config.logger.debug "API called: ContentCollectionSignaturesApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
93
+ end
94
+ return data, status_code, headers
95
+ end
96
+
22
97
  # List collection version signatures
23
98
  # ViewSet for looking at signature objects for CollectionVersion content.
24
99
  # @param [Hash] opts the optional parameters
@@ -30,8 +105,8 @@ module PulpAnsibleClient
30
105
  # @option opts [String] :repository_version Repository Version referenced by HREF
31
106
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
32
107
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
33
- # @option opts [String] :signed_collection Filter results where signed_collection matches value
34
- # @option opts [String] :signing_service Filter results where signing_service matches value
108
+ # @option opts [String] :signed_collection Filter signatures for collection version
109
+ # @option opts [String] :signing_service Filter signatures produced by signature service
35
110
  # @option opts [String] :fields A list of fields to include in the response.
36
111
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
37
112
  # @return [PaginatedansibleCollectionVersionSignatureResponseList]
@@ -51,8 +126,8 @@ module PulpAnsibleClient
51
126
  # @option opts [String] :repository_version Repository Version referenced by HREF
52
127
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
53
128
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
54
- # @option opts [String] :signed_collection Filter results where signed_collection matches value
55
- # @option opts [String] :signing_service Filter results where signing_service matches value
129
+ # @option opts [String] :signed_collection Filter signatures for collection version
130
+ # @option opts [String] :signing_service Filter signatures produced by signature service
56
131
  # @option opts [String] :fields A list of fields to include in the response.
57
132
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
58
133
  # @return [Array<(PaginatedansibleCollectionVersionSignatureResponseList, Integer, Hash)>] PaginatedansibleCollectionVersionSignatureResponseList data, response status code and response headers
@@ -19,7 +19,7 @@ module PulpAnsibleClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # ViewSet for Repository Metadata.
22
+ # Legacy v3 endpoint.
23
23
  # @param path [String]
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @option opts [String] :fields A list of fields to include in the response.
@@ -30,7 +30,7 @@ module PulpAnsibleClient
30
30
  data
31
31
  end
32
32
 
33
- # ViewSet for Repository Metadata.
33
+ # Legacy v3 endpoint.
34
34
  # @param path [String]
35
35
  # @param [Hash] opts the optional parameters
36
36
  # @option opts [String] :fields A list of fields to include in the response.
@@ -67,7 +67,7 @@ module PulpAnsibleClient
67
67
  return_type = opts[:return_type] || 'RepoMetadataResponse'
68
68
 
69
69
  # auth_names
70
- auth_names = opts[:auth_names] || []
70
+ auth_names = opts[:auth_names] || ['basicAuth']
71
71
 
72
72
  new_options = opts.merge(
73
73
  :header_params => header_params,
@@ -0,0 +1,92 @@
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 PulpAnsibleApiV3ArtifactsCollectionsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Download collection.
23
+ # @param filename [String]
24
+ # @param path [String]
25
+ # @param [Hash] opts the optional parameters
26
+ # @option opts [String] :fields A list of fields to include in the response.
27
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
28
+ # @return [nil]
29
+ def get(filename, path, opts = {})
30
+ get_with_http_info(filename, path, opts)
31
+ nil
32
+ end
33
+
34
+ # Download collection.
35
+ # @param filename [String]
36
+ # @param path [String]
37
+ # @param [Hash] opts the optional parameters
38
+ # @option opts [String] :fields A list of fields to include in the response.
39
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
40
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
41
+ def get_with_http_info(filename, path, opts = {})
42
+ if @api_client.config.debugging
43
+ @api_client.config.logger.debug 'Calling API: PulpAnsibleApiV3ArtifactsCollectionsApi.get ...'
44
+ end
45
+ # verify the required parameter 'filename' is set
46
+ if @api_client.config.client_side_validation && filename.nil?
47
+ fail ArgumentError, "Missing the required parameter 'filename' when calling PulpAnsibleApiV3ArtifactsCollectionsApi.get"
48
+ end
49
+ # verify the required parameter 'path' is set
50
+ if @api_client.config.client_side_validation && path.nil?
51
+ fail ArgumentError, "Missing the required parameter 'path' when calling PulpAnsibleApiV3ArtifactsCollectionsApi.get"
52
+ end
53
+ # resource path
54
+ local_var_path = '/pulp_ansible/galaxy/{path}/api/v3/artifacts/collections/{path}/{filename}'.sub('{' + 'filename' + '}', CGI.escape(filename.to_s).gsub('%2F', '/')).sub('{' + 'path' + '}', CGI.escape(path.to_s).gsub('%2F', '/'))
55
+
56
+ # query parameters
57
+ query_params = opts[:query_params] || {}
58
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
59
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
60
+
61
+ # header parameters
62
+ header_params = opts[:header_params] || {}
63
+
64
+ # form parameters
65
+ form_params = opts[:form_params] || {}
66
+
67
+ # http body (model)
68
+ post_body = opts[:body]
69
+
70
+ # return_type
71
+ return_type = opts[:return_type]
72
+
73
+ # auth_names
74
+ auth_names = opts[:auth_names] || ['basicAuth']
75
+
76
+ new_options = opts.merge(
77
+ :header_params => header_params,
78
+ :query_params => query_params,
79
+ :form_params => form_params,
80
+ :body => post_body,
81
+ :auth_names => auth_names,
82
+ :return_type => return_type
83
+ )
84
+
85
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
86
+ if @api_client.config.debugging
87
+ @api_client.config.logger.debug "API called: PulpAnsibleApiV3ArtifactsCollectionsApi#get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
88
+ end
89
+ return data, status_code, headers
90
+ end
91
+ end
92
+ end
@@ -19,7 +19,7 @@ module PulpAnsibleClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # Returns paginated CollectionVersions list.
22
+ # Legacy v3 endpoint.
23
23
  # @param path [String]
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @option opts [String] :fields A list of fields to include in the response.
@@ -30,7 +30,7 @@ module PulpAnsibleClient
30
30
  data
31
31
  end
32
32
 
33
- # Returns paginated CollectionVersions list.
33
+ # Legacy v3 endpoint.
34
34
  # @param path [String]
35
35
  # @param [Hash] opts the optional parameters
36
36
  # @option opts [String] :fields A list of fields to include in the response.
@@ -67,7 +67,7 @@ module PulpAnsibleClient
67
67
  return_type = opts[:return_type] || 'Array<UnpaginatedCollectionVersionResponse>'
68
68
 
69
69
  # auth_names
70
- auth_names = opts[:auth_names] || []
70
+ auth_names = opts[:auth_names] || ['basicAuth']
71
71
 
72
72
  new_options = opts.merge(
73
73
  :header_params => header_params,
@@ -19,7 +19,7 @@ module PulpAnsibleClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # Unpaginated ViewSet for Collections.
22
+ # Legacy v3 endpoint.
23
23
  # @param path [String]
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @option opts [Boolean] :deprecated
@@ -33,7 +33,7 @@ module PulpAnsibleClient
33
33
  data
34
34
  end
35
35
 
36
- # Unpaginated ViewSet for Collections.
36
+ # Legacy v3 endpoint.
37
37
  # @param path [String]
38
38
  # @param [Hash] opts the optional parameters
39
39
  # @option opts [Boolean] :deprecated
@@ -76,7 +76,7 @@ module PulpAnsibleClient
76
76
  return_type = opts[:return_type] || 'Array<CollectionResponse>'
77
77
 
78
78
  # auth_names
79
- auth_names = opts[:auth_names] || []
79
+ auth_names = opts[:auth_names] || ['basicAuth']
80
80
 
81
81
  new_options = opts.merge(
82
82
  :header_params => header_params,
@@ -19,7 +19,79 @@ module PulpAnsibleClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # ViewSet for Collections.
22
+ # Legacy v3 endpoint.
23
+ # @param name [String]
24
+ # @param namespace [String]
25
+ # @param path [String]
26
+ # @param [Hash] opts the optional parameters
27
+ # @return [AsyncOperationResponse]
28
+ def delete(name, namespace, path, opts = {})
29
+ data, _status_code, _headers = delete_with_http_info(name, namespace, path, opts)
30
+ data
31
+ end
32
+
33
+ # Legacy v3 endpoint.
34
+ # @param name [String]
35
+ # @param namespace [String]
36
+ # @param path [String]
37
+ # @param [Hash] opts the optional parameters
38
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
39
+ def delete_with_http_info(name, namespace, path, opts = {})
40
+ if @api_client.config.debugging
41
+ @api_client.config.logger.debug 'Calling API: PulpAnsibleApiV3CollectionsApi.delete ...'
42
+ end
43
+ # verify the required parameter 'name' is set
44
+ if @api_client.config.client_side_validation && name.nil?
45
+ fail ArgumentError, "Missing the required parameter 'name' when calling PulpAnsibleApiV3CollectionsApi.delete"
46
+ end
47
+ # verify the required parameter 'namespace' is set
48
+ if @api_client.config.client_side_validation && namespace.nil?
49
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling PulpAnsibleApiV3CollectionsApi.delete"
50
+ end
51
+ # verify the required parameter 'path' is set
52
+ if @api_client.config.client_side_validation && path.nil?
53
+ fail ArgumentError, "Missing the required parameter 'path' when calling PulpAnsibleApiV3CollectionsApi.delete"
54
+ end
55
+ # resource path
56
+ 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', '/'))
57
+
58
+ # query parameters
59
+ query_params = opts[:query_params] || {}
60
+
61
+ # header parameters
62
+ header_params = opts[:header_params] || {}
63
+ # HTTP header 'Accept' (if needed)
64
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
65
+
66
+ # form parameters
67
+ form_params = opts[:form_params] || {}
68
+
69
+ # http body (model)
70
+ post_body = opts[:body]
71
+
72
+ # return_type
73
+ return_type = opts[:return_type] || 'AsyncOperationResponse'
74
+
75
+ # auth_names
76
+ auth_names = opts[:auth_names] || ['basicAuth']
77
+
78
+ new_options = opts.merge(
79
+ :header_params => header_params,
80
+ :query_params => query_params,
81
+ :form_params => form_params,
82
+ :body => post_body,
83
+ :auth_names => auth_names,
84
+ :return_type => return_type
85
+ )
86
+
87
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
88
+ if @api_client.config.debugging
89
+ @api_client.config.logger.debug "API called: PulpAnsibleApiV3CollectionsApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
90
+ end
91
+ return data, status_code, headers
92
+ end
93
+
94
+ # Legacy v3 endpoint.
23
95
  # @param path [String]
24
96
  # @param [Hash] opts the optional parameters
25
97
  # @option opts [Boolean] :deprecated
@@ -35,7 +107,7 @@ module PulpAnsibleClient
35
107
  data
36
108
  end
37
109
 
38
- # ViewSet for Collections.
110
+ # Legacy v3 endpoint.
39
111
  # @param path [String]
40
112
  # @param [Hash] opts the optional parameters
41
113
  # @option opts [Boolean] :deprecated
@@ -82,7 +154,7 @@ module PulpAnsibleClient
82
154
  return_type = opts[:return_type] || 'PaginatedCollectionResponseList'
83
155
 
84
156
  # auth_names
85
- auth_names = opts[:auth_names] || []
157
+ auth_names = opts[:auth_names] || ['basicAuth']
86
158
 
87
159
  new_options = opts.merge(
88
160
  :header_params => header_params,
@@ -100,7 +172,7 @@ module PulpAnsibleClient
100
172
  return data, status_code, headers
101
173
  end
102
174
 
103
- # ViewSet for Collections.
175
+ # Legacy v3 endpoint.
104
176
  # @param name [String]
105
177
  # @param namespace [String]
106
178
  # @param path [String]
@@ -113,7 +185,7 @@ module PulpAnsibleClient
113
185
  data
114
186
  end
115
187
 
116
- # ViewSet for Collections.
188
+ # Legacy v3 endpoint.
117
189
  # @param name [String]
118
190
  # @param namespace [String]
119
191
  # @param path [String]
@@ -160,7 +232,7 @@ module PulpAnsibleClient
160
232
  return_type = opts[:return_type] || 'CollectionResponse'
161
233
 
162
234
  # auth_names
163
- auth_names = opts[:auth_names] || []
235
+ auth_names = opts[:auth_names] || ['basicAuth']
164
236
 
165
237
  new_options = opts.merge(
166
238
  :header_params => header_params,
@@ -178,7 +250,7 @@ module PulpAnsibleClient
178
250
  return data, status_code, headers
179
251
  end
180
252
 
181
- # Trigger an asynchronous update task
253
+ # Legacy v3 endpoint.
182
254
  # @param name [String]
183
255
  # @param namespace [String]
184
256
  # @param path [String]
@@ -190,7 +262,7 @@ module PulpAnsibleClient
190
262
  data
191
263
  end
192
264
 
193
- # Trigger an asynchronous update task
265
+ # Legacy v3 endpoint.
194
266
  # @param name [String]
195
267
  # @param namespace [String]
196
268
  # @param path [String]
@@ -240,7 +312,7 @@ module PulpAnsibleClient
240
312
  return_type = opts[:return_type] || 'AsyncOperationResponse'
241
313
 
242
314
  # auth_names
243
- auth_names = opts[:auth_names] || []
315
+ auth_names = opts[:auth_names] || ['basicAuth']
244
316
 
245
317
  new_options = opts.merge(
246
318
  :header_params => header_params,
@@ -19,7 +19,85 @@ module PulpAnsibleClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # Returns paginated CollectionVersions list.
22
+ # Legacy v3 endpoint.
23
+ # @param name [String]
24
+ # @param namespace [String]
25
+ # @param path [String]
26
+ # @param version [String]
27
+ # @param [Hash] opts the optional parameters
28
+ # @return [AsyncOperationResponse]
29
+ def delete(name, namespace, path, version, opts = {})
30
+ data, _status_code, _headers = delete_with_http_info(name, namespace, path, version, opts)
31
+ data
32
+ end
33
+
34
+ # Legacy v3 endpoint.
35
+ # @param name [String]
36
+ # @param namespace [String]
37
+ # @param path [String]
38
+ # @param version [String]
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
41
+ def delete_with_http_info(name, namespace, path, version, opts = {})
42
+ if @api_client.config.debugging
43
+ @api_client.config.logger.debug 'Calling API: PulpAnsibleApiV3CollectionsVersionsApi.delete ...'
44
+ end
45
+ # verify the required parameter 'name' is set
46
+ if @api_client.config.client_side_validation && name.nil?
47
+ fail ArgumentError, "Missing the required parameter 'name' when calling PulpAnsibleApiV3CollectionsVersionsApi.delete"
48
+ end
49
+ # verify the required parameter 'namespace' is set
50
+ if @api_client.config.client_side_validation && namespace.nil?
51
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling PulpAnsibleApiV3CollectionsVersionsApi.delete"
52
+ end
53
+ # verify the required parameter 'path' is set
54
+ if @api_client.config.client_side_validation && path.nil?
55
+ fail ArgumentError, "Missing the required parameter 'path' when calling PulpAnsibleApiV3CollectionsVersionsApi.delete"
56
+ end
57
+ # verify the required parameter 'version' is set
58
+ if @api_client.config.client_side_validation && version.nil?
59
+ fail ArgumentError, "Missing the required parameter 'version' when calling PulpAnsibleApiV3CollectionsVersionsApi.delete"
60
+ end
61
+ # resource path
62
+ 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', '/'))
63
+
64
+ # query parameters
65
+ query_params = opts[:query_params] || {}
66
+
67
+ # header parameters
68
+ header_params = opts[:header_params] || {}
69
+ # HTTP header 'Accept' (if needed)
70
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
71
+
72
+ # form parameters
73
+ form_params = opts[:form_params] || {}
74
+
75
+ # http body (model)
76
+ post_body = opts[:body]
77
+
78
+ # return_type
79
+ return_type = opts[:return_type] || 'AsyncOperationResponse'
80
+
81
+ # auth_names
82
+ auth_names = opts[:auth_names] || ['basicAuth']
83
+
84
+ new_options = opts.merge(
85
+ :header_params => header_params,
86
+ :query_params => query_params,
87
+ :form_params => form_params,
88
+ :body => post_body,
89
+ :auth_names => auth_names,
90
+ :return_type => return_type
91
+ )
92
+
93
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
94
+ if @api_client.config.debugging
95
+ @api_client.config.logger.debug "API called: PulpAnsibleApiV3CollectionsVersionsApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
96
+ end
97
+ return data, status_code, headers
98
+ end
99
+
100
+ # Legacy v3 endpoint.
23
101
  # @param name [String]
24
102
  # @param namespace [String]
25
103
  # @param path [String]
@@ -37,13 +115,13 @@ module PulpAnsibleClient
37
115
  # @option opts [String] :version Filter results where version matches value
38
116
  # @option opts [String] :fields A list of fields to include in the response.
39
117
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
40
- # @return [PaginatedCollectionVersionResponseList]
118
+ # @return [PaginatedCollectionVersionListResponseList]
41
119
  def list(name, namespace, path, opts = {})
42
120
  data, _status_code, _headers = list_with_http_info(name, namespace, path, opts)
43
121
  data
44
122
  end
45
123
 
46
- # Returns paginated CollectionVersions list.
124
+ # Legacy v3 endpoint.
47
125
  # @param name [String]
48
126
  # @param namespace [String]
49
127
  # @param path [String]
@@ -61,7 +139,7 @@ module PulpAnsibleClient
61
139
  # @option opts [String] :version Filter results where version matches value
62
140
  # @option opts [String] :fields A list of fields to include in the response.
63
141
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
64
- # @return [Array<(PaginatedCollectionVersionResponseList, Integer, Hash)>] PaginatedCollectionVersionResponseList data, response status code and response headers
142
+ # @return [Array<(PaginatedCollectionVersionListResponseList, Integer, Hash)>] PaginatedCollectionVersionListResponseList data, response status code and response headers
65
143
  def list_with_http_info(name, namespace, path, opts = {})
66
144
  if @api_client.config.debugging
67
145
  @api_client.config.logger.debug 'Calling API: PulpAnsibleApiV3CollectionsVersionsApi.list ...'
@@ -109,10 +187,10 @@ module PulpAnsibleClient
109
187
  post_body = opts[:body]
110
188
 
111
189
  # return_type
112
- return_type = opts[:return_type] || 'PaginatedCollectionVersionResponseList'
190
+ return_type = opts[:return_type] || 'PaginatedCollectionVersionListResponseList'
113
191
 
114
192
  # auth_names
115
- auth_names = opts[:auth_names] || []
193
+ auth_names = opts[:auth_names] || ['basicAuth']
116
194
 
117
195
  new_options = opts.merge(
118
196
  :header_params => header_params,
@@ -130,7 +208,7 @@ module PulpAnsibleClient
130
208
  return data, status_code, headers
131
209
  end
132
210
 
133
- # Returns a CollectionVersion object.
211
+ # Legacy v3 endpoint.
134
212
  # @param name [String]
135
213
  # @param namespace [String]
136
214
  # @param path [String]
@@ -144,7 +222,7 @@ module PulpAnsibleClient
144
222
  data
145
223
  end
146
224
 
147
- # Returns a CollectionVersion object.
225
+ # Legacy v3 endpoint.
148
226
  # @param name [String]
149
227
  # @param namespace [String]
150
228
  # @param path [String]
@@ -196,7 +274,7 @@ module PulpAnsibleClient
196
274
  return_type = opts[:return_type] || 'CollectionVersionResponse'
197
275
 
198
276
  # auth_names
199
- auth_names = opts[:auth_names] || []
277
+ auth_names = opts[:auth_names] || ['basicAuth']
200
278
 
201
279
  new_options = opts.merge(
202
280
  :header_params => header_params,
@@ -19,7 +19,7 @@ module PulpAnsibleClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # Returns a CollectionVersion object.
22
+ # Legacy v3 endpoint.
23
23
  # @param name [String]
24
24
  # @param namespace [String]
25
25
  # @param path [String]
@@ -33,7 +33,7 @@ module PulpAnsibleClient
33
33
  data
34
34
  end
35
35
 
36
- # Returns a CollectionVersion object.
36
+ # Legacy v3 endpoint.
37
37
  # @param name [String]
38
38
  # @param namespace [String]
39
39
  # @param path [String]
@@ -85,7 +85,7 @@ module PulpAnsibleClient
85
85
  return_type = opts[:return_type] || 'CollectionVersionDocsResponse'
86
86
 
87
87
  # auth_names
88
- auth_names = opts[:auth_names] || []
88
+ auth_names = opts[:auth_names] || ['basicAuth']
89
89
 
90
90
  new_options = opts.merge(
91
91
  :header_params => header_params,