pulp_ostree_client 2.0.0a1.dev1626751709 → 2.0.0a1.dev1631416829
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of pulp_ostree_client might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +41 -23
- 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/{ContentOstreeApi.md → ContentSummariesApi.md} +21 -75
- data/docs/DistributionsOstreeApi.md +3 -3
- data/docs/OstreeOstreeCommitResponse.md +25 -0
- data/docs/OstreeOstreeConfigResponse.md +21 -0
- data/docs/OstreeOstreeDistribution.md +2 -2
- data/docs/OstreeOstreeDistributionResponse.md +2 -2
- data/docs/OstreeOstreeObjectResponse.md +27 -0
- data/docs/OstreeOstreeRefResponse.md +25 -0
- data/docs/OstreeOstreeRemote.md +4 -2
- data/docs/OstreeOstreeRemoteResponse.md +4 -2
- data/docs/OstreeOstreeRepository.md +3 -3
- data/docs/OstreeOstreeRepositoryResponse.md +3 -3
- data/docs/{OstreeOstreeContentResponse.md → OstreeOstreeSummaryResponse.md} +2 -2
- data/docs/OstreeRepoImport.md +23 -0
- data/docs/{PaginatedostreeOstreePublicationResponseList.md → PaginatedostreeOstreeCommitResponseList.md} +3 -3
- data/docs/PaginatedostreeOstreeConfigResponseList.md +23 -0
- data/docs/PaginatedostreeOstreeObjectResponseList.md +23 -0
- data/docs/PaginatedostreeOstreeRefResponseList.md +23 -0
- data/docs/{PaginatedostreeOstreeContentResponseList.md → PaginatedostreeOstreeSummaryResponseList.md} +3 -3
- data/docs/PatchedostreeOstreeDistribution.md +2 -2
- data/docs/PatchedostreeOstreeRemote.md +4 -2
- data/docs/PatchedostreeOstreeRepository.md +3 -3
- data/docs/RemotesOstreeApi.md +4 -4
- data/docs/RepositoriesOstreeApi.md +60 -4
- data/docs/RepositoriesOstreeVersionsApi.md +3 -3
- 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_ostree_api.rb → content_summaries_api.rb} +29 -93
- data/lib/pulp_ostree_client/api/distributions_ostree_api.rb +4 -4
- data/lib/pulp_ostree_client/api/remotes_ostree_api.rb +6 -6
- data/lib/pulp_ostree_client/api/repositories_ostree_api.rb +76 -6
- data/lib/pulp_ostree_client/api/repositories_ostree_versions_api.rb +4 -4
- data/lib/pulp_ostree_client/configuration.rb +2 -2
- data/lib/pulp_ostree_client/models/ostree_ostree_commit_response.rb +256 -0
- data/lib/pulp_ostree_client/models/{ostree_ostree_publication_response.rb → ostree_ostree_config_response.rb} +17 -21
- data/lib/pulp_ostree_client/models/ostree_ostree_distribution.rb +10 -10
- data/lib/pulp_ostree_client/models/ostree_ostree_distribution_response.rb +10 -10
- data/lib/pulp_ostree_client/models/ostree_ostree_object_response.rb +275 -0
- data/lib/pulp_ostree_client/models/{ostree_ostree_content.rb → ostree_ostree_ref_response.rb} +47 -15
- data/lib/pulp_ostree_client/models/ostree_ostree_remote.rb +34 -7
- data/lib/pulp_ostree_client/models/ostree_ostree_remote_response.rb +34 -7
- data/lib/pulp_ostree_client/models/ostree_ostree_repository.rb +18 -17
- data/lib/pulp_ostree_client/models/ostree_ostree_repository_response.rb +18 -17
- data/lib/pulp_ostree_client/models/{ostree_ostree_content_response.rb → ostree_ostree_summary_response.rb} +4 -4
- data/lib/pulp_ostree_client/models/ostree_repo_import.rb +248 -0
- data/lib/pulp_ostree_client/models/{paginatedostree_ostree_publication_response_list.rb → paginatedostree_ostree_commit_response_list.rb} +4 -4
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_config_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/{ostree_ostree_publication.rb → paginatedostree_ostree_ref_response_list.rb} +38 -18
- data/lib/pulp_ostree_client/models/{paginatedostree_ostree_content_response_list.rb → paginatedostree_ostree_summary_response_list.rb} +4 -4
- data/lib/pulp_ostree_client/models/patchedostree_ostree_distribution.rb +10 -10
- data/lib/pulp_ostree_client/models/patchedostree_ostree_remote.rb +34 -7
- data/lib/pulp_ostree_client/models/patchedostree_ostree_repository.rb +18 -17
- data/lib/pulp_ostree_client/models/policy_enum.rb +1 -1
- data/lib/pulp_ostree_client/version.rb +1 -1
- data/lib/pulp_ostree_client.rb +16 -8
- data/spec/api/{content_ostree_api_spec.rb → content_commits_api_spec.rb} +13 -25
- 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 +2 -2
- data/spec/api/remotes_ostree_api_spec.rb +3 -3
- data/spec/api/repositories_ostree_api_spec.rb +16 -3
- data/spec/api/repositories_ostree_versions_api_spec.rb +2 -2
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/ostree_ostree_commit_response_spec.rb +65 -0
- data/spec/models/{ostree_ostree_content_spec.rb → ostree_ostree_config_response_spec.rb} +14 -8
- data/spec/models/ostree_ostree_distribution_response_spec.rb +1 -1
- data/spec/models/ostree_ostree_distribution_spec.rb +1 -1
- data/spec/models/ostree_ostree_object_response_spec.rb +71 -0
- data/spec/models/{ostree_ostree_publication_response_spec.rb → ostree_ostree_ref_response_spec.rb} +14 -8
- data/spec/models/ostree_ostree_remote_response_spec.rb +6 -0
- data/spec/models/ostree_ostree_remote_spec.rb +6 -0
- data/spec/models/ostree_ostree_repository_response_spec.rb +1 -1
- data/spec/models/ostree_ostree_repository_spec.rb +1 -1
- data/spec/models/{ostree_ostree_content_response_spec.rb → ostree_ostree_summary_response_spec.rb} +6 -6
- data/spec/models/ostree_repo_import_spec.rb +59 -0
- data/spec/models/{paginatedostree_ostree_publication_response_list_spec.rb → paginatedostree_ostree_commit_response_list_spec.rb} +6 -6
- data/spec/models/paginatedostree_ostree_config_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_content_response_list_spec.rb → paginatedostree_ostree_summary_response_list_spec.rb} +6 -6
- data/spec/models/patchedostree_ostree_distribution_spec.rb +1 -1
- data/spec/models/patchedostree_ostree_remote_spec.rb +6 -0
- data/spec/models/patchedostree_ostree_repository_spec.rb +1 -1
- metadata +81 -49
- data/docs/OstreeOstreeContent.md +0 -19
- data/docs/OstreeOstreePublication.md +0 -19
- data/docs/OstreeOstreePublicationResponse.md +0 -23
- data/docs/PublicationsOstreeApi.md +0 -257
- data/lib/pulp_ostree_client/api/publications_ostree_api.rb +0 -312
- data/spec/api/publications_ostree_api_spec.rb +0 -98
- data/spec/models/ostree_ostree_publication_spec.rb +0 -47
@@ -1,312 +0,0 @@
|
|
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 PublicationsOstreeApi
|
17
|
-
attr_accessor :api_client
|
18
|
-
|
19
|
-
def initialize(api_client = ApiClient.default)
|
20
|
-
@api_client = api_client
|
21
|
-
end
|
22
|
-
# Create an ostree publication
|
23
|
-
# Trigger an asynchronous task to publish content
|
24
|
-
# @param ostree_ostree_publication [OstreeOstreePublication]
|
25
|
-
# @param [Hash] opts the optional parameters
|
26
|
-
# @return [AsyncOperationResponse]
|
27
|
-
def create(ostree_ostree_publication, opts = {})
|
28
|
-
data, _status_code, _headers = create_with_http_info(ostree_ostree_publication, opts)
|
29
|
-
data
|
30
|
-
end
|
31
|
-
|
32
|
-
# Create an ostree publication
|
33
|
-
# Trigger an asynchronous task to publish content
|
34
|
-
# @param ostree_ostree_publication [OstreeOstreePublication]
|
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_publication, opts = {})
|
38
|
-
if @api_client.config.debugging
|
39
|
-
@api_client.config.logger.debug 'Calling API: PublicationsOstreeApi.create ...'
|
40
|
-
end
|
41
|
-
# verify the required parameter 'ostree_ostree_publication' is set
|
42
|
-
if @api_client.config.client_side_validation && ostree_ostree_publication.nil?
|
43
|
-
fail ArgumentError, "Missing the required parameter 'ostree_ostree_publication' when calling PublicationsOstreeApi.create"
|
44
|
-
end
|
45
|
-
# resource path
|
46
|
-
local_var_path = '/pulp/api/v3/publications/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_publication)
|
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: PublicationsOstreeApi#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 publication
|
87
|
-
# A ViewSet for OstreePublication. Similar to the OstreeContentViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
88
|
-
# @param ostree_ostree_publication_href [String]
|
89
|
-
# @param [Hash] opts the optional parameters
|
90
|
-
# @return [nil]
|
91
|
-
def delete(ostree_ostree_publication_href, opts = {})
|
92
|
-
delete_with_http_info(ostree_ostree_publication_href, opts)
|
93
|
-
nil
|
94
|
-
end
|
95
|
-
|
96
|
-
# Delete an ostree publication
|
97
|
-
# A ViewSet for OstreePublication. Similar to the OstreeContentViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
98
|
-
# @param ostree_ostree_publication_href [String]
|
99
|
-
# @param [Hash] opts the optional parameters
|
100
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
101
|
-
def delete_with_http_info(ostree_ostree_publication_href, opts = {})
|
102
|
-
if @api_client.config.debugging
|
103
|
-
@api_client.config.logger.debug 'Calling API: PublicationsOstreeApi.delete ...'
|
104
|
-
end
|
105
|
-
# verify the required parameter 'ostree_ostree_publication_href' is set
|
106
|
-
if @api_client.config.client_side_validation && ostree_ostree_publication_href.nil?
|
107
|
-
fail ArgumentError, "Missing the required parameter 'ostree_ostree_publication_href' when calling PublicationsOstreeApi.delete"
|
108
|
-
end
|
109
|
-
# resource path
|
110
|
-
local_var_path = '{ostree_ostree_publication_href}'.sub('{' + 'ostree_ostree_publication_href' + '}', CGI.escape(ostree_ostree_publication_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
|
-
|
118
|
-
# form parameters
|
119
|
-
form_params = opts[:form_params] || {}
|
120
|
-
|
121
|
-
# http body (model)
|
122
|
-
post_body = opts[:body]
|
123
|
-
|
124
|
-
# return_type
|
125
|
-
return_type = opts[:return_type]
|
126
|
-
|
127
|
-
# auth_names
|
128
|
-
auth_names = opts[:auth_names] || ['basicAuth']
|
129
|
-
|
130
|
-
new_options = opts.merge(
|
131
|
-
:header_params => header_params,
|
132
|
-
:query_params => query_params,
|
133
|
-
:form_params => form_params,
|
134
|
-
:body => post_body,
|
135
|
-
:auth_names => auth_names,
|
136
|
-
:return_type => return_type
|
137
|
-
)
|
138
|
-
|
139
|
-
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
140
|
-
if @api_client.config.debugging
|
141
|
-
@api_client.config.logger.debug "API called: PublicationsOstreeApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
142
|
-
end
|
143
|
-
return data, status_code, headers
|
144
|
-
end
|
145
|
-
|
146
|
-
# List ostree publications
|
147
|
-
# A ViewSet for OstreePublication. Similar to the OstreeContentViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
148
|
-
# @param [Hash] opts the optional parameters
|
149
|
-
# @option opts [String] :content Content Unit referenced by HREF
|
150
|
-
# @option opts [String] :content__in Content Unit referenced by HREF
|
151
|
-
# @option opts [Integer] :limit Number of results to return per page.
|
152
|
-
# @option opts [Integer] :offset The initial index from which to return the results.
|
153
|
-
# @option opts [String] :ordering Which field to use when ordering the results.
|
154
|
-
# @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
|
155
|
-
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
156
|
-
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
157
|
-
# @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
|
158
|
-
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
159
|
-
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
160
|
-
# @option opts [String] :repository_version Repository Version referenced by HREF
|
161
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
162
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
163
|
-
# @return [PaginatedostreeOstreePublicationResponseList]
|
164
|
-
def list(opts = {})
|
165
|
-
data, _status_code, _headers = list_with_http_info(opts)
|
166
|
-
data
|
167
|
-
end
|
168
|
-
|
169
|
-
# List ostree publications
|
170
|
-
# A ViewSet for OstreePublication. Similar to the OstreeContentViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
171
|
-
# @param [Hash] opts the optional parameters
|
172
|
-
# @option opts [String] :content Content Unit referenced by HREF
|
173
|
-
# @option opts [String] :content__in Content Unit referenced by HREF
|
174
|
-
# @option opts [Integer] :limit Number of results to return per page.
|
175
|
-
# @option opts [Integer] :offset The initial index from which to return the results.
|
176
|
-
# @option opts [String] :ordering Which field to use when ordering the results.
|
177
|
-
# @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
|
178
|
-
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
179
|
-
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
180
|
-
# @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
|
181
|
-
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
182
|
-
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
183
|
-
# @option opts [String] :repository_version Repository Version referenced by HREF
|
184
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
185
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
186
|
-
# @return [Array<(PaginatedostreeOstreePublicationResponseList, Integer, Hash)>] PaginatedostreeOstreePublicationResponseList data, response status code and response headers
|
187
|
-
def list_with_http_info(opts = {})
|
188
|
-
if @api_client.config.debugging
|
189
|
-
@api_client.config.logger.debug 'Calling API: PublicationsOstreeApi.list ...'
|
190
|
-
end
|
191
|
-
# resource path
|
192
|
-
local_var_path = '/pulp/api/v3/publications/ostree/ostree/'
|
193
|
-
|
194
|
-
# query parameters
|
195
|
-
query_params = opts[:query_params] || {}
|
196
|
-
query_params[:'content'] = opts[:'content'] if !opts[:'content'].nil?
|
197
|
-
query_params[:'content__in'] = opts[:'content__in'] if !opts[:'content__in'].nil?
|
198
|
-
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
199
|
-
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
200
|
-
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
201
|
-
query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
|
202
|
-
query_params[:'pulp_created__gt'] = opts[:'pulp_created__gt'] if !opts[:'pulp_created__gt'].nil?
|
203
|
-
query_params[:'pulp_created__gte'] = opts[:'pulp_created__gte'] if !opts[:'pulp_created__gte'].nil?
|
204
|
-
query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
|
205
|
-
query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
|
206
|
-
query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
|
207
|
-
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
208
|
-
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
209
|
-
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
210
|
-
|
211
|
-
# header parameters
|
212
|
-
header_params = opts[:header_params] || {}
|
213
|
-
# HTTP header 'Accept' (if needed)
|
214
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
215
|
-
|
216
|
-
# form parameters
|
217
|
-
form_params = opts[:form_params] || {}
|
218
|
-
|
219
|
-
# http body (model)
|
220
|
-
post_body = opts[:body]
|
221
|
-
|
222
|
-
# return_type
|
223
|
-
return_type = opts[:return_type] || 'PaginatedostreeOstreePublicationResponseList'
|
224
|
-
|
225
|
-
# auth_names
|
226
|
-
auth_names = opts[:auth_names] || ['basicAuth']
|
227
|
-
|
228
|
-
new_options = opts.merge(
|
229
|
-
:header_params => header_params,
|
230
|
-
:query_params => query_params,
|
231
|
-
:form_params => form_params,
|
232
|
-
:body => post_body,
|
233
|
-
:auth_names => auth_names,
|
234
|
-
:return_type => return_type
|
235
|
-
)
|
236
|
-
|
237
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
238
|
-
if @api_client.config.debugging
|
239
|
-
@api_client.config.logger.debug "API called: PublicationsOstreeApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
240
|
-
end
|
241
|
-
return data, status_code, headers
|
242
|
-
end
|
243
|
-
|
244
|
-
# Inspect an ostree publication
|
245
|
-
# A ViewSet for OstreePublication. Similar to the OstreeContentViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
246
|
-
# @param ostree_ostree_publication_href [String]
|
247
|
-
# @param [Hash] opts the optional parameters
|
248
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
249
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
250
|
-
# @return [OstreeOstreePublicationResponse]
|
251
|
-
def read(ostree_ostree_publication_href, opts = {})
|
252
|
-
data, _status_code, _headers = read_with_http_info(ostree_ostree_publication_href, opts)
|
253
|
-
data
|
254
|
-
end
|
255
|
-
|
256
|
-
# Inspect an ostree publication
|
257
|
-
# A ViewSet for OstreePublication. Similar to the OstreeContentViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
258
|
-
# @param ostree_ostree_publication_href [String]
|
259
|
-
# @param [Hash] opts the optional parameters
|
260
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
261
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
262
|
-
# @return [Array<(OstreeOstreePublicationResponse, Integer, Hash)>] OstreeOstreePublicationResponse data, response status code and response headers
|
263
|
-
def read_with_http_info(ostree_ostree_publication_href, opts = {})
|
264
|
-
if @api_client.config.debugging
|
265
|
-
@api_client.config.logger.debug 'Calling API: PublicationsOstreeApi.read ...'
|
266
|
-
end
|
267
|
-
# verify the required parameter 'ostree_ostree_publication_href' is set
|
268
|
-
if @api_client.config.client_side_validation && ostree_ostree_publication_href.nil?
|
269
|
-
fail ArgumentError, "Missing the required parameter 'ostree_ostree_publication_href' when calling PublicationsOstreeApi.read"
|
270
|
-
end
|
271
|
-
# resource path
|
272
|
-
local_var_path = '{ostree_ostree_publication_href}'.sub('{' + 'ostree_ostree_publication_href' + '}', CGI.escape(ostree_ostree_publication_href.to_s).gsub('%2F', '/'))
|
273
|
-
|
274
|
-
# query parameters
|
275
|
-
query_params = opts[:query_params] || {}
|
276
|
-
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
277
|
-
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
278
|
-
|
279
|
-
# header parameters
|
280
|
-
header_params = opts[:header_params] || {}
|
281
|
-
# HTTP header 'Accept' (if needed)
|
282
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
283
|
-
|
284
|
-
# form parameters
|
285
|
-
form_params = opts[:form_params] || {}
|
286
|
-
|
287
|
-
# http body (model)
|
288
|
-
post_body = opts[:body]
|
289
|
-
|
290
|
-
# return_type
|
291
|
-
return_type = opts[:return_type] || 'OstreeOstreePublicationResponse'
|
292
|
-
|
293
|
-
# auth_names
|
294
|
-
auth_names = opts[:auth_names] || ['basicAuth']
|
295
|
-
|
296
|
-
new_options = opts.merge(
|
297
|
-
:header_params => header_params,
|
298
|
-
:query_params => query_params,
|
299
|
-
:form_params => form_params,
|
300
|
-
:body => post_body,
|
301
|
-
:auth_names => auth_names,
|
302
|
-
:return_type => return_type
|
303
|
-
)
|
304
|
-
|
305
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
306
|
-
if @api_client.config.debugging
|
307
|
-
@api_client.config.logger.debug "API called: PublicationsOstreeApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
308
|
-
end
|
309
|
-
return data, status_code, headers
|
310
|
-
end
|
311
|
-
end
|
312
|
-
end
|
@@ -1,98 +0,0 @@
|
|
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 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
|
16
|
-
# Unit tests for PulpOstreeClient::PublicationsOstreeApi
|
17
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
-
# Please update as you see appropriate
|
19
|
-
describe 'PublicationsOstreeApi' do
|
20
|
-
before do
|
21
|
-
# run before each test
|
22
|
-
@api_instance = PulpOstreeClient::PublicationsOstreeApi.new
|
23
|
-
end
|
24
|
-
|
25
|
-
after do
|
26
|
-
# run after each test
|
27
|
-
end
|
28
|
-
|
29
|
-
describe 'test an instance of PublicationsOstreeApi' do
|
30
|
-
it 'should create an instance of PublicationsOstreeApi' do
|
31
|
-
expect(@api_instance).to be_instance_of(PulpOstreeClient::PublicationsOstreeApi)
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
# unit tests for create
|
36
|
-
# Create an ostree publication
|
37
|
-
# Trigger an asynchronous task to publish content
|
38
|
-
# @param ostree_ostree_publication
|
39
|
-
# @param [Hash] opts the optional parameters
|
40
|
-
# @return [AsyncOperationResponse]
|
41
|
-
describe 'create test' do
|
42
|
-
it 'should work' do
|
43
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
|
-
# unit tests for delete
|
48
|
-
# Delete an ostree publication
|
49
|
-
# A ViewSet for OstreePublication. Similar to the OstreeContentViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
50
|
-
# @param ostree_ostree_publication_href
|
51
|
-
# @param [Hash] opts the optional parameters
|
52
|
-
# @return [nil]
|
53
|
-
describe 'delete test' do
|
54
|
-
it 'should work' do
|
55
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
-
end
|
57
|
-
end
|
58
|
-
|
59
|
-
# unit tests for list
|
60
|
-
# List ostree publications
|
61
|
-
# A ViewSet for OstreePublication. Similar to the OstreeContentViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
62
|
-
# @param [Hash] opts the optional parameters
|
63
|
-
# @option opts [String] :content Content Unit referenced by HREF
|
64
|
-
# @option opts [String] :content__in Content Unit referenced by HREF
|
65
|
-
# @option opts [Integer] :limit Number of results to return per page.
|
66
|
-
# @option opts [Integer] :offset The initial index from which to return the results.
|
67
|
-
# @option opts [String] :ordering Which field to use when ordering the results.
|
68
|
-
# @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
|
69
|
-
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
70
|
-
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
71
|
-
# @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
|
72
|
-
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
73
|
-
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
74
|
-
# @option opts [String] :repository_version Repository Version referenced by HREF
|
75
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
76
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
77
|
-
# @return [PaginatedostreeOstreePublicationResponseList]
|
78
|
-
describe 'list test' do
|
79
|
-
it 'should work' do
|
80
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
81
|
-
end
|
82
|
-
end
|
83
|
-
|
84
|
-
# unit tests for read
|
85
|
-
# Inspect an ostree publication
|
86
|
-
# A ViewSet for OstreePublication. Similar to the OstreeContentViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
87
|
-
# @param ostree_ostree_publication_href
|
88
|
-
# @param [Hash] opts the optional parameters
|
89
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
90
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
91
|
-
# @return [OstreeOstreePublicationResponse]
|
92
|
-
describe 'read test' do
|
93
|
-
it 'should work' do
|
94
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
95
|
-
end
|
96
|
-
end
|
97
|
-
|
98
|
-
end
|
@@ -1,47 +0,0 @@
|
|
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 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
require 'date'
|
16
|
-
|
17
|
-
# Unit tests for PulpOstreeClient::OstreeOstreePublication
|
18
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe 'OstreeOstreePublication' do
|
21
|
-
before do
|
22
|
-
# run before each test
|
23
|
-
@instance = PulpOstreeClient::OstreeOstreePublication.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
29
|
-
|
30
|
-
describe 'test an instance of OstreeOstreePublication' do
|
31
|
-
it 'should create an instance of OstreeOstreePublication' do
|
32
|
-
expect(@instance).to be_instance_of(PulpOstreeClient::OstreeOstreePublication)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
describe 'test attribute "repository_version"' do
|
36
|
-
it 'should work' do
|
37
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
-
end
|
39
|
-
end
|
40
|
-
|
41
|
-
describe 'test attribute "repository"' do
|
42
|
-
it 'should work' do
|
43
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
|
-
end
|