pulpcore_client 3.65.0 → 3.67.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 +68 -4
- data/docs/AccessPoliciesApi.md +4 -4
- data/docs/ArtifactDistributionResponse.md +12 -12
- data/docs/ContentApi.md +4 -4
- data/docs/ContentOpenpgpPublickeyApi.md +212 -0
- data/docs/ContentOpenpgpPublicsubkeyApi.md +150 -0
- data/docs/ContentOpenpgpSignatureApi.md +150 -0
- data/docs/ContentOpenpgpUserattributeApi.md +150 -0
- data/docs/ContentOpenpgpUseridApi.md +166 -0
- data/docs/DistributionsApi.md +4 -4
- data/docs/DistributionsOpenpgpApi.md +478 -0
- data/docs/FilesystemExportResponse.md +1 -1
- data/docs/ImportResponse.md +1 -1
- data/docs/NestedOpenPGPPublicSubkey.md +19 -0
- data/docs/NestedOpenPGPPublicSubkeyResponse.md +21 -0
- data/docs/NestedOpenPGPSignature.md +27 -0
- data/docs/NestedOpenPGPSignatureResponse.md +29 -0
- data/docs/NestedOpenPGPUserAttribute.md +17 -0
- data/docs/NestedOpenPGPUserAttributeResponse.md +19 -0
- data/docs/NestedOpenPGPUserID.md +17 -0
- data/docs/NestedOpenPGPUserIDResponse.md +19 -0
- data/docs/OpenPGPDistribution.md +29 -0
- data/docs/OpenPGPDistributionResponse.md +41 -0
- data/docs/OpenPGPKeyring.md +25 -0
- data/docs/OpenPGPKeyringResponse.md +37 -0
- data/docs/OpenPGPPublicKey.md +23 -0
- data/docs/OpenPGPPublicKeyResponse.md +33 -0
- data/docs/OpenPGPPublicSubkeyResponse.md +31 -0
- data/docs/OpenPGPSignatureResponse.md +39 -0
- data/docs/OpenPGPUserAttributeResponse.md +29 -0
- data/docs/OpenPGPUserIDResponse.md +29 -0
- data/docs/PaginatedOpenPGPDistributionResponseList.md +23 -0
- data/docs/PaginatedOpenPGPKeyringResponseList.md +23 -0
- data/docs/PaginatedOpenPGPPublicKeyResponseList.md +23 -0
- data/docs/PaginatedOpenPGPPublicSubkeyResponseList.md +23 -0
- data/docs/PaginatedOpenPGPSignatureResponseList.md +23 -0
- data/docs/PaginatedOpenPGPUserAttributeResponseList.md +23 -0
- data/docs/PaginatedOpenPGPUserIDResponseList.md +23 -0
- data/docs/PatchedOpenPGPDistribution.md +29 -0
- data/docs/PatchedOpenPGPKeyring.md +25 -0
- data/docs/PulpExportResponse.md +3 -3
- data/docs/RepositoriesApi.md +4 -4
- data/docs/RepositoriesOpenpgpKeyringApi.md +802 -0
- data/docs/RepositoryAddRemoveContent.md +21 -0
- data/docs/SetLabel.md +19 -0
- data/docs/SetLabelResponse.md +19 -0
- data/docs/TaskResponse.md +1 -1
- data/docs/TasksApi.md +2 -2
- data/docs/UnsetLabel.md +17 -0
- data/docs/UnsetLabelResponse.md +19 -0
- data/lib/pulpcore_client/api/access_policies_api.rb +8 -8
- data/lib/pulpcore_client/api/content_api.rb +6 -6
- data/lib/pulpcore_client/api/content_openpgp_publickey_api.rb +266 -0
- data/lib/pulpcore_client/api/content_openpgp_publicsubkey_api.rb +192 -0
- data/lib/pulpcore_client/api/content_openpgp_signature_api.rb +192 -0
- data/lib/pulpcore_client/api/content_openpgp_userattribute_api.rb +192 -0
- data/lib/pulpcore_client/api/content_openpgp_userid_api.rb +216 -0
- data/lib/pulpcore_client/api/distributions_api.rb +6 -6
- data/lib/pulpcore_client/api/distributions_openpgp_api.rb +592 -0
- data/lib/pulpcore_client/api/repositories_api.rb +6 -6
- data/lib/pulpcore_client/api/repositories_openpgp_keyring_api.rb +992 -0
- data/lib/pulpcore_client/api/tasks_api.rb +3 -3
- data/lib/pulpcore_client/models/artifact_distribution_response.rb +58 -58
- data/lib/pulpcore_client/models/filesystem_export_response.rb +1 -1
- data/lib/pulpcore_client/models/import_response.rb +1 -1
- data/lib/pulpcore_client/models/nested_open_pgp_public_subkey.rb +254 -0
- data/lib/pulpcore_client/models/nested_open_pgp_public_subkey_response.rb +256 -0
- data/lib/pulpcore_client/models/nested_open_pgp_signature.rb +305 -0
- data/lib/pulpcore_client/models/nested_open_pgp_signature_response.rb +290 -0
- data/lib/pulpcore_client/models/nested_open_pgp_user_attribute.rb +240 -0
- data/lib/pulpcore_client/models/nested_open_pgp_user_attribute_response.rb +242 -0
- data/lib/pulpcore_client/models/nested_open_pgp_user_id.rb +231 -0
- data/lib/pulpcore_client/models/nested_open_pgp_user_id_response.rb +223 -0
- data/lib/pulpcore_client/models/open_pgp_distribution.rb +322 -0
- data/lib/pulpcore_client/models/open_pgp_distribution_response.rb +343 -0
- data/lib/pulpcore_client/models/open_pgp_keyring.rb +306 -0
- data/lib/pulpcore_client/models/open_pgp_keyring_response.rb +329 -0
- data/lib/pulpcore_client/models/open_pgp_public_key.rb +253 -0
- data/lib/pulpcore_client/models/open_pgp_public_key_response.rb +303 -0
- data/lib/pulpcore_client/models/open_pgp_public_subkey_response.rb +304 -0
- data/lib/pulpcore_client/models/open_pgp_signature_response.rb +338 -0
- data/lib/pulpcore_client/models/open_pgp_user_attribute_response.rb +290 -0
- data/lib/pulpcore_client/models/open_pgp_user_id_response.rb +271 -0
- data/lib/pulpcore_client/models/paginated_open_pgp_distribution_response_list.rb +247 -0
- data/lib/pulpcore_client/models/paginated_open_pgp_keyring_response_list.rb +247 -0
- data/lib/pulpcore_client/models/paginated_open_pgp_public_key_response_list.rb +247 -0
- data/lib/pulpcore_client/models/paginated_open_pgp_public_subkey_response_list.rb +247 -0
- data/lib/pulpcore_client/models/paginated_open_pgp_signature_response_list.rb +247 -0
- data/lib/pulpcore_client/models/paginated_open_pgp_user_attribute_response_list.rb +247 -0
- data/lib/pulpcore_client/models/paginated_open_pgp_user_id_response_list.rb +247 -0
- data/lib/pulpcore_client/models/patched_open_pgp_distribution.rb +304 -0
- data/lib/pulpcore_client/models/patched_open_pgp_keyring.rb +297 -0
- data/lib/pulpcore_client/models/pulp_export_response.rb +3 -3
- data/lib/pulpcore_client/models/repository_add_remove_content.rb +232 -0
- data/lib/pulpcore_client/models/set_label.rb +252 -0
- data/lib/pulpcore_client/models/set_label_response.rb +243 -0
- data/lib/pulpcore_client/models/task_response.rb +1 -1
- data/lib/pulpcore_client/models/unset_label.rb +242 -0
- data/lib/pulpcore_client/models/unset_label_response.rb +242 -0
- data/lib/pulpcore_client/version.rb +1 -1
- data/lib/pulpcore_client.rb +39 -0
- data/spec/api/access_policies_api_spec.rb +4 -4
- data/spec/api/content_api_spec.rb +2 -2
- data/spec/api/content_openpgp_publickey_api_spec.rb +89 -0
- data/spec/api/content_openpgp_publicsubkey_api_spec.rb +74 -0
- data/spec/api/content_openpgp_signature_api_spec.rb +74 -0
- data/spec/api/content_openpgp_userattribute_api_spec.rb +74 -0
- data/spec/api/content_openpgp_userid_api_spec.rb +82 -0
- data/spec/api/distributions_api_spec.rb +2 -2
- data/spec/api/distributions_openpgp_api_spec.rb +148 -0
- data/spec/api/repositories_api_spec.rb +2 -2
- data/spec/api/repositories_openpgp_keyring_api_spec.rb +233 -0
- data/spec/api/tasks_api_spec.rb +1 -1
- data/spec/models/artifact_distribution_response_spec.rb +10 -10
- data/spec/models/nested_open_pgp_public_subkey_response_spec.rb +53 -0
- data/spec/models/nested_open_pgp_public_subkey_spec.rb +47 -0
- data/spec/models/nested_open_pgp_signature_response_spec.rb +77 -0
- data/spec/models/nested_open_pgp_signature_spec.rb +71 -0
- data/spec/models/nested_open_pgp_user_attribute_response_spec.rb +47 -0
- data/spec/models/nested_open_pgp_user_attribute_spec.rb +41 -0
- data/spec/models/nested_open_pgp_user_id_response_spec.rb +47 -0
- data/spec/models/nested_open_pgp_user_id_spec.rb +41 -0
- data/spec/models/open_pgp_distribution_response_spec.rb +113 -0
- data/spec/models/open_pgp_distribution_spec.rb +77 -0
- data/spec/models/open_pgp_keyring_response_spec.rb +101 -0
- data/spec/models/open_pgp_keyring_spec.rb +65 -0
- data/spec/models/open_pgp_public_key_response_spec.rb +89 -0
- data/spec/models/open_pgp_public_key_spec.rb +59 -0
- data/spec/models/open_pgp_public_subkey_response_spec.rb +83 -0
- data/spec/models/open_pgp_signature_response_spec.rb +107 -0
- data/spec/models/open_pgp_user_attribute_response_spec.rb +77 -0
- data/spec/models/open_pgp_user_id_response_spec.rb +77 -0
- data/spec/models/paginated_open_pgp_distribution_response_list_spec.rb +59 -0
- data/spec/models/paginated_open_pgp_keyring_response_list_spec.rb +59 -0
- data/spec/models/paginated_open_pgp_public_key_response_list_spec.rb +59 -0
- data/spec/models/paginated_open_pgp_public_subkey_response_list_spec.rb +59 -0
- data/spec/models/paginated_open_pgp_signature_response_list_spec.rb +59 -0
- data/spec/models/paginated_open_pgp_user_attribute_response_list_spec.rb +59 -0
- data/spec/models/paginated_open_pgp_user_id_response_list_spec.rb +59 -0
- data/spec/models/patched_open_pgp_distribution_spec.rb +77 -0
- data/spec/models/patched_open_pgp_keyring_spec.rb +65 -0
- data/spec/models/repository_add_remove_content_spec.rb +53 -0
- data/spec/models/set_label_response_spec.rb +47 -0
- data/spec/models/set_label_spec.rb +47 -0
- data/spec/models/unset_label_response_spec.rb +47 -0
- data/spec/models/unset_label_spec.rb +41 -0
- metadata +311 -155
|
@@ -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) * `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)
|
|
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) * `immediate` - Immediate * `-immediate` - Immediate (descending) * `deferred` - Deferred * `-deferred` - Deferred (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>] :prn__in Multiple values may be separated by commas.
|
|
176
176
|
# @option opts [Array<String>] :pulp_href__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) * `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)
|
|
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) * `immediate` - Immediate * `-immediate` - Immediate (descending) * `deferred` - Deferred * `-deferred` - Deferred (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>] :prn__in Multiple values may be separated by commas.
|
|
228
228
|
# @option opts [Array<String>] :pulp_href__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", "-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"]
|
|
255
|
+
allowable_values = ["-deferred", "-enc_args", "-enc_kwargs", "-error", "-finished_at", "-immediate", "-logging_cid", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-reserved_resources_record", "-started_at", "-state", "-unblocked_at", "-versions", "deferred", "enc_args", "enc_kwargs", "error", "finished_at", "immediate", "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
|
|
@@ -15,8 +15,10 @@ require 'date'
|
|
|
15
15
|
module PulpcoreClient
|
|
16
16
|
# A serializer for ArtifactDistribution.
|
|
17
17
|
class ArtifactDistributionResponse
|
|
18
|
-
#
|
|
19
|
-
attr_accessor :
|
|
18
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
19
|
+
attr_accessor :base_path
|
|
20
|
+
|
|
21
|
+
attr_accessor :pulp_labels
|
|
20
22
|
|
|
21
23
|
attr_accessor :pulp_href
|
|
22
24
|
|
|
@@ -26,57 +28,55 @@ module PulpcoreClient
|
|
|
26
28
|
# An optional content-guard.
|
|
27
29
|
attr_accessor :content_guard
|
|
28
30
|
|
|
29
|
-
# A unique name. Ex, `rawhide` and `stable`.
|
|
30
|
-
attr_accessor :name
|
|
31
|
-
|
|
32
|
-
# 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.
|
|
33
|
-
attr_accessor :pulp_last_updated
|
|
34
|
-
|
|
35
|
-
attr_accessor :pulp_labels
|
|
36
|
-
|
|
37
31
|
# The URL for accessing the publication as defined by this distribution.
|
|
38
32
|
attr_accessor :base_url
|
|
39
33
|
|
|
40
|
-
#
|
|
41
|
-
attr_accessor :
|
|
34
|
+
# Whether this distribution should be shown in the content app.
|
|
35
|
+
attr_accessor :hidden
|
|
42
36
|
|
|
43
37
|
# Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
|
|
44
38
|
attr_accessor :no_content_change_since
|
|
45
39
|
|
|
46
|
-
#
|
|
47
|
-
attr_accessor :
|
|
40
|
+
# Timestamp of creation.
|
|
41
|
+
attr_accessor :pulp_created
|
|
42
|
+
|
|
43
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
|
44
|
+
attr_accessor :name
|
|
45
|
+
|
|
46
|
+
# 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.
|
|
47
|
+
attr_accessor :pulp_last_updated
|
|
48
48
|
|
|
49
49
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
50
50
|
def self.attribute_map
|
|
51
51
|
{
|
|
52
|
-
:'
|
|
52
|
+
:'base_path' => :'base_path',
|
|
53
|
+
:'pulp_labels' => :'pulp_labels',
|
|
53
54
|
:'pulp_href' => :'pulp_href',
|
|
54
55
|
:'prn' => :'prn',
|
|
55
56
|
:'content_guard' => :'content_guard',
|
|
56
|
-
:'name' => :'name',
|
|
57
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
|
58
|
-
:'pulp_labels' => :'pulp_labels',
|
|
59
57
|
:'base_url' => :'base_url',
|
|
60
|
-
:'
|
|
58
|
+
:'hidden' => :'hidden',
|
|
61
59
|
:'no_content_change_since' => :'no_content_change_since',
|
|
62
|
-
:'
|
|
60
|
+
:'pulp_created' => :'pulp_created',
|
|
61
|
+
:'name' => :'name',
|
|
62
|
+
:'pulp_last_updated' => :'pulp_last_updated'
|
|
63
63
|
}
|
|
64
64
|
end
|
|
65
65
|
|
|
66
66
|
# Attribute type mapping.
|
|
67
67
|
def self.openapi_types
|
|
68
68
|
{
|
|
69
|
-
:'
|
|
69
|
+
:'base_path' => :'String',
|
|
70
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
70
71
|
:'pulp_href' => :'String',
|
|
71
72
|
:'prn' => :'String',
|
|
72
73
|
:'content_guard' => :'String',
|
|
73
|
-
:'name' => :'String',
|
|
74
|
-
:'pulp_last_updated' => :'DateTime',
|
|
75
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
76
74
|
:'base_url' => :'String',
|
|
77
|
-
:'
|
|
75
|
+
:'hidden' => :'Boolean',
|
|
78
76
|
:'no_content_change_since' => :'String',
|
|
79
|
-
:'
|
|
77
|
+
:'pulp_created' => :'DateTime',
|
|
78
|
+
:'name' => :'String',
|
|
79
|
+
:'pulp_last_updated' => :'DateTime'
|
|
80
80
|
}
|
|
81
81
|
end
|
|
82
82
|
|
|
@@ -102,10 +102,14 @@ module PulpcoreClient
|
|
|
102
102
|
h[k.to_sym] = v
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
if attributes.key?(:'
|
|
106
|
-
self.
|
|
107
|
-
|
|
108
|
-
|
|
105
|
+
if attributes.key?(:'base_path')
|
|
106
|
+
self.base_path = attributes[:'base_path']
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
if attributes.key?(:'pulp_labels')
|
|
110
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
111
|
+
self.pulp_labels = value
|
|
112
|
+
end
|
|
109
113
|
end
|
|
110
114
|
|
|
111
115
|
if attributes.key?(:'pulp_href')
|
|
@@ -120,34 +124,30 @@ module PulpcoreClient
|
|
|
120
124
|
self.content_guard = attributes[:'content_guard']
|
|
121
125
|
end
|
|
122
126
|
|
|
123
|
-
if attributes.key?(:'
|
|
124
|
-
self.
|
|
125
|
-
end
|
|
126
|
-
|
|
127
|
-
if attributes.key?(:'pulp_last_updated')
|
|
128
|
-
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
127
|
+
if attributes.key?(:'base_url')
|
|
128
|
+
self.base_url = attributes[:'base_url']
|
|
129
129
|
end
|
|
130
130
|
|
|
131
|
-
if attributes.key?(:'
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
131
|
+
if attributes.key?(:'hidden')
|
|
132
|
+
self.hidden = attributes[:'hidden']
|
|
133
|
+
else
|
|
134
|
+
self.hidden = false
|
|
135
135
|
end
|
|
136
136
|
|
|
137
|
-
if attributes.key?(:'
|
|
138
|
-
self.
|
|
137
|
+
if attributes.key?(:'no_content_change_since')
|
|
138
|
+
self.no_content_change_since = attributes[:'no_content_change_since']
|
|
139
139
|
end
|
|
140
140
|
|
|
141
141
|
if attributes.key?(:'pulp_created')
|
|
142
142
|
self.pulp_created = attributes[:'pulp_created']
|
|
143
143
|
end
|
|
144
144
|
|
|
145
|
-
if attributes.key?(:'
|
|
146
|
-
self.
|
|
145
|
+
if attributes.key?(:'name')
|
|
146
|
+
self.name = attributes[:'name']
|
|
147
147
|
end
|
|
148
148
|
|
|
149
|
-
if attributes.key?(:'
|
|
150
|
-
self.
|
|
149
|
+
if attributes.key?(:'pulp_last_updated')
|
|
150
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
151
151
|
end
|
|
152
152
|
end
|
|
153
153
|
|
|
@@ -155,22 +155,22 @@ module PulpcoreClient
|
|
|
155
155
|
# @return Array for valid properties with the reasons
|
|
156
156
|
def list_invalid_properties
|
|
157
157
|
invalid_properties = Array.new
|
|
158
|
-
if @name.nil?
|
|
159
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
160
|
-
end
|
|
161
|
-
|
|
162
158
|
if @base_path.nil?
|
|
163
159
|
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
|
164
160
|
end
|
|
165
161
|
|
|
162
|
+
if @name.nil?
|
|
163
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
164
|
+
end
|
|
165
|
+
|
|
166
166
|
invalid_properties
|
|
167
167
|
end
|
|
168
168
|
|
|
169
169
|
# Check to see if the all the properties in the model are valid
|
|
170
170
|
# @return true if the model is valid
|
|
171
171
|
def valid?
|
|
172
|
-
return false if @name.nil?
|
|
173
172
|
return false if @base_path.nil?
|
|
173
|
+
return false if @name.nil?
|
|
174
174
|
true
|
|
175
175
|
end
|
|
176
176
|
|
|
@@ -179,17 +179,17 @@ module PulpcoreClient
|
|
|
179
179
|
def ==(o)
|
|
180
180
|
return true if self.equal?(o)
|
|
181
181
|
self.class == o.class &&
|
|
182
|
-
|
|
182
|
+
base_path == o.base_path &&
|
|
183
|
+
pulp_labels == o.pulp_labels &&
|
|
183
184
|
pulp_href == o.pulp_href &&
|
|
184
185
|
prn == o.prn &&
|
|
185
186
|
content_guard == o.content_guard &&
|
|
186
|
-
name == o.name &&
|
|
187
|
-
pulp_last_updated == o.pulp_last_updated &&
|
|
188
|
-
pulp_labels == o.pulp_labels &&
|
|
189
187
|
base_url == o.base_url &&
|
|
190
|
-
|
|
188
|
+
hidden == o.hidden &&
|
|
191
189
|
no_content_change_since == o.no_content_change_since &&
|
|
192
|
-
|
|
190
|
+
pulp_created == o.pulp_created &&
|
|
191
|
+
name == o.name &&
|
|
192
|
+
pulp_last_updated == o.pulp_last_updated
|
|
193
193
|
end
|
|
194
194
|
|
|
195
195
|
# @see the `==` method
|
|
@@ -201,7 +201,7 @@ module PulpcoreClient
|
|
|
201
201
|
# Calculates hash code according to all attributes.
|
|
202
202
|
# @return [Integer] Hash code
|
|
203
203
|
def hash
|
|
204
|
-
[
|
|
204
|
+
[base_path, pulp_labels, pulp_href, prn, content_guard, base_url, hidden, no_content_change_since, pulp_created, name, pulp_last_updated].hash
|
|
205
205
|
end
|
|
206
206
|
|
|
207
207
|
# Builds the object from hash
|
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Pulp 3 API
|
|
3
|
+
|
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: v3
|
|
7
|
+
Contact: pulp-list@redhat.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 4.3.1
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
|
|
15
|
+
module PulpcoreClient
|
|
16
|
+
# Base serializer for use with [pulpcore.app.models.Model][] This ensures that all Serializers provide values for the 'pulp_href` field. The class provides a default for the ``ref_name`` attribute in the ModelSerializers's ``Meta`` class. This ensures that the OpenAPI definitions of plugins are namespaced properly.
|
|
17
|
+
class NestedOpenPGPPublicSubkey
|
|
18
|
+
attr_accessor :fingerprint
|
|
19
|
+
|
|
20
|
+
attr_accessor :created
|
|
21
|
+
|
|
22
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
23
|
+
def self.attribute_map
|
|
24
|
+
{
|
|
25
|
+
:'fingerprint' => :'fingerprint',
|
|
26
|
+
:'created' => :'created'
|
|
27
|
+
}
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# Attribute type mapping.
|
|
31
|
+
def self.openapi_types
|
|
32
|
+
{
|
|
33
|
+
:'fingerprint' => :'String',
|
|
34
|
+
:'created' => :'DateTime'
|
|
35
|
+
}
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# List of attributes with nullable: true
|
|
39
|
+
def self.openapi_nullable
|
|
40
|
+
Set.new([
|
|
41
|
+
])
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# Initializes the object
|
|
45
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
46
|
+
def initialize(attributes = {})
|
|
47
|
+
if (!attributes.is_a?(Hash))
|
|
48
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpcoreClient::NestedOpenPGPPublicSubkey` initialize method"
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
52
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
53
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
54
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpcoreClient::NestedOpenPGPPublicSubkey`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
55
|
+
end
|
|
56
|
+
h[k.to_sym] = v
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
if attributes.key?(:'fingerprint')
|
|
60
|
+
self.fingerprint = attributes[:'fingerprint']
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
if attributes.key?(:'created')
|
|
64
|
+
self.created = attributes[:'created']
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
69
|
+
# @return Array for valid properties with the reasons
|
|
70
|
+
def list_invalid_properties
|
|
71
|
+
invalid_properties = Array.new
|
|
72
|
+
if @fingerprint.nil?
|
|
73
|
+
invalid_properties.push('invalid value for "fingerprint", fingerprint cannot be nil.')
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
if @fingerprint.to_s.length > 64
|
|
77
|
+
invalid_properties.push('invalid value for "fingerprint", the character length must be smaller than or equal to 64.')
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
if @fingerprint.to_s.length < 1
|
|
81
|
+
invalid_properties.push('invalid value for "fingerprint", the character length must be great than or equal to 1.')
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
if @created.nil?
|
|
85
|
+
invalid_properties.push('invalid value for "created", created cannot be nil.')
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
invalid_properties
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# Check to see if the all the properties in the model are valid
|
|
92
|
+
# @return true if the model is valid
|
|
93
|
+
def valid?
|
|
94
|
+
return false if @fingerprint.nil?
|
|
95
|
+
return false if @fingerprint.to_s.length > 64
|
|
96
|
+
return false if @fingerprint.to_s.length < 1
|
|
97
|
+
return false if @created.nil?
|
|
98
|
+
true
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# Custom attribute writer method with validation
|
|
102
|
+
# @param [Object] fingerprint Value to be assigned
|
|
103
|
+
def fingerprint=(fingerprint)
|
|
104
|
+
if fingerprint.nil?
|
|
105
|
+
fail ArgumentError, 'fingerprint cannot be nil'
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
if fingerprint.to_s.length > 64
|
|
109
|
+
fail ArgumentError, 'invalid value for "fingerprint", the character length must be smaller than or equal to 64.'
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
if fingerprint.to_s.length < 1
|
|
113
|
+
fail ArgumentError, 'invalid value for "fingerprint", the character length must be great than or equal to 1.'
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
@fingerprint = fingerprint
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
# Checks equality by comparing each attribute.
|
|
120
|
+
# @param [Object] Object to be compared
|
|
121
|
+
def ==(o)
|
|
122
|
+
return true if self.equal?(o)
|
|
123
|
+
self.class == o.class &&
|
|
124
|
+
fingerprint == o.fingerprint &&
|
|
125
|
+
created == o.created
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
# @see the `==` method
|
|
129
|
+
# @param [Object] Object to be compared
|
|
130
|
+
def eql?(o)
|
|
131
|
+
self == o
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
# Calculates hash code according to all attributes.
|
|
135
|
+
# @return [Integer] Hash code
|
|
136
|
+
def hash
|
|
137
|
+
[fingerprint, created].hash
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
# Builds the object from hash
|
|
141
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
142
|
+
# @return [Object] Returns the model itself
|
|
143
|
+
def self.build_from_hash(attributes)
|
|
144
|
+
new.build_from_hash(attributes)
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
# Builds the object from hash
|
|
148
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
149
|
+
# @return [Object] Returns the model itself
|
|
150
|
+
def build_from_hash(attributes)
|
|
151
|
+
return nil unless attributes.is_a?(Hash)
|
|
152
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
153
|
+
if type =~ /\AArray<(.*)>/i
|
|
154
|
+
# check to ensure the input is an array given that the attribute
|
|
155
|
+
# is documented as an array but the input is not
|
|
156
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
157
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
158
|
+
end
|
|
159
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
160
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
161
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
self
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
# Deserializes the data based on type
|
|
168
|
+
# @param string type Data type
|
|
169
|
+
# @param string value Value to be deserialized
|
|
170
|
+
# @return [Object] Deserialized data
|
|
171
|
+
def _deserialize(type, value)
|
|
172
|
+
case type.to_sym
|
|
173
|
+
when :DateTime
|
|
174
|
+
DateTime.parse(value)
|
|
175
|
+
when :Date
|
|
176
|
+
Date.parse(value)
|
|
177
|
+
when :String
|
|
178
|
+
value.to_s
|
|
179
|
+
when :Integer
|
|
180
|
+
value.to_i
|
|
181
|
+
when :Float
|
|
182
|
+
value.to_f
|
|
183
|
+
when :Boolean
|
|
184
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
185
|
+
true
|
|
186
|
+
else
|
|
187
|
+
false
|
|
188
|
+
end
|
|
189
|
+
when :Object
|
|
190
|
+
# generic object (usually a Hash), return directly
|
|
191
|
+
value
|
|
192
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
193
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
194
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
195
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
196
|
+
k_type = Regexp.last_match[:k_type]
|
|
197
|
+
v_type = Regexp.last_match[:v_type]
|
|
198
|
+
{}.tap do |hash|
|
|
199
|
+
value.each do |k, v|
|
|
200
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
201
|
+
end
|
|
202
|
+
end
|
|
203
|
+
else # model
|
|
204
|
+
PulpcoreClient.const_get(type).build_from_hash(value)
|
|
205
|
+
end
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
# Returns the string representation of the object
|
|
209
|
+
# @return [String] String presentation of the object
|
|
210
|
+
def to_s
|
|
211
|
+
to_hash.to_s
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
215
|
+
# @return [Hash] Returns the object in the form of hash
|
|
216
|
+
def to_body
|
|
217
|
+
to_hash
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
# Returns the object in the form of hash
|
|
221
|
+
# @return [Hash] Returns the object in the form of hash
|
|
222
|
+
def to_hash
|
|
223
|
+
hash = {}
|
|
224
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
225
|
+
value = self.send(attr)
|
|
226
|
+
if value.nil?
|
|
227
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
228
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
hash[param] = _to_hash(value)
|
|
232
|
+
end
|
|
233
|
+
hash
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
# Outputs non-array value in the form of hash
|
|
237
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
238
|
+
# @param [Object] value Any valid value
|
|
239
|
+
# @return [Hash] Returns the value in the form of hash
|
|
240
|
+
def _to_hash(value)
|
|
241
|
+
if value.is_a?(Array)
|
|
242
|
+
value.compact.map { |v| _to_hash(v) }
|
|
243
|
+
elsif value.is_a?(Hash)
|
|
244
|
+
{}.tap do |hash|
|
|
245
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
246
|
+
end
|
|
247
|
+
elsif value.respond_to? :to_hash
|
|
248
|
+
value.to_hash
|
|
249
|
+
else
|
|
250
|
+
value
|
|
251
|
+
end
|
|
252
|
+
end
|
|
253
|
+
end
|
|
254
|
+
end
|