pulp_container_client 2.19.7 → 2.19.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 (96) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -6
  3. data/docs/ContainerContainerDistribution.md +7 -7
  4. data/docs/ContainerContainerDistributionResponse.md +10 -10
  5. data/docs/ContainerContainerPullThroughDistribution.md +7 -7
  6. data/docs/ContainerContainerPullThroughDistributionResponse.md +10 -10
  7. data/docs/ContainerContainerPullThroughRemote.md +1 -1
  8. data/docs/ContainerContainerPullThroughRemoteResponse.md +1 -1
  9. data/docs/ContainerContainerPushRepository.md +6 -6
  10. data/docs/ContainerContainerPushRepositoryResponse.md +13 -13
  11. data/docs/ContainerContainerRemote.md +1 -1
  12. data/docs/ContainerContainerRemoteResponse.md +1 -1
  13. data/docs/ContainerManifestResponse.md +2 -2
  14. data/docs/ContentBlobsApi.md +4 -0
  15. data/docs/ContentManifestsApi.md +4 -0
  16. data/docs/ContentSignaturesApi.md +4 -0
  17. data/docs/ContentTagsApi.md +4 -0
  18. data/docs/DistributionsContainerApi.md +56 -16
  19. data/docs/DistributionsPullThroughApi.md +56 -16
  20. data/docs/OCIBuildImage.md +1 -1
  21. data/docs/PatchedcontainerContainerDistribution.md +7 -7
  22. data/docs/PatchedcontainerContainerPullThroughDistribution.md +7 -7
  23. data/docs/PatchedcontainerContainerPullThroughRemote.md +1 -1
  24. data/docs/PatchedcontainerContainerPushRepository.md +6 -6
  25. data/docs/PatchedcontainerContainerRemote.md +1 -1
  26. data/docs/{Policy762Enum.md → Policy692Enum.md} +2 -2
  27. data/docs/{Policy8e2Enum.md → Policy7e0Enum.md} +2 -2
  28. data/docs/PulpContainerNamespacesApi.md +32 -8
  29. data/docs/RemotesContainerApi.md +56 -16
  30. data/docs/RemotesPullThroughApi.md +56 -16
  31. data/docs/RepositoriesContainerApi.md +108 -34
  32. data/docs/RepositoriesContainerPushApi.md +62 -18
  33. data/docs/RepositoriesContainerPushVersionsApi.md +16 -4
  34. data/docs/RepositoriesContainerVersionsApi.md +16 -4
  35. data/docs/TokenApi.md +13 -3
  36. data/lib/pulp_container_client/api/content_blobs_api.rb +6 -0
  37. data/lib/pulp_container_client/api/content_manifests_api.rb +6 -0
  38. data/lib/pulp_container_client/api/content_signatures_api.rb +6 -0
  39. data/lib/pulp_container_client/api/content_tags_api.rb +6 -0
  40. data/lib/pulp_container_client/api/distributions_container_api.rb +36 -0
  41. data/lib/pulp_container_client/api/distributions_pull_through_api.rb +36 -0
  42. data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +24 -0
  43. data/lib/pulp_container_client/api/remotes_container_api.rb +36 -0
  44. data/lib/pulp_container_client/api/remotes_pull_through_api.rb +36 -0
  45. data/lib/pulp_container_client/api/repositories_container_api.rb +65 -2
  46. data/lib/pulp_container_client/api/repositories_container_push_api.rb +39 -0
  47. data/lib/pulp_container_client/api/repositories_container_push_versions_api.rb +12 -0
  48. data/lib/pulp_container_client/api/repositories_container_versions_api.rb +12 -0
  49. data/lib/pulp_container_client/api/token_api.rb +9 -0
  50. data/lib/pulp_container_client/models/container_container_distribution.rb +49 -49
  51. data/lib/pulp_container_client/models/container_container_distribution_response.rb +47 -47
  52. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +49 -49
  53. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +47 -47
  54. data/lib/pulp_container_client/models/container_container_pull_through_remote.rb +1 -1
  55. data/lib/pulp_container_client/models/container_container_pull_through_remote_response.rb +1 -1
  56. data/lib/pulp_container_client/models/container_container_push_repository.rb +24 -24
  57. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +55 -55
  58. data/lib/pulp_container_client/models/container_container_remote.rb +1 -1
  59. data/lib/pulp_container_client/models/container_container_remote_response.rb +1 -1
  60. data/lib/pulp_container_client/models/container_manifest_response.rb +2 -2
  61. data/lib/pulp_container_client/models/oci_build_image.rb +1 -1
  62. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +40 -40
  63. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +40 -40
  64. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_remote.rb +1 -1
  65. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +24 -24
  66. data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +1 -1
  67. data/lib/pulp_container_client/models/{policy762_enum.rb → policy692_enum.rb} +3 -3
  68. data/lib/pulp_container_client/models/{policy8e2_enum.rb → policy7e0_enum.rb} +3 -3
  69. data/lib/pulp_container_client/version.rb +1 -1
  70. data/lib/pulp_container_client.rb +2 -2
  71. data/spec/api/content_blobs_api_spec.rb +2 -0
  72. data/spec/api/content_manifests_api_spec.rb +2 -0
  73. data/spec/api/content_signatures_api_spec.rb +2 -0
  74. data/spec/api/content_tags_api_spec.rb +2 -0
  75. data/spec/api/distributions_container_api_spec.rb +12 -0
  76. data/spec/api/distributions_pull_through_api_spec.rb +12 -0
  77. data/spec/api/pulp_container_namespaces_api_spec.rb +8 -0
  78. data/spec/api/remotes_container_api_spec.rb +12 -0
  79. data/spec/api/remotes_pull_through_api_spec.rb +12 -0
  80. data/spec/api/repositories_container_api_spec.rb +22 -1
  81. data/spec/api/repositories_container_push_api_spec.rb +13 -0
  82. data/spec/api/repositories_container_push_versions_api_spec.rb +4 -0
  83. data/spec/api/repositories_container_versions_api_spec.rb +4 -0
  84. data/spec/api/token_api_spec.rb +3 -0
  85. data/spec/models/container_container_distribution_response_spec.rb +8 -8
  86. data/spec/models/container_container_distribution_spec.rb +6 -6
  87. data/spec/models/container_container_pull_through_distribution_response_spec.rb +8 -8
  88. data/spec/models/container_container_pull_through_distribution_spec.rb +6 -6
  89. data/spec/models/container_container_push_repository_response_spec.rb +9 -9
  90. data/spec/models/container_container_push_repository_spec.rb +5 -5
  91. data/spec/models/patchedcontainer_container_distribution_spec.rb +6 -6
  92. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +6 -6
  93. data/spec/models/patchedcontainer_container_push_repository_spec.rb +5 -5
  94. data/spec/models/{policy762_enum_spec.rb → policy692_enum_spec.rb} +6 -6
  95. data/spec/models/{policy8e2_enum_spec.rb → policy7e0_enum_spec.rb} +6 -6
  96. metadata +66 -66
@@ -15,23 +15,23 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class ContainerContainerDistribution
18
+ # A unique name. Ex, `rawhide` and `stable`.
19
+ attr_accessor :name
20
+
18
21
  attr_accessor :pulp_labels
19
22
 
20
- # An optional content-guard. If none is specified, a default one will be used.
21
- attr_accessor :content_guard
23
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
24
+ attr_accessor :base_path
22
25
 
23
26
  # The latest RepositoryVersion for this Repository will be served.
24
27
  attr_accessor :repository
25
28
 
26
- # 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
- attr_accessor :base_path
29
+ # An optional content-guard. If none is specified, a default one will be used.
30
+ attr_accessor :content_guard
28
31
 
29
32
  # Whether this distribution should be shown in the content app.
30
33
  attr_accessor :hidden
31
34
 
32
- # A unique name. Ex, `rawhide` and `stable`.
33
- attr_accessor :name
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
+ :'name' => :'name',
47
48
  :'pulp_labels' => :'pulp_labels',
48
- :'content_guard' => :'content_guard',
49
- :'repository' => :'repository',
50
49
  :'base_path' => :'base_path',
50
+ :'repository' => :'repository',
51
+ :'content_guard' => :'content_guard',
51
52
  :'hidden' => :'hidden',
52
- :'name' => :'name',
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
+ :'name' => :'String',
62
63
  :'pulp_labels' => :'Hash<String, String>',
63
- :'content_guard' => :'String',
64
- :'repository' => :'String',
65
64
  :'base_path' => :'String',
65
+ :'repository' => :'String',
66
+ :'content_guard' => :'String',
66
67
  :'hidden' => :'Boolean',
67
- :'name' => :'String',
68
68
  :'repository_version' => :'String',
69
69
  :'private' => :'Boolean',
70
70
  :'description' => :'String'
@@ -95,22 +95,26 @@ module PulpContainerClient
95
95
  h[k.to_sym] = v
96
96
  }
97
97
 
98
+ if attributes.key?(:'name')
99
+ self.name = attributes[:'name']
100
+ end
101
+
98
102
  if attributes.key?(:'pulp_labels')
99
103
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
100
104
  self.pulp_labels = value
101
105
  end
102
106
  end
103
107
 
104
- if attributes.key?(:'content_guard')
105
- self.content_guard = attributes[:'content_guard']
108
+ if attributes.key?(:'base_path')
109
+ self.base_path = attributes[:'base_path']
106
110
  end
107
111
 
108
112
  if attributes.key?(:'repository')
109
113
  self.repository = attributes[:'repository']
110
114
  end
111
115
 
112
- if attributes.key?(:'base_path')
113
- self.base_path = attributes[:'base_path']
116
+ if attributes.key?(:'content_guard')
117
+ self.content_guard = attributes[:'content_guard']
114
118
  end
115
119
 
116
120
  if attributes.key?(:'hidden')
@@ -119,10 +123,6 @@ module PulpContainerClient
119
123
  self.hidden = false
120
124
  end
121
125
 
122
- if attributes.key?(:'name')
123
- self.name = attributes[:'name']
124
- end
125
-
126
126
  if attributes.key?(:'repository_version')
127
127
  self.repository_version = attributes[:'repository_version']
128
128
  end
@@ -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)
@@ -217,12 +217,12 @@ module PulpContainerClient
217
217
  def ==(o)
218
218
  return true if self.equal?(o)
219
219
  self.class == o.class &&
220
+ name == o.name &&
220
221
  pulp_labels == o.pulp_labels &&
221
- content_guard == o.content_guard &&
222
- repository == o.repository &&
223
222
  base_path == o.base_path &&
223
+ repository == o.repository &&
224
+ content_guard == o.content_guard &&
224
225
  hidden == o.hidden &&
225
- name == o.name &&
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
- [pulp_labels, content_guard, repository, base_path, hidden, name, repository_version, private, description].hash
240
+ [name, pulp_labels, base_path, repository, content_guard, hidden, repository_version, private, description].hash
241
241
  end
242
242
 
243
243
  # Builds the object from hash
@@ -15,30 +15,30 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class ContainerContainerDistributionResponse
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
18
+ # A unique name. Ex, `rawhide` and `stable`.
19
+ attr_accessor :name
20
20
 
21
21
  attr_accessor :pulp_labels
22
22
 
23
- # An optional content-guard. If none is specified, a default one will be used.
24
- attr_accessor :content_guard
25
-
26
- attr_accessor :pulp_href
23
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
24
+ attr_accessor :base_path
27
25
 
28
- # Timestamp of creation.
29
- attr_accessor :pulp_created
26
+ # 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.
27
+ attr_accessor :pulp_last_updated
30
28
 
31
29
  # The latest RepositoryVersion for this Repository will be served.
32
30
  attr_accessor :repository
33
31
 
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
32
+ # An optional content-guard. If none is specified, a default one will be used.
33
+ attr_accessor :content_guard
36
34
 
37
35
  # Whether this distribution should be shown in the content app.
38
36
  attr_accessor :hidden
39
37
 
40
- # A unique name. Ex, `rawhide` and `stable`.
41
- attr_accessor :name
38
+ attr_accessor :pulp_href
39
+
40
+ # Timestamp of creation.
41
+ attr_accessor :pulp_created
42
42
 
43
43
  # RepositoryVersion to be served
44
44
  attr_accessor :repository_version
@@ -61,15 +61,15 @@ module PulpContainerClient
61
61
  # Attribute mapping from ruby-style variable name to JSON key.
62
62
  def self.attribute_map
63
63
  {
64
- :'pulp_last_updated' => :'pulp_last_updated',
64
+ :'name' => :'name',
65
65
  :'pulp_labels' => :'pulp_labels',
66
+ :'base_path' => :'base_path',
67
+ :'pulp_last_updated' => :'pulp_last_updated',
68
+ :'repository' => :'repository',
66
69
  :'content_guard' => :'content_guard',
70
+ :'hidden' => :'hidden',
67
71
  :'pulp_href' => :'pulp_href',
68
72
  :'pulp_created' => :'pulp_created',
69
- :'repository' => :'repository',
70
- :'base_path' => :'base_path',
71
- :'hidden' => :'hidden',
72
- :'name' => :'name',
73
73
  :'repository_version' => :'repository_version',
74
74
  :'registry_path' => :'registry_path',
75
75
  :'remote' => :'remote',
@@ -82,15 +82,15 @@ module PulpContainerClient
82
82
  # Attribute type mapping.
83
83
  def self.openapi_types
84
84
  {
85
- :'pulp_last_updated' => :'DateTime',
85
+ :'name' => :'String',
86
86
  :'pulp_labels' => :'Hash<String, String>',
87
+ :'base_path' => :'String',
88
+ :'pulp_last_updated' => :'DateTime',
89
+ :'repository' => :'String',
87
90
  :'content_guard' => :'String',
91
+ :'hidden' => :'Boolean',
88
92
  :'pulp_href' => :'String',
89
93
  :'pulp_created' => :'DateTime',
90
- :'repository' => :'String',
91
- :'base_path' => :'String',
92
- :'hidden' => :'Boolean',
93
- :'name' => :'String',
94
94
  :'repository_version' => :'String',
95
95
  :'registry_path' => :'String',
96
96
  :'remote' => :'String',
@@ -124,8 +124,8 @@ module PulpContainerClient
124
124
  h[k.to_sym] = v
125
125
  }
126
126
 
127
- if attributes.key?(:'pulp_last_updated')
128
- self.pulp_last_updated = attributes[:'pulp_last_updated']
127
+ if attributes.key?(:'name')
128
+ self.name = attributes[:'name']
129
129
  end
130
130
 
131
131
  if attributes.key?(:'pulp_labels')
@@ -134,24 +134,20 @@ module PulpContainerClient
134
134
  end
135
135
  end
136
136
 
137
- if attributes.key?(:'content_guard')
138
- self.content_guard = attributes[:'content_guard']
139
- end
140
-
141
- if attributes.key?(:'pulp_href')
142
- self.pulp_href = attributes[:'pulp_href']
137
+ if attributes.key?(:'base_path')
138
+ self.base_path = attributes[:'base_path']
143
139
  end
144
140
 
145
- if attributes.key?(:'pulp_created')
146
- self.pulp_created = attributes[:'pulp_created']
141
+ if attributes.key?(:'pulp_last_updated')
142
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
147
143
  end
148
144
 
149
145
  if attributes.key?(:'repository')
150
146
  self.repository = attributes[:'repository']
151
147
  end
152
148
 
153
- if attributes.key?(:'base_path')
154
- self.base_path = attributes[:'base_path']
149
+ if attributes.key?(:'content_guard')
150
+ self.content_guard = attributes[:'content_guard']
155
151
  end
156
152
 
157
153
  if attributes.key?(:'hidden')
@@ -160,8 +156,12 @@ module PulpContainerClient
160
156
  self.hidden = false
161
157
  end
162
158
 
163
- if attributes.key?(:'name')
164
- self.name = attributes[:'name']
159
+ if attributes.key?(:'pulp_href')
160
+ self.pulp_href = attributes[:'pulp_href']
161
+ end
162
+
163
+ if attributes.key?(:'pulp_created')
164
+ self.pulp_created = attributes[:'pulp_created']
165
165
  end
166
166
 
167
167
  if attributes.key?(:'repository_version')
@@ -193,22 +193,22 @@ module PulpContainerClient
193
193
  # @return Array for valid properties with the reasons
194
194
  def list_invalid_properties
195
195
  invalid_properties = Array.new
196
- if @base_path.nil?
197
- invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
198
- end
199
-
200
196
  if @name.nil?
201
197
  invalid_properties.push('invalid value for "name", name cannot be nil.')
202
198
  end
203
199
 
200
+ if @base_path.nil?
201
+ invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
202
+ end
203
+
204
204
  invalid_properties
205
205
  end
206
206
 
207
207
  # Check to see if the all the properties in the model are valid
208
208
  # @return true if the model is valid
209
209
  def valid?
210
- return false if @base_path.nil?
211
210
  return false if @name.nil?
211
+ return false if @base_path.nil?
212
212
  true
213
213
  end
214
214
 
@@ -217,15 +217,15 @@ module PulpContainerClient
217
217
  def ==(o)
218
218
  return true if self.equal?(o)
219
219
  self.class == o.class &&
220
- pulp_last_updated == o.pulp_last_updated &&
220
+ name == o.name &&
221
221
  pulp_labels == o.pulp_labels &&
222
+ base_path == o.base_path &&
223
+ pulp_last_updated == o.pulp_last_updated &&
224
+ repository == o.repository &&
222
225
  content_guard == o.content_guard &&
226
+ hidden == o.hidden &&
223
227
  pulp_href == o.pulp_href &&
224
228
  pulp_created == o.pulp_created &&
225
- repository == o.repository &&
226
- base_path == o.base_path &&
227
- hidden == o.hidden &&
228
- name == o.name &&
229
229
  repository_version == o.repository_version &&
230
230
  registry_path == o.registry_path &&
231
231
  remote == o.remote &&
@@ -243,7 +243,7 @@ module PulpContainerClient
243
243
  # Calculates hash code according to all attributes.
244
244
  # @return [Integer] Hash code
245
245
  def hash
246
- [pulp_last_updated, pulp_labels, content_guard, pulp_href, pulp_created, repository, base_path, hidden, name, repository_version, registry_path, remote, namespace, private, description].hash
246
+ [name, pulp_labels, base_path, pulp_last_updated, repository, content_guard, hidden, pulp_href, pulp_created, repository_version, registry_path, remote, namespace, private, description].hash
247
247
  end
248
248
 
249
249
  # Builds the object from hash
@@ -15,23 +15,23 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for a specialized pull-through distribution referencing sub-distributions.
17
17
  class ContainerContainerPullThroughDistribution
18
+ # A unique name. Ex, `rawhide` and `stable`.
19
+ attr_accessor :name
20
+
18
21
  attr_accessor :pulp_labels
19
22
 
20
- # An optional content-guard. If none is specified, a default one will be used.
21
- attr_accessor :content_guard
23
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
24
+ attr_accessor :base_path
22
25
 
23
26
  # The latest RepositoryVersion for this Repository will be served.
24
27
  attr_accessor :repository
25
28
 
26
- # 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
- attr_accessor :base_path
29
+ # An optional content-guard. If none is specified, a default one will be used.
30
+ attr_accessor :content_guard
28
31
 
29
32
  # Whether this distribution should be shown in the content app.
30
33
  attr_accessor :hidden
31
34
 
32
- # A unique name. Ex, `rawhide` and `stable`.
33
- attr_accessor :name
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
+ :'name' => :'name',
50
51
  :'pulp_labels' => :'pulp_labels',
51
- :'content_guard' => :'content_guard',
52
- :'repository' => :'repository',
53
52
  :'base_path' => :'base_path',
53
+ :'repository' => :'repository',
54
+ :'content_guard' => :'content_guard',
54
55
  :'hidden' => :'hidden',
55
- :'name' => :'name',
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
+ :'name' => :'String',
66
67
  :'pulp_labels' => :'Hash<String, String>',
67
- :'content_guard' => :'String',
68
- :'repository' => :'String',
69
68
  :'base_path' => :'String',
69
+ :'repository' => :'String',
70
+ :'content_guard' => :'String',
70
71
  :'hidden' => :'Boolean',
71
- :'name' => :'String',
72
72
  :'remote' => :'String',
73
73
  :'distributions' => :'Array<String>',
74
74
  :'private' => :'Boolean',
@@ -99,22 +99,26 @@ module PulpContainerClient
99
99
  h[k.to_sym] = v
100
100
  }
101
101
 
102
+ if attributes.key?(:'name')
103
+ self.name = attributes[:'name']
104
+ end
105
+
102
106
  if attributes.key?(:'pulp_labels')
103
107
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
104
108
  self.pulp_labels = value
105
109
  end
106
110
  end
107
111
 
108
- if attributes.key?(:'content_guard')
109
- self.content_guard = attributes[:'content_guard']
112
+ if attributes.key?(:'base_path')
113
+ self.base_path = attributes[:'base_path']
110
114
  end
111
115
 
112
116
  if attributes.key?(:'repository')
113
117
  self.repository = attributes[:'repository']
114
118
  end
115
119
 
116
- if attributes.key?(:'base_path')
117
- self.base_path = attributes[:'base_path']
120
+ if attributes.key?(:'content_guard')
121
+ self.content_guard = attributes[:'content_guard']
118
122
  end
119
123
 
120
124
  if attributes.key?(:'hidden')
@@ -123,10 +127,6 @@ module PulpContainerClient
123
127
  self.hidden = false
124
128
  end
125
129
 
126
- if attributes.key?(:'name')
127
- self.name = attributes[:'name']
128
- end
129
-
130
130
  if attributes.key?(:'remote')
131
131
  self.remote = attributes[:'remote']
132
132
  end
@@ -150,14 +150,6 @@ module PulpContainerClient
150
150
  # @return Array for valid properties with the reasons
151
151
  def list_invalid_properties
152
152
  invalid_properties = Array.new
153
- if @base_path.nil?
154
- invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
155
- end
156
-
157
- if @base_path.to_s.length < 1
158
- invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
159
- end
160
-
161
153
  if @name.nil?
162
154
  invalid_properties.push('invalid value for "name", name cannot be nil.')
163
155
  end
@@ -166,6 +158,14 @@ module PulpContainerClient
166
158
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
167
159
  end
168
160
 
161
+ if @base_path.nil?
162
+ invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
163
+ end
164
+
165
+ if @base_path.to_s.length < 1
166
+ invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
167
+ end
168
+
169
169
  if @remote.nil?
170
170
  invalid_properties.push('invalid value for "remote", remote cannot be nil.')
171
171
  end
@@ -180,29 +180,15 @@ module PulpContainerClient
180
180
  # Check to see if the all the properties in the model are valid
181
181
  # @return true if the model is valid
182
182
  def valid?
183
- return false if @base_path.nil?
184
- return false if @base_path.to_s.length < 1
185
183
  return false if @name.nil?
186
184
  return false if @name.to_s.length < 1
185
+ return false if @base_path.nil?
186
+ return false if @base_path.to_s.length < 1
187
187
  return false if @remote.nil?
188
188
  return false if !@description.nil? && @description.to_s.length < 1
189
189
  true
190
190
  end
191
191
 
192
- # Custom attribute writer method with validation
193
- # @param [Object] base_path Value to be assigned
194
- def base_path=(base_path)
195
- if base_path.nil?
196
- fail ArgumentError, 'base_path cannot be nil'
197
- end
198
-
199
- if base_path.to_s.length < 1
200
- fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
201
- end
202
-
203
- @base_path = base_path
204
- end
205
-
206
192
  # Custom attribute writer method with validation
207
193
  # @param [Object] name Value to be assigned
208
194
  def name=(name)
@@ -217,6 +203,20 @@ module PulpContainerClient
217
203
  @name = name
218
204
  end
219
205
 
206
+ # Custom attribute writer method with validation
207
+ # @param [Object] base_path Value to be assigned
208
+ def base_path=(base_path)
209
+ if base_path.nil?
210
+ fail ArgumentError, 'base_path cannot be nil'
211
+ end
212
+
213
+ if base_path.to_s.length < 1
214
+ fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
215
+ end
216
+
217
+ @base_path = base_path
218
+ end
219
+
220
220
  # Custom attribute writer method with validation
221
221
  # @param [Object] description Value to be assigned
222
222
  def description=(description)
@@ -232,12 +232,12 @@ module PulpContainerClient
232
232
  def ==(o)
233
233
  return true if self.equal?(o)
234
234
  self.class == o.class &&
235
+ name == o.name &&
235
236
  pulp_labels == o.pulp_labels &&
236
- content_guard == o.content_guard &&
237
- repository == o.repository &&
238
237
  base_path == o.base_path &&
238
+ repository == o.repository &&
239
+ content_guard == o.content_guard &&
239
240
  hidden == o.hidden &&
240
- name == o.name &&
241
241
  remote == o.remote &&
242
242
  distributions == o.distributions &&
243
243
  private == o.private &&
@@ -253,7 +253,7 @@ module PulpContainerClient
253
253
  # Calculates hash code according to all attributes.
254
254
  # @return [Integer] Hash code
255
255
  def hash
256
- [pulp_labels, content_guard, repository, base_path, hidden, name, remote, distributions, private, description].hash
256
+ [name, pulp_labels, base_path, repository, content_guard, hidden, remote, distributions, private, description].hash
257
257
  end
258
258
 
259
259
  # Builds the object from hash