pulp_ostree_client 2.0.0a6 → 2.0.0
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 +4 -4
- data/README.md +12 -7
- data/docs/ContentCommitsApi.md +8 -8
- data/docs/ContentConfigsApi.md +8 -8
- data/docs/ContentContentApi.md +138 -0
- data/docs/ContentObjectsApi.md +8 -8
- data/docs/ContentRefsApi.md +8 -8
- data/docs/ContentSummariesApi.md +8 -8
- data/docs/DistributionsOstreeApi.md +18 -12
- data/docs/OstreeOstreeContentResponse.md +25 -0
- data/docs/OstreeOstreeDistribution.md +1 -1
- data/docs/OstreeOstreeDistributionResponse.md +1 -1
- data/docs/OstreeOstreeRemote.md +1 -1
- data/docs/OstreeOstreeRemoteResponse.md +3 -1
- data/docs/OstreeOstreeRemoteResponseHiddenFields.md +19 -0
- data/docs/OstreeOstreeRepository.md +5 -3
- data/docs/OstreeOstreeRepositoryResponse.md +5 -3
- data/docs/PaginatedostreeOstreeContentResponseList.md +23 -0
- data/docs/PatchedostreeOstreeDistribution.md +1 -1
- data/docs/PatchedostreeOstreeRemote.md +1 -1
- data/docs/PatchedostreeOstreeRepository.md +5 -3
- data/docs/RemotesOstreeApi.md +12 -12
- data/docs/RepositoriesOstreeApi.md +32 -14
- data/docs/RepositoriesOstreeVersionsApi.md +12 -12
- data/docs/RepositoryAddRemoveContent.md +21 -0
- data/lib/pulp_ostree_client/api/content_commits_api.rb +13 -13
- data/lib/pulp_ostree_client/api/content_configs_api.rb +12 -12
- data/lib/pulp_ostree_client/api/content_content_api.rb +174 -0
- data/lib/pulp_ostree_client/api/content_objects_api.rb +13 -13
- data/lib/pulp_ostree_client/api/content_refs_api.rb +13 -13
- data/lib/pulp_ostree_client/api/content_summaries_api.rb +12 -12
- data/lib/pulp_ostree_client/api/distributions_ostree_api.rb +26 -17
- data/lib/pulp_ostree_client/api/remotes_ostree_api.rb +17 -17
- data/lib/pulp_ostree_client/api/repositories_ostree_api.rb +51 -24
- data/lib/pulp_ostree_client/api/repositories_ostree_versions_api.rb +17 -17
- data/lib/pulp_ostree_client/api_client.rb +1 -1
- data/lib/pulp_ostree_client/models/ostree_ostree_content_response.rb +260 -0
- data/lib/pulp_ostree_client/models/ostree_ostree_distribution.rb +4 -2
- data/lib/pulp_ostree_client/models/ostree_ostree_distribution_response.rb +4 -2
- data/lib/pulp_ostree_client/models/ostree_ostree_remote.rb +4 -2
- data/lib/pulp_ostree_client/models/ostree_ostree_remote_response.rb +17 -3
- data/lib/pulp_ostree_client/models/ostree_ostree_remote_response_hidden_fields.rb +215 -0
- data/lib/pulp_ostree_client/models/ostree_ostree_repository.rb +21 -8
- data/lib/pulp_ostree_client/models/ostree_ostree_repository_response.rb +21 -8
- data/lib/pulp_ostree_client/models/paginatedostree_ostree_content_response_list.rb +237 -0
- data/lib/pulp_ostree_client/models/patchedostree_ostree_distribution.rb +4 -2
- data/lib/pulp_ostree_client/models/patchedostree_ostree_remote.rb +4 -2
- data/lib/pulp_ostree_client/models/patchedostree_ostree_repository.rb +21 -8
- data/lib/pulp_ostree_client/models/{ostree_repository_add_remove_content.rb → repository_add_remove_content.rb} +6 -6
- data/lib/pulp_ostree_client/version.rb +1 -1
- data/lib/pulp_ostree_client.rb +5 -1
- data/pulp_ostree_client.gemspec +3 -3
- data/spec/api/content_commits_api_spec.rb +4 -4
- data/spec/api/content_configs_api_spec.rb +4 -4
- data/spec/api/content_content_api_spec.rb +68 -0
- data/spec/api/content_objects_api_spec.rb +4 -4
- data/spec/api/content_refs_api_spec.rb +4 -4
- data/spec/api/content_summaries_api_spec.rb +4 -4
- data/spec/api/distributions_ostree_api_spec.rb +9 -6
- data/spec/api/remotes_ostree_api_spec.rb +6 -6
- data/spec/api/repositories_ostree_api_spec.rb +15 -6
- data/spec/api/repositories_ostree_versions_api_spec.rb +6 -6
- data/spec/models/ostree_ostree_content_response_spec.rb +65 -0
- data/spec/models/ostree_ostree_remote_response_hidden_fields_spec.rb +47 -0
- data/spec/models/ostree_ostree_remote_response_spec.rb +6 -0
- data/spec/models/ostree_ostree_repository_response_spec.rb +6 -0
- data/spec/models/ostree_ostree_repository_spec.rb +6 -0
- data/spec/models/paginatedostree_ostree_content_response_list_spec.rb +59 -0
- data/spec/models/patchedostree_ostree_repository_spec.rb +6 -0
- data/spec/models/{ostree_repository_add_remove_content_spec.rb → repository_add_remove_content_spec.rb} +6 -6
- metadata +60 -45
- data/docs/OstreeRepositoryAddRemoveContent.md +0 -21
- data/git_push.sh +0 -58
@@ -0,0 +1,174 @@
|
|
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 ContentContentApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# List ostree contents
|
23
|
+
# A ViewSet class for uncategorized content units (e.g., static deltas).
|
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 [Array<String>] :ordering Ordering
|
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 [Array<String>] :fields A list of fields to include in the response.
|
32
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
33
|
+
# @return [PaginatedostreeOstreeContentResponseList]
|
34
|
+
def list(opts = {})
|
35
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
36
|
+
data
|
37
|
+
end
|
38
|
+
|
39
|
+
# List ostree contents
|
40
|
+
# A ViewSet class for uncategorized content units (e.g., static deltas).
|
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 [Array<String>] :ordering Ordering
|
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 [Array<String>] :fields A list of fields to include in the response.
|
49
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
50
|
+
# @return [Array<(PaginatedostreeOstreeContentResponseList, Integer, Hash)>] PaginatedostreeOstreeContentResponseList 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: ContentContentApi.list ...'
|
54
|
+
end
|
55
|
+
allowable_values = ["-pk", "pk"]
|
56
|
+
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
57
|
+
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
58
|
+
end
|
59
|
+
# resource path
|
60
|
+
local_var_path = '/pulp/api/v3/content/ostree/content/'
|
61
|
+
|
62
|
+
# query parameters
|
63
|
+
query_params = opts[:query_params] || {}
|
64
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
65
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
66
|
+
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
67
|
+
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
68
|
+
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
69
|
+
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
70
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
71
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
72
|
+
|
73
|
+
# header parameters
|
74
|
+
header_params = opts[:header_params] || {}
|
75
|
+
# HTTP header 'Accept' (if needed)
|
76
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
77
|
+
|
78
|
+
# form parameters
|
79
|
+
form_params = opts[:form_params] || {}
|
80
|
+
|
81
|
+
# http body (model)
|
82
|
+
post_body = opts[:body]
|
83
|
+
|
84
|
+
# return_type
|
85
|
+
return_type = opts[:return_type] || 'PaginatedostreeOstreeContentResponseList'
|
86
|
+
|
87
|
+
# auth_names
|
88
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
89
|
+
|
90
|
+
new_options = opts.merge(
|
91
|
+
:header_params => header_params,
|
92
|
+
:query_params => query_params,
|
93
|
+
:form_params => form_params,
|
94
|
+
:body => post_body,
|
95
|
+
:auth_names => auth_names,
|
96
|
+
:return_type => return_type
|
97
|
+
)
|
98
|
+
|
99
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
100
|
+
if @api_client.config.debugging
|
101
|
+
@api_client.config.logger.debug "API called: ContentContentApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
102
|
+
end
|
103
|
+
return data, status_code, headers
|
104
|
+
end
|
105
|
+
|
106
|
+
# Inspect an ostree content
|
107
|
+
# A ViewSet class for uncategorized content units (e.g., static deltas).
|
108
|
+
# @param ostree_ostree_content_href [String]
|
109
|
+
# @param [Hash] opts the optional parameters
|
110
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
111
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
112
|
+
# @return [OstreeOstreeContentResponse]
|
113
|
+
def read(ostree_ostree_content_href, opts = {})
|
114
|
+
data, _status_code, _headers = read_with_http_info(ostree_ostree_content_href, opts)
|
115
|
+
data
|
116
|
+
end
|
117
|
+
|
118
|
+
# Inspect an ostree content
|
119
|
+
# A ViewSet class for uncategorized content units (e.g., static deltas).
|
120
|
+
# @param ostree_ostree_content_href [String]
|
121
|
+
# @param [Hash] opts the optional parameters
|
122
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
123
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
124
|
+
# @return [Array<(OstreeOstreeContentResponse, Integer, Hash)>] OstreeOstreeContentResponse data, response status code and response headers
|
125
|
+
def read_with_http_info(ostree_ostree_content_href, opts = {})
|
126
|
+
if @api_client.config.debugging
|
127
|
+
@api_client.config.logger.debug 'Calling API: ContentContentApi.read ...'
|
128
|
+
end
|
129
|
+
# verify the required parameter 'ostree_ostree_content_href' is set
|
130
|
+
if @api_client.config.client_side_validation && ostree_ostree_content_href.nil?
|
131
|
+
fail ArgumentError, "Missing the required parameter 'ostree_ostree_content_href' when calling ContentContentApi.read"
|
132
|
+
end
|
133
|
+
# resource path
|
134
|
+
local_var_path = '{ostree_ostree_content_href}'.sub('{' + 'ostree_ostree_content_href' + '}', CGI.escape(ostree_ostree_content_href.to_s).gsub('%2F', '/'))
|
135
|
+
|
136
|
+
# query parameters
|
137
|
+
query_params = opts[:query_params] || {}
|
138
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
139
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
140
|
+
|
141
|
+
# header parameters
|
142
|
+
header_params = opts[:header_params] || {}
|
143
|
+
# HTTP header 'Accept' (if needed)
|
144
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
145
|
+
|
146
|
+
# form parameters
|
147
|
+
form_params = opts[:form_params] || {}
|
148
|
+
|
149
|
+
# http body (model)
|
150
|
+
post_body = opts[:body]
|
151
|
+
|
152
|
+
# return_type
|
153
|
+
return_type = opts[:return_type] || 'OstreeOstreeContentResponse'
|
154
|
+
|
155
|
+
# auth_names
|
156
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
157
|
+
|
158
|
+
new_options = opts.merge(
|
159
|
+
:header_params => header_params,
|
160
|
+
:query_params => query_params,
|
161
|
+
:form_params => form_params,
|
162
|
+
:body => post_body,
|
163
|
+
:auth_names => auth_names,
|
164
|
+
:return_type => return_type
|
165
|
+
)
|
166
|
+
|
167
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
168
|
+
if @api_client.config.debugging
|
169
|
+
@api_client.config.logger.debug "API called: ContentContentApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
170
|
+
end
|
171
|
+
return data, status_code, headers
|
172
|
+
end
|
173
|
+
end
|
174
|
+
end
|
@@ -29,8 +29,8 @@ module PulpOstreeClient
|
|
29
29
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
30
30
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
31
31
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
32
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
33
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
32
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
33
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
34
34
|
# @return [PaginatedostreeOstreeObjectResponseList]
|
35
35
|
def list(opts = {})
|
36
36
|
data, _status_code, _headers = list_with_http_info(opts)
|
@@ -47,14 +47,14 @@ module PulpOstreeClient
|
|
47
47
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
48
48
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
49
49
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
50
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
51
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
50
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
51
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
52
52
|
# @return [Array<(PaginatedostreeOstreeObjectResponseList, Integer, Hash)>] PaginatedostreeOstreeObjectResponseList data, response status code and response headers
|
53
53
|
def list_with_http_info(opts = {})
|
54
54
|
if @api_client.config.debugging
|
55
55
|
@api_client.config.logger.debug 'Calling API: ContentObjectsApi.list ...'
|
56
56
|
end
|
57
|
-
allowable_values = ["-
|
57
|
+
allowable_values = ["-checksum", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-relative_path", "-timestamp_of_interest", "-typ", "-upstream_id", "checksum", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "relative_path", "timestamp_of_interest", "typ", "upstream_id"]
|
58
58
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
59
59
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
60
60
|
end
|
@@ -70,8 +70,8 @@ module PulpOstreeClient
|
|
70
70
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
71
71
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
72
72
|
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
73
|
-
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
74
|
-
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
73
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
74
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
75
75
|
|
76
76
|
# header parameters
|
77
77
|
header_params = opts[:header_params] || {}
|
@@ -110,8 +110,8 @@ module PulpOstreeClient
|
|
110
110
|
# A ViewSet class for OSTree objects (e.g., dirtree, dirmeta, file).
|
111
111
|
# @param ostree_ostree_object_href [String]
|
112
112
|
# @param [Hash] opts the optional parameters
|
113
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
114
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
113
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
114
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
115
115
|
# @return [OstreeOstreeObjectResponse]
|
116
116
|
def read(ostree_ostree_object_href, opts = {})
|
117
117
|
data, _status_code, _headers = read_with_http_info(ostree_ostree_object_href, opts)
|
@@ -122,8 +122,8 @@ module PulpOstreeClient
|
|
122
122
|
# A ViewSet class for OSTree objects (e.g., dirtree, dirmeta, file).
|
123
123
|
# @param ostree_ostree_object_href [String]
|
124
124
|
# @param [Hash] opts the optional parameters
|
125
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
126
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
125
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
126
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
127
127
|
# @return [Array<(OstreeOstreeObjectResponse, Integer, Hash)>] OstreeOstreeObjectResponse data, response status code and response headers
|
128
128
|
def read_with_http_info(ostree_ostree_object_href, opts = {})
|
129
129
|
if @api_client.config.debugging
|
@@ -138,8 +138,8 @@ module PulpOstreeClient
|
|
138
138
|
|
139
139
|
# query parameters
|
140
140
|
query_params = opts[:query_params] || {}
|
141
|
-
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
142
|
-
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
141
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
142
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
143
143
|
|
144
144
|
# header parameters
|
145
145
|
header_params = opts[:header_params] || {}
|
@@ -34,8 +34,8 @@ module PulpOstreeClient
|
|
34
34
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
35
35
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
36
36
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
37
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
38
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
37
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
38
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
39
39
|
# @return [PaginatedostreeOstreeRefResponseList]
|
40
40
|
def list(opts = {})
|
41
41
|
data, _status_code, _headers = list_with_http_info(opts)
|
@@ -57,14 +57,14 @@ module PulpOstreeClient
|
|
57
57
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
58
58
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
59
59
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
60
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
61
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
60
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
61
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
62
62
|
# @return [Array<(PaginatedostreeOstreeRefResponseList, Integer, Hash)>] PaginatedostreeOstreeRefResponseList data, response status code and response headers
|
63
63
|
def list_with_http_info(opts = {})
|
64
64
|
if @api_client.config.debugging
|
65
65
|
@api_client.config.logger.debug 'Calling API: ContentRefsApi.list ...'
|
66
66
|
end
|
67
|
-
allowable_values = ["-
|
67
|
+
allowable_values = ["-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-relative_path", "-timestamp_of_interest", "-upstream_id", "name", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "relative_path", "timestamp_of_interest", "upstream_id"]
|
68
68
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
69
69
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
70
70
|
end
|
@@ -85,8 +85,8 @@ module PulpOstreeClient
|
|
85
85
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
86
86
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
87
87
|
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
88
|
-
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
89
|
-
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
88
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
89
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
90
90
|
|
91
91
|
# header parameters
|
92
92
|
header_params = opts[:header_params] || {}
|
@@ -125,8 +125,8 @@ module PulpOstreeClient
|
|
125
125
|
# A ViewSet class for OSTree head commits.
|
126
126
|
# @param ostree_ostree_ref_href [String]
|
127
127
|
# @param [Hash] opts the optional parameters
|
128
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
129
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
128
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
129
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
130
130
|
# @return [OstreeOstreeRefResponse]
|
131
131
|
def read(ostree_ostree_ref_href, opts = {})
|
132
132
|
data, _status_code, _headers = read_with_http_info(ostree_ostree_ref_href, opts)
|
@@ -137,8 +137,8 @@ module PulpOstreeClient
|
|
137
137
|
# A ViewSet class for OSTree head commits.
|
138
138
|
# @param ostree_ostree_ref_href [String]
|
139
139
|
# @param [Hash] opts the optional parameters
|
140
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
141
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
140
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
141
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
142
142
|
# @return [Array<(OstreeOstreeRefResponse, Integer, Hash)>] OstreeOstreeRefResponse data, response status code and response headers
|
143
143
|
def read_with_http_info(ostree_ostree_ref_href, opts = {})
|
144
144
|
if @api_client.config.debugging
|
@@ -153,8 +153,8 @@ module PulpOstreeClient
|
|
153
153
|
|
154
154
|
# query parameters
|
155
155
|
query_params = opts[:query_params] || {}
|
156
|
-
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
157
|
-
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
156
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
157
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
158
158
|
|
159
159
|
# header parameters
|
160
160
|
header_params = opts[:header_params] || {}
|
@@ -28,8 +28,8 @@ module PulpOstreeClient
|
|
28
28
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
29
29
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
30
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.
|
31
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
32
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
33
33
|
# @return [PaginatedostreeOstreeSummaryResponseList]
|
34
34
|
def list(opts = {})
|
35
35
|
data, _status_code, _headers = list_with_http_info(opts)
|
@@ -45,8 +45,8 @@ module PulpOstreeClient
|
|
45
45
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
46
46
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
47
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.
|
48
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
49
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
50
50
|
# @return [Array<(PaginatedostreeOstreeSummaryResponseList, Integer, Hash)>] PaginatedostreeOstreeSummaryResponseList data, response status code and response headers
|
51
51
|
def list_with_http_info(opts = {})
|
52
52
|
if @api_client.config.debugging
|
@@ -67,8 +67,8 @@ module PulpOstreeClient
|
|
67
67
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
68
68
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
69
69
|
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
70
|
-
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
71
|
-
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
70
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
71
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
72
72
|
|
73
73
|
# header parameters
|
74
74
|
header_params = opts[:header_params] || {}
|
@@ -107,8 +107,8 @@ module PulpOstreeClient
|
|
107
107
|
# A ViewSet class for OSTree repository summary files.
|
108
108
|
# @param ostree_ostree_summary_href [String]
|
109
109
|
# @param [Hash] opts the optional parameters
|
110
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
111
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
110
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
111
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
112
112
|
# @return [OstreeOstreeSummaryResponse]
|
113
113
|
def read(ostree_ostree_summary_href, opts = {})
|
114
114
|
data, _status_code, _headers = read_with_http_info(ostree_ostree_summary_href, opts)
|
@@ -119,8 +119,8 @@ module PulpOstreeClient
|
|
119
119
|
# A ViewSet class for OSTree repository summary files.
|
120
120
|
# @param ostree_ostree_summary_href [String]
|
121
121
|
# @param [Hash] opts the optional parameters
|
122
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
123
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
122
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
123
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
124
124
|
# @return [Array<(OstreeOstreeSummaryResponse, Integer, Hash)>] OstreeOstreeSummaryResponse data, response status code and response headers
|
125
125
|
def read_with_http_info(ostree_ostree_summary_href, opts = {})
|
126
126
|
if @api_client.config.debugging
|
@@ -135,8 +135,8 @@ module PulpOstreeClient
|
|
135
135
|
|
136
136
|
# query parameters
|
137
137
|
query_params = opts[:query_params] || {}
|
138
|
-
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
139
|
-
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
138
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
139
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
140
140
|
|
141
141
|
# header parameters
|
142
142
|
header_params = opts[:header_params] || {}
|
@@ -148,12 +148,12 @@ module PulpOstreeClient
|
|
148
148
|
# List ostree distributions
|
149
149
|
# A ViewSet class for OSTree distributions.
|
150
150
|
# @param [Hash] opts the optional parameters
|
151
|
-
# @option opts [String] :base_path
|
151
|
+
# @option opts [String] :base_path Filter results where base_path matches value
|
152
152
|
# @option opts [String] :base_path__contains Filter results where base_path contains value
|
153
153
|
# @option opts [String] :base_path__icontains Filter results where base_path contains value
|
154
154
|
# @option opts [Array<String>] :base_path__in Filter results where base_path is in a comma-separated list of values
|
155
155
|
# @option opts [Integer] :limit Number of results to return per page.
|
156
|
-
# @option opts [String] :name
|
156
|
+
# @option opts [String] :name Filter results where name matches value
|
157
157
|
# @option opts [String] :name__contains Filter results where name contains value
|
158
158
|
# @option opts [String] :name__icontains Filter results where name contains value
|
159
159
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
@@ -161,8 +161,11 @@ module PulpOstreeClient
|
|
161
161
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
162
162
|
# @option opts [Array<String>] :ordering Ordering
|
163
163
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
164
|
-
# @option opts [String] :
|
165
|
-
# @option opts [String] :
|
164
|
+
# @option opts [String] :repository Filter results where repository matches value
|
165
|
+
# @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
|
166
|
+
# @option opts [String] :with_content Filter distributions based on the content served by them
|
167
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
168
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
166
169
|
# @return [PaginatedostreeOstreeDistributionResponseList]
|
167
170
|
def list(opts = {})
|
168
171
|
data, _status_code, _headers = list_with_http_info(opts)
|
@@ -172,12 +175,12 @@ module PulpOstreeClient
|
|
172
175
|
# List ostree distributions
|
173
176
|
# A ViewSet class for OSTree distributions.
|
174
177
|
# @param [Hash] opts the optional parameters
|
175
|
-
# @option opts [String] :base_path
|
178
|
+
# @option opts [String] :base_path Filter results where base_path matches value
|
176
179
|
# @option opts [String] :base_path__contains Filter results where base_path contains value
|
177
180
|
# @option opts [String] :base_path__icontains Filter results where base_path contains value
|
178
181
|
# @option opts [Array<String>] :base_path__in Filter results where base_path is in a comma-separated list of values
|
179
182
|
# @option opts [Integer] :limit Number of results to return per page.
|
180
|
-
# @option opts [String] :name
|
183
|
+
# @option opts [String] :name Filter results where name matches value
|
181
184
|
# @option opts [String] :name__contains Filter results where name contains value
|
182
185
|
# @option opts [String] :name__icontains Filter results where name contains value
|
183
186
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
@@ -185,14 +188,17 @@ module PulpOstreeClient
|
|
185
188
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
186
189
|
# @option opts [Array<String>] :ordering Ordering
|
187
190
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
188
|
-
# @option opts [String] :
|
189
|
-
# @option opts [String] :
|
191
|
+
# @option opts [String] :repository Filter results where repository matches value
|
192
|
+
# @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
|
193
|
+
# @option opts [String] :with_content Filter distributions based on the content served by them
|
194
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
195
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
190
196
|
# @return [Array<(PaginatedostreeOstreeDistributionResponseList, Integer, Hash)>] PaginatedostreeOstreeDistributionResponseList data, response status code and response headers
|
191
197
|
def list_with_http_info(opts = {})
|
192
198
|
if @api_client.config.debugging
|
193
199
|
@api_client.config.logger.debug 'Calling API: DistributionsOstreeApi.list ...'
|
194
200
|
end
|
195
|
-
allowable_values = ["-base_path", "-
|
201
|
+
allowable_values = ["-base_path", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "base_path", "name", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type"]
|
196
202
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
197
203
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
198
204
|
end
|
@@ -214,8 +220,11 @@ module PulpOstreeClient
|
|
214
220
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
215
221
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
216
222
|
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
217
|
-
query_params[:'
|
218
|
-
query_params[:'
|
223
|
+
query_params[:'repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
224
|
+
query_params[:'repository__in'] = @api_client.build_collection_param(opts[:'repository__in'], :csv) if !opts[:'repository__in'].nil?
|
225
|
+
query_params[:'with_content'] = opts[:'with_content'] if !opts[:'with_content'].nil?
|
226
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
227
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
219
228
|
|
220
229
|
# header parameters
|
221
230
|
header_params = opts[:header_params] || {}
|
@@ -324,8 +333,8 @@ module PulpOstreeClient
|
|
324
333
|
# A ViewSet class for OSTree distributions.
|
325
334
|
# @param ostree_ostree_distribution_href [String]
|
326
335
|
# @param [Hash] opts the optional parameters
|
327
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
328
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
336
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
337
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
329
338
|
# @return [OstreeOstreeDistributionResponse]
|
330
339
|
def read(ostree_ostree_distribution_href, opts = {})
|
331
340
|
data, _status_code, _headers = read_with_http_info(ostree_ostree_distribution_href, opts)
|
@@ -336,8 +345,8 @@ module PulpOstreeClient
|
|
336
345
|
# A ViewSet class for OSTree distributions.
|
337
346
|
# @param ostree_ostree_distribution_href [String]
|
338
347
|
# @param [Hash] opts the optional parameters
|
339
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
340
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
348
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
349
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
341
350
|
# @return [Array<(OstreeOstreeDistributionResponse, Integer, Hash)>] OstreeOstreeDistributionResponse data, response status code and response headers
|
342
351
|
def read_with_http_info(ostree_ostree_distribution_href, opts = {})
|
343
352
|
if @api_client.config.debugging
|
@@ -352,8 +361,8 @@ module PulpOstreeClient
|
|
352
361
|
|
353
362
|
# query parameters
|
354
363
|
query_params = opts[:query_params] || {}
|
355
|
-
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
356
|
-
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
364
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
365
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
357
366
|
|
358
367
|
# header parameters
|
359
368
|
header_params = opts[:header_params] || {}
|
@@ -149,7 +149,7 @@ module PulpOstreeClient
|
|
149
149
|
# A ViewSet class for OSTree remote repositories.
|
150
150
|
# @param [Hash] opts the optional parameters
|
151
151
|
# @option opts [Integer] :limit Number of results to return per page.
|
152
|
-
# @option opts [String] :name
|
152
|
+
# @option opts [String] :name Filter results where name matches value
|
153
153
|
# @option opts [String] :name__contains Filter results where name contains value
|
154
154
|
# @option opts [String] :name__icontains Filter results where name contains value
|
155
155
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
@@ -157,14 +157,14 @@ module PulpOstreeClient
|
|
157
157
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
158
158
|
# @option opts [Array<String>] :ordering Ordering
|
159
159
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
160
|
-
# @option opts [DateTime] :pulp_last_updated
|
160
|
+
# @option opts [DateTime] :pulp_last_updated Filter results where pulp_last_updated matches value
|
161
161
|
# @option opts [DateTime] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
|
162
162
|
# @option opts [DateTime] :pulp_last_updated__gte Filter results where pulp_last_updated is greater than or equal to value
|
163
163
|
# @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
164
164
|
# @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
165
165
|
# @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
166
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
167
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
166
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
167
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
168
168
|
# @return [PaginatedostreeOstreeRemoteResponseList]
|
169
169
|
def list(opts = {})
|
170
170
|
data, _status_code, _headers = list_with_http_info(opts)
|
@@ -175,7 +175,7 @@ module PulpOstreeClient
|
|
175
175
|
# A ViewSet class for OSTree remote repositories.
|
176
176
|
# @param [Hash] opts the optional parameters
|
177
177
|
# @option opts [Integer] :limit Number of results to return per page.
|
178
|
-
# @option opts [String] :name
|
178
|
+
# @option opts [String] :name Filter results where name matches value
|
179
179
|
# @option opts [String] :name__contains Filter results where name contains value
|
180
180
|
# @option opts [String] :name__icontains Filter results where name contains value
|
181
181
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
@@ -183,20 +183,20 @@ module PulpOstreeClient
|
|
183
183
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
184
184
|
# @option opts [Array<String>] :ordering Ordering
|
185
185
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
186
|
-
# @option opts [DateTime] :pulp_last_updated
|
186
|
+
# @option opts [DateTime] :pulp_last_updated Filter results where pulp_last_updated matches value
|
187
187
|
# @option opts [DateTime] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
|
188
188
|
# @option opts [DateTime] :pulp_last_updated__gte Filter results where pulp_last_updated is greater than or equal to value
|
189
189
|
# @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
190
190
|
# @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
191
191
|
# @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
192
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
193
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
192
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
193
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
194
194
|
# @return [Array<(PaginatedostreeOstreeRemoteResponseList, Integer, Hash)>] PaginatedostreeOstreeRemoteResponseList data, response status code and response headers
|
195
195
|
def list_with_http_info(opts = {})
|
196
196
|
if @api_client.config.debugging
|
197
197
|
@api_client.config.logger.debug 'Calling API: RemotesOstreeApi.list ...'
|
198
198
|
end
|
199
|
-
allowable_values = ["-
|
199
|
+
allowable_values = ["-ca_cert", "-client_cert", "-client_key", "-connect_timeout", "-download_concurrency", "-headers", "-max_retries", "-name", "-password", "-pk", "-policy", "-proxy_password", "-proxy_url", "-proxy_username", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-rate_limit", "-sock_connect_timeout", "-sock_read_timeout", "-tls_validation", "-total_timeout", "-url", "-username", "ca_cert", "client_cert", "client_key", "connect_timeout", "download_concurrency", "headers", "max_retries", "name", "password", "pk", "policy", "proxy_password", "proxy_url", "proxy_username", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "rate_limit", "sock_connect_timeout", "sock_read_timeout", "tls_validation", "total_timeout", "url", "username"]
|
200
200
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
201
201
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
202
202
|
end
|
@@ -220,8 +220,8 @@ module PulpOstreeClient
|
|
220
220
|
query_params[:'pulp_last_updated__lt'] = opts[:'pulp_last_updated__lt'] if !opts[:'pulp_last_updated__lt'].nil?
|
221
221
|
query_params[:'pulp_last_updated__lte'] = opts[:'pulp_last_updated__lte'] if !opts[:'pulp_last_updated__lte'].nil?
|
222
222
|
query_params[:'pulp_last_updated__range'] = @api_client.build_collection_param(opts[:'pulp_last_updated__range'], :csv) if !opts[:'pulp_last_updated__range'].nil?
|
223
|
-
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
224
|
-
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
223
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
224
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
225
225
|
|
226
226
|
# header parameters
|
227
227
|
header_params = opts[:header_params] || {}
|
@@ -330,8 +330,8 @@ module PulpOstreeClient
|
|
330
330
|
# A ViewSet class for OSTree remote repositories.
|
331
331
|
# @param ostree_ostree_remote_href [String]
|
332
332
|
# @param [Hash] opts the optional parameters
|
333
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
334
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
333
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
334
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
335
335
|
# @return [OstreeOstreeRemoteResponse]
|
336
336
|
def read(ostree_ostree_remote_href, opts = {})
|
337
337
|
data, _status_code, _headers = read_with_http_info(ostree_ostree_remote_href, opts)
|
@@ -342,8 +342,8 @@ module PulpOstreeClient
|
|
342
342
|
# A ViewSet class for OSTree remote repositories.
|
343
343
|
# @param ostree_ostree_remote_href [String]
|
344
344
|
# @param [Hash] opts the optional parameters
|
345
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
346
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
345
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
346
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
347
347
|
# @return [Array<(OstreeOstreeRemoteResponse, Integer, Hash)>] OstreeOstreeRemoteResponse data, response status code and response headers
|
348
348
|
def read_with_http_info(ostree_ostree_remote_href, opts = {})
|
349
349
|
if @api_client.config.debugging
|
@@ -358,8 +358,8 @@ module PulpOstreeClient
|
|
358
358
|
|
359
359
|
# query parameters
|
360
360
|
query_params = opts[:query_params] || {}
|
361
|
-
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
362
|
-
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
361
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
362
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
363
363
|
|
364
364
|
# header parameters
|
365
365
|
header_params = opts[:header_params] || {}
|