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
@@ -0,0 +1,103 @@
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 PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Unpaginated ViewSet for Collections.
23
+ # @param distro_base_path [String]
24
+ # @param path [String]
25
+ # @param [Hash] opts the optional parameters
26
+ # @option opts [Boolean] :deprecated
27
+ # @option opts [String] :name
28
+ # @option opts [String] :namespace
29
+ # @option opts [String] :fields A list of fields to include in the response.
30
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
31
+ # @return [Array<CollectionResponse>]
32
+ def list(distro_base_path, path, opts = {})
33
+ data, _status_code, _headers = list_with_http_info(distro_base_path, path, opts)
34
+ data
35
+ end
36
+
37
+ # Unpaginated ViewSet for Collections.
38
+ # @param distro_base_path [String]
39
+ # @param path [String]
40
+ # @param [Hash] opts the optional parameters
41
+ # @option opts [Boolean] :deprecated
42
+ # @option opts [String] :name
43
+ # @option opts [String] :namespace
44
+ # @option opts [String] :fields A list of fields to include in the response.
45
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
46
+ # @return [Array<(Array<CollectionResponse>, Integer, Hash)>] Array<CollectionResponse> data, response status code and response headers
47
+ def list_with_http_info(distro_base_path, path, opts = {})
48
+ if @api_client.config.debugging
49
+ @api_client.config.logger.debug 'Calling API: PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.list ...'
50
+ end
51
+ # verify the required parameter 'distro_base_path' is set
52
+ if @api_client.config.client_side_validation && distro_base_path.nil?
53
+ fail ArgumentError, "Missing the required parameter 'distro_base_path' when calling PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.list"
54
+ end
55
+ # verify the required parameter 'path' is set
56
+ if @api_client.config.client_side_validation && path.nil?
57
+ fail ArgumentError, "Missing the required parameter 'path' when calling PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.list"
58
+ end
59
+ # resource path
60
+ local_var_path = '/pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/content/{distro_base_path}/collections/all-collections/'.sub('{' + 'distro_base_path' + '}', CGI.escape(distro_base_path.to_s).gsub('%2F', '/')).sub('{' + 'path' + '}', CGI.escape(path.to_s).gsub('%2F', '/'))
61
+
62
+ # query parameters
63
+ query_params = opts[:query_params] || {}
64
+ query_params[:'deprecated'] = opts[:'deprecated'] if !opts[:'deprecated'].nil?
65
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
66
+ query_params[:'namespace'] = opts[:'namespace'] if !opts[:'namespace'].nil?
67
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
68
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
69
+
70
+ # header parameters
71
+ header_params = opts[:header_params] || {}
72
+ # HTTP header 'Accept' (if needed)
73
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
74
+
75
+ # form parameters
76
+ form_params = opts[:form_params] || {}
77
+
78
+ # http body (model)
79
+ post_body = opts[:body]
80
+
81
+ # return_type
82
+ return_type = opts[:return_type] || 'Array<CollectionResponse>'
83
+
84
+ # auth_names
85
+ auth_names = opts[:auth_names] || ['basicAuth']
86
+
87
+ new_options = opts.merge(
88
+ :header_params => header_params,
89
+ :query_params => query_params,
90
+ :form_params => form_params,
91
+ :body => post_body,
92
+ :auth_names => auth_names,
93
+ :return_type => return_type
94
+ )
95
+
96
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
97
+ if @api_client.config.debugging
98
+ @api_client.config.logger.debug "API called: PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
99
+ end
100
+ return data, status_code, headers
101
+ end
102
+ end
103
+ end
@@ -0,0 +1,94 @@
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 PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi
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 distro_base_path [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 [Array<UnpaginatedCollectionVersionResponse>]
29
+ def list(distro_base_path, path, opts = {})
30
+ data, _status_code, _headers = list_with_http_info(distro_base_path, path, opts)
31
+ data
32
+ end
33
+
34
+ # Returns paginated CollectionVersions list.
35
+ # @param distro_base_path [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<(Array<UnpaginatedCollectionVersionResponse>, Integer, Hash)>] Array<UnpaginatedCollectionVersionResponse> data, response status code and response headers
41
+ def list_with_http_info(distro_base_path, path, opts = {})
42
+ if @api_client.config.debugging
43
+ @api_client.config.logger.debug 'Calling API: PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.list ...'
44
+ end
45
+ # verify the required parameter 'distro_base_path' is set
46
+ if @api_client.config.client_side_validation && distro_base_path.nil?
47
+ fail ArgumentError, "Missing the required parameter 'distro_base_path' when calling PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.list"
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 PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.list"
52
+ end
53
+ # resource path
54
+ local_var_path = '/pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/content/{distro_base_path}/collections/all-versions/'.sub('{' + 'distro_base_path' + '}', CGI.escape(distro_base_path.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
+ # 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] || 'Array<UnpaginatedCollectionVersionResponse>'
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(:GET, local_var_path, new_options)
88
+ if @api_client.config.debugging
89
+ @api_client.config.logger.debug "API called: PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
90
+ end
91
+ return data, status_code, headers
92
+ end
93
+ end
94
+ end
@@ -0,0 +1,94 @@
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 PulpAnsibleApiV3PluginAnsibleContentCollectionsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # ViewSet for Repository Metadata.
23
+ # @param distro_base_path [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 [RepoMetadataResponse]
29
+ def read(distro_base_path, path, opts = {})
30
+ data, _status_code, _headers = read_with_http_info(distro_base_path, path, opts)
31
+ data
32
+ end
33
+
34
+ # ViewSet for Repository Metadata.
35
+ # @param distro_base_path [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<(RepoMetadataResponse, Integer, Hash)>] RepoMetadataResponse data, response status code and response headers
41
+ def read_with_http_info(distro_base_path, path, opts = {})
42
+ if @api_client.config.debugging
43
+ @api_client.config.logger.debug 'Calling API: PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.read ...'
44
+ end
45
+ # verify the required parameter 'distro_base_path' is set
46
+ if @api_client.config.client_side_validation && distro_base_path.nil?
47
+ fail ArgumentError, "Missing the required parameter 'distro_base_path' when calling PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.read"
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 PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.read"
52
+ end
53
+ # resource path
54
+ local_var_path = '/pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/content/{distro_base_path}/collections/'.sub('{' + 'distro_base_path' + '}', CGI.escape(distro_base_path.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
+ # 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] || 'RepoMetadataResponse'
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(:GET, local_var_path, new_options)
88
+ if @api_client.config.debugging
89
+ @api_client.config.logger.debug "API called: PulpAnsibleApiV3PluginAnsibleContentCollectionsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
90
+ end
91
+ return data, status_code, headers
92
+ end
93
+ end
94
+ end
@@ -0,0 +1,98 @@
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 PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Collection download endpoint.
23
+ # @param distro_base_path [String]
24
+ # @param filename [String]
25
+ # @param path [String]
26
+ # @param [Hash] opts the optional parameters
27
+ # @option opts [String] :fields A list of fields to include in the response.
28
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
29
+ # @return [nil]
30
+ def download(distro_base_path, filename, path, opts = {})
31
+ download_with_http_info(distro_base_path, filename, path, opts)
32
+ nil
33
+ end
34
+
35
+ # Collection download endpoint.
36
+ # @param distro_base_path [String]
37
+ # @param filename [String]
38
+ # @param path [String]
39
+ # @param [Hash] opts the optional parameters
40
+ # @option opts [String] :fields A list of fields to include in the response.
41
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
42
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
43
+ def download_with_http_info(distro_base_path, filename, path, opts = {})
44
+ if @api_client.config.debugging
45
+ @api_client.config.logger.debug 'Calling API: PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.download ...'
46
+ end
47
+ # verify the required parameter 'distro_base_path' is set
48
+ if @api_client.config.client_side_validation && distro_base_path.nil?
49
+ fail ArgumentError, "Missing the required parameter 'distro_base_path' when calling PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.download"
50
+ end
51
+ # verify the required parameter 'filename' is set
52
+ if @api_client.config.client_side_validation && filename.nil?
53
+ fail ArgumentError, "Missing the required parameter 'filename' when calling PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.download"
54
+ end
55
+ # verify the required parameter 'path' is set
56
+ if @api_client.config.client_side_validation && path.nil?
57
+ fail ArgumentError, "Missing the required parameter 'path' when calling PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.download"
58
+ end
59
+ # resource path
60
+ local_var_path = '/pulp_ansible/galaxy/{path}/api/v3/plugin/ansible/content/{distro_base_path}/collections/artifacts/{filename}'.sub('{' + 'distro_base_path' + '}', CGI.escape(distro_base_path.to_s).gsub('%2F', '/')).sub('{' + 'filename' + '}', CGI.escape(filename.to_s).gsub('%2F', '/')).sub('{' + 'path' + '}', CGI.escape(path.to_s).gsub('%2F', '/'))
61
+
62
+ # query parameters
63
+ query_params = opts[:query_params] || {}
64
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
65
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
66
+
67
+ # header parameters
68
+ header_params = opts[:header_params] || {}
69
+
70
+ # form parameters
71
+ form_params = opts[:form_params] || {}
72
+
73
+ # http body (model)
74
+ post_body = opts[:body]
75
+
76
+ # return_type
77
+ return_type = opts[:return_type]
78
+
79
+ # auth_names
80
+ auth_names = opts[:auth_names] || ['basicAuth']
81
+
82
+ new_options = opts.merge(
83
+ :header_params => header_params,
84
+ :query_params => query_params,
85
+ :form_params => form_params,
86
+ :body => post_body,
87
+ :auth_names => auth_names,
88
+ :return_type => return_type
89
+ )
90
+
91
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
92
+ if @api_client.config.debugging
93
+ @api_client.config.logger.debug "API called: PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi#download\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
94
+ end
95
+ return data, status_code, headers
96
+ end
97
+ end
98
+ end