pulp_container_client 2.16.9 → 2.17.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 (25) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/ContainerContainerDistribution.md +9 -9
  4. data/docs/ContainerContainerDistributionResponse.md +11 -11
  5. data/docs/ContainerContainerPushRepository.md +6 -6
  6. data/docs/ContainerContainerPushRepositoryResponse.md +10 -10
  7. data/docs/PatchedcontainerContainerDistribution.md +9 -9
  8. data/docs/PatchedcontainerContainerPushRepository.md +6 -6
  9. data/lib/pulp_container_client/models/container_container_distribution.rb +61 -61
  10. data/lib/pulp_container_client/models/container_container_distribution_response.rb +48 -48
  11. data/lib/pulp_container_client/models/container_container_push_repository.rb +26 -26
  12. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +45 -45
  13. data/lib/pulp_container_client/models/container_container_remote.rb +20 -20
  14. data/lib/pulp_container_client/models/container_container_remote_response.rb +20 -20
  15. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +52 -52
  16. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +26 -26
  17. data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +20 -20
  18. data/lib/pulp_container_client/version.rb +1 -1
  19. data/spec/models/container_container_distribution_response_spec.rb +7 -7
  20. data/spec/models/container_container_distribution_spec.rb +6 -6
  21. data/spec/models/container_container_push_repository_response_spec.rb +9 -9
  22. data/spec/models/container_container_push_repository_spec.rb +5 -5
  23. data/spec/models/patchedcontainer_container_distribution_spec.rb +6 -6
  24. data/spec/models/patchedcontainer_container_push_repository_spec.rb +5 -5
  25. metadata +53 -53
@@ -15,6 +15,11 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # Serializer for Container Push Repositories.
17
17
  class ContainerContainerPushRepository
18
+ # A reference to an associated signing service.
19
+ attr_accessor :manifest_signing_service
20
+
21
+ attr_accessor :pulp_labels
22
+
18
23
  # An optional description.
19
24
  attr_accessor :description
20
25
 
@@ -24,39 +29,34 @@ module PulpContainerClient
24
29
  # A unique name for this repository.
25
30
  attr_accessor :name
26
31
 
27
- # A reference to an associated signing service.
28
- attr_accessor :manifest_signing_service
29
-
30
- attr_accessor :pulp_labels
31
-
32
32
  # Attribute mapping from ruby-style variable name to JSON key.
33
33
  def self.attribute_map
34
34
  {
35
+ :'manifest_signing_service' => :'manifest_signing_service',
36
+ :'pulp_labels' => :'pulp_labels',
35
37
  :'description' => :'description',
36
38
  :'retain_repo_versions' => :'retain_repo_versions',
37
- :'name' => :'name',
38
- :'manifest_signing_service' => :'manifest_signing_service',
39
- :'pulp_labels' => :'pulp_labels'
39
+ :'name' => :'name'
40
40
  }
41
41
  end
42
42
 
43
43
  # Attribute type mapping.
44
44
  def self.openapi_types
45
45
  {
46
+ :'manifest_signing_service' => :'String',
47
+ :'pulp_labels' => :'Hash<String, String>',
46
48
  :'description' => :'String',
47
49
  :'retain_repo_versions' => :'Integer',
48
- :'name' => :'String',
49
- :'manifest_signing_service' => :'String',
50
- :'pulp_labels' => :'Hash<String, String>'
50
+ :'name' => :'String'
51
51
  }
52
52
  end
53
53
 
54
54
  # List of attributes with nullable: true
55
55
  def self.openapi_nullable
56
56
  Set.new([
57
+ :'manifest_signing_service',
57
58
  :'description',
58
59
  :'retain_repo_versions',
59
- :'manifest_signing_service',
60
60
  ])
61
61
  end
62
62
 
@@ -75,6 +75,16 @@ module PulpContainerClient
75
75
  h[k.to_sym] = v
76
76
  }
77
77
 
78
+ if attributes.key?(:'manifest_signing_service')
79
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
80
+ end
81
+
82
+ if attributes.key?(:'pulp_labels')
83
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
84
+ self.pulp_labels = value
85
+ end
86
+ end
87
+
78
88
  if attributes.key?(:'description')
79
89
  self.description = attributes[:'description']
80
90
  end
@@ -86,16 +96,6 @@ module PulpContainerClient
86
96
  if attributes.key?(:'name')
87
97
  self.name = attributes[:'name']
88
98
  end
89
-
90
- if attributes.key?(:'manifest_signing_service')
91
- self.manifest_signing_service = attributes[:'manifest_signing_service']
92
- end
93
-
94
- if attributes.key?(:'pulp_labels')
95
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
96
- self.pulp_labels = value
97
- end
98
- end
99
99
  end
100
100
 
101
101
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -170,11 +170,11 @@ module PulpContainerClient
170
170
  def ==(o)
171
171
  return true if self.equal?(o)
172
172
  self.class == o.class &&
173
+ manifest_signing_service == o.manifest_signing_service &&
174
+ pulp_labels == o.pulp_labels &&
173
175
  description == o.description &&
174
176
  retain_repo_versions == o.retain_repo_versions &&
175
- name == o.name &&
176
- manifest_signing_service == o.manifest_signing_service &&
177
- pulp_labels == o.pulp_labels
177
+ name == o.name
178
178
  end
179
179
 
180
180
  # @see the `==` method
@@ -186,7 +186,7 @@ module PulpContainerClient
186
186
  # Calculates hash code according to all attributes.
187
187
  # @return [Integer] Hash code
188
188
  def hash
189
- [description, retain_repo_versions, name, manifest_signing_service, pulp_labels].hash
189
+ [manifest_signing_service, pulp_labels, description, retain_repo_versions, name].hash
190
190
  end
191
191
 
192
192
  # Builds the object from hash
@@ -15,65 +15,65 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # Serializer for Container Push Repositories.
17
17
  class ContainerContainerPushRepositoryResponse
18
+ # A reference to an associated signing service.
19
+ attr_accessor :manifest_signing_service
20
+
18
21
  attr_accessor :latest_version_href
19
22
 
23
+ # Timestamp of creation.
24
+ attr_accessor :pulp_created
25
+
26
+ attr_accessor :pulp_labels
27
+
20
28
  # An optional description.
21
29
  attr_accessor :description
22
30
 
31
+ attr_accessor :versions_href
32
+
23
33
  # Retain X versions of the repository. Default is null which retains all versions.
24
34
  attr_accessor :retain_repo_versions
25
35
 
26
- # Timestamp of creation.
27
- attr_accessor :pulp_created
28
-
29
36
  attr_accessor :pulp_href
30
37
 
31
38
  # A unique name for this repository.
32
39
  attr_accessor :name
33
40
 
34
- attr_accessor :versions_href
35
-
36
- # A reference to an associated signing service.
37
- attr_accessor :manifest_signing_service
38
-
39
- attr_accessor :pulp_labels
40
-
41
41
  # Attribute mapping from ruby-style variable name to JSON key.
42
42
  def self.attribute_map
43
43
  {
44
+ :'manifest_signing_service' => :'manifest_signing_service',
44
45
  :'latest_version_href' => :'latest_version_href',
46
+ :'pulp_created' => :'pulp_created',
47
+ :'pulp_labels' => :'pulp_labels',
45
48
  :'description' => :'description',
49
+ :'versions_href' => :'versions_href',
46
50
  :'retain_repo_versions' => :'retain_repo_versions',
47
- :'pulp_created' => :'pulp_created',
48
51
  :'pulp_href' => :'pulp_href',
49
- :'name' => :'name',
50
- :'versions_href' => :'versions_href',
51
- :'manifest_signing_service' => :'manifest_signing_service',
52
- :'pulp_labels' => :'pulp_labels'
52
+ :'name' => :'name'
53
53
  }
54
54
  end
55
55
 
56
56
  # Attribute type mapping.
57
57
  def self.openapi_types
58
58
  {
59
+ :'manifest_signing_service' => :'String',
59
60
  :'latest_version_href' => :'String',
61
+ :'pulp_created' => :'DateTime',
62
+ :'pulp_labels' => :'Hash<String, String>',
60
63
  :'description' => :'String',
64
+ :'versions_href' => :'String',
61
65
  :'retain_repo_versions' => :'Integer',
62
- :'pulp_created' => :'DateTime',
63
66
  :'pulp_href' => :'String',
64
- :'name' => :'String',
65
- :'versions_href' => :'String',
66
- :'manifest_signing_service' => :'String',
67
- :'pulp_labels' => :'Hash<String, String>'
67
+ :'name' => :'String'
68
68
  }
69
69
  end
70
70
 
71
71
  # List of attributes with nullable: true
72
72
  def self.openapi_nullable
73
73
  Set.new([
74
+ :'manifest_signing_service',
74
75
  :'description',
75
76
  :'retain_repo_versions',
76
- :'manifest_signing_service',
77
77
  ])
78
78
  end
79
79
 
@@ -92,42 +92,42 @@ module PulpContainerClient
92
92
  h[k.to_sym] = v
93
93
  }
94
94
 
95
- if attributes.key?(:'latest_version_href')
96
- self.latest_version_href = attributes[:'latest_version_href']
97
- end
98
-
99
- if attributes.key?(:'description')
100
- self.description = attributes[:'description']
95
+ if attributes.key?(:'manifest_signing_service')
96
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
101
97
  end
102
98
 
103
- if attributes.key?(:'retain_repo_versions')
104
- self.retain_repo_versions = attributes[:'retain_repo_versions']
99
+ if attributes.key?(:'latest_version_href')
100
+ self.latest_version_href = attributes[:'latest_version_href']
105
101
  end
106
102
 
107
103
  if attributes.key?(:'pulp_created')
108
104
  self.pulp_created = attributes[:'pulp_created']
109
105
  end
110
106
 
111
- if attributes.key?(:'pulp_href')
112
- self.pulp_href = attributes[:'pulp_href']
107
+ if attributes.key?(:'pulp_labels')
108
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
109
+ self.pulp_labels = value
110
+ end
113
111
  end
114
112
 
115
- if attributes.key?(:'name')
116
- self.name = attributes[:'name']
113
+ if attributes.key?(:'description')
114
+ self.description = attributes[:'description']
117
115
  end
118
116
 
119
117
  if attributes.key?(:'versions_href')
120
118
  self.versions_href = attributes[:'versions_href']
121
119
  end
122
120
 
123
- if attributes.key?(:'manifest_signing_service')
124
- self.manifest_signing_service = attributes[:'manifest_signing_service']
121
+ if attributes.key?(:'retain_repo_versions')
122
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
125
123
  end
126
124
 
127
- if attributes.key?(:'pulp_labels')
128
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
129
- self.pulp_labels = value
130
- end
125
+ if attributes.key?(:'pulp_href')
126
+ self.pulp_href = attributes[:'pulp_href']
127
+ end
128
+
129
+ if attributes.key?(:'name')
130
+ self.name = attributes[:'name']
131
131
  end
132
132
  end
133
133
 
@@ -169,15 +169,15 @@ module PulpContainerClient
169
169
  def ==(o)
170
170
  return true if self.equal?(o)
171
171
  self.class == o.class &&
172
+ manifest_signing_service == o.manifest_signing_service &&
172
173
  latest_version_href == o.latest_version_href &&
174
+ pulp_created == o.pulp_created &&
175
+ pulp_labels == o.pulp_labels &&
173
176
  description == o.description &&
177
+ versions_href == o.versions_href &&
174
178
  retain_repo_versions == o.retain_repo_versions &&
175
- pulp_created == o.pulp_created &&
176
179
  pulp_href == o.pulp_href &&
177
- name == o.name &&
178
- versions_href == o.versions_href &&
179
- manifest_signing_service == o.manifest_signing_service &&
180
- pulp_labels == o.pulp_labels
180
+ name == o.name
181
181
  end
182
182
 
183
183
  # @see the `==` method
@@ -189,7 +189,7 @@ module PulpContainerClient
189
189
  # Calculates hash code according to all attributes.
190
190
  # @return [Integer] Hash code
191
191
  def hash
192
- [latest_version_href, description, retain_repo_versions, pulp_created, pulp_href, name, versions_href, manifest_signing_service, pulp_labels].hash
192
+ [manifest_signing_service, latest_version_href, pulp_created, pulp_labels, description, versions_href, retain_repo_versions, pulp_href, name].hash
193
193
  end
194
194
 
195
195
  # Builds the object from hash
@@ -354,20 +354,20 @@ module PulpContainerClient
354
354
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
355
355
  end
356
356
 
357
- if !@total_timeout.nil? && @total_timeout < 0
358
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
357
+ if !@total_timeout.nil? && @total_timeout < 0.0
358
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
359
359
  end
360
360
 
361
- if !@connect_timeout.nil? && @connect_timeout < 0
362
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
361
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
362
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
363
363
  end
364
364
 
365
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
366
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
365
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
366
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
367
367
  end
368
368
 
369
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0
370
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
369
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
370
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
371
371
  end
372
372
 
373
373
  if @upstream_name.nil?
@@ -401,10 +401,10 @@ module PulpContainerClient
401
401
  return false if !@username.nil? && @username.to_s.length < 1
402
402
  return false if !@password.nil? && @password.to_s.length < 1
403
403
  return false if !@download_concurrency.nil? && @download_concurrency < 1
404
- return false if !@total_timeout.nil? && @total_timeout < 0
405
- return false if !@connect_timeout.nil? && @connect_timeout < 0
406
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
407
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
404
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
405
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
406
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
407
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
408
408
  return false if @upstream_name.nil?
409
409
  return false if @upstream_name.to_s.length < 1
410
410
  return false if !@sigstore.nil? && @sigstore.to_s.length < 1
@@ -532,8 +532,8 @@ module PulpContainerClient
532
532
  # Custom attribute writer method with validation
533
533
  # @param [Object] total_timeout Value to be assigned
534
534
  def total_timeout=(total_timeout)
535
- if !total_timeout.nil? && total_timeout < 0
536
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
535
+ if !total_timeout.nil? && total_timeout < 0.0
536
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
537
537
  end
538
538
 
539
539
  @total_timeout = total_timeout
@@ -542,8 +542,8 @@ module PulpContainerClient
542
542
  # Custom attribute writer method with validation
543
543
  # @param [Object] connect_timeout Value to be assigned
544
544
  def connect_timeout=(connect_timeout)
545
- if !connect_timeout.nil? && connect_timeout < 0
546
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
545
+ if !connect_timeout.nil? && connect_timeout < 0.0
546
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
547
547
  end
548
548
 
549
549
  @connect_timeout = connect_timeout
@@ -552,8 +552,8 @@ module PulpContainerClient
552
552
  # Custom attribute writer method with validation
553
553
  # @param [Object] sock_connect_timeout Value to be assigned
554
554
  def sock_connect_timeout=(sock_connect_timeout)
555
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0
556
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
555
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
556
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
557
557
  end
558
558
 
559
559
  @sock_connect_timeout = sock_connect_timeout
@@ -562,8 +562,8 @@ module PulpContainerClient
562
562
  # Custom attribute writer method with validation
563
563
  # @param [Object] sock_read_timeout Value to be assigned
564
564
  def sock_read_timeout=(sock_read_timeout)
565
- if !sock_read_timeout.nil? && sock_read_timeout < 0
566
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
565
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
566
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
567
567
  end
568
568
 
569
569
  @sock_read_timeout = sock_read_timeout
@@ -301,20 +301,20 @@ module PulpContainerClient
301
301
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
302
302
  end
303
303
 
304
- if !@total_timeout.nil? && @total_timeout < 0
305
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
304
+ if !@total_timeout.nil? && @total_timeout < 0.0
305
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
306
306
  end
307
307
 
308
- if !@connect_timeout.nil? && @connect_timeout < 0
309
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
308
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
309
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
310
310
  end
311
311
 
312
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
313
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
312
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
313
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
314
314
  end
315
315
 
316
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0
317
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
316
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
317
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
318
318
  end
319
319
 
320
320
  if @upstream_name.nil?
@@ -330,10 +330,10 @@ module PulpContainerClient
330
330
  return false if @name.nil?
331
331
  return false if @url.nil?
332
332
  return false if !@download_concurrency.nil? && @download_concurrency < 1
333
- return false if !@total_timeout.nil? && @total_timeout < 0
334
- return false if !@connect_timeout.nil? && @connect_timeout < 0
335
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
336
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
333
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
334
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
335
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
336
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
337
337
  return false if @upstream_name.nil?
338
338
  true
339
339
  end
@@ -351,8 +351,8 @@ module PulpContainerClient
351
351
  # Custom attribute writer method with validation
352
352
  # @param [Object] total_timeout Value to be assigned
353
353
  def total_timeout=(total_timeout)
354
- if !total_timeout.nil? && total_timeout < 0
355
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
354
+ if !total_timeout.nil? && total_timeout < 0.0
355
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
356
356
  end
357
357
 
358
358
  @total_timeout = total_timeout
@@ -361,8 +361,8 @@ module PulpContainerClient
361
361
  # Custom attribute writer method with validation
362
362
  # @param [Object] connect_timeout Value to be assigned
363
363
  def connect_timeout=(connect_timeout)
364
- if !connect_timeout.nil? && connect_timeout < 0
365
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
364
+ if !connect_timeout.nil? && connect_timeout < 0.0
365
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
366
366
  end
367
367
 
368
368
  @connect_timeout = connect_timeout
@@ -371,8 +371,8 @@ module PulpContainerClient
371
371
  # Custom attribute writer method with validation
372
372
  # @param [Object] sock_connect_timeout Value to be assigned
373
373
  def sock_connect_timeout=(sock_connect_timeout)
374
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0
375
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
374
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
375
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
376
376
  end
377
377
 
378
378
  @sock_connect_timeout = sock_connect_timeout
@@ -381,8 +381,8 @@ module PulpContainerClient
381
381
  # Custom attribute writer method with validation
382
382
  # @param [Object] sock_read_timeout Value to be assigned
383
383
  def sock_read_timeout=(sock_read_timeout)
384
- if !sock_read_timeout.nil? && sock_read_timeout < 0
385
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
384
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
385
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
386
386
  end
387
387
 
388
388
  @sock_read_timeout = sock_read_timeout
@@ -15,22 +15,22 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class PatchedcontainerContainerDistribution
18
- # An optional content-guard. If none is specified, a default one will be used.
19
- attr_accessor :content_guard
20
-
21
- # A unique name. Ex, `rawhide` and `stable`.
22
- attr_accessor :name
18
+ # The latest RepositoryVersion for this Repository will be served.
19
+ attr_accessor :repository
23
20
 
24
- # Whether this distribution should be shown in the content app.
25
- attr_accessor :hidden
21
+ attr_accessor :pulp_labels
26
22
 
27
23
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
28
24
  attr_accessor :base_path
29
25
 
30
- attr_accessor :pulp_labels
26
+ # Whether this distribution should be shown in the content app.
27
+ attr_accessor :hidden
31
28
 
32
- # The latest RepositoryVersion for this Repository will be served.
33
- attr_accessor :repository
29
+ # An optional content-guard. If none is specified, a default one will be used.
30
+ attr_accessor :content_guard
31
+
32
+ # A unique name. Ex, `rawhide` and `stable`.
33
+ attr_accessor :name
34
34
 
35
35
  # RepositoryVersion to be served
36
36
  attr_accessor :repository_version
@@ -44,12 +44,12 @@ module PulpContainerClient
44
44
  # Attribute mapping from ruby-style variable name to JSON key.
45
45
  def self.attribute_map
46
46
  {
47
+ :'repository' => :'repository',
48
+ :'pulp_labels' => :'pulp_labels',
49
+ :'base_path' => :'base_path',
50
+ :'hidden' => :'hidden',
47
51
  :'content_guard' => :'content_guard',
48
52
  :'name' => :'name',
49
- :'hidden' => :'hidden',
50
- :'base_path' => :'base_path',
51
- :'pulp_labels' => :'pulp_labels',
52
- :'repository' => :'repository',
53
53
  :'repository_version' => :'repository_version',
54
54
  :'private' => :'private',
55
55
  :'description' => :'description'
@@ -59,12 +59,12 @@ module PulpContainerClient
59
59
  # Attribute type mapping.
60
60
  def self.openapi_types
61
61
  {
62
+ :'repository' => :'String',
63
+ :'pulp_labels' => :'Hash<String, String>',
64
+ :'base_path' => :'String',
65
+ :'hidden' => :'Boolean',
62
66
  :'content_guard' => :'String',
63
67
  :'name' => :'String',
64
- :'hidden' => :'Boolean',
65
- :'base_path' => :'String',
66
- :'pulp_labels' => :'Hash<String, String>',
67
- :'repository' => :'String',
68
68
  :'repository_version' => :'String',
69
69
  :'private' => :'Boolean',
70
70
  :'description' => :'String'
@@ -95,12 +95,18 @@ module PulpContainerClient
95
95
  h[k.to_sym] = v
96
96
  }
97
97
 
98
- if attributes.key?(:'content_guard')
99
- self.content_guard = attributes[:'content_guard']
98
+ if attributes.key?(:'repository')
99
+ self.repository = attributes[:'repository']
100
100
  end
101
101
 
102
- if attributes.key?(:'name')
103
- self.name = attributes[:'name']
102
+ if attributes.key?(:'pulp_labels')
103
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
104
+ self.pulp_labels = value
105
+ end
106
+ end
107
+
108
+ if attributes.key?(:'base_path')
109
+ self.base_path = attributes[:'base_path']
104
110
  end
105
111
 
106
112
  if attributes.key?(:'hidden')
@@ -109,18 +115,12 @@ module PulpContainerClient
109
115
  self.hidden = false
110
116
  end
111
117
 
112
- if attributes.key?(:'base_path')
113
- self.base_path = attributes[:'base_path']
114
- end
115
-
116
- if attributes.key?(:'pulp_labels')
117
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
118
- self.pulp_labels = value
119
- end
118
+ if attributes.key?(:'content_guard')
119
+ self.content_guard = attributes[:'content_guard']
120
120
  end
121
121
 
122
- if attributes.key?(:'repository')
123
- self.repository = attributes[:'repository']
122
+ if attributes.key?(:'name')
123
+ self.name = attributes[:'name']
124
124
  end
125
125
 
126
126
  if attributes.key?(:'repository_version')
@@ -140,14 +140,14 @@ module PulpContainerClient
140
140
  # @return Array for valid properties with the reasons
141
141
  def list_invalid_properties
142
142
  invalid_properties = Array.new
143
- if !@name.nil? && @name.to_s.length < 1
144
- invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
145
- end
146
-
147
143
  if !@base_path.nil? && @base_path.to_s.length < 1
148
144
  invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
149
145
  end
150
146
 
147
+ if !@name.nil? && @name.to_s.length < 1
148
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
149
+ end
150
+
151
151
  if !@description.nil? && @description.to_s.length < 1
152
152
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
153
153
  end
@@ -158,22 +158,12 @@ module PulpContainerClient
158
158
  # Check to see if the all the properties in the model are valid
159
159
  # @return true if the model is valid
160
160
  def valid?
161
- return false if !@name.nil? && @name.to_s.length < 1
162
161
  return false if !@base_path.nil? && @base_path.to_s.length < 1
162
+ return false if !@name.nil? && @name.to_s.length < 1
163
163
  return false if !@description.nil? && @description.to_s.length < 1
164
164
  true
165
165
  end
166
166
 
167
- # Custom attribute writer method with validation
168
- # @param [Object] name Value to be assigned
169
- def name=(name)
170
- if !name.nil? && 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
167
  # Custom attribute writer method with validation
178
168
  # @param [Object] base_path Value to be assigned
179
169
  def base_path=(base_path)
@@ -184,6 +174,16 @@ module PulpContainerClient
184
174
  @base_path = base_path
185
175
  end
186
176
 
177
+ # Custom attribute writer method with validation
178
+ # @param [Object] name Value to be assigned
179
+ def name=(name)
180
+ if !name.nil? && name.to_s.length < 1
181
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
182
+ end
183
+
184
+ @name = name
185
+ end
186
+
187
187
  # Custom attribute writer method with validation
188
188
  # @param [Object] description Value to be assigned
189
189
  def description=(description)
@@ -199,12 +199,12 @@ module PulpContainerClient
199
199
  def ==(o)
200
200
  return true if self.equal?(o)
201
201
  self.class == o.class &&
202
+ repository == o.repository &&
203
+ pulp_labels == o.pulp_labels &&
204
+ base_path == o.base_path &&
205
+ hidden == o.hidden &&
202
206
  content_guard == o.content_guard &&
203
207
  name == o.name &&
204
- hidden == o.hidden &&
205
- base_path == o.base_path &&
206
- pulp_labels == o.pulp_labels &&
207
- repository == o.repository &&
208
208
  repository_version == o.repository_version &&
209
209
  private == o.private &&
210
210
  description == o.description
@@ -219,7 +219,7 @@ module PulpContainerClient
219
219
  # Calculates hash code according to all attributes.
220
220
  # @return [Integer] Hash code
221
221
  def hash
222
- [content_guard, name, hidden, base_path, pulp_labels, repository, repository_version, private, description].hash
222
+ [repository, pulp_labels, base_path, hidden, content_guard, name, repository_version, private, description].hash
223
223
  end
224
224
 
225
225
  # Builds the object from hash