pulp_container_client 2.22.8 → 2.22.10

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