pulp_container_client 2.20.0 → 2.20.3

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 (111) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -7
  3. data/docs/ContainerBlobResponse.md +2 -0
  4. data/docs/ContainerContainerDistribution.md +9 -9
  5. data/docs/ContainerContainerDistributionResponse.md +13 -11
  6. data/docs/ContainerContainerNamespaceResponse.md +2 -0
  7. data/docs/ContainerContainerPullThroughDistribution.md +9 -9
  8. data/docs/ContainerContainerPullThroughDistributionResponse.md +13 -11
  9. data/docs/ContainerContainerPullThroughRemoteResponse.md +2 -2
  10. data/docs/ContainerContainerPullThroughRemoteResponseHiddenFields.md +2 -2
  11. data/docs/ContainerContainerPushRepository.md +6 -6
  12. data/docs/ContainerContainerPushRepositoryResponse.md +15 -13
  13. data/docs/ContainerContainerRemoteResponse.md +2 -2
  14. data/docs/ContainerContainerRepositoryResponse.md +2 -0
  15. data/docs/ContainerManifestResponse.md +2 -0
  16. data/docs/ContainerManifestSignatureResponse.md +2 -0
  17. data/docs/ContainerTagResponse.md +2 -0
  18. data/docs/ContentBlobsApi.md +1 -1
  19. data/docs/ContentManifestsApi.md +1 -1
  20. data/docs/ContentSignaturesApi.md +1 -1
  21. data/docs/ContentTagsApi.md +1 -1
  22. data/docs/DistributionsContainerApi.md +1 -1
  23. data/docs/DistributionsPullThroughApi.md +1 -1
  24. data/docs/PaginatedRepositoryVersionResponseList.md +2 -2
  25. data/docs/PaginatedcontainerBlobResponseList.md +2 -2
  26. data/docs/PaginatedcontainerContainerDistributionResponseList.md +2 -2
  27. data/docs/PaginatedcontainerContainerNamespaceResponseList.md +2 -2
  28. data/docs/PaginatedcontainerContainerPullThroughDistributionResponseList.md +2 -2
  29. data/docs/PaginatedcontainerContainerPullThroughRemoteResponseList.md +2 -2
  30. data/docs/PaginatedcontainerContainerPushRepositoryResponseList.md +2 -2
  31. data/docs/PaginatedcontainerContainerRemoteResponseList.md +2 -2
  32. data/docs/PaginatedcontainerContainerRepositoryResponseList.md +2 -2
  33. data/docs/PaginatedcontainerManifestResponseList.md +2 -2
  34. data/docs/PaginatedcontainerManifestSignatureResponseList.md +2 -2
  35. data/docs/PaginatedcontainerTagResponseList.md +2 -2
  36. data/docs/PatchedcontainerContainerDistribution.md +9 -9
  37. data/docs/PatchedcontainerContainerPullThroughDistribution.md +9 -9
  38. data/docs/PatchedcontainerContainerPushRepository.md +6 -6
  39. data/docs/PulpContainerNamespacesApi.md +1 -1
  40. data/docs/RemotesContainerApi.md +1 -1
  41. data/docs/RemotesPullThroughApi.md +1 -1
  42. data/docs/RepositoriesContainerApi.md +1 -1
  43. data/docs/RepositoriesContainerPushApi.md +1 -1
  44. data/docs/RepositoriesContainerPushVersionsApi.md +1 -1
  45. data/docs/RepositoriesContainerVersionsApi.md +1 -1
  46. data/docs/RepositoryVersionResponse.md +2 -0
  47. data/docs/TokenApi.md +1 -1
  48. data/lib/pulp_container_client/configuration.rb +2 -2
  49. data/lib/pulp_container_client/models/container_blob_response.rb +11 -1
  50. data/lib/pulp_container_client/models/container_container_distribution.rb +63 -63
  51. data/lib/pulp_container_client/models/container_container_distribution_response.rb +62 -52
  52. data/lib/pulp_container_client/models/container_container_namespace_response.rb +11 -1
  53. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +63 -63
  54. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +62 -52
  55. data/lib/pulp_container_client/models/container_container_pull_through_remote.rb +20 -20
  56. data/lib/pulp_container_client/models/container_container_pull_through_remote_response.rb +31 -31
  57. data/lib/pulp_container_client/models/container_container_pull_through_remote_response_hidden_fields.rb +10 -0
  58. data/lib/pulp_container_client/models/container_container_push_repository.rb +40 -40
  59. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +60 -50
  60. data/lib/pulp_container_client/models/container_container_remote.rb +20 -20
  61. data/lib/pulp_container_client/models/container_container_remote_response.rb +31 -31
  62. data/lib/pulp_container_client/models/container_container_repository_response.rb +11 -1
  63. data/lib/pulp_container_client/models/container_manifest_response.rb +11 -1
  64. data/lib/pulp_container_client/models/container_manifest_signature_response.rb +11 -1
  65. data/lib/pulp_container_client/models/container_tag_response.rb +11 -1
  66. data/lib/pulp_container_client/models/paginated_repository_version_response_list.rb +10 -0
  67. data/lib/pulp_container_client/models/paginatedcontainer_blob_response_list.rb +10 -0
  68. data/lib/pulp_container_client/models/paginatedcontainer_container_distribution_response_list.rb +10 -0
  69. data/lib/pulp_container_client/models/paginatedcontainer_container_namespace_response_list.rb +10 -0
  70. data/lib/pulp_container_client/models/paginatedcontainer_container_pull_through_distribution_response_list.rb +10 -0
  71. data/lib/pulp_container_client/models/paginatedcontainer_container_pull_through_remote_response_list.rb +10 -0
  72. data/lib/pulp_container_client/models/paginatedcontainer_container_push_repository_response_list.rb +10 -0
  73. data/lib/pulp_container_client/models/paginatedcontainer_container_remote_response_list.rb +10 -0
  74. data/lib/pulp_container_client/models/paginatedcontainer_container_repository_response_list.rb +10 -0
  75. data/lib/pulp_container_client/models/paginatedcontainer_manifest_response_list.rb +10 -0
  76. data/lib/pulp_container_client/models/paginatedcontainer_manifest_signature_response_list.rb +10 -0
  77. data/lib/pulp_container_client/models/paginatedcontainer_tag_response_list.rb +10 -0
  78. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +54 -54
  79. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +54 -54
  80. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_remote.rb +20 -20
  81. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +40 -40
  82. data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +20 -20
  83. data/lib/pulp_container_client/models/repository_version_response.rb +11 -1
  84. data/lib/pulp_container_client/version.rb +1 -1
  85. data/lib/pulp_container_client.rb +0 -2
  86. data/spec/configuration_spec.rb +3 -3
  87. data/spec/models/container_blob_response_spec.rb +6 -0
  88. data/spec/models/container_container_distribution_response_spec.rb +14 -8
  89. data/spec/models/container_container_distribution_spec.rb +6 -6
  90. data/spec/models/container_container_namespace_response_spec.rb +6 -0
  91. data/spec/models/container_container_pull_through_distribution_response_spec.rb +14 -8
  92. data/spec/models/container_container_pull_through_distribution_spec.rb +6 -6
  93. data/spec/models/container_container_pull_through_remote_response_spec.rb +6 -6
  94. data/spec/models/container_container_push_repository_response_spec.rb +14 -8
  95. data/spec/models/container_container_push_repository_spec.rb +5 -5
  96. data/spec/models/container_container_remote_response_spec.rb +6 -6
  97. data/spec/models/container_container_repository_response_spec.rb +6 -0
  98. data/spec/models/container_manifest_response_spec.rb +6 -0
  99. data/spec/models/container_manifest_signature_response_spec.rb +6 -0
  100. data/spec/models/container_tag_response_spec.rb +6 -0
  101. data/spec/models/patchedcontainer_container_distribution_spec.rb +6 -6
  102. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +6 -6
  103. data/spec/models/patchedcontainer_container_push_repository_spec.rb +5 -5
  104. data/spec/models/repository_version_response_spec.rb +6 -0
  105. metadata +70 -78
  106. data/docs/IndexDynamicApi.md +0 -50
  107. data/docs/IndexStaticApi.md +0 -50
  108. data/lib/pulp_container_client/api/index_dynamic_api.rb +0 -74
  109. data/lib/pulp_container_client/api/index_static_api.rb +0 -74
  110. data/spec/api/index_dynamic_api_spec.rb +0 -45
  111. data/spec/api/index_static_api_spec.rb +0 -45
@@ -88,12 +88,22 @@ module PulpContainerClient
88
88
  # @return Array for valid properties with the reasons
89
89
  def list_invalid_properties
90
90
  invalid_properties = Array.new
91
+ if @count.nil?
92
+ invalid_properties.push('invalid value for "count", count cannot be nil.')
93
+ end
94
+
95
+ if @results.nil?
96
+ invalid_properties.push('invalid value for "results", results cannot be nil.')
97
+ end
98
+
91
99
  invalid_properties
92
100
  end
93
101
 
94
102
  # Check to see if the all the properties in the model are valid
95
103
  # @return true if the model is valid
96
104
  def valid?
105
+ return false if @count.nil?
106
+ return false if @results.nil?
97
107
  true
98
108
  end
99
109
 
@@ -88,12 +88,22 @@ module PulpContainerClient
88
88
  # @return Array for valid properties with the reasons
89
89
  def list_invalid_properties
90
90
  invalid_properties = Array.new
91
+ if @count.nil?
92
+ invalid_properties.push('invalid value for "count", count cannot be nil.')
93
+ end
94
+
95
+ if @results.nil?
96
+ invalid_properties.push('invalid value for "results", results cannot be nil.')
97
+ end
98
+
91
99
  invalid_properties
92
100
  end
93
101
 
94
102
  # Check to see if the all the properties in the model are valid
95
103
  # @return true if the model is valid
96
104
  def valid?
105
+ return false if @count.nil?
106
+ return false if @results.nil?
97
107
  true
98
108
  end
99
109
 
@@ -88,12 +88,22 @@ module PulpContainerClient
88
88
  # @return Array for valid properties with the reasons
89
89
  def list_invalid_properties
90
90
  invalid_properties = Array.new
91
+ if @count.nil?
92
+ invalid_properties.push('invalid value for "count", count cannot be nil.')
93
+ end
94
+
95
+ if @results.nil?
96
+ invalid_properties.push('invalid value for "results", results cannot be nil.')
97
+ end
98
+
91
99
  invalid_properties
92
100
  end
93
101
 
94
102
  # Check to see if the all the properties in the model are valid
95
103
  # @return true if the model is valid
96
104
  def valid?
105
+ return false if @count.nil?
106
+ return false if @results.nil?
97
107
  true
98
108
  end
99
109
 
@@ -88,12 +88,22 @@ module PulpContainerClient
88
88
  # @return Array for valid properties with the reasons
89
89
  def list_invalid_properties
90
90
  invalid_properties = Array.new
91
+ if @count.nil?
92
+ invalid_properties.push('invalid value for "count", count cannot be nil.')
93
+ end
94
+
95
+ if @results.nil?
96
+ invalid_properties.push('invalid value for "results", results cannot be nil.')
97
+ end
98
+
91
99
  invalid_properties
92
100
  end
93
101
 
94
102
  # Check to see if the all the properties in the model are valid
95
103
  # @return true if the model is valid
96
104
  def valid?
105
+ return false if @count.nil?
106
+ return false if @results.nil?
97
107
  true
98
108
  end
99
109
 
@@ -88,12 +88,22 @@ module PulpContainerClient
88
88
  # @return Array for valid properties with the reasons
89
89
  def list_invalid_properties
90
90
  invalid_properties = Array.new
91
+ if @count.nil?
92
+ invalid_properties.push('invalid value for "count", count cannot be nil.')
93
+ end
94
+
95
+ if @results.nil?
96
+ invalid_properties.push('invalid value for "results", results cannot be nil.')
97
+ end
98
+
91
99
  invalid_properties
92
100
  end
93
101
 
94
102
  # Check to see if the all the properties in the model are valid
95
103
  # @return true if the model is valid
96
104
  def valid?
105
+ return false if @count.nil?
106
+ return false if @results.nil?
97
107
  true
98
108
  end
99
109
 
@@ -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
- # Whether this distribution should be shown in the content app.
22
- attr_accessor :hidden
23
-
24
- attr_accessor :pulp_labels
25
-
26
18
  # The latest RepositoryVersion for this Repository will be served.
27
19
  attr_accessor :repository
28
20
 
21
+ # A unique name. Ex, `rawhide` and `stable`.
22
+ attr_accessor :name
23
+
29
24
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
30
25
  attr_accessor :base_path
31
26
 
32
- # A unique name. Ex, `rawhide` and `stable`.
33
- attr_accessor :name
27
+ # An optional content-guard. If none is specified, a default one will be used.
28
+ attr_accessor :content_guard
29
+
30
+ attr_accessor :pulp_labels
31
+
32
+ # Whether this distribution should be shown in the content app.
33
+ attr_accessor :hidden
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
- :'content_guard' => :'content_guard',
48
- :'hidden' => :'hidden',
49
- :'pulp_labels' => :'pulp_labels',
50
47
  :'repository' => :'repository',
51
- :'base_path' => :'base_path',
52
48
  :'name' => :'name',
49
+ :'base_path' => :'base_path',
50
+ :'content_guard' => :'content_guard',
51
+ :'pulp_labels' => :'pulp_labels',
52
+ :'hidden' => :'hidden',
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
- :'content_guard' => :'String',
63
- :'hidden' => :'Boolean',
64
- :'pulp_labels' => :'Hash<String, String>',
65
62
  :'repository' => :'String',
66
- :'base_path' => :'String',
67
63
  :'name' => :'String',
64
+ :'base_path' => :'String',
65
+ :'content_guard' => :'String',
66
+ :'pulp_labels' => :'Hash<String, String>',
67
+ :'hidden' => :'Boolean',
68
68
  :'repository_version' => :'String',
69
69
  :'private' => :'Boolean',
70
70
  :'description' => :'String'
@@ -95,32 +95,32 @@ 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?(:'hidden')
103
- self.hidden = attributes[:'hidden']
104
- else
105
- self.hidden = false
102
+ if attributes.key?(:'name')
103
+ self.name = attributes[:'name']
106
104
  end
107
105
 
108
- if attributes.key?(:'pulp_labels')
109
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
110
- self.pulp_labels = value
111
- end
106
+ if attributes.key?(:'base_path')
107
+ self.base_path = attributes[:'base_path']
112
108
  end
113
109
 
114
- if attributes.key?(:'repository')
115
- self.repository = attributes[:'repository']
110
+ if attributes.key?(:'content_guard')
111
+ self.content_guard = attributes[:'content_guard']
116
112
  end
117
113
 
118
- if attributes.key?(:'base_path')
119
- self.base_path = attributes[:'base_path']
114
+ if attributes.key?(:'pulp_labels')
115
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
116
+ self.pulp_labels = value
117
+ end
120
118
  end
121
119
 
122
- if attributes.key?(:'name')
123
- self.name = attributes[:'name']
120
+ if attributes.key?(:'hidden')
121
+ self.hidden = attributes[:'hidden']
122
+ else
123
+ self.hidden = false
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 !@base_path.nil? && @base_path.to_s.length < 1
144
- invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
145
- end
146
-
147
143
  if !@name.nil? && @name.to_s.length < 1
148
144
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
149
145
  end
150
146
 
147
+ if !@base_path.nil? && @base_path.to_s.length < 1
148
+ invalid_properties.push('invalid value for "base_path", 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 !@base_path.nil? && @base_path.to_s.length < 1
162
161
  return false if !@name.nil? && @name.to_s.length < 1
162
+ return false if !@base_path.nil? && @base_path.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] base_path Value to be assigned
169
- def base_path=(base_path)
170
- if !base_path.nil? && 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
167
  # Custom attribute writer method with validation
178
168
  # @param [Object] name Value to be assigned
179
169
  def name=(name)
@@ -184,6 +174,16 @@ module PulpContainerClient
184
174
  @name = name
185
175
  end
186
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? && base_path.to_s.length < 1
181
+ fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
182
+ end
183
+
184
+ @base_path = base_path
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
- content_guard == o.content_guard &&
203
- hidden == o.hidden &&
204
- pulp_labels == o.pulp_labels &&
205
202
  repository == o.repository &&
206
- base_path == o.base_path &&
207
203
  name == o.name &&
204
+ base_path == o.base_path &&
205
+ content_guard == o.content_guard &&
206
+ pulp_labels == o.pulp_labels &&
207
+ hidden == o.hidden &&
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, hidden, pulp_labels, repository, base_path, name, repository_version, private, description].hash
222
+ [repository, name, base_path, content_guard, pulp_labels, hidden, repository_version, private, description].hash
223
223
  end
224
224
 
225
225
  # Builds the object from hash
@@ -15,22 +15,22 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for a specialized pull-through distribution referencing sub-distributions.
17
17
  class PatchedcontainerContainerPullThroughDistribution
18
- # An optional content-guard. If none is specified, a default one will be used.
19
- attr_accessor :content_guard
20
-
21
- # Whether this distribution should be shown in the content app.
22
- attr_accessor :hidden
23
-
24
- attr_accessor :pulp_labels
25
-
26
18
  # The latest RepositoryVersion for this Repository will be served.
27
19
  attr_accessor :repository
28
20
 
21
+ # A unique name. Ex, `rawhide` and `stable`.
22
+ attr_accessor :name
23
+
29
24
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
30
25
  attr_accessor :base_path
31
26
 
32
- # A unique name. Ex, `rawhide` and `stable`.
33
- attr_accessor :name
27
+ # An optional content-guard. If none is specified, a default one will be used.
28
+ attr_accessor :content_guard
29
+
30
+ attr_accessor :pulp_labels
31
+
32
+ # Whether this distribution should be shown in the content app.
33
+ attr_accessor :hidden
34
34
 
35
35
  # Remote that can be used to fetch content when using pull-through caching.
36
36
  attr_accessor :remote
@@ -47,12 +47,12 @@ module PulpContainerClient
47
47
  # Attribute mapping from ruby-style variable name to JSON key.
48
48
  def self.attribute_map
49
49
  {
50
- :'content_guard' => :'content_guard',
51
- :'hidden' => :'hidden',
52
- :'pulp_labels' => :'pulp_labels',
53
50
  :'repository' => :'repository',
54
- :'base_path' => :'base_path',
55
51
  :'name' => :'name',
52
+ :'base_path' => :'base_path',
53
+ :'content_guard' => :'content_guard',
54
+ :'pulp_labels' => :'pulp_labels',
55
+ :'hidden' => :'hidden',
56
56
  :'remote' => :'remote',
57
57
  :'distributions' => :'distributions',
58
58
  :'private' => :'private',
@@ -63,12 +63,12 @@ module PulpContainerClient
63
63
  # Attribute type mapping.
64
64
  def self.openapi_types
65
65
  {
66
- :'content_guard' => :'String',
67
- :'hidden' => :'Boolean',
68
- :'pulp_labels' => :'Hash<String, String>',
69
66
  :'repository' => :'String',
70
- :'base_path' => :'String',
71
67
  :'name' => :'String',
68
+ :'base_path' => :'String',
69
+ :'content_guard' => :'String',
70
+ :'pulp_labels' => :'Hash<String, String>',
71
+ :'hidden' => :'Boolean',
72
72
  :'remote' => :'String',
73
73
  :'distributions' => :'Array<String>',
74
74
  :'private' => :'Boolean',
@@ -99,32 +99,32 @@ module PulpContainerClient
99
99
  h[k.to_sym] = v
100
100
  }
101
101
 
102
- if attributes.key?(:'content_guard')
103
- self.content_guard = attributes[:'content_guard']
102
+ if attributes.key?(:'repository')
103
+ self.repository = attributes[:'repository']
104
104
  end
105
105
 
106
- if attributes.key?(:'hidden')
107
- self.hidden = attributes[:'hidden']
108
- else
109
- self.hidden = false
106
+ if attributes.key?(:'name')
107
+ self.name = attributes[:'name']
110
108
  end
111
109
 
112
- if attributes.key?(:'pulp_labels')
113
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
114
- self.pulp_labels = value
115
- end
110
+ if attributes.key?(:'base_path')
111
+ self.base_path = attributes[:'base_path']
116
112
  end
117
113
 
118
- if attributes.key?(:'repository')
119
- self.repository = attributes[:'repository']
114
+ if attributes.key?(:'content_guard')
115
+ self.content_guard = attributes[:'content_guard']
120
116
  end
121
117
 
122
- if attributes.key?(:'base_path')
123
- self.base_path = attributes[:'base_path']
118
+ if attributes.key?(:'pulp_labels')
119
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
120
+ self.pulp_labels = value
121
+ end
124
122
  end
125
123
 
126
- if attributes.key?(:'name')
127
- self.name = attributes[:'name']
124
+ if attributes.key?(:'hidden')
125
+ self.hidden = attributes[:'hidden']
126
+ else
127
+ self.hidden = false
128
128
  end
129
129
 
130
130
  if attributes.key?(:'remote')
@@ -150,14 +150,14 @@ module PulpContainerClient
150
150
  # @return Array for valid properties with the reasons
151
151
  def list_invalid_properties
152
152
  invalid_properties = Array.new
153
- if !@base_path.nil? && @base_path.to_s.length < 1
154
- invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
155
- end
156
-
157
153
  if !@name.nil? && @name.to_s.length < 1
158
154
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
159
155
  end
160
156
 
157
+ if !@base_path.nil? && @base_path.to_s.length < 1
158
+ invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
159
+ end
160
+
161
161
  if !@description.nil? && @description.to_s.length < 1
162
162
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
163
163
  end
@@ -168,22 +168,12 @@ module PulpContainerClient
168
168
  # Check to see if the all the properties in the model are valid
169
169
  # @return true if the model is valid
170
170
  def valid?
171
- return false if !@base_path.nil? && @base_path.to_s.length < 1
172
171
  return false if !@name.nil? && @name.to_s.length < 1
172
+ return false if !@base_path.nil? && @base_path.to_s.length < 1
173
173
  return false if !@description.nil? && @description.to_s.length < 1
174
174
  true
175
175
  end
176
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? && base_path.to_s.length < 1
181
- fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
182
- end
183
-
184
- @base_path = base_path
185
- end
186
-
187
177
  # Custom attribute writer method with validation
188
178
  # @param [Object] name Value to be assigned
189
179
  def name=(name)
@@ -194,6 +184,16 @@ module PulpContainerClient
194
184
  @name = name
195
185
  end
196
186
 
187
+ # Custom attribute writer method with validation
188
+ # @param [Object] base_path Value to be assigned
189
+ def base_path=(base_path)
190
+ if !base_path.nil? && base_path.to_s.length < 1
191
+ fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
192
+ end
193
+
194
+ @base_path = base_path
195
+ end
196
+
197
197
  # Custom attribute writer method with validation
198
198
  # @param [Object] description Value to be assigned
199
199
  def description=(description)
@@ -209,12 +209,12 @@ module PulpContainerClient
209
209
  def ==(o)
210
210
  return true if self.equal?(o)
211
211
  self.class == o.class &&
212
- content_guard == o.content_guard &&
213
- hidden == o.hidden &&
214
- pulp_labels == o.pulp_labels &&
215
212
  repository == o.repository &&
216
- base_path == o.base_path &&
217
213
  name == o.name &&
214
+ base_path == o.base_path &&
215
+ content_guard == o.content_guard &&
216
+ pulp_labels == o.pulp_labels &&
217
+ hidden == o.hidden &&
218
218
  remote == o.remote &&
219
219
  distributions == o.distributions &&
220
220
  private == o.private &&
@@ -230,7 +230,7 @@ module PulpContainerClient
230
230
  # Calculates hash code according to all attributes.
231
231
  # @return [Integer] Hash code
232
232
  def hash
233
- [content_guard, hidden, pulp_labels, repository, base_path, name, remote, distributions, private, description].hash
233
+ [repository, name, base_path, content_guard, pulp_labels, hidden, remote, distributions, private, description].hash
234
234
  end
235
235
 
236
236
  # Builds the object from hash
@@ -303,20 +303,20 @@ module PulpContainerClient
303
303
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
304
304
  end
305
305
 
306
- if !@total_timeout.nil? && @total_timeout < 0.0
307
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
306
+ if !@total_timeout.nil? && @total_timeout < 0
307
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
308
308
  end
309
309
 
310
- if !@connect_timeout.nil? && @connect_timeout < 0.0
311
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
310
+ if !@connect_timeout.nil? && @connect_timeout < 0
311
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
312
312
  end
313
313
 
314
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
315
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
314
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
315
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
316
316
  end
317
317
 
318
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
319
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
318
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0
319
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
320
320
  end
321
321
 
322
322
  invalid_properties
@@ -336,10 +336,10 @@ module PulpContainerClient
336
336
  return false if !@username.nil? && @username.to_s.length < 1
337
337
  return false if !@password.nil? && @password.to_s.length < 1
338
338
  return false if !@download_concurrency.nil? && @download_concurrency < 1
339
- return false if !@total_timeout.nil? && @total_timeout < 0.0
340
- return false if !@connect_timeout.nil? && @connect_timeout < 0.0
341
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
342
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
339
+ return false if !@total_timeout.nil? && @total_timeout < 0
340
+ return false if !@connect_timeout.nil? && @connect_timeout < 0
341
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
342
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
343
343
  true
344
344
  end
345
345
 
@@ -456,8 +456,8 @@ module PulpContainerClient
456
456
  # Custom attribute writer method with validation
457
457
  # @param [Object] total_timeout Value to be assigned
458
458
  def total_timeout=(total_timeout)
459
- if !total_timeout.nil? && total_timeout < 0.0
460
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
459
+ if !total_timeout.nil? && total_timeout < 0
460
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
461
461
  end
462
462
 
463
463
  @total_timeout = total_timeout
@@ -466,8 +466,8 @@ module PulpContainerClient
466
466
  # Custom attribute writer method with validation
467
467
  # @param [Object] connect_timeout Value to be assigned
468
468
  def connect_timeout=(connect_timeout)
469
- if !connect_timeout.nil? && connect_timeout < 0.0
470
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
469
+ if !connect_timeout.nil? && connect_timeout < 0
470
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
471
471
  end
472
472
 
473
473
  @connect_timeout = connect_timeout
@@ -476,8 +476,8 @@ module PulpContainerClient
476
476
  # Custom attribute writer method with validation
477
477
  # @param [Object] sock_connect_timeout Value to be assigned
478
478
  def sock_connect_timeout=(sock_connect_timeout)
479
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
480
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
479
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0
480
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
481
481
  end
482
482
 
483
483
  @sock_connect_timeout = sock_connect_timeout
@@ -486,8 +486,8 @@ module PulpContainerClient
486
486
  # Custom attribute writer method with validation
487
487
  # @param [Object] sock_read_timeout Value to be assigned
488
488
  def sock_read_timeout=(sock_read_timeout)
489
- if !sock_read_timeout.nil? && sock_read_timeout < 0.0
490
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
489
+ if !sock_read_timeout.nil? && sock_read_timeout < 0
490
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
491
491
  end
492
492
 
493
493
  @sock_read_timeout = sock_read_timeout