pulp_container_client 2.20.8 → 2.20.9

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 (31) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/ContainerContainerDistribution.md +7 -7
  4. data/docs/ContainerContainerDistributionResponse.md +12 -12
  5. data/docs/ContainerContainerPullThroughDistribution.md +7 -7
  6. data/docs/ContainerContainerPullThroughDistributionResponse.md +12 -12
  7. data/docs/ContainerContainerPushRepository.md +7 -7
  8. data/docs/ContainerContainerPushRepositoryResponse.md +13 -13
  9. data/docs/PatchedcontainerContainerDistribution.md +7 -7
  10. data/docs/PatchedcontainerContainerPullThroughDistribution.md +7 -7
  11. data/docs/PatchedcontainerContainerPushRepository.md +7 -7
  12. data/lib/pulp_container_client/models/container_container_distribution.rb +31 -31
  13. data/lib/pulp_container_client/models/container_container_distribution_response.rb +54 -54
  14. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +31 -31
  15. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +54 -54
  16. data/lib/pulp_container_client/models/container_container_push_repository.rb +45 -45
  17. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +62 -62
  18. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +31 -31
  19. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +31 -31
  20. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +45 -45
  21. data/lib/pulp_container_client/version.rb +1 -1
  22. data/spec/models/container_container_distribution_response_spec.rb +9 -9
  23. data/spec/models/container_container_distribution_spec.rb +6 -6
  24. data/spec/models/container_container_pull_through_distribution_response_spec.rb +9 -9
  25. data/spec/models/container_container_pull_through_distribution_spec.rb +6 -6
  26. data/spec/models/container_container_push_repository_response_spec.rb +10 -10
  27. data/spec/models/container_container_push_repository_spec.rb +5 -5
  28. data/spec/models/patchedcontainer_container_distribution_spec.rb +6 -6
  29. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +6 -6
  30. data/spec/models/patchedcontainer_container_push_repository_spec.rb +5 -5
  31. metadata +61 -61
@@ -15,48 +15,48 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # Serializer for Container Push Repositories.
17
17
  class ContainerContainerPushRepository
18
+ # An optional description.
19
+ attr_accessor :description
20
+
21
+ # A unique name for this repository.
22
+ attr_accessor :name
23
+
18
24
  # A reference to an associated signing service.
19
25
  attr_accessor :manifest_signing_service
20
26
 
21
- attr_accessor :pulp_labels
22
-
23
27
  # Retain X versions of the repository. Default is null which retains all versions.
24
28
  attr_accessor :retain_repo_versions
25
29
 
26
- # An optional description.
27
- attr_accessor :description
28
-
29
- # A unique name for this repository.
30
- attr_accessor :name
30
+ attr_accessor :pulp_labels
31
31
 
32
32
  # Attribute mapping from ruby-style variable name to JSON key.
33
33
  def self.attribute_map
34
34
  {
35
+ :'description' => :'description',
36
+ :'name' => :'name',
35
37
  :'manifest_signing_service' => :'manifest_signing_service',
36
- :'pulp_labels' => :'pulp_labels',
37
38
  :'retain_repo_versions' => :'retain_repo_versions',
38
- :'description' => :'description',
39
- :'name' => :'name'
39
+ :'pulp_labels' => :'pulp_labels'
40
40
  }
41
41
  end
42
42
 
43
43
  # Attribute type mapping.
44
44
  def self.openapi_types
45
45
  {
46
+ :'description' => :'String',
47
+ :'name' => :'String',
46
48
  :'manifest_signing_service' => :'String',
47
- :'pulp_labels' => :'Hash<String, String>',
48
49
  :'retain_repo_versions' => :'Integer',
49
- :'description' => :'String',
50
- :'name' => :'String'
50
+ :'pulp_labels' => :'Hash<String, 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
+ :'description',
57
58
  :'manifest_signing_service',
58
59
  :'retain_repo_versions',
59
- :'description',
60
60
  ])
61
61
  end
62
62
 
@@ -75,26 +75,26 @@ 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']
78
+ if attributes.key?(:'description')
79
+ self.description = attributes[:'description']
80
80
  end
81
81
 
82
- if attributes.key?(:'pulp_labels')
83
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
84
- self.pulp_labels = value
85
- end
82
+ if attributes.key?(:'name')
83
+ self.name = attributes[:'name']
86
84
  end
87
85
 
88
- if attributes.key?(:'retain_repo_versions')
89
- self.retain_repo_versions = attributes[:'retain_repo_versions']
86
+ if attributes.key?(:'manifest_signing_service')
87
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
90
88
  end
91
89
 
92
- if attributes.key?(:'description')
93
- self.description = attributes[:'description']
90
+ if attributes.key?(:'retain_repo_versions')
91
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
94
92
  end
95
93
 
96
- if attributes.key?(:'name')
97
- self.name = attributes[:'name']
94
+ if attributes.key?(:'pulp_labels')
95
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
96
+ self.pulp_labels = value
97
+ end
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 !@description.nil? && @description.to_s.length < 1
110
106
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
111
107
  end
@@ -118,29 +114,23 @@ 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 !@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 !@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 !@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] description Value to be assigned
146
136
  def description=(description)
@@ -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] 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
+ description == o.description &&
174
+ name == o.name &&
173
175
  manifest_signing_service == o.manifest_signing_service &&
174
- pulp_labels == o.pulp_labels &&
175
176
  retain_repo_versions == o.retain_repo_versions &&
176
- description == o.description &&
177
- name == o.name
177
+ pulp_labels == o.pulp_labels
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
+ [description, name, manifest_signing_service, retain_repo_versions, pulp_labels].hash
190
190
  end
191
191
 
192
192
  # Builds the object from hash
@@ -15,70 +15,70 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # Serializer for Container Push Repositories.
17
17
  class ContainerContainerPushRepositoryResponse
18
- # Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
19
- attr_accessor :pulp_last_updated
20
-
21
- # A reference to an associated signing service.
22
- attr_accessor :manifest_signing_service
23
-
24
- # Timestamp of creation.
25
- attr_accessor :pulp_created
26
-
27
- attr_accessor :pulp_labels
28
-
29
- # Retain X versions of the repository. Default is null which retains all versions.
30
- attr_accessor :retain_repo_versions
31
-
32
18
  attr_accessor :pulp_href
33
19
 
34
20
  # An optional description.
35
21
  attr_accessor :description
36
22
 
23
+ attr_accessor :latest_version_href
24
+
37
25
  attr_accessor :versions_href
38
26
 
27
+ # Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
28
+ attr_accessor :pulp_last_updated
29
+
30
+ # Timestamp of creation.
31
+ attr_accessor :pulp_created
32
+
39
33
  # A unique name for this repository.
40
34
  attr_accessor :name
41
35
 
42
- attr_accessor :latest_version_href
36
+ # A reference to an associated signing service.
37
+ attr_accessor :manifest_signing_service
38
+
39
+ # Retain X versions of the repository. Default is null which retains all versions.
40
+ attr_accessor :retain_repo_versions
41
+
42
+ attr_accessor :pulp_labels
43
43
 
44
44
  # Attribute mapping from ruby-style variable name to JSON key.
45
45
  def self.attribute_map
46
46
  {
47
- :'pulp_last_updated' => :'pulp_last_updated',
48
- :'manifest_signing_service' => :'manifest_signing_service',
49
- :'pulp_created' => :'pulp_created',
50
- :'pulp_labels' => :'pulp_labels',
51
- :'retain_repo_versions' => :'retain_repo_versions',
52
47
  :'pulp_href' => :'pulp_href',
53
48
  :'description' => :'description',
49
+ :'latest_version_href' => :'latest_version_href',
54
50
  :'versions_href' => :'versions_href',
51
+ :'pulp_last_updated' => :'pulp_last_updated',
52
+ :'pulp_created' => :'pulp_created',
55
53
  :'name' => :'name',
56
- :'latest_version_href' => :'latest_version_href'
54
+ :'manifest_signing_service' => :'manifest_signing_service',
55
+ :'retain_repo_versions' => :'retain_repo_versions',
56
+ :'pulp_labels' => :'pulp_labels'
57
57
  }
58
58
  end
59
59
 
60
60
  # Attribute type mapping.
61
61
  def self.openapi_types
62
62
  {
63
- :'pulp_last_updated' => :'DateTime',
64
- :'manifest_signing_service' => :'String',
65
- :'pulp_created' => :'DateTime',
66
- :'pulp_labels' => :'Hash<String, String>',
67
- :'retain_repo_versions' => :'Integer',
68
63
  :'pulp_href' => :'String',
69
64
  :'description' => :'String',
65
+ :'latest_version_href' => :'String',
70
66
  :'versions_href' => :'String',
67
+ :'pulp_last_updated' => :'DateTime',
68
+ :'pulp_created' => :'DateTime',
71
69
  :'name' => :'String',
72
- :'latest_version_href' => :'String'
70
+ :'manifest_signing_service' => :'String',
71
+ :'retain_repo_versions' => :'Integer',
72
+ :'pulp_labels' => :'Hash<String, String>'
73
73
  }
74
74
  end
75
75
 
76
76
  # List of attributes with nullable: true
77
77
  def self.openapi_nullable
78
78
  Set.new([
79
+ :'description',
79
80
  :'manifest_signing_service',
80
81
  :'retain_repo_versions',
81
- :'description',
82
82
  ])
83
83
  end
84
84
 
@@ -97,46 +97,46 @@ module PulpContainerClient
97
97
  h[k.to_sym] = v
98
98
  }
99
99
 
100
- if attributes.key?(:'pulp_last_updated')
101
- self.pulp_last_updated = attributes[:'pulp_last_updated']
100
+ if attributes.key?(:'pulp_href')
101
+ self.pulp_href = attributes[:'pulp_href']
102
102
  end
103
103
 
104
- if attributes.key?(:'manifest_signing_service')
105
- self.manifest_signing_service = attributes[:'manifest_signing_service']
104
+ if attributes.key?(:'description')
105
+ self.description = attributes[:'description']
106
106
  end
107
107
 
108
- if attributes.key?(:'pulp_created')
109
- self.pulp_created = attributes[:'pulp_created']
108
+ if attributes.key?(:'latest_version_href')
109
+ self.latest_version_href = attributes[:'latest_version_href']
110
110
  end
111
111
 
112
- if attributes.key?(:'pulp_labels')
113
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
114
- self.pulp_labels = value
115
- end
112
+ if attributes.key?(:'versions_href')
113
+ self.versions_href = attributes[:'versions_href']
116
114
  end
117
115
 
118
- if attributes.key?(:'retain_repo_versions')
119
- self.retain_repo_versions = attributes[:'retain_repo_versions']
116
+ if attributes.key?(:'pulp_last_updated')
117
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
120
118
  end
121
119
 
122
- if attributes.key?(:'pulp_href')
123
- self.pulp_href = attributes[:'pulp_href']
120
+ if attributes.key?(:'pulp_created')
121
+ self.pulp_created = attributes[:'pulp_created']
124
122
  end
125
123
 
126
- if attributes.key?(:'description')
127
- self.description = attributes[:'description']
124
+ if attributes.key?(:'name')
125
+ self.name = attributes[:'name']
128
126
  end
129
127
 
130
- if attributes.key?(:'versions_href')
131
- self.versions_href = attributes[:'versions_href']
128
+ if attributes.key?(:'manifest_signing_service')
129
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
132
130
  end
133
131
 
134
- if attributes.key?(:'name')
135
- self.name = attributes[:'name']
132
+ if attributes.key?(:'retain_repo_versions')
133
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
136
134
  end
137
135
 
138
- if attributes.key?(:'latest_version_href')
139
- self.latest_version_href = attributes[:'latest_version_href']
136
+ if attributes.key?(:'pulp_labels')
137
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
138
+ self.pulp_labels = value
139
+ end
140
140
  end
141
141
  end
142
142
 
@@ -144,22 +144,22 @@ module PulpContainerClient
144
144
  # @return Array for valid properties with the reasons
145
145
  def list_invalid_properties
146
146
  invalid_properties = Array.new
147
- if !@retain_repo_versions.nil? && @retain_repo_versions < 1
148
- invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
149
- end
150
-
151
147
  if @name.nil?
152
148
  invalid_properties.push('invalid value for "name", name cannot be nil.')
153
149
  end
154
150
 
151
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
152
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
153
+ end
154
+
155
155
  invalid_properties
156
156
  end
157
157
 
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 !@retain_repo_versions.nil? && @retain_repo_versions < 1
162
161
  return false if @name.nil?
162
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
163
163
  true
164
164
  end
165
165
 
@@ -178,16 +178,16 @@ module PulpContainerClient
178
178
  def ==(o)
179
179
  return true if self.equal?(o)
180
180
  self.class == o.class &&
181
- pulp_last_updated == o.pulp_last_updated &&
182
- manifest_signing_service == o.manifest_signing_service &&
183
- pulp_created == o.pulp_created &&
184
- pulp_labels == o.pulp_labels &&
185
- retain_repo_versions == o.retain_repo_versions &&
186
181
  pulp_href == o.pulp_href &&
187
182
  description == o.description &&
183
+ latest_version_href == o.latest_version_href &&
188
184
  versions_href == o.versions_href &&
185
+ pulp_last_updated == o.pulp_last_updated &&
186
+ pulp_created == o.pulp_created &&
189
187
  name == o.name &&
190
- latest_version_href == o.latest_version_href
188
+ manifest_signing_service == o.manifest_signing_service &&
189
+ retain_repo_versions == o.retain_repo_versions &&
190
+ pulp_labels == o.pulp_labels
191
191
  end
192
192
 
193
193
  # @see the `==` method
@@ -199,7 +199,7 @@ module PulpContainerClient
199
199
  # Calculates hash code according to all attributes.
200
200
  # @return [Integer] Hash code
201
201
  def hash
202
- [pulp_last_updated, manifest_signing_service, pulp_created, pulp_labels, retain_repo_versions, pulp_href, description, versions_href, name, latest_version_href].hash
202
+ [pulp_href, description, latest_version_href, versions_href, pulp_last_updated, pulp_created, name, manifest_signing_service, retain_repo_versions, pulp_labels].hash
203
203
  end
204
204
 
205
205
  # Builds the object from hash
@@ -15,22 +15,22 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class PatchedcontainerContainerDistribution
18
- # Whether this distribution should be shown in the content app.
19
- attr_accessor :hidden
20
-
21
- attr_accessor :pulp_labels
22
-
23
18
  # The latest RepositoryVersion for this Repository will be served.
24
19
  attr_accessor :repository
25
20
 
26
21
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
27
22
  attr_accessor :base_path
28
23
 
24
+ # An optional content-guard. If none is specified, a default one will be used.
25
+ attr_accessor :content_guard
26
+
29
27
  # A unique name. Ex, `rawhide` and `stable`.
30
28
  attr_accessor :name
31
29
 
32
- # An optional content-guard. If none is specified, a default one will be used.
33
- attr_accessor :content_guard
30
+ # Whether this distribution should be shown in the content app.
31
+ attr_accessor :hidden
32
+
33
+ attr_accessor :pulp_labels
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
- :'hidden' => :'hidden',
48
- :'pulp_labels' => :'pulp_labels',
49
47
  :'repository' => :'repository',
50
48
  :'base_path' => :'base_path',
51
- :'name' => :'name',
52
49
  :'content_guard' => :'content_guard',
50
+ :'name' => :'name',
51
+ :'hidden' => :'hidden',
52
+ :'pulp_labels' => :'pulp_labels',
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
- :'hidden' => :'Boolean',
63
- :'pulp_labels' => :'Hash<String, String>',
64
62
  :'repository' => :'String',
65
63
  :'base_path' => :'String',
66
- :'name' => :'String',
67
64
  :'content_guard' => :'String',
65
+ :'name' => :'String',
66
+ :'hidden' => :'Boolean',
67
+ :'pulp_labels' => :'Hash<String, String>',
68
68
  :'repository_version' => :'String',
69
69
  :'private' => :'Boolean',
70
70
  :'description' => :'String'
@@ -95,18 +95,6 @@ module PulpContainerClient
95
95
  h[k.to_sym] = v
96
96
  }
97
97
 
98
- if attributes.key?(:'hidden')
99
- self.hidden = attributes[:'hidden']
100
- else
101
- self.hidden = false
102
- end
103
-
104
- if attributes.key?(:'pulp_labels')
105
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
106
- self.pulp_labels = value
107
- end
108
- end
109
-
110
98
  if attributes.key?(:'repository')
111
99
  self.repository = attributes[:'repository']
112
100
  end
@@ -115,12 +103,24 @@ module PulpContainerClient
115
103
  self.base_path = attributes[:'base_path']
116
104
  end
117
105
 
106
+ if attributes.key?(:'content_guard')
107
+ self.content_guard = attributes[:'content_guard']
108
+ end
109
+
118
110
  if attributes.key?(:'name')
119
111
  self.name = attributes[:'name']
120
112
  end
121
113
 
122
- if attributes.key?(:'content_guard')
123
- self.content_guard = attributes[:'content_guard']
114
+ if attributes.key?(:'hidden')
115
+ self.hidden = attributes[:'hidden']
116
+ else
117
+ self.hidden = false
118
+ end
119
+
120
+ if attributes.key?(:'pulp_labels')
121
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
122
+ self.pulp_labels = value
123
+ end
124
124
  end
125
125
 
126
126
  if attributes.key?(:'repository_version')
@@ -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
- hidden == o.hidden &&
203
- pulp_labels == o.pulp_labels &&
204
202
  repository == o.repository &&
205
203
  base_path == o.base_path &&
206
- name == o.name &&
207
204
  content_guard == o.content_guard &&
205
+ name == o.name &&
206
+ hidden == o.hidden &&
207
+ pulp_labels == o.pulp_labels &&
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
- [hidden, pulp_labels, repository, base_path, name, content_guard, repository_version, private, description].hash
222
+ [repository, base_path, content_guard, name, hidden, pulp_labels, 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
- # Whether this distribution should be shown in the content app.
19
- attr_accessor :hidden
20
-
21
- attr_accessor :pulp_labels
22
-
23
18
  # The latest RepositoryVersion for this Repository will be served.
24
19
  attr_accessor :repository
25
20
 
26
21
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
27
22
  attr_accessor :base_path
28
23
 
24
+ # An optional content-guard. If none is specified, a default one will be used.
25
+ attr_accessor :content_guard
26
+
29
27
  # A unique name. Ex, `rawhide` and `stable`.
30
28
  attr_accessor :name
31
29
 
32
- # An optional content-guard. If none is specified, a default one will be used.
33
- attr_accessor :content_guard
30
+ # Whether this distribution should be shown in the content app.
31
+ attr_accessor :hidden
32
+
33
+ attr_accessor :pulp_labels
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
- :'hidden' => :'hidden',
51
- :'pulp_labels' => :'pulp_labels',
52
50
  :'repository' => :'repository',
53
51
  :'base_path' => :'base_path',
54
- :'name' => :'name',
55
52
  :'content_guard' => :'content_guard',
53
+ :'name' => :'name',
54
+ :'hidden' => :'hidden',
55
+ :'pulp_labels' => :'pulp_labels',
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
- :'hidden' => :'Boolean',
67
- :'pulp_labels' => :'Hash<String, String>',
68
66
  :'repository' => :'String',
69
67
  :'base_path' => :'String',
70
- :'name' => :'String',
71
68
  :'content_guard' => :'String',
69
+ :'name' => :'String',
70
+ :'hidden' => :'Boolean',
71
+ :'pulp_labels' => :'Hash<String, String>',
72
72
  :'remote' => :'String',
73
73
  :'distributions' => :'Array<String>',
74
74
  :'private' => :'Boolean',
@@ -99,18 +99,6 @@ module PulpContainerClient
99
99
  h[k.to_sym] = v
100
100
  }
101
101
 
102
- if attributes.key?(:'hidden')
103
- self.hidden = attributes[:'hidden']
104
- else
105
- self.hidden = false
106
- end
107
-
108
- if attributes.key?(:'pulp_labels')
109
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
110
- self.pulp_labels = value
111
- end
112
- end
113
-
114
102
  if attributes.key?(:'repository')
115
103
  self.repository = attributes[:'repository']
116
104
  end
@@ -119,12 +107,24 @@ module PulpContainerClient
119
107
  self.base_path = attributes[:'base_path']
120
108
  end
121
109
 
110
+ if attributes.key?(:'content_guard')
111
+ self.content_guard = attributes[:'content_guard']
112
+ end
113
+
122
114
  if attributes.key?(:'name')
123
115
  self.name = attributes[:'name']
124
116
  end
125
117
 
126
- if attributes.key?(:'content_guard')
127
- self.content_guard = attributes[:'content_guard']
118
+ if attributes.key?(:'hidden')
119
+ self.hidden = attributes[:'hidden']
120
+ else
121
+ self.hidden = false
122
+ end
123
+
124
+ if attributes.key?(:'pulp_labels')
125
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
126
+ self.pulp_labels = value
127
+ end
128
128
  end
129
129
 
130
130
  if attributes.key?(:'remote')
@@ -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
- hidden == o.hidden &&
213
- pulp_labels == o.pulp_labels &&
214
212
  repository == o.repository &&
215
213
  base_path == o.base_path &&
216
- name == o.name &&
217
214
  content_guard == o.content_guard &&
215
+ name == o.name &&
216
+ hidden == o.hidden &&
217
+ pulp_labels == o.pulp_labels &&
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
- [hidden, pulp_labels, repository, base_path, name, content_guard, remote, distributions, private, description].hash
233
+ [repository, base_path, content_guard, name, hidden, pulp_labels, remote, distributions, private, description].hash
234
234
  end
235
235
 
236
236
  # Builds the object from hash