pulp_container_client 2.11.0.dev1640661049 → 2.11.0.dev1640747465
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 +4 -4
- data/README.md +4 -4
- data/docs/ContainerContainerDistributionResponse.md +2 -2
- data/docs/ContainerContainerPushRepository.md +4 -4
- data/docs/ContainerContainerPushRepositoryResponse.md +6 -6
- data/docs/PatchedcontainerContainerPushRepository.md +4 -4
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +11 -11
- data/lib/pulp_container_client/models/container_container_push_repository.rb +30 -30
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +25 -25
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +30 -30
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/models/container_container_distribution_response_spec.rb +3 -3
- data/spec/models/container_container_push_repository_response_spec.rb +6 -6
- data/spec/models/container_container_push_repository_spec.rb +4 -4
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 07d01d557ed6ffccd09c2353c1a3a1aeaeb3df62838f852c77086d61e7f4448d
|
4
|
+
data.tar.gz: 980a41f1c367184f5d4d59200ec352b9054b81686aef52a0d1810a8e3b3e8c85
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49ba151619fb0a989a19f2b97a6217dc37e289692b7e0db9e8eb85e2f901d92d28ea58e0aff68c28b5c66b9296dc5a4ecb1fbef16ed48e626dda399c8f1157fa
|
7
|
+
data.tar.gz: 7dc3a6899ef90b9da8ed05e61aa9ce410b1a305fc1d1734f99cc1893e812a44b9c63651680d9921885447205a051ab0e14902ba7ca72f6ab1d45cfa79cba015c
|
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.11.0.
|
10
|
+
- Package version: 2.11.0.dev1640747465
|
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.11.0.
|
27
|
+
gem install ./pulp_container_client-2.11.0.dev1640747465.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./pulp_container_client-2.11.0.
|
30
|
+
(for development, run `gem install --dev ./pulp_container_client-2.11.0.dev1640747465.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.11.0.
|
36
|
+
gem 'pulp_container_client', '~> 2.11.0.dev1640747465'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -5,9 +5,9 @@
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
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
|
-
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
|
9
8
|
**pulp_href** | **String** | | [optional] [readonly]
|
10
9
|
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
10
|
+
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
|
11
11
|
**content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
|
12
12
|
**repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
|
13
13
|
**pulp_labels** | [**Object**](.md) | | [optional]
|
@@ -23,9 +23,9 @@ Name | Type | Description | Notes
|
|
23
23
|
require 'PulpContainerClient'
|
24
24
|
|
25
25
|
instance = PulpContainerClient::ContainerContainerDistributionResponse.new(base_path: null,
|
26
|
-
name: null,
|
27
26
|
pulp_href: null,
|
28
27
|
pulp_created: null,
|
28
|
+
name: null,
|
29
29
|
content_guard: null,
|
30
30
|
repository: null,
|
31
31
|
pulp_labels: null,
|
@@ -4,20 +4,20 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
+
**description** | **String** | An optional description. | [optional]
|
7
8
|
**name** | **String** | A unique name for this repository. |
|
8
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]
|
9
10
|
**pulp_labels** | [**Object**](.md) | | [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(
|
17
|
+
instance = PulpContainerClient::ContainerContainerPushRepository.new(description: null,
|
18
|
+
name: null,
|
18
19
|
retain_repo_versions: null,
|
19
|
-
pulp_labels: null
|
20
|
-
description: null)
|
20
|
+
pulp_labels: null)
|
21
21
|
```
|
22
22
|
|
23
23
|
|
@@ -4,28 +4,28 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**
|
8
|
-
**name** | **String** | A unique name for this repository. |
|
7
|
+
**description** | **String** | An optional description. | [optional]
|
9
8
|
**pulp_href** | **String** | | [optional] [readonly]
|
10
9
|
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
11
10
|
**versions_href** | **String** | | [optional] [readonly]
|
11
|
+
**name** | **String** | A unique name for this repository. |
|
12
12
|
**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]
|
13
13
|
**pulp_labels** | [**Object**](.md) | | [optional]
|
14
|
-
**
|
14
|
+
**latest_version_href** | **String** | | [optional] [readonly]
|
15
15
|
|
16
16
|
## Code Sample
|
17
17
|
|
18
18
|
```ruby
|
19
19
|
require 'PulpContainerClient'
|
20
20
|
|
21
|
-
instance = PulpContainerClient::ContainerContainerPushRepositoryResponse.new(
|
22
|
-
name: null,
|
21
|
+
instance = PulpContainerClient::ContainerContainerPushRepositoryResponse.new(description: null,
|
23
22
|
pulp_href: null,
|
24
23
|
pulp_created: null,
|
25
24
|
versions_href: null,
|
25
|
+
name: null,
|
26
26
|
retain_repo_versions: null,
|
27
27
|
pulp_labels: null,
|
28
|
-
|
28
|
+
latest_version_href: null)
|
29
29
|
```
|
30
30
|
|
31
31
|
|
@@ -4,20 +4,20 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
+
**description** | **String** | An optional description. | [optional]
|
7
8
|
**name** | **String** | A unique name for this repository. | [optional]
|
8
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]
|
9
10
|
**pulp_labels** | [**Object**](.md) | | [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(
|
17
|
+
instance = PulpContainerClient::PatchedcontainerContainerPushRepository.new(description: null,
|
18
|
+
name: null,
|
18
19
|
retain_repo_versions: null,
|
19
|
-
pulp_labels: null
|
20
|
-
description: null)
|
20
|
+
pulp_labels: null)
|
21
21
|
```
|
22
22
|
|
23
23
|
|
@@ -18,14 +18,14 @@ module PulpContainerClient
|
|
18
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
19
|
attr_accessor :base_path
|
20
20
|
|
21
|
-
# A unique name. Ex, `rawhide` and `stable`.
|
22
|
-
attr_accessor :name
|
23
|
-
|
24
21
|
attr_accessor :pulp_href
|
25
22
|
|
26
23
|
# Timestamp of creation.
|
27
24
|
attr_accessor :pulp_created
|
28
25
|
|
26
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
27
|
+
attr_accessor :name
|
28
|
+
|
29
29
|
# An optional content-guard. If none is specified, a default one will be used.
|
30
30
|
attr_accessor :content_guard
|
31
31
|
|
@@ -53,9 +53,9 @@ module PulpContainerClient
|
|
53
53
|
def self.attribute_map
|
54
54
|
{
|
55
55
|
:'base_path' => :'base_path',
|
56
|
-
:'name' => :'name',
|
57
56
|
:'pulp_href' => :'pulp_href',
|
58
57
|
:'pulp_created' => :'pulp_created',
|
58
|
+
:'name' => :'name',
|
59
59
|
:'content_guard' => :'content_guard',
|
60
60
|
:'repository' => :'repository',
|
61
61
|
:'pulp_labels' => :'pulp_labels',
|
@@ -71,9 +71,9 @@ module PulpContainerClient
|
|
71
71
|
def self.openapi_types
|
72
72
|
{
|
73
73
|
:'base_path' => :'String',
|
74
|
-
:'name' => :'String',
|
75
74
|
:'pulp_href' => :'String',
|
76
75
|
:'pulp_created' => :'DateTime',
|
76
|
+
:'name' => :'String',
|
77
77
|
:'content_guard' => :'String',
|
78
78
|
:'repository' => :'String',
|
79
79
|
:'pulp_labels' => :'Object',
|
@@ -113,10 +113,6 @@ module PulpContainerClient
|
|
113
113
|
self.base_path = attributes[:'base_path']
|
114
114
|
end
|
115
115
|
|
116
|
-
if attributes.key?(:'name')
|
117
|
-
self.name = attributes[:'name']
|
118
|
-
end
|
119
|
-
|
120
116
|
if attributes.key?(:'pulp_href')
|
121
117
|
self.pulp_href = attributes[:'pulp_href']
|
122
118
|
end
|
@@ -125,6 +121,10 @@ module PulpContainerClient
|
|
125
121
|
self.pulp_created = attributes[:'pulp_created']
|
126
122
|
end
|
127
123
|
|
124
|
+
if attributes.key?(:'name')
|
125
|
+
self.name = attributes[:'name']
|
126
|
+
end
|
127
|
+
|
128
128
|
if attributes.key?(:'content_guard')
|
129
129
|
self.content_guard = attributes[:'content_guard']
|
130
130
|
end
|
@@ -187,9 +187,9 @@ module PulpContainerClient
|
|
187
187
|
return true if self.equal?(o)
|
188
188
|
self.class == o.class &&
|
189
189
|
base_path == o.base_path &&
|
190
|
-
name == o.name &&
|
191
190
|
pulp_href == o.pulp_href &&
|
192
191
|
pulp_created == o.pulp_created &&
|
192
|
+
name == o.name &&
|
193
193
|
content_guard == o.content_guard &&
|
194
194
|
repository == o.repository &&
|
195
195
|
pulp_labels == o.pulp_labels &&
|
@@ -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
|
-
[base_path,
|
212
|
+
[base_path, pulp_href, pulp_created, name, content_guard, repository, pulp_labels, repository_version, registry_path, namespace, private, description].hash
|
213
213
|
end
|
214
214
|
|
215
215
|
# Builds the object from hash
|
@@ -15,6 +15,9 @@ 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
|
+
|
18
21
|
# A unique name for this repository.
|
19
22
|
attr_accessor :name
|
20
23
|
|
@@ -23,34 +26,31 @@ module PulpContainerClient
|
|
23
26
|
|
24
27
|
attr_accessor :pulp_labels
|
25
28
|
|
26
|
-
# An optional description.
|
27
|
-
attr_accessor :description
|
28
|
-
|
29
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
30
30
|
def self.attribute_map
|
31
31
|
{
|
32
|
+
:'description' => :'description',
|
32
33
|
:'name' => :'name',
|
33
34
|
:'retain_repo_versions' => :'retain_repo_versions',
|
34
|
-
:'pulp_labels' => :'pulp_labels'
|
35
|
-
:'description' => :'description'
|
35
|
+
:'pulp_labels' => :'pulp_labels'
|
36
36
|
}
|
37
37
|
end
|
38
38
|
|
39
39
|
# Attribute type mapping.
|
40
40
|
def self.openapi_types
|
41
41
|
{
|
42
|
+
:'description' => :'String',
|
42
43
|
:'name' => :'String',
|
43
44
|
:'retain_repo_versions' => :'Integer',
|
44
|
-
:'pulp_labels' => :'Object'
|
45
|
-
:'description' => :'String'
|
45
|
+
:'pulp_labels' => :'Object'
|
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',
|
52
53
|
:'retain_repo_versions',
|
53
|
-
:'description'
|
54
54
|
])
|
55
55
|
end
|
56
56
|
|
@@ -69,6 +69,10 @@ 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
|
+
|
72
76
|
if attributes.key?(:'name')
|
73
77
|
self.name = attributes[:'name']
|
74
78
|
end
|
@@ -80,16 +84,16 @@ module PulpContainerClient
|
|
80
84
|
if attributes.key?(:'pulp_labels')
|
81
85
|
self.pulp_labels = attributes[:'pulp_labels']
|
82
86
|
end
|
83
|
-
|
84
|
-
if attributes.key?(:'description')
|
85
|
-
self.description = attributes[:'description']
|
86
|
-
end
|
87
87
|
end
|
88
88
|
|
89
89
|
# Show invalid properties with the reasons. Usually used together with valid?
|
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
|
+
|
93
97
|
if @name.nil?
|
94
98
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
95
99
|
end
|
@@ -102,23 +106,29 @@ module PulpContainerClient
|
|
102
106
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
103
107
|
end
|
104
108
|
|
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
|
115
116
|
return false if @name.nil?
|
116
117
|
return false if @name.to_s.length < 1
|
117
118
|
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
|
+
# Custom attribute writer method with validation
|
123
|
+
# @param [Object] description Value to be assigned
|
124
|
+
def description=(description)
|
125
|
+
if !description.nil? && description.to_s.length < 1
|
126
|
+
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
127
|
+
end
|
128
|
+
|
129
|
+
@description = description
|
130
|
+
end
|
131
|
+
|
122
132
|
# Custom attribute writer method with validation
|
123
133
|
# @param [Object] name Value to be assigned
|
124
134
|
def name=(name)
|
@@ -143,25 +153,15 @@ module PulpContainerClient
|
|
143
153
|
@retain_repo_versions = retain_repo_versions
|
144
154
|
end
|
145
155
|
|
146
|
-
# Custom attribute writer method with validation
|
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
|
-
end
|
152
|
-
|
153
|
-
@description = description
|
154
|
-
end
|
155
|
-
|
156
156
|
# Checks equality by comparing each attribute.
|
157
157
|
# @param [Object] Object to be compared
|
158
158
|
def ==(o)
|
159
159
|
return true if self.equal?(o)
|
160
160
|
self.class == o.class &&
|
161
|
+
description == o.description &&
|
161
162
|
name == o.name &&
|
162
163
|
retain_repo_versions == o.retain_repo_versions &&
|
163
|
-
pulp_labels == o.pulp_labels
|
164
|
-
description == o.description
|
164
|
+
pulp_labels == o.pulp_labels
|
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
|
-
[name, retain_repo_versions, pulp_labels
|
176
|
+
[description, name, retain_repo_versions, pulp_labels].hash
|
177
177
|
end
|
178
178
|
|
179
179
|
# Builds the object from hash
|
@@ -15,10 +15,8 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class ContainerContainerPushRepositoryResponse
|
18
|
-
|
19
|
-
|
20
|
-
# A unique name for this repository.
|
21
|
-
attr_accessor :name
|
18
|
+
# An optional description.
|
19
|
+
attr_accessor :description
|
22
20
|
|
23
21
|
attr_accessor :pulp_href
|
24
22
|
|
@@ -27,47 +25,49 @@ module PulpContainerClient
|
|
27
25
|
|
28
26
|
attr_accessor :versions_href
|
29
27
|
|
28
|
+
# A unique name for this repository.
|
29
|
+
attr_accessor :name
|
30
|
+
|
30
31
|
# 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.
|
31
32
|
attr_accessor :retain_repo_versions
|
32
33
|
|
33
34
|
attr_accessor :pulp_labels
|
34
35
|
|
35
|
-
|
36
|
-
attr_accessor :description
|
36
|
+
attr_accessor :latest_version_href
|
37
37
|
|
38
38
|
# Attribute mapping from ruby-style variable name to JSON key.
|
39
39
|
def self.attribute_map
|
40
40
|
{
|
41
|
-
:'
|
42
|
-
:'name' => :'name',
|
41
|
+
:'description' => :'description',
|
43
42
|
:'pulp_href' => :'pulp_href',
|
44
43
|
:'pulp_created' => :'pulp_created',
|
45
44
|
:'versions_href' => :'versions_href',
|
45
|
+
:'name' => :'name',
|
46
46
|
:'retain_repo_versions' => :'retain_repo_versions',
|
47
47
|
:'pulp_labels' => :'pulp_labels',
|
48
|
-
:'
|
48
|
+
:'latest_version_href' => :'latest_version_href'
|
49
49
|
}
|
50
50
|
end
|
51
51
|
|
52
52
|
# Attribute type mapping.
|
53
53
|
def self.openapi_types
|
54
54
|
{
|
55
|
-
:'
|
56
|
-
:'name' => :'String',
|
55
|
+
:'description' => :'String',
|
57
56
|
:'pulp_href' => :'String',
|
58
57
|
:'pulp_created' => :'DateTime',
|
59
58
|
:'versions_href' => :'String',
|
59
|
+
:'name' => :'String',
|
60
60
|
:'retain_repo_versions' => :'Integer',
|
61
61
|
:'pulp_labels' => :'Object',
|
62
|
-
:'
|
62
|
+
:'latest_version_href' => :'String'
|
63
63
|
}
|
64
64
|
end
|
65
65
|
|
66
66
|
# List of attributes with nullable: true
|
67
67
|
def self.openapi_nullable
|
68
68
|
Set.new([
|
69
|
+
:'description',
|
69
70
|
:'retain_repo_versions',
|
70
|
-
:'description'
|
71
71
|
])
|
72
72
|
end
|
73
73
|
|
@@ -86,12 +86,8 @@ module PulpContainerClient
|
|
86
86
|
h[k.to_sym] = v
|
87
87
|
}
|
88
88
|
|
89
|
-
if attributes.key?(:'
|
90
|
-
self.
|
91
|
-
end
|
92
|
-
|
93
|
-
if attributes.key?(:'name')
|
94
|
-
self.name = attributes[:'name']
|
89
|
+
if attributes.key?(:'description')
|
90
|
+
self.description = attributes[:'description']
|
95
91
|
end
|
96
92
|
|
97
93
|
if attributes.key?(:'pulp_href')
|
@@ -106,6 +102,10 @@ module PulpContainerClient
|
|
106
102
|
self.versions_href = attributes[:'versions_href']
|
107
103
|
end
|
108
104
|
|
105
|
+
if attributes.key?(:'name')
|
106
|
+
self.name = attributes[:'name']
|
107
|
+
end
|
108
|
+
|
109
109
|
if attributes.key?(:'retain_repo_versions')
|
110
110
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
111
111
|
end
|
@@ -114,8 +114,8 @@ module PulpContainerClient
|
|
114
114
|
self.pulp_labels = attributes[:'pulp_labels']
|
115
115
|
end
|
116
116
|
|
117
|
-
if attributes.key?(:'
|
118
|
-
self.
|
117
|
+
if attributes.key?(:'latest_version_href')
|
118
|
+
self.latest_version_href = attributes[:'latest_version_href']
|
119
119
|
end
|
120
120
|
end
|
121
121
|
|
@@ -157,14 +157,14 @@ module PulpContainerClient
|
|
157
157
|
def ==(o)
|
158
158
|
return true if self.equal?(o)
|
159
159
|
self.class == o.class &&
|
160
|
-
|
161
|
-
name == o.name &&
|
160
|
+
description == o.description &&
|
162
161
|
pulp_href == o.pulp_href &&
|
163
162
|
pulp_created == o.pulp_created &&
|
164
163
|
versions_href == o.versions_href &&
|
164
|
+
name == o.name &&
|
165
165
|
retain_repo_versions == o.retain_repo_versions &&
|
166
166
|
pulp_labels == o.pulp_labels &&
|
167
|
-
|
167
|
+
latest_version_href == o.latest_version_href
|
168
168
|
end
|
169
169
|
|
170
170
|
# @see the `==` method
|
@@ -176,7 +176,7 @@ module PulpContainerClient
|
|
176
176
|
# Calculates hash code according to all attributes.
|
177
177
|
# @return [Integer] Hash code
|
178
178
|
def hash
|
179
|
-
[
|
179
|
+
[description, pulp_href, pulp_created, versions_href, name, retain_repo_versions, pulp_labels, latest_version_href].hash
|
180
180
|
end
|
181
181
|
|
182
182
|
# Builds the object from hash
|
@@ -15,6 +15,9 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class PatchedcontainerContainerPushRepository
|
18
|
+
# An optional description.
|
19
|
+
attr_accessor :description
|
20
|
+
|
18
21
|
# A unique name for this repository.
|
19
22
|
attr_accessor :name
|
20
23
|
|
@@ -23,34 +26,31 @@ module PulpContainerClient
|
|
23
26
|
|
24
27
|
attr_accessor :pulp_labels
|
25
28
|
|
26
|
-
# An optional description.
|
27
|
-
attr_accessor :description
|
28
|
-
|
29
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
30
30
|
def self.attribute_map
|
31
31
|
{
|
32
|
+
:'description' => :'description',
|
32
33
|
:'name' => :'name',
|
33
34
|
:'retain_repo_versions' => :'retain_repo_versions',
|
34
|
-
:'pulp_labels' => :'pulp_labels'
|
35
|
-
:'description' => :'description'
|
35
|
+
:'pulp_labels' => :'pulp_labels'
|
36
36
|
}
|
37
37
|
end
|
38
38
|
|
39
39
|
# Attribute type mapping.
|
40
40
|
def self.openapi_types
|
41
41
|
{
|
42
|
+
:'description' => :'String',
|
42
43
|
:'name' => :'String',
|
43
44
|
:'retain_repo_versions' => :'Integer',
|
44
|
-
:'pulp_labels' => :'Object'
|
45
|
-
:'description' => :'String'
|
45
|
+
:'pulp_labels' => :'Object'
|
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',
|
52
53
|
:'retain_repo_versions',
|
53
|
-
:'description'
|
54
54
|
])
|
55
55
|
end
|
56
56
|
|
@@ -69,6 +69,10 @@ 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
|
+
|
72
76
|
if attributes.key?(:'name')
|
73
77
|
self.name = attributes[:'name']
|
74
78
|
end
|
@@ -80,16 +84,16 @@ module PulpContainerClient
|
|
80
84
|
if attributes.key?(:'pulp_labels')
|
81
85
|
self.pulp_labels = attributes[:'pulp_labels']
|
82
86
|
end
|
83
|
-
|
84
|
-
if attributes.key?(:'description')
|
85
|
-
self.description = attributes[:'description']
|
86
|
-
end
|
87
87
|
end
|
88
88
|
|
89
89
|
# Show invalid properties with the reasons. Usually used together with valid?
|
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
|
+
|
93
97
|
if !@name.nil? && @name.to_s.length < 1
|
94
98
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
95
99
|
end
|
@@ -98,22 +102,28 @@ module PulpContainerClient
|
|
98
102
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
99
103
|
end
|
100
104
|
|
101
|
-
if !@description.nil? && @description.to_s.length < 1
|
102
|
-
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
103
|
-
end
|
104
|
-
|
105
105
|
invalid_properties
|
106
106
|
end
|
107
107
|
|
108
108
|
# Check to see if the all the properties in the model are valid
|
109
109
|
# @return true if the model is valid
|
110
110
|
def valid?
|
111
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
111
112
|
return false if !@name.nil? && @name.to_s.length < 1
|
112
113
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
113
|
-
return false if !@description.nil? && @description.to_s.length < 1
|
114
114
|
true
|
115
115
|
end
|
116
116
|
|
117
|
+
# Custom attribute writer method with validation
|
118
|
+
# @param [Object] description Value to be assigned
|
119
|
+
def description=(description)
|
120
|
+
if !description.nil? && description.to_s.length < 1
|
121
|
+
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
122
|
+
end
|
123
|
+
|
124
|
+
@description = description
|
125
|
+
end
|
126
|
+
|
117
127
|
# Custom attribute writer method with validation
|
118
128
|
# @param [Object] name Value to be assigned
|
119
129
|
def name=(name)
|
@@ -134,25 +144,15 @@ module PulpContainerClient
|
|
134
144
|
@retain_repo_versions = retain_repo_versions
|
135
145
|
end
|
136
146
|
|
137
|
-
# Custom attribute writer method with validation
|
138
|
-
# @param [Object] description Value to be assigned
|
139
|
-
def description=(description)
|
140
|
-
if !description.nil? && description.to_s.length < 1
|
141
|
-
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
142
|
-
end
|
143
|
-
|
144
|
-
@description = description
|
145
|
-
end
|
146
|
-
|
147
147
|
# Checks equality by comparing each attribute.
|
148
148
|
# @param [Object] Object to be compared
|
149
149
|
def ==(o)
|
150
150
|
return true if self.equal?(o)
|
151
151
|
self.class == o.class &&
|
152
|
+
description == o.description &&
|
152
153
|
name == o.name &&
|
153
154
|
retain_repo_versions == o.retain_repo_versions &&
|
154
|
-
pulp_labels == o.pulp_labels
|
155
|
-
description == o.description
|
155
|
+
pulp_labels == o.pulp_labels
|
156
156
|
end
|
157
157
|
|
158
158
|
# @see the `==` method
|
@@ -164,7 +164,7 @@ module PulpContainerClient
|
|
164
164
|
# Calculates hash code according to all attributes.
|
165
165
|
# @return [Integer] Hash code
|
166
166
|
def hash
|
167
|
-
[name, retain_repo_versions, pulp_labels
|
167
|
+
[description, name, retain_repo_versions, pulp_labels].hash
|
168
168
|
end
|
169
169
|
|
170
170
|
# Builds the object from hash
|
@@ -38,19 +38,19 @@ describe 'ContainerContainerDistributionResponse' do
|
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
-
describe 'test attribute "
|
41
|
+
describe 'test attribute "pulp_href"' 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 "
|
47
|
+
describe 'test attribute "pulp_created"' 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 "
|
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
|
@@ -32,31 +32,31 @@ describe 'ContainerContainerPushRepositoryResponse' do
|
|
32
32
|
expect(@instance).to be_instance_of(PulpContainerClient::ContainerContainerPushRepositoryResponse)
|
33
33
|
end
|
34
34
|
end
|
35
|
-
describe 'test attribute "
|
35
|
+
describe 'test attribute "description"' 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 "
|
41
|
+
describe 'test attribute "pulp_href"' 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 "
|
47
|
+
describe 'test attribute "pulp_created"' 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 "
|
53
|
+
describe 'test attribute "versions_href"' 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 "
|
59
|
+
describe 'test attribute "name"' 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
|
@@ -74,7 +74,7 @@ describe 'ContainerContainerPushRepositoryResponse' do
|
|
74
74
|
end
|
75
75
|
end
|
76
76
|
|
77
|
-
describe 'test attribute "
|
77
|
+
describe 'test attribute "latest_version_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,25 +32,25 @@ describe 'ContainerContainerPushRepository' do
|
|
32
32
|
expect(@instance).to be_instance_of(PulpContainerClient::ContainerContainerPushRepository)
|
33
33
|
end
|
34
34
|
end
|
35
|
-
describe 'test attribute "
|
35
|
+
describe 'test attribute "description"' 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 "
|
41
|
+
describe 'test attribute "name"' 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 "
|
47
|
+
describe 'test attribute "retain_repo_versions"' 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 "
|
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
|
@@ -32,25 +32,25 @@ describe 'PatchedcontainerContainerPushRepository' do
|
|
32
32
|
expect(@instance).to be_instance_of(PulpContainerClient::PatchedcontainerContainerPushRepository)
|
33
33
|
end
|
34
34
|
end
|
35
|
-
describe 'test attribute "
|
35
|
+
describe 'test attribute "description"' 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 "
|
41
|
+
describe 'test attribute "name"' 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 "
|
47
|
+
describe 'test attribute "retain_repo_versions"' 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 "
|
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
|
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.11.0.
|
4
|
+
version: 2.11.0.dev1640747465
|
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-12-
|
11
|
+
date: 2021-12-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|