pulp_ostree_client 2.0.0a5 → 2.0.0a6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +10 -9
  3. data/docs/ContentCommitsApi.md +2 -2
  4. data/docs/ContentConfigsApi.md +2 -2
  5. data/docs/ContentObjectsApi.md +2 -2
  6. data/docs/ContentRefsApi.md +2 -2
  7. data/docs/ContentSummariesApi.md +2 -2
  8. data/docs/DistributionsOstreeApi.md +2 -2
  9. data/docs/OstreeImportAll.md +19 -0
  10. data/docs/{OstreeRepoImport.md → OstreeImportCommitsToRef.md} +3 -3
  11. data/docs/OstreeOstreeRemote.md +7 -3
  12. data/docs/OstreeOstreeRemoteResponse.md +5 -1
  13. data/docs/PatchedostreeOstreeRemote.md +7 -3
  14. data/docs/RemotesOstreeApi.md +2 -2
  15. data/docs/Repair.md +17 -0
  16. data/docs/RepositoriesOstreeApi.md +66 -10
  17. data/docs/RepositoriesOstreeVersionsApi.md +6 -6
  18. data/lib/pulp_ostree_client/api/content_commits_api.rb +7 -3
  19. data/lib/pulp_ostree_client/api/content_configs_api.rb +7 -3
  20. data/lib/pulp_ostree_client/api/content_objects_api.rb +7 -3
  21. data/lib/pulp_ostree_client/api/content_refs_api.rb +7 -3
  22. data/lib/pulp_ostree_client/api/content_summaries_api.rb +7 -3
  23. data/lib/pulp_ostree_client/api/distributions_ostree_api.rb +7 -3
  24. data/lib/pulp_ostree_client/api/remotes_ostree_api.rb +7 -3
  25. data/lib/pulp_ostree_client/api/repositories_ostree_api.rb +90 -16
  26. data/lib/pulp_ostree_client/api/repositories_ostree_versions_api.rb +16 -12
  27. data/lib/pulp_ostree_client/api_client.rb +1 -4
  28. data/lib/pulp_ostree_client/configuration.rb +1 -0
  29. data/lib/pulp_ostree_client/models/{content_summary.rb → ostree_import_all.rb} +42 -41
  30. data/lib/pulp_ostree_client/models/{ostree_repo_import.rb → ostree_import_commits_to_ref.rb} +16 -7
  31. data/lib/pulp_ostree_client/models/ostree_ostree_remote.rb +32 -6
  32. data/lib/pulp_ostree_client/models/ostree_ostree_remote_response.rb +30 -4
  33. data/lib/pulp_ostree_client/models/patchedostree_ostree_remote.rb +32 -6
  34. data/lib/pulp_ostree_client/models/{repository_version.rb → repair.rb} +13 -12
  35. data/lib/pulp_ostree_client/version.rb +1 -1
  36. data/lib/pulp_ostree_client.rb +3 -3
  37. data/spec/api/content_commits_api_spec.rb +1 -1
  38. data/spec/api/content_configs_api_spec.rb +1 -1
  39. data/spec/api/content_objects_api_spec.rb +1 -1
  40. data/spec/api/content_refs_api_spec.rb +1 -1
  41. data/spec/api/content_summaries_api_spec.rb +1 -1
  42. data/spec/api/distributions_ostree_api_spec.rb +1 -1
  43. data/spec/api/remotes_ostree_api_spec.rb +1 -1
  44. data/spec/api/repositories_ostree_api_spec.rb +17 -4
  45. data/spec/api/repositories_ostree_versions_api_spec.rb +2 -2
  46. data/spec/models/{content_summary_spec.rb → ostree_import_all_spec.rb} +8 -14
  47. data/spec/models/{ostree_repo_import_spec.rb → ostree_import_commits_to_ref_spec.rb} +6 -6
  48. data/spec/models/ostree_ostree_remote_response_spec.rb +12 -0
  49. data/spec/models/ostree_ostree_remote_spec.rb +12 -0
  50. data/spec/models/patchedostree_ostree_remote_spec.rb +12 -0
  51. data/spec/models/{repository_version_spec.rb → repair_spec.rb} +7 -7
  52. metadata +41 -41
  53. data/docs/ContentSummary.md +0 -21
  54. data/docs/RepositoryVersion.md +0 -17
@@ -25,7 +25,7 @@ module PulpOstreeClient
25
25
  # @option opts [String] :checksum Filter results where checksum matches value
26
26
  # @option opts [Integer] :limit Number of results to return per page.
27
27
  # @option opts [Integer] :offset The initial index from which to return the results.
28
- # @option opts [String] :ordering Which field to use when ordering the results.
28
+ # @option opts [Array<String>] :ordering Ordering
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
@@ -43,7 +43,7 @@ module PulpOstreeClient
43
43
  # @option opts [String] :checksum Filter results where checksum matches value
44
44
  # @option opts [Integer] :limit Number of results to return per page.
45
45
  # @option opts [Integer] :offset The initial index from which to return the results.
46
- # @option opts [String] :ordering Which field to use when ordering the results.
46
+ # @option opts [Array<String>] :ordering Ordering
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
@@ -54,6 +54,10 @@ module PulpOstreeClient
54
54
  if @api_client.config.debugging
55
55
  @api_client.config.logger.debug 'Calling API: ContentObjectsApi.list ...'
56
56
  end
57
+ allowable_values = ["-_artifacts", "-checksum", "-commit_object", "-content_ptr", "-contentartifact", "-group_roles", "-ostree_ostreecommit", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-relative_path", "-repositories", "-timestamp_of_interest", "-typ", "-upstream_id", "-user_roles", "-version_memberships", "_artifacts", "checksum", "commit_object", "content_ptr", "contentartifact", "group_roles", "ostree_ostreecommit", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "relative_path", "repositories", "timestamp_of_interest", "typ", "upstream_id", "user_roles", "version_memberships"]
58
+ if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
59
+ fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
60
+ end
57
61
  # resource path
58
62
  local_var_path = '/pulp/api/v3/content/ostree/objects/'
59
63
 
@@ -62,7 +66,7 @@ module PulpOstreeClient
62
66
  query_params[:'checksum'] = opts[:'checksum'] if !opts[:'checksum'].nil?
63
67
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
64
68
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
65
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
69
+ query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
66
70
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
67
71
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
68
72
  query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
@@ -30,7 +30,7 @@ module PulpOstreeClient
30
30
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
31
31
  # @option opts [String] :name__startswith Filter results where name starts with value
32
32
  # @option opts [Integer] :offset The initial index from which to return the results.
33
- # @option opts [String] :ordering Which field to use when ordering the results.
33
+ # @option opts [Array<String>] :ordering Ordering
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
@@ -53,7 +53,7 @@ module PulpOstreeClient
53
53
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
54
54
  # @option opts [String] :name__startswith Filter results where name starts with value
55
55
  # @option opts [Integer] :offset The initial index from which to return the results.
56
- # @option opts [String] :ordering Which field to use when ordering the results.
56
+ # @option opts [Array<String>] :ordering Ordering
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
@@ -64,6 +64,10 @@ module PulpOstreeClient
64
64
  if @api_client.config.debugging
65
65
  @api_client.config.logger.debug 'Calling API: ContentRefsApi.list ...'
66
66
  end
67
+ allowable_values = ["-_artifacts", "-commit", "-content_ptr", "-contentartifact", "-group_roles", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-relative_path", "-repositories", "-timestamp_of_interest", "-upstream_id", "-user_roles", "-version_memberships", "_artifacts", "commit", "content_ptr", "contentartifact", "group_roles", "name", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "relative_path", "repositories", "timestamp_of_interest", "upstream_id", "user_roles", "version_memberships"]
68
+ if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
69
+ fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
70
+ end
67
71
  # resource path
68
72
  local_var_path = '/pulp/api/v3/content/ostree/refs/'
69
73
 
@@ -77,7 +81,7 @@ module PulpOstreeClient
77
81
  query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
78
82
  query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
79
83
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
80
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
84
+ query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
81
85
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
82
86
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
83
87
  query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
@@ -24,7 +24,7 @@ module PulpOstreeClient
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @option opts [Integer] :limit Number of results to return per page.
26
26
  # @option opts [Integer] :offset The initial index from which to return the results.
27
- # @option opts [String] :ordering Which field to use when ordering the results.
27
+ # @option opts [Array<String>] :ordering Ordering
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
@@ -41,7 +41,7 @@ module PulpOstreeClient
41
41
  # @param [Hash] opts the optional parameters
42
42
  # @option opts [Integer] :limit Number of results to return per page.
43
43
  # @option opts [Integer] :offset The initial index from which to return the results.
44
- # @option opts [String] :ordering Which field to use when ordering the results.
44
+ # @option opts [Array<String>] :ordering Ordering
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
@@ -52,6 +52,10 @@ module PulpOstreeClient
52
52
  if @api_client.config.debugging
53
53
  @api_client.config.logger.debug 'Calling API: ContentSummariesApi.list ...'
54
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
55
59
  # resource path
56
60
  local_var_path = '/pulp/api/v3/content/ostree/summaries/'
57
61
 
@@ -59,7 +63,7 @@ module PulpOstreeClient
59
63
  query_params = opts[:query_params] || {}
60
64
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
61
65
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
62
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
66
+ query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
63
67
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
64
68
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
65
69
  query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
@@ -159,7 +159,7 @@ module PulpOstreeClient
159
159
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
160
160
  # @option opts [String] :name__startswith Filter results where name starts with value
161
161
  # @option opts [Integer] :offset The initial index from which to return the results.
162
- # @option opts [String] :ordering Which field to use when ordering the results.
162
+ # @option opts [Array<String>] :ordering Ordering
163
163
  # @option opts [String] :pulp_label_select Filter labels by search string
164
164
  # @option opts [String] :fields A list of fields to include in the response.
165
165
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
@@ -183,7 +183,7 @@ module PulpOstreeClient
183
183
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
184
184
  # @option opts [String] :name__startswith Filter results where name starts with value
185
185
  # @option opts [Integer] :offset The initial index from which to return the results.
186
- # @option opts [String] :ordering Which field to use when ordering the results.
186
+ # @option opts [Array<String>] :ordering Ordering
187
187
  # @option opts [String] :pulp_label_select Filter labels by search string
188
188
  # @option opts [String] :fields A list of fields to include in the response.
189
189
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
@@ -192,6 +192,10 @@ module PulpOstreeClient
192
192
  if @api_client.config.debugging
193
193
  @api_client.config.logger.debug 'Calling API: DistributionsOstreeApi.list ...'
194
194
  end
195
+ allowable_values = ["-base_path", "-content_guard", "-group_roles", "-name", "-ostree_ostreedistribution", "-pk", "-publication", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-remote", "-repository", "-repository_version", "-user_roles", "base_path", "content_guard", "group_roles", "name", "ostree_ostreedistribution", "pk", "publication", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "remote", "repository", "repository_version", "user_roles"]
196
+ if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
197
+ fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
198
+ end
195
199
  # resource path
196
200
  local_var_path = '/pulp/api/v3/distributions/ostree/ostree/'
197
201
 
@@ -208,7 +212,7 @@ module PulpOstreeClient
208
212
  query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
209
213
  query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
210
214
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
211
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
215
+ query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
212
216
  query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
213
217
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
214
218
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
@@ -155,7 +155,7 @@ module PulpOstreeClient
155
155
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
156
156
  # @option opts [String] :name__startswith Filter results where name starts with value
157
157
  # @option opts [Integer] :offset The initial index from which to return the results.
158
- # @option opts [String] :ordering Which field to use when ordering the results.
158
+ # @option opts [Array<String>] :ordering Ordering
159
159
  # @option opts [String] :pulp_label_select Filter labels by search string
160
160
  # @option opts [DateTime] :pulp_last_updated ISO 8601 formatted dates are supported
161
161
  # @option opts [DateTime] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
@@ -181,7 +181,7 @@ module PulpOstreeClient
181
181
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
182
182
  # @option opts [String] :name__startswith Filter results where name starts with value
183
183
  # @option opts [Integer] :offset The initial index from which to return the results.
184
- # @option opts [String] :ordering Which field to use when ordering the results.
184
+ # @option opts [Array<String>] :ordering Ordering
185
185
  # @option opts [String] :pulp_label_select Filter labels by search string
186
186
  # @option opts [DateTime] :pulp_last_updated ISO 8601 formatted dates are supported
187
187
  # @option opts [DateTime] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
@@ -196,6 +196,10 @@ module PulpOstreeClient
196
196
  if @api_client.config.debugging
197
197
  @api_client.config.logger.debug 'Calling API: RemotesOstreeApi.list ...'
198
198
  end
199
+ allowable_values = ["-alternatecontentsource", "-basedistribution", "-ca_cert", "-client_cert", "-client_key", "-connect_timeout", "-distribution", "-download_concurrency", "-group_roles", "-headers", "-max_retries", "-name", "-ostree_ostreeremote", "-password", "-pk", "-policy", "-proxy_password", "-proxy_url", "-proxy_username", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-rate_limit", "-remoteartifact", "-repository", "-sock_connect_timeout", "-sock_read_timeout", "-tls_validation", "-total_timeout", "-url", "-user_roles", "-username", "alternatecontentsource", "basedistribution", "ca_cert", "client_cert", "client_key", "connect_timeout", "distribution", "download_concurrency", "group_roles", "headers", "max_retries", "name", "ostree_ostreeremote", "password", "pk", "policy", "proxy_password", "proxy_url", "proxy_username", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "rate_limit", "remoteartifact", "repository", "sock_connect_timeout", "sock_read_timeout", "tls_validation", "total_timeout", "url", "user_roles", "username"]
200
+ if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
201
+ fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
202
+ end
199
203
  # resource path
200
204
  local_var_path = '/pulp/api/v3/remotes/ostree/ostree/'
201
205
 
@@ -208,7 +212,7 @@ module PulpOstreeClient
208
212
  query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
209
213
  query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
210
214
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
211
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
215
+ query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
212
216
  query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
213
217
  query_params[:'pulp_last_updated'] = opts[:'pulp_last_updated'] if !opts[:'pulp_last_updated'].nil?
214
218
  query_params[:'pulp_last_updated__gt'] = opts[:'pulp_last_updated__gt'] if !opts[:'pulp_last_updated__gt'].nil?
@@ -145,24 +145,94 @@ module PulpOstreeClient
145
145
  return data, status_code, headers
146
146
  end
147
147
 
148
- # Import commits to a repository
149
- # Trigger an asynchronous task to create a new OSTree repository version.
148
+ # Import refs and commits to a repository
149
+ # Trigger an asynchronous task to import all refs and commits to a repository.
150
150
  # @param ostree_ostree_repository_href [String]
151
- # @param ostree_repo_import [OstreeRepoImport]
151
+ # @param ostree_import_all [OstreeImportAll]
152
152
  # @param [Hash] opts the optional parameters
153
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)
154
+ def import_all(ostree_ostree_repository_href, ostree_import_all, opts = {})
155
+ data, _status_code, _headers = import_all_with_http_info(ostree_ostree_repository_href, ostree_import_all, opts)
156
156
  data
157
157
  end
158
158
 
159
- # Import commits to a repository
160
- # Trigger an asynchronous task to create a new OSTree repository version.
159
+ # Import refs and commits to a repository
160
+ # Trigger an asynchronous task to import all refs and commits to a repository.
161
161
  # @param ostree_ostree_repository_href [String]
162
- # @param ostree_repo_import [OstreeRepoImport]
162
+ # @param ostree_import_all [OstreeImportAll]
163
163
  # @param [Hash] opts the optional parameters
164
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 = {})
165
+ def import_all_with_http_info(ostree_ostree_repository_href, ostree_import_all, opts = {})
166
+ if @api_client.config.debugging
167
+ @api_client.config.logger.debug 'Calling API: RepositoriesOstreeApi.import_all ...'
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_all"
172
+ end
173
+ # verify the required parameter 'ostree_import_all' is set
174
+ if @api_client.config.client_side_validation && ostree_import_all.nil?
175
+ fail ArgumentError, "Missing the required parameter 'ostree_import_all' when calling RepositoriesOstreeApi.import_all"
176
+ end
177
+ # resource path
178
+ local_var_path = '{ostree_ostree_repository_href}import_all/'.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_import_all)
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_all\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
214
+ end
215
+ return data, status_code, headers
216
+ end
217
+
218
+ # Append child commits to a repository
219
+ # Trigger an asynchronous task to append child commits to a repository.
220
+ # @param ostree_ostree_repository_href [String]
221
+ # @param ostree_import_commits_to_ref [OstreeImportCommitsToRef]
222
+ # @param [Hash] opts the optional parameters
223
+ # @return [AsyncOperationResponse]
224
+ def import_commits(ostree_ostree_repository_href, ostree_import_commits_to_ref, opts = {})
225
+ data, _status_code, _headers = import_commits_with_http_info(ostree_ostree_repository_href, ostree_import_commits_to_ref, opts)
226
+ data
227
+ end
228
+
229
+ # Append child commits to a repository
230
+ # Trigger an asynchronous task to append child commits to a repository.
231
+ # @param ostree_ostree_repository_href [String]
232
+ # @param ostree_import_commits_to_ref [OstreeImportCommitsToRef]
233
+ # @param [Hash] opts the optional parameters
234
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
235
+ def import_commits_with_http_info(ostree_ostree_repository_href, ostree_import_commits_to_ref, opts = {})
166
236
  if @api_client.config.debugging
167
237
  @api_client.config.logger.debug 'Calling API: RepositoriesOstreeApi.import_commits ...'
168
238
  end
@@ -170,9 +240,9 @@ module PulpOstreeClient
170
240
  if @api_client.config.client_side_validation && ostree_ostree_repository_href.nil?
171
241
  fail ArgumentError, "Missing the required parameter 'ostree_ostree_repository_href' when calling RepositoriesOstreeApi.import_commits"
172
242
  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"
243
+ # verify the required parameter 'ostree_import_commits_to_ref' is set
244
+ if @api_client.config.client_side_validation && ostree_import_commits_to_ref.nil?
245
+ fail ArgumentError, "Missing the required parameter 'ostree_import_commits_to_ref' when calling RepositoriesOstreeApi.import_commits"
176
246
  end
177
247
  # resource path
178
248
  local_var_path = '{ostree_ostree_repository_href}import_commits/'.sub('{' + 'ostree_ostree_repository_href' + '}', CGI.escape(ostree_ostree_repository_href.to_s).gsub('%2F', '/'))
@@ -191,7 +261,7 @@ module PulpOstreeClient
191
261
  form_params = opts[:form_params] || {}
192
262
 
193
263
  # http body (model)
194
- post_body = opts[:body] || @api_client.object_to_http_body(ostree_repo_import)
264
+ post_body = opts[:body] || @api_client.object_to_http_body(ostree_import_commits_to_ref)
195
265
 
196
266
  # return_type
197
267
  return_type = opts[:return_type] || 'AsyncOperationResponse'
@@ -225,7 +295,7 @@ module PulpOstreeClient
225
295
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
226
296
  # @option opts [String] :name__startswith Filter results where name starts with value
227
297
  # @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.
298
+ # @option opts [Array<String>] :ordering Ordering
229
299
  # @option opts [String] :pulp_label_select Filter labels by search string
230
300
  # @option opts [String] :fields A list of fields to include in the response.
231
301
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
@@ -245,7 +315,7 @@ module PulpOstreeClient
245
315
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
246
316
  # @option opts [String] :name__startswith Filter results where name starts with value
247
317
  # @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.
318
+ # @option opts [Array<String>] :ordering Ordering
249
319
  # @option opts [String] :pulp_label_select Filter labels by search string
250
320
  # @option opts [String] :fields A list of fields to include in the response.
251
321
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
@@ -254,6 +324,10 @@ module PulpOstreeClient
254
324
  if @api_client.config.debugging
255
325
  @api_client.config.logger.debug 'Calling API: RepositoriesOstreeApi.list ...'
256
326
  end
327
+ allowable_values = ["-alternatecontentsourcepath", "-content", "-core_pulp_exporter", "-description", "-distributions", "-group_roles", "-name", "-next_version", "-ostree_ostreerepository", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-pulpimporterrepository", "-remote", "-repositorycontent", "-retain_repo_versions", "-user_hidden", "-user_roles", "-versions", "alternatecontentsourcepath", "content", "core_pulp_exporter", "description", "distributions", "group_roles", "name", "next_version", "ostree_ostreerepository", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "pulpimporterrepository", "remote", "repositorycontent", "retain_repo_versions", "user_hidden", "user_roles", "versions"]
328
+ if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
329
+ fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
330
+ end
257
331
  # resource path
258
332
  local_var_path = '/pulp/api/v3/repositories/ostree/ostree/'
259
333
 
@@ -266,7 +340,7 @@ module PulpOstreeClient
266
340
  query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
267
341
  query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
268
342
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
269
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
343
+ query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
270
344
  query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
271
345
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
272
346
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
@@ -95,7 +95,7 @@ module PulpOstreeClient
95
95
  # @option opts [Integer] :number__lte Filter results where number is less than or equal to value
96
96
  # @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
97
97
  # @option opts [Integer] :offset The initial index from which to return the results.
98
- # @option opts [String] :ordering Which field to use when ordering the results.
98
+ # @option opts [Array<String>] :ordering Ordering
99
99
  # @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
100
100
  # @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
101
101
  # @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
@@ -124,7 +124,7 @@ module PulpOstreeClient
124
124
  # @option opts [Integer] :number__lte Filter results where number is less than or equal to value
125
125
  # @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
126
126
  # @option opts [Integer] :offset The initial index from which to return the results.
127
- # @option opts [String] :ordering Which field to use when ordering the results.
127
+ # @option opts [Array<String>] :ordering Ordering
128
128
  # @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
129
129
  # @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
130
130
  # @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
@@ -142,6 +142,10 @@ module PulpOstreeClient
142
142
  if @api_client.config.client_side_validation && ostree_ostree_repository_href.nil?
143
143
  fail ArgumentError, "Missing the required parameter 'ostree_ostree_repository_href' when calling RepositoriesOstreeVersionsApi.list"
144
144
  end
145
+ allowable_values = ["-added_memberships", "-base_version", "-complete", "-counts", "-distribution", "-group_roles", "-number", "-pk", "-publication", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-removed_memberships", "-repository", "-user_roles", "-versions", "added_memberships", "base_version", "complete", "counts", "distribution", "group_roles", "number", "pk", "publication", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "removed_memberships", "repository", "user_roles", "versions"]
146
+ if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
147
+ fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
148
+ end
145
149
  # resource path
146
150
  local_var_path = '{ostree_ostree_repository_href}versions/'.sub('{' + 'ostree_ostree_repository_href' + '}', CGI.escape(ostree_ostree_repository_href.to_s).gsub('%2F', '/'))
147
151
 
@@ -157,7 +161,7 @@ module PulpOstreeClient
157
161
  query_params[:'number__lte'] = opts[:'number__lte'] if !opts[:'number__lte'].nil?
158
162
  query_params[:'number__range'] = @api_client.build_collection_param(opts[:'number__range'], :csv) if !opts[:'number__range'].nil?
159
163
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
160
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
164
+ query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
161
165
  query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
162
166
  query_params[:'pulp_created__gt'] = opts[:'pulp_created__gt'] if !opts[:'pulp_created__gt'].nil?
163
167
  query_params[:'pulp_created__gte'] = opts[:'pulp_created__gte'] if !opts[:'pulp_created__gte'].nil?
@@ -270,20 +274,20 @@ module PulpOstreeClient
270
274
 
271
275
  # Trigger an asynchronous task to repair a repository version.
272
276
  # @param ostree_ostree_repository_version_href [String]
273
- # @param repository_version [RepositoryVersion]
277
+ # @param repair [Repair]
274
278
  # @param [Hash] opts the optional parameters
275
279
  # @return [AsyncOperationResponse]
276
- def repair(ostree_ostree_repository_version_href, repository_version, opts = {})
277
- data, _status_code, _headers = repair_with_http_info(ostree_ostree_repository_version_href, repository_version, opts)
280
+ def repair(ostree_ostree_repository_version_href, repair, opts = {})
281
+ data, _status_code, _headers = repair_with_http_info(ostree_ostree_repository_version_href, repair, opts)
278
282
  data
279
283
  end
280
284
 
281
285
  # Trigger an asynchronous task to repair a repository version.
282
286
  # @param ostree_ostree_repository_version_href [String]
283
- # @param repository_version [RepositoryVersion]
287
+ # @param repair [Repair]
284
288
  # @param [Hash] opts the optional parameters
285
289
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
286
- def repair_with_http_info(ostree_ostree_repository_version_href, repository_version, opts = {})
290
+ def repair_with_http_info(ostree_ostree_repository_version_href, repair, opts = {})
287
291
  if @api_client.config.debugging
288
292
  @api_client.config.logger.debug 'Calling API: RepositoriesOstreeVersionsApi.repair ...'
289
293
  end
@@ -291,9 +295,9 @@ module PulpOstreeClient
291
295
  if @api_client.config.client_side_validation && ostree_ostree_repository_version_href.nil?
292
296
  fail ArgumentError, "Missing the required parameter 'ostree_ostree_repository_version_href' when calling RepositoriesOstreeVersionsApi.repair"
293
297
  end
294
- # verify the required parameter 'repository_version' is set
295
- if @api_client.config.client_side_validation && repository_version.nil?
296
- fail ArgumentError, "Missing the required parameter 'repository_version' when calling RepositoriesOstreeVersionsApi.repair"
298
+ # verify the required parameter 'repair' is set
299
+ if @api_client.config.client_side_validation && repair.nil?
300
+ fail ArgumentError, "Missing the required parameter 'repair' when calling RepositoriesOstreeVersionsApi.repair"
297
301
  end
298
302
  # resource path
299
303
  local_var_path = '{ostree_ostree_repository_version_href}repair/'.sub('{' + 'ostree_ostree_repository_version_href' + '}', CGI.escape(ostree_ostree_repository_version_href.to_s).gsub('%2F', '/'))
@@ -312,7 +316,7 @@ module PulpOstreeClient
312
316
  form_params = opts[:form_params] || {}
313
317
 
314
318
  # http body (model)
315
- post_body = opts[:body] || @api_client.object_to_http_body(repository_version)
319
+ post_body = opts[:body] || @api_client.object_to_http_body(repair)
316
320
 
317
321
  # return_type
318
322
  return_type = opts[:return_type] || 'AsyncOperationResponse'
@@ -118,9 +118,6 @@ module PulpOstreeClient
118
118
  update_params_for_auth! header_params, query_params, opts[:auth_names]
119
119
 
120
120
  req_opts = {
121
- :method => http_method,
122
- :headers => header_params,
123
- :params => query_params,
124
121
  :params_encoding => @config.params_encoding,
125
122
  :timeout => @config.timeout,
126
123
  :verbose => @config.debugging
@@ -128,13 +125,13 @@ module PulpOstreeClient
128
125
 
129
126
  if [:post, :patch, :put, :delete].include?(http_method)
130
127
  req_body = build_request_body(header_params, form_params, opts[:body])
131
- req_opts.update :body => req_body
132
128
  if @config.debugging
133
129
  @config.logger.debug "HTTP request body param ~BEGIN~\n#{req_body}\n~END~\n"
134
130
  end
135
131
  end
136
132
  request.headers = header_params
137
133
  request.body = req_body
134
+ request.options = OpenStruct.new(req_opts)
138
135
  request.url url
139
136
  request.params = query_params
140
137
  download_file(request) if opts[:return_type] == 'File'
@@ -140,6 +140,7 @@ module PulpOstreeClient
140
140
  @ssl_client_cert = nil
141
141
  @ssl_client_key = nil
142
142
  @params_encoder = nil
143
+ @timeout = 60
143
144
  @debugging = false
144
145
  @inject_format = false
145
146
  @force_ending_format = false