pulp_container_client 2.0.0 → 2.0.1
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 +5 -5
- data/docs/ContainerContainerDistribution.md +7 -7
- data/docs/ContainerContainerDistributionResponse.md +8 -8
- data/docs/PatchedcontainerContainerDistribution.md +7 -7
- data/docs/TokenApi.md +5 -5
- data/lib/pulp_container_client/api/token_api.rb +5 -5
- data/lib/pulp_container_client/models/container_container_distribution.rb +29 -29
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +36 -36
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +29 -29
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/api/token_api_spec.rb +2 -2
- data/spec/models/container_container_distribution_response_spec.rb +7 -7
- data/spec/models/container_container_distribution_spec.rb +4 -4
- data/spec/models/patchedcontainer_container_distribution_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: 0edd8b582b63bd56886e874aaed3a67962a9f867a92940bca90b9d23528f04cf
|
4
|
+
data.tar.gz: 3f16a595e6bb489711841dc405c8875b01e021bd8dbc52f63e8efea3f752a6e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2990364e06e13c6c47ff69d7c00c46c25aab811b4d18bbd8ecfeeb6dc1370680c6c7f6ffdd4a06aadeec56bf16fbdc94a79e3961a2f183e24a04b0cee3bf2eb
|
7
|
+
data.tar.gz: 3466b8a2ad7fba67d456677cfa8a8a3482d475273117b21f119ce980a231bcbbecffab368b368b8a27a0f0e398de57ef0c32b9f55360fce1f7c4524d0e78c946
|
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.0.
|
10
|
+
- Package version: 2.0.1
|
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.0.
|
27
|
+
gem install ./pulp_container_client-2.0.1.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./pulp_container_client-2.0.
|
30
|
+
(for development, run `gem install --dev ./pulp_container_client-2.0.1.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.0.
|
36
|
+
gem 'pulp_container_client', '~> 2.0.1'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -145,7 +145,7 @@ Class | Method | HTTP request | Description
|
|
145
145
|
*PulpContainerClient::RepositoriesContainerVersionsApi* | [**read_0**](docs/RepositoriesContainerVersionsApi.md#read_0) | **GET** {container_container_repository_version_href} | Inspect a repository version
|
146
146
|
*PulpContainerClient::RepositoriesContainerVersionsApi* | [**repair**](docs/RepositoriesContainerVersionsApi.md#repair) | **POST** {container_container_push_repository_version_href}repair/ |
|
147
147
|
*PulpContainerClient::RepositoriesContainerVersionsApi* | [**repair_0**](docs/RepositoriesContainerVersionsApi.md#repair_0) | **POST** {container_container_repository_version_href}repair/ |
|
148
|
-
*PulpContainerClient::TokenApi* | [**
|
148
|
+
*PulpContainerClient::TokenApi* | [**get**](docs/TokenApi.md#get) | **GET** /token/ |
|
149
149
|
|
150
150
|
|
151
151
|
## Documentation for Models
|
@@ -4,22 +4,22 @@
|
|
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_version** | **String** | RepositoryVersion to be served | [optional]
|
9
|
-
**content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
|
10
7
|
**repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
|
8
|
+
**repository_version** | **String** | RepositoryVersion to be served | [optional]
|
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\") |
|
11
10
|
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
|
11
|
+
**content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
|
12
12
|
|
13
13
|
## Code Sample
|
14
14
|
|
15
15
|
```ruby
|
16
16
|
require 'PulpContainerClient'
|
17
17
|
|
18
|
-
instance = PulpContainerClient::ContainerContainerDistribution.new(
|
18
|
+
instance = PulpContainerClient::ContainerContainerDistribution.new(repository: null,
|
19
19
|
repository_version: null,
|
20
|
-
|
21
|
-
|
22
|
-
|
20
|
+
base_path: null,
|
21
|
+
name: null,
|
22
|
+
content_guard: null)
|
23
23
|
```
|
24
24
|
|
25
25
|
|
@@ -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_version** | **String** | RepositoryVersion to be served | [optional]
|
9
|
-
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
10
7
|
**pulp_href** | **String** | | [optional] [readonly]
|
11
|
-
**
|
8
|
+
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
12
9
|
**repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
|
10
|
+
**repository_version** | **String** | RepositoryVersion to be served | [optional]
|
11
|
+
**base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") |
|
13
12
|
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
|
13
|
+
**content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
|
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::ContainerContainerDistributionResponse.new(
|
22
|
-
repository_version: null,
|
21
|
+
instance = PulpContainerClient::ContainerContainerDistributionResponse.new(pulp_href: null,
|
23
22
|
pulp_created: null,
|
24
|
-
pulp_href: null,
|
25
|
-
content_guard: null,
|
26
23
|
repository: null,
|
24
|
+
repository_version: null,
|
25
|
+
base_path: null,
|
27
26
|
name: null,
|
27
|
+
content_guard: null,
|
28
28
|
registry_path: null)
|
29
29
|
```
|
30
30
|
|
@@ -4,22 +4,22 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") | [optional]
|
8
|
-
**repository_version** | **String** | RepositoryVersion to be served | [optional]
|
9
|
-
**content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
|
10
7
|
**repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
|
8
|
+
**repository_version** | **String** | RepositoryVersion to be served | [optional]
|
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]
|
11
10
|
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. | [optional]
|
11
|
+
**content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
|
12
12
|
|
13
13
|
## Code Sample
|
14
14
|
|
15
15
|
```ruby
|
16
16
|
require 'PulpContainerClient'
|
17
17
|
|
18
|
-
instance = PulpContainerClient::PatchedcontainerContainerDistribution.new(
|
18
|
+
instance = PulpContainerClient::PatchedcontainerContainerDistribution.new(repository: null,
|
19
19
|
repository_version: null,
|
20
|
-
|
21
|
-
|
22
|
-
|
20
|
+
base_path: null,
|
21
|
+
name: null,
|
22
|
+
content_guard: null)
|
23
23
|
```
|
24
24
|
|
25
25
|
|
data/docs/TokenApi.md
CHANGED
@@ -4,13 +4,13 @@ All URIs are relative to *http://pulp*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**
|
7
|
+
[**get**](TokenApi.md#get) | **GET** /token/ |
|
8
8
|
|
9
9
|
|
10
10
|
|
11
|
-
##
|
11
|
+
## get
|
12
12
|
|
13
|
-
>
|
13
|
+
> get
|
14
14
|
|
15
15
|
|
16
16
|
|
@@ -31,9 +31,9 @@ end
|
|
31
31
|
api_instance = PulpContainerClient::TokenApi.new
|
32
32
|
|
33
33
|
begin
|
34
|
-
api_instance.
|
34
|
+
api_instance.get
|
35
35
|
rescue PulpContainerClient::ApiError => e
|
36
|
-
puts "Exception when calling TokenApi->
|
36
|
+
puts "Exception when calling TokenApi->get: #{e}"
|
37
37
|
end
|
38
38
|
```
|
39
39
|
|
@@ -22,17 +22,17 @@ module PulpContainerClient
|
|
22
22
|
# Handles GET requests for the /token/ endpoint.
|
23
23
|
# @param [Hash] opts the optional parameters
|
24
24
|
# @return [nil]
|
25
|
-
def
|
26
|
-
|
25
|
+
def get(opts = {})
|
26
|
+
get_with_http_info(opts)
|
27
27
|
nil
|
28
28
|
end
|
29
29
|
|
30
30
|
# Handles GET requests for the /token/ endpoint.
|
31
31
|
# @param [Hash] opts the optional parameters
|
32
32
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
33
|
-
def
|
33
|
+
def get_with_http_info(opts = {})
|
34
34
|
if @api_client.config.debugging
|
35
|
-
@api_client.config.logger.debug 'Calling API: TokenApi.
|
35
|
+
@api_client.config.logger.debug 'Calling API: TokenApi.get ...'
|
36
36
|
end
|
37
37
|
# resource path
|
38
38
|
local_var_path = '/token/'
|
@@ -66,7 +66,7 @@ module PulpContainerClient
|
|
66
66
|
|
67
67
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
68
68
|
if @api_client.config.debugging
|
69
|
-
@api_client.config.logger.debug "API called: TokenApi#
|
69
|
+
@api_client.config.logger.debug "API called: TokenApi#get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
70
70
|
end
|
71
71
|
return data, status_code, headers
|
72
72
|
end
|
@@ -15,48 +15,48 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class ContainerContainerDistribution
|
18
|
-
# The
|
19
|
-
attr_accessor :
|
18
|
+
# The latest RepositoryVersion for this Repository will be served.
|
19
|
+
attr_accessor :repository
|
20
20
|
|
21
21
|
# RepositoryVersion to be served
|
22
22
|
attr_accessor :repository_version
|
23
23
|
|
24
|
-
#
|
25
|
-
attr_accessor :
|
26
|
-
|
27
|
-
# The latest RepositoryVersion for this Repository will be served.
|
28
|
-
attr_accessor :repository
|
24
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
25
|
+
attr_accessor :base_path
|
29
26
|
|
30
27
|
# A unique name. Ex, `rawhide` and `stable`.
|
31
28
|
attr_accessor :name
|
32
29
|
|
30
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
31
|
+
attr_accessor :content_guard
|
32
|
+
|
33
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
34
34
|
def self.attribute_map
|
35
35
|
{
|
36
|
-
:'base_path' => :'base_path',
|
37
|
-
:'repository_version' => :'repository_version',
|
38
|
-
:'content_guard' => :'content_guard',
|
39
36
|
:'repository' => :'repository',
|
40
|
-
:'
|
37
|
+
:'repository_version' => :'repository_version',
|
38
|
+
:'base_path' => :'base_path',
|
39
|
+
:'name' => :'name',
|
40
|
+
:'content_guard' => :'content_guard'
|
41
41
|
}
|
42
42
|
end
|
43
43
|
|
44
44
|
# Attribute type mapping.
|
45
45
|
def self.openapi_types
|
46
46
|
{
|
47
|
-
:'base_path' => :'String',
|
48
|
-
:'repository_version' => :'String',
|
49
|
-
:'content_guard' => :'String',
|
50
47
|
:'repository' => :'String',
|
51
|
-
:'
|
48
|
+
:'repository_version' => :'String',
|
49
|
+
:'base_path' => :'String',
|
50
|
+
:'name' => :'String',
|
51
|
+
:'content_guard' => :'String'
|
52
52
|
}
|
53
53
|
end
|
54
54
|
|
55
55
|
# List of attributes with nullable: true
|
56
56
|
def self.openapi_nullable
|
57
57
|
Set.new([
|
58
|
-
:'repository_version',
|
59
58
|
:'repository',
|
59
|
+
:'repository_version',
|
60
60
|
])
|
61
61
|
end
|
62
62
|
|
@@ -75,25 +75,25 @@ module PulpContainerClient
|
|
75
75
|
h[k.to_sym] = v
|
76
76
|
}
|
77
77
|
|
78
|
-
if attributes.key?(:'
|
79
|
-
self.
|
78
|
+
if attributes.key?(:'repository')
|
79
|
+
self.repository = attributes[:'repository']
|
80
80
|
end
|
81
81
|
|
82
82
|
if attributes.key?(:'repository_version')
|
83
83
|
self.repository_version = attributes[:'repository_version']
|
84
84
|
end
|
85
85
|
|
86
|
-
if attributes.key?(:'
|
87
|
-
self.
|
88
|
-
end
|
89
|
-
|
90
|
-
if attributes.key?(:'repository')
|
91
|
-
self.repository = attributes[:'repository']
|
86
|
+
if attributes.key?(:'base_path')
|
87
|
+
self.base_path = attributes[:'base_path']
|
92
88
|
end
|
93
89
|
|
94
90
|
if attributes.key?(:'name')
|
95
91
|
self.name = attributes[:'name']
|
96
92
|
end
|
93
|
+
|
94
|
+
if attributes.key?(:'content_guard')
|
95
|
+
self.content_guard = attributes[:'content_guard']
|
96
|
+
end
|
97
97
|
end
|
98
98
|
|
99
99
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -124,11 +124,11 @@ module PulpContainerClient
|
|
124
124
|
def ==(o)
|
125
125
|
return true if self.equal?(o)
|
126
126
|
self.class == o.class &&
|
127
|
-
base_path == o.base_path &&
|
128
|
-
repository_version == o.repository_version &&
|
129
|
-
content_guard == o.content_guard &&
|
130
127
|
repository == o.repository &&
|
131
|
-
|
128
|
+
repository_version == o.repository_version &&
|
129
|
+
base_path == o.base_path &&
|
130
|
+
name == o.name &&
|
131
|
+
content_guard == o.content_guard
|
132
132
|
end
|
133
133
|
|
134
134
|
# @see the `==` method
|
@@ -140,7 +140,7 @@ module PulpContainerClient
|
|
140
140
|
# Calculates hash code according to all attributes.
|
141
141
|
# @return [Integer] Hash code
|
142
142
|
def hash
|
143
|
-
[
|
143
|
+
[repository, repository_version, base_path, name, content_guard].hash
|
144
144
|
end
|
145
145
|
|
146
146
|
# Builds the object from hash
|
@@ -15,39 +15,39 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class ContainerContainerDistributionResponse
|
18
|
-
|
19
|
-
attr_accessor :base_path
|
20
|
-
|
21
|
-
# RepositoryVersion to be served
|
22
|
-
attr_accessor :repository_version
|
18
|
+
attr_accessor :pulp_href
|
23
19
|
|
24
20
|
# Timestamp of creation.
|
25
21
|
attr_accessor :pulp_created
|
26
22
|
|
27
|
-
attr_accessor :pulp_href
|
28
|
-
|
29
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
30
|
-
attr_accessor :content_guard
|
31
|
-
|
32
23
|
# The latest RepositoryVersion for this Repository will be served.
|
33
24
|
attr_accessor :repository
|
34
25
|
|
26
|
+
# RepositoryVersion to be served
|
27
|
+
attr_accessor :repository_version
|
28
|
+
|
29
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
30
|
+
attr_accessor :base_path
|
31
|
+
|
35
32
|
# A unique name. Ex, `rawhide` and `stable`.
|
36
33
|
attr_accessor :name
|
37
34
|
|
35
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
36
|
+
attr_accessor :content_guard
|
37
|
+
|
38
38
|
# The Registry hostame/name/ to use with docker pull command defined by this distribution.
|
39
39
|
attr_accessor :registry_path
|
40
40
|
|
41
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
42
42
|
def self.attribute_map
|
43
43
|
{
|
44
|
-
:'base_path' => :'base_path',
|
45
|
-
:'repository_version' => :'repository_version',
|
46
|
-
:'pulp_created' => :'pulp_created',
|
47
44
|
:'pulp_href' => :'pulp_href',
|
48
|
-
:'
|
45
|
+
:'pulp_created' => :'pulp_created',
|
49
46
|
:'repository' => :'repository',
|
47
|
+
:'repository_version' => :'repository_version',
|
48
|
+
:'base_path' => :'base_path',
|
50
49
|
:'name' => :'name',
|
50
|
+
:'content_guard' => :'content_guard',
|
51
51
|
:'registry_path' => :'registry_path'
|
52
52
|
}
|
53
53
|
end
|
@@ -55,13 +55,13 @@ module PulpContainerClient
|
|
55
55
|
# Attribute type mapping.
|
56
56
|
def self.openapi_types
|
57
57
|
{
|
58
|
-
:'base_path' => :'String',
|
59
|
-
:'repository_version' => :'String',
|
60
|
-
:'pulp_created' => :'DateTime',
|
61
58
|
:'pulp_href' => :'String',
|
62
|
-
:'
|
59
|
+
:'pulp_created' => :'DateTime',
|
63
60
|
:'repository' => :'String',
|
61
|
+
:'repository_version' => :'String',
|
62
|
+
:'base_path' => :'String',
|
64
63
|
:'name' => :'String',
|
64
|
+
:'content_guard' => :'String',
|
65
65
|
:'registry_path' => :'String'
|
66
66
|
}
|
67
67
|
end
|
@@ -69,8 +69,8 @@ module PulpContainerClient
|
|
69
69
|
# List of attributes with nullable: true
|
70
70
|
def self.openapi_nullable
|
71
71
|
Set.new([
|
72
|
-
:'repository_version',
|
73
72
|
:'repository',
|
73
|
+
:'repository_version',
|
74
74
|
])
|
75
75
|
end
|
76
76
|
|
@@ -89,34 +89,34 @@ module PulpContainerClient
|
|
89
89
|
h[k.to_sym] = v
|
90
90
|
}
|
91
91
|
|
92
|
-
if attributes.key?(:'
|
93
|
-
self.
|
94
|
-
end
|
95
|
-
|
96
|
-
if attributes.key?(:'repository_version')
|
97
|
-
self.repository_version = attributes[:'repository_version']
|
92
|
+
if attributes.key?(:'pulp_href')
|
93
|
+
self.pulp_href = attributes[:'pulp_href']
|
98
94
|
end
|
99
95
|
|
100
96
|
if attributes.key?(:'pulp_created')
|
101
97
|
self.pulp_created = attributes[:'pulp_created']
|
102
98
|
end
|
103
99
|
|
104
|
-
if attributes.key?(:'
|
105
|
-
self.
|
100
|
+
if attributes.key?(:'repository')
|
101
|
+
self.repository = attributes[:'repository']
|
106
102
|
end
|
107
103
|
|
108
|
-
if attributes.key?(:'
|
109
|
-
self.
|
104
|
+
if attributes.key?(:'repository_version')
|
105
|
+
self.repository_version = attributes[:'repository_version']
|
110
106
|
end
|
111
107
|
|
112
|
-
if attributes.key?(:'
|
113
|
-
self.
|
108
|
+
if attributes.key?(:'base_path')
|
109
|
+
self.base_path = attributes[:'base_path']
|
114
110
|
end
|
115
111
|
|
116
112
|
if attributes.key?(:'name')
|
117
113
|
self.name = attributes[:'name']
|
118
114
|
end
|
119
115
|
|
116
|
+
if attributes.key?(:'content_guard')
|
117
|
+
self.content_guard = attributes[:'content_guard']
|
118
|
+
end
|
119
|
+
|
120
120
|
if attributes.key?(:'registry_path')
|
121
121
|
self.registry_path = attributes[:'registry_path']
|
122
122
|
end
|
@@ -150,13 +150,13 @@ module PulpContainerClient
|
|
150
150
|
def ==(o)
|
151
151
|
return true if self.equal?(o)
|
152
152
|
self.class == o.class &&
|
153
|
-
base_path == o.base_path &&
|
154
|
-
repository_version == o.repository_version &&
|
155
|
-
pulp_created == o.pulp_created &&
|
156
153
|
pulp_href == o.pulp_href &&
|
157
|
-
|
154
|
+
pulp_created == o.pulp_created &&
|
158
155
|
repository == o.repository &&
|
156
|
+
repository_version == o.repository_version &&
|
157
|
+
base_path == o.base_path &&
|
159
158
|
name == o.name &&
|
159
|
+
content_guard == o.content_guard &&
|
160
160
|
registry_path == o.registry_path
|
161
161
|
end
|
162
162
|
|
@@ -169,7 +169,7 @@ module PulpContainerClient
|
|
169
169
|
# Calculates hash code according to all attributes.
|
170
170
|
# @return [Integer] Hash code
|
171
171
|
def hash
|
172
|
-
[
|
172
|
+
[pulp_href, pulp_created, repository, repository_version, base_path, name, content_guard, registry_path].hash
|
173
173
|
end
|
174
174
|
|
175
175
|
# Builds the object from hash
|
@@ -15,48 +15,48 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class PatchedcontainerContainerDistribution
|
18
|
-
# The
|
19
|
-
attr_accessor :
|
18
|
+
# The latest RepositoryVersion for this Repository will be served.
|
19
|
+
attr_accessor :repository
|
20
20
|
|
21
21
|
# RepositoryVersion to be served
|
22
22
|
attr_accessor :repository_version
|
23
23
|
|
24
|
-
#
|
25
|
-
attr_accessor :
|
26
|
-
|
27
|
-
# The latest RepositoryVersion for this Repository will be served.
|
28
|
-
attr_accessor :repository
|
24
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
25
|
+
attr_accessor :base_path
|
29
26
|
|
30
27
|
# A unique name. Ex, `rawhide` and `stable`.
|
31
28
|
attr_accessor :name
|
32
29
|
|
30
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
31
|
+
attr_accessor :content_guard
|
32
|
+
|
33
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
34
34
|
def self.attribute_map
|
35
35
|
{
|
36
|
-
:'base_path' => :'base_path',
|
37
|
-
:'repository_version' => :'repository_version',
|
38
|
-
:'content_guard' => :'content_guard',
|
39
36
|
:'repository' => :'repository',
|
40
|
-
:'
|
37
|
+
:'repository_version' => :'repository_version',
|
38
|
+
:'base_path' => :'base_path',
|
39
|
+
:'name' => :'name',
|
40
|
+
:'content_guard' => :'content_guard'
|
41
41
|
}
|
42
42
|
end
|
43
43
|
|
44
44
|
# Attribute type mapping.
|
45
45
|
def self.openapi_types
|
46
46
|
{
|
47
|
-
:'base_path' => :'String',
|
48
|
-
:'repository_version' => :'String',
|
49
|
-
:'content_guard' => :'String',
|
50
47
|
:'repository' => :'String',
|
51
|
-
:'
|
48
|
+
:'repository_version' => :'String',
|
49
|
+
:'base_path' => :'String',
|
50
|
+
:'name' => :'String',
|
51
|
+
:'content_guard' => :'String'
|
52
52
|
}
|
53
53
|
end
|
54
54
|
|
55
55
|
# List of attributes with nullable: true
|
56
56
|
def self.openapi_nullable
|
57
57
|
Set.new([
|
58
|
-
:'repository_version',
|
59
58
|
:'repository',
|
59
|
+
:'repository_version',
|
60
60
|
])
|
61
61
|
end
|
62
62
|
|
@@ -75,25 +75,25 @@ module PulpContainerClient
|
|
75
75
|
h[k.to_sym] = v
|
76
76
|
}
|
77
77
|
|
78
|
-
if attributes.key?(:'
|
79
|
-
self.
|
78
|
+
if attributes.key?(:'repository')
|
79
|
+
self.repository = attributes[:'repository']
|
80
80
|
end
|
81
81
|
|
82
82
|
if attributes.key?(:'repository_version')
|
83
83
|
self.repository_version = attributes[:'repository_version']
|
84
84
|
end
|
85
85
|
|
86
|
-
if attributes.key?(:'
|
87
|
-
self.
|
88
|
-
end
|
89
|
-
|
90
|
-
if attributes.key?(:'repository')
|
91
|
-
self.repository = attributes[:'repository']
|
86
|
+
if attributes.key?(:'base_path')
|
87
|
+
self.base_path = attributes[:'base_path']
|
92
88
|
end
|
93
89
|
|
94
90
|
if attributes.key?(:'name')
|
95
91
|
self.name = attributes[:'name']
|
96
92
|
end
|
93
|
+
|
94
|
+
if attributes.key?(:'content_guard')
|
95
|
+
self.content_guard = attributes[:'content_guard']
|
96
|
+
end
|
97
97
|
end
|
98
98
|
|
99
99
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -114,11 +114,11 @@ module PulpContainerClient
|
|
114
114
|
def ==(o)
|
115
115
|
return true if self.equal?(o)
|
116
116
|
self.class == o.class &&
|
117
|
-
base_path == o.base_path &&
|
118
|
-
repository_version == o.repository_version &&
|
119
|
-
content_guard == o.content_guard &&
|
120
117
|
repository == o.repository &&
|
121
|
-
|
118
|
+
repository_version == o.repository_version &&
|
119
|
+
base_path == o.base_path &&
|
120
|
+
name == o.name &&
|
121
|
+
content_guard == o.content_guard
|
122
122
|
end
|
123
123
|
|
124
124
|
# @see the `==` method
|
@@ -130,7 +130,7 @@ module PulpContainerClient
|
|
130
130
|
# Calculates hash code according to all attributes.
|
131
131
|
# @return [Integer] Hash code
|
132
132
|
def hash
|
133
|
-
[
|
133
|
+
[repository, repository_version, base_path, name, content_guard].hash
|
134
134
|
end
|
135
135
|
|
136
136
|
# Builds the object from hash
|
data/spec/api/token_api_spec.rb
CHANGED
@@ -32,11 +32,11 @@ describe 'TokenApi' do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
-
# unit tests for
|
35
|
+
# unit tests for get
|
36
36
|
# Handles GET requests for the /token/ endpoint.
|
37
37
|
# @param [Hash] opts the optional parameters
|
38
38
|
# @return [nil]
|
39
|
-
describe '
|
39
|
+
describe 'get test' do
|
40
40
|
it 'should work' do
|
41
41
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
42
42
|
end
|
@@ -32,43 +32,43 @@ describe 'ContainerContainerDistributionResponse' do
|
|
32
32
|
expect(@instance).to be_instance_of(PulpContainerClient::ContainerContainerDistributionResponse)
|
33
33
|
end
|
34
34
|
end
|
35
|
-
describe 'test attribute "
|
35
|
+
describe 'test attribute "pulp_href"' 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_created"' do
|
42
42
|
it 'should work' do
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
-
describe 'test attribute "
|
47
|
+
describe 'test attribute "repository"' 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 "base_path"' 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 "name"' 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 "content_guard"' do
|
72
72
|
it 'should work' do
|
73
73
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
74
74
|
end
|
@@ -32,7 +32,7 @@ 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 "repository"' 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
|
@@ -44,19 +44,19 @@ describe 'ContainerContainerDistribution' do
|
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
-
describe 'test attribute "
|
47
|
+
describe 'test attribute "base_path"' 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
|
57
57
|
end
|
58
58
|
|
59
|
-
describe 'test attribute "
|
59
|
+
describe 'test attribute "content_guard"' do
|
60
60
|
it 'should work' do
|
61
61
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
62
|
end
|
@@ -32,7 +32,7 @@ describe 'PatchedcontainerContainerDistribution' do
|
|
32
32
|
expect(@instance).to be_instance_of(PulpContainerClient::PatchedcontainerContainerDistribution)
|
33
33
|
end
|
34
34
|
end
|
35
|
-
describe 'test attribute "
|
35
|
+
describe 'test attribute "repository"' 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
|
@@ -44,19 +44,19 @@ describe 'PatchedcontainerContainerDistribution' do
|
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
-
describe 'test attribute "
|
47
|
+
describe 'test attribute "base_path"' 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
|
57
57
|
end
|
58
58
|
|
59
|
-
describe 'test attribute "
|
59
|
+
describe 'test attribute "content_guard"' 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
|
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.0.
|
4
|
+
version: 2.0.1
|
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-08
|
11
|
+
date: 2020-09-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|