pulp_container_client 2.27.8 → 2.28.0
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 +4 -4
- data/docs/ContainerContainerDistribution.md +8 -8
- data/docs/ContainerContainerDistributionResponse.md +18 -18
- data/docs/ContainerContainerNamespace.md +3 -1
- data/docs/ContainerContainerNamespaceResponse.md +3 -1
- data/docs/ContainerContainerPullThroughDistribution.md +8 -8
- data/docs/ContainerContainerPullThroughDistributionResponse.md +18 -18
- data/docs/ContainerContainerPushRepository.md +7 -7
- data/docs/ContainerContainerPushRepositoryResponse.md +16 -16
- data/docs/ContainerContainerRemote.md +6 -2
- data/docs/ContainerContainerRemoteResponse.md +4 -4
- data/docs/ContainerManifestSignatureResponse.md +2 -0
- data/docs/ContentSignaturesApi.md +2 -2
- data/docs/DistributionsContainerApi.md +2 -2
- data/docs/DistributionsPullThroughApi.md +2 -2
- data/docs/PatchedcontainerContainerDistribution.md +8 -8
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +8 -8
- data/docs/PatchedcontainerContainerPushRepository.md +7 -7
- data/docs/PatchedcontainerContainerRemote.md +6 -2
- data/docs/PulpContainerNamespacesApi.md +2 -2
- data/lib/pulp_container_client/api/content_signatures_api.rb +3 -3
- data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +3 -3
- data/lib/pulp_container_client/models/container_container_distribution.rb +68 -68
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +85 -85
- data/lib/pulp_container_client/models/container_container_namespace.rb +15 -4
- data/lib/pulp_container_client/models/container_container_namespace_response.rb +15 -4
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +68 -68
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +85 -85
- data/lib/pulp_container_client/models/container_container_push_repository.rb +59 -59
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +73 -73
- data/lib/pulp_container_client/models/container_container_remote.rb +29 -3
- data/lib/pulp_container_client/models/container_container_remote_response.rb +19 -19
- data/lib/pulp_container_client/models/container_manifest_signature_response.rb +14 -1
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +61 -61
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +61 -61
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +57 -57
- data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +29 -3
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/api/content_signatures_api_spec.rb +1 -1
- data/spec/api/pulp_container_namespaces_api_spec.rb +1 -1
- data/spec/models/container_container_distribution_response_spec.rb +12 -12
- data/spec/models/container_container_distribution_spec.rb +7 -7
- data/spec/models/container_container_namespace_response_spec.rb +6 -0
- data/spec/models/container_container_namespace_spec.rb +6 -0
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +12 -12
- data/spec/models/container_container_pull_through_distribution_spec.rb +7 -7
- data/spec/models/container_container_push_repository_response_spec.rb +12 -12
- data/spec/models/container_container_push_repository_spec.rb +5 -5
- data/spec/models/container_container_remote_response_spec.rb +2 -2
- data/spec/models/container_container_remote_spec.rb +12 -0
- data/spec/models/container_manifest_signature_response_spec.rb +6 -0
- data/spec/models/patchedcontainer_container_distribution_spec.rb +7 -7
- data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +7 -7
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_remote_spec.rb +12 -0
- metadata +59 -59
|
@@ -272,7 +272,7 @@ opts = {
|
|
|
272
272
|
name__regex: 'name__regex_example', # String | Filter results where name matches regex value
|
|
273
273
|
name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
|
|
274
274
|
offset: 56, # Integer | The initial index from which to return the results.
|
|
275
|
-
ordering: ['-name'], # Array<String> | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `name` - Name * `-name` - Name (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
275
|
+
ordering: ['-name'], # Array<String> | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
276
276
|
prn__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
|
277
277
|
pulp_href__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
|
278
278
|
pulp_id__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
|
|
@@ -324,7 +324,7 @@ end
|
|
|
324
324
|
| **name__regex** | **String** | Filter results where name matches regex value | [optional] |
|
|
325
325
|
| **name__startswith** | **String** | Filter results where name starts with value | [optional] |
|
|
326
326
|
| **offset** | **Integer** | The initial index from which to return the results. | [optional] |
|
|
327
|
-
| **ordering** | [**Array<String>**](String.md) | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `name` - Name * `-name` - Name (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional] |
|
|
327
|
+
| **ordering** | [**Array<String>**](String.md) | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `pk` - Pk * `-pk` - Pk (descending) | [optional] |
|
|
328
328
|
| **prn__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
|
329
329
|
| **pulp_href__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
|
330
330
|
| **pulp_id__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
|
@@ -39,7 +39,7 @@ module PulpContainerClient
|
|
|
39
39
|
# @option opts [String] :name__regex Filter results where name matches regex value
|
|
40
40
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
|
41
41
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
42
|
-
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `name` - Name * `-name` - Name (descending) * `digest` - Digest * `-digest` - Digest (descending) * `type` - Type * `-type` - Type (descending) * `key_id` - Key id * `-key_id` - Key id (descending) * `timestamp` - Timestamp * `-timestamp` - Timestamp (descending) * `creator` - Creator * `-creator` - Creator (descending) * `data` - Data * `-data` - Data (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
42
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `name` - Name * `-name` - Name (descending) * `digest` - Digest * `-digest` - Digest (descending) * `type` - Type * `-type` - Type (descending) * `key_id` - Key id * `-key_id` - Key id (descending) * `fingerprint` - Fingerprint * `-fingerprint` - Fingerprint (descending) * `timestamp` - Timestamp * `-timestamp` - Timestamp (descending) * `creator` - Creator * `-creator` - Creator (descending) * `data` - Data * `-data` - Data (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
43
43
|
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
|
44
44
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
|
45
45
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
@@ -77,7 +77,7 @@ module PulpContainerClient
|
|
|
77
77
|
# @option opts [String] :name__regex Filter results where name matches regex value
|
|
78
78
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
|
79
79
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
80
|
-
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `name` - Name * `-name` - Name (descending) * `digest` - Digest * `-digest` - Digest (descending) * `type` - Type * `-type` - Type (descending) * `key_id` - Key id * `-key_id` - Key id (descending) * `timestamp` - Timestamp * `-timestamp` - Timestamp (descending) * `creator` - Creator * `-creator` - Creator (descending) * `data` - Data * `-data` - Data (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
80
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `name` - Name * `-name` - Name (descending) * `digest` - Digest * `-digest` - Digest (descending) * `type` - Type * `-type` - Type (descending) * `key_id` - Key id * `-key_id` - Key id (descending) * `fingerprint` - Fingerprint * `-fingerprint` - Fingerprint (descending) * `timestamp` - Timestamp * `-timestamp` - Timestamp (descending) * `creator` - Creator * `-creator` - Creator (descending) * `data` - Data * `-data` - Data (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
81
81
|
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
|
82
82
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
|
83
83
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
@@ -94,7 +94,7 @@ module PulpContainerClient
|
|
|
94
94
|
if @api_client.config.debugging
|
|
95
95
|
@api_client.config.logger.debug 'Calling API: ContentSignaturesApi.list ...'
|
|
96
96
|
end
|
|
97
|
-
allowable_values = ["-creator", "-data", "-digest", "-key_id", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-timestamp", "-timestamp_of_interest", "-type", "-upstream_id", "creator", "data", "digest", "key_id", "name", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "timestamp", "timestamp_of_interest", "type", "upstream_id"]
|
|
97
|
+
allowable_values = ["-creator", "-data", "-digest", "-fingerprint", "-key_id", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-timestamp", "-timestamp_of_interest", "-type", "-upstream_id", "creator", "data", "digest", "fingerprint", "key_id", "name", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "timestamp", "timestamp_of_interest", "type", "upstream_id"]
|
|
98
98
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
|
99
99
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
|
100
100
|
end
|
|
@@ -248,7 +248,7 @@ module PulpContainerClient
|
|
|
248
248
|
# @option opts [String] :name__regex Filter results where name matches regex value
|
|
249
249
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
|
250
250
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
251
|
-
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `name` - Name * `-name` - Name (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
251
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
252
252
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
|
253
253
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
254
254
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
@@ -276,7 +276,7 @@ module PulpContainerClient
|
|
|
276
276
|
# @option opts [String] :name__regex Filter results where name matches regex value
|
|
277
277
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
|
278
278
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
279
|
-
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `name` - Name * `-name` - Name (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
279
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
280
280
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
|
281
281
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
282
282
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
@@ -288,7 +288,7 @@ module PulpContainerClient
|
|
|
288
288
|
if @api_client.config.debugging
|
|
289
289
|
@api_client.config.logger.debug 'Calling API: PulpContainerNamespacesApi.list ...'
|
|
290
290
|
end
|
|
291
|
-
allowable_values = ["-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "name", "pk", "pulp_created", "pulp_id", "pulp_last_updated"]
|
|
291
|
+
allowable_values = ["-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "name", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated"]
|
|
292
292
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
|
293
293
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
|
294
294
|
end
|
|
@@ -16,26 +16,26 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# A serializer for ContainerDistribution.
|
|
18
18
|
class ContainerContainerDistribution
|
|
19
|
-
#
|
|
20
|
-
attr_accessor :
|
|
19
|
+
# Whether this distribution should be shown in the content app.
|
|
20
|
+
attr_accessor :hidden
|
|
21
21
|
|
|
22
|
-
#
|
|
23
|
-
attr_accessor :
|
|
22
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
23
|
+
attr_accessor :base_path
|
|
24
|
+
|
|
25
|
+
attr_accessor :pulp_labels
|
|
24
26
|
|
|
25
27
|
# A unique name. Ex, `rawhide` and `stable`.
|
|
26
28
|
attr_accessor :name
|
|
27
29
|
|
|
28
|
-
# The
|
|
29
|
-
attr_accessor :
|
|
30
|
+
# The latest RepositoryVersion for this Repository will be served.
|
|
31
|
+
attr_accessor :repository
|
|
32
|
+
|
|
33
|
+
# RepositoryVersion to be served
|
|
34
|
+
attr_accessor :repository_version
|
|
30
35
|
|
|
31
36
|
# An optional content-guard. If none is specified, a default one will be used.
|
|
32
37
|
attr_accessor :content_guard
|
|
33
38
|
|
|
34
|
-
# Whether this distribution should be shown in the content app.
|
|
35
|
-
attr_accessor :hidden
|
|
36
|
-
|
|
37
|
-
attr_accessor :pulp_labels
|
|
38
|
-
|
|
39
39
|
# Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access.
|
|
40
40
|
attr_accessor :private
|
|
41
41
|
|
|
@@ -45,13 +45,13 @@ module PulpContainerClient
|
|
|
45
45
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
46
46
|
def self.attribute_map
|
|
47
47
|
{
|
|
48
|
+
:'hidden' => :'hidden',
|
|
49
|
+
:'base_path' => :'base_path',
|
|
50
|
+
:'pulp_labels' => :'pulp_labels',
|
|
51
|
+
:'name' => :'name',
|
|
48
52
|
:'repository' => :'repository',
|
|
49
53
|
:'repository_version' => :'repository_version',
|
|
50
|
-
:'name' => :'name',
|
|
51
|
-
:'base_path' => :'base_path',
|
|
52
54
|
:'content_guard' => :'content_guard',
|
|
53
|
-
:'hidden' => :'hidden',
|
|
54
|
-
:'pulp_labels' => :'pulp_labels',
|
|
55
55
|
:'private' => :'private',
|
|
56
56
|
:'description' => :'description'
|
|
57
57
|
}
|
|
@@ -65,13 +65,13 @@ module PulpContainerClient
|
|
|
65
65
|
# Attribute type mapping.
|
|
66
66
|
def self.openapi_types
|
|
67
67
|
{
|
|
68
|
+
:'hidden' => :'Boolean',
|
|
69
|
+
:'base_path' => :'String',
|
|
70
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
71
|
+
:'name' => :'String',
|
|
68
72
|
:'repository' => :'String',
|
|
69
73
|
:'repository_version' => :'String',
|
|
70
|
-
:'name' => :'String',
|
|
71
|
-
:'base_path' => :'String',
|
|
72
74
|
:'content_guard' => :'String',
|
|
73
|
-
:'hidden' => :'Boolean',
|
|
74
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
75
75
|
:'private' => :'Boolean',
|
|
76
76
|
:'description' => :'String'
|
|
77
77
|
}
|
|
@@ -101,18 +101,10 @@ module PulpContainerClient
|
|
|
101
101
|
h[k.to_sym] = v
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
if attributes.key?(:'
|
|
105
|
-
self.
|
|
106
|
-
end
|
|
107
|
-
|
|
108
|
-
if attributes.key?(:'repository_version')
|
|
109
|
-
self.repository_version = attributes[:'repository_version']
|
|
110
|
-
end
|
|
111
|
-
|
|
112
|
-
if attributes.key?(:'name')
|
|
113
|
-
self.name = attributes[:'name']
|
|
104
|
+
if attributes.key?(:'hidden')
|
|
105
|
+
self.hidden = attributes[:'hidden']
|
|
114
106
|
else
|
|
115
|
-
self.
|
|
107
|
+
self.hidden = false
|
|
116
108
|
end
|
|
117
109
|
|
|
118
110
|
if attributes.key?(:'base_path')
|
|
@@ -121,20 +113,28 @@ module PulpContainerClient
|
|
|
121
113
|
self.base_path = nil
|
|
122
114
|
end
|
|
123
115
|
|
|
124
|
-
if attributes.key?(:'
|
|
125
|
-
|
|
116
|
+
if attributes.key?(:'pulp_labels')
|
|
117
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
118
|
+
self.pulp_labels = value
|
|
119
|
+
end
|
|
126
120
|
end
|
|
127
121
|
|
|
128
|
-
if attributes.key?(:'
|
|
129
|
-
self.
|
|
122
|
+
if attributes.key?(:'name')
|
|
123
|
+
self.name = attributes[:'name']
|
|
130
124
|
else
|
|
131
|
-
self.
|
|
125
|
+
self.name = nil
|
|
132
126
|
end
|
|
133
127
|
|
|
134
|
-
if attributes.key?(:'
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
128
|
+
if attributes.key?(:'repository')
|
|
129
|
+
self.repository = attributes[:'repository']
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
if attributes.key?(:'repository_version')
|
|
133
|
+
self.repository_version = attributes[:'repository_version']
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
if attributes.key?(:'content_guard')
|
|
137
|
+
self.content_guard = attributes[:'content_guard']
|
|
138
138
|
end
|
|
139
139
|
|
|
140
140
|
if attributes.key?(:'private')
|
|
@@ -151,14 +151,6 @@ module PulpContainerClient
|
|
|
151
151
|
def list_invalid_properties
|
|
152
152
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
153
153
|
invalid_properties = Array.new
|
|
154
|
-
if @name.nil?
|
|
155
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
156
|
-
end
|
|
157
|
-
|
|
158
|
-
if @name.to_s.length < 1
|
|
159
|
-
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
160
|
-
end
|
|
161
|
-
|
|
162
154
|
if @base_path.nil?
|
|
163
155
|
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
|
164
156
|
end
|
|
@@ -167,6 +159,14 @@ module PulpContainerClient
|
|
|
167
159
|
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
|
168
160
|
end
|
|
169
161
|
|
|
162
|
+
if @name.nil?
|
|
163
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
if @name.to_s.length < 1
|
|
167
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
168
|
+
end
|
|
169
|
+
|
|
170
170
|
if !@description.nil? && @description.to_s.length < 1
|
|
171
171
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
172
172
|
end
|
|
@@ -178,28 +178,14 @@ module PulpContainerClient
|
|
|
178
178
|
# @return true if the model is valid
|
|
179
179
|
def valid?
|
|
180
180
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
181
|
-
return false if @name.nil?
|
|
182
|
-
return false if @name.to_s.length < 1
|
|
183
181
|
return false if @base_path.nil?
|
|
184
182
|
return false if @base_path.to_s.length < 1
|
|
183
|
+
return false if @name.nil?
|
|
184
|
+
return false if @name.to_s.length < 1
|
|
185
185
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
186
186
|
true
|
|
187
187
|
end
|
|
188
188
|
|
|
189
|
-
# Custom attribute writer method with validation
|
|
190
|
-
# @param [Object] name Value to be assigned
|
|
191
|
-
def name=(name)
|
|
192
|
-
if name.nil?
|
|
193
|
-
fail ArgumentError, 'name cannot be nil'
|
|
194
|
-
end
|
|
195
|
-
|
|
196
|
-
if name.to_s.length < 1
|
|
197
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
198
|
-
end
|
|
199
|
-
|
|
200
|
-
@name = name
|
|
201
|
-
end
|
|
202
|
-
|
|
203
189
|
# Custom attribute writer method with validation
|
|
204
190
|
# @param [Object] base_path Value to be assigned
|
|
205
191
|
def base_path=(base_path)
|
|
@@ -214,6 +200,20 @@ module PulpContainerClient
|
|
|
214
200
|
@base_path = base_path
|
|
215
201
|
end
|
|
216
202
|
|
|
203
|
+
# Custom attribute writer method with validation
|
|
204
|
+
# @param [Object] name Value to be assigned
|
|
205
|
+
def name=(name)
|
|
206
|
+
if name.nil?
|
|
207
|
+
fail ArgumentError, 'name cannot be nil'
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
if name.to_s.length < 1
|
|
211
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
@name = name
|
|
215
|
+
end
|
|
216
|
+
|
|
217
217
|
# Custom attribute writer method with validation
|
|
218
218
|
# @param [Object] description Value to be assigned
|
|
219
219
|
def description=(description)
|
|
@@ -229,13 +229,13 @@ module PulpContainerClient
|
|
|
229
229
|
def ==(o)
|
|
230
230
|
return true if self.equal?(o)
|
|
231
231
|
self.class == o.class &&
|
|
232
|
+
hidden == o.hidden &&
|
|
233
|
+
base_path == o.base_path &&
|
|
234
|
+
pulp_labels == o.pulp_labels &&
|
|
235
|
+
name == o.name &&
|
|
232
236
|
repository == o.repository &&
|
|
233
237
|
repository_version == o.repository_version &&
|
|
234
|
-
name == o.name &&
|
|
235
|
-
base_path == o.base_path &&
|
|
236
238
|
content_guard == o.content_guard &&
|
|
237
|
-
hidden == o.hidden &&
|
|
238
|
-
pulp_labels == o.pulp_labels &&
|
|
239
239
|
private == o.private &&
|
|
240
240
|
description == o.description
|
|
241
241
|
end
|
|
@@ -249,7 +249,7 @@ module PulpContainerClient
|
|
|
249
249
|
# Calculates hash code according to all attributes.
|
|
250
250
|
# @return [Integer] Hash code
|
|
251
251
|
def hash
|
|
252
|
-
[
|
|
252
|
+
[hidden, base_path, pulp_labels, name, repository, repository_version, content_guard, private, description].hash
|
|
253
253
|
end
|
|
254
254
|
|
|
255
255
|
# Builds the object from hash
|
|
@@ -16,43 +16,43 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# A serializer for ContainerDistribution.
|
|
18
18
|
class ContainerContainerDistributionResponse
|
|
19
|
-
#
|
|
20
|
-
attr_accessor :
|
|
19
|
+
# Whether this distribution should be shown in the content app.
|
|
20
|
+
attr_accessor :hidden
|
|
21
21
|
|
|
22
|
-
#
|
|
23
|
-
attr_accessor :
|
|
22
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
23
|
+
attr_accessor :base_path
|
|
24
24
|
|
|
25
25
|
# The Pulp Resource Name (PRN).
|
|
26
26
|
attr_accessor :prn
|
|
27
27
|
|
|
28
|
+
# 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.
|
|
29
|
+
attr_accessor :pulp_last_updated
|
|
30
|
+
|
|
31
|
+
attr_accessor :pulp_labels
|
|
32
|
+
|
|
33
|
+
attr_accessor :pulp_href
|
|
34
|
+
|
|
28
35
|
# A unique name. Ex, `rawhide` and `stable`.
|
|
29
36
|
attr_accessor :name
|
|
30
37
|
|
|
31
|
-
# The
|
|
32
|
-
attr_accessor :
|
|
38
|
+
# The latest RepositoryVersion for this Repository will be served.
|
|
39
|
+
attr_accessor :repository
|
|
33
40
|
|
|
34
|
-
# Timestamp
|
|
35
|
-
attr_accessor :
|
|
41
|
+
# Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
|
|
42
|
+
attr_accessor :no_content_change_since
|
|
36
43
|
|
|
37
44
|
# The Pulp Resource Name (PRN) of the associated optional content guard.
|
|
38
45
|
attr_accessor :content_guard_prn
|
|
39
46
|
|
|
40
|
-
|
|
47
|
+
# RepositoryVersion to be served
|
|
48
|
+
attr_accessor :repository_version
|
|
49
|
+
|
|
50
|
+
# Timestamp of creation.
|
|
51
|
+
attr_accessor :pulp_created
|
|
41
52
|
|
|
42
53
|
# An optional content-guard. If none is specified, a default one will be used.
|
|
43
54
|
attr_accessor :content_guard
|
|
44
55
|
|
|
45
|
-
# Whether this distribution should be shown in the content app.
|
|
46
|
-
attr_accessor :hidden
|
|
47
|
-
|
|
48
|
-
attr_accessor :pulp_labels
|
|
49
|
-
|
|
50
|
-
# 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.
|
|
51
|
-
attr_accessor :pulp_last_updated
|
|
52
|
-
|
|
53
|
-
# Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
|
|
54
|
-
attr_accessor :no_content_change_since
|
|
55
|
-
|
|
56
56
|
# The Registry hostname/name/ to use with docker pull command defined by this distribution.
|
|
57
57
|
attr_accessor :registry_path
|
|
58
58
|
|
|
@@ -71,19 +71,19 @@ module PulpContainerClient
|
|
|
71
71
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
72
72
|
def self.attribute_map
|
|
73
73
|
{
|
|
74
|
-
:'
|
|
75
|
-
:'
|
|
74
|
+
:'hidden' => :'hidden',
|
|
75
|
+
:'base_path' => :'base_path',
|
|
76
76
|
:'prn' => :'prn',
|
|
77
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
|
78
|
+
:'pulp_labels' => :'pulp_labels',
|
|
79
|
+
:'pulp_href' => :'pulp_href',
|
|
77
80
|
:'name' => :'name',
|
|
78
|
-
:'
|
|
79
|
-
:'
|
|
81
|
+
:'repository' => :'repository',
|
|
82
|
+
:'no_content_change_since' => :'no_content_change_since',
|
|
80
83
|
:'content_guard_prn' => :'content_guard_prn',
|
|
81
|
-
:'
|
|
84
|
+
:'repository_version' => :'repository_version',
|
|
85
|
+
:'pulp_created' => :'pulp_created',
|
|
82
86
|
:'content_guard' => :'content_guard',
|
|
83
|
-
:'hidden' => :'hidden',
|
|
84
|
-
:'pulp_labels' => :'pulp_labels',
|
|
85
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
|
86
|
-
:'no_content_change_since' => :'no_content_change_since',
|
|
87
87
|
:'registry_path' => :'registry_path',
|
|
88
88
|
:'remote' => :'remote',
|
|
89
89
|
:'namespace' => :'namespace',
|
|
@@ -100,19 +100,19 @@ module PulpContainerClient
|
|
|
100
100
|
# Attribute type mapping.
|
|
101
101
|
def self.openapi_types
|
|
102
102
|
{
|
|
103
|
-
:'
|
|
104
|
-
:'
|
|
103
|
+
:'hidden' => :'Boolean',
|
|
104
|
+
:'base_path' => :'String',
|
|
105
105
|
:'prn' => :'String',
|
|
106
|
+
:'pulp_last_updated' => :'Time',
|
|
107
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
108
|
+
:'pulp_href' => :'String',
|
|
106
109
|
:'name' => :'String',
|
|
107
|
-
:'
|
|
108
|
-
:'
|
|
110
|
+
:'repository' => :'String',
|
|
111
|
+
:'no_content_change_since' => :'String',
|
|
109
112
|
:'content_guard_prn' => :'String',
|
|
110
|
-
:'
|
|
113
|
+
:'repository_version' => :'String',
|
|
114
|
+
:'pulp_created' => :'Time',
|
|
111
115
|
:'content_guard' => :'String',
|
|
112
|
-
:'hidden' => :'Boolean',
|
|
113
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
114
|
-
:'pulp_last_updated' => :'Time',
|
|
115
|
-
:'no_content_change_since' => :'String',
|
|
116
116
|
:'registry_path' => :'String',
|
|
117
117
|
:'remote' => :'String',
|
|
118
118
|
:'namespace' => :'String',
|
|
@@ -145,64 +145,64 @@ module PulpContainerClient
|
|
|
145
145
|
h[k.to_sym] = v
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
if attributes.key?(:'
|
|
149
|
-
self.
|
|
148
|
+
if attributes.key?(:'hidden')
|
|
149
|
+
self.hidden = attributes[:'hidden']
|
|
150
|
+
else
|
|
151
|
+
self.hidden = false
|
|
150
152
|
end
|
|
151
153
|
|
|
152
|
-
if attributes.key?(:'
|
|
153
|
-
self.
|
|
154
|
+
if attributes.key?(:'base_path')
|
|
155
|
+
self.base_path = attributes[:'base_path']
|
|
156
|
+
else
|
|
157
|
+
self.base_path = nil
|
|
154
158
|
end
|
|
155
159
|
|
|
156
160
|
if attributes.key?(:'prn')
|
|
157
161
|
self.prn = attributes[:'prn']
|
|
158
162
|
end
|
|
159
163
|
|
|
160
|
-
if attributes.key?(:'
|
|
161
|
-
self.
|
|
162
|
-
else
|
|
163
|
-
self.name = nil
|
|
164
|
+
if attributes.key?(:'pulp_last_updated')
|
|
165
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
164
166
|
end
|
|
165
167
|
|
|
166
|
-
if attributes.key?(:'
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
168
|
+
if attributes.key?(:'pulp_labels')
|
|
169
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
170
|
+
self.pulp_labels = value
|
|
171
|
+
end
|
|
170
172
|
end
|
|
171
173
|
|
|
172
|
-
if attributes.key?(:'
|
|
173
|
-
self.
|
|
174
|
+
if attributes.key?(:'pulp_href')
|
|
175
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
174
176
|
end
|
|
175
177
|
|
|
176
|
-
if attributes.key?(:'
|
|
177
|
-
self.
|
|
178
|
+
if attributes.key?(:'name')
|
|
179
|
+
self.name = attributes[:'name']
|
|
180
|
+
else
|
|
181
|
+
self.name = nil
|
|
178
182
|
end
|
|
179
183
|
|
|
180
|
-
if attributes.key?(:'
|
|
181
|
-
self.
|
|
184
|
+
if attributes.key?(:'repository')
|
|
185
|
+
self.repository = attributes[:'repository']
|
|
182
186
|
end
|
|
183
187
|
|
|
184
|
-
if attributes.key?(:'
|
|
185
|
-
self.
|
|
188
|
+
if attributes.key?(:'no_content_change_since')
|
|
189
|
+
self.no_content_change_since = attributes[:'no_content_change_since']
|
|
186
190
|
end
|
|
187
191
|
|
|
188
|
-
if attributes.key?(:'
|
|
189
|
-
self.
|
|
190
|
-
else
|
|
191
|
-
self.hidden = false
|
|
192
|
+
if attributes.key?(:'content_guard_prn')
|
|
193
|
+
self.content_guard_prn = attributes[:'content_guard_prn']
|
|
192
194
|
end
|
|
193
195
|
|
|
194
|
-
if attributes.key?(:'
|
|
195
|
-
|
|
196
|
-
self.pulp_labels = value
|
|
197
|
-
end
|
|
196
|
+
if attributes.key?(:'repository_version')
|
|
197
|
+
self.repository_version = attributes[:'repository_version']
|
|
198
198
|
end
|
|
199
199
|
|
|
200
|
-
if attributes.key?(:'
|
|
201
|
-
self.
|
|
200
|
+
if attributes.key?(:'pulp_created')
|
|
201
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
202
202
|
end
|
|
203
203
|
|
|
204
|
-
if attributes.key?(:'
|
|
205
|
-
self.
|
|
204
|
+
if attributes.key?(:'content_guard')
|
|
205
|
+
self.content_guard = attributes[:'content_guard']
|
|
206
206
|
end
|
|
207
207
|
|
|
208
208
|
if attributes.key?(:'registry_path')
|
|
@@ -231,14 +231,14 @@ module PulpContainerClient
|
|
|
231
231
|
def list_invalid_properties
|
|
232
232
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
233
233
|
invalid_properties = Array.new
|
|
234
|
-
if @name.nil?
|
|
235
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
236
|
-
end
|
|
237
|
-
|
|
238
234
|
if @base_path.nil?
|
|
239
235
|
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
|
240
236
|
end
|
|
241
237
|
|
|
238
|
+
if @name.nil?
|
|
239
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
240
|
+
end
|
|
241
|
+
|
|
242
242
|
invalid_properties
|
|
243
243
|
end
|
|
244
244
|
|
|
@@ -246,8 +246,8 @@ module PulpContainerClient
|
|
|
246
246
|
# @return true if the model is valid
|
|
247
247
|
def valid?
|
|
248
248
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
249
|
-
return false if @name.nil?
|
|
250
249
|
return false if @base_path.nil?
|
|
250
|
+
return false if @name.nil?
|
|
251
251
|
true
|
|
252
252
|
end
|
|
253
253
|
|
|
@@ -256,19 +256,19 @@ module PulpContainerClient
|
|
|
256
256
|
def ==(o)
|
|
257
257
|
return true if self.equal?(o)
|
|
258
258
|
self.class == o.class &&
|
|
259
|
-
|
|
260
|
-
|
|
259
|
+
hidden == o.hidden &&
|
|
260
|
+
base_path == o.base_path &&
|
|
261
261
|
prn == o.prn &&
|
|
262
|
+
pulp_last_updated == o.pulp_last_updated &&
|
|
263
|
+
pulp_labels == o.pulp_labels &&
|
|
264
|
+
pulp_href == o.pulp_href &&
|
|
262
265
|
name == o.name &&
|
|
263
|
-
|
|
264
|
-
|
|
266
|
+
repository == o.repository &&
|
|
267
|
+
no_content_change_since == o.no_content_change_since &&
|
|
265
268
|
content_guard_prn == o.content_guard_prn &&
|
|
266
|
-
|
|
269
|
+
repository_version == o.repository_version &&
|
|
270
|
+
pulp_created == o.pulp_created &&
|
|
267
271
|
content_guard == o.content_guard &&
|
|
268
|
-
hidden == o.hidden &&
|
|
269
|
-
pulp_labels == o.pulp_labels &&
|
|
270
|
-
pulp_last_updated == o.pulp_last_updated &&
|
|
271
|
-
no_content_change_since == o.no_content_change_since &&
|
|
272
272
|
registry_path == o.registry_path &&
|
|
273
273
|
remote == o.remote &&
|
|
274
274
|
namespace == o.namespace &&
|
|
@@ -285,7 +285,7 @@ module PulpContainerClient
|
|
|
285
285
|
# Calculates hash code according to all attributes.
|
|
286
286
|
# @return [Integer] Hash code
|
|
287
287
|
def hash
|
|
288
|
-
[
|
|
288
|
+
[hidden, base_path, prn, pulp_last_updated, pulp_labels, pulp_href, name, repository, no_content_change_since, content_guard_prn, repository_version, pulp_created, content_guard, registry_path, remote, namespace, private, description].hash
|
|
289
289
|
end
|
|
290
290
|
|
|
291
291
|
# Builds the object from hash
|