pulp_container_client 1.4.1 → 1.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -11
  3. data/docs/{ContainerBlobRead.md → ContainerBlob.md} +2 -2
  4. data/docs/ContainerContainerDistribution.md +10 -10
  5. data/docs/{ContainerManifestRead.md → ContainerManifest.md} +2 -2
  6. data/docs/{ContainerTagRead.md → ContainerTag.md} +2 -2
  7. data/docs/ContentBlobsApi.md +2 -2
  8. data/docs/ContentManifestsApi.md +2 -2
  9. data/docs/ContentTagsApi.md +2 -2
  10. data/docs/DistributionsContainerApi.md +2 -2
  11. data/docs/InlineResponse200.md +1 -1
  12. data/docs/InlineResponse2001.md +1 -1
  13. data/docs/InlineResponse2002.md +1 -1
  14. data/docs/InlineResponse2003.md +1 -1
  15. data/docs/InlineResponse2004.md +1 -1
  16. data/docs/InlineResponse2005.md +1 -1
  17. data/docs/InlineResponse2006.md +1 -1
  18. data/docs/RemotesContainerApi.md +4 -4
  19. data/docs/RepositoriesContainerApi.md +4 -4
  20. data/docs/RepositoriesContainerVersionsApi.md +6 -4
  21. data/lib/pulp_container_client.rb +3 -7
  22. data/lib/pulp_container_client/api/content_blobs_api.rb +3 -3
  23. data/lib/pulp_container_client/api/content_manifests_api.rb +3 -3
  24. data/lib/pulp_container_client/api/content_tags_api.rb +3 -3
  25. data/lib/pulp_container_client/api/distributions_container_api.rb +3 -3
  26. data/lib/pulp_container_client/api/remotes_container_api.rb +6 -6
  27. data/lib/pulp_container_client/api/repositories_container_api.rb +6 -6
  28. data/lib/pulp_container_client/api/repositories_container_versions_api.rb +9 -6
  29. data/lib/pulp_container_client/models/{container_blob_read.rb → container_blob.rb} +3 -3
  30. data/lib/pulp_container_client/models/container_container_distribution.rb +64 -64
  31. data/lib/pulp_container_client/models/{container_manifest_read.rb → container_manifest.rb} +3 -3
  32. data/lib/pulp_container_client/models/{container_tag_read.rb → container_tag.rb} +3 -3
  33. data/lib/pulp_container_client/models/inline_response200.rb +1 -1
  34. data/lib/pulp_container_client/models/inline_response2001.rb +1 -1
  35. data/lib/pulp_container_client/models/inline_response2002.rb +1 -1
  36. data/lib/pulp_container_client/models/inline_response2003.rb +1 -1
  37. data/lib/pulp_container_client/models/inline_response2004.rb +1 -1
  38. data/lib/pulp_container_client/models/inline_response2005.rb +1 -1
  39. data/lib/pulp_container_client/models/inline_response2006.rb +1 -1
  40. data/lib/pulp_container_client/version.rb +1 -1
  41. data/spec/api/content_blobs_api_spec.rb +1 -1
  42. data/spec/api/content_manifests_api_spec.rb +1 -1
  43. data/spec/api/content_tags_api_spec.rb +1 -1
  44. data/spec/api/distributions_container_api_spec.rb +1 -1
  45. data/spec/api/remotes_container_api_spec.rb +2 -2
  46. data/spec/api/repositories_container_api_spec.rb +2 -2
  47. data/spec/api/repositories_container_versions_api_spec.rb +3 -2
  48. data/spec/models/{container_blob_read_spec.rb → container_blob_spec.rb} +6 -6
  49. data/spec/models/container_container_distribution_spec.rb +6 -6
  50. data/spec/models/{container_manifest_read_spec.rb → container_manifest_spec.rb} +6 -6
  51. data/spec/models/{container_tag_read_spec.rb → container_tag_spec.rb} +6 -6
  52. metadata +14 -30
  53. data/docs/ContainerContainerDistributionRead.md +0 -31
  54. data/docs/ContainerContainerRemoteRead.md +0 -47
  55. data/docs/ContainerContainerRepositoryRead.md +0 -27
  56. data/docs/RepositoryVersionRead.md +0 -25
  57. data/lib/pulp_container_client/models/container_container_distribution_read.rb +0 -342
  58. data/lib/pulp_container_client/models/container_container_remote_read.rb +0 -578
  59. data/lib/pulp_container_client/models/container_container_repository_read.rb +0 -294
  60. data/lib/pulp_container_client/models/repository_version_read.rb +0 -244
  61. data/spec/models/container_container_distribution_read_spec.rb +0 -83
  62. data/spec/models/container_container_remote_read_spec.rb +0 -135
  63. data/spec/models/container_container_repository_read_spec.rb +0 -71
  64. data/spec/models/repository_version_read_spec.rb +0 -65
@@ -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 [ContainerManifestRead]
117
+ # @return [ContainerManifest]
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<(ContainerManifestRead, Integer, Hash)>] ContainerManifestRead data, response status code and response headers
129
+ # @return [Array<(ContainerManifest, Integer, Hash)>] ContainerManifest 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] || 'ContainerManifestRead'
158
+ return_type = opts[:return_type] || 'ContainerManifest'
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 [ContainerTagRead]
120
+ # @return [ContainerTag]
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<(ContainerTagRead, Integer, Hash)>] ContainerTagRead data, response status code and response headers
132
+ # @return [Array<(ContainerTag, Integer, Hash)>] ContainerTag 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] || 'ContainerTagRead'
161
+ return_type = opts[:return_type] || 'ContainerTag'
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 [ContainerContainerDistributionRead]
313
+ # @return [ContainerContainerDistribution]
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<(ContainerContainerDistributionRead, Integer, Hash)>] ContainerContainerDistributionRead data, response status code and response headers
325
+ # @return [Array<(ContainerContainerDistribution, Integer, Hash)>] ContainerContainerDistribution 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] || 'ContainerContainerDistributionRead'
354
+ return_type = opts[:return_type] || 'ContainerContainerDistribution'
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 [ContainerContainerRemoteRead]
26
+ # @return [ContainerContainerRemote]
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<(ContainerContainerRemoteRead, Integer, Hash)>] ContainerContainerRemoteRead data, response status code and response headers
36
+ # @return [Array<(ContainerContainerRemote, Integer, Hash)>] ContainerContainerRemote 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] || 'ContainerContainerRemoteRead'
65
+ return_type = opts[:return_type] || 'ContainerContainerRemote'
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 [ContainerContainerRemoteRead]
319
+ # @return [ContainerContainerRemote]
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<(ContainerContainerRemoteRead, Integer, Hash)>] ContainerContainerRemoteRead data, response status code and response headers
331
+ # @return [Array<(ContainerContainerRemote, Integer, Hash)>] ContainerContainerRemote 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] || 'ContainerContainerRemoteRead'
360
+ return_type = opts[:return_type] || 'ContainerContainerRemote'
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 [ContainerContainerRepositoryRead]
316
+ # @return [ContainerContainerRepository]
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<(ContainerContainerRepositoryRead, Integer, Hash)>] ContainerContainerRepositoryRead data, response status code and response headers
326
+ # @return [Array<(ContainerContainerRepository, Integer, Hash)>] ContainerContainerRepository 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] || 'ContainerContainerRepositoryRead'
355
+ return_type = opts[:return_type] || 'ContainerContainerRepository'
356
356
 
357
357
  # auth_names
358
358
  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 [ContainerContainerRepositoryRead]
591
+ # @return [ContainerContainerRepository]
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<(ContainerContainerRepositoryRead, Integer, Hash)>] ContainerContainerRepositoryRead data, response status code and response headers
603
+ # @return [Array<(ContainerContainerRepository, Integer, Hash)>] ContainerContainerRepository 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] || 'ContainerContainerRepositoryRead'
632
+ return_type = opts[:return_type] || 'ContainerContainerRepository'
633
633
 
634
634
  # auth_names
635
635
  auth_names = opts[:auth_names] || ['Basic']
@@ -97,8 +97,9 @@ module PulpContainerClient
97
97
  # @option opts [String] :pulp_created__gt Filter results where pulp_created is greater than value
98
98
  # @option opts [String] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
99
99
  # @option opts [String] :pulp_created__range Filter results where pulp_created is between two comma separated values
100
- # @option opts [String] :content Content Unit referenced by HREF
101
100
  # @option opts [String] :pulp_created ISO 8601 formatted dates are supported
101
+ # @option opts [String] :content Content Unit referenced by HREF
102
+ # @option opts [String] :content__in Content Unit referenced by HREF
102
103
  # @option opts [Integer] :limit Number of results to return per page.
103
104
  # @option opts [Integer] :offset The initial index from which to return the results.
104
105
  # @option opts [String] :fields A list of fields to include in the response.
@@ -125,8 +126,9 @@ module PulpContainerClient
125
126
  # @option opts [String] :pulp_created__gt Filter results where pulp_created is greater than value
126
127
  # @option opts [String] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
127
128
  # @option opts [String] :pulp_created__range Filter results where pulp_created is between two comma separated values
128
- # @option opts [String] :content Content Unit referenced by HREF
129
129
  # @option opts [String] :pulp_created ISO 8601 formatted dates are supported
130
+ # @option opts [String] :content Content Unit referenced by HREF
131
+ # @option opts [String] :content__in Content Unit referenced by HREF
130
132
  # @option opts [Integer] :limit Number of results to return per page.
131
133
  # @option opts [Integer] :offset The initial index from which to return the results.
132
134
  # @option opts [String] :fields A list of fields to include in the response.
@@ -157,8 +159,9 @@ module PulpContainerClient
157
159
  query_params[:'pulp_created__gt'] = opts[:'pulp_created__gt'] if !opts[:'pulp_created__gt'].nil?
158
160
  query_params[:'pulp_created__gte'] = opts[:'pulp_created__gte'] if !opts[:'pulp_created__gte'].nil?
159
161
  query_params[:'pulp_created__range'] = opts[:'pulp_created__range'] if !opts[:'pulp_created__range'].nil?
160
- query_params[:'content'] = opts[:'content'] if !opts[:'content'].nil?
161
162
  query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
163
+ query_params[:'content'] = opts[:'content'] if !opts[:'content'].nil?
164
+ query_params[:'content__in'] = opts[:'content__in'] if !opts[:'content__in'].nil?
162
165
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
163
166
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
164
167
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
@@ -203,7 +206,7 @@ module PulpContainerClient
203
206
  # @param [Hash] opts the optional parameters
204
207
  # @option opts [String] :fields A list of fields to include in the response.
205
208
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
206
- # @return [RepositoryVersionRead]
209
+ # @return [RepositoryVersion]
207
210
  def read(container_repository_version_href, opts = {})
208
211
  data, _status_code, _headers = read_with_http_info(container_repository_version_href, opts)
209
212
  data
@@ -215,7 +218,7 @@ module PulpContainerClient
215
218
  # @param [Hash] opts the optional parameters
216
219
  # @option opts [String] :fields A list of fields to include in the response.
217
220
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
218
- # @return [Array<(RepositoryVersionRead, Integer, Hash)>] RepositoryVersionRead data, response status code and response headers
221
+ # @return [Array<(RepositoryVersion, Integer, Hash)>] RepositoryVersion data, response status code and response headers
219
222
  def read_with_http_info(container_repository_version_href, opts = {})
220
223
  if @api_client.config.debugging
221
224
  @api_client.config.logger.debug 'Calling API: RepositoriesContainerVersionsApi.read ...'
@@ -244,7 +247,7 @@ module PulpContainerClient
244
247
  post_body = opts[:body]
245
248
 
246
249
  # return_type
247
- return_type = opts[:return_type] || 'RepositoryVersionRead'
250
+ return_type = opts[:return_type] || 'RepositoryVersion'
248
251
 
249
252
  # auth_names
250
253
  auth_names = opts[:auth_names] || ['Basic']
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.2.3
13
13
  require 'date'
14
14
 
15
15
  module PulpContainerClient
16
- class ContainerBlobRead
16
+ class ContainerBlob
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::ContainerBlobRead` initialize method"
63
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpContainerClient::ContainerBlob` 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::ContainerBlobRead`. 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::ContainerBlob`. 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
- # An optional content-guard.
18
- attr_accessor :content_guard
17
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
18
+ attr_accessor :base_path
19
19
 
20
- # Timestamp of creation.
21
- attr_accessor :pulp_created
20
+ attr_accessor :pulp_href
22
21
 
23
22
  # A unique name. Ex, `rawhide` and `stable`.
24
23
  attr_accessor :name
25
24
 
26
- # The latest RepositoryVersion for this Repository will be served.
27
- attr_accessor :repository
28
-
29
- attr_accessor :pulp_href
25
+ # Timestamp of creation.
26
+ attr_accessor :pulp_created
30
27
 
31
28
  # RepositoryVersion to be served
32
29
  attr_accessor :repository_version
33
30
 
34
- # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
35
- attr_accessor :base_path
31
+ # The latest RepositoryVersion for this Repository will be served.
32
+ attr_accessor :repository
33
+
34
+ # An optional content-guard.
35
+ attr_accessor :content_guard
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
- :'content_guard' => :'content_guard',
44
- :'pulp_created' => :'pulp_created',
45
- :'name' => :'name',
46
- :'repository' => :'repository',
43
+ :'base_path' => :'base_path',
47
44
  :'pulp_href' => :'pulp_href',
45
+ :'name' => :'name',
46
+ :'pulp_created' => :'pulp_created',
48
47
  :'repository_version' => :'repository_version',
49
- :'base_path' => :'base_path',
48
+ :'repository' => :'repository',
49
+ :'content_guard' => :'content_guard',
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
- :'content_guard' => :'String',
58
- :'pulp_created' => :'DateTime',
59
- :'name' => :'String',
60
- :'repository' => :'String',
57
+ :'base_path' => :'String',
61
58
  :'pulp_href' => :'String',
59
+ :'name' => :'String',
60
+ :'pulp_created' => :'DateTime',
62
61
  :'repository_version' => :'String',
63
- :'base_path' => :'String',
62
+ :'repository' => :'String',
63
+ :'content_guard' => :'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
- :'content_guard',
72
- :'repository',
73
71
  :'repository_version',
72
+ :'repository',
73
+ :'content_guard',
74
74
  ])
75
75
  end
76
76
 
@@ -89,32 +89,32 @@ module PulpContainerClient
89
89
  h[k.to_sym] = v
90
90
  }
91
91
 
92
- if attributes.key?(:'content_guard')
93
- self.content_guard = attributes[:'content_guard']
92
+ if attributes.key?(:'base_path')
93
+ self.base_path = attributes[:'base_path']
94
94
  end
95
95
 
96
- if attributes.key?(:'pulp_created')
97
- self.pulp_created = attributes[:'pulp_created']
96
+ if attributes.key?(:'pulp_href')
97
+ self.pulp_href = attributes[:'pulp_href']
98
98
  end
99
99
 
100
100
  if attributes.key?(:'name')
101
101
  self.name = attributes[:'name']
102
102
  end
103
103
 
104
- if attributes.key?(:'repository')
105
- self.repository = attributes[:'repository']
106
- end
107
-
108
- if attributes.key?(:'pulp_href')
109
- self.pulp_href = attributes[:'pulp_href']
104
+ if attributes.key?(:'pulp_created')
105
+ self.pulp_created = attributes[:'pulp_created']
110
106
  end
111
107
 
112
108
  if attributes.key?(:'repository_version')
113
109
  self.repository_version = attributes[:'repository_version']
114
110
  end
115
111
 
116
- if attributes.key?(:'base_path')
117
- self.base_path = attributes[:'base_path']
112
+ if attributes.key?(:'repository')
113
+ self.repository = attributes[:'repository']
114
+ end
115
+
116
+ if attributes.key?(:'content_guard')
117
+ self.content_guard = attributes[:'content_guard']
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 @name.nil?
130
- invalid_properties.push('invalid value for "name", name cannot be nil.')
131
- end
132
-
133
- if @name.to_s.length < 1
134
- invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
135
- end
136
-
137
129
  if @base_path.nil?
138
130
  invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
139
131
  end
@@ -142,6 +134,14 @@ module PulpContainerClient
142
134
  invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
143
135
  end
144
136
 
137
+ if @name.nil?
138
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
139
+ end
140
+
141
+ if @name.to_s.length < 1
142
+ invalid_properties.push('invalid value for "name", 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 @name.nil?
156
- return false if @name.to_s.length < 1
157
155
  return false if @base_path.nil?
158
156
  return false if @base_path.to_s.length < 1
157
+ return false if @name.nil?
158
+ return false if @name.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] name Value to be assigned
165
- def name=(name)
166
- if name.nil?
167
- fail ArgumentError, 'name cannot be nil'
168
- end
169
-
170
- if name.to_s.length < 1
171
- fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
172
- end
173
-
174
- @name = name
175
- end
176
-
177
163
  # Custom attribute writer method with validation
178
164
  # @param [Object] base_path Value to be assigned
179
165
  def base_path=(base_path)
@@ -188,6 +174,20 @@ module PulpContainerClient
188
174
  @base_path = base_path
189
175
  end
190
176
 
177
+ # Custom attribute writer method with validation
178
+ # @param [Object] name Value to be assigned
179
+ def name=(name)
180
+ if name.nil?
181
+ fail ArgumentError, 'name cannot be nil'
182
+ end
183
+
184
+ if name.to_s.length < 1
185
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
186
+ end
187
+
188
+ @name = name
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
- content_guard == o.content_guard &&
207
- pulp_created == o.pulp_created &&
208
- name == o.name &&
209
- repository == o.repository &&
206
+ base_path == o.base_path &&
210
207
  pulp_href == o.pulp_href &&
208
+ name == o.name &&
209
+ pulp_created == o.pulp_created &&
211
210
  repository_version == o.repository_version &&
212
- base_path == o.base_path &&
211
+ repository == o.repository &&
212
+ content_guard == o.content_guard &&
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
- [content_guard, pulp_created, name, repository, pulp_href, repository_version, base_path, registry_path].hash
225
+ [base_path, pulp_href, name, pulp_created, repository_version, repository, content_guard, registry_path].hash
226
226
  end
227
227
 
228
228
  # Builds the object from hash