pulp_container_client 2.15.2 → 2.15.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +36 -25
  3. data/docs/ContainerContainerDistribution.md +6 -6
  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 +11 -1
  10. data/docs/ContentTagsApi.md +3 -1
  11. data/docs/DistributionsContainerApi.md +136 -10
  12. data/docs/PatchedcontainerContainerDistribution.md +6 -6
  13. data/docs/PatchedcontainerContainerPushRepository.md +6 -6
  14. data/docs/PulpContainerNamespacesApi.md +23 -9
  15. data/docs/RemotesContainerApi.md +135 -9
  16. data/docs/RepositoriesContainerApi.md +136 -10
  17. data/docs/RepositoriesContainerPushApi.md +24 -10
  18. data/docs/RepositoriesContainerPushVersionsApi.md +3 -1
  19. data/docs/RepositoriesContainerVersionsApi.md +3 -1
  20. data/docs/SetLabel.md +19 -0
  21. data/docs/SetLabelResponse.md +19 -0
  22. data/docs/TokenApi.md +1 -1
  23. data/docs/UnsetLabel.md +17 -0
  24. data/docs/UnsetLabelResponse.md +19 -0
  25. data/lib/pulp_container_client/api/content_blobs_api.rb +3 -0
  26. data/lib/pulp_container_client/api/content_manifests_api.rb +3 -0
  27. data/lib/pulp_container_client/api/content_signatures_api.rb +15 -0
  28. data/lib/pulp_container_client/api/content_tags_api.rb +3 -0
  29. data/lib/pulp_container_client/api/distributions_container_api.rb +163 -0
  30. data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +23 -0
  31. data/lib/pulp_container_client/api/remotes_container_api.rb +163 -0
  32. data/lib/pulp_container_client/api/repositories_container_api.rb +163 -0
  33. data/lib/pulp_container_client/api/repositories_container_push_api.rb +23 -0
  34. data/lib/pulp_container_client/api/repositories_container_push_versions_api.rb +3 -0
  35. data/lib/pulp_container_client/api/repositories_container_versions_api.rb +3 -0
  36. data/lib/pulp_container_client/configuration.rb +2 -2
  37. data/lib/pulp_container_client/models/container_container_distribution.rb +31 -31
  38. data/lib/pulp_container_client/models/container_container_distribution_response.rb +39 -39
  39. data/lib/pulp_container_client/models/container_container_push_repository.rb +42 -42
  40. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +48 -48
  41. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +31 -31
  42. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +42 -42
  43. data/lib/pulp_container_client/models/set_label.rb +252 -0
  44. data/lib/pulp_container_client/models/set_label_response.rb +243 -0
  45. data/lib/pulp_container_client/models/unset_label.rb +242 -0
  46. data/lib/pulp_container_client/models/unset_label_response.rb +242 -0
  47. data/lib/pulp_container_client/version.rb +1 -1
  48. data/lib/pulp_container_client.rb +4 -0
  49. data/spec/api/content_blobs_api_spec.rb +1 -0
  50. data/spec/api/content_manifests_api_spec.rb +1 -0
  51. data/spec/api/content_signatures_api_spec.rb +5 -0
  52. data/spec/api/content_tags_api_spec.rb +1 -0
  53. data/spec/api/distributions_container_api_spec.rb +35 -0
  54. data/spec/api/pulp_container_namespaces_api_spec.rb +9 -0
  55. data/spec/api/remotes_container_api_spec.rb +35 -0
  56. data/spec/api/repositories_container_api_spec.rb +35 -0
  57. data/spec/api/repositories_container_push_api_spec.rb +9 -0
  58. data/spec/api/repositories_container_push_versions_api_spec.rb +1 -0
  59. data/spec/api/repositories_container_versions_api_spec.rb +1 -0
  60. data/spec/configuration_spec.rb +3 -3
  61. data/spec/models/container_container_distribution_response_spec.rb +6 -6
  62. data/spec/models/container_container_distribution_spec.rb +5 -5
  63. data/spec/models/container_container_push_repository_response_spec.rb +9 -9
  64. data/spec/models/container_container_push_repository_spec.rb +5 -5
  65. data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
  66. data/spec/models/patchedcontainer_container_push_repository_spec.rb +5 -5
  67. data/spec/models/set_label_response_spec.rb +47 -0
  68. data/spec/models/set_label_spec.rb +47 -0
  69. data/spec/models/unset_label_response_spec.rb +47 -0
  70. data/spec/models/unset_label_spec.rb +41 -0
  71. metadata +63 -47
@@ -15,24 +15,24 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class ContainerContainerDistributionResponse
18
- attr_accessor :pulp_labels
19
-
20
- # An optional content-guard. If none is specified, a default one will be used.
21
- attr_accessor :content_guard
22
-
23
- # The latest RepositoryVersion for this Repository will be served.
24
- attr_accessor :repository
25
-
26
18
  # A unique name. Ex, `rawhide` and `stable`.
27
19
  attr_accessor :name
28
20
 
21
+ # Timestamp of creation.
22
+ attr_accessor :pulp_created
23
+
29
24
  # Whether this distribution should be shown in the content app.
30
25
  attr_accessor :hidden
31
26
 
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
32
  attr_accessor :pulp_href
33
33
 
34
- # Timestamp of creation.
35
- attr_accessor :pulp_created
34
+ # The latest RepositoryVersion for this Repository will be served.
35
+ attr_accessor :repository
36
36
 
37
37
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
38
38
  attr_accessor :base_path
@@ -55,13 +55,13 @@ module PulpContainerClient
55
55
  # Attribute mapping from ruby-style variable name to JSON key.
56
56
  def self.attribute_map
57
57
  {
58
- :'pulp_labels' => :'pulp_labels',
59
- :'content_guard' => :'content_guard',
60
- :'repository' => :'repository',
61
58
  :'name' => :'name',
59
+ :'pulp_created' => :'pulp_created',
62
60
  :'hidden' => :'hidden',
61
+ :'content_guard' => :'content_guard',
62
+ :'pulp_labels' => :'pulp_labels',
63
63
  :'pulp_href' => :'pulp_href',
64
- :'pulp_created' => :'pulp_created',
64
+ :'repository' => :'repository',
65
65
  :'base_path' => :'base_path',
66
66
  :'repository_version' => :'repository_version',
67
67
  :'registry_path' => :'registry_path',
@@ -74,13 +74,13 @@ module PulpContainerClient
74
74
  # Attribute type mapping.
75
75
  def self.openapi_types
76
76
  {
77
- :'pulp_labels' => :'Hash<String, String>',
78
- :'content_guard' => :'String',
79
- :'repository' => :'String',
80
77
  :'name' => :'String',
78
+ :'pulp_created' => :'DateTime',
81
79
  :'hidden' => :'Boolean',
80
+ :'content_guard' => :'String',
81
+ :'pulp_labels' => :'Hash<String, String>',
82
82
  :'pulp_href' => :'String',
83
- :'pulp_created' => :'DateTime',
83
+ :'repository' => :'String',
84
84
  :'base_path' => :'String',
85
85
  :'repository_version' => :'String',
86
86
  :'registry_path' => :'String',
@@ -114,36 +114,36 @@ module PulpContainerClient
114
114
  h[k.to_sym] = v
115
115
  }
116
116
 
117
- if attributes.key?(:'pulp_labels')
118
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
119
- self.pulp_labels = value
120
- end
121
- end
122
-
123
- if attributes.key?(:'content_guard')
124
- self.content_guard = attributes[:'content_guard']
125
- end
126
-
127
- if attributes.key?(:'repository')
128
- self.repository = attributes[:'repository']
129
- end
130
-
131
117
  if attributes.key?(:'name')
132
118
  self.name = attributes[:'name']
133
119
  end
134
120
 
121
+ if attributes.key?(:'pulp_created')
122
+ self.pulp_created = attributes[:'pulp_created']
123
+ end
124
+
135
125
  if attributes.key?(:'hidden')
136
126
  self.hidden = attributes[:'hidden']
137
127
  else
138
128
  self.hidden = false
139
129
  end
140
130
 
131
+ if attributes.key?(:'content_guard')
132
+ self.content_guard = attributes[:'content_guard']
133
+ end
134
+
135
+ if attributes.key?(:'pulp_labels')
136
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
137
+ self.pulp_labels = value
138
+ end
139
+ end
140
+
141
141
  if attributes.key?(:'pulp_href')
142
142
  self.pulp_href = attributes[:'pulp_href']
143
143
  end
144
144
 
145
- if attributes.key?(:'pulp_created')
146
- self.pulp_created = attributes[:'pulp_created']
145
+ if attributes.key?(:'repository')
146
+ self.repository = attributes[:'repository']
147
147
  end
148
148
 
149
149
  if attributes.key?(:'base_path')
@@ -199,13 +199,13 @@ module PulpContainerClient
199
199
  def ==(o)
200
200
  return true if self.equal?(o)
201
201
  self.class == o.class &&
202
- pulp_labels == o.pulp_labels &&
203
- content_guard == o.content_guard &&
204
- repository == o.repository &&
205
202
  name == o.name &&
203
+ pulp_created == o.pulp_created &&
206
204
  hidden == o.hidden &&
205
+ content_guard == o.content_guard &&
206
+ pulp_labels == o.pulp_labels &&
207
207
  pulp_href == o.pulp_href &&
208
- pulp_created == o.pulp_created &&
208
+ repository == o.repository &&
209
209
  base_path == o.base_path &&
210
210
  repository_version == o.repository_version &&
211
211
  registry_path == o.registry_path &&
@@ -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_labels, content_guard, repository, name, hidden, pulp_href, pulp_created, base_path, repository_version, registry_path, namespace, private, description].hash
226
+ [name, pulp_created, hidden, content_guard, pulp_labels, pulp_href, repository, base_path, 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
18
+ # A unique name for this repository.
19
+ attr_accessor :name
20
+
21
+ # An optional description.
22
+ attr_accessor :description
20
23
 
21
24
  attr_accessor :pulp_labels
22
25
 
23
26
  # A reference to an associated signing service.
24
27
  attr_accessor :manifest_signing_service
25
28
 
26
- # A unique name for this repository.
27
- attr_accessor :name
28
-
29
- # An optional description.
30
- attr_accessor :description
29
+ # Retain X versions of the repository. Default is null which retains all versions.
30
+ attr_accessor :retain_repo_versions
31
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
+ :'name' => :'name',
36
+ :'description' => :'description',
36
37
  :'pulp_labels' => :'pulp_labels',
37
38
  :'manifest_signing_service' => :'manifest_signing_service',
38
- :'name' => :'name',
39
- :'description' => :'description'
39
+ :'retain_repo_versions' => :'retain_repo_versions'
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
+ :'name' => :'String',
47
+ :'description' => :'String',
47
48
  :'pulp_labels' => :'Hash<String, String>',
48
49
  :'manifest_signing_service' => :'String',
49
- :'name' => :'String',
50
- :'description' => :'String'
50
+ :'retain_repo_versions' => :'Integer'
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
- :'retain_repo_versions',
57
+ :'description',
58
58
  :'manifest_signing_service',
59
- :'description'
59
+ :'retain_repo_versions'
60
60
  ])
61
61
  end
62
62
 
@@ -75,8 +75,12 @@ 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']
78
+ if attributes.key?(:'name')
79
+ self.name = attributes[:'name']
80
+ end
81
+
82
+ if attributes.key?(:'description')
83
+ self.description = attributes[:'description']
80
84
  end
81
85
 
82
86
  if attributes.key?(:'pulp_labels')
@@ -89,12 +93,8 @@ module PulpContainerClient
89
93
  self.manifest_signing_service = attributes[:'manifest_signing_service']
90
94
  end
91
95
 
92
- if attributes.key?(:'name')
93
- self.name = attributes[:'name']
94
- end
95
-
96
- if attributes.key?(:'description')
97
- self.description = attributes[:'description']
96
+ if attributes.key?(:'retain_repo_versions')
97
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
98
98
  end
99
99
  end
100
100
 
@@ -102,10 +102,6 @@ module PulpContainerClient
102
102
  # @return Array for valid properties with the reasons
103
103
  def list_invalid_properties
104
104
  invalid_properties = Array.new
105
- if !@retain_repo_versions.nil? && @retain_repo_versions < 1
106
- invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
107
- end
108
-
109
105
  if @name.nil?
110
106
  invalid_properties.push('invalid value for "name", name cannot be nil.')
111
107
  end
@@ -118,29 +114,23 @@ module PulpContainerClient
118
114
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
119
115
  end
120
116
 
117
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
118
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
119
+ end
120
+
121
121
  invalid_properties
122
122
  end
123
123
 
124
124
  # Check to see if the all the properties in the model are valid
125
125
  # @return true if the model is valid
126
126
  def valid?
127
- return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
128
127
  return false if @name.nil?
129
128
  return false if @name.to_s.length < 1
130
129
  return false if !@description.nil? && @description.to_s.length < 1
130
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
131
131
  true
132
132
  end
133
133
 
134
- # Custom attribute writer method with validation
135
- # @param [Object] retain_repo_versions Value to be assigned
136
- def retain_repo_versions=(retain_repo_versions)
137
- if !retain_repo_versions.nil? && retain_repo_versions < 1
138
- fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
139
- end
140
-
141
- @retain_repo_versions = retain_repo_versions
142
- end
143
-
144
134
  # Custom attribute writer method with validation
145
135
  # @param [Object] name Value to be assigned
146
136
  def name=(name)
@@ -165,16 +155,26 @@ module PulpContainerClient
165
155
  @description = description
166
156
  end
167
157
 
158
+ # Custom attribute writer method with validation
159
+ # @param [Object] retain_repo_versions Value to be assigned
160
+ def retain_repo_versions=(retain_repo_versions)
161
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
162
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
163
+ end
164
+
165
+ @retain_repo_versions = retain_repo_versions
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
+ name == o.name &&
174
+ description == o.description &&
174
175
  pulp_labels == o.pulp_labels &&
175
176
  manifest_signing_service == o.manifest_signing_service &&
176
- name == o.name &&
177
- description == o.description
177
+ retain_repo_versions == o.retain_repo_versions
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
- [retain_repo_versions, pulp_labels, manifest_signing_service, name, description].hash
189
+ [name, description, pulp_labels, manifest_signing_service, retain_repo_versions].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
- # Retain X versions of the repository. Default is null which retains all versions.
19
- attr_accessor :retain_repo_versions
18
+ # A unique name for this repository.
19
+ attr_accessor :name
20
+
21
+ # Timestamp of creation.
22
+ attr_accessor :pulp_created
23
+
24
+ # An optional description.
25
+ attr_accessor :description
20
26
 
21
27
  attr_accessor :pulp_labels
22
28
 
23
29
  # A reference to an associated signing service.
24
30
  attr_accessor :manifest_signing_service
25
31
 
26
- # A unique name for this repository.
27
- attr_accessor :name
32
+ attr_accessor :pulp_href
28
33
 
29
34
  attr_accessor :versions_href
30
35
 
31
36
  attr_accessor :latest_version_href
32
37
 
33
- attr_accessor :pulp_href
34
-
35
- # Timestamp of creation.
36
- attr_accessor :pulp_created
37
-
38
- # An optional description.
39
- attr_accessor :description
38
+ # Retain X versions of the repository. Default is null which retains all versions.
39
+ attr_accessor :retain_repo_versions
40
40
 
41
41
  # Attribute mapping from ruby-style variable name to JSON key.
42
42
  def self.attribute_map
43
43
  {
44
- :'retain_repo_versions' => :'retain_repo_versions',
44
+ :'name' => :'name',
45
+ :'pulp_created' => :'pulp_created',
46
+ :'description' => :'description',
45
47
  :'pulp_labels' => :'pulp_labels',
46
48
  :'manifest_signing_service' => :'manifest_signing_service',
47
- :'name' => :'name',
49
+ :'pulp_href' => :'pulp_href',
48
50
  :'versions_href' => :'versions_href',
49
51
  :'latest_version_href' => :'latest_version_href',
50
- :'pulp_href' => :'pulp_href',
51
- :'pulp_created' => :'pulp_created',
52
- :'description' => :'description'
52
+ :'retain_repo_versions' => :'retain_repo_versions'
53
53
  }
54
54
  end
55
55
 
56
56
  # Attribute type mapping.
57
57
  def self.openapi_types
58
58
  {
59
- :'retain_repo_versions' => :'Integer',
59
+ :'name' => :'String',
60
+ :'pulp_created' => :'DateTime',
61
+ :'description' => :'String',
60
62
  :'pulp_labels' => :'Hash<String, String>',
61
63
  :'manifest_signing_service' => :'String',
62
- :'name' => :'String',
64
+ :'pulp_href' => :'String',
63
65
  :'versions_href' => :'String',
64
66
  :'latest_version_href' => :'String',
65
- :'pulp_href' => :'String',
66
- :'pulp_created' => :'DateTime',
67
- :'description' => :'String'
67
+ :'retain_repo_versions' => :'Integer'
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
- :'retain_repo_versions',
74
+ :'description',
75
75
  :'manifest_signing_service',
76
- :'description'
76
+ :'retain_repo_versions'
77
77
  ])
78
78
  end
79
79
 
@@ -92,8 +92,16 @@ module PulpContainerClient
92
92
  h[k.to_sym] = v
93
93
  }
94
94
 
95
- if attributes.key?(:'retain_repo_versions')
96
- self.retain_repo_versions = attributes[:'retain_repo_versions']
95
+ if attributes.key?(:'name')
96
+ self.name = attributes[:'name']
97
+ end
98
+
99
+ if attributes.key?(:'pulp_created')
100
+ self.pulp_created = attributes[:'pulp_created']
101
+ end
102
+
103
+ if attributes.key?(:'description')
104
+ self.description = attributes[:'description']
97
105
  end
98
106
 
99
107
  if attributes.key?(:'pulp_labels')
@@ -106,8 +114,8 @@ module PulpContainerClient
106
114
  self.manifest_signing_service = attributes[:'manifest_signing_service']
107
115
  end
108
116
 
109
- if attributes.key?(:'name')
110
- self.name = attributes[:'name']
117
+ if attributes.key?(:'pulp_href')
118
+ self.pulp_href = attributes[:'pulp_href']
111
119
  end
112
120
 
113
121
  if attributes.key?(:'versions_href')
@@ -118,16 +126,8 @@ module PulpContainerClient
118
126
  self.latest_version_href = attributes[:'latest_version_href']
119
127
  end
120
128
 
121
- if attributes.key?(:'pulp_href')
122
- self.pulp_href = attributes[:'pulp_href']
123
- end
124
-
125
- if attributes.key?(:'pulp_created')
126
- self.pulp_created = attributes[:'pulp_created']
127
- end
128
-
129
- if attributes.key?(:'description')
130
- self.description = attributes[:'description']
129
+ if attributes.key?(:'retain_repo_versions')
130
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
131
131
  end
132
132
  end
133
133
 
@@ -135,22 +135,22 @@ module PulpContainerClient
135
135
  # @return Array for valid properties with the reasons
136
136
  def list_invalid_properties
137
137
  invalid_properties = Array.new
138
- if !@retain_repo_versions.nil? && @retain_repo_versions < 1
139
- invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
140
- end
141
-
142
138
  if @name.nil?
143
139
  invalid_properties.push('invalid value for "name", name cannot be nil.')
144
140
  end
145
141
 
142
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
143
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
144
+ end
145
+
146
146
  invalid_properties
147
147
  end
148
148
 
149
149
  # Check to see if the all the properties in the model are valid
150
150
  # @return true if the model is valid
151
151
  def valid?
152
- return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
153
152
  return false if @name.nil?
153
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
154
154
  true
155
155
  end
156
156
 
@@ -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
- retain_repo_versions == o.retain_repo_versions &&
172
+ name == o.name &&
173
+ pulp_created == o.pulp_created &&
174
+ description == o.description &&
173
175
  pulp_labels == o.pulp_labels &&
174
176
  manifest_signing_service == o.manifest_signing_service &&
175
- name == o.name &&
177
+ pulp_href == o.pulp_href &&
176
178
  versions_href == o.versions_href &&
177
179
  latest_version_href == o.latest_version_href &&
178
- pulp_href == o.pulp_href &&
179
- pulp_created == o.pulp_created &&
180
- description == o.description
180
+ retain_repo_versions == o.retain_repo_versions
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
- [retain_repo_versions, pulp_labels, manifest_signing_service, name, versions_href, latest_version_href, pulp_href, pulp_created, description].hash
192
+ [name, pulp_created, description, pulp_labels, manifest_signing_service, pulp_href, versions_href, latest_version_href, retain_repo_versions].hash
193
193
  end
194
194
 
195
195
  # Builds the object from hash
@@ -15,20 +15,20 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class PatchedcontainerContainerDistribution
18
- attr_accessor :pulp_labels
18
+ # A unique name. Ex, `rawhide` and `stable`.
19
+ attr_accessor :name
20
+
21
+ # Whether this distribution should be shown in the content app.
22
+ attr_accessor :hidden
19
23
 
20
24
  # An optional content-guard. If none is specified, a default one will be used.
21
25
  attr_accessor :content_guard
22
26
 
27
+ attr_accessor :pulp_labels
28
+
23
29
  # The latest RepositoryVersion for this Repository will be served.
24
30
  attr_accessor :repository
25
31
 
26
- # A unique name. Ex, `rawhide` and `stable`.
27
- attr_accessor :name
28
-
29
- # Whether this distribution should be shown in the content app.
30
- attr_accessor :hidden
31
-
32
32
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
33
33
  attr_accessor :base_path
34
34
 
@@ -44,11 +44,11 @@ module PulpContainerClient
44
44
  # Attribute mapping from ruby-style variable name to JSON key.
45
45
  def self.attribute_map
46
46
  {
47
- :'pulp_labels' => :'pulp_labels',
48
- :'content_guard' => :'content_guard',
49
- :'repository' => :'repository',
50
47
  :'name' => :'name',
51
48
  :'hidden' => :'hidden',
49
+ :'content_guard' => :'content_guard',
50
+ :'pulp_labels' => :'pulp_labels',
51
+ :'repository' => :'repository',
52
52
  :'base_path' => :'base_path',
53
53
  :'repository_version' => :'repository_version',
54
54
  :'private' => :'private',
@@ -59,11 +59,11 @@ module PulpContainerClient
59
59
  # Attribute type mapping.
60
60
  def self.openapi_types
61
61
  {
62
- :'pulp_labels' => :'Hash<String, String>',
63
- :'content_guard' => :'String',
64
- :'repository' => :'String',
65
62
  :'name' => :'String',
66
63
  :'hidden' => :'Boolean',
64
+ :'content_guard' => :'String',
65
+ :'pulp_labels' => :'Hash<String, String>',
66
+ :'repository' => :'String',
67
67
  :'base_path' => :'String',
68
68
  :'repository_version' => :'String',
69
69
  :'private' => :'Boolean',
@@ -95,20 +95,6 @@ module PulpContainerClient
95
95
  h[k.to_sym] = v
96
96
  }
97
97
 
98
- if attributes.key?(:'pulp_labels')
99
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
100
- self.pulp_labels = value
101
- end
102
- end
103
-
104
- if attributes.key?(:'content_guard')
105
- self.content_guard = attributes[:'content_guard']
106
- end
107
-
108
- if attributes.key?(:'repository')
109
- self.repository = attributes[:'repository']
110
- end
111
-
112
98
  if attributes.key?(:'name')
113
99
  self.name = attributes[:'name']
114
100
  end
@@ -119,6 +105,20 @@ module PulpContainerClient
119
105
  self.hidden = false
120
106
  end
121
107
 
108
+ if attributes.key?(:'content_guard')
109
+ self.content_guard = attributes[:'content_guard']
110
+ end
111
+
112
+ if attributes.key?(:'pulp_labels')
113
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
114
+ self.pulp_labels = value
115
+ end
116
+ end
117
+
118
+ if attributes.key?(:'repository')
119
+ self.repository = attributes[:'repository']
120
+ end
121
+
122
122
  if attributes.key?(:'base_path')
123
123
  self.base_path = attributes[:'base_path']
124
124
  end
@@ -199,11 +199,11 @@ module PulpContainerClient
199
199
  def ==(o)
200
200
  return true if self.equal?(o)
201
201
  self.class == o.class &&
202
- pulp_labels == o.pulp_labels &&
203
- content_guard == o.content_guard &&
204
- repository == o.repository &&
205
202
  name == o.name &&
206
203
  hidden == o.hidden &&
204
+ content_guard == o.content_guard &&
205
+ pulp_labels == o.pulp_labels &&
206
+ repository == o.repository &&
207
207
  base_path == o.base_path &&
208
208
  repository_version == o.repository_version &&
209
209
  private == o.private &&
@@ -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
- [pulp_labels, content_guard, repository, name, hidden, base_path, repository_version, private, description].hash
222
+ [name, hidden, content_guard, pulp_labels, repository, base_path, repository_version, private, description].hash
223
223
  end
224
224
 
225
225
  # Builds the object from hash