pulp_container_client 2.20.0 → 2.20.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -7
- data/docs/ContainerBlobResponse.md +2 -0
- data/docs/ContainerContainerDistribution.md +5 -5
- data/docs/ContainerContainerDistributionResponse.md +9 -7
- data/docs/ContainerContainerNamespaceResponse.md +2 -0
- data/docs/ContainerContainerPullThroughDistribution.md +5 -5
- data/docs/ContainerContainerPullThroughDistributionResponse.md +9 -7
- data/docs/ContainerContainerPullThroughRemoteResponse.md +2 -2
- data/docs/ContainerContainerPullThroughRemoteResponseHiddenFields.md +2 -2
- data/docs/ContainerContainerPushRepository.md +7 -7
- data/docs/ContainerContainerPushRepositoryResponse.md +14 -12
- data/docs/ContainerContainerRemoteResponse.md +2 -2
- data/docs/ContainerContainerRepositoryResponse.md +2 -0
- data/docs/ContainerManifestResponse.md +2 -0
- data/docs/ContainerManifestSignatureResponse.md +2 -0
- data/docs/ContainerTagResponse.md +2 -0
- data/docs/ContentBlobsApi.md +1 -1
- data/docs/ContentManifestsApi.md +1 -1
- data/docs/ContentSignaturesApi.md +1 -1
- data/docs/ContentTagsApi.md +1 -1
- data/docs/DistributionsContainerApi.md +1 -1
- data/docs/DistributionsPullThroughApi.md +1 -1
- data/docs/PaginatedRepositoryVersionResponseList.md +2 -2
- data/docs/PaginatedcontainerBlobResponseList.md +2 -2
- data/docs/PaginatedcontainerContainerDistributionResponseList.md +2 -2
- data/docs/PaginatedcontainerContainerNamespaceResponseList.md +2 -2
- data/docs/PaginatedcontainerContainerPullThroughDistributionResponseList.md +2 -2
- data/docs/PaginatedcontainerContainerPullThroughRemoteResponseList.md +2 -2
- data/docs/PaginatedcontainerContainerPushRepositoryResponseList.md +2 -2
- data/docs/PaginatedcontainerContainerRemoteResponseList.md +2 -2
- data/docs/PaginatedcontainerContainerRepositoryResponseList.md +2 -2
- data/docs/PaginatedcontainerManifestResponseList.md +2 -2
- data/docs/PaginatedcontainerManifestSignatureResponseList.md +2 -2
- data/docs/PaginatedcontainerTagResponseList.md +2 -2
- data/docs/PatchedcontainerContainerDistribution.md +5 -5
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +5 -5
- data/docs/PatchedcontainerContainerPushRepository.md +7 -7
- data/docs/PulpContainerNamespacesApi.md +1 -1
- data/docs/RemotesContainerApi.md +1 -1
- data/docs/RemotesPullThroughApi.md +1 -1
- data/docs/RepositoriesContainerApi.md +1 -1
- data/docs/RepositoriesContainerPushApi.md +1 -1
- data/docs/RepositoriesContainerPushVersionsApi.md +1 -1
- data/docs/RepositoriesContainerVersionsApi.md +1 -1
- data/docs/RepositoryVersionResponse.md +2 -0
- data/docs/TokenApi.md +1 -1
- data/lib/pulp_container_client/configuration.rb +2 -2
- data/lib/pulp_container_client/models/container_blob_response.rb +11 -1
- data/lib/pulp_container_client/models/container_container_distribution.rb +44 -44
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +43 -33
- data/lib/pulp_container_client/models/container_container_namespace_response.rb +11 -1
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +44 -44
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +43 -33
- data/lib/pulp_container_client/models/container_container_pull_through_remote.rb +20 -20
- data/lib/pulp_container_client/models/container_container_pull_through_remote_response.rb +31 -31
- data/lib/pulp_container_client/models/container_container_pull_through_remote_response_hidden_fields.rb +10 -0
- data/lib/pulp_container_client/models/container_container_push_repository.rb +45 -45
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +64 -54
- data/lib/pulp_container_client/models/container_container_remote.rb +20 -20
- data/lib/pulp_container_client/models/container_container_remote_response.rb +31 -31
- data/lib/pulp_container_client/models/container_container_repository_response.rb +11 -1
- data/lib/pulp_container_client/models/container_manifest_response.rb +11 -1
- data/lib/pulp_container_client/models/container_manifest_signature_response.rb +11 -1
- data/lib/pulp_container_client/models/container_tag_response.rb +11 -1
- data/lib/pulp_container_client/models/paginated_repository_version_response_list.rb +10 -0
- data/lib/pulp_container_client/models/paginatedcontainer_blob_response_list.rb +10 -0
- data/lib/pulp_container_client/models/paginatedcontainer_container_distribution_response_list.rb +10 -0
- data/lib/pulp_container_client/models/paginatedcontainer_container_namespace_response_list.rb +10 -0
- data/lib/pulp_container_client/models/paginatedcontainer_container_pull_through_distribution_response_list.rb +10 -0
- data/lib/pulp_container_client/models/paginatedcontainer_container_pull_through_remote_response_list.rb +10 -0
- data/lib/pulp_container_client/models/paginatedcontainer_container_push_repository_response_list.rb +10 -0
- data/lib/pulp_container_client/models/paginatedcontainer_container_remote_response_list.rb +10 -0
- data/lib/pulp_container_client/models/paginatedcontainer_container_repository_response_list.rb +10 -0
- data/lib/pulp_container_client/models/paginatedcontainer_manifest_response_list.rb +10 -0
- data/lib/pulp_container_client/models/paginatedcontainer_manifest_signature_response_list.rb +10 -0
- data/lib/pulp_container_client/models/paginatedcontainer_tag_response_list.rb +10 -0
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +35 -35
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +35 -35
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_remote.rb +20 -20
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +45 -45
- data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +20 -20
- data/lib/pulp_container_client/models/repository_version_response.rb +11 -1
- data/lib/pulp_container_client/version.rb +1 -1
- data/lib/pulp_container_client.rb +0 -2
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/container_blob_response_spec.rb +6 -0
- data/spec/models/container_container_distribution_response_spec.rb +11 -5
- data/spec/models/container_container_distribution_spec.rb +6 -6
- data/spec/models/container_container_namespace_response_spec.rb +6 -0
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +11 -5
- data/spec/models/container_container_pull_through_distribution_spec.rb +6 -6
- data/spec/models/container_container_pull_through_remote_response_spec.rb +6 -6
- data/spec/models/container_container_push_repository_response_spec.rb +14 -8
- data/spec/models/container_container_push_repository_spec.rb +5 -5
- data/spec/models/container_container_remote_response_spec.rb +6 -6
- data/spec/models/container_container_repository_response_spec.rb +6 -0
- data/spec/models/container_manifest_response_spec.rb +6 -0
- data/spec/models/container_manifest_signature_response_spec.rb +6 -0
- data/spec/models/container_tag_response_spec.rb +6 -0
- data/spec/models/patchedcontainer_container_distribution_spec.rb +6 -6
- data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +6 -6
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +5 -5
- data/spec/models/repository_version_response_spec.rb +6 -0
- metadata +73 -81
- data/docs/IndexDynamicApi.md +0 -50
- data/docs/IndexStaticApi.md +0 -50
- data/lib/pulp_container_client/api/index_dynamic_api.rb +0 -74
- data/lib/pulp_container_client/api/index_static_api.rb +0 -74
- data/spec/api/index_dynamic_api_spec.rb +0 -45
- data/spec/api/index_static_api_spec.rb +0 -45
@@ -4,10 +4,10 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**count** | **Integer** | |
|
7
|
+
**count** | **Integer** | |
|
8
8
|
**_next** | **String** | | [optional]
|
9
9
|
**previous** | **String** | | [optional]
|
10
|
-
**results** | [**Array<ContainerContainerRepositoryResponse>**](ContainerContainerRepositoryResponse.md) | |
|
10
|
+
**results** | [**Array<ContainerContainerRepositoryResponse>**](ContainerContainerRepositoryResponse.md) | |
|
11
11
|
|
12
12
|
## Code Sample
|
13
13
|
|
@@ -4,10 +4,10 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**count** | **Integer** | |
|
7
|
+
**count** | **Integer** | |
|
8
8
|
**_next** | **String** | | [optional]
|
9
9
|
**previous** | **String** | | [optional]
|
10
|
-
**results** | [**Array<ContainerManifestResponse>**](ContainerManifestResponse.md) | |
|
10
|
+
**results** | [**Array<ContainerManifestResponse>**](ContainerManifestResponse.md) | |
|
11
11
|
|
12
12
|
## Code Sample
|
13
13
|
|
@@ -4,10 +4,10 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**count** | **Integer** | |
|
7
|
+
**count** | **Integer** | |
|
8
8
|
**_next** | **String** | | [optional]
|
9
9
|
**previous** | **String** | | [optional]
|
10
|
-
**results** | [**Array<ContainerManifestSignatureResponse>**](ContainerManifestSignatureResponse.md) | |
|
10
|
+
**results** | [**Array<ContainerManifestSignatureResponse>**](ContainerManifestSignatureResponse.md) | |
|
11
11
|
|
12
12
|
## Code Sample
|
13
13
|
|
@@ -4,10 +4,10 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**count** | **Integer** | |
|
7
|
+
**count** | **Integer** | |
|
8
8
|
**_next** | **String** | | [optional]
|
9
9
|
**previous** | **String** | | [optional]
|
10
|
-
**results** | [**Array<ContainerTagResponse>**](ContainerTagResponse.md) | |
|
10
|
+
**results** | [**Array<ContainerTagResponse>**](ContainerTagResponse.md) | |
|
11
11
|
|
12
12
|
## Code Sample
|
13
13
|
|
@@ -4,12 +4,12 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
|
8
7
|
**hidden** | **Boolean** | Whether this distribution should be shown in the content app. | [optional] [default to false]
|
8
|
+
**content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
|
9
|
+
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. | [optional]
|
9
10
|
**pulp_labels** | **Hash<String, String>** | | [optional]
|
10
11
|
**repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
|
11
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]
|
12
|
-
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. | [optional]
|
13
13
|
**repository_version** | **String** | RepositoryVersion to be served | [optional]
|
14
14
|
**private** | **Boolean** | Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access. | [optional]
|
15
15
|
**description** | **String** | An optional description. | [optional]
|
@@ -19,12 +19,12 @@ Name | Type | Description | Notes
|
|
19
19
|
```ruby
|
20
20
|
require 'PulpContainerClient'
|
21
21
|
|
22
|
-
instance = PulpContainerClient::PatchedcontainerContainerDistribution.new(
|
23
|
-
|
22
|
+
instance = PulpContainerClient::PatchedcontainerContainerDistribution.new(hidden: null,
|
23
|
+
content_guard: null,
|
24
|
+
name: null,
|
24
25
|
pulp_labels: null,
|
25
26
|
repository: null,
|
26
27
|
base_path: null,
|
27
|
-
name: null,
|
28
28
|
repository_version: null,
|
29
29
|
private: null,
|
30
30
|
description: null)
|
@@ -4,12 +4,12 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
|
8
7
|
**hidden** | **Boolean** | Whether this distribution should be shown in the content app. | [optional] [default to false]
|
8
|
+
**content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
|
9
|
+
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. | [optional]
|
9
10
|
**pulp_labels** | **Hash<String, String>** | | [optional]
|
10
11
|
**repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
|
11
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]
|
12
|
-
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. | [optional]
|
13
13
|
**remote** | **String** | Remote that can be used to fetch content when using pull-through caching. | [optional]
|
14
14
|
**distributions** | **Array<String>** | Distributions created after pulling content through cache | [optional]
|
15
15
|
**private** | **Boolean** | Restrict pull access to explicitly authorized users. Related distributions inherit this value. Defaults to unrestricted pull access. | [optional]
|
@@ -20,12 +20,12 @@ Name | Type | Description | Notes
|
|
20
20
|
```ruby
|
21
21
|
require 'PulpContainerClient'
|
22
22
|
|
23
|
-
instance = PulpContainerClient::PatchedcontainerContainerPullThroughDistribution.new(
|
24
|
-
|
23
|
+
instance = PulpContainerClient::PatchedcontainerContainerPullThroughDistribution.new(hidden: null,
|
24
|
+
content_guard: null,
|
25
|
+
name: null,
|
25
26
|
pulp_labels: null,
|
26
27
|
repository: null,
|
27
28
|
base_path: null,
|
28
|
-
name: null,
|
29
29
|
remote: null,
|
30
30
|
distributions: null,
|
31
31
|
private: null,
|
@@ -4,22 +4,22 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**retain_repo_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. | [optional]
|
8
|
-
**manifest_signing_service** | **String** | A reference to an associated signing service. | [optional]
|
9
|
-
**pulp_labels** | **Hash<String, String>** | | [optional]
|
10
7
|
**name** | **String** | A unique name for this repository. | [optional]
|
8
|
+
**pulp_labels** | **Hash<String, String>** | | [optional]
|
9
|
+
**retain_repo_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. | [optional]
|
11
10
|
**description** | **String** | An optional description. | [optional]
|
11
|
+
**manifest_signing_service** | **String** | A reference to an associated signing service. | [optional]
|
12
12
|
|
13
13
|
## Code Sample
|
14
14
|
|
15
15
|
```ruby
|
16
16
|
require 'PulpContainerClient'
|
17
17
|
|
18
|
-
instance = PulpContainerClient::PatchedcontainerContainerPushRepository.new(
|
19
|
-
manifest_signing_service: null,
|
18
|
+
instance = PulpContainerClient::PatchedcontainerContainerPushRepository.new(name: null,
|
20
19
|
pulp_labels: null,
|
21
|
-
|
22
|
-
description: null
|
20
|
+
retain_repo_versions: null,
|
21
|
+
description: null,
|
22
|
+
manifest_signing_service: null)
|
23
23
|
```
|
24
24
|
|
25
25
|
|
data/docs/RemotesContainerApi.md
CHANGED
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**pulp_href** | **String** | | [optional] [readonly]
|
8
8
|
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
9
|
+
**pulp_last_updated** | **DateTime** | Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. | [optional] [readonly]
|
9
10
|
**number** | **Integer** | | [optional] [readonly]
|
10
11
|
**repository** | **String** | | [optional] [readonly]
|
11
12
|
**base_version** | **String** | A repository version whose content was used as the initial set of content for this repository version | [optional]
|
@@ -18,6 +19,7 @@ require 'PulpContainerClient'
|
|
18
19
|
|
19
20
|
instance = PulpContainerClient::RepositoryVersionResponse.new(pulp_href: null,
|
20
21
|
pulp_created: null,
|
22
|
+
pulp_last_updated: null,
|
21
23
|
number: null,
|
22
24
|
repository: null,
|
23
25
|
base_version: null,
|
data/docs/TokenApi.md
CHANGED
@@ -128,7 +128,7 @@ module PulpContainerClient
|
|
128
128
|
|
129
129
|
def initialize
|
130
130
|
@scheme = 'http'
|
131
|
-
@host = '
|
131
|
+
@host = 'localhost'
|
132
132
|
@base_path = ''
|
133
133
|
@api_key = {}
|
134
134
|
@api_key_prefix = {}
|
@@ -210,7 +210,7 @@ module PulpContainerClient
|
|
210
210
|
def server_settings
|
211
211
|
[
|
212
212
|
{
|
213
|
-
url: "http://
|
213
|
+
url: "http://localhost:24817/",
|
214
214
|
description: "No description provided",
|
215
215
|
}
|
216
216
|
]
|
@@ -20,6 +20,9 @@ module PulpContainerClient
|
|
20
20
|
# Timestamp of creation.
|
21
21
|
attr_accessor :pulp_created
|
22
22
|
|
23
|
+
# Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
|
24
|
+
attr_accessor :pulp_last_updated
|
25
|
+
|
23
26
|
# Artifact file representing the physical content
|
24
27
|
attr_accessor :artifact
|
25
28
|
|
@@ -31,6 +34,7 @@ module PulpContainerClient
|
|
31
34
|
{
|
32
35
|
:'pulp_href' => :'pulp_href',
|
33
36
|
:'pulp_created' => :'pulp_created',
|
37
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
34
38
|
:'artifact' => :'artifact',
|
35
39
|
:'digest' => :'digest'
|
36
40
|
}
|
@@ -41,6 +45,7 @@ module PulpContainerClient
|
|
41
45
|
{
|
42
46
|
:'pulp_href' => :'String',
|
43
47
|
:'pulp_created' => :'DateTime',
|
48
|
+
:'pulp_last_updated' => :'DateTime',
|
44
49
|
:'artifact' => :'String',
|
45
50
|
:'digest' => :'String'
|
46
51
|
}
|
@@ -75,6 +80,10 @@ module PulpContainerClient
|
|
75
80
|
self.pulp_created = attributes[:'pulp_created']
|
76
81
|
end
|
77
82
|
|
83
|
+
if attributes.key?(:'pulp_last_updated')
|
84
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
85
|
+
end
|
86
|
+
|
78
87
|
if attributes.key?(:'artifact')
|
79
88
|
self.artifact = attributes[:'artifact']
|
80
89
|
end
|
@@ -114,6 +123,7 @@ module PulpContainerClient
|
|
114
123
|
self.class == o.class &&
|
115
124
|
pulp_href == o.pulp_href &&
|
116
125
|
pulp_created == o.pulp_created &&
|
126
|
+
pulp_last_updated == o.pulp_last_updated &&
|
117
127
|
artifact == o.artifact &&
|
118
128
|
digest == o.digest
|
119
129
|
end
|
@@ -127,7 +137,7 @@ module PulpContainerClient
|
|
127
137
|
# Calculates hash code according to all attributes.
|
128
138
|
# @return [Integer] Hash code
|
129
139
|
def hash
|
130
|
-
[pulp_href, pulp_created, artifact, digest].hash
|
140
|
+
[pulp_href, pulp_created, pulp_last_updated, artifact, digest].hash
|
131
141
|
end
|
132
142
|
|
133
143
|
# Builds the object from hash
|
@@ -15,11 +15,14 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class ContainerContainerDistribution
|
18
|
+
# Whether this distribution should be shown in the content app.
|
19
|
+
attr_accessor :hidden
|
20
|
+
|
18
21
|
# An optional content-guard. If none is specified, a default one will be used.
|
19
22
|
attr_accessor :content_guard
|
20
23
|
|
21
|
-
#
|
22
|
-
attr_accessor :
|
24
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
25
|
+
attr_accessor :name
|
23
26
|
|
24
27
|
attr_accessor :pulp_labels
|
25
28
|
|
@@ -29,9 +32,6 @@ module PulpContainerClient
|
|
29
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\")
|
30
33
|
attr_accessor :base_path
|
31
34
|
|
32
|
-
# A unique name. Ex, `rawhide` and `stable`.
|
33
|
-
attr_accessor :name
|
34
|
-
|
35
35
|
# RepositoryVersion to be served
|
36
36
|
attr_accessor :repository_version
|
37
37
|
|
@@ -44,12 +44,12 @@ module PulpContainerClient
|
|
44
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
45
45
|
def self.attribute_map
|
46
46
|
{
|
47
|
-
:'content_guard' => :'content_guard',
|
48
47
|
:'hidden' => :'hidden',
|
48
|
+
:'content_guard' => :'content_guard',
|
49
|
+
:'name' => :'name',
|
49
50
|
:'pulp_labels' => :'pulp_labels',
|
50
51
|
:'repository' => :'repository',
|
51
52
|
:'base_path' => :'base_path',
|
52
|
-
:'name' => :'name',
|
53
53
|
:'repository_version' => :'repository_version',
|
54
54
|
:'private' => :'private',
|
55
55
|
:'description' => :'description'
|
@@ -59,12 +59,12 @@ module PulpContainerClient
|
|
59
59
|
# Attribute type mapping.
|
60
60
|
def self.openapi_types
|
61
61
|
{
|
62
|
-
:'content_guard' => :'String',
|
63
62
|
:'hidden' => :'Boolean',
|
63
|
+
:'content_guard' => :'String',
|
64
|
+
:'name' => :'String',
|
64
65
|
:'pulp_labels' => :'Hash<String, String>',
|
65
66
|
:'repository' => :'String',
|
66
67
|
:'base_path' => :'String',
|
67
|
-
:'name' => :'String',
|
68
68
|
:'repository_version' => :'String',
|
69
69
|
:'private' => :'Boolean',
|
70
70
|
:'description' => :'String'
|
@@ -95,16 +95,20 @@ module PulpContainerClient
|
|
95
95
|
h[k.to_sym] = v
|
96
96
|
}
|
97
97
|
|
98
|
-
if attributes.key?(:'content_guard')
|
99
|
-
self.content_guard = attributes[:'content_guard']
|
100
|
-
end
|
101
|
-
|
102
98
|
if attributes.key?(:'hidden')
|
103
99
|
self.hidden = attributes[:'hidden']
|
104
100
|
else
|
105
101
|
self.hidden = false
|
106
102
|
end
|
107
103
|
|
104
|
+
if attributes.key?(:'content_guard')
|
105
|
+
self.content_guard = attributes[:'content_guard']
|
106
|
+
end
|
107
|
+
|
108
|
+
if attributes.key?(:'name')
|
109
|
+
self.name = attributes[:'name']
|
110
|
+
end
|
111
|
+
|
108
112
|
if attributes.key?(:'pulp_labels')
|
109
113
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
110
114
|
self.pulp_labels = value
|
@@ -119,10 +123,6 @@ module PulpContainerClient
|
|
119
123
|
self.base_path = attributes[:'base_path']
|
120
124
|
end
|
121
125
|
|
122
|
-
if attributes.key?(:'name')
|
123
|
-
self.name = attributes[:'name']
|
124
|
-
end
|
125
|
-
|
126
126
|
if attributes.key?(:'repository_version')
|
127
127
|
self.repository_version = attributes[:'repository_version']
|
128
128
|
end
|
@@ -140,14 +140,6 @@ module PulpContainerClient
|
|
140
140
|
# @return Array for valid properties with the reasons
|
141
141
|
def list_invalid_properties
|
142
142
|
invalid_properties = Array.new
|
143
|
-
if @base_path.nil?
|
144
|
-
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
145
|
-
end
|
146
|
-
|
147
|
-
if @base_path.to_s.length < 1
|
148
|
-
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
149
|
-
end
|
150
|
-
|
151
143
|
if @name.nil?
|
152
144
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
153
145
|
end
|
@@ -156,6 +148,14 @@ module PulpContainerClient
|
|
156
148
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
157
149
|
end
|
158
150
|
|
151
|
+
if @base_path.nil?
|
152
|
+
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
153
|
+
end
|
154
|
+
|
155
|
+
if @base_path.to_s.length < 1
|
156
|
+
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
157
|
+
end
|
158
|
+
|
159
159
|
if !@description.nil? && @description.to_s.length < 1
|
160
160
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
161
161
|
end
|
@@ -166,28 +166,14 @@ module PulpContainerClient
|
|
166
166
|
# Check to see if the all the properties in the model are valid
|
167
167
|
# @return true if the model is valid
|
168
168
|
def valid?
|
169
|
-
return false if @base_path.nil?
|
170
|
-
return false if @base_path.to_s.length < 1
|
171
169
|
return false if @name.nil?
|
172
170
|
return false if @name.to_s.length < 1
|
171
|
+
return false if @base_path.nil?
|
172
|
+
return false if @base_path.to_s.length < 1
|
173
173
|
return false if !@description.nil? && @description.to_s.length < 1
|
174
174
|
true
|
175
175
|
end
|
176
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
177
|
# Custom attribute writer method with validation
|
192
178
|
# @param [Object] name Value to be assigned
|
193
179
|
def name=(name)
|
@@ -202,6 +188,20 @@ module PulpContainerClient
|
|
202
188
|
@name = name
|
203
189
|
end
|
204
190
|
|
191
|
+
# Custom attribute writer method with validation
|
192
|
+
# @param [Object] base_path Value to be assigned
|
193
|
+
def base_path=(base_path)
|
194
|
+
if base_path.nil?
|
195
|
+
fail ArgumentError, 'base_path cannot be nil'
|
196
|
+
end
|
197
|
+
|
198
|
+
if base_path.to_s.length < 1
|
199
|
+
fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
|
200
|
+
end
|
201
|
+
|
202
|
+
@base_path = base_path
|
203
|
+
end
|
204
|
+
|
205
205
|
# Custom attribute writer method with validation
|
206
206
|
# @param [Object] description Value to be assigned
|
207
207
|
def description=(description)
|
@@ -217,12 +217,12 @@ module PulpContainerClient
|
|
217
217
|
def ==(o)
|
218
218
|
return true if self.equal?(o)
|
219
219
|
self.class == o.class &&
|
220
|
-
content_guard == o.content_guard &&
|
221
220
|
hidden == o.hidden &&
|
221
|
+
content_guard == o.content_guard &&
|
222
|
+
name == o.name &&
|
222
223
|
pulp_labels == o.pulp_labels &&
|
223
224
|
repository == o.repository &&
|
224
225
|
base_path == o.base_path &&
|
225
|
-
name == o.name &&
|
226
226
|
repository_version == o.repository_version &&
|
227
227
|
private == o.private &&
|
228
228
|
description == o.description
|
@@ -237,7 +237,7 @@ module PulpContainerClient
|
|
237
237
|
# Calculates hash code according to all attributes.
|
238
238
|
# @return [Integer] Hash code
|
239
239
|
def hash
|
240
|
-
[content_guard,
|
240
|
+
[hidden, content_guard, name, pulp_labels, repository, base_path, repository_version, private, description].hash
|
241
241
|
end
|
242
242
|
|
243
243
|
# Builds the object from hash
|