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,246 @@
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
+ # Base serializer for use with :class:`pulpcore.app.models.Model` This ensures that all Serializers provide values for the 'pulp_href` field. The class provides a default for the ``ref_name`` attribute in the ModelSerializers's ``Meta`` class. This ensures that the OpenAPI definitions of plugins are namespaced properly.
17
+ class RepositoryVersionResponse
18
+ attr_accessor :pulp_href
19
+
20
+ # Timestamp of creation.
21
+ attr_accessor :pulp_created
22
+
23
+ attr_accessor :number
24
+
25
+ # A repository version whose content was used as the initial set of content for this repository version
26
+ attr_accessor :base_version
27
+
28
+ # Various count summaries of the content in the version and the HREF to view them.
29
+ attr_accessor :content_summary
30
+
31
+ # Attribute mapping from ruby-style variable name to JSON key.
32
+ def self.attribute_map
33
+ {
34
+ :'pulp_href' => :'pulp_href',
35
+ :'pulp_created' => :'pulp_created',
36
+ :'number' => :'number',
37
+ :'base_version' => :'base_version',
38
+ :'content_summary' => :'content_summary'
39
+ }
40
+ end
41
+
42
+ # Attribute type mapping.
43
+ def self.openapi_types
44
+ {
45
+ :'pulp_href' => :'String',
46
+ :'pulp_created' => :'DateTime',
47
+ :'number' => :'Integer',
48
+ :'base_version' => :'String',
49
+ :'content_summary' => :'ContentSummaryResponse'
50
+ }
51
+ end
52
+
53
+ # List of attributes with nullable: true
54
+ def self.openapi_nullable
55
+ Set.new([
56
+ ])
57
+ end
58
+
59
+ # Initializes the object
60
+ # @param [Hash] attributes Model attributes in the form of hash
61
+ def initialize(attributes = {})
62
+ if (!attributes.is_a?(Hash))
63
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpContainerClient::RepositoryVersionResponse` initialize method"
64
+ end
65
+
66
+ # check to see if the attribute exists and convert string to symbol for hash key
67
+ attributes = attributes.each_with_object({}) { |(k, v), h|
68
+ if (!self.class.attribute_map.key?(k.to_sym))
69
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpContainerClient::RepositoryVersionResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
70
+ end
71
+ h[k.to_sym] = v
72
+ }
73
+
74
+ if attributes.key?(:'pulp_href')
75
+ self.pulp_href = attributes[:'pulp_href']
76
+ end
77
+
78
+ if attributes.key?(:'pulp_created')
79
+ self.pulp_created = attributes[:'pulp_created']
80
+ end
81
+
82
+ if attributes.key?(:'number')
83
+ self.number = attributes[:'number']
84
+ end
85
+
86
+ if attributes.key?(:'base_version')
87
+ self.base_version = attributes[:'base_version']
88
+ end
89
+
90
+ if attributes.key?(:'content_summary')
91
+ self.content_summary = attributes[:'content_summary']
92
+ end
93
+ end
94
+
95
+ # Show invalid properties with the reasons. Usually used together with valid?
96
+ # @return Array for valid properties with the reasons
97
+ def list_invalid_properties
98
+ invalid_properties = Array.new
99
+ invalid_properties
100
+ end
101
+
102
+ # Check to see if the all the properties in the model are valid
103
+ # @return true if the model is valid
104
+ def valid?
105
+ true
106
+ end
107
+
108
+ # Checks equality by comparing each attribute.
109
+ # @param [Object] Object to be compared
110
+ def ==(o)
111
+ return true if self.equal?(o)
112
+ self.class == o.class &&
113
+ pulp_href == o.pulp_href &&
114
+ pulp_created == o.pulp_created &&
115
+ number == o.number &&
116
+ base_version == o.base_version &&
117
+ content_summary == o.content_summary
118
+ end
119
+
120
+ # @see the `==` method
121
+ # @param [Object] Object to be compared
122
+ def eql?(o)
123
+ self == o
124
+ end
125
+
126
+ # Calculates hash code according to all attributes.
127
+ # @return [Integer] Hash code
128
+ def hash
129
+ [pulp_href, pulp_created, number, base_version, content_summary].hash
130
+ end
131
+
132
+ # Builds the object from hash
133
+ # @param [Hash] attributes Model attributes in the form of hash
134
+ # @return [Object] Returns the model itself
135
+ def self.build_from_hash(attributes)
136
+ new.build_from_hash(attributes)
137
+ end
138
+
139
+ # Builds the object from hash
140
+ # @param [Hash] attributes Model attributes in the form of hash
141
+ # @return [Object] Returns the model itself
142
+ def build_from_hash(attributes)
143
+ return nil unless attributes.is_a?(Hash)
144
+ self.class.openapi_types.each_pair do |key, type|
145
+ if type =~ /\AArray<(.*)>/i
146
+ # check to ensure the input is an array given that the attribute
147
+ # is documented as an array but the input is not
148
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
149
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
150
+ end
151
+ elsif !attributes[self.class.attribute_map[key]].nil?
152
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
153
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
154
+ end
155
+
156
+ self
157
+ end
158
+
159
+ # Deserializes the data based on type
160
+ # @param string type Data type
161
+ # @param string value Value to be deserialized
162
+ # @return [Object] Deserialized data
163
+ def _deserialize(type, value)
164
+ case type.to_sym
165
+ when :DateTime
166
+ DateTime.parse(value)
167
+ when :Date
168
+ Date.parse(value)
169
+ when :String
170
+ value.to_s
171
+ when :Integer
172
+ value.to_i
173
+ when :Float
174
+ value.to_f
175
+ when :Boolean
176
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
177
+ true
178
+ else
179
+ false
180
+ end
181
+ when :Object
182
+ # generic object (usually a Hash), return directly
183
+ value
184
+ when /\AArray<(?<inner_type>.+)>\z/
185
+ inner_type = Regexp.last_match[:inner_type]
186
+ value.map { |v| _deserialize(inner_type, v) }
187
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
188
+ k_type = Regexp.last_match[:k_type]
189
+ v_type = Regexp.last_match[:v_type]
190
+ {}.tap do |hash|
191
+ value.each do |k, v|
192
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
193
+ end
194
+ end
195
+ else # model
196
+ PulpContainerClient.const_get(type).build_from_hash(value)
197
+ end
198
+ end
199
+
200
+ # Returns the string representation of the object
201
+ # @return [String] String presentation of the object
202
+ def to_s
203
+ to_hash.to_s
204
+ end
205
+
206
+ # to_body is an alias to to_hash (backward compatibility)
207
+ # @return [Hash] Returns the object in the form of hash
208
+ def to_body
209
+ to_hash
210
+ end
211
+
212
+ # Returns the object in the form of hash
213
+ # @return [Hash] Returns the object in the form of hash
214
+ def to_hash
215
+ hash = {}
216
+ self.class.attribute_map.each_pair do |attr, param|
217
+ value = self.send(attr)
218
+ if value.nil?
219
+ is_nullable = self.class.openapi_nullable.include?(attr)
220
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
221
+ end
222
+
223
+ hash[param] = _to_hash(value)
224
+ end
225
+ hash
226
+ end
227
+
228
+ # Outputs non-array value in the form of hash
229
+ # For object, use to_hash. Otherwise, just return the value
230
+ # @param [Object] value Any valid value
231
+ # @return [Hash] Returns the value in the form of hash
232
+ def _to_hash(value)
233
+ if value.is_a?(Array)
234
+ value.compact.map { |v| _to_hash(v) }
235
+ elsif value.is_a?(Hash)
236
+ {}.tap do |hash|
237
+ value.each { |k, v| hash[k] = _to_hash(v) }
238
+ end
239
+ elsif value.respond_to? :to_hash
240
+ value.to_hash
241
+ else
242
+ value
243
+ end
244
+ end
245
+ end
246
+ 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,6 +13,7 @@ OpenAPI Generator version: 4.2.3
13
13
  require 'date'
14
14
 
15
15
  module PulpContainerClient
16
+ # Serializer for copying tags from a source repository to a destination repository.
16
17
  class TagCopy
17
18
  # A URI of the repository to copy content from.
18
19
  attr_accessor :source_repository
@@ -37,7 +38,7 @@ module PulpContainerClient
37
38
  {
38
39
  :'source_repository' => :'String',
39
40
  :'source_repository_version' => :'String',
40
- :'names' => :'Array<String>'
41
+ :'names' => :'Array<Object>'
41
42
  }
42
43
  end
43
44
 
@@ -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,6 +13,7 @@ OpenAPI Generator version: 4.2.3
13
13
  require 'date'
14
14
 
15
15
  module PulpContainerClient
16
+ # A serializer for parsing and validating data associated with a manifest tagging.
16
17
  class TagImage
17
18
  # A tag name
18
19
  attr_accessor :tag
@@ -74,18 +75,10 @@ module PulpContainerClient
74
75
  invalid_properties.push('invalid value for "tag", tag cannot be nil.')
75
76
  end
76
77
 
77
- if @tag.to_s.length < 1
78
- invalid_properties.push('invalid value for "tag", the character length must be great than or equal to 1.')
79
- end
80
-
81
78
  if @digest.nil?
82
79
  invalid_properties.push('invalid value for "digest", digest cannot be nil.')
83
80
  end
84
81
 
85
- if @digest.to_s.length < 1
86
- invalid_properties.push('invalid value for "digest", the character length must be great than or equal to 1.')
87
- end
88
-
89
82
  invalid_properties
90
83
  end
91
84
 
@@ -93,40 +86,10 @@ module PulpContainerClient
93
86
  # @return true if the model is valid
94
87
  def valid?
95
88
  return false if @tag.nil?
96
- return false if @tag.to_s.length < 1
97
89
  return false if @digest.nil?
98
- return false if @digest.to_s.length < 1
99
90
  true
100
91
  end
101
92
 
102
- # Custom attribute writer method with validation
103
- # @param [Object] tag Value to be assigned
104
- def tag=(tag)
105
- if tag.nil?
106
- fail ArgumentError, 'tag cannot be nil'
107
- end
108
-
109
- if tag.to_s.length < 1
110
- fail ArgumentError, 'invalid value for "tag", the character length must be great than or equal to 1.'
111
- end
112
-
113
- @tag = tag
114
- end
115
-
116
- # Custom attribute writer method with validation
117
- # @param [Object] digest Value to be assigned
118
- def digest=(digest)
119
- if digest.nil?
120
- fail ArgumentError, 'digest cannot be nil'
121
- end
122
-
123
- if digest.to_s.length < 1
124
- fail ArgumentError, 'invalid value for "digest", the character length must be great than or equal to 1.'
125
- end
126
-
127
- @digest = digest
128
- end
129
-
130
93
  # Checks equality by comparing each attribute.
131
94
  # @param [Object] Object to be compared
132
95
  def ==(o)
@@ -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,6 +13,7 @@ OpenAPI Generator version: 4.2.3
13
13
  require 'date'
14
14
 
15
15
  module PulpContainerClient
16
+ # A serializer for parsing and validating data associated with a manifest untagging.
16
17
  class UnTagImage
17
18
  # A tag name
18
19
  attr_accessor :tag
@@ -65,10 +66,6 @@ module PulpContainerClient
65
66
  invalid_properties.push('invalid value for "tag", tag cannot be nil.')
66
67
  end
67
68
 
68
- if @tag.to_s.length < 1
69
- invalid_properties.push('invalid value for "tag", the character length must be great than or equal to 1.')
70
- end
71
-
72
69
  invalid_properties
73
70
  end
74
71
 
@@ -76,24 +73,9 @@ module PulpContainerClient
76
73
  # @return true if the model is valid
77
74
  def valid?
78
75
  return false if @tag.nil?
79
- return false if @tag.to_s.length < 1
80
76
  true
81
77
  end
82
78
 
83
- # Custom attribute writer method with validation
84
- # @param [Object] tag Value to be assigned
85
- def tag=(tag)
86
- if tag.nil?
87
- fail ArgumentError, 'tag cannot be nil'
88
- end
89
-
90
- if tag.to_s.length < 1
91
- fail ArgumentError, 'invalid value for "tag", the character length must be great than or equal to 1.'
92
- end
93
-
94
- @tag = tag
95
- end
96
-
97
79
  # Checks equality by comparing each attribute.
98
80
  # @param [Object] Object to be compared
99
81
  def ==(o)
@@ -1,15 +1,15 @@
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
 
11
11
  =end
12
12
 
13
13
  module PulpContainerClient
14
- VERSION = '2.0.0b3'
14
+ VERSION = '2.0.0'
15
15
  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
 
@@ -18,15 +18,21 @@ require 'pulp_container_client/configuration'
18
18
 
19
19
  # Models
20
20
  require 'pulp_container_client/models/async_operation_response'
21
- require 'pulp_container_client/models/container_blob'
21
+ require 'pulp_container_client/models/container_blob_response'
22
22
  require 'pulp_container_client/models/container_container_distribution'
23
+ require 'pulp_container_client/models/container_container_distribution_response'
23
24
  require 'pulp_container_client/models/container_container_push_repository'
25
+ require 'pulp_container_client/models/container_container_push_repository_response'
24
26
  require 'pulp_container_client/models/container_container_remote'
27
+ require 'pulp_container_client/models/container_container_remote_response'
25
28
  require 'pulp_container_client/models/container_container_repository'
29
+ require 'pulp_container_client/models/container_container_repository_response'
26
30
  require 'pulp_container_client/models/container_content_redirect_content_guard'
27
- require 'pulp_container_client/models/container_manifest'
28
- require 'pulp_container_client/models/container_tag'
31
+ require 'pulp_container_client/models/container_content_redirect_content_guard_response'
32
+ require 'pulp_container_client/models/container_manifest_response'
33
+ require 'pulp_container_client/models/container_tag_response'
29
34
  require 'pulp_container_client/models/content_summary'
35
+ require 'pulp_container_client/models/content_summary_response'
30
36
  require 'pulp_container_client/models/inline_response200'
31
37
  require 'pulp_container_client/models/inline_response2001'
32
38
  require 'pulp_container_client/models/inline_response2002'
@@ -37,9 +43,16 @@ require 'pulp_container_client/models/inline_response2006'
37
43
  require 'pulp_container_client/models/inline_response2007'
38
44
  require 'pulp_container_client/models/inline_response2008'
39
45
  require 'pulp_container_client/models/manifest_copy'
46
+ require 'pulp_container_client/models/oci_build_image'
47
+ require 'pulp_container_client/models/patchedcontainer_container_distribution'
48
+ require 'pulp_container_client/models/patchedcontainer_container_remote'
49
+ require 'pulp_container_client/models/patchedcontainer_container_repository'
50
+ require 'pulp_container_client/models/patchedcontainer_content_redirect_content_guard'
51
+ require 'pulp_container_client/models/policy_enum'
40
52
  require 'pulp_container_client/models/recursive_manage'
41
53
  require 'pulp_container_client/models/repository_sync_url'
42
54
  require 'pulp_container_client/models/repository_version'
55
+ require 'pulp_container_client/models/repository_version_response'
43
56
  require 'pulp_container_client/models/tag_copy'
44
57
  require 'pulp_container_client/models/tag_image'
45
58
  require 'pulp_container_client/models/un_tag_image'
@@ -3,10 +3,10 @@
3
3
  =begin
4
4
  #Pulp 3 API
5
5
 
6
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ #Fetch, Upload, Organize, and Distribute Software Packages
7
7
 
8
8
  The version of the OpenAPI document: v3
9
-
9
+ Contact: pulp-list@redhat.com
10
10
  Generated by: https://openapi-generator.tech
11
11
  OpenAPI Generator version: 4.2.3
12
12
 
@@ -20,10 +20,10 @@ Gem::Specification.new do |s|
20
20
  s.version = PulpContainerClient::VERSION
21
21
  s.platform = Gem::Platform::RUBY
22
22
  s.authors = ["OpenAPI-Generator"]
23
- s.email = [""]
23
+ s.email = ["pulp-list@redhat.com"]
24
24
  s.homepage = "https://openapi-generator.tech"
25
25
  s.summary = "Pulp 3 API Ruby Gem"
26
- s.description = "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)"
26
+ s.description = "Fetch, Upload, Organize, and Distribute Software Packages"
27
27
  s.license = 'GPL-2.0+'
28
28
  s.required_ruby_version = ">= 1.9"
29
29
 
@@ -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
 
@@ -36,15 +36,15 @@ describe 'ContentBlobsApi' do
36
36
  # List blobs
37
37
  # ViewSet for Blobs.
38
38
  # @param [Hash] opts the optional parameters
39
- # @option opts [String] :ordering Which field to use when ordering the results.
40
- # @option opts [String] :digest Filter results where digest matches value
41
- # @option opts [String] :digest__in Filter results where digest is in a comma-separated list of values
42
- # @option opts [String] :repository_version Repository Version referenced by HREF
43
- # @option opts [String] :repository_version_added Repository Version referenced by HREF
44
- # @option opts [String] :repository_version_removed Repository Version referenced by HREF
45
- # @option opts [String] :media_type
39
+ # @option opts [String] :digest digest
40
+ # @option opts [String] :digest__in digest__in
46
41
  # @option opts [Integer] :limit Number of results to return per page.
42
+ # @option opts [String] :media_type media_type
47
43
  # @option opts [Integer] :offset The initial index from which to return the results.
44
+ # @option opts [String] :ordering Which field to use when ordering the results.
45
+ # @option opts [String] :repository_version repository_version
46
+ # @option opts [String] :repository_version_added repository_version_added
47
+ # @option opts [String] :repository_version_removed repository_version_removed
48
48
  # @option opts [String] :fields A list of fields to include in the response.
49
49
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
50
50
  # @return [InlineResponse200]
@@ -57,11 +57,11 @@ describe 'ContentBlobsApi' do
57
57
  # unit tests for read
58
58
  # Inspect a blob
59
59
  # ViewSet for Blobs.
60
- # @param blob_href URI of Blob. e.g.: /pulp/api/v3/content/container/blobs/1/
60
+ # @param container_blob_href
61
61
  # @param [Hash] opts the optional parameters
62
62
  # @option opts [String] :fields A list of fields to include in the response.
63
63
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
64
- # @return [ContainerBlob]
64
+ # @return [ContainerBlobResponse]
65
65
  describe 'read test' do
66
66
  it 'should work' do
67
67
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -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
 
@@ -36,15 +36,15 @@ describe 'ContentManifestsApi' do
36
36
  # List manifests
37
37
  # ViewSet for Manifest.
38
38
  # @param [Hash] opts the optional parameters
39
- # @option opts [String] :ordering Which field to use when ordering the results.
40
- # @option opts [String] :digest Filter results where digest matches value
41
- # @option opts [String] :digest__in Filter results where digest is in a comma-separated list of values
42
- # @option opts [String] :repository_version Repository Version referenced by HREF
43
- # @option opts [String] :repository_version_added Repository Version referenced by HREF
44
- # @option opts [String] :repository_version_removed Repository Version referenced by HREF
45
- # @option opts [String] :media_type
39
+ # @option opts [String] :digest digest
40
+ # @option opts [String] :digest__in digest__in
46
41
  # @option opts [Integer] :limit Number of results to return per page.
42
+ # @option opts [String] :media_type media_type
47
43
  # @option opts [Integer] :offset The initial index from which to return the results.
44
+ # @option opts [String] :ordering Which field to use when ordering the results.
45
+ # @option opts [String] :repository_version repository_version
46
+ # @option opts [String] :repository_version_added repository_version_added
47
+ # @option opts [String] :repository_version_removed repository_version_removed
48
48
  # @option opts [String] :fields A list of fields to include in the response.
49
49
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
50
50
  # @return [InlineResponse2001]
@@ -57,11 +57,11 @@ describe 'ContentManifestsApi' do
57
57
  # unit tests for read
58
58
  # Inspect a manifest
59
59
  # ViewSet for Manifest.
60
- # @param manifest_href URI of Manifest. e.g.: /pulp/api/v3/content/container/manifests/1/
60
+ # @param container_manifest_href
61
61
  # @param [Hash] opts the optional parameters
62
62
  # @option opts [String] :fields A list of fields to include in the response.
63
63
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
64
- # @return [ContainerManifest]
64
+ # @return [ContainerManifestResponse]
65
65
  describe 'read test' do
66
66
  it 'should work' do
67
67
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -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
 
@@ -36,16 +36,16 @@ describe 'ContentTagsApi' do
36
36
  # List tags
37
37
  # ViewSet for Tag.
38
38
  # @param [Hash] opts the optional parameters
39
- # @option opts [String] :ordering Which field to use when ordering the results.
40
- # @option opts [String] :name Filter results where name matches value
41
- # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
42
- # @option opts [String] :repository_version Repository Version referenced by HREF
43
- # @option opts [String] :repository_version_added Repository Version referenced by HREF
44
- # @option opts [String] :repository_version_removed Repository Version referenced by HREF
45
- # @option opts [String] :media_type
46
- # @option opts [String] :digest Multiple values may be separated by commas.
39
+ # @option opts [String] :digest digest
47
40
  # @option opts [Integer] :limit Number of results to return per page.
41
+ # @option opts [String] :media_type media_type
42
+ # @option opts [String] :name name
43
+ # @option opts [String] :name__in name__in
48
44
  # @option opts [Integer] :offset The initial index from which to return the results.
45
+ # @option opts [String] :ordering Which field to use when ordering the results.
46
+ # @option opts [String] :repository_version repository_version
47
+ # @option opts [String] :repository_version_added repository_version_added
48
+ # @option opts [String] :repository_version_removed repository_version_removed
49
49
  # @option opts [String] :fields A list of fields to include in the response.
50
50
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
51
51
  # @return [InlineResponse2002]
@@ -58,11 +58,11 @@ describe 'ContentTagsApi' do
58
58
  # unit tests for read
59
59
  # Inspect a tag
60
60
  # ViewSet for Tag.
61
- # @param tag_href URI of Tag. e.g.: /pulp/api/v3/content/container/tags/1/
61
+ # @param container_tag_href
62
62
  # @param [Hash] opts the optional parameters
63
63
  # @option opts [String] :fields A list of fields to include in the response.
64
64
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
65
- # @return [ContainerTag]
65
+ # @return [ContainerTagResponse]
66
66
  describe 'read test' do
67
67
  it 'should work' do
68
68
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers