pulp_container_client 2.4.0.dev01613877682 → 2.4.0.dev1614741644

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of pulp_container_client might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dcc2fd1f584db97ed503ec64103d2b078e17fef2842dc9fc7a5275f7ffc12522
4
- data.tar.gz: 5f816fe9e00519e0198cde0eb3ce89d35402bc540fd42b0af984d8f2b5f43efe
3
+ metadata.gz: ee7f14bd7073f6519c16d4a2793e7406f8cc650214a6b6e13957278d68de8759
4
+ data.tar.gz: 1008ea737ffe7097513ca74f7c0dea675745b4ad557289226fb1b635cc7232c5
5
5
  SHA512:
6
- metadata.gz: 14e96c0ceac504a4f15d7e7a0a92968e28a9f0cc863f266f646df120f87029b6fc64cda7ea574d5abfc25a0cf1dd4cbc2920a6521f4ee30a99aa702aa20ec941
7
- data.tar.gz: 4130b7890690d8c5689201cd59d0fbc7992090cb1443c7fc0930e73648efdbd83e588714c3bb22a52c3f7092ab91f92c493354b213722878478f0cebff7b306d
6
+ metadata.gz: b7707c2fc254e113071f943316e23b19511054114dc7f741f3febe441bb0a9cd0389fc5ec93b5c36f7b43c22beed7fde5ba7aab1b0678c099416c63734c1e7f5
7
+ data.tar.gz: 15416f81c91c9682ea965452e8aa9cc5a222df7b3b456622ad5ea14903a77105ae3efe893b8fd2b1da2e38e9dcf13ddfa67174d8f95ffc5c621036a6d78ce77d
data/README.md CHANGED
@@ -7,7 +7,7 @@ Fetch, Upload, Organize, and Distribute Software Packages
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: v3
10
- - Package version: 2.4.0.dev01613877682
10
+ - Package version: 2.4.0.dev1614741644
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [https://pulpproject.org](https://pulpproject.org)
13
13
 
@@ -24,16 +24,16 @@ gem build pulp_container_client.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./pulp_container_client-2.4.0.dev01613877682.gem
27
+ gem install ./pulp_container_client-2.4.0.dev1614741644.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./pulp_container_client-2.4.0.dev01613877682.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./pulp_container_client-2.4.0.dev1614741644.gem` to install the development dependencies)
31
31
 
32
32
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
33
33
 
34
34
  Finally add this to the Gemfile:
35
35
 
36
- gem 'pulp_container_client', '~> 2.4.0.dev01613877682'
36
+ gem 'pulp_container_client', '~> 2.4.0.dev1614741644'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -139,6 +139,7 @@ Class | Method | HTTP request | Description
139
139
  *PulpContainerClient::RepositoriesContainerApi* | [**update**](docs/RepositoriesContainerApi.md#update) | **PUT** {container_container_repository_href} | Update a container repository
140
140
  *PulpContainerClient::RepositoriesContainerPushApi* | [**list**](docs/RepositoriesContainerPushApi.md#list) | **GET** /pulp/api/v3/repositories/container/container-push/ | List container push repositorys
141
141
  *PulpContainerClient::RepositoriesContainerPushApi* | [**read**](docs/RepositoriesContainerPushApi.md#read) | **GET** {container_container_push_repository_href} | Inspect a container push repository
142
+ *PulpContainerClient::RepositoriesContainerPushApi* | [**remove_image**](docs/RepositoriesContainerPushApi.md#remove_image) | **POST** {container_container_push_repository_href}remove_image/ | Delete an image from a repository
142
143
  *PulpContainerClient::RepositoriesContainerPushApi* | [**tag**](docs/RepositoriesContainerPushApi.md#tag) | **POST** {container_container_push_repository_href}tag/ | Create a Tag
143
144
  *PulpContainerClient::RepositoriesContainerPushApi* | [**untag**](docs/RepositoriesContainerPushApi.md#untag) | **POST** {container_container_push_repository_href}untag/ | Delete a tag
144
145
  *PulpContainerClient::RepositoriesContainerVersionsApi* | [**delete**](docs/RepositoriesContainerVersionsApi.md#delete) | **DELETE** {container_container_push_repository_version_href} | Delete a repository version
@@ -190,6 +191,7 @@ Class | Method | HTTP request | Description
190
191
  - [PulpContainerClient::PatchedcontainerContentRedirectContentGuard](docs/PatchedcontainerContentRedirectContentGuard.md)
191
192
  - [PulpContainerClient::PolicyEnum](docs/PolicyEnum.md)
192
193
  - [PulpContainerClient::RecursiveManage](docs/RecursiveManage.md)
194
+ - [PulpContainerClient::RemoveImage](docs/RemoveImage.md)
193
195
  - [PulpContainerClient::RepositorySyncURL](docs/RepositorySyncURL.md)
194
196
  - [PulpContainerClient::RepositoryVersion](docs/RepositoryVersion.md)
195
197
  - [PulpContainerClient::RepositoryVersionResponse](docs/RepositoryVersionResponse.md)
@@ -4,11 +4,11 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
+ **base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") |
7
8
  **repository_version** | **String** | RepositoryVersion to be served | [optional]
9
+ **name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
8
10
  **pulp_labels** | [**Object**](.md) | | [optional]
9
11
  **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
10
- **name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
11
- **base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") |
12
12
  **content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
13
13
  **private** | **Boolean** | Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access. | [optional]
14
14
  **description** | **String** | An optional description. | [optional]
@@ -18,11 +18,11 @@ Name | Type | Description | Notes
18
18
  ```ruby
19
19
  require 'PulpContainerClient'
20
20
 
21
- instance = PulpContainerClient::ContainerContainerDistribution.new(repository_version: null,
21
+ instance = PulpContainerClient::ContainerContainerDistribution.new(base_path: null,
22
+ repository_version: null,
23
+ name: null,
22
24
  pulp_labels: null,
23
25
  repository: null,
24
- name: null,
25
- base_path: null,
26
26
  content_guard: null,
27
27
  private: null,
28
28
  description: null)
@@ -4,14 +4,14 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
+ **base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") |
8
+ **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
7
9
  **repository_version** | **String** | RepositoryVersion to be served | [optional]
10
+ **name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
8
11
  **pulp_labels** | [**Object**](.md) | | [optional]
9
- **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
10
12
  **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
11
- **name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
12
- **base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") |
13
- **pulp_href** | **String** | | [optional] [readonly]
14
13
  **content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
14
+ **pulp_href** | **String** | | [optional] [readonly]
15
15
  **registry_path** | **String** | The Registry hostame/name/ to use with docker pull command defined by this distribution. | [optional] [readonly]
16
16
  **namespace** | **String** | Namespace this distribution belongs to. | [optional] [readonly]
17
17
  **private** | **Boolean** | Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access. | [optional]
@@ -22,14 +22,14 @@ Name | Type | Description | Notes
22
22
  ```ruby
23
23
  require 'PulpContainerClient'
24
24
 
25
- instance = PulpContainerClient::ContainerContainerDistributionResponse.new(repository_version: null,
26
- pulp_labels: null,
25
+ instance = PulpContainerClient::ContainerContainerDistributionResponse.new(base_path: null,
27
26
  pulp_created: null,
28
- repository: null,
27
+ repository_version: null,
29
28
  name: null,
30
- base_path: null,
31
- pulp_href: null,
29
+ pulp_labels: null,
30
+ repository: null,
32
31
  content_guard: null,
32
+ pulp_href: null,
33
33
  registry_path: null,
34
34
  namespace: null,
35
35
  private: null,
@@ -4,11 +4,11 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
+ **base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") | [optional]
7
8
  **repository_version** | **String** | RepositoryVersion to be served | [optional]
9
+ **name** | **String** | A unique name. Ex, `rawhide` and `stable`. | [optional]
8
10
  **pulp_labels** | [**Object**](.md) | | [optional]
9
11
  **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
10
- **name** | **String** | A unique name. Ex, `rawhide` and `stable`. | [optional]
11
- **base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") | [optional]
12
12
  **content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
13
13
  **private** | **Boolean** | Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access. | [optional]
14
14
  **description** | **String** | An optional description. | [optional]
@@ -18,11 +18,11 @@ Name | Type | Description | Notes
18
18
  ```ruby
19
19
  require 'PulpContainerClient'
20
20
 
21
- instance = PulpContainerClient::PatchedcontainerContainerDistribution.new(repository_version: null,
21
+ instance = PulpContainerClient::PatchedcontainerContainerDistribution.new(base_path: null,
22
+ repository_version: null,
23
+ name: null,
22
24
  pulp_labels: null,
23
25
  repository: null,
24
- name: null,
25
- base_path: null,
26
26
  content_guard: null,
27
27
  private: null,
28
28
  description: null)
@@ -0,0 +1,17 @@
1
+ # PulpContainerClient::RemoveImage
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **digest** | **String** | sha256 of the Manifest file |
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'PulpContainerClient'
13
+
14
+ instance = PulpContainerClient::RemoveImage.new(digest: null)
15
+ ```
16
+
17
+
@@ -6,6 +6,7 @@ Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
7
  [**list**](RepositoriesContainerPushApi.md#list) | **GET** /pulp/api/v3/repositories/container/container-push/ | List container push repositorys
8
8
  [**read**](RepositoriesContainerPushApi.md#read) | **GET** {container_container_push_repository_href} | Inspect a container push repository
9
+ [**remove_image**](RepositoriesContainerPushApi.md#remove_image) | **POST** {container_container_push_repository_href}remove_image/ | Delete an image from a repository
9
10
  [**tag**](RepositoriesContainerPushApi.md#tag) | **POST** {container_container_push_repository_href}tag/ | Create a Tag
10
11
  [**untag**](RepositoriesContainerPushApi.md#untag) | **POST** {container_container_push_repository_href}untag/ | Delete a tag
11
12
 
@@ -145,6 +146,61 @@ Name | Type | Description | Notes
145
146
  - **Accept**: application/json
146
147
 
147
148
 
149
+ ## remove_image
150
+
151
+ > AsyncOperationResponse remove_image(container_container_push_repository_href, remove_image)
152
+
153
+ Delete an image from a repository
154
+
155
+ Trigger an asynchronous task to remove a manifest and all its associated data by a digest
156
+
157
+ ### Example
158
+
159
+ ```ruby
160
+ # load the gem
161
+ require 'pulp_container_client'
162
+ # setup authorization
163
+ PulpContainerClient.configure do |config|
164
+ # Configure HTTP basic authorization: basicAuth
165
+ config.username = 'YOUR USERNAME'
166
+ config.password = 'YOUR PASSWORD'
167
+ end
168
+
169
+ api_instance = PulpContainerClient::RepositoriesContainerPushApi.new
170
+ container_container_push_repository_href = 'container_container_push_repository_href_example' # String |
171
+ remove_image = PulpContainerClient::RemoveImage.new # RemoveImage |
172
+
173
+ begin
174
+ #Delete an image from a repository
175
+ result = api_instance.remove_image(container_container_push_repository_href, remove_image)
176
+ p result
177
+ rescue PulpContainerClient::ApiError => e
178
+ puts "Exception when calling RepositoriesContainerPushApi->remove_image: #{e}"
179
+ end
180
+ ```
181
+
182
+ ### Parameters
183
+
184
+
185
+ Name | Type | Description | Notes
186
+ ------------- | ------------- | ------------- | -------------
187
+ **container_container_push_repository_href** | **String**| |
188
+ **remove_image** | [**RemoveImage**](RemoveImage.md)| |
189
+
190
+ ### Return type
191
+
192
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
193
+
194
+ ### Authorization
195
+
196
+ [basicAuth](../README.md#basicAuth)
197
+
198
+ ### HTTP request headers
199
+
200
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
201
+ - **Accept**: application/json
202
+
203
+
148
204
  ## tag
149
205
 
150
206
  > AsyncOperationResponse tag(container_container_push_repository_href, tag_image)
@@ -53,6 +53,7 @@ require 'pulp_container_client/models/patchedcontainer_container_repository'
53
53
  require 'pulp_container_client/models/patchedcontainer_content_redirect_content_guard'
54
54
  require 'pulp_container_client/models/policy_enum'
55
55
  require 'pulp_container_client/models/recursive_manage'
56
+ require 'pulp_container_client/models/remove_image'
56
57
  require 'pulp_container_client/models/repository_sync_url'
57
58
  require 'pulp_container_client/models/repository_version'
58
59
  require 'pulp_container_client/models/repository_version_response'
@@ -176,6 +176,76 @@ module PulpContainerClient
176
176
  return data, status_code, headers
177
177
  end
178
178
 
179
+ # Delete an image from a repository
180
+ # Trigger an asynchronous task to remove a manifest and all its associated data by a digest
181
+ # @param container_container_push_repository_href [String]
182
+ # @param remove_image [RemoveImage]
183
+ # @param [Hash] opts the optional parameters
184
+ # @return [AsyncOperationResponse]
185
+ def remove_image(container_container_push_repository_href, remove_image, opts = {})
186
+ data, _status_code, _headers = remove_image_with_http_info(container_container_push_repository_href, remove_image, opts)
187
+ data
188
+ end
189
+
190
+ # Delete an image from a repository
191
+ # Trigger an asynchronous task to remove a manifest and all its associated data by a digest
192
+ # @param container_container_push_repository_href [String]
193
+ # @param remove_image [RemoveImage]
194
+ # @param [Hash] opts the optional parameters
195
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
196
+ def remove_image_with_http_info(container_container_push_repository_href, remove_image, opts = {})
197
+ if @api_client.config.debugging
198
+ @api_client.config.logger.debug 'Calling API: RepositoriesContainerPushApi.remove_image ...'
199
+ end
200
+ # verify the required parameter 'container_container_push_repository_href' is set
201
+ if @api_client.config.client_side_validation && container_container_push_repository_href.nil?
202
+ fail ArgumentError, "Missing the required parameter 'container_container_push_repository_href' when calling RepositoriesContainerPushApi.remove_image"
203
+ end
204
+ # verify the required parameter 'remove_image' is set
205
+ if @api_client.config.client_side_validation && remove_image.nil?
206
+ fail ArgumentError, "Missing the required parameter 'remove_image' when calling RepositoriesContainerPushApi.remove_image"
207
+ end
208
+ # resource path
209
+ local_var_path = '{container_container_push_repository_href}remove_image/'.sub('{' + 'container_container_push_repository_href' + '}', CGI.escape(container_container_push_repository_href.to_s).gsub('%2F', '/'))
210
+
211
+ # query parameters
212
+ query_params = opts[:query_params] || {}
213
+
214
+ # header parameters
215
+ header_params = opts[:header_params] || {}
216
+ # HTTP header 'Accept' (if needed)
217
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
218
+ # HTTP header 'Content-Type'
219
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
220
+
221
+ # form parameters
222
+ form_params = opts[:form_params] || {}
223
+
224
+ # http body (model)
225
+ post_body = opts[:body] || @api_client.object_to_http_body(remove_image)
226
+
227
+ # return_type
228
+ return_type = opts[:return_type] || 'AsyncOperationResponse'
229
+
230
+ # auth_names
231
+ auth_names = opts[:auth_names] || ['basicAuth']
232
+
233
+ new_options = opts.merge(
234
+ :header_params => header_params,
235
+ :query_params => query_params,
236
+ :form_params => form_params,
237
+ :body => post_body,
238
+ :auth_names => auth_names,
239
+ :return_type => return_type
240
+ )
241
+
242
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
243
+ if @api_client.config.debugging
244
+ @api_client.config.logger.debug "API called: RepositoriesContainerPushApi#remove_image\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
245
+ end
246
+ return data, status_code, headers
247
+ end
248
+
179
249
  # Create a Tag
180
250
  # Trigger an asynchronous task to tag an image in the repository
181
251
  # @param container_container_push_repository_href [String]
@@ -15,20 +15,20 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class ContainerContainerDistribution
18
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
19
+ attr_accessor :base_path
20
+
18
21
  # RepositoryVersion to be served
19
22
  attr_accessor :repository_version
20
23
 
24
+ # A unique name. Ex, `rawhide` and `stable`.
25
+ attr_accessor :name
26
+
21
27
  attr_accessor :pulp_labels
22
28
 
23
29
  # The latest RepositoryVersion for this Repository will be served.
24
30
  attr_accessor :repository
25
31
 
26
- # A unique name. Ex, `rawhide` and `stable`.
27
- attr_accessor :name
28
-
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\")
30
- attr_accessor :base_path
31
-
32
32
  # An optional content-guard. If none is specified, a default one will be used.
33
33
  attr_accessor :content_guard
34
34
 
@@ -41,11 +41,11 @@ module PulpContainerClient
41
41
  # Attribute mapping from ruby-style variable name to JSON key.
42
42
  def self.attribute_map
43
43
  {
44
+ :'base_path' => :'base_path',
44
45
  :'repository_version' => :'repository_version',
46
+ :'name' => :'name',
45
47
  :'pulp_labels' => :'pulp_labels',
46
48
  :'repository' => :'repository',
47
- :'name' => :'name',
48
- :'base_path' => :'base_path',
49
49
  :'content_guard' => :'content_guard',
50
50
  :'private' => :'private',
51
51
  :'description' => :'description'
@@ -55,11 +55,11 @@ module PulpContainerClient
55
55
  # Attribute type mapping.
56
56
  def self.openapi_types
57
57
  {
58
+ :'base_path' => :'String',
58
59
  :'repository_version' => :'String',
60
+ :'name' => :'String',
59
61
  :'pulp_labels' => :'Object',
60
62
  :'repository' => :'String',
61
- :'name' => :'String',
62
- :'base_path' => :'String',
63
63
  :'content_guard' => :'String',
64
64
  :'private' => :'Boolean',
65
65
  :'description' => :'String'
@@ -90,10 +90,18 @@ module PulpContainerClient
90
90
  h[k.to_sym] = v
91
91
  }
92
92
 
93
+ if attributes.key?(:'base_path')
94
+ self.base_path = attributes[:'base_path']
95
+ end
96
+
93
97
  if attributes.key?(:'repository_version')
94
98
  self.repository_version = attributes[:'repository_version']
95
99
  end
96
100
 
101
+ if attributes.key?(:'name')
102
+ self.name = attributes[:'name']
103
+ end
104
+
97
105
  if attributes.key?(:'pulp_labels')
98
106
  self.pulp_labels = attributes[:'pulp_labels']
99
107
  end
@@ -102,14 +110,6 @@ module PulpContainerClient
102
110
  self.repository = attributes[:'repository']
103
111
  end
104
112
 
105
- if attributes.key?(:'name')
106
- self.name = attributes[:'name']
107
- end
108
-
109
- if attributes.key?(:'base_path')
110
- self.base_path = attributes[:'base_path']
111
- end
112
-
113
113
  if attributes.key?(:'content_guard')
114
114
  self.content_guard = attributes[:'content_guard']
115
115
  end
@@ -127,22 +127,22 @@ module PulpContainerClient
127
127
  # @return Array for valid properties with the reasons
128
128
  def list_invalid_properties
129
129
  invalid_properties = Array.new
130
- if @name.nil?
131
- invalid_properties.push('invalid value for "name", name cannot be nil.')
132
- end
133
-
134
130
  if @base_path.nil?
135
131
  invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
136
132
  end
137
133
 
134
+ if @name.nil?
135
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
136
+ end
137
+
138
138
  invalid_properties
139
139
  end
140
140
 
141
141
  # Check to see if the all the properties in the model are valid
142
142
  # @return true if the model is valid
143
143
  def valid?
144
- return false if @name.nil?
145
144
  return false if @base_path.nil?
145
+ return false if @name.nil?
146
146
  true
147
147
  end
148
148
 
@@ -151,11 +151,11 @@ module PulpContainerClient
151
151
  def ==(o)
152
152
  return true if self.equal?(o)
153
153
  self.class == o.class &&
154
+ base_path == o.base_path &&
154
155
  repository_version == o.repository_version &&
156
+ name == o.name &&
155
157
  pulp_labels == o.pulp_labels &&
156
158
  repository == o.repository &&
157
- name == o.name &&
158
- base_path == o.base_path &&
159
159
  content_guard == o.content_guard &&
160
160
  private == o.private &&
161
161
  description == o.description
@@ -170,7 +170,7 @@ module PulpContainerClient
170
170
  # Calculates hash code according to all attributes.
171
171
  # @return [Integer] Hash code
172
172
  def hash
173
- [repository_version, pulp_labels, repository, name, base_path, content_guard, private, description].hash
173
+ [base_path, repository_version, name, pulp_labels, repository, content_guard, private, description].hash
174
174
  end
175
175
 
176
176
  # Builds the object from hash
@@ -15,28 +15,28 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class ContainerContainerDistributionResponse
18
- # RepositoryVersion to be served
19
- attr_accessor :repository_version
20
-
21
- attr_accessor :pulp_labels
18
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
19
+ attr_accessor :base_path
22
20
 
23
21
  # Timestamp of creation.
24
22
  attr_accessor :pulp_created
25
23
 
26
- # The latest RepositoryVersion for this Repository will be served.
27
- attr_accessor :repository
24
+ # RepositoryVersion to be served
25
+ attr_accessor :repository_version
28
26
 
29
27
  # A unique name. Ex, `rawhide` and `stable`.
30
28
  attr_accessor :name
31
29
 
32
- # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
33
- attr_accessor :base_path
30
+ attr_accessor :pulp_labels
34
31
 
35
- attr_accessor :pulp_href
32
+ # The latest RepositoryVersion for this Repository will be served.
33
+ attr_accessor :repository
36
34
 
37
35
  # An optional content-guard. If none is specified, a default one will be used.
38
36
  attr_accessor :content_guard
39
37
 
38
+ attr_accessor :pulp_href
39
+
40
40
  # The Registry hostame/name/ to use with docker pull command defined by this distribution.
41
41
  attr_accessor :registry_path
42
42
 
@@ -52,14 +52,14 @@ module PulpContainerClient
52
52
  # Attribute mapping from ruby-style variable name to JSON key.
53
53
  def self.attribute_map
54
54
  {
55
+ :'base_path' => :'base_path',
56
+ :'pulp_created' => :'pulp_created',
55
57
  :'repository_version' => :'repository_version',
58
+ :'name' => :'name',
56
59
  :'pulp_labels' => :'pulp_labels',
57
- :'pulp_created' => :'pulp_created',
58
60
  :'repository' => :'repository',
59
- :'name' => :'name',
60
- :'base_path' => :'base_path',
61
- :'pulp_href' => :'pulp_href',
62
61
  :'content_guard' => :'content_guard',
62
+ :'pulp_href' => :'pulp_href',
63
63
  :'registry_path' => :'registry_path',
64
64
  :'namespace' => :'namespace',
65
65
  :'private' => :'private',
@@ -70,14 +70,14 @@ module PulpContainerClient
70
70
  # Attribute type mapping.
71
71
  def self.openapi_types
72
72
  {
73
+ :'base_path' => :'String',
74
+ :'pulp_created' => :'DateTime',
73
75
  :'repository_version' => :'String',
76
+ :'name' => :'String',
74
77
  :'pulp_labels' => :'Object',
75
- :'pulp_created' => :'DateTime',
76
78
  :'repository' => :'String',
77
- :'name' => :'String',
78
- :'base_path' => :'String',
79
- :'pulp_href' => :'String',
80
79
  :'content_guard' => :'String',
80
+ :'pulp_href' => :'String',
81
81
  :'registry_path' => :'String',
82
82
  :'namespace' => :'String',
83
83
  :'private' => :'Boolean',
@@ -109,38 +109,38 @@ module PulpContainerClient
109
109
  h[k.to_sym] = v
110
110
  }
111
111
 
112
- if attributes.key?(:'repository_version')
113
- self.repository_version = attributes[:'repository_version']
114
- end
115
-
116
- if attributes.key?(:'pulp_labels')
117
- self.pulp_labels = attributes[:'pulp_labels']
112
+ if attributes.key?(:'base_path')
113
+ self.base_path = attributes[:'base_path']
118
114
  end
119
115
 
120
116
  if attributes.key?(:'pulp_created')
121
117
  self.pulp_created = attributes[:'pulp_created']
122
118
  end
123
119
 
124
- if attributes.key?(:'repository')
125
- self.repository = attributes[:'repository']
120
+ if attributes.key?(:'repository_version')
121
+ self.repository_version = attributes[:'repository_version']
126
122
  end
127
123
 
128
124
  if attributes.key?(:'name')
129
125
  self.name = attributes[:'name']
130
126
  end
131
127
 
132
- if attributes.key?(:'base_path')
133
- self.base_path = attributes[:'base_path']
128
+ if attributes.key?(:'pulp_labels')
129
+ self.pulp_labels = attributes[:'pulp_labels']
134
130
  end
135
131
 
136
- if attributes.key?(:'pulp_href')
137
- self.pulp_href = attributes[:'pulp_href']
132
+ if attributes.key?(:'repository')
133
+ self.repository = attributes[:'repository']
138
134
  end
139
135
 
140
136
  if attributes.key?(:'content_guard')
141
137
  self.content_guard = attributes[:'content_guard']
142
138
  end
143
139
 
140
+ if attributes.key?(:'pulp_href')
141
+ self.pulp_href = attributes[:'pulp_href']
142
+ end
143
+
144
144
  if attributes.key?(:'registry_path')
145
145
  self.registry_path = attributes[:'registry_path']
146
146
  end
@@ -162,22 +162,22 @@ module PulpContainerClient
162
162
  # @return Array for valid properties with the reasons
163
163
  def list_invalid_properties
164
164
  invalid_properties = Array.new
165
- if @name.nil?
166
- invalid_properties.push('invalid value for "name", name cannot be nil.')
167
- end
168
-
169
165
  if @base_path.nil?
170
166
  invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
171
167
  end
172
168
 
169
+ if @name.nil?
170
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
171
+ end
172
+
173
173
  invalid_properties
174
174
  end
175
175
 
176
176
  # Check to see if the all the properties in the model are valid
177
177
  # @return true if the model is valid
178
178
  def valid?
179
- return false if @name.nil?
180
179
  return false if @base_path.nil?
180
+ return false if @name.nil?
181
181
  true
182
182
  end
183
183
 
@@ -186,14 +186,14 @@ module PulpContainerClient
186
186
  def ==(o)
187
187
  return true if self.equal?(o)
188
188
  self.class == o.class &&
189
+ base_path == o.base_path &&
190
+ pulp_created == o.pulp_created &&
189
191
  repository_version == o.repository_version &&
192
+ name == o.name &&
190
193
  pulp_labels == o.pulp_labels &&
191
- pulp_created == o.pulp_created &&
192
194
  repository == o.repository &&
193
- name == o.name &&
194
- base_path == o.base_path &&
195
- pulp_href == o.pulp_href &&
196
195
  content_guard == o.content_guard &&
196
+ pulp_href == o.pulp_href &&
197
197
  registry_path == o.registry_path &&
198
198
  namespace == o.namespace &&
199
199
  private == o.private &&
@@ -209,7 +209,7 @@ module PulpContainerClient
209
209
  # Calculates hash code according to all attributes.
210
210
  # @return [Integer] Hash code
211
211
  def hash
212
- [repository_version, pulp_labels, pulp_created, repository, name, base_path, pulp_href, content_guard, registry_path, namespace, private, description].hash
212
+ [base_path, pulp_created, repository_version, name, pulp_labels, repository, content_guard, pulp_href, registry_path, namespace, private, description].hash
213
213
  end
214
214
 
215
215
  # Builds the object from hash
@@ -15,20 +15,20 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class PatchedcontainerContainerDistribution
18
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
19
+ attr_accessor :base_path
20
+
18
21
  # RepositoryVersion to be served
19
22
  attr_accessor :repository_version
20
23
 
24
+ # A unique name. Ex, `rawhide` and `stable`.
25
+ attr_accessor :name
26
+
21
27
  attr_accessor :pulp_labels
22
28
 
23
29
  # The latest RepositoryVersion for this Repository will be served.
24
30
  attr_accessor :repository
25
31
 
26
- # A unique name. Ex, `rawhide` and `stable`.
27
- attr_accessor :name
28
-
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\")
30
- attr_accessor :base_path
31
-
32
32
  # An optional content-guard. If none is specified, a default one will be used.
33
33
  attr_accessor :content_guard
34
34
 
@@ -41,11 +41,11 @@ module PulpContainerClient
41
41
  # Attribute mapping from ruby-style variable name to JSON key.
42
42
  def self.attribute_map
43
43
  {
44
+ :'base_path' => :'base_path',
44
45
  :'repository_version' => :'repository_version',
46
+ :'name' => :'name',
45
47
  :'pulp_labels' => :'pulp_labels',
46
48
  :'repository' => :'repository',
47
- :'name' => :'name',
48
- :'base_path' => :'base_path',
49
49
  :'content_guard' => :'content_guard',
50
50
  :'private' => :'private',
51
51
  :'description' => :'description'
@@ -55,11 +55,11 @@ module PulpContainerClient
55
55
  # Attribute type mapping.
56
56
  def self.openapi_types
57
57
  {
58
+ :'base_path' => :'String',
58
59
  :'repository_version' => :'String',
60
+ :'name' => :'String',
59
61
  :'pulp_labels' => :'Object',
60
62
  :'repository' => :'String',
61
- :'name' => :'String',
62
- :'base_path' => :'String',
63
63
  :'content_guard' => :'String',
64
64
  :'private' => :'Boolean',
65
65
  :'description' => :'String'
@@ -90,10 +90,18 @@ module PulpContainerClient
90
90
  h[k.to_sym] = v
91
91
  }
92
92
 
93
+ if attributes.key?(:'base_path')
94
+ self.base_path = attributes[:'base_path']
95
+ end
96
+
93
97
  if attributes.key?(:'repository_version')
94
98
  self.repository_version = attributes[:'repository_version']
95
99
  end
96
100
 
101
+ if attributes.key?(:'name')
102
+ self.name = attributes[:'name']
103
+ end
104
+
97
105
  if attributes.key?(:'pulp_labels')
98
106
  self.pulp_labels = attributes[:'pulp_labels']
99
107
  end
@@ -102,14 +110,6 @@ module PulpContainerClient
102
110
  self.repository = attributes[:'repository']
103
111
  end
104
112
 
105
- if attributes.key?(:'name')
106
- self.name = attributes[:'name']
107
- end
108
-
109
- if attributes.key?(:'base_path')
110
- self.base_path = attributes[:'base_path']
111
- end
112
-
113
113
  if attributes.key?(:'content_guard')
114
114
  self.content_guard = attributes[:'content_guard']
115
115
  end
@@ -141,11 +141,11 @@ module PulpContainerClient
141
141
  def ==(o)
142
142
  return true if self.equal?(o)
143
143
  self.class == o.class &&
144
+ base_path == o.base_path &&
144
145
  repository_version == o.repository_version &&
146
+ name == o.name &&
145
147
  pulp_labels == o.pulp_labels &&
146
148
  repository == o.repository &&
147
- name == o.name &&
148
- base_path == o.base_path &&
149
149
  content_guard == o.content_guard &&
150
150
  private == o.private &&
151
151
  description == o.description
@@ -160,7 +160,7 @@ module PulpContainerClient
160
160
  # Calculates hash code according to all attributes.
161
161
  # @return [Integer] Hash code
162
162
  def hash
163
- [repository_version, pulp_labels, repository, name, base_path, content_guard, private, description].hash
163
+ [base_path, repository_version, name, pulp_labels, repository, content_guard, private, description].hash
164
164
  end
165
165
 
166
166
  # Builds the object from hash
@@ -0,0 +1,213 @@
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
+ # A serializer for parsing and validating data associated with the image removal.
17
+ class RemoveImage
18
+ # sha256 of the Manifest file
19
+ attr_accessor :digest
20
+
21
+ # Attribute mapping from ruby-style variable name to JSON key.
22
+ def self.attribute_map
23
+ {
24
+ :'digest' => :'digest'
25
+ }
26
+ end
27
+
28
+ # Attribute type mapping.
29
+ def self.openapi_types
30
+ {
31
+ :'digest' => :'String'
32
+ }
33
+ end
34
+
35
+ # List of attributes with nullable: true
36
+ def self.openapi_nullable
37
+ Set.new([
38
+ ])
39
+ end
40
+
41
+ # Initializes the object
42
+ # @param [Hash] attributes Model attributes in the form of hash
43
+ def initialize(attributes = {})
44
+ if (!attributes.is_a?(Hash))
45
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpContainerClient::RemoveImage` initialize method"
46
+ end
47
+
48
+ # check to see if the attribute exists and convert string to symbol for hash key
49
+ attributes = attributes.each_with_object({}) { |(k, v), h|
50
+ if (!self.class.attribute_map.key?(k.to_sym))
51
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpContainerClient::RemoveImage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
52
+ end
53
+ h[k.to_sym] = v
54
+ }
55
+
56
+ if attributes.key?(:'digest')
57
+ self.digest = attributes[:'digest']
58
+ end
59
+ end
60
+
61
+ # Show invalid properties with the reasons. Usually used together with valid?
62
+ # @return Array for valid properties with the reasons
63
+ def list_invalid_properties
64
+ invalid_properties = Array.new
65
+ if @digest.nil?
66
+ invalid_properties.push('invalid value for "digest", digest cannot be nil.')
67
+ end
68
+
69
+ invalid_properties
70
+ end
71
+
72
+ # Check to see if the all the properties in the model are valid
73
+ # @return true if the model is valid
74
+ def valid?
75
+ return false if @digest.nil?
76
+ true
77
+ end
78
+
79
+ # Checks equality by comparing each attribute.
80
+ # @param [Object] Object to be compared
81
+ def ==(o)
82
+ return true if self.equal?(o)
83
+ self.class == o.class &&
84
+ digest == o.digest
85
+ end
86
+
87
+ # @see the `==` method
88
+ # @param [Object] Object to be compared
89
+ def eql?(o)
90
+ self == o
91
+ end
92
+
93
+ # Calculates hash code according to all attributes.
94
+ # @return [Integer] Hash code
95
+ def hash
96
+ [digest].hash
97
+ end
98
+
99
+ # Builds the object from hash
100
+ # @param [Hash] attributes Model attributes in the form of hash
101
+ # @return [Object] Returns the model itself
102
+ def self.build_from_hash(attributes)
103
+ new.build_from_hash(attributes)
104
+ end
105
+
106
+ # Builds the object from hash
107
+ # @param [Hash] attributes Model attributes in the form of hash
108
+ # @return [Object] Returns the model itself
109
+ def build_from_hash(attributes)
110
+ return nil unless attributes.is_a?(Hash)
111
+ self.class.openapi_types.each_pair do |key, type|
112
+ if type =~ /\AArray<(.*)>/i
113
+ # check to ensure the input is an array given that the attribute
114
+ # is documented as an array but the input is not
115
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
116
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
117
+ end
118
+ elsif !attributes[self.class.attribute_map[key]].nil?
119
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
120
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
121
+ end
122
+
123
+ self
124
+ end
125
+
126
+ # Deserializes the data based on type
127
+ # @param string type Data type
128
+ # @param string value Value to be deserialized
129
+ # @return [Object] Deserialized data
130
+ def _deserialize(type, value)
131
+ case type.to_sym
132
+ when :DateTime
133
+ DateTime.parse(value)
134
+ when :Date
135
+ Date.parse(value)
136
+ when :String
137
+ value.to_s
138
+ when :Integer
139
+ value.to_i
140
+ when :Float
141
+ value.to_f
142
+ when :Boolean
143
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
144
+ true
145
+ else
146
+ false
147
+ end
148
+ when :Object
149
+ # generic object (usually a Hash), return directly
150
+ value
151
+ when /\AArray<(?<inner_type>.+)>\z/
152
+ inner_type = Regexp.last_match[:inner_type]
153
+ value.map { |v| _deserialize(inner_type, v) }
154
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
155
+ k_type = Regexp.last_match[:k_type]
156
+ v_type = Regexp.last_match[:v_type]
157
+ {}.tap do |hash|
158
+ value.each do |k, v|
159
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
160
+ end
161
+ end
162
+ else # model
163
+ PulpContainerClient.const_get(type).build_from_hash(value)
164
+ end
165
+ end
166
+
167
+ # Returns the string representation of the object
168
+ # @return [String] String presentation of the object
169
+ def to_s
170
+ to_hash.to_s
171
+ end
172
+
173
+ # to_body is an alias to to_hash (backward compatibility)
174
+ # @return [Hash] Returns the object in the form of hash
175
+ def to_body
176
+ to_hash
177
+ end
178
+
179
+ # Returns the object in the form of hash
180
+ # @return [Hash] Returns the object in the form of hash
181
+ def to_hash
182
+ hash = {}
183
+ self.class.attribute_map.each_pair do |attr, param|
184
+ value = self.send(attr)
185
+ if value.nil?
186
+ is_nullable = self.class.openapi_nullable.include?(attr)
187
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
188
+ end
189
+
190
+ hash[param] = _to_hash(value)
191
+ end
192
+ hash
193
+ end
194
+
195
+ # Outputs non-array value in the form of hash
196
+ # For object, use to_hash. Otherwise, just return the value
197
+ # @param [Object] value Any valid value
198
+ # @return [Hash] Returns the value in the form of hash
199
+ def _to_hash(value)
200
+ if value.is_a?(Array)
201
+ value.compact.map { |v| _to_hash(v) }
202
+ elsif value.is_a?(Hash)
203
+ {}.tap do |hash|
204
+ value.each { |k, v| hash[k] = _to_hash(v) }
205
+ end
206
+ elsif value.respond_to? :to_hash
207
+ value.to_hash
208
+ else
209
+ value
210
+ end
211
+ end
212
+ end
213
+ end
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.2.3
11
11
  =end
12
12
 
13
13
  module PulpContainerClient
14
- VERSION = '2.4.0.dev01613877682'
14
+ VERSION = '2.4.0.dev1614741644'
15
15
  end
@@ -68,6 +68,19 @@ describe 'RepositoriesContainerPushApi' do
68
68
  end
69
69
  end
70
70
 
71
+ # unit tests for remove_image
72
+ # Delete an image from a repository
73
+ # Trigger an asynchronous task to remove a manifest and all its associated data by a digest
74
+ # @param container_container_push_repository_href
75
+ # @param remove_image
76
+ # @param [Hash] opts the optional parameters
77
+ # @return [AsyncOperationResponse]
78
+ describe 'remove_image test' do
79
+ it 'should work' do
80
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
81
+ end
82
+ end
83
+
71
84
  # unit tests for tag
72
85
  # Create a Tag
73
86
  # Trigger an asynchronous task to tag an image in the repository
@@ -32,49 +32,49 @@ describe 'ContainerContainerDistributionResponse' do
32
32
  expect(@instance).to be_instance_of(PulpContainerClient::ContainerContainerDistributionResponse)
33
33
  end
34
34
  end
35
- describe 'test attribute "repository_version"' do
35
+ describe 'test attribute "base_path"' do
36
36
  it 'should work' do
37
37
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
38
  end
39
39
  end
40
40
 
41
- describe 'test attribute "pulp_labels"' do
41
+ describe 'test attribute "pulp_created"' do
42
42
  it 'should work' do
43
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
44
  end
45
45
  end
46
46
 
47
- describe 'test attribute "pulp_created"' do
47
+ describe 'test attribute "repository_version"' do
48
48
  it 'should work' do
49
49
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
50
  end
51
51
  end
52
52
 
53
- describe 'test attribute "repository"' do
53
+ describe 'test attribute "name"' do
54
54
  it 'should work' do
55
55
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
56
  end
57
57
  end
58
58
 
59
- describe 'test attribute "name"' do
59
+ describe 'test attribute "pulp_labels"' do
60
60
  it 'should work' do
61
61
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
62
  end
63
63
  end
64
64
 
65
- describe 'test attribute "base_path"' do
65
+ describe 'test attribute "repository"' do
66
66
  it 'should work' do
67
67
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
68
  end
69
69
  end
70
70
 
71
- describe 'test attribute "pulp_href"' do
71
+ describe 'test attribute "content_guard"' do
72
72
  it 'should work' do
73
73
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
74
74
  end
75
75
  end
76
76
 
77
- describe 'test attribute "content_guard"' do
77
+ describe 'test attribute "pulp_href"' do
78
78
  it 'should work' do
79
79
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
80
  end
@@ -32,31 +32,31 @@ describe 'ContainerContainerDistribution' do
32
32
  expect(@instance).to be_instance_of(PulpContainerClient::ContainerContainerDistribution)
33
33
  end
34
34
  end
35
- describe 'test attribute "repository_version"' do
35
+ describe 'test attribute "base_path"' do
36
36
  it 'should work' do
37
37
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
38
  end
39
39
  end
40
40
 
41
- describe 'test attribute "pulp_labels"' do
41
+ describe 'test attribute "repository_version"' do
42
42
  it 'should work' do
43
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
44
  end
45
45
  end
46
46
 
47
- describe 'test attribute "repository"' do
47
+ describe 'test attribute "name"' do
48
48
  it 'should work' do
49
49
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
50
  end
51
51
  end
52
52
 
53
- describe 'test attribute "name"' do
53
+ describe 'test attribute "pulp_labels"' do
54
54
  it 'should work' do
55
55
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
56
  end
57
57
  end
58
58
 
59
- describe 'test attribute "base_path"' do
59
+ describe 'test attribute "repository"' do
60
60
  it 'should work' do
61
61
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
62
  end
@@ -32,31 +32,31 @@ describe 'PatchedcontainerContainerDistribution' do
32
32
  expect(@instance).to be_instance_of(PulpContainerClient::PatchedcontainerContainerDistribution)
33
33
  end
34
34
  end
35
- describe 'test attribute "repository_version"' do
35
+ describe 'test attribute "base_path"' do
36
36
  it 'should work' do
37
37
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
38
  end
39
39
  end
40
40
 
41
- describe 'test attribute "pulp_labels"' do
41
+ describe 'test attribute "repository_version"' do
42
42
  it 'should work' do
43
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
44
  end
45
45
  end
46
46
 
47
- describe 'test attribute "repository"' do
47
+ describe 'test attribute "name"' do
48
48
  it 'should work' do
49
49
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
50
  end
51
51
  end
52
52
 
53
- describe 'test attribute "name"' do
53
+ describe 'test attribute "pulp_labels"' do
54
54
  it 'should work' do
55
55
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
56
  end
57
57
  end
58
58
 
59
- describe 'test attribute "base_path"' do
59
+ describe 'test attribute "repository"' do
60
60
  it 'should work' do
61
61
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
62
  end
@@ -0,0 +1,41 @@
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 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for PulpContainerClient::RemoveImage
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'RemoveImage' do
21
+ before do
22
+ # run before each test
23
+ @instance = PulpContainerClient::RemoveImage.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of RemoveImage' do
31
+ it 'should create an instance of RemoveImage' do
32
+ expect(@instance).to be_instance_of(PulpContainerClient::RemoveImage)
33
+ end
34
+ end
35
+ describe 'test attribute "digest"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulp_container_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0.dev01613877682
4
+ version: 2.4.0.dev1614741644
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-21 00:00:00.000000000 Z
11
+ date: 2021-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -117,6 +117,7 @@ files:
117
117
  - docs/PulpContainerNamespacesApi.md
118
118
  - docs/RecursiveManage.md
119
119
  - docs/RemotesContainerApi.md
120
+ - docs/RemoveImage.md
120
121
  - docs/RepositoriesContainerApi.md
121
122
  - docs/RepositoriesContainerPushApi.md
122
123
  - docs/RepositoriesContainerVersionsApi.md
@@ -179,6 +180,7 @@ files:
179
180
  - lib/pulp_container_client/models/patchedcontainer_content_redirect_content_guard.rb
180
181
  - lib/pulp_container_client/models/policy_enum.rb
181
182
  - lib/pulp_container_client/models/recursive_manage.rb
183
+ - lib/pulp_container_client/models/remove_image.rb
182
184
  - lib/pulp_container_client/models/repository_sync_url.rb
183
185
  - lib/pulp_container_client/models/repository_version.rb
184
186
  - lib/pulp_container_client/models/repository_version_response.rb
@@ -236,6 +238,7 @@ files:
236
238
  - spec/models/patchedcontainer_content_redirect_content_guard_spec.rb
237
239
  - spec/models/policy_enum_spec.rb
238
240
  - spec/models/recursive_manage_spec.rb
241
+ - spec/models/remove_image_spec.rb
239
242
  - spec/models/repository_sync_url_spec.rb
240
243
  - spec/models/repository_version_response_spec.rb
241
244
  - spec/models/repository_version_spec.rb
@@ -302,6 +305,7 @@ test_files:
302
305
  - spec/models/container_container_namespace_response_spec.rb
303
306
  - spec/models/oci_build_image_spec.rb
304
307
  - spec/models/patchedcontainer_content_redirect_content_guard_spec.rb
308
+ - spec/models/remove_image_spec.rb
305
309
  - spec/models/recursive_manage_spec.rb
306
310
  - spec/models/paginatedcontainer_tag_response_list_spec.rb
307
311
  - spec/models/paginatedcontainer_content_redirect_content_guard_response_list_spec.rb