pulp_container_client 2.17.0 → 2.18.1

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 (80) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +40 -6
  3. data/docs/ContainerContainerDistribution.md +6 -6
  4. data/docs/ContainerContainerDistributionResponse.md +12 -10
  5. data/docs/ContainerContainerPullThroughDistribution.md +35 -0
  6. data/docs/ContainerContainerPullThroughDistributionResponse.md +41 -0
  7. data/docs/ContainerContainerPullThroughRemote.md +57 -0
  8. data/docs/ContainerContainerPullThroughRemoteResponse.md +55 -0
  9. data/docs/{ContainerContainerRemoteResponseHiddenFields.md → ContainerContainerPullThroughRemoteResponseHiddenFields.md} +2 -2
  10. data/docs/ContainerContainerPushRepository.md +3 -3
  11. data/docs/ContainerContainerPushRepositoryResponse.md +12 -12
  12. data/docs/ContainerContainerRemote.md +1 -1
  13. data/docs/ContainerContainerRemoteResponse.md +2 -2
  14. data/docs/ContentBlobsApi.md +2 -0
  15. data/docs/ContentManifestsApi.md +2 -0
  16. data/docs/ContentSignaturesApi.md +2 -0
  17. data/docs/ContentTagsApi.md +2 -0
  18. data/docs/DistributionsPullThroughApi.md +736 -0
  19. data/docs/PaginatedcontainerContainerPullThroughDistributionResponseList.md +23 -0
  20. data/docs/PaginatedcontainerContainerPullThroughRemoteResponseList.md +23 -0
  21. data/docs/PatchedcontainerContainerDistribution.md +6 -6
  22. data/docs/PatchedcontainerContainerPullThroughDistribution.md +35 -0
  23. data/docs/PatchedcontainerContainerPullThroughRemote.md +57 -0
  24. data/docs/PatchedcontainerContainerPushRepository.md +3 -3
  25. data/docs/PatchedcontainerContainerRemote.md +1 -1
  26. data/docs/{PolicyEnum.md → Policy762Enum.md} +2 -2
  27. data/docs/Policy8e2Enum.md +16 -0
  28. data/docs/RemotesPullThroughApi.md +734 -0
  29. data/lib/pulp_container_client/api/content_blobs_api.rb +3 -0
  30. data/lib/pulp_container_client/api/content_manifests_api.rb +3 -0
  31. data/lib/pulp_container_client/api/content_signatures_api.rb +3 -0
  32. data/lib/pulp_container_client/api/content_tags_api.rb +3 -0
  33. data/lib/pulp_container_client/api/distributions_pull_through_api.rb +907 -0
  34. data/lib/pulp_container_client/api/remotes_pull_through_api.rb +904 -0
  35. data/lib/pulp_container_client/models/container_container_distribution.rb +52 -52
  36. data/lib/pulp_container_client/models/container_container_distribution_response.rb +60 -50
  37. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +373 -0
  38. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +349 -0
  39. data/lib/pulp_container_client/models/container_container_pull_through_remote.rb +668 -0
  40. data/lib/pulp_container_client/models/container_container_pull_through_remote_response.rb +496 -0
  41. data/lib/pulp_container_client/models/{container_container_remote_response_hidden_fields.rb → container_container_pull_through_remote_response_hidden_fields.rb} +3 -3
  42. data/lib/pulp_container_client/models/container_container_push_repository.rb +30 -30
  43. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +47 -47
  44. data/lib/pulp_container_client/models/container_container_remote.rb +1 -1
  45. data/lib/pulp_container_client/models/container_container_remote_response.rb +2 -2
  46. data/lib/pulp_container_client/models/paginatedcontainer_container_pull_through_distribution_response_list.rb +237 -0
  47. data/lib/pulp_container_client/models/paginatedcontainer_container_pull_through_remote_response_list.rb +237 -0
  48. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +43 -43
  49. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +350 -0
  50. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_remote.rb +650 -0
  51. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +30 -30
  52. data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +1 -1
  53. data/lib/pulp_container_client/models/{policy_enum.rb → policy762_enum.rb} +3 -3
  54. data/lib/pulp_container_client/models/policy8e2_enum.rb +35 -0
  55. data/lib/pulp_container_client/version.rb +1 -1
  56. data/lib/pulp_container_client.rb +13 -2
  57. data/spec/api/content_blobs_api_spec.rb +1 -0
  58. data/spec/api/content_manifests_api_spec.rb +1 -0
  59. data/spec/api/content_signatures_api_spec.rb +1 -0
  60. data/spec/api/content_tags_api_spec.rb +1 -0
  61. data/spec/api/distributions_pull_through_api_spec.rb +215 -0
  62. data/spec/api/remotes_pull_through_api_spec.rb +214 -0
  63. data/spec/models/container_container_distribution_response_spec.rb +14 -8
  64. data/spec/models/container_container_distribution_spec.rb +5 -5
  65. data/spec/models/container_container_pull_through_distribution_response_spec.rb +113 -0
  66. data/spec/models/container_container_pull_through_distribution_spec.rb +95 -0
  67. data/spec/models/{container_container_remote_response_hidden_fields_spec.rb → container_container_pull_through_remote_response_hidden_fields_spec.rb} +6 -6
  68. data/spec/models/container_container_pull_through_remote_response_spec.rb +155 -0
  69. data/spec/models/container_container_pull_through_remote_spec.rb +161 -0
  70. data/spec/models/container_container_push_repository_response_spec.rb +8 -8
  71. data/spec/models/container_container_push_repository_spec.rb +3 -3
  72. data/spec/models/paginatedcontainer_container_pull_through_distribution_response_list_spec.rb +59 -0
  73. data/spec/models/paginatedcontainer_container_pull_through_remote_response_list_spec.rb +59 -0
  74. data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
  75. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +95 -0
  76. data/spec/models/patchedcontainer_container_pull_through_remote_spec.rb +161 -0
  77. data/spec/models/patchedcontainer_container_push_repository_spec.rb +3 -3
  78. data/spec/models/{policy_enum_spec.rb → policy762_enum_spec.rb} +6 -6
  79. data/spec/models/policy8e2_enum_spec.rb +35 -0
  80. metadata +102 -58
@@ -15,23 +15,23 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class ContainerContainerDistribution
18
- # The latest RepositoryVersion for this Repository will be served.
19
- attr_accessor :repository
18
+ # An optional content-guard. If none is specified, a default one will be used.
19
+ attr_accessor :content_guard
20
20
 
21
21
  attr_accessor :pulp_labels
22
22
 
23
+ # A unique name. Ex, `rawhide` and `stable`.
24
+ attr_accessor :name
25
+
26
+ # The latest RepositoryVersion for this Repository will be served.
27
+ attr_accessor :repository
28
+
23
29
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
24
30
  attr_accessor :base_path
25
31
 
26
32
  # Whether this distribution should be shown in the content app.
27
33
  attr_accessor :hidden
28
34
 
29
- # An optional content-guard. If none is specified, a default one will be used.
30
- attr_accessor :content_guard
31
-
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
- :'repository' => :'repository',
47
+ :'content_guard' => :'content_guard',
48
48
  :'pulp_labels' => :'pulp_labels',
49
+ :'name' => :'name',
50
+ :'repository' => :'repository',
49
51
  :'base_path' => :'base_path',
50
52
  :'hidden' => :'hidden',
51
- :'content_guard' => :'content_guard',
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
- :'repository' => :'String',
62
+ :'content_guard' => :'String',
63
63
  :'pulp_labels' => :'Hash<String, String>',
64
+ :'name' => :'String',
65
+ :'repository' => :'String',
64
66
  :'base_path' => :'String',
65
67
  :'hidden' => :'Boolean',
66
- :'content_guard' => :'String',
67
- :'name' => :'String',
68
68
  :'repository_version' => :'String',
69
69
  :'private' => :'Boolean',
70
70
  :'description' => :'String'
@@ -95,8 +95,8 @@ module PulpContainerClient
95
95
  h[k.to_sym] = v
96
96
  }
97
97
 
98
- if attributes.key?(:'repository')
99
- self.repository = attributes[:'repository']
98
+ if attributes.key?(:'content_guard')
99
+ self.content_guard = attributes[:'content_guard']
100
100
  end
101
101
 
102
102
  if attributes.key?(:'pulp_labels')
@@ -105,6 +105,14 @@ module PulpContainerClient
105
105
  end
106
106
  end
107
107
 
108
+ if attributes.key?(:'name')
109
+ self.name = attributes[:'name']
110
+ end
111
+
112
+ if attributes.key?(:'repository')
113
+ self.repository = attributes[:'repository']
114
+ end
115
+
108
116
  if attributes.key?(:'base_path')
109
117
  self.base_path = attributes[:'base_path']
110
118
  end
@@ -115,14 +123,6 @@ module PulpContainerClient
115
123
  self.hidden = false
116
124
  end
117
125
 
118
- if attributes.key?(:'content_guard')
119
- self.content_guard = attributes[:'content_guard']
120
- end
121
-
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
- repository == o.repository &&
220
+ content_guard == o.content_guard &&
221
221
  pulp_labels == o.pulp_labels &&
222
+ name == o.name &&
223
+ repository == o.repository &&
222
224
  base_path == o.base_path &&
223
225
  hidden == o.hidden &&
224
- content_guard == o.content_guard &&
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
- [repository, pulp_labels, base_path, hidden, content_guard, name, repository_version, private, description].hash
240
+ [content_guard, pulp_labels, name, repository, base_path, hidden, repository_version, private, description].hash
241
241
  end
242
242
 
243
243
  # Builds the object from hash
@@ -15,13 +15,21 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class ContainerContainerDistributionResponse
18
- # Timestamp of creation.
19
- attr_accessor :pulp_created
18
+ # An optional content-guard. If none is specified, a default one will be used.
19
+ attr_accessor :content_guard
20
+
21
+ attr_accessor :pulp_labels
22
+
23
+ attr_accessor :pulp_href
24
+
25
+ # A unique name. Ex, `rawhide` and `stable`.
26
+ attr_accessor :name
20
27
 
21
28
  # The latest RepositoryVersion for this Repository will be served.
22
29
  attr_accessor :repository
23
30
 
24
- attr_accessor :pulp_labels
31
+ # Timestamp of creation.
32
+ attr_accessor :pulp_created
25
33
 
26
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\")
27
35
  attr_accessor :base_path
@@ -29,20 +37,15 @@ module PulpContainerClient
29
37
  # Whether this distribution should be shown in the content app.
30
38
  attr_accessor :hidden
31
39
 
32
- attr_accessor :pulp_href
33
-
34
- # An optional content-guard. If none is specified, a default one will be used.
35
- attr_accessor :content_guard
36
-
37
- # A unique name. Ex, `rawhide` and `stable`.
38
- attr_accessor :name
39
-
40
40
  # RepositoryVersion to be served
41
41
  attr_accessor :repository_version
42
42
 
43
43
  # The Registry hostname/name/ to use with docker pull command defined by this distribution.
44
44
  attr_accessor :registry_path
45
45
 
46
+ # Remote that can be used to fetch content when using pull-through caching.
47
+ attr_accessor :remote
48
+
46
49
  # Namespace this distribution belongs to.
47
50
  attr_accessor :namespace
48
51
 
@@ -55,16 +58,17 @@ module PulpContainerClient
55
58
  # Attribute mapping from ruby-style variable name to JSON key.
56
59
  def self.attribute_map
57
60
  {
58
- :'pulp_created' => :'pulp_created',
59
- :'repository' => :'repository',
61
+ :'content_guard' => :'content_guard',
60
62
  :'pulp_labels' => :'pulp_labels',
61
- :'base_path' => :'base_path',
62
- :'hidden' => :'hidden',
63
63
  :'pulp_href' => :'pulp_href',
64
- :'content_guard' => :'content_guard',
65
64
  :'name' => :'name',
65
+ :'repository' => :'repository',
66
+ :'pulp_created' => :'pulp_created',
67
+ :'base_path' => :'base_path',
68
+ :'hidden' => :'hidden',
66
69
  :'repository_version' => :'repository_version',
67
70
  :'registry_path' => :'registry_path',
71
+ :'remote' => :'remote',
68
72
  :'namespace' => :'namespace',
69
73
  :'private' => :'private',
70
74
  :'description' => :'description'
@@ -74,16 +78,17 @@ module PulpContainerClient
74
78
  # Attribute type mapping.
75
79
  def self.openapi_types
76
80
  {
77
- :'pulp_created' => :'DateTime',
78
- :'repository' => :'String',
81
+ :'content_guard' => :'String',
79
82
  :'pulp_labels' => :'Hash<String, String>',
80
- :'base_path' => :'String',
81
- :'hidden' => :'Boolean',
82
83
  :'pulp_href' => :'String',
83
- :'content_guard' => :'String',
84
84
  :'name' => :'String',
85
+ :'repository' => :'String',
86
+ :'pulp_created' => :'DateTime',
87
+ :'base_path' => :'String',
88
+ :'hidden' => :'Boolean',
85
89
  :'repository_version' => :'String',
86
90
  :'registry_path' => :'String',
91
+ :'remote' => :'String',
87
92
  :'namespace' => :'String',
88
93
  :'private' => :'Boolean',
89
94
  :'description' => :'String'
@@ -114,12 +119,8 @@ module PulpContainerClient
114
119
  h[k.to_sym] = v
115
120
  }
116
121
 
117
- if attributes.key?(:'pulp_created')
118
- self.pulp_created = attributes[:'pulp_created']
119
- end
120
-
121
- if attributes.key?(:'repository')
122
- self.repository = attributes[:'repository']
122
+ if attributes.key?(:'content_guard')
123
+ self.content_guard = attributes[:'content_guard']
123
124
  end
124
125
 
125
126
  if attributes.key?(:'pulp_labels')
@@ -128,26 +129,30 @@ module PulpContainerClient
128
129
  end
129
130
  end
130
131
 
131
- if attributes.key?(:'base_path')
132
- self.base_path = attributes[:'base_path']
132
+ if attributes.key?(:'pulp_href')
133
+ self.pulp_href = attributes[:'pulp_href']
133
134
  end
134
135
 
135
- if attributes.key?(:'hidden')
136
- self.hidden = attributes[:'hidden']
137
- else
138
- self.hidden = false
136
+ if attributes.key?(:'name')
137
+ self.name = attributes[:'name']
139
138
  end
140
139
 
141
- if attributes.key?(:'pulp_href')
142
- self.pulp_href = attributes[:'pulp_href']
140
+ if attributes.key?(:'repository')
141
+ self.repository = attributes[:'repository']
143
142
  end
144
143
 
145
- if attributes.key?(:'content_guard')
146
- self.content_guard = attributes[:'content_guard']
144
+ if attributes.key?(:'pulp_created')
145
+ self.pulp_created = attributes[:'pulp_created']
147
146
  end
148
147
 
149
- if attributes.key?(:'name')
150
- self.name = attributes[:'name']
148
+ if attributes.key?(:'base_path')
149
+ self.base_path = attributes[:'base_path']
150
+ end
151
+
152
+ if attributes.key?(:'hidden')
153
+ self.hidden = attributes[:'hidden']
154
+ else
155
+ self.hidden = false
151
156
  end
152
157
 
153
158
  if attributes.key?(:'repository_version')
@@ -158,6 +163,10 @@ module PulpContainerClient
158
163
  self.registry_path = attributes[:'registry_path']
159
164
  end
160
165
 
166
+ if attributes.key?(:'remote')
167
+ self.remote = attributes[:'remote']
168
+ end
169
+
161
170
  if attributes.key?(:'namespace')
162
171
  self.namespace = attributes[:'namespace']
163
172
  end
@@ -175,22 +184,22 @@ module PulpContainerClient
175
184
  # @return Array for valid properties with the reasons
176
185
  def list_invalid_properties
177
186
  invalid_properties = Array.new
178
- if @base_path.nil?
179
- invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
180
- end
181
-
182
187
  if @name.nil?
183
188
  invalid_properties.push('invalid value for "name", name cannot be nil.')
184
189
  end
185
190
 
191
+ if @base_path.nil?
192
+ invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
193
+ end
194
+
186
195
  invalid_properties
187
196
  end
188
197
 
189
198
  # Check to see if the all the properties in the model are valid
190
199
  # @return true if the model is valid
191
200
  def valid?
192
- return false if @base_path.nil?
193
201
  return false if @name.nil?
202
+ return false if @base_path.nil?
194
203
  true
195
204
  end
196
205
 
@@ -199,16 +208,17 @@ module PulpContainerClient
199
208
  def ==(o)
200
209
  return true if self.equal?(o)
201
210
  self.class == o.class &&
202
- pulp_created == o.pulp_created &&
203
- repository == o.repository &&
211
+ content_guard == o.content_guard &&
204
212
  pulp_labels == o.pulp_labels &&
205
- base_path == o.base_path &&
206
- hidden == o.hidden &&
207
213
  pulp_href == o.pulp_href &&
208
- content_guard == o.content_guard &&
209
214
  name == o.name &&
215
+ repository == o.repository &&
216
+ pulp_created == o.pulp_created &&
217
+ base_path == o.base_path &&
218
+ hidden == o.hidden &&
210
219
  repository_version == o.repository_version &&
211
220
  registry_path == o.registry_path &&
221
+ remote == o.remote &&
212
222
  namespace == o.namespace &&
213
223
  private == o.private &&
214
224
  description == o.description
@@ -223,7 +233,7 @@ module PulpContainerClient
223
233
  # Calculates hash code according to all attributes.
224
234
  # @return [Integer] Hash code
225
235
  def hash
226
- [pulp_created, repository, pulp_labels, base_path, hidden, pulp_href, content_guard, name, repository_version, registry_path, namespace, private, description].hash
236
+ [content_guard, pulp_labels, pulp_href, name, repository, pulp_created, base_path, hidden, repository_version, registry_path, remote, namespace, private, description].hash
227
237
  end
228
238
 
229
239
  # Builds the object from hash