pulp_ostree_client 2.0.0a1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (138) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +174 -0
  4. data/Rakefile +10 -0
  5. data/docs/AsyncOperationResponse.md +17 -0
  6. data/docs/ContentCommitsApi.md +138 -0
  7. data/docs/ContentConfigsApi.md +138 -0
  8. data/docs/ContentObjectsApi.md +138 -0
  9. data/docs/ContentRefsApi.md +138 -0
  10. data/docs/ContentSummariesApi.md +138 -0
  11. data/docs/ContentSummary.md +21 -0
  12. data/docs/ContentSummaryResponse.md +21 -0
  13. data/docs/DistributionsOstreeApi.md +372 -0
  14. data/docs/OstreeOstreeCommitResponse.md +25 -0
  15. data/docs/OstreeOstreeConfigResponse.md +21 -0
  16. data/docs/OstreeOstreeDistribution.md +27 -0
  17. data/docs/OstreeOstreeDistributionResponse.md +33 -0
  18. data/docs/OstreeOstreeObjectResponse.md +27 -0
  19. data/docs/OstreeOstreeRefResponse.md +25 -0
  20. data/docs/OstreeOstreeRemote.md +59 -0
  21. data/docs/OstreeOstreeRemoteResponse.md +55 -0
  22. data/docs/OstreeOstreeRepository.md +25 -0
  23. data/docs/OstreeOstreeRepositoryResponse.md +33 -0
  24. data/docs/OstreeOstreeSummaryResponse.md +21 -0
  25. data/docs/OstreeRepoImport.md +23 -0
  26. data/docs/PaginatedRepositoryVersionResponseList.md +23 -0
  27. data/docs/PaginatedostreeOstreeCommitResponseList.md +23 -0
  28. data/docs/PaginatedostreeOstreeConfigResponseList.md +23 -0
  29. data/docs/PaginatedostreeOstreeDistributionResponseList.md +23 -0
  30. data/docs/PaginatedostreeOstreeObjectResponseList.md +23 -0
  31. data/docs/PaginatedostreeOstreeRefResponseList.md +23 -0
  32. data/docs/PaginatedostreeOstreeRemoteResponseList.md +23 -0
  33. data/docs/PaginatedostreeOstreeRepositoryResponseList.md +23 -0
  34. data/docs/PaginatedostreeOstreeSummaryResponseList.md +23 -0
  35. data/docs/PatchedostreeOstreeDistribution.md +27 -0
  36. data/docs/PatchedostreeOstreeRemote.md +59 -0
  37. data/docs/PatchedostreeOstreeRepository.md +25 -0
  38. data/docs/PolicyEnum.md +16 -0
  39. data/docs/RemotesOstreeApi.md +376 -0
  40. data/docs/RepositoriesOstreeApi.md +532 -0
  41. data/docs/RepositoriesOstreeVersionsApi.md +271 -0
  42. data/docs/RepositoryAddRemoveContent.md +21 -0
  43. data/docs/RepositorySyncURL.md +19 -0
  44. data/docs/RepositoryVersion.md +17 -0
  45. data/docs/RepositoryVersionResponse.md +27 -0
  46. data/git_push.sh +58 -0
  47. data/lib/pulp_ostree_client/api/content_commits_api.rb +170 -0
  48. data/lib/pulp_ostree_client/api/content_configs_api.rb +170 -0
  49. data/lib/pulp_ostree_client/api/content_objects_api.rb +170 -0
  50. data/lib/pulp_ostree_client/api/content_refs_api.rb +170 -0
  51. data/lib/pulp_ostree_client/api/content_summaries_api.rb +170 -0
  52. data/lib/pulp_ostree_client/api/distributions_ostree_api.rb +457 -0
  53. data/lib/pulp_ostree_client/api/remotes_ostree_api.rb +463 -0
  54. data/lib/pulp_ostree_client/api/repositories_ostree_api.rb +655 -0
  55. data/lib/pulp_ostree_client/api/repositories_ostree_versions_api.rb +339 -0
  56. data/lib/pulp_ostree_client/api_client.rb +406 -0
  57. data/lib/pulp_ostree_client/api_error.rb +57 -0
  58. data/lib/pulp_ostree_client/configuration.rb +250 -0
  59. data/lib/pulp_ostree_client/models/async_operation_response.rb +213 -0
  60. data/lib/pulp_ostree_client/models/content_summary.rb +246 -0
  61. data/lib/pulp_ostree_client/models/content_summary_response.rb +246 -0
  62. data/lib/pulp_ostree_client/models/ostree_ostree_commit_response.rb +256 -0
  63. data/lib/pulp_ostree_client/models/ostree_ostree_config_response.rb +232 -0
  64. data/lib/pulp_ostree_client/models/ostree_ostree_distribution.rb +270 -0
  65. data/lib/pulp_ostree_client/models/ostree_ostree_distribution_response.rb +299 -0
  66. data/lib/pulp_ostree_client/models/ostree_ostree_object_response.rb +275 -0
  67. data/lib/pulp_ostree_client/models/ostree_ostree_ref_response.rb +260 -0
  68. data/lib/pulp_ostree_client/models/ostree_ostree_remote.rb +536 -0
  69. data/lib/pulp_ostree_client/models/ostree_ostree_remote_response.rb +510 -0
  70. data/lib/pulp_ostree_client/models/ostree_ostree_repository.rb +270 -0
  71. data/lib/pulp_ostree_client/models/ostree_ostree_repository_response.rb +307 -0
  72. data/lib/pulp_ostree_client/models/ostree_ostree_summary_response.rb +232 -0
  73. data/lib/pulp_ostree_client/models/ostree_repo_import.rb +248 -0
  74. data/lib/pulp_ostree_client/models/paginated_repository_version_response_list.rb +237 -0
  75. data/lib/pulp_ostree_client/models/paginatedostree_ostree_commit_response_list.rb +237 -0
  76. data/lib/pulp_ostree_client/models/paginatedostree_ostree_config_response_list.rb +237 -0
  77. data/lib/pulp_ostree_client/models/paginatedostree_ostree_distribution_response_list.rb +237 -0
  78. data/lib/pulp_ostree_client/models/paginatedostree_ostree_object_response_list.rb +237 -0
  79. data/lib/pulp_ostree_client/models/paginatedostree_ostree_ref_response_list.rb +237 -0
  80. data/lib/pulp_ostree_client/models/paginatedostree_ostree_remote_response_list.rb +237 -0
  81. data/lib/pulp_ostree_client/models/paginatedostree_ostree_repository_response_list.rb +237 -0
  82. data/lib/pulp_ostree_client/models/paginatedostree_ostree_summary_response_list.rb +237 -0
  83. data/lib/pulp_ostree_client/models/patchedostree_ostree_distribution.rb +260 -0
  84. data/lib/pulp_ostree_client/models/patchedostree_ostree_remote.rb +526 -0
  85. data/lib/pulp_ostree_client/models/patchedostree_ostree_repository.rb +265 -0
  86. data/lib/pulp_ostree_client/models/policy_enum.rb +36 -0
  87. data/lib/pulp_ostree_client/models/repository_add_remove_content.rb +232 -0
  88. data/lib/pulp_ostree_client/models/repository_sync_url.rb +220 -0
  89. data/lib/pulp_ostree_client/models/repository_version.rb +208 -0
  90. data/lib/pulp_ostree_client/models/repository_version_response.rb +255 -0
  91. data/lib/pulp_ostree_client/version.rb +15 -0
  92. data/lib/pulp_ostree_client.rb +80 -0
  93. data/pulp_ostree_client.gemspec +39 -0
  94. data/spec/api/content_commits_api_spec.rb +68 -0
  95. data/spec/api/content_configs_api_spec.rb +68 -0
  96. data/spec/api/content_objects_api_spec.rb +68 -0
  97. data/spec/api/content_refs_api_spec.rb +68 -0
  98. data/spec/api/content_summaries_api_spec.rb +68 -0
  99. data/spec/api/distributions_ostree_api_spec.rb +125 -0
  100. data/spec/api/remotes_ostree_api_spec.rb +127 -0
  101. data/spec/api/repositories_ostree_api_spec.rb +160 -0
  102. data/spec/api/repositories_ostree_versions_api_spec.rb +104 -0
  103. data/spec/api_client_spec.rb +188 -0
  104. data/spec/configuration_spec.rb +42 -0
  105. data/spec/models/async_operation_response_spec.rb +41 -0
  106. data/spec/models/content_summary_response_spec.rb +53 -0
  107. data/spec/models/content_summary_spec.rb +53 -0
  108. data/spec/models/ostree_ostree_commit_response_spec.rb +65 -0
  109. data/spec/models/ostree_ostree_config_response_spec.rb +53 -0
  110. data/spec/models/ostree_ostree_distribution_response_spec.rb +89 -0
  111. data/spec/models/ostree_ostree_distribution_spec.rb +71 -0
  112. data/spec/models/ostree_ostree_object_response_spec.rb +71 -0
  113. data/spec/models/ostree_ostree_ref_response_spec.rb +65 -0
  114. data/spec/models/ostree_ostree_remote_response_spec.rb +155 -0
  115. data/spec/models/ostree_ostree_remote_spec.rb +167 -0
  116. data/spec/models/ostree_ostree_repository_response_spec.rb +89 -0
  117. data/spec/models/ostree_ostree_repository_spec.rb +65 -0
  118. data/spec/models/ostree_ostree_summary_response_spec.rb +53 -0
  119. data/spec/models/ostree_repo_import_spec.rb +59 -0
  120. data/spec/models/paginated_repository_version_response_list_spec.rb +59 -0
  121. data/spec/models/paginatedostree_ostree_commit_response_list_spec.rb +59 -0
  122. data/spec/models/paginatedostree_ostree_config_response_list_spec.rb +59 -0
  123. data/spec/models/paginatedostree_ostree_distribution_response_list_spec.rb +59 -0
  124. data/spec/models/paginatedostree_ostree_object_response_list_spec.rb +59 -0
  125. data/spec/models/paginatedostree_ostree_ref_response_list_spec.rb +59 -0
  126. data/spec/models/paginatedostree_ostree_remote_response_list_spec.rb +59 -0
  127. data/spec/models/paginatedostree_ostree_repository_response_list_spec.rb +59 -0
  128. data/spec/models/paginatedostree_ostree_summary_response_list_spec.rb +59 -0
  129. data/spec/models/patchedostree_ostree_distribution_spec.rb +71 -0
  130. data/spec/models/patchedostree_ostree_remote_spec.rb +167 -0
  131. data/spec/models/patchedostree_ostree_repository_spec.rb +65 -0
  132. data/spec/models/policy_enum_spec.rb +35 -0
  133. data/spec/models/repository_add_remove_content_spec.rb +53 -0
  134. data/spec/models/repository_sync_url_spec.rb +47 -0
  135. data/spec/models/repository_version_response_spec.rb +71 -0
  136. data/spec/models/repository_version_spec.rb +41 -0
  137. data/spec/spec_helper.rb +111 -0
  138. metadata +277 -0
@@ -0,0 +1,170 @@
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 PulpOstreeClient
16
+ class ContentSummariesApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # List ostree summarys
23
+ # A ViewSet class for OSTree repository summary files.
24
+ # @param [Hash] opts the optional parameters
25
+ # @option opts [Integer] :limit Number of results to return per page.
26
+ # @option opts [Integer] :offset The initial index from which to return the results.
27
+ # @option opts [String] :ordering Which field to use when ordering the results.
28
+ # @option opts [String] :repository_version Repository Version referenced by HREF
29
+ # @option opts [String] :repository_version_added Repository Version referenced by HREF
30
+ # @option opts [String] :repository_version_removed Repository Version referenced by HREF
31
+ # @option opts [String] :fields A list of fields to include in the response.
32
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
33
+ # @return [PaginatedostreeOstreeSummaryResponseList]
34
+ def list(opts = {})
35
+ data, _status_code, _headers = list_with_http_info(opts)
36
+ data
37
+ end
38
+
39
+ # List ostree summarys
40
+ # A ViewSet class for OSTree repository summary files.
41
+ # @param [Hash] opts the optional parameters
42
+ # @option opts [Integer] :limit Number of results to return per page.
43
+ # @option opts [Integer] :offset The initial index from which to return the results.
44
+ # @option opts [String] :ordering Which field to use when ordering the results.
45
+ # @option opts [String] :repository_version Repository Version referenced by HREF
46
+ # @option opts [String] :repository_version_added Repository Version referenced by HREF
47
+ # @option opts [String] :repository_version_removed Repository Version referenced by HREF
48
+ # @option opts [String] :fields A list of fields to include in the response.
49
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
50
+ # @return [Array<(PaginatedostreeOstreeSummaryResponseList, Integer, Hash)>] PaginatedostreeOstreeSummaryResponseList data, response status code and response headers
51
+ def list_with_http_info(opts = {})
52
+ if @api_client.config.debugging
53
+ @api_client.config.logger.debug 'Calling API: ContentSummariesApi.list ...'
54
+ end
55
+ # resource path
56
+ local_var_path = '/pulp/api/v3/content/ostree/summaries/'
57
+
58
+ # query parameters
59
+ query_params = opts[:query_params] || {}
60
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
61
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
62
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
63
+ query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
64
+ query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
65
+ query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
66
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
67
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
68
+
69
+ # header parameters
70
+ header_params = opts[:header_params] || {}
71
+ # HTTP header 'Accept' (if needed)
72
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
73
+
74
+ # form parameters
75
+ form_params = opts[:form_params] || {}
76
+
77
+ # http body (model)
78
+ post_body = opts[:body]
79
+
80
+ # return_type
81
+ return_type = opts[:return_type] || 'PaginatedostreeOstreeSummaryResponseList'
82
+
83
+ # auth_names
84
+ auth_names = opts[:auth_names] || ['basicAuth']
85
+
86
+ new_options = opts.merge(
87
+ :header_params => header_params,
88
+ :query_params => query_params,
89
+ :form_params => form_params,
90
+ :body => post_body,
91
+ :auth_names => auth_names,
92
+ :return_type => return_type
93
+ )
94
+
95
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
96
+ if @api_client.config.debugging
97
+ @api_client.config.logger.debug "API called: ContentSummariesApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
98
+ end
99
+ return data, status_code, headers
100
+ end
101
+
102
+ # Inspect an ostree summary
103
+ # A ViewSet class for OSTree repository summary files.
104
+ # @param ostree_ostree_summary_href [String]
105
+ # @param [Hash] opts the optional parameters
106
+ # @option opts [String] :fields A list of fields to include in the response.
107
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
108
+ # @return [OstreeOstreeSummaryResponse]
109
+ def read(ostree_ostree_summary_href, opts = {})
110
+ data, _status_code, _headers = read_with_http_info(ostree_ostree_summary_href, opts)
111
+ data
112
+ end
113
+
114
+ # Inspect an ostree summary
115
+ # A ViewSet class for OSTree repository summary files.
116
+ # @param ostree_ostree_summary_href [String]
117
+ # @param [Hash] opts the optional parameters
118
+ # @option opts [String] :fields A list of fields to include in the response.
119
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
120
+ # @return [Array<(OstreeOstreeSummaryResponse, Integer, Hash)>] OstreeOstreeSummaryResponse data, response status code and response headers
121
+ def read_with_http_info(ostree_ostree_summary_href, opts = {})
122
+ if @api_client.config.debugging
123
+ @api_client.config.logger.debug 'Calling API: ContentSummariesApi.read ...'
124
+ end
125
+ # verify the required parameter 'ostree_ostree_summary_href' is set
126
+ if @api_client.config.client_side_validation && ostree_ostree_summary_href.nil?
127
+ fail ArgumentError, "Missing the required parameter 'ostree_ostree_summary_href' when calling ContentSummariesApi.read"
128
+ end
129
+ # resource path
130
+ local_var_path = '{ostree_ostree_summary_href}'.sub('{' + 'ostree_ostree_summary_href' + '}', CGI.escape(ostree_ostree_summary_href.to_s).gsub('%2F', '/'))
131
+
132
+ # query parameters
133
+ query_params = opts[:query_params] || {}
134
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
135
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
136
+
137
+ # header parameters
138
+ header_params = opts[:header_params] || {}
139
+ # HTTP header 'Accept' (if needed)
140
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
141
+
142
+ # form parameters
143
+ form_params = opts[:form_params] || {}
144
+
145
+ # http body (model)
146
+ post_body = opts[:body]
147
+
148
+ # return_type
149
+ return_type = opts[:return_type] || 'OstreeOstreeSummaryResponse'
150
+
151
+ # auth_names
152
+ auth_names = opts[:auth_names] || ['basicAuth']
153
+
154
+ new_options = opts.merge(
155
+ :header_params => header_params,
156
+ :query_params => query_params,
157
+ :form_params => form_params,
158
+ :body => post_body,
159
+ :auth_names => auth_names,
160
+ :return_type => return_type
161
+ )
162
+
163
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
164
+ if @api_client.config.debugging
165
+ @api_client.config.logger.debug "API called: ContentSummariesApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
166
+ end
167
+ return data, status_code, headers
168
+ end
169
+ end
170
+ end
@@ -0,0 +1,457 @@
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 PulpOstreeClient
16
+ class DistributionsOstreeApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Create an ostree distribution
23
+ # Trigger an asynchronous create task
24
+ # @param ostree_ostree_distribution [OstreeOstreeDistribution]
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [AsyncOperationResponse]
27
+ def create(ostree_ostree_distribution, opts = {})
28
+ data, _status_code, _headers = create_with_http_info(ostree_ostree_distribution, opts)
29
+ data
30
+ end
31
+
32
+ # Create an ostree distribution
33
+ # Trigger an asynchronous create task
34
+ # @param ostree_ostree_distribution [OstreeOstreeDistribution]
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
37
+ def create_with_http_info(ostree_ostree_distribution, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: DistributionsOstreeApi.create ...'
40
+ end
41
+ # verify the required parameter 'ostree_ostree_distribution' is set
42
+ if @api_client.config.client_side_validation && ostree_ostree_distribution.nil?
43
+ fail ArgumentError, "Missing the required parameter 'ostree_ostree_distribution' when calling DistributionsOstreeApi.create"
44
+ end
45
+ # resource path
46
+ local_var_path = '/pulp/api/v3/distributions/ostree/ostree/'
47
+
48
+ # query parameters
49
+ query_params = opts[:query_params] || {}
50
+
51
+ # header parameters
52
+ header_params = opts[:header_params] || {}
53
+ # HTTP header 'Accept' (if needed)
54
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
55
+ # HTTP header 'Content-Type'
56
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
57
+
58
+ # form parameters
59
+ form_params = opts[:form_params] || {}
60
+
61
+ # http body (model)
62
+ post_body = opts[:body] || @api_client.object_to_http_body(ostree_ostree_distribution)
63
+
64
+ # return_type
65
+ return_type = opts[:return_type] || 'AsyncOperationResponse'
66
+
67
+ # auth_names
68
+ auth_names = opts[:auth_names] || ['basicAuth']
69
+
70
+ new_options = opts.merge(
71
+ :header_params => header_params,
72
+ :query_params => query_params,
73
+ :form_params => form_params,
74
+ :body => post_body,
75
+ :auth_names => auth_names,
76
+ :return_type => return_type
77
+ )
78
+
79
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
80
+ if @api_client.config.debugging
81
+ @api_client.config.logger.debug "API called: DistributionsOstreeApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
+ end
83
+ return data, status_code, headers
84
+ end
85
+
86
+ # Delete an ostree distribution
87
+ # Trigger an asynchronous delete task
88
+ # @param ostree_ostree_distribution_href [String]
89
+ # @param [Hash] opts the optional parameters
90
+ # @return [AsyncOperationResponse]
91
+ def delete(ostree_ostree_distribution_href, opts = {})
92
+ data, _status_code, _headers = delete_with_http_info(ostree_ostree_distribution_href, opts)
93
+ data
94
+ end
95
+
96
+ # Delete an ostree distribution
97
+ # Trigger an asynchronous delete task
98
+ # @param ostree_ostree_distribution_href [String]
99
+ # @param [Hash] opts the optional parameters
100
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
101
+ def delete_with_http_info(ostree_ostree_distribution_href, opts = {})
102
+ if @api_client.config.debugging
103
+ @api_client.config.logger.debug 'Calling API: DistributionsOstreeApi.delete ...'
104
+ end
105
+ # verify the required parameter 'ostree_ostree_distribution_href' is set
106
+ if @api_client.config.client_side_validation && ostree_ostree_distribution_href.nil?
107
+ fail ArgumentError, "Missing the required parameter 'ostree_ostree_distribution_href' when calling DistributionsOstreeApi.delete"
108
+ end
109
+ # resource path
110
+ local_var_path = '{ostree_ostree_distribution_href}'.sub('{' + 'ostree_ostree_distribution_href' + '}', CGI.escape(ostree_ostree_distribution_href.to_s).gsub('%2F', '/'))
111
+
112
+ # query parameters
113
+ query_params = opts[:query_params] || {}
114
+
115
+ # header parameters
116
+ header_params = opts[:header_params] || {}
117
+ # HTTP header 'Accept' (if needed)
118
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
119
+
120
+ # form parameters
121
+ form_params = opts[:form_params] || {}
122
+
123
+ # http body (model)
124
+ post_body = opts[:body]
125
+
126
+ # return_type
127
+ return_type = opts[:return_type] || 'AsyncOperationResponse'
128
+
129
+ # auth_names
130
+ auth_names = opts[:auth_names] || ['basicAuth']
131
+
132
+ new_options = opts.merge(
133
+ :header_params => header_params,
134
+ :query_params => query_params,
135
+ :form_params => form_params,
136
+ :body => post_body,
137
+ :auth_names => auth_names,
138
+ :return_type => return_type
139
+ )
140
+
141
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
142
+ if @api_client.config.debugging
143
+ @api_client.config.logger.debug "API called: DistributionsOstreeApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
144
+ end
145
+ return data, status_code, headers
146
+ end
147
+
148
+ # List ostree distributions
149
+ # A ViewSet class for OSTree distributions.
150
+ # @param [Hash] opts the optional parameters
151
+ # @option opts [String] :base_path
152
+ # @option opts [String] :base_path__contains Filter results where base_path contains value
153
+ # @option opts [String] :base_path__icontains Filter results where base_path contains value
154
+ # @option opts [Array<String>] :base_path__in Filter results where base_path is in a comma-separated list of values
155
+ # @option opts [Integer] :limit Number of results to return per page.
156
+ # @option opts [String] :name
157
+ # @option opts [String] :name__contains Filter results where name contains value
158
+ # @option opts [String] :name__icontains Filter results where name contains value
159
+ # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
160
+ # @option opts [String] :name__startswith Filter results where name starts with value
161
+ # @option opts [Integer] :offset The initial index from which to return the results.
162
+ # @option opts [String] :ordering Which field to use when ordering the results.
163
+ # @option opts [String] :pulp_label_select Filter labels by search string
164
+ # @option opts [String] :fields A list of fields to include in the response.
165
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
166
+ # @return [PaginatedostreeOstreeDistributionResponseList]
167
+ def list(opts = {})
168
+ data, _status_code, _headers = list_with_http_info(opts)
169
+ data
170
+ end
171
+
172
+ # List ostree distributions
173
+ # A ViewSet class for OSTree distributions.
174
+ # @param [Hash] opts the optional parameters
175
+ # @option opts [String] :base_path
176
+ # @option opts [String] :base_path__contains Filter results where base_path contains value
177
+ # @option opts [String] :base_path__icontains Filter results where base_path contains value
178
+ # @option opts [Array<String>] :base_path__in Filter results where base_path is in a comma-separated list of values
179
+ # @option opts [Integer] :limit Number of results to return per page.
180
+ # @option opts [String] :name
181
+ # @option opts [String] :name__contains Filter results where name contains value
182
+ # @option opts [String] :name__icontains Filter results where name contains value
183
+ # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
184
+ # @option opts [String] :name__startswith Filter results where name starts with value
185
+ # @option opts [Integer] :offset The initial index from which to return the results.
186
+ # @option opts [String] :ordering Which field to use when ordering the results.
187
+ # @option opts [String] :pulp_label_select Filter labels by search string
188
+ # @option opts [String] :fields A list of fields to include in the response.
189
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
190
+ # @return [Array<(PaginatedostreeOstreeDistributionResponseList, Integer, Hash)>] PaginatedostreeOstreeDistributionResponseList data, response status code and response headers
191
+ def list_with_http_info(opts = {})
192
+ if @api_client.config.debugging
193
+ @api_client.config.logger.debug 'Calling API: DistributionsOstreeApi.list ...'
194
+ end
195
+ # resource path
196
+ local_var_path = '/pulp/api/v3/distributions/ostree/ostree/'
197
+
198
+ # query parameters
199
+ query_params = opts[:query_params] || {}
200
+ query_params[:'base_path'] = opts[:'base_path'] if !opts[:'base_path'].nil?
201
+ query_params[:'base_path__contains'] = opts[:'base_path__contains'] if !opts[:'base_path__contains'].nil?
202
+ query_params[:'base_path__icontains'] = opts[:'base_path__icontains'] if !opts[:'base_path__icontains'].nil?
203
+ query_params[:'base_path__in'] = @api_client.build_collection_param(opts[:'base_path__in'], :csv) if !opts[:'base_path__in'].nil?
204
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
205
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
206
+ query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
207
+ query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
208
+ query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
209
+ query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
210
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
211
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
212
+ query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
213
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
214
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
215
+
216
+ # header parameters
217
+ header_params = opts[:header_params] || {}
218
+ # HTTP header 'Accept' (if needed)
219
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
220
+
221
+ # form parameters
222
+ form_params = opts[:form_params] || {}
223
+
224
+ # http body (model)
225
+ post_body = opts[:body]
226
+
227
+ # return_type
228
+ return_type = opts[:return_type] || 'PaginatedostreeOstreeDistributionResponseList'
229
+
230
+ # auth_names
231
+ auth_names = opts[:auth_names] || ['basicAuth']
232
+
233
+ new_options = opts.merge(
234
+ :header_params => header_params,
235
+ :query_params => query_params,
236
+ :form_params => form_params,
237
+ :body => post_body,
238
+ :auth_names => auth_names,
239
+ :return_type => return_type
240
+ )
241
+
242
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
243
+ if @api_client.config.debugging
244
+ @api_client.config.logger.debug "API called: DistributionsOstreeApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
245
+ end
246
+ return data, status_code, headers
247
+ end
248
+
249
+ # Update an ostree distribution
250
+ # Trigger an asynchronous partial update task
251
+ # @param ostree_ostree_distribution_href [String]
252
+ # @param patchedostree_ostree_distribution [PatchedostreeOstreeDistribution]
253
+ # @param [Hash] opts the optional parameters
254
+ # @return [AsyncOperationResponse]
255
+ def partial_update(ostree_ostree_distribution_href, patchedostree_ostree_distribution, opts = {})
256
+ data, _status_code, _headers = partial_update_with_http_info(ostree_ostree_distribution_href, patchedostree_ostree_distribution, opts)
257
+ data
258
+ end
259
+
260
+ # Update an ostree distribution
261
+ # Trigger an asynchronous partial update task
262
+ # @param ostree_ostree_distribution_href [String]
263
+ # @param patchedostree_ostree_distribution [PatchedostreeOstreeDistribution]
264
+ # @param [Hash] opts the optional parameters
265
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
266
+ def partial_update_with_http_info(ostree_ostree_distribution_href, patchedostree_ostree_distribution, opts = {})
267
+ if @api_client.config.debugging
268
+ @api_client.config.logger.debug 'Calling API: DistributionsOstreeApi.partial_update ...'
269
+ end
270
+ # verify the required parameter 'ostree_ostree_distribution_href' is set
271
+ if @api_client.config.client_side_validation && ostree_ostree_distribution_href.nil?
272
+ fail ArgumentError, "Missing the required parameter 'ostree_ostree_distribution_href' when calling DistributionsOstreeApi.partial_update"
273
+ end
274
+ # verify the required parameter 'patchedostree_ostree_distribution' is set
275
+ if @api_client.config.client_side_validation && patchedostree_ostree_distribution.nil?
276
+ fail ArgumentError, "Missing the required parameter 'patchedostree_ostree_distribution' when calling DistributionsOstreeApi.partial_update"
277
+ end
278
+ # resource path
279
+ local_var_path = '{ostree_ostree_distribution_href}'.sub('{' + 'ostree_ostree_distribution_href' + '}', CGI.escape(ostree_ostree_distribution_href.to_s).gsub('%2F', '/'))
280
+
281
+ # query parameters
282
+ query_params = opts[:query_params] || {}
283
+
284
+ # header parameters
285
+ header_params = opts[:header_params] || {}
286
+ # HTTP header 'Accept' (if needed)
287
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
288
+ # HTTP header 'Content-Type'
289
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
290
+
291
+ # form parameters
292
+ form_params = opts[:form_params] || {}
293
+
294
+ # http body (model)
295
+ post_body = opts[:body] || @api_client.object_to_http_body(patchedostree_ostree_distribution)
296
+
297
+ # return_type
298
+ return_type = opts[:return_type] || 'AsyncOperationResponse'
299
+
300
+ # auth_names
301
+ auth_names = opts[:auth_names] || ['basicAuth']
302
+
303
+ new_options = opts.merge(
304
+ :header_params => header_params,
305
+ :query_params => query_params,
306
+ :form_params => form_params,
307
+ :body => post_body,
308
+ :auth_names => auth_names,
309
+ :return_type => return_type
310
+ )
311
+
312
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
313
+ if @api_client.config.debugging
314
+ @api_client.config.logger.debug "API called: DistributionsOstreeApi#partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
315
+ end
316
+ return data, status_code, headers
317
+ end
318
+
319
+ # Inspect an ostree distribution
320
+ # A ViewSet class for OSTree distributions.
321
+ # @param ostree_ostree_distribution_href [String]
322
+ # @param [Hash] opts the optional parameters
323
+ # @option opts [String] :fields A list of fields to include in the response.
324
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
325
+ # @return [OstreeOstreeDistributionResponse]
326
+ def read(ostree_ostree_distribution_href, opts = {})
327
+ data, _status_code, _headers = read_with_http_info(ostree_ostree_distribution_href, opts)
328
+ data
329
+ end
330
+
331
+ # Inspect an ostree distribution
332
+ # A ViewSet class for OSTree distributions.
333
+ # @param ostree_ostree_distribution_href [String]
334
+ # @param [Hash] opts the optional parameters
335
+ # @option opts [String] :fields A list of fields to include in the response.
336
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
337
+ # @return [Array<(OstreeOstreeDistributionResponse, Integer, Hash)>] OstreeOstreeDistributionResponse data, response status code and response headers
338
+ def read_with_http_info(ostree_ostree_distribution_href, opts = {})
339
+ if @api_client.config.debugging
340
+ @api_client.config.logger.debug 'Calling API: DistributionsOstreeApi.read ...'
341
+ end
342
+ # verify the required parameter 'ostree_ostree_distribution_href' is set
343
+ if @api_client.config.client_side_validation && ostree_ostree_distribution_href.nil?
344
+ fail ArgumentError, "Missing the required parameter 'ostree_ostree_distribution_href' when calling DistributionsOstreeApi.read"
345
+ end
346
+ # resource path
347
+ local_var_path = '{ostree_ostree_distribution_href}'.sub('{' + 'ostree_ostree_distribution_href' + '}', CGI.escape(ostree_ostree_distribution_href.to_s).gsub('%2F', '/'))
348
+
349
+ # query parameters
350
+ query_params = opts[:query_params] || {}
351
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
352
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
353
+
354
+ # header parameters
355
+ header_params = opts[:header_params] || {}
356
+ # HTTP header 'Accept' (if needed)
357
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
358
+
359
+ # form parameters
360
+ form_params = opts[:form_params] || {}
361
+
362
+ # http body (model)
363
+ post_body = opts[:body]
364
+
365
+ # return_type
366
+ return_type = opts[:return_type] || 'OstreeOstreeDistributionResponse'
367
+
368
+ # auth_names
369
+ auth_names = opts[:auth_names] || ['basicAuth']
370
+
371
+ new_options = opts.merge(
372
+ :header_params => header_params,
373
+ :query_params => query_params,
374
+ :form_params => form_params,
375
+ :body => post_body,
376
+ :auth_names => auth_names,
377
+ :return_type => return_type
378
+ )
379
+
380
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
381
+ if @api_client.config.debugging
382
+ @api_client.config.logger.debug "API called: DistributionsOstreeApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
383
+ end
384
+ return data, status_code, headers
385
+ end
386
+
387
+ # Update an ostree distribution
388
+ # Trigger an asynchronous update task
389
+ # @param ostree_ostree_distribution_href [String]
390
+ # @param ostree_ostree_distribution [OstreeOstreeDistribution]
391
+ # @param [Hash] opts the optional parameters
392
+ # @return [AsyncOperationResponse]
393
+ def update(ostree_ostree_distribution_href, ostree_ostree_distribution, opts = {})
394
+ data, _status_code, _headers = update_with_http_info(ostree_ostree_distribution_href, ostree_ostree_distribution, opts)
395
+ data
396
+ end
397
+
398
+ # Update an ostree distribution
399
+ # Trigger an asynchronous update task
400
+ # @param ostree_ostree_distribution_href [String]
401
+ # @param ostree_ostree_distribution [OstreeOstreeDistribution]
402
+ # @param [Hash] opts the optional parameters
403
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
404
+ def update_with_http_info(ostree_ostree_distribution_href, ostree_ostree_distribution, opts = {})
405
+ if @api_client.config.debugging
406
+ @api_client.config.logger.debug 'Calling API: DistributionsOstreeApi.update ...'
407
+ end
408
+ # verify the required parameter 'ostree_ostree_distribution_href' is set
409
+ if @api_client.config.client_side_validation && ostree_ostree_distribution_href.nil?
410
+ fail ArgumentError, "Missing the required parameter 'ostree_ostree_distribution_href' when calling DistributionsOstreeApi.update"
411
+ end
412
+ # verify the required parameter 'ostree_ostree_distribution' is set
413
+ if @api_client.config.client_side_validation && ostree_ostree_distribution.nil?
414
+ fail ArgumentError, "Missing the required parameter 'ostree_ostree_distribution' when calling DistributionsOstreeApi.update"
415
+ end
416
+ # resource path
417
+ local_var_path = '{ostree_ostree_distribution_href}'.sub('{' + 'ostree_ostree_distribution_href' + '}', CGI.escape(ostree_ostree_distribution_href.to_s).gsub('%2F', '/'))
418
+
419
+ # query parameters
420
+ query_params = opts[:query_params] || {}
421
+
422
+ # header parameters
423
+ header_params = opts[:header_params] || {}
424
+ # HTTP header 'Accept' (if needed)
425
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
426
+ # HTTP header 'Content-Type'
427
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
428
+
429
+ # form parameters
430
+ form_params = opts[:form_params] || {}
431
+
432
+ # http body (model)
433
+ post_body = opts[:body] || @api_client.object_to_http_body(ostree_ostree_distribution)
434
+
435
+ # return_type
436
+ return_type = opts[:return_type] || 'AsyncOperationResponse'
437
+
438
+ # auth_names
439
+ auth_names = opts[:auth_names] || ['basicAuth']
440
+
441
+ new_options = opts.merge(
442
+ :header_params => header_params,
443
+ :query_params => query_params,
444
+ :form_params => form_params,
445
+ :body => post_body,
446
+ :auth_names => auth_names,
447
+ :return_type => return_type
448
+ )
449
+
450
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
451
+ if @api_client.config.debugging
452
+ @api_client.config.logger.debug "API called: DistributionsOstreeApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
453
+ end
454
+ return data, status_code, headers
455
+ end
456
+ end
457
+ end