pulp_container_client 2.0.0b3 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (156) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +69 -57
  3. data/docs/{ContainerBlob.md → ContainerBlobResponse.md} +2 -2
  4. data/docs/ContainerContainerDistribution.md +6 -12
  5. data/docs/ContainerContainerDistributionResponse.md +31 -0
  6. data/docs/ContainerContainerPushRepository.md +4 -10
  7. data/docs/ContainerContainerPushRepositoryResponse.md +29 -0
  8. data/docs/ContainerContainerRemote.md +8 -12
  9. data/docs/ContainerContainerRemoteResponse.md +49 -0
  10. data/docs/ContainerContainerRepository.md +4 -10
  11. data/docs/ContainerContainerRepositoryResponse.md +29 -0
  12. data/docs/ContainerContentRedirectContentGuard.md +1 -5
  13. data/docs/ContainerContentRedirectContentGuardResponse.md +23 -0
  14. data/docs/{ContainerManifest.md → ContainerManifestResponse.md} +2 -2
  15. data/docs/{ContainerTag.md → ContainerTagResponse.md} +2 -4
  16. data/docs/ContentBlobsApi.md +24 -24
  17. data/docs/ContentManifestsApi.md +24 -24
  18. data/docs/ContentSummary.md +3 -3
  19. data/docs/ContentSummaryResponse.md +21 -0
  20. data/docs/ContentTagsApi.md +26 -26
  21. data/docs/ContentguardsContentRedirectApi.md +55 -55
  22. data/docs/DistributionsContainerApi.md +108 -60
  23. data/docs/InlineResponse200.md +3 -3
  24. data/docs/InlineResponse2001.md +3 -3
  25. data/docs/InlineResponse2002.md +3 -3
  26. data/docs/InlineResponse2003.md +3 -3
  27. data/docs/InlineResponse2004.md +3 -3
  28. data/docs/InlineResponse2005.md +3 -3
  29. data/docs/InlineResponse2006.md +3 -3
  30. data/docs/InlineResponse2007.md +3 -3
  31. data/docs/InlineResponse2008.md +3 -3
  32. data/docs/ManifestCopy.md +1 -1
  33. data/docs/OCIBuildImage.md +23 -0
  34. data/docs/PatchedcontainerContainerDistribution.md +25 -0
  35. data/docs/PatchedcontainerContainerRemote.md +43 -0
  36. data/docs/PatchedcontainerContainerRepository.md +21 -0
  37. data/docs/PatchedcontainerContentRedirectContentGuard.md +19 -0
  38. data/docs/PolicyEnum.md +16 -0
  39. data/docs/RecursiveManage.md +1 -1
  40. data/docs/RemotesContainerApi.md +125 -65
  41. data/docs/RepositoriesContainerApi.md +158 -134
  42. data/docs/RepositoriesContainerPushApi.md +44 -148
  43. data/docs/RepositoriesContainerVersionsApi.md +190 -126
  44. data/docs/RepositorySyncURL.md +1 -1
  45. data/docs/RepositoryVersion.md +1 -9
  46. data/docs/RepositoryVersionResponse.md +25 -0
  47. data/docs/TagCopy.md +1 -1
  48. data/docs/TokenApi.md +8 -16
  49. data/lib/pulp_container_client/api/content_blobs_api.rb +38 -34
  50. data/lib/pulp_container_client/api/content_manifests_api.rb +38 -34
  51. data/lib/pulp_container_client/api/content_tags_api.rb +41 -37
  52. data/lib/pulp_container_client/api/contentguards_content_redirect_api.rb +90 -90
  53. data/lib/pulp_container_client/api/distributions_container_api.rb +153 -90
  54. data/lib/pulp_container_client/api/remotes_container_api.rb +181 -100
  55. data/lib/pulp_container_client/api/repositories_container_api.rb +245 -222
  56. data/lib/pulp_container_client/api/repositories_container_push_api.rb +66 -197
  57. data/lib/pulp_container_client/api/repositories_container_versions_api.rb +278 -188
  58. data/lib/pulp_container_client/api/token_api.rb +8 -14
  59. data/lib/pulp_container_client/api_client.rb +2 -2
  60. data/lib/pulp_container_client/api_error.rb +2 -2
  61. data/lib/pulp_container_client/configuration.rb +3 -3
  62. data/lib/pulp_container_client/models/async_operation_response.rb +3 -2
  63. data/lib/pulp_container_client/models/{container_blob.rb → container_blob_response.rb} +6 -43
  64. data/lib/pulp_container_client/models/container_container_distribution.rb +29 -110
  65. data/lib/pulp_container_client/models/container_container_distribution_response.rb +289 -0
  66. data/lib/pulp_container_client/models/container_container_push_repository.rb +18 -78
  67. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +271 -0
  68. data/lib/pulp_container_client/models/container_container_remote.rb +29 -227
  69. data/lib/pulp_container_client/models/container_container_remote_response.rb +409 -0
  70. data/lib/pulp_container_client/models/container_container_repository.rb +18 -78
  71. data/lib/pulp_container_client/models/container_container_repository_response.rb +271 -0
  72. data/lib/pulp_container_client/models/container_content_redirect_content_guard.rb +4 -56
  73. data/lib/pulp_container_client/models/container_content_redirect_content_guard_response.rb +243 -0
  74. data/lib/pulp_container_client/models/{container_manifest.rb → container_manifest_response.rb} +6 -43
  75. data/lib/pulp_container_client/models/{container_tag.rb → container_tag_response.rb} +7 -40
  76. data/lib/pulp_container_client/models/content_summary.rb +9 -15
  77. data/lib/pulp_container_client/models/content_summary_response.rb +240 -0
  78. data/lib/pulp_container_client/models/inline_response200.rb +3 -13
  79. data/lib/pulp_container_client/models/inline_response2001.rb +3 -13
  80. data/lib/pulp_container_client/models/inline_response2002.rb +3 -13
  81. data/lib/pulp_container_client/models/inline_response2003.rb +3 -13
  82. data/lib/pulp_container_client/models/inline_response2004.rb +3 -13
  83. data/lib/pulp_container_client/models/inline_response2005.rb +3 -13
  84. data/lib/pulp_container_client/models/inline_response2006.rb +3 -13
  85. data/lib/pulp_container_client/models/inline_response2007.rb +3 -13
  86. data/lib/pulp_container_client/models/inline_response2008.rb +3 -13
  87. data/lib/pulp_container_client/models/manifest_copy.rb +4 -3
  88. data/lib/pulp_container_client/models/oci_build_image.rb +240 -0
  89. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +250 -0
  90. data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +365 -0
  91. data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +229 -0
  92. data/lib/pulp_container_client/models/patchedcontainer_content_redirect_content_guard.rb +219 -0
  93. data/lib/pulp_container_client/models/policy_enum.rb +37 -0
  94. data/lib/pulp_container_client/models/recursive_manage.rb +4 -3
  95. data/lib/pulp_container_client/models/repository_sync_url.rb +3 -8
  96. data/lib/pulp_container_client/models/repository_version.rb +7 -43
  97. data/lib/pulp_container_client/models/repository_version_response.rb +246 -0
  98. data/lib/pulp_container_client/models/tag_copy.rb +4 -3
  99. data/lib/pulp_container_client/models/tag_image.rb +3 -40
  100. data/lib/pulp_container_client/models/un_tag_image.rb +3 -21
  101. data/lib/pulp_container_client/version.rb +3 -3
  102. data/lib/pulp_container_client.rb +18 -5
  103. data/pulp_container_client.gemspec +4 -4
  104. data/spec/api/content_blobs_api_spec.rb +11 -11
  105. data/spec/api/content_manifests_api_spec.rb +11 -11
  106. data/spec/api/content_tags_api_spec.rb +12 -12
  107. data/spec/api/contentguards_content_redirect_api_spec.rb +17 -17
  108. data/spec/api/distributions_container_api_spec.rb +39 -18
  109. data/spec/api/remotes_container_api_spec.rb +48 -21
  110. data/spec/api/repositories_container_api_spec.rb +41 -32
  111. data/spec/api/repositories_container_push_api_spec.rb +17 -40
  112. data/spec/api/repositories_container_versions_api_spec.rb +76 -46
  113. data/spec/api/token_api_spec.rb +4 -6
  114. data/spec/api_client_spec.rb +2 -2
  115. data/spec/configuration_spec.rb +2 -2
  116. data/spec/models/async_operation_response_spec.rb +2 -2
  117. data/spec/models/{container_blob_spec.rb → container_blob_response_spec.rb} +8 -8
  118. data/spec/models/container_container_distribution_response_spec.rb +83 -0
  119. data/spec/models/container_container_distribution_spec.rb +5 -23
  120. data/spec/models/container_container_push_repository_response_spec.rb +77 -0
  121. data/spec/models/container_container_push_repository_spec.rb +5 -23
  122. data/spec/models/container_container_remote_response_spec.rb +137 -0
  123. data/spec/models/container_container_remote_spec.rb +7 -23
  124. data/spec/models/container_container_repository_response_spec.rb +77 -0
  125. data/spec/models/container_container_repository_spec.rb +5 -23
  126. data/spec/models/container_content_redirect_content_guard_response_spec.rb +59 -0
  127. data/spec/models/container_content_redirect_content_guard_spec.rb +2 -14
  128. data/spec/models/{container_manifest_spec.rb → container_manifest_response_spec.rb} +8 -8
  129. data/spec/models/{container_tag_spec.rb → container_tag_response_spec.rb} +8 -14
  130. data/spec/models/content_summary_response_spec.rb +53 -0
  131. data/spec/models/content_summary_spec.rb +2 -2
  132. data/spec/models/inline_response2001_spec.rb +2 -2
  133. data/spec/models/inline_response2002_spec.rb +2 -2
  134. data/spec/models/inline_response2003_spec.rb +2 -2
  135. data/spec/models/inline_response2004_spec.rb +2 -2
  136. data/spec/models/inline_response2005_spec.rb +2 -2
  137. data/spec/models/inline_response2006_spec.rb +2 -2
  138. data/spec/models/inline_response2007_spec.rb +2 -2
  139. data/spec/models/inline_response2008_spec.rb +2 -2
  140. data/spec/models/inline_response200_spec.rb +2 -2
  141. data/spec/models/manifest_copy_spec.rb +2 -2
  142. data/spec/models/oci_build_image_spec.rb +59 -0
  143. data/spec/models/patchedcontainer_container_distribution_spec.rb +65 -0
  144. data/spec/models/patchedcontainer_container_remote_spec.rb +119 -0
  145. data/spec/models/patchedcontainer_container_repository_spec.rb +53 -0
  146. data/spec/models/patchedcontainer_content_redirect_content_guard_spec.rb +47 -0
  147. data/spec/models/policy_enum_spec.rb +35 -0
  148. data/spec/models/recursive_manage_spec.rb +2 -2
  149. data/spec/models/repository_sync_url_spec.rb +2 -2
  150. data/spec/models/repository_version_response_spec.rb +65 -0
  151. data/spec/models/repository_version_spec.rb +2 -26
  152. data/spec/models/tag_copy_spec.rb +2 -2
  153. data/spec/models/tag_image_spec.rb +2 -2
  154. data/spec/models/un_tag_image_spec.rb +2 -2
  155. data/spec/spec_helper.rb +2 -2
  156. metadata +93 -41
@@ -0,0 +1,271 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.2.3
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module PulpContainerClient
16
+ # Serializer for Container Push Repositories.
17
+ class ContainerContainerPushRepositoryResponse
18
+ attr_accessor :pulp_href
19
+
20
+ # Timestamp of creation.
21
+ attr_accessor :pulp_created
22
+
23
+ attr_accessor :versions_href
24
+
25
+ attr_accessor :latest_version_href
26
+
27
+ # A unique name for this repository.
28
+ attr_accessor :name
29
+
30
+ # An optional description.
31
+ attr_accessor :description
32
+
33
+ attr_accessor :remote
34
+
35
+ # Attribute mapping from ruby-style variable name to JSON key.
36
+ def self.attribute_map
37
+ {
38
+ :'pulp_href' => :'pulp_href',
39
+ :'pulp_created' => :'pulp_created',
40
+ :'versions_href' => :'versions_href',
41
+ :'latest_version_href' => :'latest_version_href',
42
+ :'name' => :'name',
43
+ :'description' => :'description',
44
+ :'remote' => :'remote'
45
+ }
46
+ end
47
+
48
+ # Attribute type mapping.
49
+ def self.openapi_types
50
+ {
51
+ :'pulp_href' => :'String',
52
+ :'pulp_created' => :'DateTime',
53
+ :'versions_href' => :'String',
54
+ :'latest_version_href' => :'String',
55
+ :'name' => :'String',
56
+ :'description' => :'String',
57
+ :'remote' => :'String'
58
+ }
59
+ end
60
+
61
+ # List of attributes with nullable: true
62
+ def self.openapi_nullable
63
+ Set.new([
64
+ :'description',
65
+ :'remote'
66
+ ])
67
+ end
68
+
69
+ # Initializes the object
70
+ # @param [Hash] attributes Model attributes in the form of hash
71
+ def initialize(attributes = {})
72
+ if (!attributes.is_a?(Hash))
73
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpContainerClient::ContainerContainerPushRepositoryResponse` initialize method"
74
+ end
75
+
76
+ # check to see if the attribute exists and convert string to symbol for hash key
77
+ attributes = attributes.each_with_object({}) { |(k, v), h|
78
+ if (!self.class.attribute_map.key?(k.to_sym))
79
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpContainerClient::ContainerContainerPushRepositoryResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
80
+ end
81
+ h[k.to_sym] = v
82
+ }
83
+
84
+ if attributes.key?(:'pulp_href')
85
+ self.pulp_href = attributes[:'pulp_href']
86
+ end
87
+
88
+ if attributes.key?(:'pulp_created')
89
+ self.pulp_created = attributes[:'pulp_created']
90
+ end
91
+
92
+ if attributes.key?(:'versions_href')
93
+ self.versions_href = attributes[:'versions_href']
94
+ end
95
+
96
+ if attributes.key?(:'latest_version_href')
97
+ self.latest_version_href = attributes[:'latest_version_href']
98
+ end
99
+
100
+ if attributes.key?(:'name')
101
+ self.name = attributes[:'name']
102
+ end
103
+
104
+ if attributes.key?(:'description')
105
+ self.description = attributes[:'description']
106
+ end
107
+
108
+ if attributes.key?(:'remote')
109
+ self.remote = attributes[:'remote']
110
+ end
111
+ end
112
+
113
+ # Show invalid properties with the reasons. Usually used together with valid?
114
+ # @return Array for valid properties with the reasons
115
+ def list_invalid_properties
116
+ invalid_properties = Array.new
117
+ if @name.nil?
118
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
119
+ end
120
+
121
+ invalid_properties
122
+ end
123
+
124
+ # Check to see if the all the properties in the model are valid
125
+ # @return true if the model is valid
126
+ def valid?
127
+ return false if @name.nil?
128
+ true
129
+ end
130
+
131
+ # Checks equality by comparing each attribute.
132
+ # @param [Object] Object to be compared
133
+ def ==(o)
134
+ return true if self.equal?(o)
135
+ self.class == o.class &&
136
+ pulp_href == o.pulp_href &&
137
+ pulp_created == o.pulp_created &&
138
+ versions_href == o.versions_href &&
139
+ latest_version_href == o.latest_version_href &&
140
+ name == o.name &&
141
+ description == o.description &&
142
+ remote == o.remote
143
+ end
144
+
145
+ # @see the `==` method
146
+ # @param [Object] Object to be compared
147
+ def eql?(o)
148
+ self == o
149
+ end
150
+
151
+ # Calculates hash code according to all attributes.
152
+ # @return [Integer] Hash code
153
+ def hash
154
+ [pulp_href, pulp_created, versions_href, latest_version_href, name, description, remote].hash
155
+ end
156
+
157
+ # Builds the object from hash
158
+ # @param [Hash] attributes Model attributes in the form of hash
159
+ # @return [Object] Returns the model itself
160
+ def self.build_from_hash(attributes)
161
+ new.build_from_hash(attributes)
162
+ end
163
+
164
+ # Builds the object from hash
165
+ # @param [Hash] attributes Model attributes in the form of hash
166
+ # @return [Object] Returns the model itself
167
+ def build_from_hash(attributes)
168
+ return nil unless attributes.is_a?(Hash)
169
+ self.class.openapi_types.each_pair do |key, type|
170
+ if type =~ /\AArray<(.*)>/i
171
+ # check to ensure the input is an array given that the attribute
172
+ # is documented as an array but the input is not
173
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
174
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
175
+ end
176
+ elsif !attributes[self.class.attribute_map[key]].nil?
177
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
178
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
179
+ end
180
+
181
+ self
182
+ end
183
+
184
+ # Deserializes the data based on type
185
+ # @param string type Data type
186
+ # @param string value Value to be deserialized
187
+ # @return [Object] Deserialized data
188
+ def _deserialize(type, value)
189
+ case type.to_sym
190
+ when :DateTime
191
+ DateTime.parse(value)
192
+ when :Date
193
+ Date.parse(value)
194
+ when :String
195
+ value.to_s
196
+ when :Integer
197
+ value.to_i
198
+ when :Float
199
+ value.to_f
200
+ when :Boolean
201
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
202
+ true
203
+ else
204
+ false
205
+ end
206
+ when :Object
207
+ # generic object (usually a Hash), return directly
208
+ value
209
+ when /\AArray<(?<inner_type>.+)>\z/
210
+ inner_type = Regexp.last_match[:inner_type]
211
+ value.map { |v| _deserialize(inner_type, v) }
212
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
213
+ k_type = Regexp.last_match[:k_type]
214
+ v_type = Regexp.last_match[:v_type]
215
+ {}.tap do |hash|
216
+ value.each do |k, v|
217
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
218
+ end
219
+ end
220
+ else # model
221
+ PulpContainerClient.const_get(type).build_from_hash(value)
222
+ end
223
+ end
224
+
225
+ # Returns the string representation of the object
226
+ # @return [String] String presentation of the object
227
+ def to_s
228
+ to_hash.to_s
229
+ end
230
+
231
+ # to_body is an alias to to_hash (backward compatibility)
232
+ # @return [Hash] Returns the object in the form of hash
233
+ def to_body
234
+ to_hash
235
+ end
236
+
237
+ # Returns the object in the form of hash
238
+ # @return [Hash] Returns the object in the form of hash
239
+ def to_hash
240
+ hash = {}
241
+ self.class.attribute_map.each_pair do |attr, param|
242
+ value = self.send(attr)
243
+ if value.nil?
244
+ is_nullable = self.class.openapi_nullable.include?(attr)
245
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
246
+ end
247
+
248
+ hash[param] = _to_hash(value)
249
+ end
250
+ hash
251
+ end
252
+
253
+ # Outputs non-array value in the form of hash
254
+ # For object, use to_hash. Otherwise, just return the value
255
+ # @param [Object] value Any valid value
256
+ # @return [Hash] Returns the value in the form of hash
257
+ def _to_hash(value)
258
+ if value.is_a?(Array)
259
+ value.compact.map { |v| _to_hash(v) }
260
+ elsif value.is_a?(Hash)
261
+ {}.tap do |hash|
262
+ value.each { |k, v| hash[k] = _to_hash(v) }
263
+ end
264
+ elsif value.respond_to? :to_hash
265
+ value.to_hash
266
+ else
267
+ value
268
+ end
269
+ end
270
+ end
271
+ end
@@ -1,10 +1,10 @@
1
1
  =begin
2
2
  #Pulp 3 API
3
3
 
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
5
 
6
6
  The version of the OpenAPI document: v3
7
-
7
+ Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.2.3
10
10
 
@@ -13,22 +13,18 @@ OpenAPI Generator version: 4.2.3
13
13
  require 'date'
14
14
 
15
15
  module PulpContainerClient
16
+ # A Serializer for ContainerRemote.
16
17
  class ContainerContainerRemote
17
- attr_accessor :pulp_href
18
-
19
- # Timestamp of creation.
20
- attr_accessor :pulp_created
21
-
22
18
  # A unique name for this remote.
23
19
  attr_accessor :name
24
20
 
25
21
  # The URL of an external content source.
26
22
  attr_accessor :url
27
23
 
28
- # A string containing the PEM encoded CA certificate used to validate the server certificate presented by the remote server. All new line characters must be escaped.
24
+ # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
29
25
  attr_accessor :ca_cert
30
26
 
31
- # A string containing the PEM encoded client certificate used for authentication. All new line characters must be escaped.
27
+ # A PEM encoded client certificate used for authentication.
32
28
  attr_accessor :client_cert
33
29
 
34
30
  # A PEM encoded private key used for authentication.
@@ -46,48 +42,24 @@ module PulpContainerClient
46
42
  # The password to be used for authentication when syncing.
47
43
  attr_accessor :password
48
44
 
49
- # Timestamp of the most recent update of the remote.
50
- attr_accessor :pulp_last_updated
51
-
52
45
  # Total number of simultaneous connections.
53
46
  attr_accessor :download_concurrency
54
47
 
55
- # immediate - All manifests and blobs are downloaded and saved during a sync. on_demand - Only tags and manifests are downloaded. Blobs are not downloaded until they are requested for the first time by a client. streamed - Blobs are streamed to the client with every request and never saved.
48
+ # immediate - All manifests and blobs are downloaded and saved during a sync. on_demand - Only tags and manifests are downloaded. Blobs are not downloaded until they are requested for the first time by a client. streamed - Blobs are streamed to the client with every request and never saved.
56
49
  attr_accessor :policy
57
50
 
58
51
  # Name of the upstream repository
59
52
  attr_accessor :upstream_name
60
53
 
61
- # A list of whitelisted tags to sync
62
- attr_accessor :whitelist_tags
63
-
64
- class EnumAttributeValidator
65
- attr_reader :datatype
66
- attr_reader :allowable_values
67
-
68
- def initialize(datatype, allowable_values)
69
- @allowable_values = allowable_values.map do |value|
70
- case datatype.to_s
71
- when /Integer/i
72
- value.to_i
73
- when /Float/i
74
- value.to_f
75
- else
76
- value
77
- end
78
- end
79
- end
54
+ # A list of tags to include during sync. Wildcards *, ? are recognized. 'include_tags' is evaluated before 'exclude_tags'.
55
+ attr_accessor :include_tags
80
56
 
81
- def valid?(value)
82
- !value || allowable_values.include?(value)
83
- end
84
- end
57
+ # A list of tags to exclude during sync. Wildcards *, ? are recognized. 'exclude_tags' is evaluated after 'include_tags'.
58
+ attr_accessor :exclude_tags
85
59
 
86
60
  # Attribute mapping from ruby-style variable name to JSON key.
87
61
  def self.attribute_map
88
62
  {
89
- :'pulp_href' => :'pulp_href',
90
- :'pulp_created' => :'pulp_created',
91
63
  :'name' => :'name',
92
64
  :'url' => :'url',
93
65
  :'ca_cert' => :'ca_cert',
@@ -97,19 +69,17 @@ module PulpContainerClient
97
69
  :'proxy_url' => :'proxy_url',
98
70
  :'username' => :'username',
99
71
  :'password' => :'password',
100
- :'pulp_last_updated' => :'pulp_last_updated',
101
72
  :'download_concurrency' => :'download_concurrency',
102
73
  :'policy' => :'policy',
103
74
  :'upstream_name' => :'upstream_name',
104
- :'whitelist_tags' => :'whitelist_tags'
75
+ :'include_tags' => :'include_tags',
76
+ :'exclude_tags' => :'exclude_tags'
105
77
  }
106
78
  end
107
79
 
108
80
  # Attribute type mapping.
109
81
  def self.openapi_types
110
82
  {
111
- :'pulp_href' => :'String',
112
- :'pulp_created' => :'DateTime',
113
83
  :'name' => :'String',
114
84
  :'url' => :'String',
115
85
  :'ca_cert' => :'String',
@@ -119,11 +89,11 @@ module PulpContainerClient
119
89
  :'proxy_url' => :'String',
120
90
  :'username' => :'String',
121
91
  :'password' => :'String',
122
- :'pulp_last_updated' => :'DateTime',
123
92
  :'download_concurrency' => :'Integer',
124
- :'policy' => :'String',
93
+ :'policy' => :'PolicyEnum',
125
94
  :'upstream_name' => :'String',
126
- :'whitelist_tags' => :'Array<String>'
95
+ :'include_tags' => :'Array<String>',
96
+ :'exclude_tags' => :'Array<String>'
127
97
  }
128
98
  end
129
99
 
@@ -136,7 +106,8 @@ module PulpContainerClient
136
106
  :'proxy_url',
137
107
  :'username',
138
108
  :'password',
139
- :'whitelist_tags'
109
+ :'include_tags',
110
+ :'exclude_tags'
140
111
  ])
141
112
  end
142
113
 
@@ -155,14 +126,6 @@ module PulpContainerClient
155
126
  h[k.to_sym] = v
156
127
  }
157
128
 
158
- if attributes.key?(:'pulp_href')
159
- self.pulp_href = attributes[:'pulp_href']
160
- end
161
-
162
- if attributes.key?(:'pulp_created')
163
- self.pulp_created = attributes[:'pulp_created']
164
- end
165
-
166
129
  if attributes.key?(:'name')
167
130
  self.name = attributes[:'name']
168
131
  end
@@ -199,27 +162,27 @@ module PulpContainerClient
199
162
  self.password = attributes[:'password']
200
163
  end
201
164
 
202
- if attributes.key?(:'pulp_last_updated')
203
- self.pulp_last_updated = attributes[:'pulp_last_updated']
204
- end
205
-
206
165
  if attributes.key?(:'download_concurrency')
207
166
  self.download_concurrency = attributes[:'download_concurrency']
208
167
  end
209
168
 
210
169
  if attributes.key?(:'policy')
211
170
  self.policy = attributes[:'policy']
212
- else
213
- self.policy = 'immediate'
214
171
  end
215
172
 
216
173
  if attributes.key?(:'upstream_name')
217
174
  self.upstream_name = attributes[:'upstream_name']
218
175
  end
219
176
 
220
- if attributes.key?(:'whitelist_tags')
221
- if (value = attributes[:'whitelist_tags']).is_a?(Array)
222
- self.whitelist_tags = value
177
+ if attributes.key?(:'include_tags')
178
+ if (value = attributes[:'include_tags']).is_a?(Array)
179
+ self.include_tags = value
180
+ end
181
+ end
182
+
183
+ if attributes.key?(:'exclude_tags')
184
+ if (value = attributes[:'exclude_tags']).is_a?(Array)
185
+ self.exclude_tags = value
223
186
  end
224
187
  end
225
188
  end
@@ -232,42 +195,10 @@ module PulpContainerClient
232
195
  invalid_properties.push('invalid value for "name", name cannot be nil.')
233
196
  end
234
197
 
235
- if @name.to_s.length < 1
236
- invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
237
- end
238
-
239
198
  if @url.nil?
240
199
  invalid_properties.push('invalid value for "url", url cannot be nil.')
241
200
  end
242
201
 
243
- if @url.to_s.length < 1
244
- invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
245
- end
246
-
247
- if !@ca_cert.nil? && @ca_cert.to_s.length < 1
248
- invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
249
- end
250
-
251
- if !@client_cert.nil? && @client_cert.to_s.length < 1
252
- invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
253
- end
254
-
255
- if !@client_key.nil? && @client_key.to_s.length < 1
256
- invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
257
- end
258
-
259
- if !@proxy_url.nil? && @proxy_url.to_s.length < 1
260
- invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
261
- end
262
-
263
- if !@username.nil? && @username.to_s.length < 1
264
- invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
265
- end
266
-
267
- if !@password.nil? && @password.to_s.length < 1
268
- invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
269
- end
270
-
271
202
  if !@download_concurrency.nil? && @download_concurrency < 1
272
203
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
273
204
  end
@@ -276,10 +207,6 @@ module PulpContainerClient
276
207
  invalid_properties.push('invalid value for "upstream_name", upstream_name cannot be nil.')
277
208
  end
278
209
 
279
- if @upstream_name.to_s.length < 1
280
- invalid_properties.push('invalid value for "upstream_name", the character length must be great than or equal to 1.')
281
- end
282
-
283
210
  invalid_properties
284
211
  end
285
212
 
@@ -287,111 +214,12 @@ module PulpContainerClient
287
214
  # @return true if the model is valid
288
215
  def valid?
289
216
  return false if @name.nil?
290
- return false if @name.to_s.length < 1
291
217
  return false if @url.nil?
292
- return false if @url.to_s.length < 1
293
- return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
294
- return false if !@client_cert.nil? && @client_cert.to_s.length < 1
295
- return false if !@client_key.nil? && @client_key.to_s.length < 1
296
- return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
297
- return false if !@username.nil? && @username.to_s.length < 1
298
- return false if !@password.nil? && @password.to_s.length < 1
299
218
  return false if !@download_concurrency.nil? && @download_concurrency < 1
300
- policy_validator = EnumAttributeValidator.new('String', ["immediate", "on_demand", "streamed"])
301
- return false unless policy_validator.valid?(@policy)
302
219
  return false if @upstream_name.nil?
303
- return false if @upstream_name.to_s.length < 1
304
220
  true
305
221
  end
306
222
 
307
- # Custom attribute writer method with validation
308
- # @param [Object] name Value to be assigned
309
- def name=(name)
310
- if name.nil?
311
- fail ArgumentError, 'name cannot be nil'
312
- end
313
-
314
- if name.to_s.length < 1
315
- fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
316
- end
317
-
318
- @name = name
319
- end
320
-
321
- # Custom attribute writer method with validation
322
- # @param [Object] url Value to be assigned
323
- def url=(url)
324
- if url.nil?
325
- fail ArgumentError, 'url cannot be nil'
326
- end
327
-
328
- if url.to_s.length < 1
329
- fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
330
- end
331
-
332
- @url = url
333
- end
334
-
335
- # Custom attribute writer method with validation
336
- # @param [Object] ca_cert Value to be assigned
337
- def ca_cert=(ca_cert)
338
- if !ca_cert.nil? && ca_cert.to_s.length < 1
339
- fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
340
- end
341
-
342
- @ca_cert = ca_cert
343
- end
344
-
345
- # Custom attribute writer method with validation
346
- # @param [Object] client_cert Value to be assigned
347
- def client_cert=(client_cert)
348
- if !client_cert.nil? && client_cert.to_s.length < 1
349
- fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
350
- end
351
-
352
- @client_cert = client_cert
353
- end
354
-
355
- # Custom attribute writer method with validation
356
- # @param [Object] client_key Value to be assigned
357
- def client_key=(client_key)
358
- if !client_key.nil? && client_key.to_s.length < 1
359
- fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
360
- end
361
-
362
- @client_key = client_key
363
- end
364
-
365
- # Custom attribute writer method with validation
366
- # @param [Object] proxy_url Value to be assigned
367
- def proxy_url=(proxy_url)
368
- if !proxy_url.nil? && proxy_url.to_s.length < 1
369
- fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
370
- end
371
-
372
- @proxy_url = proxy_url
373
- end
374
-
375
- # Custom attribute writer method with validation
376
- # @param [Object] username Value to be assigned
377
- def username=(username)
378
- if !username.nil? && username.to_s.length < 1
379
- fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
380
- end
381
-
382
- @username = username
383
- end
384
-
385
- # Custom attribute writer method with validation
386
- # @param [Object] password Value to be assigned
387
- def password=(password)
388
- if !password.nil? && password.to_s.length < 1
389
- fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
390
- end
391
-
392
- @password = password
393
- end
394
-
395
223
  # Custom attribute writer method with validation
396
224
  # @param [Object] download_concurrency Value to be assigned
397
225
  def download_concurrency=(download_concurrency)
@@ -402,37 +230,11 @@ module PulpContainerClient
402
230
  @download_concurrency = download_concurrency
403
231
  end
404
232
 
405
- # Custom attribute writer method checking allowed values (enum).
406
- # @param [Object] policy Object to be assigned
407
- def policy=(policy)
408
- validator = EnumAttributeValidator.new('String', ["immediate", "on_demand", "streamed"])
409
- unless validator.valid?(policy)
410
- fail ArgumentError, "invalid value for \"policy\", must be one of #{validator.allowable_values}."
411
- end
412
- @policy = policy
413
- end
414
-
415
- # Custom attribute writer method with validation
416
- # @param [Object] upstream_name Value to be assigned
417
- def upstream_name=(upstream_name)
418
- if upstream_name.nil?
419
- fail ArgumentError, 'upstream_name cannot be nil'
420
- end
421
-
422
- if upstream_name.to_s.length < 1
423
- fail ArgumentError, 'invalid value for "upstream_name", the character length must be great than or equal to 1.'
424
- end
425
-
426
- @upstream_name = upstream_name
427
- end
428
-
429
233
  # Checks equality by comparing each attribute.
430
234
  # @param [Object] Object to be compared
431
235
  def ==(o)
432
236
  return true if self.equal?(o)
433
237
  self.class == o.class &&
434
- pulp_href == o.pulp_href &&
435
- pulp_created == o.pulp_created &&
436
238
  name == o.name &&
437
239
  url == o.url &&
438
240
  ca_cert == o.ca_cert &&
@@ -442,11 +244,11 @@ module PulpContainerClient
442
244
  proxy_url == o.proxy_url &&
443
245
  username == o.username &&
444
246
  password == o.password &&
445
- pulp_last_updated == o.pulp_last_updated &&
446
247
  download_concurrency == o.download_concurrency &&
447
248
  policy == o.policy &&
448
249
  upstream_name == o.upstream_name &&
449
- whitelist_tags == o.whitelist_tags
250
+ include_tags == o.include_tags &&
251
+ exclude_tags == o.exclude_tags
450
252
  end
451
253
 
452
254
  # @see the `==` method
@@ -458,7 +260,7 @@ module PulpContainerClient
458
260
  # Calculates hash code according to all attributes.
459
261
  # @return [Integer] Hash code
460
262
  def hash
461
- [pulp_href, pulp_created, name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_last_updated, download_concurrency, policy, upstream_name, whitelist_tags].hash
263
+ [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, download_concurrency, policy, upstream_name, include_tags, exclude_tags].hash
462
264
  end
463
265
 
464
266
  # Builds the object from hash