pulp_container_client 1.5.0.dev01593712906 → 1.5.0.dev01593804344
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/ContainerContainerDistribution.md +9 -9
- data/docs/ContainerContainerDistributionRead.md +9 -9
- data/lib/pulp_container_client/models/container_container_distribution.rb +64 -64
- data/lib/pulp_container_client/models/container_container_distribution_read.rb +64 -64
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/models/container_container_distribution_read_spec.rb +7 -7
- data/spec/models/container_container_distribution_spec.rb +7 -7
- 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: 15a5e9281530490e39918b6fcb94632fb881b7962e9f23a3f23b0e0b741a74a1
|
4
|
+
data.tar.gz: 54c20642497a9d2c7e48a8ca54a6058513e86eb29490340d973bcb66a6b83287
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44611701afa0b576f3d9aa23715256840b78c2556eee6d048fa3e7ad2ff66cb6e4f77e6c30a4a2c8f7a9653fe2de3f93469c7abbf957f1f8152c9e098eba761a
|
7
|
+
data.tar.gz: d66493150f3915f6db213ec226107c8bbd90706ea1e5b8b9ec4d05a68a5a1fdf67b200ee6b55c6aed7a49499eb519d8e8c78d2e5023646f2bc4e807637bff79a
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
|
|
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: 1.5.0.
|
10
|
+
- Package version: 1.5.0.dev01593804344
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
12
|
|
13
13
|
## Installation
|
@@ -23,16 +23,16 @@ gem build pulp_container_client.gemspec
|
|
23
23
|
Then either install the gem locally:
|
24
24
|
|
25
25
|
```shell
|
26
|
-
gem install ./pulp_container_client-1.5.0.
|
26
|
+
gem install ./pulp_container_client-1.5.0.dev01593804344.gem
|
27
27
|
```
|
28
28
|
|
29
|
-
(for development, run `gem install --dev ./pulp_container_client-1.5.0.
|
29
|
+
(for development, run `gem install --dev ./pulp_container_client-1.5.0.dev01593804344.gem` to install the development dependencies)
|
30
30
|
|
31
31
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
32
32
|
|
33
33
|
Finally add this to the Gemfile:
|
34
34
|
|
35
|
-
gem 'pulp_container_client', '~> 1.5.0.
|
35
|
+
gem 'pulp_container_client', '~> 1.5.0.dev01593804344'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
@@ -4,13 +4,13 @@
|
|
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
|
-
**repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
|
9
|
-
**repository_version** | **String** | RepositoryVersion to be served | [optional]
|
10
7
|
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
|
11
8
|
**content_guard** | **String** | An optional content-guard. | [optional]
|
12
|
-
**pulp_href** | **String** | | [optional] [readonly]
|
13
9
|
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
10
|
+
**repository_version** | **String** | RepositoryVersion to be served | [optional]
|
11
|
+
**pulp_href** | **String** | | [optional] [readonly]
|
12
|
+
**repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
|
13
|
+
**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\") |
|
14
14
|
**registry_path** | **String** | The Registry hostame/name/ to use with docker pull command defined by this distribution. | [optional] [readonly]
|
15
15
|
|
16
16
|
## Code Sample
|
@@ -18,13 +18,13 @@ Name | Type | Description | Notes
|
|
18
18
|
```ruby
|
19
19
|
require 'PulpContainerClient'
|
20
20
|
|
21
|
-
instance = PulpContainerClient::ContainerContainerDistribution.new(
|
22
|
-
repository: null,
|
23
|
-
repository_version: null,
|
24
|
-
name: null,
|
21
|
+
instance = PulpContainerClient::ContainerContainerDistribution.new(name: null,
|
25
22
|
content_guard: null,
|
26
|
-
pulp_href: null,
|
27
23
|
pulp_created: null,
|
24
|
+
repository_version: null,
|
25
|
+
pulp_href: null,
|
26
|
+
repository: null,
|
27
|
+
base_path: null,
|
28
28
|
registry_path: null)
|
29
29
|
```
|
30
30
|
|
@@ -4,13 +4,13 @@
|
|
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
|
-
**repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
|
9
|
-
**repository_version** | **String** | RepositoryVersion to be served | [optional]
|
10
7
|
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
|
11
8
|
**content_guard** | **String** | An optional content-guard. | [optional]
|
12
|
-
**pulp_href** | **String** | | [optional] [readonly]
|
13
9
|
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
10
|
+
**repository_version** | **String** | RepositoryVersion to be served | [optional]
|
11
|
+
**pulp_href** | **String** | | [optional] [readonly]
|
12
|
+
**repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
|
13
|
+
**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\") |
|
14
14
|
**registry_path** | **String** | The Registry hostame/name/ to use with docker pull command defined by this distribution. | [optional] [readonly]
|
15
15
|
|
16
16
|
## Code Sample
|
@@ -18,13 +18,13 @@ Name | Type | Description | Notes
|
|
18
18
|
```ruby
|
19
19
|
require 'PulpContainerClient'
|
20
20
|
|
21
|
-
instance = PulpContainerClient::ContainerContainerDistributionRead.new(
|
22
|
-
repository: null,
|
23
|
-
repository_version: null,
|
24
|
-
name: null,
|
21
|
+
instance = PulpContainerClient::ContainerContainerDistributionRead.new(name: null,
|
25
22
|
content_guard: null,
|
26
|
-
pulp_href: null,
|
27
23
|
pulp_created: null,
|
24
|
+
repository_version: null,
|
25
|
+
pulp_href: null,
|
26
|
+
repository: null,
|
27
|
+
base_path: null,
|
28
28
|
registry_path: null)
|
29
29
|
```
|
30
30
|
|
@@ -14,39 +14,39 @@ require 'date'
|
|
14
14
|
|
15
15
|
module PulpContainerClient
|
16
16
|
class ContainerContainerDistribution
|
17
|
-
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
18
|
-
attr_accessor :base_path
|
19
|
-
|
20
|
-
# The latest RepositoryVersion for this Repository will be served.
|
21
|
-
attr_accessor :repository
|
22
|
-
|
23
|
-
# RepositoryVersion to be served
|
24
|
-
attr_accessor :repository_version
|
25
|
-
|
26
17
|
# A unique name. Ex, `rawhide` and `stable`.
|
27
18
|
attr_accessor :name
|
28
19
|
|
29
20
|
# An optional content-guard.
|
30
21
|
attr_accessor :content_guard
|
31
22
|
|
32
|
-
attr_accessor :pulp_href
|
33
|
-
|
34
23
|
# Timestamp of creation.
|
35
24
|
attr_accessor :pulp_created
|
36
25
|
|
26
|
+
# RepositoryVersion to be served
|
27
|
+
attr_accessor :repository_version
|
28
|
+
|
29
|
+
attr_accessor :pulp_href
|
30
|
+
|
31
|
+
# The latest RepositoryVersion for this Repository will be served.
|
32
|
+
attr_accessor :repository
|
33
|
+
|
34
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
35
|
+
attr_accessor :base_path
|
36
|
+
|
37
37
|
# The Registry hostame/name/ to use with docker pull command defined by this distribution.
|
38
38
|
attr_accessor :registry_path
|
39
39
|
|
40
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
41
41
|
def self.attribute_map
|
42
42
|
{
|
43
|
-
:'base_path' => :'base_path',
|
44
|
-
:'repository' => :'repository',
|
45
|
-
:'repository_version' => :'repository_version',
|
46
43
|
:'name' => :'name',
|
47
44
|
:'content_guard' => :'content_guard',
|
48
|
-
:'pulp_href' => :'pulp_href',
|
49
45
|
:'pulp_created' => :'pulp_created',
|
46
|
+
:'repository_version' => :'repository_version',
|
47
|
+
:'pulp_href' => :'pulp_href',
|
48
|
+
:'repository' => :'repository',
|
49
|
+
:'base_path' => :'base_path',
|
50
50
|
:'registry_path' => :'registry_path'
|
51
51
|
}
|
52
52
|
end
|
@@ -54,13 +54,13 @@ module PulpContainerClient
|
|
54
54
|
# Attribute type mapping.
|
55
55
|
def self.openapi_types
|
56
56
|
{
|
57
|
-
:'base_path' => :'String',
|
58
|
-
:'repository' => :'String',
|
59
|
-
:'repository_version' => :'String',
|
60
57
|
:'name' => :'String',
|
61
58
|
:'content_guard' => :'String',
|
62
|
-
:'pulp_href' => :'String',
|
63
59
|
:'pulp_created' => :'DateTime',
|
60
|
+
:'repository_version' => :'String',
|
61
|
+
:'pulp_href' => :'String',
|
62
|
+
:'repository' => :'String',
|
63
|
+
:'base_path' => :'String',
|
64
64
|
:'registry_path' => :'String'
|
65
65
|
}
|
66
66
|
end
|
@@ -68,9 +68,9 @@ module PulpContainerClient
|
|
68
68
|
# List of attributes with nullable: true
|
69
69
|
def self.openapi_nullable
|
70
70
|
Set.new([
|
71
|
-
:'repository',
|
72
|
-
:'repository_version',
|
73
71
|
:'content_guard',
|
72
|
+
:'repository_version',
|
73
|
+
:'repository',
|
74
74
|
])
|
75
75
|
end
|
76
76
|
|
@@ -89,18 +89,6 @@ module PulpContainerClient
|
|
89
89
|
h[k.to_sym] = v
|
90
90
|
}
|
91
91
|
|
92
|
-
if attributes.key?(:'base_path')
|
93
|
-
self.base_path = attributes[:'base_path']
|
94
|
-
end
|
95
|
-
|
96
|
-
if attributes.key?(:'repository')
|
97
|
-
self.repository = attributes[:'repository']
|
98
|
-
end
|
99
|
-
|
100
|
-
if attributes.key?(:'repository_version')
|
101
|
-
self.repository_version = attributes[:'repository_version']
|
102
|
-
end
|
103
|
-
|
104
92
|
if attributes.key?(:'name')
|
105
93
|
self.name = attributes[:'name']
|
106
94
|
end
|
@@ -109,12 +97,24 @@ module PulpContainerClient
|
|
109
97
|
self.content_guard = attributes[:'content_guard']
|
110
98
|
end
|
111
99
|
|
100
|
+
if attributes.key?(:'pulp_created')
|
101
|
+
self.pulp_created = attributes[:'pulp_created']
|
102
|
+
end
|
103
|
+
|
104
|
+
if attributes.key?(:'repository_version')
|
105
|
+
self.repository_version = attributes[:'repository_version']
|
106
|
+
end
|
107
|
+
|
112
108
|
if attributes.key?(:'pulp_href')
|
113
109
|
self.pulp_href = attributes[:'pulp_href']
|
114
110
|
end
|
115
111
|
|
116
|
-
if attributes.key?(:'
|
117
|
-
self.
|
112
|
+
if attributes.key?(:'repository')
|
113
|
+
self.repository = attributes[:'repository']
|
114
|
+
end
|
115
|
+
|
116
|
+
if attributes.key?(:'base_path')
|
117
|
+
self.base_path = attributes[:'base_path']
|
118
118
|
end
|
119
119
|
|
120
120
|
if attributes.key?(:'registry_path')
|
@@ -126,14 +126,6 @@ module PulpContainerClient
|
|
126
126
|
# @return Array for valid properties with the reasons
|
127
127
|
def list_invalid_properties
|
128
128
|
invalid_properties = Array.new
|
129
|
-
if @base_path.nil?
|
130
|
-
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
131
|
-
end
|
132
|
-
|
133
|
-
if @base_path.to_s.length < 1
|
134
|
-
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
135
|
-
end
|
136
|
-
|
137
129
|
if @name.nil?
|
138
130
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
139
131
|
end
|
@@ -142,6 +134,14 @@ module PulpContainerClient
|
|
142
134
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
143
135
|
end
|
144
136
|
|
137
|
+
if @base_path.nil?
|
138
|
+
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
139
|
+
end
|
140
|
+
|
141
|
+
if @base_path.to_s.length < 1
|
142
|
+
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
143
|
+
end
|
144
|
+
|
145
145
|
if !@registry_path.nil? && @registry_path.to_s.length < 1
|
146
146
|
invalid_properties.push('invalid value for "registry_path", the character length must be great than or equal to 1.')
|
147
147
|
end
|
@@ -152,28 +152,14 @@ module PulpContainerClient
|
|
152
152
|
# Check to see if the all the properties in the model are valid
|
153
153
|
# @return true if the model is valid
|
154
154
|
def valid?
|
155
|
-
return false if @base_path.nil?
|
156
|
-
return false if @base_path.to_s.length < 1
|
157
155
|
return false if @name.nil?
|
158
156
|
return false if @name.to_s.length < 1
|
157
|
+
return false if @base_path.nil?
|
158
|
+
return false if @base_path.to_s.length < 1
|
159
159
|
return false if !@registry_path.nil? && @registry_path.to_s.length < 1
|
160
160
|
true
|
161
161
|
end
|
162
162
|
|
163
|
-
# Custom attribute writer method with validation
|
164
|
-
# @param [Object] base_path Value to be assigned
|
165
|
-
def base_path=(base_path)
|
166
|
-
if base_path.nil?
|
167
|
-
fail ArgumentError, 'base_path cannot be nil'
|
168
|
-
end
|
169
|
-
|
170
|
-
if base_path.to_s.length < 1
|
171
|
-
fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
|
172
|
-
end
|
173
|
-
|
174
|
-
@base_path = base_path
|
175
|
-
end
|
176
|
-
|
177
163
|
# Custom attribute writer method with validation
|
178
164
|
# @param [Object] name Value to be assigned
|
179
165
|
def name=(name)
|
@@ -188,6 +174,20 @@ module PulpContainerClient
|
|
188
174
|
@name = name
|
189
175
|
end
|
190
176
|
|
177
|
+
# Custom attribute writer method with validation
|
178
|
+
# @param [Object] base_path Value to be assigned
|
179
|
+
def base_path=(base_path)
|
180
|
+
if base_path.nil?
|
181
|
+
fail ArgumentError, 'base_path cannot be nil'
|
182
|
+
end
|
183
|
+
|
184
|
+
if base_path.to_s.length < 1
|
185
|
+
fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
|
186
|
+
end
|
187
|
+
|
188
|
+
@base_path = base_path
|
189
|
+
end
|
190
|
+
|
191
191
|
# Custom attribute writer method with validation
|
192
192
|
# @param [Object] registry_path Value to be assigned
|
193
193
|
def registry_path=(registry_path)
|
@@ -203,13 +203,13 @@ module PulpContainerClient
|
|
203
203
|
def ==(o)
|
204
204
|
return true if self.equal?(o)
|
205
205
|
self.class == o.class &&
|
206
|
-
base_path == o.base_path &&
|
207
|
-
repository == o.repository &&
|
208
|
-
repository_version == o.repository_version &&
|
209
206
|
name == o.name &&
|
210
207
|
content_guard == o.content_guard &&
|
211
|
-
pulp_href == o.pulp_href &&
|
212
208
|
pulp_created == o.pulp_created &&
|
209
|
+
repository_version == o.repository_version &&
|
210
|
+
pulp_href == o.pulp_href &&
|
211
|
+
repository == o.repository &&
|
212
|
+
base_path == o.base_path &&
|
213
213
|
registry_path == o.registry_path
|
214
214
|
end
|
215
215
|
|
@@ -222,7 +222,7 @@ module PulpContainerClient
|
|
222
222
|
# Calculates hash code according to all attributes.
|
223
223
|
# @return [Integer] Hash code
|
224
224
|
def hash
|
225
|
-
[
|
225
|
+
[name, content_guard, pulp_created, repository_version, pulp_href, repository, base_path, registry_path].hash
|
226
226
|
end
|
227
227
|
|
228
228
|
# Builds the object from hash
|
@@ -14,39 +14,39 @@ require 'date'
|
|
14
14
|
|
15
15
|
module PulpContainerClient
|
16
16
|
class ContainerContainerDistributionRead
|
17
|
-
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
18
|
-
attr_accessor :base_path
|
19
|
-
|
20
|
-
# The latest RepositoryVersion for this Repository will be served.
|
21
|
-
attr_accessor :repository
|
22
|
-
|
23
|
-
# RepositoryVersion to be served
|
24
|
-
attr_accessor :repository_version
|
25
|
-
|
26
17
|
# A unique name. Ex, `rawhide` and `stable`.
|
27
18
|
attr_accessor :name
|
28
19
|
|
29
20
|
# An optional content-guard.
|
30
21
|
attr_accessor :content_guard
|
31
22
|
|
32
|
-
attr_accessor :pulp_href
|
33
|
-
|
34
23
|
# Timestamp of creation.
|
35
24
|
attr_accessor :pulp_created
|
36
25
|
|
26
|
+
# RepositoryVersion to be served
|
27
|
+
attr_accessor :repository_version
|
28
|
+
|
29
|
+
attr_accessor :pulp_href
|
30
|
+
|
31
|
+
# The latest RepositoryVersion for this Repository will be served.
|
32
|
+
attr_accessor :repository
|
33
|
+
|
34
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
35
|
+
attr_accessor :base_path
|
36
|
+
|
37
37
|
# The Registry hostame/name/ to use with docker pull command defined by this distribution.
|
38
38
|
attr_accessor :registry_path
|
39
39
|
|
40
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
41
41
|
def self.attribute_map
|
42
42
|
{
|
43
|
-
:'base_path' => :'base_path',
|
44
|
-
:'repository' => :'repository',
|
45
|
-
:'repository_version' => :'repository_version',
|
46
43
|
:'name' => :'name',
|
47
44
|
:'content_guard' => :'content_guard',
|
48
|
-
:'pulp_href' => :'pulp_href',
|
49
45
|
:'pulp_created' => :'pulp_created',
|
46
|
+
:'repository_version' => :'repository_version',
|
47
|
+
:'pulp_href' => :'pulp_href',
|
48
|
+
:'repository' => :'repository',
|
49
|
+
:'base_path' => :'base_path',
|
50
50
|
:'registry_path' => :'registry_path'
|
51
51
|
}
|
52
52
|
end
|
@@ -54,13 +54,13 @@ module PulpContainerClient
|
|
54
54
|
# Attribute type mapping.
|
55
55
|
def self.openapi_types
|
56
56
|
{
|
57
|
-
:'base_path' => :'String',
|
58
|
-
:'repository' => :'String',
|
59
|
-
:'repository_version' => :'String',
|
60
57
|
:'name' => :'String',
|
61
58
|
:'content_guard' => :'String',
|
62
|
-
:'pulp_href' => :'String',
|
63
59
|
:'pulp_created' => :'DateTime',
|
60
|
+
:'repository_version' => :'String',
|
61
|
+
:'pulp_href' => :'String',
|
62
|
+
:'repository' => :'String',
|
63
|
+
:'base_path' => :'String',
|
64
64
|
:'registry_path' => :'String'
|
65
65
|
}
|
66
66
|
end
|
@@ -68,9 +68,9 @@ module PulpContainerClient
|
|
68
68
|
# List of attributes with nullable: true
|
69
69
|
def self.openapi_nullable
|
70
70
|
Set.new([
|
71
|
-
:'repository',
|
72
|
-
:'repository_version',
|
73
71
|
:'content_guard',
|
72
|
+
:'repository_version',
|
73
|
+
:'repository',
|
74
74
|
])
|
75
75
|
end
|
76
76
|
|
@@ -89,18 +89,6 @@ module PulpContainerClient
|
|
89
89
|
h[k.to_sym] = v
|
90
90
|
}
|
91
91
|
|
92
|
-
if attributes.key?(:'base_path')
|
93
|
-
self.base_path = attributes[:'base_path']
|
94
|
-
end
|
95
|
-
|
96
|
-
if attributes.key?(:'repository')
|
97
|
-
self.repository = attributes[:'repository']
|
98
|
-
end
|
99
|
-
|
100
|
-
if attributes.key?(:'repository_version')
|
101
|
-
self.repository_version = attributes[:'repository_version']
|
102
|
-
end
|
103
|
-
|
104
92
|
if attributes.key?(:'name')
|
105
93
|
self.name = attributes[:'name']
|
106
94
|
end
|
@@ -109,12 +97,24 @@ module PulpContainerClient
|
|
109
97
|
self.content_guard = attributes[:'content_guard']
|
110
98
|
end
|
111
99
|
|
100
|
+
if attributes.key?(:'pulp_created')
|
101
|
+
self.pulp_created = attributes[:'pulp_created']
|
102
|
+
end
|
103
|
+
|
104
|
+
if attributes.key?(:'repository_version')
|
105
|
+
self.repository_version = attributes[:'repository_version']
|
106
|
+
end
|
107
|
+
|
112
108
|
if attributes.key?(:'pulp_href')
|
113
109
|
self.pulp_href = attributes[:'pulp_href']
|
114
110
|
end
|
115
111
|
|
116
|
-
if attributes.key?(:'
|
117
|
-
self.
|
112
|
+
if attributes.key?(:'repository')
|
113
|
+
self.repository = attributes[:'repository']
|
114
|
+
end
|
115
|
+
|
116
|
+
if attributes.key?(:'base_path')
|
117
|
+
self.base_path = attributes[:'base_path']
|
118
118
|
end
|
119
119
|
|
120
120
|
if attributes.key?(:'registry_path')
|
@@ -126,14 +126,6 @@ module PulpContainerClient
|
|
126
126
|
# @return Array for valid properties with the reasons
|
127
127
|
def list_invalid_properties
|
128
128
|
invalid_properties = Array.new
|
129
|
-
if @base_path.nil?
|
130
|
-
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
131
|
-
end
|
132
|
-
|
133
|
-
if @base_path.to_s.length < 1
|
134
|
-
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
135
|
-
end
|
136
|
-
|
137
129
|
if @name.nil?
|
138
130
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
139
131
|
end
|
@@ -142,6 +134,14 @@ module PulpContainerClient
|
|
142
134
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
143
135
|
end
|
144
136
|
|
137
|
+
if @base_path.nil?
|
138
|
+
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
139
|
+
end
|
140
|
+
|
141
|
+
if @base_path.to_s.length < 1
|
142
|
+
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
143
|
+
end
|
144
|
+
|
145
145
|
if !@registry_path.nil? && @registry_path.to_s.length < 1
|
146
146
|
invalid_properties.push('invalid value for "registry_path", the character length must be great than or equal to 1.')
|
147
147
|
end
|
@@ -152,28 +152,14 @@ module PulpContainerClient
|
|
152
152
|
# Check to see if the all the properties in the model are valid
|
153
153
|
# @return true if the model is valid
|
154
154
|
def valid?
|
155
|
-
return false if @base_path.nil?
|
156
|
-
return false if @base_path.to_s.length < 1
|
157
155
|
return false if @name.nil?
|
158
156
|
return false if @name.to_s.length < 1
|
157
|
+
return false if @base_path.nil?
|
158
|
+
return false if @base_path.to_s.length < 1
|
159
159
|
return false if !@registry_path.nil? && @registry_path.to_s.length < 1
|
160
160
|
true
|
161
161
|
end
|
162
162
|
|
163
|
-
# Custom attribute writer method with validation
|
164
|
-
# @param [Object] base_path Value to be assigned
|
165
|
-
def base_path=(base_path)
|
166
|
-
if base_path.nil?
|
167
|
-
fail ArgumentError, 'base_path cannot be nil'
|
168
|
-
end
|
169
|
-
|
170
|
-
if base_path.to_s.length < 1
|
171
|
-
fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
|
172
|
-
end
|
173
|
-
|
174
|
-
@base_path = base_path
|
175
|
-
end
|
176
|
-
|
177
163
|
# Custom attribute writer method with validation
|
178
164
|
# @param [Object] name Value to be assigned
|
179
165
|
def name=(name)
|
@@ -188,6 +174,20 @@ module PulpContainerClient
|
|
188
174
|
@name = name
|
189
175
|
end
|
190
176
|
|
177
|
+
# Custom attribute writer method with validation
|
178
|
+
# @param [Object] base_path Value to be assigned
|
179
|
+
def base_path=(base_path)
|
180
|
+
if base_path.nil?
|
181
|
+
fail ArgumentError, 'base_path cannot be nil'
|
182
|
+
end
|
183
|
+
|
184
|
+
if base_path.to_s.length < 1
|
185
|
+
fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
|
186
|
+
end
|
187
|
+
|
188
|
+
@base_path = base_path
|
189
|
+
end
|
190
|
+
|
191
191
|
# Custom attribute writer method with validation
|
192
192
|
# @param [Object] registry_path Value to be assigned
|
193
193
|
def registry_path=(registry_path)
|
@@ -203,13 +203,13 @@ module PulpContainerClient
|
|
203
203
|
def ==(o)
|
204
204
|
return true if self.equal?(o)
|
205
205
|
self.class == o.class &&
|
206
|
-
base_path == o.base_path &&
|
207
|
-
repository == o.repository &&
|
208
|
-
repository_version == o.repository_version &&
|
209
206
|
name == o.name &&
|
210
207
|
content_guard == o.content_guard &&
|
211
|
-
pulp_href == o.pulp_href &&
|
212
208
|
pulp_created == o.pulp_created &&
|
209
|
+
repository_version == o.repository_version &&
|
210
|
+
pulp_href == o.pulp_href &&
|
211
|
+
repository == o.repository &&
|
212
|
+
base_path == o.base_path &&
|
213
213
|
registry_path == o.registry_path
|
214
214
|
end
|
215
215
|
|
@@ -222,7 +222,7 @@ module PulpContainerClient
|
|
222
222
|
# Calculates hash code according to all attributes.
|
223
223
|
# @return [Integer] Hash code
|
224
224
|
def hash
|
225
|
-
[
|
225
|
+
[name, content_guard, pulp_created, repository_version, pulp_href, repository, base_path, registry_path].hash
|
226
226
|
end
|
227
227
|
|
228
228
|
# Builds the object from hash
|
@@ -32,43 +32,43 @@ describe 'ContainerContainerDistributionRead' do
|
|
32
32
|
expect(@instance).to be_instance_of(PulpContainerClient::ContainerContainerDistributionRead)
|
33
33
|
end
|
34
34
|
end
|
35
|
-
describe 'test attribute "
|
35
|
+
describe 'test attribute "name"' 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 "content_guard"' 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 "repository_version"' 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 "pulp_href"' 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 "
|
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 "
|
71
|
+
describe 'test attribute "base_path"' 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
|
@@ -32,43 +32,43 @@ describe 'ContainerContainerDistribution' do
|
|
32
32
|
expect(@instance).to be_instance_of(PulpContainerClient::ContainerContainerDistribution)
|
33
33
|
end
|
34
34
|
end
|
35
|
-
describe 'test attribute "
|
35
|
+
describe 'test attribute "name"' 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 "content_guard"' 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 "repository_version"' 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 "pulp_href"' 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 "
|
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 "
|
71
|
+
describe 'test attribute "base_path"' 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
|
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: 1.5.0.
|
4
|
+
version: 1.5.0.dev01593804344
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenAPI-Generator
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-07-
|
11
|
+
date: 2020-07-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|