pulp_container_client 2.10.0 → 2.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/docs/ContainerContainerDistribution.md +2 -2
- data/docs/ContainerContainerDistributionResponse.md +5 -5
- data/docs/ContainerContainerPushRepository.md +5 -5
- data/docs/ContainerContainerPushRepositoryResponse.md +11 -11
- data/docs/PatchedcontainerContainerDistribution.md +2 -2
- data/docs/PatchedcontainerContainerPushRepository.md +5 -5
- data/lib/pulp_container_client/api_client.rb +1 -4
- data/lib/pulp_container_client/configuration.rb +1 -0
- data/lib/pulp_container_client/models/container_container_distribution.rb +11 -11
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +21 -21
- data/lib/pulp_container_client/models/container_container_push_repository.rb +43 -43
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +46 -46
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +11 -11
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +35 -35
- data/lib/pulp_container_client/version.rb +1 -1
- data/pulp_container_client.gemspec +1 -1
- data/spec/models/container_container_distribution_response_spec.rb +6 -6
- data/spec/models/container_container_distribution_spec.rb +3 -3
- data/spec/models/container_container_push_repository_response_spec.rb +7 -7
- data/spec/models/container_container_push_repository_spec.rb +3 -3
- data/spec/models/patchedcontainer_container_distribution_spec.rb +3 -3
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +3 -3
- metadata +54 -48
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1240268e609f7d71b6170a0e78d7653365361e51f0cd3a97d93fd7194fc88abf
|
|
4
|
+
data.tar.gz: fc7b8aee983cb9733cda47eb2778f3a9670fbc97482d60060eea9eb473bb9b7e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 206f28ffb534c8be3795654fbdef5c27492bf864867fb4fb73cb68de998c64ddec13029015fd0885d06935c1a21aa6e740e8a6b4b078c836ae58e40ee4ff7533
|
|
7
|
+
data.tar.gz: f9001a0026a14ed769fe551bb349c300db61fbb04eb731dda165cdbcbb304852e1c9b3db39fbb6509523be6c479689b3f04aada1ad98a6a257d51eed443d671e
|
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.10.
|
|
10
|
+
- Package version: 2.10.3
|
|
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.10.
|
|
27
|
+
gem install ./pulp_container_client-2.10.3.gem
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
(for development, run `gem install --dev ./pulp_container_client-2.10.
|
|
30
|
+
(for development, run `gem install --dev ./pulp_container_client-2.10.3.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.10.
|
|
36
|
+
gem 'pulp_container_client', '~> 2.10.3'
|
|
37
37
|
|
|
38
38
|
### Install from Git
|
|
39
39
|
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**pulp_labels** | [**Object**](.md) | | [optional]
|
|
8
|
-
**content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
|
|
9
8
|
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
|
|
10
9
|
**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\") |
|
|
10
|
+
**content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
|
|
11
11
|
**repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
|
|
12
12
|
**repository_version** | **String** | RepositoryVersion to be served | [optional]
|
|
13
13
|
**private** | **Boolean** | Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access. | [optional]
|
|
@@ -19,9 +19,9 @@ Name | Type | Description | Notes
|
|
|
19
19
|
require 'PulpContainerClient'
|
|
20
20
|
|
|
21
21
|
instance = PulpContainerClient::ContainerContainerDistribution.new(pulp_labels: null,
|
|
22
|
-
content_guard: null,
|
|
23
22
|
name: null,
|
|
24
23
|
base_path: null,
|
|
24
|
+
content_guard: null,
|
|
25
25
|
repository: null,
|
|
26
26
|
repository_version: null,
|
|
27
27
|
private: null,
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
|
8
7
|
**pulp_labels** | [**Object**](.md) | | [optional]
|
|
9
|
-
**content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
|
|
10
8
|
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
|
|
9
|
+
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
|
11
10
|
**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
11
|
**pulp_href** | **String** | | [optional] [readonly]
|
|
12
|
+
**content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
|
|
13
13
|
**repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
|
|
14
14
|
**repository_version** | **String** | RepositoryVersion to be served | [optional]
|
|
15
15
|
**registry_path** | **String** | The Registry hostame/name/ to use with docker pull command defined by this distribution. | [optional] [readonly]
|
|
@@ -22,12 +22,12 @@ Name | Type | Description | Notes
|
|
|
22
22
|
```ruby
|
|
23
23
|
require 'PulpContainerClient'
|
|
24
24
|
|
|
25
|
-
instance = PulpContainerClient::ContainerContainerDistributionResponse.new(
|
|
26
|
-
pulp_labels: null,
|
|
27
|
-
content_guard: null,
|
|
25
|
+
instance = PulpContainerClient::ContainerContainerDistributionResponse.new(pulp_labels: null,
|
|
28
26
|
name: null,
|
|
27
|
+
pulp_created: null,
|
|
29
28
|
base_path: null,
|
|
30
29
|
pulp_href: null,
|
|
30
|
+
content_guard: null,
|
|
31
31
|
repository: null,
|
|
32
32
|
repository_version: null,
|
|
33
33
|
registry_path: null,
|
|
@@ -4,20 +4,20 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**description** | **String** | An optional description. | [optional]
|
|
8
7
|
**pulp_labels** | [**Object**](.md) | | [optional]
|
|
9
|
-
**retain_repo_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future. | [optional]
|
|
10
8
|
**name** | **String** | A unique name for this repository. |
|
|
9
|
+
**retain_repo_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future. | [optional]
|
|
10
|
+
**description** | **String** | An optional description. | [optional]
|
|
11
11
|
|
|
12
12
|
## Code Sample
|
|
13
13
|
|
|
14
14
|
```ruby
|
|
15
15
|
require 'PulpContainerClient'
|
|
16
16
|
|
|
17
|
-
instance = PulpContainerClient::ContainerContainerPushRepository.new(
|
|
18
|
-
|
|
17
|
+
instance = PulpContainerClient::ContainerContainerPushRepository.new(pulp_labels: null,
|
|
18
|
+
name: null,
|
|
19
19
|
retain_repo_versions: null,
|
|
20
|
-
|
|
20
|
+
description: null)
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
|
|
@@ -4,28 +4,28 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
|
8
|
-
**description** | **String** | An optional description. | [optional]
|
|
9
7
|
**pulp_labels** | [**Object**](.md) | | [optional]
|
|
10
|
-
**retain_repo_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future. | [optional]
|
|
11
|
-
**name** | **String** | A unique name for this repository. |
|
|
12
|
-
**versions_href** | **String** | | [optional] [readonly]
|
|
13
8
|
**latest_version_href** | **String** | | [optional] [readonly]
|
|
9
|
+
**name** | **String** | A unique name for this repository. |
|
|
10
|
+
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
|
14
11
|
**pulp_href** | **String** | | [optional] [readonly]
|
|
12
|
+
**versions_href** | **String** | | [optional] [readonly]
|
|
13
|
+
**retain_repo_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future. | [optional]
|
|
14
|
+
**description** | **String** | An optional description. | [optional]
|
|
15
15
|
|
|
16
16
|
## Code Sample
|
|
17
17
|
|
|
18
18
|
```ruby
|
|
19
19
|
require 'PulpContainerClient'
|
|
20
20
|
|
|
21
|
-
instance = PulpContainerClient::ContainerContainerPushRepositoryResponse.new(
|
|
22
|
-
|
|
23
|
-
pulp_labels: null,
|
|
24
|
-
retain_repo_versions: null,
|
|
21
|
+
instance = PulpContainerClient::ContainerContainerPushRepositoryResponse.new(pulp_labels: null,
|
|
22
|
+
latest_version_href: null,
|
|
25
23
|
name: null,
|
|
24
|
+
pulp_created: null,
|
|
25
|
+
pulp_href: null,
|
|
26
26
|
versions_href: null,
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
retain_repo_versions: null,
|
|
28
|
+
description: null)
|
|
29
29
|
```
|
|
30
30
|
|
|
31
31
|
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**pulp_labels** | [**Object**](.md) | | [optional]
|
|
8
|
-
**content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
|
|
9
8
|
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. | [optional]
|
|
10
9
|
**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]
|
|
10
|
+
**content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
|
|
11
11
|
**repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
|
|
12
12
|
**repository_version** | **String** | RepositoryVersion to be served | [optional]
|
|
13
13
|
**private** | **Boolean** | Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access. | [optional]
|
|
@@ -19,9 +19,9 @@ Name | Type | Description | Notes
|
|
|
19
19
|
require 'PulpContainerClient'
|
|
20
20
|
|
|
21
21
|
instance = PulpContainerClient::PatchedcontainerContainerDistribution.new(pulp_labels: null,
|
|
22
|
-
content_guard: null,
|
|
23
22
|
name: null,
|
|
24
23
|
base_path: null,
|
|
24
|
+
content_guard: null,
|
|
25
25
|
repository: null,
|
|
26
26
|
repository_version: null,
|
|
27
27
|
private: null,
|
|
@@ -4,20 +4,20 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**description** | **String** | An optional description. | [optional]
|
|
8
7
|
**pulp_labels** | [**Object**](.md) | | [optional]
|
|
9
|
-
**retain_repo_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future. | [optional]
|
|
10
8
|
**name** | **String** | A unique name for this repository. | [optional]
|
|
9
|
+
**retain_repo_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future. | [optional]
|
|
10
|
+
**description** | **String** | An optional description. | [optional]
|
|
11
11
|
|
|
12
12
|
## Code Sample
|
|
13
13
|
|
|
14
14
|
```ruby
|
|
15
15
|
require 'PulpContainerClient'
|
|
16
16
|
|
|
17
|
-
instance = PulpContainerClient::PatchedcontainerContainerPushRepository.new(
|
|
18
|
-
|
|
17
|
+
instance = PulpContainerClient::PatchedcontainerContainerPushRepository.new(pulp_labels: null,
|
|
18
|
+
name: null,
|
|
19
19
|
retain_repo_versions: null,
|
|
20
|
-
|
|
20
|
+
description: null)
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
|
|
@@ -118,9 +118,6 @@ module PulpContainerClient
|
|
|
118
118
|
update_params_for_auth! header_params, query_params, opts[:auth_names]
|
|
119
119
|
|
|
120
120
|
req_opts = {
|
|
121
|
-
:method => http_method,
|
|
122
|
-
:headers => header_params,
|
|
123
|
-
:params => query_params,
|
|
124
121
|
:params_encoding => @config.params_encoding,
|
|
125
122
|
:timeout => @config.timeout,
|
|
126
123
|
:verbose => @config.debugging
|
|
@@ -128,13 +125,13 @@ module PulpContainerClient
|
|
|
128
125
|
|
|
129
126
|
if [:post, :patch, :put, :delete].include?(http_method)
|
|
130
127
|
req_body = build_request_body(header_params, form_params, opts[:body])
|
|
131
|
-
req_opts.update :body => req_body
|
|
132
128
|
if @config.debugging
|
|
133
129
|
@config.logger.debug "HTTP request body param ~BEGIN~\n#{req_body}\n~END~\n"
|
|
134
130
|
end
|
|
135
131
|
end
|
|
136
132
|
request.headers = header_params
|
|
137
133
|
request.body = req_body
|
|
134
|
+
request.options = OpenStruct.new(req_opts)
|
|
138
135
|
request.url url
|
|
139
136
|
request.params = query_params
|
|
140
137
|
download_file(request) if opts[:return_type] == 'File'
|
|
@@ -17,15 +17,15 @@ module PulpContainerClient
|
|
|
17
17
|
class ContainerContainerDistribution
|
|
18
18
|
attr_accessor :pulp_labels
|
|
19
19
|
|
|
20
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
|
21
|
-
attr_accessor :content_guard
|
|
22
|
-
|
|
23
20
|
# A unique name. Ex, `rawhide` and `stable`.
|
|
24
21
|
attr_accessor :name
|
|
25
22
|
|
|
26
23
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
27
24
|
attr_accessor :base_path
|
|
28
25
|
|
|
26
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
|
27
|
+
attr_accessor :content_guard
|
|
28
|
+
|
|
29
29
|
# The latest RepositoryVersion for this Repository will be served.
|
|
30
30
|
attr_accessor :repository
|
|
31
31
|
|
|
@@ -42,9 +42,9 @@ module PulpContainerClient
|
|
|
42
42
|
def self.attribute_map
|
|
43
43
|
{
|
|
44
44
|
:'pulp_labels' => :'pulp_labels',
|
|
45
|
-
:'content_guard' => :'content_guard',
|
|
46
45
|
:'name' => :'name',
|
|
47
46
|
:'base_path' => :'base_path',
|
|
47
|
+
:'content_guard' => :'content_guard',
|
|
48
48
|
:'repository' => :'repository',
|
|
49
49
|
:'repository_version' => :'repository_version',
|
|
50
50
|
:'private' => :'private',
|
|
@@ -56,9 +56,9 @@ module PulpContainerClient
|
|
|
56
56
|
def self.openapi_types
|
|
57
57
|
{
|
|
58
58
|
:'pulp_labels' => :'Object',
|
|
59
|
-
:'content_guard' => :'String',
|
|
60
59
|
:'name' => :'String',
|
|
61
60
|
:'base_path' => :'String',
|
|
61
|
+
:'content_guard' => :'String',
|
|
62
62
|
:'repository' => :'String',
|
|
63
63
|
:'repository_version' => :'String',
|
|
64
64
|
:'private' => :'Boolean',
|
|
@@ -94,10 +94,6 @@ module PulpContainerClient
|
|
|
94
94
|
self.pulp_labels = attributes[:'pulp_labels']
|
|
95
95
|
end
|
|
96
96
|
|
|
97
|
-
if attributes.key?(:'content_guard')
|
|
98
|
-
self.content_guard = attributes[:'content_guard']
|
|
99
|
-
end
|
|
100
|
-
|
|
101
97
|
if attributes.key?(:'name')
|
|
102
98
|
self.name = attributes[:'name']
|
|
103
99
|
end
|
|
@@ -106,6 +102,10 @@ module PulpContainerClient
|
|
|
106
102
|
self.base_path = attributes[:'base_path']
|
|
107
103
|
end
|
|
108
104
|
|
|
105
|
+
if attributes.key?(:'content_guard')
|
|
106
|
+
self.content_guard = attributes[:'content_guard']
|
|
107
|
+
end
|
|
108
|
+
|
|
109
109
|
if attributes.key?(:'repository')
|
|
110
110
|
self.repository = attributes[:'repository']
|
|
111
111
|
end
|
|
@@ -205,9 +205,9 @@ module PulpContainerClient
|
|
|
205
205
|
return true if self.equal?(o)
|
|
206
206
|
self.class == o.class &&
|
|
207
207
|
pulp_labels == o.pulp_labels &&
|
|
208
|
-
content_guard == o.content_guard &&
|
|
209
208
|
name == o.name &&
|
|
210
209
|
base_path == o.base_path &&
|
|
210
|
+
content_guard == o.content_guard &&
|
|
211
211
|
repository == o.repository &&
|
|
212
212
|
repository_version == o.repository_version &&
|
|
213
213
|
private == o.private &&
|
|
@@ -223,7 +223,7 @@ module PulpContainerClient
|
|
|
223
223
|
# Calculates hash code according to all attributes.
|
|
224
224
|
# @return [Integer] Hash code
|
|
225
225
|
def hash
|
|
226
|
-
[pulp_labels,
|
|
226
|
+
[pulp_labels, name, base_path, content_guard, repository, repository_version, private, description].hash
|
|
227
227
|
end
|
|
228
228
|
|
|
229
229
|
# Builds the object from hash
|
|
@@ -15,22 +15,22 @@ require 'date'
|
|
|
15
15
|
module PulpContainerClient
|
|
16
16
|
# A serializer for ContainerDistribution.
|
|
17
17
|
class ContainerContainerDistributionResponse
|
|
18
|
-
# Timestamp of creation.
|
|
19
|
-
attr_accessor :pulp_created
|
|
20
|
-
|
|
21
18
|
attr_accessor :pulp_labels
|
|
22
19
|
|
|
23
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
|
24
|
-
attr_accessor :content_guard
|
|
25
|
-
|
|
26
20
|
# A unique name. Ex, `rawhide` and `stable`.
|
|
27
21
|
attr_accessor :name
|
|
28
22
|
|
|
23
|
+
# Timestamp of creation.
|
|
24
|
+
attr_accessor :pulp_created
|
|
25
|
+
|
|
29
26
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
30
27
|
attr_accessor :base_path
|
|
31
28
|
|
|
32
29
|
attr_accessor :pulp_href
|
|
33
30
|
|
|
31
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
|
32
|
+
attr_accessor :content_guard
|
|
33
|
+
|
|
34
34
|
# The latest RepositoryVersion for this Repository will be served.
|
|
35
35
|
attr_accessor :repository
|
|
36
36
|
|
|
@@ -52,12 +52,12 @@ module PulpContainerClient
|
|
|
52
52
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
53
53
|
def self.attribute_map
|
|
54
54
|
{
|
|
55
|
-
:'pulp_created' => :'pulp_created',
|
|
56
55
|
:'pulp_labels' => :'pulp_labels',
|
|
57
|
-
:'content_guard' => :'content_guard',
|
|
58
56
|
:'name' => :'name',
|
|
57
|
+
:'pulp_created' => :'pulp_created',
|
|
59
58
|
:'base_path' => :'base_path',
|
|
60
59
|
:'pulp_href' => :'pulp_href',
|
|
60
|
+
:'content_guard' => :'content_guard',
|
|
61
61
|
:'repository' => :'repository',
|
|
62
62
|
:'repository_version' => :'repository_version',
|
|
63
63
|
:'registry_path' => :'registry_path',
|
|
@@ -70,12 +70,12 @@ module PulpContainerClient
|
|
|
70
70
|
# Attribute type mapping.
|
|
71
71
|
def self.openapi_types
|
|
72
72
|
{
|
|
73
|
-
:'pulp_created' => :'DateTime',
|
|
74
73
|
:'pulp_labels' => :'Object',
|
|
75
|
-
:'content_guard' => :'String',
|
|
76
74
|
:'name' => :'String',
|
|
75
|
+
:'pulp_created' => :'DateTime',
|
|
77
76
|
:'base_path' => :'String',
|
|
78
77
|
:'pulp_href' => :'String',
|
|
78
|
+
:'content_guard' => :'String',
|
|
79
79
|
:'repository' => :'String',
|
|
80
80
|
:'repository_version' => :'String',
|
|
81
81
|
:'registry_path' => :'String',
|
|
@@ -109,22 +109,18 @@ module PulpContainerClient
|
|
|
109
109
|
h[k.to_sym] = v
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
-
if attributes.key?(:'pulp_created')
|
|
113
|
-
self.pulp_created = attributes[:'pulp_created']
|
|
114
|
-
end
|
|
115
|
-
|
|
116
112
|
if attributes.key?(:'pulp_labels')
|
|
117
113
|
self.pulp_labels = attributes[:'pulp_labels']
|
|
118
114
|
end
|
|
119
115
|
|
|
120
|
-
if attributes.key?(:'content_guard')
|
|
121
|
-
self.content_guard = attributes[:'content_guard']
|
|
122
|
-
end
|
|
123
|
-
|
|
124
116
|
if attributes.key?(:'name')
|
|
125
117
|
self.name = attributes[:'name']
|
|
126
118
|
end
|
|
127
119
|
|
|
120
|
+
if attributes.key?(:'pulp_created')
|
|
121
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
122
|
+
end
|
|
123
|
+
|
|
128
124
|
if attributes.key?(:'base_path')
|
|
129
125
|
self.base_path = attributes[:'base_path']
|
|
130
126
|
end
|
|
@@ -133,6 +129,10 @@ module PulpContainerClient
|
|
|
133
129
|
self.pulp_href = attributes[:'pulp_href']
|
|
134
130
|
end
|
|
135
131
|
|
|
132
|
+
if attributes.key?(:'content_guard')
|
|
133
|
+
self.content_guard = attributes[:'content_guard']
|
|
134
|
+
end
|
|
135
|
+
|
|
136
136
|
if attributes.key?(:'repository')
|
|
137
137
|
self.repository = attributes[:'repository']
|
|
138
138
|
end
|
|
@@ -186,12 +186,12 @@ module PulpContainerClient
|
|
|
186
186
|
def ==(o)
|
|
187
187
|
return true if self.equal?(o)
|
|
188
188
|
self.class == o.class &&
|
|
189
|
-
pulp_created == o.pulp_created &&
|
|
190
189
|
pulp_labels == o.pulp_labels &&
|
|
191
|
-
content_guard == o.content_guard &&
|
|
192
190
|
name == o.name &&
|
|
191
|
+
pulp_created == o.pulp_created &&
|
|
193
192
|
base_path == o.base_path &&
|
|
194
193
|
pulp_href == o.pulp_href &&
|
|
194
|
+
content_guard == o.content_guard &&
|
|
195
195
|
repository == o.repository &&
|
|
196
196
|
repository_version == o.repository_version &&
|
|
197
197
|
registry_path == o.registry_path &&
|
|
@@ -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
|
-
[
|
|
212
|
+
[pulp_labels, name, pulp_created, base_path, pulp_href, content_guard, repository, repository_version, registry_path, namespace, private, description].hash
|
|
213
213
|
end
|
|
214
214
|
|
|
215
215
|
# Builds the object from hash
|
|
@@ -15,42 +15,42 @@ require 'date'
|
|
|
15
15
|
module PulpContainerClient
|
|
16
16
|
# Serializer for Container Push Repositories.
|
|
17
17
|
class ContainerContainerPushRepository
|
|
18
|
-
# An optional description.
|
|
19
|
-
attr_accessor :description
|
|
20
|
-
|
|
21
18
|
attr_accessor :pulp_labels
|
|
22
19
|
|
|
20
|
+
# A unique name for this repository.
|
|
21
|
+
attr_accessor :name
|
|
22
|
+
|
|
23
23
|
# Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
|
|
24
24
|
attr_accessor :retain_repo_versions
|
|
25
25
|
|
|
26
|
-
#
|
|
27
|
-
attr_accessor :
|
|
26
|
+
# An optional description.
|
|
27
|
+
attr_accessor :description
|
|
28
28
|
|
|
29
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
30
30
|
def self.attribute_map
|
|
31
31
|
{
|
|
32
|
-
:'description' => :'description',
|
|
33
32
|
:'pulp_labels' => :'pulp_labels',
|
|
33
|
+
:'name' => :'name',
|
|
34
34
|
:'retain_repo_versions' => :'retain_repo_versions',
|
|
35
|
-
:'
|
|
35
|
+
:'description' => :'description'
|
|
36
36
|
}
|
|
37
37
|
end
|
|
38
38
|
|
|
39
39
|
# Attribute type mapping.
|
|
40
40
|
def self.openapi_types
|
|
41
41
|
{
|
|
42
|
-
:'description' => :'String',
|
|
43
42
|
:'pulp_labels' => :'Object',
|
|
43
|
+
:'name' => :'String',
|
|
44
44
|
:'retain_repo_versions' => :'Integer',
|
|
45
|
-
:'
|
|
45
|
+
:'description' => :'String'
|
|
46
46
|
}
|
|
47
47
|
end
|
|
48
48
|
|
|
49
49
|
# List of attributes with nullable: true
|
|
50
50
|
def self.openapi_nullable
|
|
51
51
|
Set.new([
|
|
52
|
-
:'description',
|
|
53
52
|
:'retain_repo_versions',
|
|
53
|
+
:'description'
|
|
54
54
|
])
|
|
55
55
|
end
|
|
56
56
|
|
|
@@ -69,20 +69,20 @@ module PulpContainerClient
|
|
|
69
69
|
h[k.to_sym] = v
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
if attributes.key?(:'description')
|
|
73
|
-
self.description = attributes[:'description']
|
|
74
|
-
end
|
|
75
|
-
|
|
76
72
|
if attributes.key?(:'pulp_labels')
|
|
77
73
|
self.pulp_labels = attributes[:'pulp_labels']
|
|
78
74
|
end
|
|
79
75
|
|
|
76
|
+
if attributes.key?(:'name')
|
|
77
|
+
self.name = attributes[:'name']
|
|
78
|
+
end
|
|
79
|
+
|
|
80
80
|
if attributes.key?(:'retain_repo_versions')
|
|
81
81
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
82
82
|
end
|
|
83
83
|
|
|
84
|
-
if attributes.key?(:'
|
|
85
|
-
self.
|
|
84
|
+
if attributes.key?(:'description')
|
|
85
|
+
self.description = attributes[:'description']
|
|
86
86
|
end
|
|
87
87
|
end
|
|
88
88
|
|
|
@@ -90,14 +90,6 @@ module PulpContainerClient
|
|
|
90
90
|
# @return Array for valid properties with the reasons
|
|
91
91
|
def list_invalid_properties
|
|
92
92
|
invalid_properties = Array.new
|
|
93
|
-
if !@description.nil? && @description.to_s.length < 1
|
|
94
|
-
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
95
|
-
end
|
|
96
|
-
|
|
97
|
-
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
98
|
-
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
99
|
-
end
|
|
100
|
-
|
|
101
93
|
if @name.nil?
|
|
102
94
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
103
95
|
end
|
|
@@ -106,27 +98,39 @@ module PulpContainerClient
|
|
|
106
98
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
107
99
|
end
|
|
108
100
|
|
|
101
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
102
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
if !@description.nil? && @description.to_s.length < 1
|
|
106
|
+
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
107
|
+
end
|
|
108
|
+
|
|
109
109
|
invalid_properties
|
|
110
110
|
end
|
|
111
111
|
|
|
112
112
|
# Check to see if the all the properties in the model are valid
|
|
113
113
|
# @return true if the model is valid
|
|
114
114
|
def valid?
|
|
115
|
-
return false if !@description.nil? && @description.to_s.length < 1
|
|
116
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
117
115
|
return false if @name.nil?
|
|
118
116
|
return false if @name.to_s.length < 1
|
|
117
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
118
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
|
119
119
|
true
|
|
120
120
|
end
|
|
121
121
|
|
|
122
122
|
# Custom attribute writer method with validation
|
|
123
|
-
# @param [Object]
|
|
124
|
-
def
|
|
125
|
-
if
|
|
126
|
-
fail ArgumentError, '
|
|
123
|
+
# @param [Object] name Value to be assigned
|
|
124
|
+
def name=(name)
|
|
125
|
+
if name.nil?
|
|
126
|
+
fail ArgumentError, 'name cannot be nil'
|
|
127
127
|
end
|
|
128
128
|
|
|
129
|
-
|
|
129
|
+
if name.to_s.length < 1
|
|
130
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
@name = name
|
|
130
134
|
end
|
|
131
135
|
|
|
132
136
|
# Custom attribute writer method with validation
|
|
@@ -140,17 +144,13 @@ module PulpContainerClient
|
|
|
140
144
|
end
|
|
141
145
|
|
|
142
146
|
# Custom attribute writer method with validation
|
|
143
|
-
# @param [Object]
|
|
144
|
-
def
|
|
145
|
-
if
|
|
146
|
-
fail ArgumentError, '
|
|
147
|
-
end
|
|
148
|
-
|
|
149
|
-
if name.to_s.length < 1
|
|
150
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
147
|
+
# @param [Object] description Value to be assigned
|
|
148
|
+
def description=(description)
|
|
149
|
+
if !description.nil? && description.to_s.length < 1
|
|
150
|
+
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
|
151
151
|
end
|
|
152
152
|
|
|
153
|
-
@
|
|
153
|
+
@description = description
|
|
154
154
|
end
|
|
155
155
|
|
|
156
156
|
# Checks equality by comparing each attribute.
|
|
@@ -158,10 +158,10 @@ module PulpContainerClient
|
|
|
158
158
|
def ==(o)
|
|
159
159
|
return true if self.equal?(o)
|
|
160
160
|
self.class == o.class &&
|
|
161
|
-
description == o.description &&
|
|
162
161
|
pulp_labels == o.pulp_labels &&
|
|
162
|
+
name == o.name &&
|
|
163
163
|
retain_repo_versions == o.retain_repo_versions &&
|
|
164
|
-
|
|
164
|
+
description == o.description
|
|
165
165
|
end
|
|
166
166
|
|
|
167
167
|
# @see the `==` method
|
|
@@ -173,7 +173,7 @@ module PulpContainerClient
|
|
|
173
173
|
# Calculates hash code according to all attributes.
|
|
174
174
|
# @return [Integer] Hash code
|
|
175
175
|
def hash
|
|
176
|
-
[
|
|
176
|
+
[pulp_labels, name, retain_repo_versions, description].hash
|
|
177
177
|
end
|
|
178
178
|
|
|
179
179
|
# Builds the object from hash
|