pulp_container_client 1.3.0 → 1.4.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.
Files changed (69) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +12 -8
  3. data/docs/{ContainerBlob.md → ContainerBlobRead.md} +2 -2
  4. data/docs/ContainerContainerDistribution.md +9 -9
  5. data/docs/ContainerContainerDistributionRead.md +31 -0
  6. data/docs/ContainerContainerRemote.md +7 -3
  7. data/docs/ContainerContainerRemoteRead.md +47 -0
  8. data/docs/ContainerContainerRepositoryRead.md +27 -0
  9. data/docs/{ContainerManifest.md → ContainerManifestRead.md} +2 -2
  10. data/docs/{ContainerTag.md → ContainerTagRead.md} +2 -2
  11. data/docs/ContentBlobsApi.md +3 -3
  12. data/docs/ContentManifestsApi.md +3 -3
  13. data/docs/ContentTagsApi.md +3 -3
  14. data/docs/DistributionsContainerApi.md +3 -3
  15. data/docs/InlineResponse200.md +1 -1
  16. data/docs/InlineResponse2001.md +1 -1
  17. data/docs/InlineResponse2002.md +1 -1
  18. data/docs/InlineResponse2003.md +1 -1
  19. data/docs/InlineResponse2004.md +1 -1
  20. data/docs/InlineResponse2005.md +1 -1
  21. data/docs/InlineResponse2006.md +1 -1
  22. data/docs/RemotesContainerApi.md +5 -5
  23. data/docs/RepositoriesContainerApi.md +10 -10
  24. data/docs/RepositoriesContainerVersionsApi.md +3 -3
  25. data/docs/RepositoryVersionRead.md +25 -0
  26. data/lib/pulp_container_client/api/content_blobs_api.rb +3 -3
  27. data/lib/pulp_container_client/api/content_manifests_api.rb +3 -3
  28. data/lib/pulp_container_client/api/content_tags_api.rb +3 -3
  29. data/lib/pulp_container_client/api/distributions_container_api.rb +3 -3
  30. data/lib/pulp_container_client/api/remotes_container_api.rb +6 -6
  31. data/lib/pulp_container_client/api/repositories_container_api.rb +15 -15
  32. data/lib/pulp_container_client/api/repositories_container_versions_api.rb +3 -3
  33. data/lib/pulp_container_client/configuration.rb +2 -2
  34. data/lib/pulp_container_client/models/{container_blob.rb → container_blob_read.rb} +3 -3
  35. data/lib/pulp_container_client/models/container_container_distribution.rb +60 -60
  36. data/lib/pulp_container_client/models/container_container_distribution_read.rb +342 -0
  37. data/lib/pulp_container_client/models/container_container_remote.rb +56 -4
  38. data/lib/pulp_container_client/models/container_container_remote_read.rb +578 -0
  39. data/lib/pulp_container_client/models/container_container_repository_read.rb +294 -0
  40. data/lib/pulp_container_client/models/{container_manifest.rb → container_manifest_read.rb} +3 -3
  41. data/lib/pulp_container_client/models/{container_tag.rb → container_tag_read.rb} +3 -3
  42. data/lib/pulp_container_client/models/inline_response200.rb +1 -1
  43. data/lib/pulp_container_client/models/inline_response2001.rb +1 -1
  44. data/lib/pulp_container_client/models/inline_response2002.rb +1 -1
  45. data/lib/pulp_container_client/models/inline_response2003.rb +1 -1
  46. data/lib/pulp_container_client/models/inline_response2004.rb +1 -1
  47. data/lib/pulp_container_client/models/inline_response2005.rb +1 -1
  48. data/lib/pulp_container_client/models/inline_response2006.rb +1 -1
  49. data/lib/pulp_container_client/models/repository_version_read.rb +244 -0
  50. data/lib/pulp_container_client/version.rb +1 -1
  51. data/lib/pulp_container_client.rb +7 -3
  52. data/spec/api/content_blobs_api_spec.rb +1 -1
  53. data/spec/api/content_manifests_api_spec.rb +1 -1
  54. data/spec/api/content_tags_api_spec.rb +1 -1
  55. data/spec/api/distributions_container_api_spec.rb +1 -1
  56. data/spec/api/remotes_container_api_spec.rb +2 -2
  57. data/spec/api/repositories_container_api_spec.rb +6 -6
  58. data/spec/api/repositories_container_versions_api_spec.rb +1 -1
  59. data/spec/configuration_spec.rb +3 -3
  60. data/spec/models/{container_blob_spec.rb → container_blob_read_spec.rb} +6 -6
  61. data/spec/models/container_container_distribution_read_spec.rb +83 -0
  62. data/spec/models/container_container_distribution_spec.rb +7 -7
  63. data/spec/models/container_container_remote_read_spec.rb +135 -0
  64. data/spec/models/container_container_remote_spec.rb +12 -0
  65. data/spec/models/container_container_repository_read_spec.rb +71 -0
  66. data/spec/models/{container_manifest_spec.rb → container_manifest_read_spec.rb} +6 -6
  67. data/spec/models/{container_tag_spec.rb → container_tag_read_spec.rb} +6 -6
  68. data/spec/models/repository_version_read_spec.rb +65 -0
  69. metadata +30 -14
@@ -114,7 +114,7 @@ module PulpContainerClient
114
114
  # @param [Hash] opts the optional parameters
115
115
  # @option opts [String] :fields A list of fields to include in the response.
116
116
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
117
- # @return [ContainerBlob]
117
+ # @return [ContainerBlobRead]
118
118
  def read(blob_href, opts = {})
119
119
  data, _status_code, _headers = read_with_http_info(blob_href, opts)
120
120
  data
@@ -126,7 +126,7 @@ module PulpContainerClient
126
126
  # @param [Hash] opts the optional parameters
127
127
  # @option opts [String] :fields A list of fields to include in the response.
128
128
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
129
- # @return [Array<(ContainerBlob, Integer, Hash)>] ContainerBlob data, response status code and response headers
129
+ # @return [Array<(ContainerBlobRead, Integer, Hash)>] ContainerBlobRead data, response status code and response headers
130
130
  def read_with_http_info(blob_href, opts = {})
131
131
  if @api_client.config.debugging
132
132
  @api_client.config.logger.debug 'Calling API: ContentBlobsApi.read ...'
@@ -155,7 +155,7 @@ module PulpContainerClient
155
155
  post_body = opts[:body]
156
156
 
157
157
  # return_type
158
- return_type = opts[:return_type] || 'ContainerBlob'
158
+ return_type = opts[:return_type] || 'ContainerBlobRead'
159
159
 
160
160
  # auth_names
161
161
  auth_names = opts[:auth_names] || ['Basic']
@@ -114,7 +114,7 @@ module PulpContainerClient
114
114
  # @param [Hash] opts the optional parameters
115
115
  # @option opts [String] :fields A list of fields to include in the response.
116
116
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
117
- # @return [ContainerManifest]
117
+ # @return [ContainerManifestRead]
118
118
  def read(manifest_href, opts = {})
119
119
  data, _status_code, _headers = read_with_http_info(manifest_href, opts)
120
120
  data
@@ -126,7 +126,7 @@ module PulpContainerClient
126
126
  # @param [Hash] opts the optional parameters
127
127
  # @option opts [String] :fields A list of fields to include in the response.
128
128
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
129
- # @return [Array<(ContainerManifest, Integer, Hash)>] ContainerManifest data, response status code and response headers
129
+ # @return [Array<(ContainerManifestRead, Integer, Hash)>] ContainerManifestRead data, response status code and response headers
130
130
  def read_with_http_info(manifest_href, opts = {})
131
131
  if @api_client.config.debugging
132
132
  @api_client.config.logger.debug 'Calling API: ContentManifestsApi.read ...'
@@ -155,7 +155,7 @@ module PulpContainerClient
155
155
  post_body = opts[:body]
156
156
 
157
157
  # return_type
158
- return_type = opts[:return_type] || 'ContainerManifest'
158
+ return_type = opts[:return_type] || 'ContainerManifestRead'
159
159
 
160
160
  # auth_names
161
161
  auth_names = opts[:auth_names] || ['Basic']
@@ -117,7 +117,7 @@ module PulpContainerClient
117
117
  # @param [Hash] opts the optional parameters
118
118
  # @option opts [String] :fields A list of fields to include in the response.
119
119
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
120
- # @return [ContainerTag]
120
+ # @return [ContainerTagRead]
121
121
  def read(tag_href, opts = {})
122
122
  data, _status_code, _headers = read_with_http_info(tag_href, opts)
123
123
  data
@@ -129,7 +129,7 @@ module PulpContainerClient
129
129
  # @param [Hash] opts the optional parameters
130
130
  # @option opts [String] :fields A list of fields to include in the response.
131
131
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
132
- # @return [Array<(ContainerTag, Integer, Hash)>] ContainerTag data, response status code and response headers
132
+ # @return [Array<(ContainerTagRead, Integer, Hash)>] ContainerTagRead data, response status code and response headers
133
133
  def read_with_http_info(tag_href, opts = {})
134
134
  if @api_client.config.debugging
135
135
  @api_client.config.logger.debug 'Calling API: ContentTagsApi.read ...'
@@ -158,7 +158,7 @@ module PulpContainerClient
158
158
  post_body = opts[:body]
159
159
 
160
160
  # return_type
161
- return_type = opts[:return_type] || 'ContainerTag'
161
+ return_type = opts[:return_type] || 'ContainerTagRead'
162
162
 
163
163
  # auth_names
164
164
  auth_names = opts[:auth_names] || ['Basic']
@@ -310,7 +310,7 @@ module PulpContainerClient
310
310
  # @param [Hash] opts the optional parameters
311
311
  # @option opts [String] :fields A list of fields to include in the response.
312
312
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
313
- # @return [ContainerContainerDistribution]
313
+ # @return [ContainerContainerDistributionRead]
314
314
  def read(container_distribution_href, opts = {})
315
315
  data, _status_code, _headers = read_with_http_info(container_distribution_href, opts)
316
316
  data
@@ -322,7 +322,7 @@ module PulpContainerClient
322
322
  # @param [Hash] opts the optional parameters
323
323
  # @option opts [String] :fields A list of fields to include in the response.
324
324
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
325
- # @return [Array<(ContainerContainerDistribution, Integer, Hash)>] ContainerContainerDistribution data, response status code and response headers
325
+ # @return [Array<(ContainerContainerDistributionRead, Integer, Hash)>] ContainerContainerDistributionRead data, response status code and response headers
326
326
  def read_with_http_info(container_distribution_href, opts = {})
327
327
  if @api_client.config.debugging
328
328
  @api_client.config.logger.debug 'Calling API: DistributionsContainerApi.read ...'
@@ -351,7 +351,7 @@ module PulpContainerClient
351
351
  post_body = opts[:body]
352
352
 
353
353
  # return_type
354
- return_type = opts[:return_type] || 'ContainerContainerDistribution'
354
+ return_type = opts[:return_type] || 'ContainerContainerDistributionRead'
355
355
 
356
356
  # auth_names
357
357
  auth_names = opts[:auth_names] || ['Basic']
@@ -23,7 +23,7 @@ module PulpContainerClient
23
23
  # Container remotes represent an external repository that implements the Container Registry API. Container remotes support deferred downloading by configuring the ``policy`` field. ``on_demand`` and ``streamed`` policies can provide significant disk space savings.
24
24
  # @param data [ContainerContainerRemote]
25
25
  # @param [Hash] opts the optional parameters
26
- # @return [ContainerContainerRemote]
26
+ # @return [ContainerContainerRemoteRead]
27
27
  def create(data, opts = {})
28
28
  data, _status_code, _headers = create_with_http_info(data, opts)
29
29
  data
@@ -33,7 +33,7 @@ module PulpContainerClient
33
33
  # Container remotes represent an external repository that implements the Container Registry API. Container remotes support deferred downloading by configuring the &#x60;&#x60;policy&#x60;&#x60; field. &#x60;&#x60;on_demand&#x60;&#x60; and &#x60;&#x60;streamed&#x60;&#x60; policies can provide significant disk space savings.
34
34
  # @param data [ContainerContainerRemote]
35
35
  # @param [Hash] opts the optional parameters
36
- # @return [Array<(ContainerContainerRemote, Integer, Hash)>] ContainerContainerRemote data, response status code and response headers
36
+ # @return [Array<(ContainerContainerRemoteRead, Integer, Hash)>] ContainerContainerRemoteRead data, response status code and response headers
37
37
  def create_with_http_info(data, opts = {})
38
38
  if @api_client.config.debugging
39
39
  @api_client.config.logger.debug 'Calling API: RemotesContainerApi.create ...'
@@ -62,7 +62,7 @@ module PulpContainerClient
62
62
  post_body = opts[:body] || @api_client.object_to_http_body(data)
63
63
 
64
64
  # return_type
65
- return_type = opts[:return_type] || 'ContainerContainerRemote'
65
+ return_type = opts[:return_type] || 'ContainerContainerRemoteRead'
66
66
 
67
67
  # auth_names
68
68
  auth_names = opts[:auth_names] || ['Basic']
@@ -316,7 +316,7 @@ module PulpContainerClient
316
316
  # @param [Hash] opts the optional parameters
317
317
  # @option opts [String] :fields A list of fields to include in the response.
318
318
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
319
- # @return [ContainerContainerRemote]
319
+ # @return [ContainerContainerRemoteRead]
320
320
  def read(container_remote_href, opts = {})
321
321
  data, _status_code, _headers = read_with_http_info(container_remote_href, opts)
322
322
  data
@@ -328,7 +328,7 @@ module PulpContainerClient
328
328
  # @param [Hash] opts the optional parameters
329
329
  # @option opts [String] :fields A list of fields to include in the response.
330
330
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
331
- # @return [Array<(ContainerContainerRemote, Integer, Hash)>] ContainerContainerRemote data, response status code and response headers
331
+ # @return [Array<(ContainerContainerRemoteRead, Integer, Hash)>] ContainerContainerRemoteRead data, response status code and response headers
332
332
  def read_with_http_info(container_remote_href, opts = {})
333
333
  if @api_client.config.debugging
334
334
  @api_client.config.logger.debug 'Calling API: RemotesContainerApi.read ...'
@@ -357,7 +357,7 @@ module PulpContainerClient
357
357
  post_body = opts[:body]
358
358
 
359
359
  # return_type
360
- return_type = opts[:return_type] || 'ContainerContainerRemote'
360
+ return_type = opts[:return_type] || 'ContainerContainerRemoteRead'
361
361
 
362
362
  # auth_names
363
363
  auth_names = opts[:auth_names] || ['Basic']
@@ -313,7 +313,7 @@ module PulpContainerClient
313
313
  # ViewSet for container repo.
314
314
  # @param data [ContainerContainerRepository]
315
315
  # @param [Hash] opts the optional parameters
316
- # @return [ContainerContainerRepository]
316
+ # @return [ContainerContainerRepositoryRead]
317
317
  def create(data, opts = {})
318
318
  data, _status_code, _headers = create_with_http_info(data, opts)
319
319
  data
@@ -323,7 +323,7 @@ module PulpContainerClient
323
323
  # ViewSet for container repo.
324
324
  # @param data [ContainerContainerRepository]
325
325
  # @param [Hash] opts the optional parameters
326
- # @return [Array<(ContainerContainerRepository, Integer, Hash)>] ContainerContainerRepository data, response status code and response headers
326
+ # @return [Array<(ContainerContainerRepositoryRead, Integer, Hash)>] ContainerContainerRepositoryRead data, response status code and response headers
327
327
  def create_with_http_info(data, opts = {})
328
328
  if @api_client.config.debugging
329
329
  @api_client.config.logger.debug 'Calling API: RepositoriesContainerApi.create ...'
@@ -352,7 +352,7 @@ module PulpContainerClient
352
352
  post_body = opts[:body] || @api_client.object_to_http_body(data)
353
353
 
354
354
  # return_type
355
- return_type = opts[:return_type] || 'ContainerContainerRepository'
355
+ return_type = opts[:return_type] || 'ContainerContainerRepositoryRead'
356
356
 
357
357
  # auth_names
358
358
  auth_names = opts[:auth_names] || ['Basic']
@@ -374,7 +374,7 @@ module PulpContainerClient
374
374
  end
375
375
 
376
376
  # Delete a container repository
377
- # Trigger an asynchronous task to delete a repository.
377
+ # Trigger an asynchronous delete task
378
378
  # @param container_repository_href [String] URI of Container Repository. e.g.: /pulp/api/v3/repositories/container/container/1/
379
379
  # @param [Hash] opts the optional parameters
380
380
  # @return [AsyncOperationResponse]
@@ -384,7 +384,7 @@ module PulpContainerClient
384
384
  end
385
385
 
386
386
  # Delete a container repository
387
- # Trigger an asynchronous task to delete a repository.
387
+ # Trigger an asynchronous delete task
388
388
  # @param container_repository_href [String] URI of Container Repository. e.g.: /pulp/api/v3/repositories/container/container/1/
389
389
  # @param [Hash] opts the optional parameters
390
390
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
@@ -513,22 +513,22 @@ module PulpContainerClient
513
513
  end
514
514
 
515
515
  # Partially update a container repository
516
- # ViewSet for container repo.
516
+ # Trigger an asynchronous partial update task
517
517
  # @param container_repository_href [String] URI of Container Repository. e.g.: /pulp/api/v3/repositories/container/container/1/
518
518
  # @param data [ContainerContainerRepository]
519
519
  # @param [Hash] opts the optional parameters
520
- # @return [ContainerContainerRepository]
520
+ # @return [AsyncOperationResponse]
521
521
  def partial_update(container_repository_href, data, opts = {})
522
522
  data, _status_code, _headers = partial_update_with_http_info(container_repository_href, data, opts)
523
523
  data
524
524
  end
525
525
 
526
526
  # Partially update a container repository
527
- # ViewSet for container repo.
527
+ # Trigger an asynchronous partial update task
528
528
  # @param container_repository_href [String] URI of Container Repository. e.g.: /pulp/api/v3/repositories/container/container/1/
529
529
  # @param data [ContainerContainerRepository]
530
530
  # @param [Hash] opts the optional parameters
531
- # @return [Array<(ContainerContainerRepository, Integer, Hash)>] ContainerContainerRepository data, response status code and response headers
531
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
532
532
  def partial_update_with_http_info(container_repository_href, data, opts = {})
533
533
  if @api_client.config.debugging
534
534
  @api_client.config.logger.debug 'Calling API: RepositoriesContainerApi.partial_update ...'
@@ -561,7 +561,7 @@ module PulpContainerClient
561
561
  post_body = opts[:body] || @api_client.object_to_http_body(data)
562
562
 
563
563
  # return_type
564
- return_type = opts[:return_type] || 'ContainerContainerRepository'
564
+ return_type = opts[:return_type] || 'AsyncOperationResponse'
565
565
 
566
566
  # auth_names
567
567
  auth_names = opts[:auth_names] || ['Basic']
@@ -588,7 +588,7 @@ module PulpContainerClient
588
588
  # @param [Hash] opts the optional parameters
589
589
  # @option opts [String] :fields A list of fields to include in the response.
590
590
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
591
- # @return [ContainerContainerRepository]
591
+ # @return [ContainerContainerRepositoryRead]
592
592
  def read(container_repository_href, opts = {})
593
593
  data, _status_code, _headers = read_with_http_info(container_repository_href, opts)
594
594
  data
@@ -600,7 +600,7 @@ module PulpContainerClient
600
600
  # @param [Hash] opts the optional parameters
601
601
  # @option opts [String] :fields A list of fields to include in the response.
602
602
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
603
- # @return [Array<(ContainerContainerRepository, Integer, Hash)>] ContainerContainerRepository data, response status code and response headers
603
+ # @return [Array<(ContainerContainerRepositoryRead, Integer, Hash)>] ContainerContainerRepositoryRead data, response status code and response headers
604
604
  def read_with_http_info(container_repository_href, opts = {})
605
605
  if @api_client.config.debugging
606
606
  @api_client.config.logger.debug 'Calling API: RepositoriesContainerApi.read ...'
@@ -629,7 +629,7 @@ module PulpContainerClient
629
629
  post_body = opts[:body]
630
630
 
631
631
  # return_type
632
- return_type = opts[:return_type] || 'ContainerContainerRepository'
632
+ return_type = opts[:return_type] || 'ContainerContainerRepositoryRead'
633
633
 
634
634
  # auth_names
635
635
  auth_names = opts[:auth_names] || ['Basic']
@@ -931,7 +931,7 @@ module PulpContainerClient
931
931
  end
932
932
 
933
933
  # Update a container repository
934
- # Trigger an asynchronous task to update a repository.
934
+ # Trigger an asynchronous update task
935
935
  # @param container_repository_href [String] URI of Container Repository. e.g.: /pulp/api/v3/repositories/container/container/1/
936
936
  # @param data [ContainerContainerRepository]
937
937
  # @param [Hash] opts the optional parameters
@@ -942,7 +942,7 @@ module PulpContainerClient
942
942
  end
943
943
 
944
944
  # Update a container repository
945
- # Trigger an asynchronous task to update a repository.
945
+ # Trigger an asynchronous update task
946
946
  # @param container_repository_href [String] URI of Container Repository. e.g.: /pulp/api/v3/repositories/container/container/1/
947
947
  # @param data [ContainerContainerRepository]
948
948
  # @param [Hash] opts the optional parameters
@@ -203,7 +203,7 @@ module PulpContainerClient
203
203
  # @param [Hash] opts the optional parameters
204
204
  # @option opts [String] :fields A list of fields to include in the response.
205
205
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
206
- # @return [RepositoryVersion]
206
+ # @return [RepositoryVersionRead]
207
207
  def read(container_repository_version_href, opts = {})
208
208
  data, _status_code, _headers = read_with_http_info(container_repository_version_href, opts)
209
209
  data
@@ -215,7 +215,7 @@ module PulpContainerClient
215
215
  # @param [Hash] opts the optional parameters
216
216
  # @option opts [String] :fields A list of fields to include in the response.
217
217
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
218
- # @return [Array<(RepositoryVersion, Integer, Hash)>] RepositoryVersion data, response status code and response headers
218
+ # @return [Array<(RepositoryVersionRead, Integer, Hash)>] RepositoryVersionRead data, response status code and response headers
219
219
  def read_with_http_info(container_repository_version_href, opts = {})
220
220
  if @api_client.config.debugging
221
221
  @api_client.config.logger.debug 'Calling API: RepositoriesContainerVersionsApi.read ...'
@@ -244,7 +244,7 @@ module PulpContainerClient
244
244
  post_body = opts[:body]
245
245
 
246
246
  # return_type
247
- return_type = opts[:return_type] || 'RepositoryVersion'
247
+ return_type = opts[:return_type] || 'RepositoryVersionRead'
248
248
 
249
249
  # auth_names
250
250
  auth_names = opts[:auth_names] || ['Basic']
@@ -122,7 +122,7 @@ module PulpContainerClient
122
122
 
123
123
  def initialize
124
124
  @scheme = 'http'
125
- @host = 'localhost'
125
+ @host = 'pulp'
126
126
  @base_path = ''
127
127
  @api_key = {}
128
128
  @api_key_prefix = {}
@@ -202,7 +202,7 @@ module PulpContainerClient
202
202
  def server_settings
203
203
  [
204
204
  {
205
- url: "http://localhost:24817/",
205
+ url: "http://pulp/",
206
206
  description: "No description provided",
207
207
  }
208
208
  ]
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.2.3
13
13
  require 'date'
14
14
 
15
15
  module PulpContainerClient
16
- class ContainerBlob
16
+ class ContainerBlobRead
17
17
  attr_accessor :pulp_href
18
18
 
19
19
  # Timestamp of creation.
@@ -60,13 +60,13 @@ module PulpContainerClient
60
60
  # @param [Hash] attributes Model attributes in the form of hash
61
61
  def initialize(attributes = {})
62
62
  if (!attributes.is_a?(Hash))
63
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpContainerClient::ContainerBlob` initialize method"
63
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpContainerClient::ContainerBlobRead` initialize method"
64
64
  end
65
65
 
66
66
  # check to see if the attribute exists and convert string to symbol for hash key
67
67
  attributes = attributes.each_with_object({}) { |(k, v), h|
68
68
  if (!self.class.attribute_map.key?(k.to_sym))
69
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpContainerClient::ContainerBlob`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
69
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpContainerClient::ContainerBlobRead`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
70
70
  end
71
71
  h[k.to_sym] = v
72
72
  }
@@ -14,25 +14,25 @@ require 'date'
14
14
 
15
15
  module PulpContainerClient
16
16
  class ContainerContainerDistribution
17
- attr_accessor :pulp_href
18
-
19
- # RepositoryVersion to be served
20
- attr_accessor :repository_version
21
-
22
17
  # The latest RepositoryVersion for this Repository will be served.
23
18
  attr_accessor :repository
24
19
 
20
+ # Timestamp of creation.
21
+ attr_accessor :pulp_created
22
+
23
+ attr_accessor :pulp_href
24
+
25
+ # A unique name. Ex, `rawhide` and `stable`.
26
+ attr_accessor :name
27
+
25
28
  # An optional content-guard.
26
29
  attr_accessor :content_guard
27
30
 
28
31
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
29
32
  attr_accessor :base_path
30
33
 
31
- # Timestamp of creation.
32
- attr_accessor :pulp_created
33
-
34
- # A unique name. Ex, `rawhide` and `stable`.
35
- attr_accessor :name
34
+ # RepositoryVersion to be served
35
+ attr_accessor :repository_version
36
36
 
37
37
  # The Registry hostame/name/ to use with docker pull command defined by this distribution.
38
38
  attr_accessor :registry_path
@@ -40,13 +40,13 @@ module PulpContainerClient
40
40
  # Attribute mapping from ruby-style variable name to JSON key.
41
41
  def self.attribute_map
42
42
  {
43
- :'pulp_href' => :'pulp_href',
44
- :'repository_version' => :'repository_version',
45
43
  :'repository' => :'repository',
46
- :'content_guard' => :'content_guard',
47
- :'base_path' => :'base_path',
48
44
  :'pulp_created' => :'pulp_created',
45
+ :'pulp_href' => :'pulp_href',
49
46
  :'name' => :'name',
47
+ :'content_guard' => :'content_guard',
48
+ :'base_path' => :'base_path',
49
+ :'repository_version' => :'repository_version',
50
50
  :'registry_path' => :'registry_path'
51
51
  }
52
52
  end
@@ -54,13 +54,13 @@ module PulpContainerClient
54
54
  # Attribute type mapping.
55
55
  def self.openapi_types
56
56
  {
57
- :'pulp_href' => :'String',
58
- :'repository_version' => :'String',
59
57
  :'repository' => :'String',
60
- :'content_guard' => :'String',
61
- :'base_path' => :'String',
62
58
  :'pulp_created' => :'DateTime',
59
+ :'pulp_href' => :'String',
63
60
  :'name' => :'String',
61
+ :'content_guard' => :'String',
62
+ :'base_path' => :'String',
63
+ :'repository_version' => :'String',
64
64
  :'registry_path' => :'String'
65
65
  }
66
66
  end
@@ -68,9 +68,9 @@ module PulpContainerClient
68
68
  # List of attributes with nullable: true
69
69
  def self.openapi_nullable
70
70
  Set.new([
71
- :'repository_version',
72
71
  :'repository',
73
72
  :'content_guard',
73
+ :'repository_version',
74
74
  ])
75
75
  end
76
76
 
@@ -89,16 +89,20 @@ module PulpContainerClient
89
89
  h[k.to_sym] = v
90
90
  }
91
91
 
92
- if attributes.key?(:'pulp_href')
93
- self.pulp_href = attributes[:'pulp_href']
92
+ if attributes.key?(:'repository')
93
+ self.repository = attributes[:'repository']
94
94
  end
95
95
 
96
- if attributes.key?(:'repository_version')
97
- self.repository_version = attributes[:'repository_version']
96
+ if attributes.key?(:'pulp_created')
97
+ self.pulp_created = attributes[:'pulp_created']
98
98
  end
99
99
 
100
- if attributes.key?(:'repository')
101
- self.repository = attributes[:'repository']
100
+ if attributes.key?(:'pulp_href')
101
+ self.pulp_href = attributes[:'pulp_href']
102
+ end
103
+
104
+ if attributes.key?(:'name')
105
+ self.name = attributes[:'name']
102
106
  end
103
107
 
104
108
  if attributes.key?(:'content_guard')
@@ -109,12 +113,8 @@ module PulpContainerClient
109
113
  self.base_path = attributes[:'base_path']
110
114
  end
111
115
 
112
- if attributes.key?(:'pulp_created')
113
- self.pulp_created = attributes[:'pulp_created']
114
- end
115
-
116
- if attributes.key?(:'name')
117
- self.name = attributes[:'name']
116
+ if attributes.key?(:'repository_version')
117
+ self.repository_version = attributes[:'repository_version']
118
118
  end
119
119
 
120
120
  if attributes.key?(:'registry_path')
@@ -126,14 +126,6 @@ module PulpContainerClient
126
126
  # @return Array for valid properties with the reasons
127
127
  def list_invalid_properties
128
128
  invalid_properties = Array.new
129
- if @base_path.nil?
130
- invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
131
- end
132
-
133
- if @base_path.to_s.length < 1
134
- invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
135
- end
136
-
137
129
  if @name.nil?
138
130
  invalid_properties.push('invalid value for "name", name cannot be nil.')
139
131
  end
@@ -142,6 +134,14 @@ module PulpContainerClient
142
134
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
143
135
  end
144
136
 
137
+ if @base_path.nil?
138
+ invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
139
+ end
140
+
141
+ if @base_path.to_s.length < 1
142
+ invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
143
+ end
144
+
145
145
  if !@registry_path.nil? && @registry_path.to_s.length < 1
146
146
  invalid_properties.push('invalid value for "registry_path", the character length must be great than or equal to 1.')
147
147
  end
@@ -152,28 +152,14 @@ module PulpContainerClient
152
152
  # Check to see if the all the properties in the model are valid
153
153
  # @return true if the model is valid
154
154
  def valid?
155
- return false if @base_path.nil?
156
- return false if @base_path.to_s.length < 1
157
155
  return false if @name.nil?
158
156
  return false if @name.to_s.length < 1
157
+ return false if @base_path.nil?
158
+ return false if @base_path.to_s.length < 1
159
159
  return false if !@registry_path.nil? && @registry_path.to_s.length < 1
160
160
  true
161
161
  end
162
162
 
163
- # Custom attribute writer method with validation
164
- # @param [Object] base_path Value to be assigned
165
- def base_path=(base_path)
166
- if base_path.nil?
167
- fail ArgumentError, 'base_path cannot be nil'
168
- end
169
-
170
- if base_path.to_s.length < 1
171
- fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
172
- end
173
-
174
- @base_path = base_path
175
- end
176
-
177
163
  # Custom attribute writer method with validation
178
164
  # @param [Object] name Value to be assigned
179
165
  def name=(name)
@@ -188,6 +174,20 @@ module PulpContainerClient
188
174
  @name = name
189
175
  end
190
176
 
177
+ # Custom attribute writer method with validation
178
+ # @param [Object] base_path Value to be assigned
179
+ def base_path=(base_path)
180
+ if base_path.nil?
181
+ fail ArgumentError, 'base_path cannot be nil'
182
+ end
183
+
184
+ if base_path.to_s.length < 1
185
+ fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
186
+ end
187
+
188
+ @base_path = base_path
189
+ end
190
+
191
191
  # Custom attribute writer method with validation
192
192
  # @param [Object] registry_path Value to be assigned
193
193
  def registry_path=(registry_path)
@@ -203,13 +203,13 @@ module PulpContainerClient
203
203
  def ==(o)
204
204
  return true if self.equal?(o)
205
205
  self.class == o.class &&
206
- pulp_href == o.pulp_href &&
207
- repository_version == o.repository_version &&
208
206
  repository == o.repository &&
209
- content_guard == o.content_guard &&
210
- base_path == o.base_path &&
211
207
  pulp_created == o.pulp_created &&
208
+ pulp_href == o.pulp_href &&
212
209
  name == o.name &&
210
+ content_guard == o.content_guard &&
211
+ base_path == o.base_path &&
212
+ repository_version == o.repository_version &&
213
213
  registry_path == o.registry_path
214
214
  end
215
215
 
@@ -222,7 +222,7 @@ module PulpContainerClient
222
222
  # Calculates hash code according to all attributes.
223
223
  # @return [Integer] Hash code
224
224
  def hash
225
- [pulp_href, repository_version, repository, content_guard, base_path, pulp_created, name, registry_path].hash
225
+ [repository, pulp_created, pulp_href, name, content_guard, base_path, repository_version, registry_path].hash
226
226
  end
227
227
 
228
228
  # Builds the object from hash