pulp_ostree_client 2.0.0a1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +174 -0
- data/Rakefile +10 -0
- data/docs/AsyncOperationResponse.md +17 -0
- data/docs/ContentCommitsApi.md +138 -0
- data/docs/ContentConfigsApi.md +138 -0
- data/docs/ContentObjectsApi.md +138 -0
- data/docs/ContentRefsApi.md +138 -0
- data/docs/ContentSummariesApi.md +138 -0
- data/docs/ContentSummary.md +21 -0
- data/docs/ContentSummaryResponse.md +21 -0
- data/docs/DistributionsOstreeApi.md +372 -0
- data/docs/OstreeOstreeCommitResponse.md +25 -0
- data/docs/OstreeOstreeConfigResponse.md +21 -0
- data/docs/OstreeOstreeDistribution.md +27 -0
- data/docs/OstreeOstreeDistributionResponse.md +33 -0
- data/docs/OstreeOstreeObjectResponse.md +27 -0
- data/docs/OstreeOstreeRefResponse.md +25 -0
- data/docs/OstreeOstreeRemote.md +59 -0
- data/docs/OstreeOstreeRemoteResponse.md +55 -0
- data/docs/OstreeOstreeRepository.md +25 -0
- data/docs/OstreeOstreeRepositoryResponse.md +33 -0
- data/docs/OstreeOstreeSummaryResponse.md +21 -0
- data/docs/OstreeRepoImport.md +23 -0
- data/docs/PaginatedRepositoryVersionResponseList.md +23 -0
- data/docs/PaginatedostreeOstreeCommitResponseList.md +23 -0
- data/docs/PaginatedostreeOstreeConfigResponseList.md +23 -0
- data/docs/PaginatedostreeOstreeDistributionResponseList.md +23 -0
- data/docs/PaginatedostreeOstreeObjectResponseList.md +23 -0
- data/docs/PaginatedostreeOstreeRefResponseList.md +23 -0
- data/docs/PaginatedostreeOstreeRemoteResponseList.md +23 -0
- data/docs/PaginatedostreeOstreeRepositoryResponseList.md +23 -0
- data/docs/PaginatedostreeOstreeSummaryResponseList.md +23 -0
- data/docs/PatchedostreeOstreeDistribution.md +27 -0
- data/docs/PatchedostreeOstreeRemote.md +59 -0
- data/docs/PatchedostreeOstreeRepository.md +25 -0
- data/docs/PolicyEnum.md +16 -0
- data/docs/RemotesOstreeApi.md +376 -0
- data/docs/RepositoriesOstreeApi.md +532 -0
- data/docs/RepositoriesOstreeVersionsApi.md +271 -0
- data/docs/RepositoryAddRemoveContent.md +21 -0
- data/docs/RepositorySyncURL.md +19 -0
- data/docs/RepositoryVersion.md +17 -0
- data/docs/RepositoryVersionResponse.md +27 -0
- data/git_push.sh +58 -0
- data/lib/pulp_ostree_client/api/content_commits_api.rb +170 -0
- data/lib/pulp_ostree_client/api/content_configs_api.rb +170 -0
- data/lib/pulp_ostree_client/api/content_objects_api.rb +170 -0
- data/lib/pulp_ostree_client/api/content_refs_api.rb +170 -0
- data/lib/pulp_ostree_client/api/content_summaries_api.rb +170 -0
- data/lib/pulp_ostree_client/api/distributions_ostree_api.rb +457 -0
- data/lib/pulp_ostree_client/api/remotes_ostree_api.rb +463 -0
- data/lib/pulp_ostree_client/api/repositories_ostree_api.rb +655 -0
- data/lib/pulp_ostree_client/api/repositories_ostree_versions_api.rb +339 -0
- data/lib/pulp_ostree_client/api_client.rb +406 -0
- data/lib/pulp_ostree_client/api_error.rb +57 -0
- data/lib/pulp_ostree_client/configuration.rb +250 -0
- data/lib/pulp_ostree_client/models/async_operation_response.rb +213 -0
- data/lib/pulp_ostree_client/models/content_summary.rb +246 -0
- data/lib/pulp_ostree_client/models/content_summary_response.rb +246 -0
- data/lib/pulp_ostree_client/models/ostree_ostree_commit_response.rb +256 -0
- data/lib/pulp_ostree_client/models/ostree_ostree_config_response.rb +232 -0
- data/lib/pulp_ostree_client/models/ostree_ostree_distribution.rb +270 -0
- data/lib/pulp_ostree_client/models/ostree_ostree_distribution_response.rb +299 -0
- data/lib/pulp_ostree_client/models/ostree_ostree_object_response.rb +275 -0
- data/lib/pulp_ostree_client/models/ostree_ostree_ref_response.rb +260 -0
- data/lib/pulp_ostree_client/models/ostree_ostree_remote.rb +536 -0
- data/lib/pulp_ostree_client/models/ostree_ostree_remote_response.rb +510 -0
- data/lib/pulp_ostree_client/models/ostree_ostree_repository.rb +270 -0
- data/lib/pulp_ostree_client/models/ostree_ostree_repository_response.rb +307 -0
- data/lib/pulp_ostree_client/models/ostree_ostree_summary_response.rb +232 -0
- data/lib/pulp_ostree_client/models/ostree_repo_import.rb +248 -0
- data/lib/pulp_ostree_client/models/paginated_repository_version_response_list.rb +237 -0
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_commit_response_list.rb +237 -0
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_config_response_list.rb +237 -0
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_distribution_response_list.rb +237 -0
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_object_response_list.rb +237 -0
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_ref_response_list.rb +237 -0
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_remote_response_list.rb +237 -0
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_repository_response_list.rb +237 -0
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_summary_response_list.rb +237 -0
- data/lib/pulp_ostree_client/models/patchedostree_ostree_distribution.rb +260 -0
- data/lib/pulp_ostree_client/models/patchedostree_ostree_remote.rb +526 -0
- data/lib/pulp_ostree_client/models/patchedostree_ostree_repository.rb +265 -0
- data/lib/pulp_ostree_client/models/policy_enum.rb +36 -0
- data/lib/pulp_ostree_client/models/repository_add_remove_content.rb +232 -0
- data/lib/pulp_ostree_client/models/repository_sync_url.rb +220 -0
- data/lib/pulp_ostree_client/models/repository_version.rb +208 -0
- data/lib/pulp_ostree_client/models/repository_version_response.rb +255 -0
- data/lib/pulp_ostree_client/version.rb +15 -0
- data/lib/pulp_ostree_client.rb +80 -0
- data/pulp_ostree_client.gemspec +39 -0
- data/spec/api/content_commits_api_spec.rb +68 -0
- data/spec/api/content_configs_api_spec.rb +68 -0
- data/spec/api/content_objects_api_spec.rb +68 -0
- data/spec/api/content_refs_api_spec.rb +68 -0
- data/spec/api/content_summaries_api_spec.rb +68 -0
- data/spec/api/distributions_ostree_api_spec.rb +125 -0
- data/spec/api/remotes_ostree_api_spec.rb +127 -0
- data/spec/api/repositories_ostree_api_spec.rb +160 -0
- data/spec/api/repositories_ostree_versions_api_spec.rb +104 -0
- data/spec/api_client_spec.rb +188 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/async_operation_response_spec.rb +41 -0
- data/spec/models/content_summary_response_spec.rb +53 -0
- data/spec/models/content_summary_spec.rb +53 -0
- data/spec/models/ostree_ostree_commit_response_spec.rb +65 -0
- data/spec/models/ostree_ostree_config_response_spec.rb +53 -0
- data/spec/models/ostree_ostree_distribution_response_spec.rb +89 -0
- data/spec/models/ostree_ostree_distribution_spec.rb +71 -0
- data/spec/models/ostree_ostree_object_response_spec.rb +71 -0
- data/spec/models/ostree_ostree_ref_response_spec.rb +65 -0
- data/spec/models/ostree_ostree_remote_response_spec.rb +155 -0
- data/spec/models/ostree_ostree_remote_spec.rb +167 -0
- data/spec/models/ostree_ostree_repository_response_spec.rb +89 -0
- data/spec/models/ostree_ostree_repository_spec.rb +65 -0
- data/spec/models/ostree_ostree_summary_response_spec.rb +53 -0
- data/spec/models/ostree_repo_import_spec.rb +59 -0
- data/spec/models/paginated_repository_version_response_list_spec.rb +59 -0
- data/spec/models/paginatedostree_ostree_commit_response_list_spec.rb +59 -0
- data/spec/models/paginatedostree_ostree_config_response_list_spec.rb +59 -0
- data/spec/models/paginatedostree_ostree_distribution_response_list_spec.rb +59 -0
- data/spec/models/paginatedostree_ostree_object_response_list_spec.rb +59 -0
- data/spec/models/paginatedostree_ostree_ref_response_list_spec.rb +59 -0
- data/spec/models/paginatedostree_ostree_remote_response_list_spec.rb +59 -0
- data/spec/models/paginatedostree_ostree_repository_response_list_spec.rb +59 -0
- data/spec/models/paginatedostree_ostree_summary_response_list_spec.rb +59 -0
- data/spec/models/patchedostree_ostree_distribution_spec.rb +71 -0
- data/spec/models/patchedostree_ostree_remote_spec.rb +167 -0
- data/spec/models/patchedostree_ostree_repository_spec.rb +65 -0
- data/spec/models/policy_enum_spec.rb +35 -0
- data/spec/models/repository_add_remove_content_spec.rb +53 -0
- data/spec/models/repository_sync_url_spec.rb +47 -0
- data/spec/models/repository_version_response_spec.rb +71 -0
- data/spec/models/repository_version_spec.rb +41 -0
- data/spec/spec_helper.rb +111 -0
- metadata +277 -0
|
@@ -0,0 +1,655 @@
|
|
|
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 RepositoriesOstreeApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Create an ostree repository
|
|
23
|
+
# A ViewSet class for OSTree repositories.
|
|
24
|
+
# @param ostree_ostree_repository [OstreeOstreeRepository]
|
|
25
|
+
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @return [OstreeOstreeRepositoryResponse]
|
|
27
|
+
def create(ostree_ostree_repository, opts = {})
|
|
28
|
+
data, _status_code, _headers = create_with_http_info(ostree_ostree_repository, opts)
|
|
29
|
+
data
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Create an ostree repository
|
|
33
|
+
# A ViewSet class for OSTree repositories.
|
|
34
|
+
# @param ostree_ostree_repository [OstreeOstreeRepository]
|
|
35
|
+
# @param [Hash] opts the optional parameters
|
|
36
|
+
# @return [Array<(OstreeOstreeRepositoryResponse, Integer, Hash)>] OstreeOstreeRepositoryResponse data, response status code and response headers
|
|
37
|
+
def create_with_http_info(ostree_ostree_repository, opts = {})
|
|
38
|
+
if @api_client.config.debugging
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesOstreeApi.create ...'
|
|
40
|
+
end
|
|
41
|
+
# verify the required parameter 'ostree_ostree_repository' is set
|
|
42
|
+
if @api_client.config.client_side_validation && ostree_ostree_repository.nil?
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'ostree_ostree_repository' when calling RepositoriesOstreeApi.create"
|
|
44
|
+
end
|
|
45
|
+
# resource path
|
|
46
|
+
local_var_path = '/pulp/api/v3/repositories/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_repository)
|
|
63
|
+
|
|
64
|
+
# return_type
|
|
65
|
+
return_type = opts[:return_type] || 'OstreeOstreeRepositoryResponse'
|
|
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: RepositoriesOstreeApi#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 repository
|
|
87
|
+
# Trigger an asynchronous delete task
|
|
88
|
+
# @param ostree_ostree_repository_href [String]
|
|
89
|
+
# @param [Hash] opts the optional parameters
|
|
90
|
+
# @return [AsyncOperationResponse]
|
|
91
|
+
def delete(ostree_ostree_repository_href, opts = {})
|
|
92
|
+
data, _status_code, _headers = delete_with_http_info(ostree_ostree_repository_href, opts)
|
|
93
|
+
data
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# Delete an ostree repository
|
|
97
|
+
# Trigger an asynchronous delete task
|
|
98
|
+
# @param ostree_ostree_repository_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_repository_href, opts = {})
|
|
102
|
+
if @api_client.config.debugging
|
|
103
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesOstreeApi.delete ...'
|
|
104
|
+
end
|
|
105
|
+
# verify the required parameter 'ostree_ostree_repository_href' is set
|
|
106
|
+
if @api_client.config.client_side_validation && ostree_ostree_repository_href.nil?
|
|
107
|
+
fail ArgumentError, "Missing the required parameter 'ostree_ostree_repository_href' when calling RepositoriesOstreeApi.delete"
|
|
108
|
+
end
|
|
109
|
+
# resource path
|
|
110
|
+
local_var_path = '{ostree_ostree_repository_href}'.sub('{' + 'ostree_ostree_repository_href' + '}', CGI.escape(ostree_ostree_repository_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: RepositoriesOstreeApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
144
|
+
end
|
|
145
|
+
return data, status_code, headers
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
# Import commits to a repository
|
|
149
|
+
# Trigger an asynchronous task to create a new OSTree repository version.
|
|
150
|
+
# @param ostree_ostree_repository_href [String]
|
|
151
|
+
# @param ostree_repo_import [OstreeRepoImport]
|
|
152
|
+
# @param [Hash] opts the optional parameters
|
|
153
|
+
# @return [AsyncOperationResponse]
|
|
154
|
+
def import_commits(ostree_ostree_repository_href, ostree_repo_import, opts = {})
|
|
155
|
+
data, _status_code, _headers = import_commits_with_http_info(ostree_ostree_repository_href, ostree_repo_import, opts)
|
|
156
|
+
data
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
# Import commits to a repository
|
|
160
|
+
# Trigger an asynchronous task to create a new OSTree repository version.
|
|
161
|
+
# @param ostree_ostree_repository_href [String]
|
|
162
|
+
# @param ostree_repo_import [OstreeRepoImport]
|
|
163
|
+
# @param [Hash] opts the optional parameters
|
|
164
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
165
|
+
def import_commits_with_http_info(ostree_ostree_repository_href, ostree_repo_import, opts = {})
|
|
166
|
+
if @api_client.config.debugging
|
|
167
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesOstreeApi.import_commits ...'
|
|
168
|
+
end
|
|
169
|
+
# verify the required parameter 'ostree_ostree_repository_href' is set
|
|
170
|
+
if @api_client.config.client_side_validation && ostree_ostree_repository_href.nil?
|
|
171
|
+
fail ArgumentError, "Missing the required parameter 'ostree_ostree_repository_href' when calling RepositoriesOstreeApi.import_commits"
|
|
172
|
+
end
|
|
173
|
+
# verify the required parameter 'ostree_repo_import' is set
|
|
174
|
+
if @api_client.config.client_side_validation && ostree_repo_import.nil?
|
|
175
|
+
fail ArgumentError, "Missing the required parameter 'ostree_repo_import' when calling RepositoriesOstreeApi.import_commits"
|
|
176
|
+
end
|
|
177
|
+
# resource path
|
|
178
|
+
local_var_path = '{ostree_ostree_repository_href}import_commits/'.sub('{' + 'ostree_ostree_repository_href' + '}', CGI.escape(ostree_ostree_repository_href.to_s).gsub('%2F', '/'))
|
|
179
|
+
|
|
180
|
+
# query parameters
|
|
181
|
+
query_params = opts[:query_params] || {}
|
|
182
|
+
|
|
183
|
+
# header parameters
|
|
184
|
+
header_params = opts[:header_params] || {}
|
|
185
|
+
# HTTP header 'Accept' (if needed)
|
|
186
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
187
|
+
# HTTP header 'Content-Type'
|
|
188
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
|
189
|
+
|
|
190
|
+
# form parameters
|
|
191
|
+
form_params = opts[:form_params] || {}
|
|
192
|
+
|
|
193
|
+
# http body (model)
|
|
194
|
+
post_body = opts[:body] || @api_client.object_to_http_body(ostree_repo_import)
|
|
195
|
+
|
|
196
|
+
# return_type
|
|
197
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
|
198
|
+
|
|
199
|
+
# auth_names
|
|
200
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
201
|
+
|
|
202
|
+
new_options = opts.merge(
|
|
203
|
+
:header_params => header_params,
|
|
204
|
+
:query_params => query_params,
|
|
205
|
+
:form_params => form_params,
|
|
206
|
+
:body => post_body,
|
|
207
|
+
:auth_names => auth_names,
|
|
208
|
+
:return_type => return_type
|
|
209
|
+
)
|
|
210
|
+
|
|
211
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
212
|
+
if @api_client.config.debugging
|
|
213
|
+
@api_client.config.logger.debug "API called: RepositoriesOstreeApi#import_commits\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
214
|
+
end
|
|
215
|
+
return data, status_code, headers
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
# List ostree repositorys
|
|
219
|
+
# A ViewSet class for OSTree repositories.
|
|
220
|
+
# @param [Hash] opts the optional parameters
|
|
221
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
222
|
+
# @option opts [String] :name
|
|
223
|
+
# @option opts [String] :name__contains Filter results where name contains value
|
|
224
|
+
# @option opts [String] :name__icontains Filter results where name contains value
|
|
225
|
+
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
|
226
|
+
# @option opts [String] :name__startswith Filter results where name starts with value
|
|
227
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
228
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
229
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
230
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
|
231
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
232
|
+
# @return [PaginatedostreeOstreeRepositoryResponseList]
|
|
233
|
+
def list(opts = {})
|
|
234
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
|
235
|
+
data
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
# List ostree repositorys
|
|
239
|
+
# A ViewSet class for OSTree repositories.
|
|
240
|
+
# @param [Hash] opts the optional parameters
|
|
241
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
242
|
+
# @option opts [String] :name
|
|
243
|
+
# @option opts [String] :name__contains Filter results where name contains value
|
|
244
|
+
# @option opts [String] :name__icontains Filter results where name contains value
|
|
245
|
+
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
|
246
|
+
# @option opts [String] :name__startswith Filter results where name starts with value
|
|
247
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
248
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
249
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
250
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
|
251
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
252
|
+
# @return [Array<(PaginatedostreeOstreeRepositoryResponseList, Integer, Hash)>] PaginatedostreeOstreeRepositoryResponseList data, response status code and response headers
|
|
253
|
+
def list_with_http_info(opts = {})
|
|
254
|
+
if @api_client.config.debugging
|
|
255
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesOstreeApi.list ...'
|
|
256
|
+
end
|
|
257
|
+
# resource path
|
|
258
|
+
local_var_path = '/pulp/api/v3/repositories/ostree/ostree/'
|
|
259
|
+
|
|
260
|
+
# query parameters
|
|
261
|
+
query_params = opts[:query_params] || {}
|
|
262
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
263
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
|
264
|
+
query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
|
|
265
|
+
query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
|
|
266
|
+
query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
|
|
267
|
+
query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
|
|
268
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
269
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
|
270
|
+
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
|
271
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
|
272
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
|
273
|
+
|
|
274
|
+
# header parameters
|
|
275
|
+
header_params = opts[:header_params] || {}
|
|
276
|
+
# HTTP header 'Accept' (if needed)
|
|
277
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
278
|
+
|
|
279
|
+
# form parameters
|
|
280
|
+
form_params = opts[:form_params] || {}
|
|
281
|
+
|
|
282
|
+
# http body (model)
|
|
283
|
+
post_body = opts[:body]
|
|
284
|
+
|
|
285
|
+
# return_type
|
|
286
|
+
return_type = opts[:return_type] || 'PaginatedostreeOstreeRepositoryResponseList'
|
|
287
|
+
|
|
288
|
+
# auth_names
|
|
289
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
290
|
+
|
|
291
|
+
new_options = opts.merge(
|
|
292
|
+
:header_params => header_params,
|
|
293
|
+
:query_params => query_params,
|
|
294
|
+
:form_params => form_params,
|
|
295
|
+
:body => post_body,
|
|
296
|
+
:auth_names => auth_names,
|
|
297
|
+
:return_type => return_type
|
|
298
|
+
)
|
|
299
|
+
|
|
300
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
301
|
+
if @api_client.config.debugging
|
|
302
|
+
@api_client.config.logger.debug "API called: RepositoriesOstreeApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
303
|
+
end
|
|
304
|
+
return data, status_code, headers
|
|
305
|
+
end
|
|
306
|
+
|
|
307
|
+
# Modify Repository Content
|
|
308
|
+
# Trigger an asynchronous task to create a new repository version.
|
|
309
|
+
# @param ostree_ostree_repository_href [String]
|
|
310
|
+
# @param repository_add_remove_content [RepositoryAddRemoveContent]
|
|
311
|
+
# @param [Hash] opts the optional parameters
|
|
312
|
+
# @return [AsyncOperationResponse]
|
|
313
|
+
def modify(ostree_ostree_repository_href, repository_add_remove_content, opts = {})
|
|
314
|
+
data, _status_code, _headers = modify_with_http_info(ostree_ostree_repository_href, repository_add_remove_content, opts)
|
|
315
|
+
data
|
|
316
|
+
end
|
|
317
|
+
|
|
318
|
+
# Modify Repository Content
|
|
319
|
+
# Trigger an asynchronous task to create a new repository version.
|
|
320
|
+
# @param ostree_ostree_repository_href [String]
|
|
321
|
+
# @param repository_add_remove_content [RepositoryAddRemoveContent]
|
|
322
|
+
# @param [Hash] opts the optional parameters
|
|
323
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
324
|
+
def modify_with_http_info(ostree_ostree_repository_href, repository_add_remove_content, opts = {})
|
|
325
|
+
if @api_client.config.debugging
|
|
326
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesOstreeApi.modify ...'
|
|
327
|
+
end
|
|
328
|
+
# verify the required parameter 'ostree_ostree_repository_href' is set
|
|
329
|
+
if @api_client.config.client_side_validation && ostree_ostree_repository_href.nil?
|
|
330
|
+
fail ArgumentError, "Missing the required parameter 'ostree_ostree_repository_href' when calling RepositoriesOstreeApi.modify"
|
|
331
|
+
end
|
|
332
|
+
# verify the required parameter 'repository_add_remove_content' is set
|
|
333
|
+
if @api_client.config.client_side_validation && repository_add_remove_content.nil?
|
|
334
|
+
fail ArgumentError, "Missing the required parameter 'repository_add_remove_content' when calling RepositoriesOstreeApi.modify"
|
|
335
|
+
end
|
|
336
|
+
# resource path
|
|
337
|
+
local_var_path = '{ostree_ostree_repository_href}modify/'.sub('{' + 'ostree_ostree_repository_href' + '}', CGI.escape(ostree_ostree_repository_href.to_s).gsub('%2F', '/'))
|
|
338
|
+
|
|
339
|
+
# query parameters
|
|
340
|
+
query_params = opts[:query_params] || {}
|
|
341
|
+
|
|
342
|
+
# header parameters
|
|
343
|
+
header_params = opts[:header_params] || {}
|
|
344
|
+
# HTTP header 'Accept' (if needed)
|
|
345
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
346
|
+
# HTTP header 'Content-Type'
|
|
347
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
|
348
|
+
|
|
349
|
+
# form parameters
|
|
350
|
+
form_params = opts[:form_params] || {}
|
|
351
|
+
|
|
352
|
+
# http body (model)
|
|
353
|
+
post_body = opts[:body] || @api_client.object_to_http_body(repository_add_remove_content)
|
|
354
|
+
|
|
355
|
+
# return_type
|
|
356
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
|
357
|
+
|
|
358
|
+
# auth_names
|
|
359
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
360
|
+
|
|
361
|
+
new_options = opts.merge(
|
|
362
|
+
:header_params => header_params,
|
|
363
|
+
:query_params => query_params,
|
|
364
|
+
:form_params => form_params,
|
|
365
|
+
:body => post_body,
|
|
366
|
+
:auth_names => auth_names,
|
|
367
|
+
:return_type => return_type
|
|
368
|
+
)
|
|
369
|
+
|
|
370
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
371
|
+
if @api_client.config.debugging
|
|
372
|
+
@api_client.config.logger.debug "API called: RepositoriesOstreeApi#modify\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
373
|
+
end
|
|
374
|
+
return data, status_code, headers
|
|
375
|
+
end
|
|
376
|
+
|
|
377
|
+
# Update an ostree repository
|
|
378
|
+
# Trigger an asynchronous partial update task
|
|
379
|
+
# @param ostree_ostree_repository_href [String]
|
|
380
|
+
# @param patchedostree_ostree_repository [PatchedostreeOstreeRepository]
|
|
381
|
+
# @param [Hash] opts the optional parameters
|
|
382
|
+
# @return [AsyncOperationResponse]
|
|
383
|
+
def partial_update(ostree_ostree_repository_href, patchedostree_ostree_repository, opts = {})
|
|
384
|
+
data, _status_code, _headers = partial_update_with_http_info(ostree_ostree_repository_href, patchedostree_ostree_repository, opts)
|
|
385
|
+
data
|
|
386
|
+
end
|
|
387
|
+
|
|
388
|
+
# Update an ostree repository
|
|
389
|
+
# Trigger an asynchronous partial update task
|
|
390
|
+
# @param ostree_ostree_repository_href [String]
|
|
391
|
+
# @param patchedostree_ostree_repository [PatchedostreeOstreeRepository]
|
|
392
|
+
# @param [Hash] opts the optional parameters
|
|
393
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
394
|
+
def partial_update_with_http_info(ostree_ostree_repository_href, patchedostree_ostree_repository, opts = {})
|
|
395
|
+
if @api_client.config.debugging
|
|
396
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesOstreeApi.partial_update ...'
|
|
397
|
+
end
|
|
398
|
+
# verify the required parameter 'ostree_ostree_repository_href' is set
|
|
399
|
+
if @api_client.config.client_side_validation && ostree_ostree_repository_href.nil?
|
|
400
|
+
fail ArgumentError, "Missing the required parameter 'ostree_ostree_repository_href' when calling RepositoriesOstreeApi.partial_update"
|
|
401
|
+
end
|
|
402
|
+
# verify the required parameter 'patchedostree_ostree_repository' is set
|
|
403
|
+
if @api_client.config.client_side_validation && patchedostree_ostree_repository.nil?
|
|
404
|
+
fail ArgumentError, "Missing the required parameter 'patchedostree_ostree_repository' when calling RepositoriesOstreeApi.partial_update"
|
|
405
|
+
end
|
|
406
|
+
# resource path
|
|
407
|
+
local_var_path = '{ostree_ostree_repository_href}'.sub('{' + 'ostree_ostree_repository_href' + '}', CGI.escape(ostree_ostree_repository_href.to_s).gsub('%2F', '/'))
|
|
408
|
+
|
|
409
|
+
# query parameters
|
|
410
|
+
query_params = opts[:query_params] || {}
|
|
411
|
+
|
|
412
|
+
# header parameters
|
|
413
|
+
header_params = opts[:header_params] || {}
|
|
414
|
+
# HTTP header 'Accept' (if needed)
|
|
415
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
416
|
+
# HTTP header 'Content-Type'
|
|
417
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
|
418
|
+
|
|
419
|
+
# form parameters
|
|
420
|
+
form_params = opts[:form_params] || {}
|
|
421
|
+
|
|
422
|
+
# http body (model)
|
|
423
|
+
post_body = opts[:body] || @api_client.object_to_http_body(patchedostree_ostree_repository)
|
|
424
|
+
|
|
425
|
+
# return_type
|
|
426
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
|
427
|
+
|
|
428
|
+
# auth_names
|
|
429
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
430
|
+
|
|
431
|
+
new_options = opts.merge(
|
|
432
|
+
:header_params => header_params,
|
|
433
|
+
:query_params => query_params,
|
|
434
|
+
:form_params => form_params,
|
|
435
|
+
:body => post_body,
|
|
436
|
+
:auth_names => auth_names,
|
|
437
|
+
:return_type => return_type
|
|
438
|
+
)
|
|
439
|
+
|
|
440
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
441
|
+
if @api_client.config.debugging
|
|
442
|
+
@api_client.config.logger.debug "API called: RepositoriesOstreeApi#partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
443
|
+
end
|
|
444
|
+
return data, status_code, headers
|
|
445
|
+
end
|
|
446
|
+
|
|
447
|
+
# Inspect an ostree repository
|
|
448
|
+
# A ViewSet class for OSTree repositories.
|
|
449
|
+
# @param ostree_ostree_repository_href [String]
|
|
450
|
+
# @param [Hash] opts the optional parameters
|
|
451
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
|
452
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
453
|
+
# @return [OstreeOstreeRepositoryResponse]
|
|
454
|
+
def read(ostree_ostree_repository_href, opts = {})
|
|
455
|
+
data, _status_code, _headers = read_with_http_info(ostree_ostree_repository_href, opts)
|
|
456
|
+
data
|
|
457
|
+
end
|
|
458
|
+
|
|
459
|
+
# Inspect an ostree repository
|
|
460
|
+
# A ViewSet class for OSTree repositories.
|
|
461
|
+
# @param ostree_ostree_repository_href [String]
|
|
462
|
+
# @param [Hash] opts the optional parameters
|
|
463
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
|
464
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
465
|
+
# @return [Array<(OstreeOstreeRepositoryResponse, Integer, Hash)>] OstreeOstreeRepositoryResponse data, response status code and response headers
|
|
466
|
+
def read_with_http_info(ostree_ostree_repository_href, opts = {})
|
|
467
|
+
if @api_client.config.debugging
|
|
468
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesOstreeApi.read ...'
|
|
469
|
+
end
|
|
470
|
+
# verify the required parameter 'ostree_ostree_repository_href' is set
|
|
471
|
+
if @api_client.config.client_side_validation && ostree_ostree_repository_href.nil?
|
|
472
|
+
fail ArgumentError, "Missing the required parameter 'ostree_ostree_repository_href' when calling RepositoriesOstreeApi.read"
|
|
473
|
+
end
|
|
474
|
+
# resource path
|
|
475
|
+
local_var_path = '{ostree_ostree_repository_href}'.sub('{' + 'ostree_ostree_repository_href' + '}', CGI.escape(ostree_ostree_repository_href.to_s).gsub('%2F', '/'))
|
|
476
|
+
|
|
477
|
+
# query parameters
|
|
478
|
+
query_params = opts[:query_params] || {}
|
|
479
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
|
480
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
|
481
|
+
|
|
482
|
+
# header parameters
|
|
483
|
+
header_params = opts[:header_params] || {}
|
|
484
|
+
# HTTP header 'Accept' (if needed)
|
|
485
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
486
|
+
|
|
487
|
+
# form parameters
|
|
488
|
+
form_params = opts[:form_params] || {}
|
|
489
|
+
|
|
490
|
+
# http body (model)
|
|
491
|
+
post_body = opts[:body]
|
|
492
|
+
|
|
493
|
+
# return_type
|
|
494
|
+
return_type = opts[:return_type] || 'OstreeOstreeRepositoryResponse'
|
|
495
|
+
|
|
496
|
+
# auth_names
|
|
497
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
498
|
+
|
|
499
|
+
new_options = opts.merge(
|
|
500
|
+
:header_params => header_params,
|
|
501
|
+
:query_params => query_params,
|
|
502
|
+
:form_params => form_params,
|
|
503
|
+
:body => post_body,
|
|
504
|
+
:auth_names => auth_names,
|
|
505
|
+
:return_type => return_type
|
|
506
|
+
)
|
|
507
|
+
|
|
508
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
509
|
+
if @api_client.config.debugging
|
|
510
|
+
@api_client.config.logger.debug "API called: RepositoriesOstreeApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
511
|
+
end
|
|
512
|
+
return data, status_code, headers
|
|
513
|
+
end
|
|
514
|
+
|
|
515
|
+
# Sync from remote
|
|
516
|
+
# Trigger an asynchronous task to sync content.
|
|
517
|
+
# @param ostree_ostree_repository_href [String]
|
|
518
|
+
# @param repository_sync_url [RepositorySyncURL]
|
|
519
|
+
# @param [Hash] opts the optional parameters
|
|
520
|
+
# @return [AsyncOperationResponse]
|
|
521
|
+
def sync(ostree_ostree_repository_href, repository_sync_url, opts = {})
|
|
522
|
+
data, _status_code, _headers = sync_with_http_info(ostree_ostree_repository_href, repository_sync_url, opts)
|
|
523
|
+
data
|
|
524
|
+
end
|
|
525
|
+
|
|
526
|
+
# Sync from remote
|
|
527
|
+
# Trigger an asynchronous task to sync content.
|
|
528
|
+
# @param ostree_ostree_repository_href [String]
|
|
529
|
+
# @param repository_sync_url [RepositorySyncURL]
|
|
530
|
+
# @param [Hash] opts the optional parameters
|
|
531
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
532
|
+
def sync_with_http_info(ostree_ostree_repository_href, repository_sync_url, opts = {})
|
|
533
|
+
if @api_client.config.debugging
|
|
534
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesOstreeApi.sync ...'
|
|
535
|
+
end
|
|
536
|
+
# verify the required parameter 'ostree_ostree_repository_href' is set
|
|
537
|
+
if @api_client.config.client_side_validation && ostree_ostree_repository_href.nil?
|
|
538
|
+
fail ArgumentError, "Missing the required parameter 'ostree_ostree_repository_href' when calling RepositoriesOstreeApi.sync"
|
|
539
|
+
end
|
|
540
|
+
# verify the required parameter 'repository_sync_url' is set
|
|
541
|
+
if @api_client.config.client_side_validation && repository_sync_url.nil?
|
|
542
|
+
fail ArgumentError, "Missing the required parameter 'repository_sync_url' when calling RepositoriesOstreeApi.sync"
|
|
543
|
+
end
|
|
544
|
+
# resource path
|
|
545
|
+
local_var_path = '{ostree_ostree_repository_href}sync/'.sub('{' + 'ostree_ostree_repository_href' + '}', CGI.escape(ostree_ostree_repository_href.to_s).gsub('%2F', '/'))
|
|
546
|
+
|
|
547
|
+
# query parameters
|
|
548
|
+
query_params = opts[:query_params] || {}
|
|
549
|
+
|
|
550
|
+
# header parameters
|
|
551
|
+
header_params = opts[:header_params] || {}
|
|
552
|
+
# HTTP header 'Accept' (if needed)
|
|
553
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
554
|
+
# HTTP header 'Content-Type'
|
|
555
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
|
556
|
+
|
|
557
|
+
# form parameters
|
|
558
|
+
form_params = opts[:form_params] || {}
|
|
559
|
+
|
|
560
|
+
# http body (model)
|
|
561
|
+
post_body = opts[:body] || @api_client.object_to_http_body(repository_sync_url)
|
|
562
|
+
|
|
563
|
+
# return_type
|
|
564
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
|
565
|
+
|
|
566
|
+
# auth_names
|
|
567
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
568
|
+
|
|
569
|
+
new_options = opts.merge(
|
|
570
|
+
:header_params => header_params,
|
|
571
|
+
:query_params => query_params,
|
|
572
|
+
:form_params => form_params,
|
|
573
|
+
:body => post_body,
|
|
574
|
+
:auth_names => auth_names,
|
|
575
|
+
:return_type => return_type
|
|
576
|
+
)
|
|
577
|
+
|
|
578
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
579
|
+
if @api_client.config.debugging
|
|
580
|
+
@api_client.config.logger.debug "API called: RepositoriesOstreeApi#sync\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
581
|
+
end
|
|
582
|
+
return data, status_code, headers
|
|
583
|
+
end
|
|
584
|
+
|
|
585
|
+
# Update an ostree repository
|
|
586
|
+
# Trigger an asynchronous update task
|
|
587
|
+
# @param ostree_ostree_repository_href [String]
|
|
588
|
+
# @param ostree_ostree_repository [OstreeOstreeRepository]
|
|
589
|
+
# @param [Hash] opts the optional parameters
|
|
590
|
+
# @return [AsyncOperationResponse]
|
|
591
|
+
def update(ostree_ostree_repository_href, ostree_ostree_repository, opts = {})
|
|
592
|
+
data, _status_code, _headers = update_with_http_info(ostree_ostree_repository_href, ostree_ostree_repository, opts)
|
|
593
|
+
data
|
|
594
|
+
end
|
|
595
|
+
|
|
596
|
+
# Update an ostree repository
|
|
597
|
+
# Trigger an asynchronous update task
|
|
598
|
+
# @param ostree_ostree_repository_href [String]
|
|
599
|
+
# @param ostree_ostree_repository [OstreeOstreeRepository]
|
|
600
|
+
# @param [Hash] opts the optional parameters
|
|
601
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
602
|
+
def update_with_http_info(ostree_ostree_repository_href, ostree_ostree_repository, opts = {})
|
|
603
|
+
if @api_client.config.debugging
|
|
604
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesOstreeApi.update ...'
|
|
605
|
+
end
|
|
606
|
+
# verify the required parameter 'ostree_ostree_repository_href' is set
|
|
607
|
+
if @api_client.config.client_side_validation && ostree_ostree_repository_href.nil?
|
|
608
|
+
fail ArgumentError, "Missing the required parameter 'ostree_ostree_repository_href' when calling RepositoriesOstreeApi.update"
|
|
609
|
+
end
|
|
610
|
+
# verify the required parameter 'ostree_ostree_repository' is set
|
|
611
|
+
if @api_client.config.client_side_validation && ostree_ostree_repository.nil?
|
|
612
|
+
fail ArgumentError, "Missing the required parameter 'ostree_ostree_repository' when calling RepositoriesOstreeApi.update"
|
|
613
|
+
end
|
|
614
|
+
# resource path
|
|
615
|
+
local_var_path = '{ostree_ostree_repository_href}'.sub('{' + 'ostree_ostree_repository_href' + '}', CGI.escape(ostree_ostree_repository_href.to_s).gsub('%2F', '/'))
|
|
616
|
+
|
|
617
|
+
# query parameters
|
|
618
|
+
query_params = opts[:query_params] || {}
|
|
619
|
+
|
|
620
|
+
# header parameters
|
|
621
|
+
header_params = opts[:header_params] || {}
|
|
622
|
+
# HTTP header 'Accept' (if needed)
|
|
623
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
624
|
+
# HTTP header 'Content-Type'
|
|
625
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
|
626
|
+
|
|
627
|
+
# form parameters
|
|
628
|
+
form_params = opts[:form_params] || {}
|
|
629
|
+
|
|
630
|
+
# http body (model)
|
|
631
|
+
post_body = opts[:body] || @api_client.object_to_http_body(ostree_ostree_repository)
|
|
632
|
+
|
|
633
|
+
# return_type
|
|
634
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
|
635
|
+
|
|
636
|
+
# auth_names
|
|
637
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
638
|
+
|
|
639
|
+
new_options = opts.merge(
|
|
640
|
+
:header_params => header_params,
|
|
641
|
+
:query_params => query_params,
|
|
642
|
+
:form_params => form_params,
|
|
643
|
+
:body => post_body,
|
|
644
|
+
:auth_names => auth_names,
|
|
645
|
+
:return_type => return_type
|
|
646
|
+
)
|
|
647
|
+
|
|
648
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
649
|
+
if @api_client.config.debugging
|
|
650
|
+
@api_client.config.logger.debug "API called: RepositoriesOstreeApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
651
|
+
end
|
|
652
|
+
return data, status_code, headers
|
|
653
|
+
end
|
|
654
|
+
end
|
|
655
|
+
end
|