pulp_container_client 2.16.0 → 2.16.2

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 (73) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +36 -25
  3. data/docs/ContainerContainerDistribution.md +4 -4
  4. data/docs/ContainerContainerDistributionResponse.md +9 -9
  5. data/docs/ContainerContainerPushRepository.md +6 -6
  6. data/docs/ContainerContainerPushRepositoryResponse.md +10 -10
  7. data/docs/ContentBlobsApi.md +3 -1
  8. data/docs/ContentManifestsApi.md +3 -1
  9. data/docs/ContentSignaturesApi.md +7 -1
  10. data/docs/ContentTagsApi.md +3 -1
  11. data/docs/DistributionsContainerApi.md +132 -10
  12. data/docs/IndexDynamicApi.md +1 -1
  13. data/docs/IndexStaticApi.md +1 -1
  14. data/docs/PatchedcontainerContainerDistribution.md +4 -4
  15. data/docs/PatchedcontainerContainerPushRepository.md +6 -6
  16. data/docs/PulpContainerNamespacesApi.md +19 -9
  17. data/docs/RemotesContainerApi.md +131 -9
  18. data/docs/RepositoriesContainerApi.md +132 -10
  19. data/docs/RepositoriesContainerPushApi.md +20 -10
  20. data/docs/RepositoriesContainerPushVersionsApi.md +3 -1
  21. data/docs/RepositoriesContainerVersionsApi.md +3 -1
  22. data/docs/SetLabel.md +19 -0
  23. data/docs/SetLabelResponse.md +19 -0
  24. data/docs/TokenApi.md +1 -1
  25. data/docs/UnsetLabel.md +17 -0
  26. data/docs/UnsetLabelResponse.md +19 -0
  27. data/lib/pulp_container_client/api/content_blobs_api.rb +3 -0
  28. data/lib/pulp_container_client/api/content_manifests_api.rb +3 -0
  29. data/lib/pulp_container_client/api/content_signatures_api.rb +9 -0
  30. data/lib/pulp_container_client/api/content_tags_api.rb +3 -0
  31. data/lib/pulp_container_client/api/distributions_container_api.rb +157 -0
  32. data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +17 -0
  33. data/lib/pulp_container_client/api/remotes_container_api.rb +157 -0
  34. data/lib/pulp_container_client/api/repositories_container_api.rb +157 -0
  35. data/lib/pulp_container_client/api/repositories_container_push_api.rb +17 -0
  36. data/lib/pulp_container_client/api/repositories_container_push_versions_api.rb +3 -0
  37. data/lib/pulp_container_client/api/repositories_container_versions_api.rb +3 -0
  38. data/lib/pulp_container_client/configuration.rb +2 -2
  39. data/lib/pulp_container_client/models/container_container_distribution.rb +42 -42
  40. data/lib/pulp_container_client/models/container_container_distribution_response.rb +40 -40
  41. data/lib/pulp_container_client/models/container_container_push_repository.rb +38 -38
  42. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +42 -42
  43. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +33 -33
  44. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +38 -38
  45. data/lib/pulp_container_client/models/set_label.rb +252 -0
  46. data/lib/pulp_container_client/models/set_label_response.rb +243 -0
  47. data/lib/pulp_container_client/models/unset_label.rb +242 -0
  48. data/lib/pulp_container_client/models/unset_label_response.rb +242 -0
  49. data/lib/pulp_container_client/version.rb +1 -1
  50. data/lib/pulp_container_client.rb +4 -0
  51. data/spec/api/content_blobs_api_spec.rb +1 -0
  52. data/spec/api/content_manifests_api_spec.rb +1 -0
  53. data/spec/api/content_signatures_api_spec.rb +3 -0
  54. data/spec/api/content_tags_api_spec.rb +1 -0
  55. data/spec/api/distributions_container_api_spec.rb +33 -0
  56. data/spec/api/pulp_container_namespaces_api_spec.rb +7 -0
  57. data/spec/api/remotes_container_api_spec.rb +33 -0
  58. data/spec/api/repositories_container_api_spec.rb +33 -0
  59. data/spec/api/repositories_container_push_api_spec.rb +7 -0
  60. data/spec/api/repositories_container_push_versions_api_spec.rb +1 -0
  61. data/spec/api/repositories_container_versions_api_spec.rb +1 -0
  62. data/spec/configuration_spec.rb +3 -3
  63. data/spec/models/container_container_distribution_response_spec.rb +7 -7
  64. data/spec/models/container_container_distribution_spec.rb +3 -3
  65. data/spec/models/container_container_push_repository_response_spec.rb +7 -7
  66. data/spec/models/container_container_push_repository_spec.rb +5 -5
  67. data/spec/models/patchedcontainer_container_distribution_spec.rb +3 -3
  68. data/spec/models/patchedcontainer_container_push_repository_spec.rb +5 -5
  69. data/spec/models/set_label_response_spec.rb +47 -0
  70. data/spec/models/set_label_spec.rb +47 -0
  71. data/spec/models/unset_label_response_spec.rb +47 -0
  72. data/spec/models/unset_label_spec.rb +41 -0
  73. metadata +60 -44
@@ -103,6 +103,7 @@ module PulpContainerClient
103
103
  # @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
104
104
  # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
105
105
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
106
+ # @option opts [String] :q
106
107
  # @option opts [Array<String>] :fields A list of fields to include in the response.
107
108
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
108
109
  # @return [PaginatedRepositoryVersionResponseList]
@@ -133,6 +134,7 @@ module PulpContainerClient
133
134
  # @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
134
135
  # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
135
136
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
137
+ # @option opts [String] :q
136
138
  # @option opts [Array<String>] :fields A list of fields to include in the response.
137
139
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
138
140
  # @return [Array<(PaginatedRepositoryVersionResponseList, Integer, Hash)>] PaginatedRepositoryVersionResponseList data, response status code and response headers
@@ -171,6 +173,7 @@ module PulpContainerClient
171
173
  query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
172
174
  query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
173
175
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
176
+ query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
174
177
  query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
175
178
  query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
176
179
 
@@ -103,6 +103,7 @@ module PulpContainerClient
103
103
  # @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
104
104
  # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
105
105
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
106
+ # @option opts [String] :q
106
107
  # @option opts [Array<String>] :fields A list of fields to include in the response.
107
108
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
108
109
  # @return [PaginatedRepositoryVersionResponseList]
@@ -133,6 +134,7 @@ module PulpContainerClient
133
134
  # @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
134
135
  # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
135
136
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
137
+ # @option opts [String] :q
136
138
  # @option opts [Array<String>] :fields A list of fields to include in the response.
137
139
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
138
140
  # @return [Array<(PaginatedRepositoryVersionResponseList, Integer, Hash)>] PaginatedRepositoryVersionResponseList data, response status code and response headers
@@ -171,6 +173,7 @@ module PulpContainerClient
171
173
  query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
172
174
  query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
173
175
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
176
+ query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
174
177
  query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
175
178
  query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
176
179
 
@@ -127,7 +127,7 @@ module PulpContainerClient
127
127
  attr_accessor :force_ending_format
128
128
 
129
129
  def initialize
130
- @scheme = 'https'
130
+ @scheme = 'http'
131
131
  @host = 'pulp'
132
132
  @base_path = ''
133
133
  @api_key = {}
@@ -210,7 +210,7 @@ module PulpContainerClient
210
210
  def server_settings
211
211
  [
212
212
  {
213
- url: "https://pulp/",
213
+ url: "http://pulp/",
214
214
  description: "No description provided",
215
215
  }
216
216
  ]
@@ -20,17 +20,17 @@ module PulpContainerClient
20
20
 
21
21
  attr_accessor :pulp_labels
22
22
 
23
- # The latest RepositoryVersion for this Repository will be served.
24
- attr_accessor :repository
25
-
26
23
  # An optional content-guard. If none is specified, a default one will be used.
27
24
  attr_accessor :content_guard
28
25
 
26
+ # A unique name. Ex, `rawhide` and `stable`.
27
+ attr_accessor :name
28
+
29
29
  # 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
30
  attr_accessor :base_path
31
31
 
32
- # A unique name. Ex, `rawhide` and `stable`.
33
- attr_accessor :name
32
+ # The latest RepositoryVersion for this Repository will be served.
33
+ attr_accessor :repository
34
34
 
35
35
  # RepositoryVersion to be served
36
36
  attr_accessor :repository_version
@@ -46,10 +46,10 @@ module PulpContainerClient
46
46
  {
47
47
  :'hidden' => :'hidden',
48
48
  :'pulp_labels' => :'pulp_labels',
49
- :'repository' => :'repository',
50
49
  :'content_guard' => :'content_guard',
51
- :'base_path' => :'base_path',
52
50
  :'name' => :'name',
51
+ :'base_path' => :'base_path',
52
+ :'repository' => :'repository',
53
53
  :'repository_version' => :'repository_version',
54
54
  :'private' => :'private',
55
55
  :'description' => :'description'
@@ -61,10 +61,10 @@ module PulpContainerClient
61
61
  {
62
62
  :'hidden' => :'Boolean',
63
63
  :'pulp_labels' => :'Hash<String, String>',
64
- :'repository' => :'String',
65
64
  :'content_guard' => :'String',
66
- :'base_path' => :'String',
67
65
  :'name' => :'String',
66
+ :'base_path' => :'String',
67
+ :'repository' => :'String',
68
68
  :'repository_version' => :'String',
69
69
  :'private' => :'Boolean',
70
70
  :'description' => :'String'
@@ -107,20 +107,20 @@ module PulpContainerClient
107
107
  end
108
108
  end
109
109
 
110
- if attributes.key?(:'repository')
111
- self.repository = attributes[:'repository']
112
- end
113
-
114
110
  if attributes.key?(:'content_guard')
115
111
  self.content_guard = attributes[:'content_guard']
116
112
  end
117
113
 
114
+ if attributes.key?(:'name')
115
+ self.name = attributes[:'name']
116
+ end
117
+
118
118
  if attributes.key?(:'base_path')
119
119
  self.base_path = attributes[:'base_path']
120
120
  end
121
121
 
122
- if attributes.key?(:'name')
123
- self.name = attributes[:'name']
122
+ if attributes.key?(:'repository')
123
+ self.repository = attributes[:'repository']
124
124
  end
125
125
 
126
126
  if attributes.key?(:'repository_version')
@@ -140,14 +140,6 @@ 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?
144
- invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
145
- end
146
-
147
- if @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
143
  if @name.nil?
152
144
  invalid_properties.push('invalid value for "name", name cannot be nil.')
153
145
  end
@@ -156,6 +148,14 @@ module PulpContainerClient
156
148
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
157
149
  end
158
150
 
151
+ if @base_path.nil?
152
+ invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
153
+ end
154
+
155
+ if @base_path.to_s.length < 1
156
+ invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
157
+ end
158
+
159
159
  if !@description.nil? && @description.to_s.length < 1
160
160
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
161
161
  end
@@ -166,28 +166,14 @@ module PulpContainerClient
166
166
  # Check to see if the all the properties in the model are valid
167
167
  # @return true if the model is valid
168
168
  def valid?
169
- return false if @base_path.nil?
170
- return false if @base_path.to_s.length < 1
171
169
  return false if @name.nil?
172
170
  return false if @name.to_s.length < 1
171
+ return false if @base_path.nil?
172
+ return false if @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?
181
- fail ArgumentError, 'base_path cannot be nil'
182
- end
183
-
184
- if base_path.to_s.length < 1
185
- fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
186
- end
187
-
188
- @base_path = base_path
189
- end
190
-
191
177
  # Custom attribute writer method with validation
192
178
  # @param [Object] name Value to be assigned
193
179
  def name=(name)
@@ -202,6 +188,20 @@ module PulpContainerClient
202
188
  @name = name
203
189
  end
204
190
 
191
+ # Custom attribute writer method with validation
192
+ # @param [Object] base_path Value to be assigned
193
+ def base_path=(base_path)
194
+ if base_path.nil?
195
+ fail ArgumentError, 'base_path cannot be nil'
196
+ end
197
+
198
+ if base_path.to_s.length < 1
199
+ fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
200
+ end
201
+
202
+ @base_path = base_path
203
+ end
204
+
205
205
  # Custom attribute writer method with validation
206
206
  # @param [Object] description Value to be assigned
207
207
  def description=(description)
@@ -219,10 +219,10 @@ module PulpContainerClient
219
219
  self.class == o.class &&
220
220
  hidden == o.hidden &&
221
221
  pulp_labels == o.pulp_labels &&
222
- repository == o.repository &&
223
222
  content_guard == o.content_guard &&
224
- base_path == o.base_path &&
225
223
  name == o.name &&
224
+ base_path == o.base_path &&
225
+ repository == o.repository &&
226
226
  repository_version == o.repository_version &&
227
227
  private == o.private &&
228
228
  description == o.description
@@ -237,7 +237,7 @@ module PulpContainerClient
237
237
  # Calculates hash code according to all attributes.
238
238
  # @return [Integer] Hash code
239
239
  def hash
240
- [hidden, pulp_labels, repository, content_guard, base_path, name, repository_version, private, description].hash
240
+ [hidden, pulp_labels, content_guard, name, base_path, repository, repository_version, private, description].hash
241
241
  end
242
242
 
243
243
  # Builds the object from hash
@@ -15,28 +15,28 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class ContainerContainerDistributionResponse
18
- # Timestamp of creation.
19
- attr_accessor :pulp_created
20
-
21
18
  # Whether this distribution should be shown in the content app.
22
19
  attr_accessor :hidden
23
20
 
24
21
  attr_accessor :pulp_labels
25
22
 
26
- # The latest RepositoryVersion for this Repository will be served.
27
- attr_accessor :repository
28
-
29
- attr_accessor :pulp_href
30
-
31
23
  # An optional content-guard. If none is specified, a default one will be used.
32
24
  attr_accessor :content_guard
33
25
 
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
26
+ # Timestamp of creation.
27
+ attr_accessor :pulp_created
36
28
 
37
29
  # A unique name. Ex, `rawhide` and `stable`.
38
30
  attr_accessor :name
39
31
 
32
+ attr_accessor :pulp_href
33
+
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
36
+
37
+ # The latest RepositoryVersion for this Repository will be served.
38
+ attr_accessor :repository
39
+
40
40
  # RepositoryVersion to be served
41
41
  attr_accessor :repository_version
42
42
 
@@ -55,14 +55,14 @@ module PulpContainerClient
55
55
  # Attribute mapping from ruby-style variable name to JSON key.
56
56
  def self.attribute_map
57
57
  {
58
- :'pulp_created' => :'pulp_created',
59
58
  :'hidden' => :'hidden',
60
59
  :'pulp_labels' => :'pulp_labels',
61
- :'repository' => :'repository',
62
- :'pulp_href' => :'pulp_href',
63
60
  :'content_guard' => :'content_guard',
64
- :'base_path' => :'base_path',
61
+ :'pulp_created' => :'pulp_created',
65
62
  :'name' => :'name',
63
+ :'pulp_href' => :'pulp_href',
64
+ :'base_path' => :'base_path',
65
+ :'repository' => :'repository',
66
66
  :'repository_version' => :'repository_version',
67
67
  :'registry_path' => :'registry_path',
68
68
  :'namespace' => :'namespace',
@@ -74,14 +74,14 @@ module PulpContainerClient
74
74
  # Attribute type mapping.
75
75
  def self.openapi_types
76
76
  {
77
- :'pulp_created' => :'DateTime',
78
77
  :'hidden' => :'Boolean',
79
78
  :'pulp_labels' => :'Hash<String, String>',
80
- :'repository' => :'String',
81
- :'pulp_href' => :'String',
82
79
  :'content_guard' => :'String',
83
- :'base_path' => :'String',
80
+ :'pulp_created' => :'DateTime',
84
81
  :'name' => :'String',
82
+ :'pulp_href' => :'String',
83
+ :'base_path' => :'String',
84
+ :'repository' => :'String',
85
85
  :'repository_version' => :'String',
86
86
  :'registry_path' => :'String',
87
87
  :'namespace' => :'String',
@@ -114,10 +114,6 @@ module PulpContainerClient
114
114
  h[k.to_sym] = v
115
115
  }
116
116
 
117
- if attributes.key?(:'pulp_created')
118
- self.pulp_created = attributes[:'pulp_created']
119
- end
120
-
121
117
  if attributes.key?(:'hidden')
122
118
  self.hidden = attributes[:'hidden']
123
119
  else
@@ -130,24 +126,28 @@ module PulpContainerClient
130
126
  end
131
127
  end
132
128
 
133
- if attributes.key?(:'repository')
134
- self.repository = attributes[:'repository']
129
+ if attributes.key?(:'content_guard')
130
+ self.content_guard = attributes[:'content_guard']
135
131
  end
136
132
 
137
- if attributes.key?(:'pulp_href')
138
- self.pulp_href = attributes[:'pulp_href']
133
+ if attributes.key?(:'pulp_created')
134
+ self.pulp_created = attributes[:'pulp_created']
139
135
  end
140
136
 
141
- if attributes.key?(:'content_guard')
142
- self.content_guard = attributes[:'content_guard']
137
+ if attributes.key?(:'name')
138
+ self.name = attributes[:'name']
139
+ end
140
+
141
+ if attributes.key?(:'pulp_href')
142
+ self.pulp_href = attributes[:'pulp_href']
143
143
  end
144
144
 
145
145
  if attributes.key?(:'base_path')
146
146
  self.base_path = attributes[:'base_path']
147
147
  end
148
148
 
149
- if attributes.key?(:'name')
150
- self.name = attributes[:'name']
149
+ if attributes.key?(:'repository')
150
+ self.repository = attributes[:'repository']
151
151
  end
152
152
 
153
153
  if attributes.key?(:'repository_version')
@@ -175,22 +175,22 @@ module PulpContainerClient
175
175
  # @return Array for valid properties with the reasons
176
176
  def list_invalid_properties
177
177
  invalid_properties = Array.new
178
- if @base_path.nil?
179
- invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
180
- end
181
-
182
178
  if @name.nil?
183
179
  invalid_properties.push('invalid value for "name", name cannot be nil.')
184
180
  end
185
181
 
182
+ if @base_path.nil?
183
+ invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
184
+ end
185
+
186
186
  invalid_properties
187
187
  end
188
188
 
189
189
  # Check to see if the all the properties in the model are valid
190
190
  # @return true if the model is valid
191
191
  def valid?
192
- return false if @base_path.nil?
193
192
  return false if @name.nil?
193
+ return false if @base_path.nil?
194
194
  true
195
195
  end
196
196
 
@@ -199,14 +199,14 @@ module PulpContainerClient
199
199
  def ==(o)
200
200
  return true if self.equal?(o)
201
201
  self.class == o.class &&
202
- pulp_created == o.pulp_created &&
203
202
  hidden == o.hidden &&
204
203
  pulp_labels == o.pulp_labels &&
205
- repository == o.repository &&
206
- pulp_href == o.pulp_href &&
207
204
  content_guard == o.content_guard &&
208
- base_path == o.base_path &&
205
+ pulp_created == o.pulp_created &&
209
206
  name == o.name &&
207
+ pulp_href == o.pulp_href &&
208
+ base_path == o.base_path &&
209
+ repository == o.repository &&
210
210
  repository_version == o.repository_version &&
211
211
  registry_path == o.registry_path &&
212
212
  namespace == o.namespace &&
@@ -223,7 +223,7 @@ module PulpContainerClient
223
223
  # Calculates hash code according to all attributes.
224
224
  # @return [Integer] Hash code
225
225
  def hash
226
- [pulp_created, hidden, pulp_labels, repository, pulp_href, content_guard, base_path, name, repository_version, registry_path, namespace, private, description].hash
226
+ [hidden, pulp_labels, content_guard, pulp_created, name, pulp_href, base_path, repository, repository_version, registry_path, namespace, private, description].hash
227
227
  end
228
228
 
229
229
  # Builds the object from hash
@@ -15,48 +15,48 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # Serializer for Container Push Repositories.
17
17
  class ContainerContainerPushRepository
18
+ # Retain X versions of the repository. Default is null which retains all versions.
19
+ attr_accessor :retain_repo_versions
20
+
18
21
  # A reference to an associated signing service.
19
22
  attr_accessor :manifest_signing_service
20
23
 
21
24
  attr_accessor :pulp_labels
22
25
 
23
- # Retain X versions of the repository. Default is null which retains all versions.
24
- attr_accessor :retain_repo_versions
26
+ # A unique name for this repository.
27
+ attr_accessor :name
25
28
 
26
29
  # An optional description.
27
30
  attr_accessor :description
28
31
 
29
- # A unique name for this repository.
30
- attr_accessor :name
31
-
32
32
  # Attribute mapping from ruby-style variable name to JSON key.
33
33
  def self.attribute_map
34
34
  {
35
+ :'retain_repo_versions' => :'retain_repo_versions',
35
36
  :'manifest_signing_service' => :'manifest_signing_service',
36
37
  :'pulp_labels' => :'pulp_labels',
37
- :'retain_repo_versions' => :'retain_repo_versions',
38
- :'description' => :'description',
39
- :'name' => :'name'
38
+ :'name' => :'name',
39
+ :'description' => :'description'
40
40
  }
41
41
  end
42
42
 
43
43
  # Attribute type mapping.
44
44
  def self.openapi_types
45
45
  {
46
+ :'retain_repo_versions' => :'Integer',
46
47
  :'manifest_signing_service' => :'String',
47
48
  :'pulp_labels' => :'Hash<String, String>',
48
- :'retain_repo_versions' => :'Integer',
49
- :'description' => :'String',
50
- :'name' => :'String'
49
+ :'name' => :'String',
50
+ :'description' => :'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',
58
57
  :'retain_repo_versions',
59
- :'description',
58
+ :'manifest_signing_service',
59
+ :'description'
60
60
  ])
61
61
  end
62
62
 
@@ -75,6 +75,10 @@ module PulpContainerClient
75
75
  h[k.to_sym] = v
76
76
  }
77
77
 
78
+ if attributes.key?(:'retain_repo_versions')
79
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
80
+ end
81
+
78
82
  if attributes.key?(:'manifest_signing_service')
79
83
  self.manifest_signing_service = attributes[:'manifest_signing_service']
80
84
  end
@@ -85,17 +89,13 @@ module PulpContainerClient
85
89
  end
86
90
  end
87
91
 
88
- if attributes.key?(:'retain_repo_versions')
89
- self.retain_repo_versions = attributes[:'retain_repo_versions']
92
+ if attributes.key?(:'name')
93
+ self.name = attributes[:'name']
90
94
  end
91
95
 
92
96
  if attributes.key?(:'description')
93
97
  self.description = attributes[:'description']
94
98
  end
95
-
96
- if attributes.key?(:'name')
97
- self.name = attributes[:'name']
98
- end
99
99
  end
100
100
 
101
101
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -106,10 +106,6 @@ module PulpContainerClient
106
106
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
107
107
  end
108
108
 
109
- if !@description.nil? && @description.to_s.length < 1
110
- invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
111
- end
112
-
113
109
  if @name.nil?
114
110
  invalid_properties.push('invalid value for "name", name cannot be nil.')
115
111
  end
@@ -118,6 +114,10 @@ module PulpContainerClient
118
114
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
119
115
  end
120
116
 
117
+ if !@description.nil? && @description.to_s.length < 1
118
+ invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
119
+ end
120
+
121
121
  invalid_properties
122
122
  end
123
123
 
@@ -125,9 +125,9 @@ module PulpContainerClient
125
125
  # @return true if the model is valid
126
126
  def valid?
127
127
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
128
- return false if !@description.nil? && @description.to_s.length < 1
129
128
  return false if @name.nil?
130
129
  return false if @name.to_s.length < 1
130
+ return false if !@description.nil? && @description.to_s.length < 1
131
131
  true
132
132
  end
133
133
 
@@ -141,16 +141,6 @@ module PulpContainerClient
141
141
  @retain_repo_versions = retain_repo_versions
142
142
  end
143
143
 
144
- # Custom attribute writer method with validation
145
- # @param [Object] description Value to be assigned
146
- def description=(description)
147
- if !description.nil? && description.to_s.length < 1
148
- fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
149
- end
150
-
151
- @description = description
152
- end
153
-
154
144
  # Custom attribute writer method with validation
155
145
  # @param [Object] name Value to be assigned
156
146
  def name=(name)
@@ -165,16 +155,26 @@ module PulpContainerClient
165
155
  @name = name
166
156
  end
167
157
 
158
+ # Custom attribute writer method with validation
159
+ # @param [Object] description Value to be assigned
160
+ def description=(description)
161
+ if !description.nil? && description.to_s.length < 1
162
+ fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
163
+ end
164
+
165
+ @description = description
166
+ end
167
+
168
168
  # Checks equality by comparing each attribute.
169
169
  # @param [Object] Object to be compared
170
170
  def ==(o)
171
171
  return true if self.equal?(o)
172
172
  self.class == o.class &&
173
+ retain_repo_versions == o.retain_repo_versions &&
173
174
  manifest_signing_service == o.manifest_signing_service &&
174
175
  pulp_labels == o.pulp_labels &&
175
- retain_repo_versions == o.retain_repo_versions &&
176
- description == o.description &&
177
- name == o.name
176
+ name == o.name &&
177
+ description == o.description
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
- [manifest_signing_service, pulp_labels, retain_repo_versions, description, name].hash
189
+ [retain_repo_versions, manifest_signing_service, pulp_labels, name, description].hash
190
190
  end
191
191
 
192
192
  # Builds the object from hash