pulp_container_client 2.5.1 → 2.5.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +4 -4
- data/docs/ContainerContainerDistribution.md +6 -6
- data/docs/ContainerContainerDistributionResponse.md +9 -9
- data/docs/ManifestCopy.md +1 -1
- data/docs/PatchedcontainerContainerDistribution.md +6 -6
- data/docs/RecursiveManage.md +1 -1
- data/docs/TagCopy.md +1 -1
- data/lib/pulp_container_client/api/content_blobs_api.rb +1 -1
- data/lib/pulp_container_client/api/content_manifests_api.rb +1 -1
- data/lib/pulp_container_client/api/content_tags_api.rb +1 -1
- data/lib/pulp_container_client/api/contentguards_content_redirect_api.rb +1 -1
- data/lib/pulp_container_client/api/distributions_container_api.rb +1 -1
- data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +1 -1
- data/lib/pulp_container_client/api/remotes_container_api.rb +1 -1
- data/lib/pulp_container_client/api/repositories_container_api.rb +1 -1
- data/lib/pulp_container_client/api/repositories_container_push_api.rb +1 -1
- data/lib/pulp_container_client/api/repositories_container_versions_api.rb +1 -1
- data/lib/pulp_container_client/api/token_api.rb +1 -1
- data/lib/pulp_container_client/api_client.rb +12 -8
- data/lib/pulp_container_client/api_error.rb +1 -1
- data/lib/pulp_container_client/configuration.rb +8 -1
- data/lib/pulp_container_client/models/async_operation_response.rb +1 -1
- data/lib/pulp_container_client/models/container_blob_response.rb +1 -1
- data/lib/pulp_container_client/models/container_container_distribution.rb +29 -29
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +38 -38
- data/lib/pulp_container_client/models/container_container_namespace.rb +1 -1
- data/lib/pulp_container_client/models/container_container_namespace_response.rb +1 -1
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +1 -1
- data/lib/pulp_container_client/models/container_container_remote.rb +1 -1
- data/lib/pulp_container_client/models/container_container_remote_response.rb +1 -1
- data/lib/pulp_container_client/models/container_container_repository.rb +1 -1
- data/lib/pulp_container_client/models/container_container_repository_response.rb +1 -1
- data/lib/pulp_container_client/models/container_content_redirect_content_guard.rb +1 -1
- data/lib/pulp_container_client/models/container_content_redirect_content_guard_response.rb +1 -1
- data/lib/pulp_container_client/models/container_manifest_response.rb +1 -1
- data/lib/pulp_container_client/models/container_tag_response.rb +1 -1
- data/lib/pulp_container_client/models/content_summary.rb +1 -1
- data/lib/pulp_container_client/models/content_summary_response.rb +1 -1
- data/lib/pulp_container_client/models/manifest_copy.rb +2 -2
- data/lib/pulp_container_client/models/media_types_enum.rb +1 -1
- data/lib/pulp_container_client/models/oci_build_image.rb +1 -1
- data/lib/pulp_container_client/models/paginated_repository_version_response_list.rb +1 -1
- data/lib/pulp_container_client/models/paginatedcontainer_blob_response_list.rb +1 -1
- data/lib/pulp_container_client/models/paginatedcontainer_container_distribution_response_list.rb +1 -1
- data/lib/pulp_container_client/models/paginatedcontainer_container_namespace_response_list.rb +1 -1
- data/lib/pulp_container_client/models/paginatedcontainer_container_push_repository_response_list.rb +1 -1
- data/lib/pulp_container_client/models/paginatedcontainer_container_remote_response_list.rb +1 -1
- data/lib/pulp_container_client/models/paginatedcontainer_container_repository_response_list.rb +1 -1
- data/lib/pulp_container_client/models/paginatedcontainer_content_redirect_content_guard_response_list.rb +1 -1
- data/lib/pulp_container_client/models/paginatedcontainer_manifest_response_list.rb +1 -1
- data/lib/pulp_container_client/models/paginatedcontainer_tag_response_list.rb +1 -1
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +29 -29
- data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +1 -1
- data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +1 -1
- data/lib/pulp_container_client/models/patchedcontainer_content_redirect_content_guard.rb +1 -1
- data/lib/pulp_container_client/models/policy_enum.rb +1 -1
- data/lib/pulp_container_client/models/recursive_manage.rb +2 -2
- data/lib/pulp_container_client/models/remove_image.rb +1 -1
- data/lib/pulp_container_client/models/repository_sync_url.rb +1 -1
- data/lib/pulp_container_client/models/repository_version.rb +1 -1
- data/lib/pulp_container_client/models/repository_version_response.rb +1 -1
- data/lib/pulp_container_client/models/tag_copy.rb +2 -2
- data/lib/pulp_container_client/models/tag_image.rb +1 -1
- data/lib/pulp_container_client/models/un_tag_image.rb +1 -1
- data/lib/pulp_container_client/version.rb +2 -2
- data/lib/pulp_container_client.rb +1 -1
- data/pulp_container_client.gemspec +2 -2
- data/spec/api/content_blobs_api_spec.rb +1 -1
- data/spec/api/content_manifests_api_spec.rb +1 -1
- data/spec/api/content_tags_api_spec.rb +1 -1
- data/spec/api/contentguards_content_redirect_api_spec.rb +1 -1
- data/spec/api/distributions_container_api_spec.rb +1 -1
- data/spec/api/pulp_container_namespaces_api_spec.rb +1 -1
- data/spec/api/remotes_container_api_spec.rb +1 -1
- data/spec/api/repositories_container_api_spec.rb +1 -1
- data/spec/api/repositories_container_push_api_spec.rb +1 -1
- data/spec/api/repositories_container_versions_api_spec.rb +1 -1
- data/spec/api/token_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/container_blob_response_spec.rb +1 -1
- data/spec/models/container_container_distribution_response_spec.rb +9 -9
- data/spec/models/container_container_distribution_spec.rb +7 -7
- data/spec/models/container_container_namespace_response_spec.rb +1 -1
- data/spec/models/container_container_namespace_spec.rb +1 -1
- data/spec/models/container_container_push_repository_response_spec.rb +1 -1
- data/spec/models/container_container_remote_response_spec.rb +1 -1
- data/spec/models/container_container_remote_spec.rb +1 -1
- data/spec/models/container_container_repository_response_spec.rb +1 -1
- data/spec/models/container_container_repository_spec.rb +1 -1
- data/spec/models/container_content_redirect_content_guard_response_spec.rb +1 -1
- data/spec/models/container_content_redirect_content_guard_spec.rb +1 -1
- data/spec/models/container_manifest_response_spec.rb +1 -1
- data/spec/models/container_tag_response_spec.rb +1 -1
- data/spec/models/content_summary_response_spec.rb +1 -1
- data/spec/models/content_summary_spec.rb +1 -1
- data/spec/models/manifest_copy_spec.rb +1 -1
- data/spec/models/media_types_enum_spec.rb +1 -1
- data/spec/models/oci_build_image_spec.rb +1 -1
- data/spec/models/paginated_repository_version_response_list_spec.rb +1 -1
- data/spec/models/paginatedcontainer_blob_response_list_spec.rb +1 -1
- data/spec/models/paginatedcontainer_container_distribution_response_list_spec.rb +1 -1
- data/spec/models/paginatedcontainer_container_namespace_response_list_spec.rb +1 -1
- data/spec/models/paginatedcontainer_container_push_repository_response_list_spec.rb +1 -1
- data/spec/models/paginatedcontainer_container_remote_response_list_spec.rb +1 -1
- data/spec/models/paginatedcontainer_container_repository_response_list_spec.rb +1 -1
- data/spec/models/paginatedcontainer_content_redirect_content_guard_response_list_spec.rb +1 -1
- data/spec/models/paginatedcontainer_manifest_response_list_spec.rb +1 -1
- data/spec/models/paginatedcontainer_tag_response_list_spec.rb +1 -1
- data/spec/models/patchedcontainer_container_distribution_spec.rb +7 -7
- data/spec/models/patchedcontainer_container_remote_spec.rb +1 -1
- data/spec/models/patchedcontainer_container_repository_spec.rb +1 -1
- data/spec/models/patchedcontainer_content_redirect_content_guard_spec.rb +1 -1
- data/spec/models/policy_enum_spec.rb +1 -1
- data/spec/models/recursive_manage_spec.rb +1 -1
- data/spec/models/remove_image_spec.rb +1 -1
- data/spec/models/repository_sync_url_spec.rb +1 -1
- data/spec/models/repository_version_response_spec.rb +1 -1
- data/spec/models/repository_version_spec.rb +1 -1
- data/spec/models/tag_copy_spec.rb +1 -1
- data/spec/models/tag_image_spec.rb +1 -1
- data/spec/models/un_tag_image_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +51 -45
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f606e6b26b7623d181313f0f68e398858a8468c6ad72db2a375428e54923d7b
|
4
|
+
data.tar.gz: 722fc936d3c7fa3554c0ed405c50bd91204b844aef619ded82318045aa405dc8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5127266bc3cdef3a78b2eccb0cef4004fde87b3a9c776e52e915bb75db5b639022998b625dddb5b2cc81c9bb61c7ab3f443c1806ae102f8c88ea2a78e9d6013
|
7
|
+
data.tar.gz: c7586df6aa96001fa2e485510be4870cc9008a05db31fb2cf7a7097ac72c71c44d932bdb7257f4ab4c4e52f67b604bb4d9bc350a460e2b0c446a30edc9ef0bdd
|
data/Gemfile
CHANGED
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.5.
|
10
|
+
- Package version: 2.5.5
|
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.5.
|
27
|
+
gem install ./pulp_container_client-2.5.5.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./pulp_container_client-2.5.
|
30
|
+
(for development, run `gem install --dev ./pulp_container_client-2.5.5.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.5.
|
36
|
+
gem 'pulp_container_client', '~> 2.5.5'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -4,12 +4,12 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**
|
7
|
+
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
|
8
|
+
**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
9
|
**pulp_labels** | [**Object**](.md) | | [optional]
|
10
|
+
**repository_version** | **String** | RepositoryVersion to be served | [optional]
|
9
11
|
**content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
|
10
|
-
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
|
11
12
|
**repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
|
12
|
-
**base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") |
|
13
13
|
**private** | **Boolean** | Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access. | [optional]
|
14
14
|
**description** | **String** | An optional description. | [optional]
|
15
15
|
|
@@ -18,12 +18,12 @@ Name | Type | Description | Notes
|
|
18
18
|
```ruby
|
19
19
|
require 'PulpContainerClient'
|
20
20
|
|
21
|
-
instance = PulpContainerClient::ContainerContainerDistribution.new(
|
21
|
+
instance = PulpContainerClient::ContainerContainerDistribution.new(name: null,
|
22
|
+
base_path: null,
|
22
23
|
pulp_labels: null,
|
24
|
+
repository_version: null,
|
23
25
|
content_guard: null,
|
24
|
-
name: null,
|
25
26
|
repository: null,
|
26
|
-
base_path: null,
|
27
27
|
private: null,
|
28
28
|
description: null)
|
29
29
|
```
|
@@ -4,14 +4,14 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
+
**pulp_href** | **String** | | [optional] [readonly]
|
8
|
+
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
|
9
|
+
**base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") |
|
10
|
+
**pulp_labels** | [**Object**](.md) | | [optional]
|
7
11
|
**repository_version** | **String** | RepositoryVersion to be served | [optional]
|
8
12
|
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
9
|
-
**pulp_labels** | [**Object**](.md) | | [optional]
|
10
13
|
**content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
|
11
|
-
**pulp_href** | **String** | | [optional] [readonly]
|
12
|
-
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
|
13
14
|
**repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
|
14
|
-
**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\") |
|
15
15
|
**registry_path** | **String** | The Registry hostame/name/ to use with docker pull command defined by this distribution. | [optional] [readonly]
|
16
16
|
**namespace** | **String** | Namespace this distribution belongs to. | [optional] [readonly]
|
17
17
|
**private** | **Boolean** | Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access. | [optional]
|
@@ -22,14 +22,14 @@ Name | Type | Description | Notes
|
|
22
22
|
```ruby
|
23
23
|
require 'PulpContainerClient'
|
24
24
|
|
25
|
-
instance = PulpContainerClient::ContainerContainerDistributionResponse.new(
|
26
|
-
|
25
|
+
instance = PulpContainerClient::ContainerContainerDistributionResponse.new(pulp_href: null,
|
26
|
+
name: null,
|
27
|
+
base_path: null,
|
27
28
|
pulp_labels: null,
|
29
|
+
repository_version: null,
|
30
|
+
pulp_created: null,
|
28
31
|
content_guard: null,
|
29
|
-
pulp_href: null,
|
30
|
-
name: null,
|
31
32
|
repository: null,
|
32
|
-
base_path: null,
|
33
33
|
registry_path: null,
|
34
34
|
namespace: null,
|
35
35
|
private: null,
|
data/docs/ManifestCopy.md
CHANGED
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**source_repository** | **String** | A URI of the repository to copy content from. | [optional]
|
8
8
|
**source_repository_version** | **String** | A URI of the repository version to copy content from. | [optional]
|
9
|
-
**digests** | **Array<
|
9
|
+
**digests** | [**Array<AnyType>**](AnyType.md) | A list of manifest digests to copy. | [optional]
|
10
10
|
**media_types** | [**Array<MediaTypesEnum>**](MediaTypesEnum.md) | A list of media_types to copy. | [optional]
|
11
11
|
|
12
12
|
## Code Sample
|
@@ -4,12 +4,12 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**
|
7
|
+
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. | [optional]
|
8
|
+
**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
9
|
**pulp_labels** | [**Object**](.md) | | [optional]
|
10
|
+
**repository_version** | **String** | RepositoryVersion to be served | [optional]
|
9
11
|
**content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
|
10
|
-
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. | [optional]
|
11
12
|
**repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
|
12
|
-
**base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") | [optional]
|
13
13
|
**private** | **Boolean** | Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access. | [optional]
|
14
14
|
**description** | **String** | An optional description. | [optional]
|
15
15
|
|
@@ -18,12 +18,12 @@ Name | Type | Description | Notes
|
|
18
18
|
```ruby
|
19
19
|
require 'PulpContainerClient'
|
20
20
|
|
21
|
-
instance = PulpContainerClient::PatchedcontainerContainerDistribution.new(
|
21
|
+
instance = PulpContainerClient::PatchedcontainerContainerDistribution.new(name: null,
|
22
|
+
base_path: null,
|
22
23
|
pulp_labels: null,
|
24
|
+
repository_version: null,
|
23
25
|
content_guard: null,
|
24
|
-
name: null,
|
25
26
|
repository: null,
|
26
|
-
base_path: null,
|
27
27
|
private: null,
|
28
28
|
description: null)
|
29
29
|
```
|
data/docs/RecursiveManage.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**content_units** | **Array<
|
7
|
+
**content_units** | [**Array<AnyType>**](AnyType.md) | A list of content units to operate on. | [optional]
|
8
8
|
|
9
9
|
## Code Sample
|
10
10
|
|
data/docs/TagCopy.md
CHANGED
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**source_repository** | **String** | A URI of the repository to copy content from. | [optional]
|
8
8
|
**source_repository_version** | **String** | A URI of the repository version to copy content from. | [optional]
|
9
|
-
**names** | **Array<
|
9
|
+
**names** | [**Array<AnyType>**](AnyType.md) | A list of tag names to copy. | [optional]
|
10
10
|
|
11
11
|
## Code Sample
|
12
12
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -53,8 +53,10 @@ module PulpContainerClient
|
|
53
53
|
:client_cert => @config.ssl_client_cert,
|
54
54
|
:client_key => @config.ssl_client_key
|
55
55
|
}
|
56
|
-
|
57
|
-
|
56
|
+
request_options = {
|
57
|
+
:params_encoder => @config.params_encoder
|
58
|
+
}
|
59
|
+
connection = Faraday.new(:url => config.base_url, :ssl => ssl_options, :request => request_options) do |conn|
|
58
60
|
conn.basic_auth(config.username, config.password)
|
59
61
|
if opts[:header_params]["Content-Type"] == "multipart/form-data"
|
60
62
|
conn.request :multipart
|
@@ -285,11 +287,13 @@ module PulpContainerClient
|
|
285
287
|
tempfile.write(chunk)
|
286
288
|
end
|
287
289
|
request.on_complete do |response|
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
290
|
+
if tempfile
|
291
|
+
tempfile.close
|
292
|
+
@config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\
|
293
|
+
"with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\
|
294
|
+
"will be deleted automatically with GC. It's also recommended to delete the temp file "\
|
295
|
+
"explicitly with `tempfile.delete`"
|
296
|
+
end
|
293
297
|
end
|
294
298
|
end
|
295
299
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -109,6 +109,12 @@ module PulpContainerClient
|
|
109
109
|
# Client private key file (for client certificate)
|
110
110
|
attr_accessor :ssl_client_key
|
111
111
|
|
112
|
+
# Set this to customize parameters encoder of array parameter.
|
113
|
+
# Default to nil. Faraday uses NestedParamsEncoder when nil.
|
114
|
+
#
|
115
|
+
# @see The params_encoder option of Faraday. Related source code:
|
116
|
+
# https://github.com/lostisland/faraday/tree/main/lib/faraday/encoders
|
117
|
+
attr_accessor :params_encoder
|
112
118
|
# Set this to customize parameters encoding of array parameter with multi collectionFormat.
|
113
119
|
# Default to nil.
|
114
120
|
#
|
@@ -133,6 +139,7 @@ module PulpContainerClient
|
|
133
139
|
@ssl_ca_file = nil
|
134
140
|
@ssl_client_cert = nil
|
135
141
|
@ssl_client_key = nil
|
142
|
+
@params_encoder = nil
|
136
143
|
@debugging = false
|
137
144
|
@inject_format = false
|
138
145
|
@force_ending_format = false
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -15,23 +15,23 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class ContainerContainerDistribution
|
18
|
-
#
|
19
|
-
attr_accessor :
|
18
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
19
|
+
attr_accessor :name
|
20
|
+
|
21
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
22
|
+
attr_accessor :base_path
|
20
23
|
|
21
24
|
attr_accessor :pulp_labels
|
22
25
|
|
26
|
+
# RepositoryVersion to be served
|
27
|
+
attr_accessor :repository_version
|
28
|
+
|
23
29
|
# An optional content-guard. If none is specified, a default one will be used.
|
24
30
|
attr_accessor :content_guard
|
25
31
|
|
26
|
-
# A unique name. Ex, `rawhide` and `stable`.
|
27
|
-
attr_accessor :name
|
28
|
-
|
29
32
|
# The latest RepositoryVersion for this Repository will be served.
|
30
33
|
attr_accessor :repository
|
31
34
|
|
32
|
-
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
33
|
-
attr_accessor :base_path
|
34
|
-
|
35
35
|
# Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access.
|
36
36
|
attr_accessor :private
|
37
37
|
|
@@ -41,12 +41,12 @@ module PulpContainerClient
|
|
41
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
42
42
|
def self.attribute_map
|
43
43
|
{
|
44
|
-
:'
|
44
|
+
:'name' => :'name',
|
45
|
+
:'base_path' => :'base_path',
|
45
46
|
:'pulp_labels' => :'pulp_labels',
|
47
|
+
:'repository_version' => :'repository_version',
|
46
48
|
:'content_guard' => :'content_guard',
|
47
|
-
:'name' => :'name',
|
48
49
|
:'repository' => :'repository',
|
49
|
-
:'base_path' => :'base_path',
|
50
50
|
:'private' => :'private',
|
51
51
|
:'description' => :'description'
|
52
52
|
}
|
@@ -55,12 +55,12 @@ module PulpContainerClient
|
|
55
55
|
# Attribute type mapping.
|
56
56
|
def self.openapi_types
|
57
57
|
{
|
58
|
-
:'
|
58
|
+
:'name' => :'String',
|
59
|
+
:'base_path' => :'String',
|
59
60
|
:'pulp_labels' => :'Object',
|
61
|
+
:'repository_version' => :'String',
|
60
62
|
:'content_guard' => :'String',
|
61
|
-
:'name' => :'String',
|
62
63
|
:'repository' => :'String',
|
63
|
-
:'base_path' => :'String',
|
64
64
|
:'private' => :'Boolean',
|
65
65
|
:'description' => :'String'
|
66
66
|
}
|
@@ -90,30 +90,30 @@ module PulpContainerClient
|
|
90
90
|
h[k.to_sym] = v
|
91
91
|
}
|
92
92
|
|
93
|
-
if attributes.key?(:'
|
94
|
-
self.
|
93
|
+
if attributes.key?(:'name')
|
94
|
+
self.name = attributes[:'name']
|
95
|
+
end
|
96
|
+
|
97
|
+
if attributes.key?(:'base_path')
|
98
|
+
self.base_path = attributes[:'base_path']
|
95
99
|
end
|
96
100
|
|
97
101
|
if attributes.key?(:'pulp_labels')
|
98
102
|
self.pulp_labels = attributes[:'pulp_labels']
|
99
103
|
end
|
100
104
|
|
101
|
-
if attributes.key?(:'
|
102
|
-
self.
|
105
|
+
if attributes.key?(:'repository_version')
|
106
|
+
self.repository_version = attributes[:'repository_version']
|
103
107
|
end
|
104
108
|
|
105
|
-
if attributes.key?(:'
|
106
|
-
self.
|
109
|
+
if attributes.key?(:'content_guard')
|
110
|
+
self.content_guard = attributes[:'content_guard']
|
107
111
|
end
|
108
112
|
|
109
113
|
if attributes.key?(:'repository')
|
110
114
|
self.repository = attributes[:'repository']
|
111
115
|
end
|
112
116
|
|
113
|
-
if attributes.key?(:'base_path')
|
114
|
-
self.base_path = attributes[:'base_path']
|
115
|
-
end
|
116
|
-
|
117
117
|
if attributes.key?(:'private')
|
118
118
|
self.private = attributes[:'private']
|
119
119
|
end
|
@@ -151,12 +151,12 @@ module PulpContainerClient
|
|
151
151
|
def ==(o)
|
152
152
|
return true if self.equal?(o)
|
153
153
|
self.class == o.class &&
|
154
|
-
|
154
|
+
name == o.name &&
|
155
|
+
base_path == o.base_path &&
|
155
156
|
pulp_labels == o.pulp_labels &&
|
157
|
+
repository_version == o.repository_version &&
|
156
158
|
content_guard == o.content_guard &&
|
157
|
-
name == o.name &&
|
158
159
|
repository == o.repository &&
|
159
|
-
base_path == o.base_path &&
|
160
160
|
private == o.private &&
|
161
161
|
description == o.description
|
162
162
|
end
|
@@ -170,7 +170,7 @@ module PulpContainerClient
|
|
170
170
|
# Calculates hash code according to all attributes.
|
171
171
|
# @return [Integer] Hash code
|
172
172
|
def hash
|
173
|
-
[
|
173
|
+
[name, base_path, pulp_labels, repository_version, content_guard, repository, private, description].hash
|
174
174
|
end
|
175
175
|
|
176
176
|
# Builds the object from hash
|