pulp_ostree_client 2.0.0a6 → 2.0.0a7.dev1670123313

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.

Potentially problematic release.


This version of pulp_ostree_client might be problematic. Click here for more details.

Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -6
  3. data/docs/ContentCommitsApi.md +8 -8
  4. data/docs/ContentConfigsApi.md +8 -8
  5. data/docs/ContentObjectsApi.md +8 -8
  6. data/docs/ContentRefsApi.md +8 -8
  7. data/docs/ContentSummariesApi.md +8 -8
  8. data/docs/DistributionsOstreeApi.md +14 -12
  9. data/docs/OstreeOstreeRemoteResponse.md +2 -0
  10. data/docs/OstreeOstreeRemoteResponseHiddenFields.md +19 -0
  11. data/docs/RemotesOstreeApi.md +12 -12
  12. data/docs/RepositoriesOstreeApi.md +12 -10
  13. data/docs/RepositoriesOstreeVersionsApi.md +12 -12
  14. data/lib/pulp_ostree_client/api/content_commits_api.rb +13 -13
  15. data/lib/pulp_ostree_client/api/content_configs_api.rb +12 -12
  16. data/lib/pulp_ostree_client/api/content_objects_api.rb +13 -13
  17. data/lib/pulp_ostree_client/api/content_refs_api.rb +13 -13
  18. data/lib/pulp_ostree_client/api/content_summaries_api.rb +12 -12
  19. data/lib/pulp_ostree_client/api/distributions_ostree_api.rb +20 -17
  20. data/lib/pulp_ostree_client/api/remotes_ostree_api.rb +17 -17
  21. data/lib/pulp_ostree_client/api/repositories_ostree_api.rb +18 -15
  22. data/lib/pulp_ostree_client/api/repositories_ostree_versions_api.rb +17 -17
  23. data/lib/pulp_ostree_client/api_client.rb +1 -1
  24. data/lib/pulp_ostree_client/models/ostree_ostree_remote_response.rb +13 -1
  25. data/lib/pulp_ostree_client/models/ostree_ostree_remote_response_hidden_fields.rb +215 -0
  26. data/lib/pulp_ostree_client/version.rb +1 -1
  27. data/lib/pulp_ostree_client.rb +1 -0
  28. data/pulp_ostree_client.gemspec +3 -3
  29. data/spec/api/content_commits_api_spec.rb +4 -4
  30. data/spec/api/content_configs_api_spec.rb +4 -4
  31. data/spec/api/content_objects_api_spec.rb +4 -4
  32. data/spec/api/content_refs_api_spec.rb +4 -4
  33. data/spec/api/content_summaries_api_spec.rb +4 -4
  34. data/spec/api/distributions_ostree_api_spec.rb +7 -6
  35. data/spec/api/remotes_ostree_api_spec.rb +6 -6
  36. data/spec/api/repositories_ostree_api_spec.rb +6 -5
  37. data/spec/api/repositories_ostree_versions_api_spec.rb +6 -6
  38. data/spec/models/ostree_ostree_remote_response_hidden_fields_spec.rb +47 -0
  39. data/spec/models/ostree_ostree_remote_response_spec.rb +6 -0
  40. metadata +41 -38
  41. data/git_push.sh +0 -58
@@ -289,7 +289,7 @@ module PulpOstreeClient
289
289
  # A ViewSet class for OSTree repositories.
290
290
  # @param [Hash] opts the optional parameters
291
291
  # @option opts [Integer] :limit Number of results to return per page.
292
- # @option opts [String] :name
292
+ # @option opts [String] :name Filter results where name matches value
293
293
  # @option opts [String] :name__contains Filter results where name contains value
294
294
  # @option opts [String] :name__icontains Filter results where name contains value
295
295
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
@@ -297,8 +297,9 @@ module PulpOstreeClient
297
297
  # @option opts [Integer] :offset The initial index from which to return the results.
298
298
  # @option opts [Array<String>] :ordering Ordering
299
299
  # @option opts [String] :pulp_label_select Filter labels by search string
300
- # @option opts [String] :fields A list of fields to include in the response.
301
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
300
+ # @option opts [String] :remote Foreign Key referenced by HREF
301
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
302
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
302
303
  # @return [PaginatedostreeOstreeRepositoryResponseList]
303
304
  def list(opts = {})
304
305
  data, _status_code, _headers = list_with_http_info(opts)
@@ -309,7 +310,7 @@ module PulpOstreeClient
309
310
  # A ViewSet class for OSTree repositories.
310
311
  # @param [Hash] opts the optional parameters
311
312
  # @option opts [Integer] :limit Number of results to return per page.
312
- # @option opts [String] :name
313
+ # @option opts [String] :name Filter results where name matches value
313
314
  # @option opts [String] :name__contains Filter results where name contains value
314
315
  # @option opts [String] :name__icontains Filter results where name contains value
315
316
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
@@ -317,14 +318,15 @@ module PulpOstreeClient
317
318
  # @option opts [Integer] :offset The initial index from which to return the results.
318
319
  # @option opts [Array<String>] :ordering Ordering
319
320
  # @option opts [String] :pulp_label_select Filter labels by search string
320
- # @option opts [String] :fields A list of fields to include in the response.
321
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
321
+ # @option opts [String] :remote Foreign Key referenced by HREF
322
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
323
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
322
324
  # @return [Array<(PaginatedostreeOstreeRepositoryResponseList, Integer, Hash)>] PaginatedostreeOstreeRepositoryResponseList data, response status code and response headers
323
325
  def list_with_http_info(opts = {})
324
326
  if @api_client.config.debugging
325
327
  @api_client.config.logger.debug 'Calling API: RepositoriesOstreeApi.list ...'
326
328
  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"]
329
+ allowable_values = ["-description", "-name", "-next_version", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-retain_repo_versions", "-user_hidden", "description", "name", "next_version", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "retain_repo_versions", "user_hidden"]
328
330
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
329
331
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
330
332
  end
@@ -342,8 +344,9 @@ module PulpOstreeClient
342
344
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
343
345
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
344
346
  query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
345
- query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
346
- query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
347
+ query_params[:'remote'] = opts[:'remote'] if !opts[:'remote'].nil?
348
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
349
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
347
350
 
348
351
  # header parameters
349
352
  header_params = opts[:header_params] || {}
@@ -522,8 +525,8 @@ module PulpOstreeClient
522
525
  # A ViewSet class for OSTree repositories.
523
526
  # @param ostree_ostree_repository_href [String]
524
527
  # @param [Hash] opts the optional parameters
525
- # @option opts [String] :fields A list of fields to include in the response.
526
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
528
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
529
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
527
530
  # @return [OstreeOstreeRepositoryResponse]
528
531
  def read(ostree_ostree_repository_href, opts = {})
529
532
  data, _status_code, _headers = read_with_http_info(ostree_ostree_repository_href, opts)
@@ -534,8 +537,8 @@ module PulpOstreeClient
534
537
  # A ViewSet class for OSTree repositories.
535
538
  # @param ostree_ostree_repository_href [String]
536
539
  # @param [Hash] opts the optional parameters
537
- # @option opts [String] :fields A list of fields to include in the response.
538
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
540
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
541
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
539
542
  # @return [Array<(OstreeOstreeRepositoryResponse, Integer, Hash)>] OstreeOstreeRepositoryResponse data, response status code and response headers
540
543
  def read_with_http_info(ostree_ostree_repository_href, opts = {})
541
544
  if @api_client.config.debugging
@@ -550,8 +553,8 @@ module PulpOstreeClient
550
553
 
551
554
  # query parameters
552
555
  query_params = opts[:query_params] || {}
553
- query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
554
- query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
556
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
557
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
555
558
 
556
559
  # header parameters
557
560
  header_params = opts[:header_params] || {}
@@ -88,7 +88,7 @@ module PulpOstreeClient
88
88
  # @option opts [String] :content Content Unit referenced by HREF
89
89
  # @option opts [String] :content__in Content Unit referenced by HREF
90
90
  # @option opts [Integer] :limit Number of results to return per page.
91
- # @option opts [Integer] :number
91
+ # @option opts [Integer] :number Filter results where number matches value
92
92
  # @option opts [Integer] :number__gt Filter results where number is greater than value
93
93
  # @option opts [Integer] :number__gte Filter results where number is greater than or equal to value
94
94
  # @option opts [Integer] :number__lt Filter results where number is less than value
@@ -96,14 +96,14 @@ module PulpOstreeClient
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
98
  # @option opts [Array<String>] :ordering Ordering
99
- # @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
99
+ # @option opts [DateTime] :pulp_created Filter results where pulp_created matches value
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
102
102
  # @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
103
103
  # @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
104
104
  # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
105
- # @option opts [String] :fields A list of fields to include in the response.
106
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
105
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
106
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
107
107
  # @return [PaginatedRepositoryVersionResponseList]
108
108
  def list(ostree_ostree_repository_href, opts = {})
109
109
  data, _status_code, _headers = list_with_http_info(ostree_ostree_repository_href, opts)
@@ -117,7 +117,7 @@ module PulpOstreeClient
117
117
  # @option opts [String] :content Content Unit referenced by HREF
118
118
  # @option opts [String] :content__in Content Unit referenced by HREF
119
119
  # @option opts [Integer] :limit Number of results to return per page.
120
- # @option opts [Integer] :number
120
+ # @option opts [Integer] :number Filter results where number matches value
121
121
  # @option opts [Integer] :number__gt Filter results where number is greater than value
122
122
  # @option opts [Integer] :number__gte Filter results where number is greater than or equal to value
123
123
  # @option opts [Integer] :number__lt Filter results where number is less than value
@@ -125,14 +125,14 @@ module PulpOstreeClient
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
127
  # @option opts [Array<String>] :ordering Ordering
128
- # @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
128
+ # @option opts [DateTime] :pulp_created Filter results where pulp_created matches value
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
131
131
  # @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
132
132
  # @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
133
133
  # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
134
- # @option opts [String] :fields A list of fields to include in the response.
135
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
134
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
135
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
136
136
  # @return [Array<(PaginatedRepositoryVersionResponseList, Integer, Hash)>] PaginatedRepositoryVersionResponseList data, response status code and response headers
137
137
  def list_with_http_info(ostree_ostree_repository_href, opts = {})
138
138
  if @api_client.config.debugging
@@ -142,7 +142,7 @@ 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"]
145
+ allowable_values = ["-complete", "-info", "-number", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "complete", "info", "number", "pk", "pulp_created", "pulp_id", "pulp_last_updated"]
146
146
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
147
147
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
148
148
  end
@@ -168,8 +168,8 @@ module PulpOstreeClient
168
168
  query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
169
169
  query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
170
170
  query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
171
- query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
172
- query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
171
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
172
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
173
173
 
174
174
  # header parameters
175
175
  header_params = opts[:header_params] || {}
@@ -208,8 +208,8 @@ module PulpOstreeClient
208
208
  # A ViewSet class that represents a single OSTree repository version.
209
209
  # @param ostree_ostree_repository_version_href [String]
210
210
  # @param [Hash] opts the optional parameters
211
- # @option opts [String] :fields A list of fields to include in the response.
212
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
211
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
212
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
213
213
  # @return [RepositoryVersionResponse]
214
214
  def read(ostree_ostree_repository_version_href, opts = {})
215
215
  data, _status_code, _headers = read_with_http_info(ostree_ostree_repository_version_href, opts)
@@ -220,8 +220,8 @@ module PulpOstreeClient
220
220
  # A ViewSet class that represents a single OSTree repository version.
221
221
  # @param ostree_ostree_repository_version_href [String]
222
222
  # @param [Hash] opts the optional parameters
223
- # @option opts [String] :fields A list of fields to include in the response.
224
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
223
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
224
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
225
225
  # @return [Array<(RepositoryVersionResponse, Integer, Hash)>] RepositoryVersionResponse data, response status code and response headers
226
226
  def read_with_http_info(ostree_ostree_repository_version_href, opts = {})
227
227
  if @api_client.config.debugging
@@ -236,8 +236,8 @@ module PulpOstreeClient
236
236
 
237
237
  # query parameters
238
238
  query_params = opts[:query_params] || {}
239
- query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
240
- query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
239
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
240
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
241
241
 
242
242
  # header parameters
243
243
  header_params = opts[:header_params] || {}
@@ -154,7 +154,7 @@ module PulpOstreeClient
154
154
  case value
155
155
  when ::File, ::Tempfile
156
156
  # TODO hardcode to application/octet-stream, need better way to detect content type
157
- data[key] = Faraday::UploadIO.new(value.path, 'application/octet-stream', value.path)
157
+ data[key] = Faraday::FilePart.new(value.path, 'application/octet-stream', value.path)
158
158
  when ::Array, nil
159
159
  # let Faraday handle Array and nil parameters
160
160
  data[key] = value
@@ -70,6 +70,9 @@ module PulpOstreeClient
70
70
  # Limits requests per second for each concurrent downloader
71
71
  attr_accessor :rate_limit
72
72
 
73
+ # List of hidden (write only) fields
74
+ attr_accessor :hidden_fields
75
+
73
76
  # An option to specify how many commits to traverse.
74
77
  attr_accessor :depth
75
78
 
@@ -101,6 +104,7 @@ module PulpOstreeClient
101
104
  :'sock_read_timeout' => :'sock_read_timeout',
102
105
  :'headers' => :'headers',
103
106
  :'rate_limit' => :'rate_limit',
107
+ :'hidden_fields' => :'hidden_fields',
104
108
  :'depth' => :'depth',
105
109
  :'include_refs' => :'include_refs',
106
110
  :'exclude_refs' => :'exclude_refs'
@@ -129,6 +133,7 @@ module PulpOstreeClient
129
133
  :'sock_read_timeout' => :'Float',
130
134
  :'headers' => :'Array<Object>',
131
135
  :'rate_limit' => :'Integer',
136
+ :'hidden_fields' => :'Array<OstreeOstreeRemoteResponseHiddenFields>',
132
137
  :'depth' => :'Integer',
133
138
  :'include_refs' => :'Array<String>',
134
139
  :'exclude_refs' => :'Array<String>'
@@ -246,6 +251,12 @@ module PulpOstreeClient
246
251
  self.rate_limit = attributes[:'rate_limit']
247
252
  end
248
253
 
254
+ if attributes.key?(:'hidden_fields')
255
+ if (value = attributes[:'hidden_fields']).is_a?(Array)
256
+ self.hidden_fields = value
257
+ end
258
+ end
259
+
249
260
  if attributes.key?(:'depth')
250
261
  self.depth = attributes[:'depth']
251
262
  else
@@ -402,6 +413,7 @@ module PulpOstreeClient
402
413
  sock_read_timeout == o.sock_read_timeout &&
403
414
  headers == o.headers &&
404
415
  rate_limit == o.rate_limit &&
416
+ hidden_fields == o.hidden_fields &&
405
417
  depth == o.depth &&
406
418
  include_refs == o.include_refs &&
407
419
  exclude_refs == o.exclude_refs
@@ -416,7 +428,7 @@ module PulpOstreeClient
416
428
  # Calculates hash code according to all attributes.
417
429
  # @return [Integer] Hash code
418
430
  def hash
419
- [pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, depth, include_refs, exclude_refs].hash
431
+ [pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, hidden_fields, depth, include_refs, exclude_refs].hash
420
432
  end
421
433
 
422
434
  # Builds the object from hash
@@ -0,0 +1,215 @@
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 'date'
14
+
15
+ module PulpOstreeClient
16
+ class OstreeOstreeRemoteResponseHiddenFields
17
+ attr_accessor :name
18
+
19
+ attr_accessor :is_set
20
+
21
+ # Attribute mapping from ruby-style variable name to JSON key.
22
+ def self.attribute_map
23
+ {
24
+ :'name' => :'name',
25
+ :'is_set' => :'is_set'
26
+ }
27
+ end
28
+
29
+ # Attribute type mapping.
30
+ def self.openapi_types
31
+ {
32
+ :'name' => :'String',
33
+ :'is_set' => :'Boolean'
34
+ }
35
+ end
36
+
37
+ # List of attributes with nullable: true
38
+ def self.openapi_nullable
39
+ Set.new([
40
+ ])
41
+ end
42
+
43
+ # Initializes the object
44
+ # @param [Hash] attributes Model attributes in the form of hash
45
+ def initialize(attributes = {})
46
+ if (!attributes.is_a?(Hash))
47
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpOstreeClient::OstreeOstreeRemoteResponseHiddenFields` initialize method"
48
+ end
49
+
50
+ # check to see if the attribute exists and convert string to symbol for hash key
51
+ attributes = attributes.each_with_object({}) { |(k, v), h|
52
+ if (!self.class.attribute_map.key?(k.to_sym))
53
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpOstreeClient::OstreeOstreeRemoteResponseHiddenFields`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
54
+ end
55
+ h[k.to_sym] = v
56
+ }
57
+
58
+ if attributes.key?(:'name')
59
+ self.name = attributes[:'name']
60
+ end
61
+
62
+ if attributes.key?(:'is_set')
63
+ self.is_set = attributes[:'is_set']
64
+ end
65
+ end
66
+
67
+ # Show invalid properties with the reasons. Usually used together with valid?
68
+ # @return Array for valid properties with the reasons
69
+ def list_invalid_properties
70
+ invalid_properties = Array.new
71
+ invalid_properties
72
+ end
73
+
74
+ # Check to see if the all the properties in the model are valid
75
+ # @return true if the model is valid
76
+ def valid?
77
+ true
78
+ end
79
+
80
+ # Checks equality by comparing each attribute.
81
+ # @param [Object] Object to be compared
82
+ def ==(o)
83
+ return true if self.equal?(o)
84
+ self.class == o.class &&
85
+ name == o.name &&
86
+ is_set == o.is_set
87
+ end
88
+
89
+ # @see the `==` method
90
+ # @param [Object] Object to be compared
91
+ def eql?(o)
92
+ self == o
93
+ end
94
+
95
+ # Calculates hash code according to all attributes.
96
+ # @return [Integer] Hash code
97
+ def hash
98
+ [name, is_set].hash
99
+ end
100
+
101
+ # Builds the object from hash
102
+ # @param [Hash] attributes Model attributes in the form of hash
103
+ # @return [Object] Returns the model itself
104
+ def self.build_from_hash(attributes)
105
+ new.build_from_hash(attributes)
106
+ end
107
+
108
+ # Builds the object from hash
109
+ # @param [Hash] attributes Model attributes in the form of hash
110
+ # @return [Object] Returns the model itself
111
+ def build_from_hash(attributes)
112
+ return nil unless attributes.is_a?(Hash)
113
+ self.class.openapi_types.each_pair do |key, type|
114
+ if type =~ /\AArray<(.*)>/i
115
+ # check to ensure the input is an array given that the attribute
116
+ # is documented as an array but the input is not
117
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
118
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
119
+ end
120
+ elsif !attributes[self.class.attribute_map[key]].nil?
121
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
122
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
123
+ end
124
+
125
+ self
126
+ end
127
+
128
+ # Deserializes the data based on type
129
+ # @param string type Data type
130
+ # @param string value Value to be deserialized
131
+ # @return [Object] Deserialized data
132
+ def _deserialize(type, value)
133
+ case type.to_sym
134
+ when :DateTime
135
+ DateTime.parse(value)
136
+ when :Date
137
+ Date.parse(value)
138
+ when :String
139
+ value.to_s
140
+ when :Integer
141
+ value.to_i
142
+ when :Float
143
+ value.to_f
144
+ when :Boolean
145
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
146
+ true
147
+ else
148
+ false
149
+ end
150
+ when :Object
151
+ # generic object (usually a Hash), return directly
152
+ value
153
+ when /\AArray<(?<inner_type>.+)>\z/
154
+ inner_type = Regexp.last_match[:inner_type]
155
+ value.map { |v| _deserialize(inner_type, v) }
156
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
157
+ k_type = Regexp.last_match[:k_type]
158
+ v_type = Regexp.last_match[:v_type]
159
+ {}.tap do |hash|
160
+ value.each do |k, v|
161
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
162
+ end
163
+ end
164
+ else # model
165
+ PulpOstreeClient.const_get(type).build_from_hash(value)
166
+ end
167
+ end
168
+
169
+ # Returns the string representation of the object
170
+ # @return [String] String presentation of the object
171
+ def to_s
172
+ to_hash.to_s
173
+ end
174
+
175
+ # to_body is an alias to to_hash (backward compatibility)
176
+ # @return [Hash] Returns the object in the form of hash
177
+ def to_body
178
+ to_hash
179
+ end
180
+
181
+ # Returns the object in the form of hash
182
+ # @return [Hash] Returns the object in the form of hash
183
+ def to_hash
184
+ hash = {}
185
+ self.class.attribute_map.each_pair do |attr, param|
186
+ value = self.send(attr)
187
+ if value.nil?
188
+ is_nullable = self.class.openapi_nullable.include?(attr)
189
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
190
+ end
191
+
192
+ hash[param] = _to_hash(value)
193
+ end
194
+ hash
195
+ end
196
+
197
+ # Outputs non-array value in the form of hash
198
+ # For object, use to_hash. Otherwise, just return the value
199
+ # @param [Object] value Any valid value
200
+ # @return [Hash] Returns the value in the form of hash
201
+ def _to_hash(value)
202
+ if value.is_a?(Array)
203
+ value.compact.map { |v| _to_hash(v) }
204
+ elsif value.is_a?(Hash)
205
+ {}.tap do |hash|
206
+ value.each { |k, v| hash[k] = _to_hash(v) }
207
+ end
208
+ elsif value.respond_to? :to_hash
209
+ value.to_hash
210
+ else
211
+ value
212
+ end
213
+ end
214
+ end
215
+ end
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module PulpOstreeClient
14
- VERSION = '2.0.0a6'
14
+ VERSION = '2.0.0a7.dev1670123313'
15
15
  end
@@ -29,6 +29,7 @@ require 'pulp_ostree_client/models/ostree_ostree_object_response'
29
29
  require 'pulp_ostree_client/models/ostree_ostree_ref_response'
30
30
  require 'pulp_ostree_client/models/ostree_ostree_remote'
31
31
  require 'pulp_ostree_client/models/ostree_ostree_remote_response'
32
+ require 'pulp_ostree_client/models/ostree_ostree_remote_response_hidden_fields'
32
33
  require 'pulp_ostree_client/models/ostree_ostree_repository'
33
34
  require 'pulp_ostree_client/models/ostree_ostree_repository_response'
34
35
  require 'pulp_ostree_client/models/ostree_ostree_summary_response'
@@ -21,13 +21,13 @@ Gem::Specification.new do |s|
21
21
  s.platform = Gem::Platform::RUBY
22
22
  s.authors = ["OpenAPI-Generator"]
23
23
  s.email = ["pulp-list@redhat.com"]
24
- s.homepage = "https://openapi-generator.tech"
24
+ s.homepage = "https://github.com/pulp/pulp_ostree"
25
25
  s.summary = "Pulp 3 API Ruby Gem"
26
26
  s.description = "Fetch, Upload, Organize, and Distribute Software Packages"
27
- s.license = 'GPL-2.0+'
27
+ s.license = 'GPLv2+'
28
28
  s.required_ruby_version = ">= 1.9"
29
29
 
30
- s.add_runtime_dependency 'faraday', '~> 0.17', '< 1.9.0'
30
+ s.add_runtime_dependency 'faraday', '>= 1.0.1', '< 2.0'
31
31
  s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
32
32
 
33
33
  s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
@@ -43,8 +43,8 @@ describe 'ContentCommitsApi' do
43
43
  # @option opts [String] :repository_version Repository Version referenced by HREF
44
44
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
45
45
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
46
- # @option opts [String] :fields A list of fields to include in the response.
47
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
46
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
47
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
48
48
  # @return [PaginatedostreeOstreeCommitResponseList]
49
49
  describe 'list test' do
50
50
  it 'should work' do
@@ -57,8 +57,8 @@ describe 'ContentCommitsApi' do
57
57
  # A ViewSet class for OSTree commits.
58
58
  # @param ostree_ostree_commit_href
59
59
  # @param [Hash] opts the optional parameters
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 [OstreeOstreeCommitResponse]
63
63
  describe 'read test' do
64
64
  it 'should work' do
@@ -42,8 +42,8 @@ describe 'ContentConfigsApi' do
42
42
  # @option opts [String] :repository_version Repository Version referenced by HREF
43
43
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
44
44
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
45
- # @option opts [String] :fields A list of fields to include in the response.
46
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
45
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
46
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
47
47
  # @return [PaginatedostreeOstreeConfigResponseList]
48
48
  describe 'list test' do
49
49
  it 'should work' do
@@ -56,8 +56,8 @@ describe 'ContentConfigsApi' do
56
56
  # A ViewSet class for OSTree repository configurations.
57
57
  # @param ostree_ostree_config_href
58
58
  # @param [Hash] opts the optional parameters
59
- # @option opts [String] :fields A list of fields to include in the response.
60
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
59
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
60
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
61
61
  # @return [OstreeOstreeConfigResponse]
62
62
  describe 'read test' do
63
63
  it 'should work' do
@@ -43,8 +43,8 @@ describe 'ContentObjectsApi' do
43
43
  # @option opts [String] :repository_version Repository Version referenced by HREF
44
44
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
45
45
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
46
- # @option opts [String] :fields A list of fields to include in the response.
47
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
46
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
47
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
48
48
  # @return [PaginatedostreeOstreeObjectResponseList]
49
49
  describe 'list test' do
50
50
  it 'should work' do
@@ -57,8 +57,8 @@ describe 'ContentObjectsApi' do
57
57
  # A ViewSet class for OSTree objects (e.g., dirtree, dirmeta, file).
58
58
  # @param ostree_ostree_object_href
59
59
  # @param [Hash] opts the optional parameters
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 [OstreeOstreeObjectResponse]
63
63
  describe 'read test' do
64
64
  it 'should work' do
@@ -48,8 +48,8 @@ describe 'ContentRefsApi' do
48
48
  # @option opts [String] :repository_version Repository Version referenced by HREF
49
49
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
50
50
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
51
- # @option opts [String] :fields A list of fields to include in the response.
52
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
51
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
52
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
53
53
  # @return [PaginatedostreeOstreeRefResponseList]
54
54
  describe 'list test' do
55
55
  it 'should work' do
@@ -62,8 +62,8 @@ describe 'ContentRefsApi' do
62
62
  # A ViewSet class for OSTree head commits.
63
63
  # @param ostree_ostree_ref_href
64
64
  # @param [Hash] opts the optional parameters
65
- # @option opts [String] :fields A list of fields to include in the response.
66
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
65
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
66
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
67
67
  # @return [OstreeOstreeRefResponse]
68
68
  describe 'read test' do
69
69
  it 'should work' do
@@ -42,8 +42,8 @@ describe 'ContentSummariesApi' do
42
42
  # @option opts [String] :repository_version Repository Version referenced by HREF
43
43
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
44
44
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
45
- # @option opts [String] :fields A list of fields to include in the response.
46
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
45
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
46
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
47
47
  # @return [PaginatedostreeOstreeSummaryResponseList]
48
48
  describe 'list test' do
49
49
  it 'should work' do
@@ -56,8 +56,8 @@ describe 'ContentSummariesApi' do
56
56
  # A ViewSet class for OSTree repository summary files.
57
57
  # @param ostree_ostree_summary_href
58
58
  # @param [Hash] opts the optional parameters
59
- # @option opts [String] :fields A list of fields to include in the response.
60
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
59
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
60
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
61
61
  # @return [OstreeOstreeSummaryResponse]
62
62
  describe 'read test' do
63
63
  it 'should work' do