pulpcore_client 3.46.0 → 3.48.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/docs/AccessPolicyResponse.md +2 -0
- data/docs/ArtifactDistributionResponse.md +10 -8
- data/docs/ArtifactResponse.md +2 -0
- data/docs/CompositeContentGuardResponse.md +2 -0
- data/docs/ContentGuardResponse.md +2 -0
- data/docs/ContentRedirectContentGuardResponse.md +2 -0
- data/docs/DistributionResponse.md +2 -0
- data/docs/DomainResponse.md +2 -0
- data/docs/FilesystemExportResponse.md +2 -0
- data/docs/FilesystemExporterResponse.md +2 -0
- data/docs/GroupRoleResponse.md +2 -0
- data/docs/HeaderContentGuardResponse.md +2 -0
- data/docs/ImportResponse.md +2 -0
- data/docs/MinimalTaskResponse.md +6 -2
- data/docs/MultipleArtifactContentResponse.md +2 -0
- data/docs/PublicationResponse.md +2 -0
- data/docs/PulpExportResponse.md +2 -0
- data/docs/PulpExporterResponse.md +2 -0
- data/docs/PulpImporterResponse.md +2 -0
- data/docs/RBACContentGuardResponse.md +2 -0
- data/docs/RemoteResponse.md +2 -2
- data/docs/RemoteResponseHiddenFields.md +2 -2
- data/docs/RepositoryResponse.md +2 -0
- data/docs/RepositoryVersionResponse.md +2 -0
- data/docs/RoleResponse.md +2 -0
- data/docs/SigningServiceResponse.md +2 -0
- data/docs/TaskResponse.md +6 -2
- data/docs/TaskScheduleResponse.md +2 -0
- data/docs/TasksApi.md +2 -2
- data/docs/UploadDetailResponse.md +2 -0
- data/docs/UploadResponse.md +2 -0
- data/docs/UpstreamPulpResponse.md +2 -2
- data/docs/UserRoleResponse.md +2 -0
- data/docs/WorkerResponse.md +2 -0
- data/lib/pulpcore_client/api/tasks_api.rb +3 -3
- data/lib/pulpcore_client/models/access_policy_response.rb +11 -1
- data/lib/pulpcore_client/models/artifact_distribution_response.rb +47 -37
- data/lib/pulpcore_client/models/artifact_response.rb +11 -1
- data/lib/pulpcore_client/models/composite_content_guard_response.rb +11 -1
- data/lib/pulpcore_client/models/content_guard_response.rb +11 -1
- data/lib/pulpcore_client/models/content_redirect_content_guard_response.rb +11 -1
- data/lib/pulpcore_client/models/distribution_response.rb +11 -1
- data/lib/pulpcore_client/models/domain_response.rb +11 -1
- data/lib/pulpcore_client/models/filesystem_export_response.rb +11 -1
- data/lib/pulpcore_client/models/filesystem_exporter_response.rb +11 -1
- data/lib/pulpcore_client/models/group_role_response.rb +11 -1
- data/lib/pulpcore_client/models/header_content_guard_response.rb +11 -1
- data/lib/pulpcore_client/models/import_response.rb +11 -1
- data/lib/pulpcore_client/models/minimal_task_response.rb +23 -3
- data/lib/pulpcore_client/models/multiple_artifact_content_response.rb +11 -1
- data/lib/pulpcore_client/models/publication_response.rb +11 -1
- data/lib/pulpcore_client/models/pulp_export_response.rb +11 -1
- data/lib/pulpcore_client/models/pulp_exporter_response.rb +11 -1
- data/lib/pulpcore_client/models/pulp_importer_response.rb +11 -1
- data/lib/pulpcore_client/models/rbac_content_guard_response.rb +11 -1
- data/lib/pulpcore_client/models/remote_response.rb +11 -11
- data/lib/pulpcore_client/models/remote_response_hidden_fields.rb +10 -0
- data/lib/pulpcore_client/models/repository_response.rb +11 -1
- data/lib/pulpcore_client/models/repository_version_response.rb +11 -1
- data/lib/pulpcore_client/models/role_response.rb +11 -1
- data/lib/pulpcore_client/models/signing_service_response.rb +11 -1
- data/lib/pulpcore_client/models/task_response.rb +23 -3
- data/lib/pulpcore_client/models/task_schedule_response.rb +11 -1
- data/lib/pulpcore_client/models/upload_detail_response.rb +11 -1
- data/lib/pulpcore_client/models/upload_response.rb +11 -1
- data/lib/pulpcore_client/models/upstream_pulp_response.rb +11 -11
- data/lib/pulpcore_client/models/user_role_response.rb +11 -1
- data/lib/pulpcore_client/models/worker_response.rb +11 -1
- data/lib/pulpcore_client/version.rb +1 -1
- data/spec/api/tasks_api_spec.rb +1 -1
- data/spec/models/access_policy_response_spec.rb +6 -0
- data/spec/models/artifact_distribution_response_spec.rb +12 -6
- data/spec/models/artifact_response_spec.rb +6 -0
- data/spec/models/composite_content_guard_response_spec.rb +6 -0
- data/spec/models/content_guard_response_spec.rb +6 -0
- data/spec/models/content_redirect_content_guard_response_spec.rb +6 -0
- data/spec/models/distribution_response_spec.rb +6 -0
- data/spec/models/domain_response_spec.rb +6 -0
- data/spec/models/filesystem_export_response_spec.rb +6 -0
- data/spec/models/filesystem_exporter_response_spec.rb +6 -0
- data/spec/models/group_role_response_spec.rb +6 -0
- data/spec/models/header_content_guard_response_spec.rb +6 -0
- data/spec/models/import_response_spec.rb +6 -0
- data/spec/models/minimal_task_response_spec.rb +12 -0
- data/spec/models/multiple_artifact_content_response_spec.rb +6 -0
- data/spec/models/publication_response_spec.rb +6 -0
- data/spec/models/pulp_export_response_spec.rb +6 -0
- data/spec/models/pulp_exporter_response_spec.rb +6 -0
- data/spec/models/pulp_importer_response_spec.rb +6 -0
- data/spec/models/rbac_content_guard_response_spec.rb +6 -0
- data/spec/models/remote_response_spec.rb +6 -6
- data/spec/models/repository_response_spec.rb +6 -0
- data/spec/models/repository_version_response_spec.rb +6 -0
- data/spec/models/role_response_spec.rb +6 -0
- data/spec/models/signing_service_response_spec.rb +6 -0
- data/spec/models/task_response_spec.rb +12 -0
- data/spec/models/task_schedule_response_spec.rb +6 -0
- data/spec/models/upload_detail_response_spec.rb +6 -0
- data/spec/models/upload_response_spec.rb +6 -0
- data/spec/models/upstream_pulp_response_spec.rb +6 -6
- data/spec/models/user_role_response_spec.rb +6 -0
- data/spec/models/worker_response_spec.rb +6 -0
- metadata +2 -2
data/docs/UploadResponse.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
|
**size** | **Integer** | The size of the upload in bytes. |
|
10
11
|
**completed** | **DateTime** | Timestamp when upload is committed. | [optional] [readonly]
|
11
12
|
|
@@ -16,6 +17,7 @@ require 'PulpcoreClient'
|
|
16
17
|
|
17
18
|
instance = PulpcoreClient::UploadResponse.new(pulp_href: null,
|
18
19
|
pulp_created: null,
|
20
|
+
pulp_last_updated: null,
|
19
21
|
size: null,
|
20
22
|
completed: null)
|
21
23
|
```
|
@@ -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 most recent update of the remote. | [optional] [readonly]
|
9
10
|
**name** | **String** | A unique name for this Pulp server. |
|
10
11
|
**base_url** | **String** | The transport, hostname, and an optional port of the Pulp server. e.g. https://example.com |
|
11
12
|
**api_root** | **String** | The API root. Defaults to '/pulp/'. |
|
@@ -13,7 +14,6 @@ Name | Type | Description | Notes
|
|
13
14
|
**ca_cert** | **String** | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [optional]
|
14
15
|
**client_cert** | **String** | A PEM encoded client certificate used for authentication. | [optional]
|
15
16
|
**tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional]
|
16
|
-
**pulp_last_updated** | **DateTime** | Timestamp of the most recent update of the remote. | [optional] [readonly]
|
17
17
|
**hidden_fields** | [**Array<RemoteResponseHiddenFields>**](RemoteResponseHiddenFields.md) | List of hidden (write only) fields | [optional] [readonly]
|
18
18
|
**pulp_label_select** | **String** | One or more comma separated labels that will be used to filter distributions on the upstream Pulp. E.g. \"foo=bar,key=val\" or \"foo,key\" | [optional]
|
19
19
|
|
@@ -24,6 +24,7 @@ require 'PulpcoreClient'
|
|
24
24
|
|
25
25
|
instance = PulpcoreClient::UpstreamPulpResponse.new(pulp_href: null,
|
26
26
|
pulp_created: null,
|
27
|
+
pulp_last_updated: null,
|
27
28
|
name: null,
|
28
29
|
base_url: null,
|
29
30
|
api_root: null,
|
@@ -31,7 +32,6 @@ instance = PulpcoreClient::UpstreamPulpResponse.new(pulp_href: null,
|
|
31
32
|
ca_cert: null,
|
32
33
|
client_cert: null,
|
33
34
|
tls_validation: null,
|
34
|
-
pulp_last_updated: null,
|
35
35
|
hidden_fields: null,
|
36
36
|
pulp_label_select: null)
|
37
37
|
```
|
data/docs/UserRoleResponse.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
|
**role** | **String** | |
|
10
11
|
**content_object** | **String** | pulp_href of the object for which role permissions should be asserted. If set to 'null', permissions will act on either domain or model-level. |
|
11
12
|
**description** | **String** | | [optional] [readonly]
|
@@ -19,6 +20,7 @@ require 'PulpcoreClient'
|
|
19
20
|
|
20
21
|
instance = PulpcoreClient::UserRoleResponse.new(pulp_href: null,
|
21
22
|
pulp_created: null,
|
23
|
+
pulp_last_updated: null,
|
22
24
|
role: null,
|
23
25
|
content_object: null,
|
24
26
|
description: null,
|
data/docs/WorkerResponse.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
|
**name** | **String** | The name of the worker. | [optional] [readonly]
|
10
11
|
**last_heartbeat** | **DateTime** | Timestamp of the last time the worker talked to the service. | [optional] [readonly]
|
11
12
|
**versions** | **Hash<String, String>** | Versions of the components installed. | [optional] [readonly]
|
@@ -18,6 +19,7 @@ require 'PulpcoreClient'
|
|
18
19
|
|
19
20
|
instance = PulpcoreClient::WorkerResponse.new(pulp_href: null,
|
20
21
|
pulp_created: null,
|
22
|
+
pulp_last_updated: null,
|
21
23
|
name: null,
|
22
24
|
last_heartbeat: null,
|
23
25
|
versions: null,
|
@@ -170,7 +170,7 @@ module PulpcoreClient
|
|
170
170
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
171
171
|
# @option opts [String] :name__ne Filter results where name not equal to value
|
172
172
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
173
|
-
# @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) * `state` - State * `-state` - State (descending) * `name` - Name * `-name` - Name (descending) * `logging_cid` - Logging cid * `-logging_cid` - Logging cid (descending) * `started_at` - Started at * `-started_at` - Started at (descending) * `finished_at` - Finished at * `-finished_at` - Finished at (descending) * `error` - Error * `-error` - Error (descending) * `enc_args` - Enc args * `-enc_args` - Enc args (descending) * `enc_kwargs` - Enc kwargs * `-enc_kwargs` - Enc kwargs (descending) * `reserved_resources_record` - Reserved resources record * `-reserved_resources_record` - Reserved resources record (descending) * `versions` - Versions * `-versions` - Versions (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
173
|
+
# @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) * `state` - State * `-state` - State (descending) * `name` - Name * `-name` - Name (descending) * `logging_cid` - Logging cid * `-logging_cid` - Logging cid (descending) * `unblocked_at` - Unblocked at * `-unblocked_at` - Unblocked at (descending) * `started_at` - Started at * `-started_at` - Started at (descending) * `finished_at` - Finished at * `-finished_at` - Finished at (descending) * `error` - Error * `-error` - Error (descending) * `enc_args` - Enc args * `-enc_args` - Enc args (descending) * `enc_kwargs` - Enc kwargs * `-enc_kwargs` - Enc kwargs (descending) * `reserved_resources_record` - Reserved resources record * `-reserved_resources_record` - Reserved resources record (descending) * `versions` - Versions * `-versions` - Versions (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
174
174
|
# @option opts [String] :parent_task Filter results where parent_task matches value
|
175
175
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
176
176
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
@@ -222,7 +222,7 @@ module PulpcoreClient
|
|
222
222
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
223
223
|
# @option opts [String] :name__ne Filter results where name not equal to value
|
224
224
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
225
|
-
# @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) * `state` - State * `-state` - State (descending) * `name` - Name * `-name` - Name (descending) * `logging_cid` - Logging cid * `-logging_cid` - Logging cid (descending) * `started_at` - Started at * `-started_at` - Started at (descending) * `finished_at` - Finished at * `-finished_at` - Finished at (descending) * `error` - Error * `-error` - Error (descending) * `enc_args` - Enc args * `-enc_args` - Enc args (descending) * `enc_kwargs` - Enc kwargs * `-enc_kwargs` - Enc kwargs (descending) * `reserved_resources_record` - Reserved resources record * `-reserved_resources_record` - Reserved resources record (descending) * `versions` - Versions * `-versions` - Versions (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
225
|
+
# @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) * `state` - State * `-state` - State (descending) * `name` - Name * `-name` - Name (descending) * `logging_cid` - Logging cid * `-logging_cid` - Logging cid (descending) * `unblocked_at` - Unblocked at * `-unblocked_at` - Unblocked at (descending) * `started_at` - Started at * `-started_at` - Started at (descending) * `finished_at` - Finished at * `-finished_at` - Finished at (descending) * `error` - Error * `-error` - Error (descending) * `enc_args` - Enc args * `-enc_args` - Enc args (descending) * `enc_kwargs` - Enc kwargs * `-enc_kwargs` - Enc kwargs (descending) * `reserved_resources_record` - Reserved resources record * `-reserved_resources_record` - Reserved resources record (descending) * `versions` - Versions * `-versions` - Versions (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
226
226
|
# @option opts [String] :parent_task Filter results where parent_task matches value
|
227
227
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
228
228
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
@@ -252,7 +252,7 @@ module PulpcoreClient
|
|
252
252
|
if @api_client.config.debugging
|
253
253
|
@api_client.config.logger.debug 'Calling API: TasksApi.list ...'
|
254
254
|
end
|
255
|
-
allowable_values = ["-enc_args", "-enc_kwargs", "-error", "-finished_at", "-logging_cid", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-reserved_resources_record", "-started_at", "-state", "-versions", "enc_args", "enc_kwargs", "error", "finished_at", "logging_cid", "name", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "reserved_resources_record", "started_at", "state", "versions"]
|
255
|
+
allowable_values = ["-enc_args", "-enc_kwargs", "-error", "-finished_at", "-logging_cid", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-reserved_resources_record", "-started_at", "-state", "-unblocked_at", "-versions", "enc_args", "enc_kwargs", "error", "finished_at", "logging_cid", "name", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "reserved_resources_record", "started_at", "state", "unblocked_at", "versions"]
|
256
256
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
257
257
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
258
258
|
end
|
@@ -20,6 +20,9 @@ module PulpcoreClient
|
|
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
|
# List of callables that define the new permissions to be created for new objects.This is deprecated. Use `creation_hooks` instead.
|
24
27
|
attr_accessor :permissions_assignment
|
25
28
|
|
@@ -43,6 +46,7 @@ module PulpcoreClient
|
|
43
46
|
{
|
44
47
|
:'pulp_href' => :'pulp_href',
|
45
48
|
:'pulp_created' => :'pulp_created',
|
49
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
46
50
|
:'permissions_assignment' => :'permissions_assignment',
|
47
51
|
:'creation_hooks' => :'creation_hooks',
|
48
52
|
:'statements' => :'statements',
|
@@ -57,6 +61,7 @@ module PulpcoreClient
|
|
57
61
|
{
|
58
62
|
:'pulp_href' => :'String',
|
59
63
|
:'pulp_created' => :'DateTime',
|
64
|
+
:'pulp_last_updated' => :'DateTime',
|
60
65
|
:'permissions_assignment' => :'Array<Object>',
|
61
66
|
:'creation_hooks' => :'Array<Object>',
|
62
67
|
:'statements' => :'Array<Object>',
|
@@ -95,6 +100,10 @@ module PulpcoreClient
|
|
95
100
|
self.pulp_created = attributes[:'pulp_created']
|
96
101
|
end
|
97
102
|
|
103
|
+
if attributes.key?(:'pulp_last_updated')
|
104
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
105
|
+
end
|
106
|
+
|
98
107
|
if attributes.key?(:'permissions_assignment')
|
99
108
|
if (value = attributes[:'permissions_assignment']).is_a?(Array)
|
100
109
|
self.permissions_assignment = value
|
@@ -151,6 +160,7 @@ module PulpcoreClient
|
|
151
160
|
self.class == o.class &&
|
152
161
|
pulp_href == o.pulp_href &&
|
153
162
|
pulp_created == o.pulp_created &&
|
163
|
+
pulp_last_updated == o.pulp_last_updated &&
|
154
164
|
permissions_assignment == o.permissions_assignment &&
|
155
165
|
creation_hooks == o.creation_hooks &&
|
156
166
|
statements == o.statements &&
|
@@ -168,7 +178,7 @@ module PulpcoreClient
|
|
168
178
|
# Calculates hash code according to all attributes.
|
169
179
|
# @return [Integer] Hash code
|
170
180
|
def hash
|
171
|
-
[pulp_href, pulp_created, permissions_assignment, creation_hooks, statements, viewset_name, customized, queryset_scoping].hash
|
181
|
+
[pulp_href, pulp_created, pulp_last_updated, permissions_assignment, creation_hooks, statements, viewset_name, customized, queryset_scoping].hash
|
172
182
|
end
|
173
183
|
|
174
184
|
# Builds the object from hash
|
@@ -15,53 +15,58 @@ require 'date'
|
|
15
15
|
module PulpcoreClient
|
16
16
|
# A serializer for ArtifactDistribution.
|
17
17
|
class ArtifactDistributionResponse
|
18
|
-
# Whether this distribution should be shown in the content app.
|
19
|
-
attr_accessor :hidden
|
20
|
-
|
21
18
|
# Timestamp of creation.
|
22
19
|
attr_accessor :pulp_created
|
23
20
|
|
24
|
-
#
|
25
|
-
attr_accessor :
|
21
|
+
# 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.
|
22
|
+
attr_accessor :pulp_last_updated
|
26
23
|
|
27
24
|
# An optional content-guard.
|
28
25
|
attr_accessor :content_guard
|
29
26
|
|
27
|
+
attr_accessor :pulp_href
|
28
|
+
|
29
|
+
# Whether this distribution should be shown in the content app.
|
30
|
+
attr_accessor :hidden
|
31
|
+
|
30
32
|
# The URL for accessing the publication as defined by this distribution.
|
31
33
|
attr_accessor :base_url
|
32
34
|
|
33
35
|
# A unique name. Ex, `rawhide` and `stable`.
|
34
36
|
attr_accessor :name
|
35
37
|
|
36
|
-
attr_accessor :pulp_href
|
37
|
-
|
38
38
|
attr_accessor :pulp_labels
|
39
39
|
|
40
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
41
|
+
attr_accessor :base_path
|
42
|
+
|
40
43
|
# Attribute mapping from ruby-style variable name to JSON key.
|
41
44
|
def self.attribute_map
|
42
45
|
{
|
43
|
-
:'hidden' => :'hidden',
|
44
46
|
:'pulp_created' => :'pulp_created',
|
45
|
-
:'
|
47
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
46
48
|
:'content_guard' => :'content_guard',
|
49
|
+
:'pulp_href' => :'pulp_href',
|
50
|
+
:'hidden' => :'hidden',
|
47
51
|
:'base_url' => :'base_url',
|
48
52
|
:'name' => :'name',
|
49
|
-
:'
|
50
|
-
:'
|
53
|
+
:'pulp_labels' => :'pulp_labels',
|
54
|
+
:'base_path' => :'base_path'
|
51
55
|
}
|
52
56
|
end
|
53
57
|
|
54
58
|
# Attribute type mapping.
|
55
59
|
def self.openapi_types
|
56
60
|
{
|
57
|
-
:'hidden' => :'Boolean',
|
58
61
|
:'pulp_created' => :'DateTime',
|
59
|
-
:'
|
62
|
+
:'pulp_last_updated' => :'DateTime',
|
60
63
|
:'content_guard' => :'String',
|
64
|
+
:'pulp_href' => :'String',
|
65
|
+
:'hidden' => :'Boolean',
|
61
66
|
:'base_url' => :'String',
|
62
67
|
:'name' => :'String',
|
63
|
-
:'
|
64
|
-
:'
|
68
|
+
:'pulp_labels' => :'Hash<String, String>',
|
69
|
+
:'base_path' => :'String'
|
65
70
|
}
|
66
71
|
end
|
67
72
|
|
@@ -87,24 +92,28 @@ module PulpcoreClient
|
|
87
92
|
h[k.to_sym] = v
|
88
93
|
}
|
89
94
|
|
90
|
-
if attributes.key?(:'hidden')
|
91
|
-
self.hidden = attributes[:'hidden']
|
92
|
-
else
|
93
|
-
self.hidden = false
|
94
|
-
end
|
95
|
-
|
96
95
|
if attributes.key?(:'pulp_created')
|
97
96
|
self.pulp_created = attributes[:'pulp_created']
|
98
97
|
end
|
99
98
|
|
100
|
-
if attributes.key?(:'
|
101
|
-
self.
|
99
|
+
if attributes.key?(:'pulp_last_updated')
|
100
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
102
101
|
end
|
103
102
|
|
104
103
|
if attributes.key?(:'content_guard')
|
105
104
|
self.content_guard = attributes[:'content_guard']
|
106
105
|
end
|
107
106
|
|
107
|
+
if attributes.key?(:'pulp_href')
|
108
|
+
self.pulp_href = attributes[:'pulp_href']
|
109
|
+
end
|
110
|
+
|
111
|
+
if attributes.key?(:'hidden')
|
112
|
+
self.hidden = attributes[:'hidden']
|
113
|
+
else
|
114
|
+
self.hidden = false
|
115
|
+
end
|
116
|
+
|
108
117
|
if attributes.key?(:'base_url')
|
109
118
|
self.base_url = attributes[:'base_url']
|
110
119
|
end
|
@@ -113,37 +122,37 @@ module PulpcoreClient
|
|
113
122
|
self.name = attributes[:'name']
|
114
123
|
end
|
115
124
|
|
116
|
-
if attributes.key?(:'pulp_href')
|
117
|
-
self.pulp_href = attributes[:'pulp_href']
|
118
|
-
end
|
119
|
-
|
120
125
|
if attributes.key?(:'pulp_labels')
|
121
126
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
122
127
|
self.pulp_labels = value
|
123
128
|
end
|
124
129
|
end
|
130
|
+
|
131
|
+
if attributes.key?(:'base_path')
|
132
|
+
self.base_path = attributes[:'base_path']
|
133
|
+
end
|
125
134
|
end
|
126
135
|
|
127
136
|
# Show invalid properties with the reasons. Usually used together with valid?
|
128
137
|
# @return Array for valid properties with the reasons
|
129
138
|
def list_invalid_properties
|
130
139
|
invalid_properties = Array.new
|
131
|
-
if @base_path.nil?
|
132
|
-
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
133
|
-
end
|
134
|
-
|
135
140
|
if @name.nil?
|
136
141
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
137
142
|
end
|
138
143
|
|
144
|
+
if @base_path.nil?
|
145
|
+
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
146
|
+
end
|
147
|
+
|
139
148
|
invalid_properties
|
140
149
|
end
|
141
150
|
|
142
151
|
# Check to see if the all the properties in the model are valid
|
143
152
|
# @return true if the model is valid
|
144
153
|
def valid?
|
145
|
-
return false if @base_path.nil?
|
146
154
|
return false if @name.nil?
|
155
|
+
return false if @base_path.nil?
|
147
156
|
true
|
148
157
|
end
|
149
158
|
|
@@ -152,14 +161,15 @@ module PulpcoreClient
|
|
152
161
|
def ==(o)
|
153
162
|
return true if self.equal?(o)
|
154
163
|
self.class == o.class &&
|
155
|
-
hidden == o.hidden &&
|
156
164
|
pulp_created == o.pulp_created &&
|
157
|
-
|
165
|
+
pulp_last_updated == o.pulp_last_updated &&
|
158
166
|
content_guard == o.content_guard &&
|
167
|
+
pulp_href == o.pulp_href &&
|
168
|
+
hidden == o.hidden &&
|
159
169
|
base_url == o.base_url &&
|
160
170
|
name == o.name &&
|
161
|
-
|
162
|
-
|
171
|
+
pulp_labels == o.pulp_labels &&
|
172
|
+
base_path == o.base_path
|
163
173
|
end
|
164
174
|
|
165
175
|
# @see the `==` method
|
@@ -171,7 +181,7 @@ module PulpcoreClient
|
|
171
181
|
# Calculates hash code according to all attributes.
|
172
182
|
# @return [Integer] Hash code
|
173
183
|
def hash
|
174
|
-
[
|
184
|
+
[pulp_created, pulp_last_updated, content_guard, pulp_href, hidden, base_url, name, pulp_labels, base_path].hash
|
175
185
|
end
|
176
186
|
|
177
187
|
# Builds the object from hash
|
@@ -20,6 +20,9 @@ module PulpcoreClient
|
|
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
|
# The stored file.
|
24
27
|
attr_accessor :file
|
25
28
|
|
@@ -49,6 +52,7 @@ module PulpcoreClient
|
|
49
52
|
{
|
50
53
|
:'pulp_href' => :'pulp_href',
|
51
54
|
:'pulp_created' => :'pulp_created',
|
55
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
52
56
|
:'file' => :'file',
|
53
57
|
:'size' => :'size',
|
54
58
|
:'md5' => :'md5',
|
@@ -65,6 +69,7 @@ module PulpcoreClient
|
|
65
69
|
{
|
66
70
|
:'pulp_href' => :'String',
|
67
71
|
:'pulp_created' => :'DateTime',
|
72
|
+
:'pulp_last_updated' => :'DateTime',
|
68
73
|
:'file' => :'String',
|
69
74
|
:'size' => :'Integer',
|
70
75
|
:'md5' => :'String',
|
@@ -111,6 +116,10 @@ module PulpcoreClient
|
|
111
116
|
self.pulp_created = attributes[:'pulp_created']
|
112
117
|
end
|
113
118
|
|
119
|
+
if attributes.key?(:'pulp_last_updated')
|
120
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
121
|
+
end
|
122
|
+
|
114
123
|
if attributes.key?(:'file')
|
115
124
|
self.file = attributes[:'file']
|
116
125
|
end
|
@@ -169,6 +178,7 @@ module PulpcoreClient
|
|
169
178
|
self.class == o.class &&
|
170
179
|
pulp_href == o.pulp_href &&
|
171
180
|
pulp_created == o.pulp_created &&
|
181
|
+
pulp_last_updated == o.pulp_last_updated &&
|
172
182
|
file == o.file &&
|
173
183
|
size == o.size &&
|
174
184
|
md5 == o.md5 &&
|
@@ -188,7 +198,7 @@ module PulpcoreClient
|
|
188
198
|
# Calculates hash code according to all attributes.
|
189
199
|
# @return [Integer] Hash code
|
190
200
|
def hash
|
191
|
-
[pulp_href, pulp_created, file, size, md5, sha1, sha224, sha256, sha384, sha512].hash
|
201
|
+
[pulp_href, pulp_created, pulp_last_updated, file, size, md5, sha1, sha224, sha256, sha384, sha512].hash
|
192
202
|
end
|
193
203
|
|
194
204
|
# Builds the object from hash
|
@@ -20,6 +20,9 @@ module PulpcoreClient
|
|
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
|
# The unique name.
|
24
27
|
attr_accessor :name
|
25
28
|
|
@@ -34,6 +37,7 @@ module PulpcoreClient
|
|
34
37
|
{
|
35
38
|
:'pulp_href' => :'pulp_href',
|
36
39
|
:'pulp_created' => :'pulp_created',
|
40
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
37
41
|
:'name' => :'name',
|
38
42
|
:'description' => :'description',
|
39
43
|
:'guards' => :'guards'
|
@@ -45,6 +49,7 @@ module PulpcoreClient
|
|
45
49
|
{
|
46
50
|
:'pulp_href' => :'String',
|
47
51
|
:'pulp_created' => :'DateTime',
|
52
|
+
:'pulp_last_updated' => :'DateTime',
|
48
53
|
:'name' => :'String',
|
49
54
|
:'description' => :'String',
|
50
55
|
:'guards' => :'Array<String>'
|
@@ -81,6 +86,10 @@ module PulpcoreClient
|
|
81
86
|
self.pulp_created = attributes[:'pulp_created']
|
82
87
|
end
|
83
88
|
|
89
|
+
if attributes.key?(:'pulp_last_updated')
|
90
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
91
|
+
end
|
92
|
+
|
84
93
|
if attributes.key?(:'name')
|
85
94
|
self.name = attributes[:'name']
|
86
95
|
end
|
@@ -121,6 +130,7 @@ module PulpcoreClient
|
|
121
130
|
self.class == o.class &&
|
122
131
|
pulp_href == o.pulp_href &&
|
123
132
|
pulp_created == o.pulp_created &&
|
133
|
+
pulp_last_updated == o.pulp_last_updated &&
|
124
134
|
name == o.name &&
|
125
135
|
description == o.description &&
|
126
136
|
guards == o.guards
|
@@ -135,7 +145,7 @@ module PulpcoreClient
|
|
135
145
|
# Calculates hash code according to all attributes.
|
136
146
|
# @return [Integer] Hash code
|
137
147
|
def hash
|
138
|
-
[pulp_href, pulp_created, name, description, guards].hash
|
148
|
+
[pulp_href, pulp_created, pulp_last_updated, name, description, guards].hash
|
139
149
|
end
|
140
150
|
|
141
151
|
# Builds the object from hash
|
@@ -20,6 +20,9 @@ module PulpcoreClient
|
|
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
|
# The unique name.
|
24
27
|
attr_accessor :name
|
25
28
|
|
@@ -31,6 +34,7 @@ module PulpcoreClient
|
|
31
34
|
{
|
32
35
|
:'pulp_href' => :'pulp_href',
|
33
36
|
:'pulp_created' => :'pulp_created',
|
37
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
34
38
|
:'name' => :'name',
|
35
39
|
:'description' => :'description'
|
36
40
|
}
|
@@ -41,6 +45,7 @@ module PulpcoreClient
|
|
41
45
|
{
|
42
46
|
:'pulp_href' => :'String',
|
43
47
|
:'pulp_created' => :'DateTime',
|
48
|
+
:'pulp_last_updated' => :'DateTime',
|
44
49
|
:'name' => :'String',
|
45
50
|
:'description' => :'String'
|
46
51
|
}
|
@@ -76,6 +81,10 @@ module PulpcoreClient
|
|
76
81
|
self.pulp_created = attributes[:'pulp_created']
|
77
82
|
end
|
78
83
|
|
84
|
+
if attributes.key?(:'pulp_last_updated')
|
85
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
86
|
+
end
|
87
|
+
|
79
88
|
if attributes.key?(:'name')
|
80
89
|
self.name = attributes[:'name']
|
81
90
|
end
|
@@ -110,6 +119,7 @@ module PulpcoreClient
|
|
110
119
|
self.class == o.class &&
|
111
120
|
pulp_href == o.pulp_href &&
|
112
121
|
pulp_created == o.pulp_created &&
|
122
|
+
pulp_last_updated == o.pulp_last_updated &&
|
113
123
|
name == o.name &&
|
114
124
|
description == o.description
|
115
125
|
end
|
@@ -123,7 +133,7 @@ module PulpcoreClient
|
|
123
133
|
# Calculates hash code according to all attributes.
|
124
134
|
# @return [Integer] Hash code
|
125
135
|
def hash
|
126
|
-
[pulp_href, pulp_created, name, description].hash
|
136
|
+
[pulp_href, pulp_created, pulp_last_updated, name, description].hash
|
127
137
|
end
|
128
138
|
|
129
139
|
# Builds the object from hash
|
@@ -20,6 +20,9 @@ module PulpcoreClient
|
|
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
|
# The unique name.
|
24
27
|
attr_accessor :name
|
25
28
|
|
@@ -31,6 +34,7 @@ module PulpcoreClient
|
|
31
34
|
{
|
32
35
|
:'pulp_href' => :'pulp_href',
|
33
36
|
:'pulp_created' => :'pulp_created',
|
37
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
34
38
|
:'name' => :'name',
|
35
39
|
:'description' => :'description'
|
36
40
|
}
|
@@ -41,6 +45,7 @@ module PulpcoreClient
|
|
41
45
|
{
|
42
46
|
:'pulp_href' => :'String',
|
43
47
|
:'pulp_created' => :'DateTime',
|
48
|
+
:'pulp_last_updated' => :'DateTime',
|
44
49
|
:'name' => :'String',
|
45
50
|
:'description' => :'String'
|
46
51
|
}
|
@@ -76,6 +81,10 @@ module PulpcoreClient
|
|
76
81
|
self.pulp_created = attributes[:'pulp_created']
|
77
82
|
end
|
78
83
|
|
84
|
+
if attributes.key?(:'pulp_last_updated')
|
85
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
86
|
+
end
|
87
|
+
|
79
88
|
if attributes.key?(:'name')
|
80
89
|
self.name = attributes[:'name']
|
81
90
|
end
|
@@ -110,6 +119,7 @@ module PulpcoreClient
|
|
110
119
|
self.class == o.class &&
|
111
120
|
pulp_href == o.pulp_href &&
|
112
121
|
pulp_created == o.pulp_created &&
|
122
|
+
pulp_last_updated == o.pulp_last_updated &&
|
113
123
|
name == o.name &&
|
114
124
|
description == o.description
|
115
125
|
end
|
@@ -123,7 +133,7 @@ module PulpcoreClient
|
|
123
133
|
# Calculates hash code according to all attributes.
|
124
134
|
# @return [Integer] Hash code
|
125
135
|
def hash
|
126
|
-
[pulp_href, pulp_created, name, description].hash
|
136
|
+
[pulp_href, pulp_created, pulp_last_updated, name, description].hash
|
127
137
|
end
|
128
138
|
|
129
139
|
# Builds the object from hash
|
@@ -20,6 +20,9 @@ module PulpcoreClient
|
|
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
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
24
27
|
attr_accessor :base_path
|
25
28
|
|
@@ -45,6 +48,7 @@ module PulpcoreClient
|
|
45
48
|
{
|
46
49
|
:'pulp_href' => :'pulp_href',
|
47
50
|
:'pulp_created' => :'pulp_created',
|
51
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
48
52
|
:'base_path' => :'base_path',
|
49
53
|
:'base_url' => :'base_url',
|
50
54
|
:'content_guard' => :'content_guard',
|
@@ -60,6 +64,7 @@ module PulpcoreClient
|
|
60
64
|
{
|
61
65
|
:'pulp_href' => :'String',
|
62
66
|
:'pulp_created' => :'DateTime',
|
67
|
+
:'pulp_last_updated' => :'DateTime',
|
63
68
|
:'base_path' => :'String',
|
64
69
|
:'base_url' => :'String',
|
65
70
|
:'content_guard' => :'String',
|
@@ -101,6 +106,10 @@ module PulpcoreClient
|
|
101
106
|
self.pulp_created = attributes[:'pulp_created']
|
102
107
|
end
|
103
108
|
|
109
|
+
if attributes.key?(:'pulp_last_updated')
|
110
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
111
|
+
end
|
112
|
+
|
104
113
|
if attributes.key?(:'base_path')
|
105
114
|
self.base_path = attributes[:'base_path']
|
106
115
|
end
|
@@ -164,6 +173,7 @@ module PulpcoreClient
|
|
164
173
|
self.class == o.class &&
|
165
174
|
pulp_href == o.pulp_href &&
|
166
175
|
pulp_created == o.pulp_created &&
|
176
|
+
pulp_last_updated == o.pulp_last_updated &&
|
167
177
|
base_path == o.base_path &&
|
168
178
|
base_url == o.base_url &&
|
169
179
|
content_guard == o.content_guard &&
|
@@ -182,7 +192,7 @@ module PulpcoreClient
|
|
182
192
|
# Calculates hash code according to all attributes.
|
183
193
|
# @return [Integer] Hash code
|
184
194
|
def hash
|
185
|
-
[pulp_href, pulp_created, base_path, base_url, content_guard, hidden, pulp_labels, name, repository].hash
|
195
|
+
[pulp_href, pulp_created, pulp_last_updated, base_path, base_url, content_guard, hidden, pulp_labels, name, repository].hash
|
186
196
|
end
|
187
197
|
|
188
198
|
# Builds the object from hash
|