pulpcore_client 3.65.0 → 3.66.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 +15 -15
- 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/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/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/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 +69 -69
- 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/remote_response.rb +20 -20
- 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/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 +314 -158
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# PulpcoreClient::RepositoryAddRemoveContent
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**add_content_units** | **Array<String>** | A list of content units to add to a new repository version. This content is added after remove_content_units are removed. | [optional]
|
|
8
|
+
**remove_content_units** | **Array<String>** | A list of content units to remove from the latest repository version. You may also specify '*' as an entry to remove all content. This content is removed before add_content_units are added. | [optional]
|
|
9
|
+
**base_version** | **String** | A repository version whose content will be used as the initial set of content for the new repository version | [optional]
|
|
10
|
+
|
|
11
|
+
## Code Sample
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'PulpcoreClient'
|
|
15
|
+
|
|
16
|
+
instance = PulpcoreClient::RepositoryAddRemoveContent.new(add_content_units: null,
|
|
17
|
+
remove_content_units: null,
|
|
18
|
+
base_version: null)
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
|
data/docs/SetLabel.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# PulpcoreClient::SetLabel
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**key** | **String** | |
|
|
8
|
+
**value** | **String** | |
|
|
9
|
+
|
|
10
|
+
## Code Sample
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'PulpcoreClient'
|
|
14
|
+
|
|
15
|
+
instance = PulpcoreClient::SetLabel.new(key: null,
|
|
16
|
+
value: null)
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# PulpcoreClient::SetLabelResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**key** | **String** | |
|
|
8
|
+
**value** | **String** | |
|
|
9
|
+
|
|
10
|
+
## Code Sample
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'PulpcoreClient'
|
|
14
|
+
|
|
15
|
+
instance = PulpcoreClient::SetLabelResponse.new(key: null,
|
|
16
|
+
value: null)
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
|
data/docs/TasksApi.md
CHANGED
|
@@ -164,7 +164,7 @@ opts = {
|
|
|
164
164
|
name__in: ['name__in_example'], # Array<String> | Filter results where name is in a comma-separated list of values
|
|
165
165
|
name__ne: 'name__ne_example', # String | Filter results where name not equal to value
|
|
166
166
|
offset: 56, # Integer | The initial index from which to return the results.
|
|
167
|
-
ordering: ['ordering_example'], # 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) * `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)
|
|
167
|
+
ordering: ['ordering_example'], # 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) * `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)
|
|
168
168
|
parent_task: 'parent_task_example', # String | Filter results where parent_task matches value
|
|
169
169
|
prn__in: ['prn__in_example'], # Array<String> | Multiple values may be separated by commas.
|
|
170
170
|
pulp_href__in: ['pulp_href__in_example'], # Array<String> | Multiple values may be separated by commas.
|
|
@@ -223,7 +223,7 @@ Name | Type | Description | Notes
|
|
|
223
223
|
**name__in** | [**Array<String>**](String.md)| Filter results where name is in a comma-separated list of values | [optional]
|
|
224
224
|
**name__ne** | **String**| Filter results where name not equal to value | [optional]
|
|
225
225
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
|
226
|
-
**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) * `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) | [optional]
|
|
226
|
+
**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) * `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) | [optional]
|
|
227
227
|
**parent_task** | [**String**](.md)| Filter results where parent_task matches value | [optional]
|
|
228
228
|
**prn__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
|
229
229
|
**pulp_href__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
data/docs/UnsetLabel.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# PulpcoreClient::UnsetLabel
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**key** | **String** | |
|
|
8
|
+
|
|
9
|
+
## Code Sample
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'PulpcoreClient'
|
|
13
|
+
|
|
14
|
+
instance = PulpcoreClient::UnsetLabel.new(key: null)
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# PulpcoreClient::UnsetLabelResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**key** | **String** | |
|
|
8
|
+
**value** | **String** | | [optional] [readonly]
|
|
9
|
+
|
|
10
|
+
## Code Sample
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'PulpcoreClient'
|
|
14
|
+
|
|
15
|
+
instance = PulpcoreClient::UnsetLabelResponse.new(key: null,
|
|
16
|
+
value: null)
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
|
|
@@ -20,7 +20,7 @@ module PulpcoreClient
|
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
22
|
# List access policys
|
|
23
|
-
# ViewSet for AccessPolicy.
|
|
23
|
+
# ViewSet for AccessPolicy.
|
|
24
24
|
# @param [Hash] opts the optional parameters
|
|
25
25
|
# @option opts [Boolean] :customized Filter results where customized matches value
|
|
26
26
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
@@ -48,7 +48,7 @@ module PulpcoreClient
|
|
|
48
48
|
end
|
|
49
49
|
|
|
50
50
|
# List access policys
|
|
51
|
-
# ViewSet for AccessPolicy.
|
|
51
|
+
# ViewSet for AccessPolicy.
|
|
52
52
|
# @param [Hash] opts the optional parameters
|
|
53
53
|
# @option opts [Boolean] :customized Filter results where customized matches value
|
|
54
54
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
@@ -137,7 +137,7 @@ module PulpcoreClient
|
|
|
137
137
|
end
|
|
138
138
|
|
|
139
139
|
# Update an access policy
|
|
140
|
-
# ViewSet for AccessPolicy.
|
|
140
|
+
# ViewSet for AccessPolicy.
|
|
141
141
|
# @param access_policy_href [String]
|
|
142
142
|
# @param patched_access_policy [PatchedAccessPolicy]
|
|
143
143
|
# @param [Hash] opts the optional parameters
|
|
@@ -148,7 +148,7 @@ module PulpcoreClient
|
|
|
148
148
|
end
|
|
149
149
|
|
|
150
150
|
# Update an access policy
|
|
151
|
-
# ViewSet for AccessPolicy.
|
|
151
|
+
# ViewSet for AccessPolicy.
|
|
152
152
|
# @param access_policy_href [String]
|
|
153
153
|
# @param patched_access_policy [PatchedAccessPolicy]
|
|
154
154
|
# @param [Hash] opts the optional parameters
|
|
@@ -207,7 +207,7 @@ module PulpcoreClient
|
|
|
207
207
|
end
|
|
208
208
|
|
|
209
209
|
# Inspect an access policy
|
|
210
|
-
# ViewSet for AccessPolicy.
|
|
210
|
+
# ViewSet for AccessPolicy.
|
|
211
211
|
# @param access_policy_href [String]
|
|
212
212
|
# @param [Hash] opts the optional parameters
|
|
213
213
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
@@ -219,7 +219,7 @@ module PulpcoreClient
|
|
|
219
219
|
end
|
|
220
220
|
|
|
221
221
|
# Inspect an access policy
|
|
222
|
-
# ViewSet for AccessPolicy.
|
|
222
|
+
# ViewSet for AccessPolicy.
|
|
223
223
|
# @param access_policy_href [String]
|
|
224
224
|
# @param [Hash] opts the optional parameters
|
|
225
225
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
@@ -335,7 +335,7 @@ module PulpcoreClient
|
|
|
335
335
|
end
|
|
336
336
|
|
|
337
337
|
# Update an access policy
|
|
338
|
-
# ViewSet for AccessPolicy.
|
|
338
|
+
# ViewSet for AccessPolicy.
|
|
339
339
|
# @param access_policy_href [String]
|
|
340
340
|
# @param access_policy [AccessPolicy]
|
|
341
341
|
# @param [Hash] opts the optional parameters
|
|
@@ -346,7 +346,7 @@ module PulpcoreClient
|
|
|
346
346
|
end
|
|
347
347
|
|
|
348
348
|
# Update an access policy
|
|
349
|
-
# ViewSet for AccessPolicy.
|
|
349
|
+
# ViewSet for AccessPolicy.
|
|
350
350
|
# @param access_policy_href [String]
|
|
351
351
|
# @param access_policy [AccessPolicy]
|
|
352
352
|
# @param [Hash] opts the optional parameters
|
|
@@ -29,8 +29,8 @@ module PulpcoreClient
|
|
|
29
29
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
|
30
30
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
31
31
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
32
|
-
# @option opts [String] :pulp_type Pulp type * `core.publishedmetadata` - core.publishedmetadata * `file.file` - file.file
|
|
33
|
-
# @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas. * `core.publishedmetadata` - core.publishedmetadata * `file.file` - file.file
|
|
32
|
+
# @option opts [String] :pulp_type Pulp type * `core.publishedmetadata` - core.publishedmetadata * `core.openpgp_publickey` - core.openpgp_publickey * `core.openpgp_publicsubkey` - core.openpgp_publicsubkey * `core.openpgp_userid` - core.openpgp_userid * `core.openpgp_userattribute` - core.openpgp_userattribute * `core.openpgp_signature` - core.openpgp_signature * `file.file` - file.file
|
|
33
|
+
# @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas. * `core.publishedmetadata` - core.publishedmetadata * `core.openpgp_publickey` - core.openpgp_publickey * `core.openpgp_publicsubkey` - core.openpgp_publicsubkey * `core.openpgp_userid` - core.openpgp_userid * `core.openpgp_userattribute` - core.openpgp_userattribute * `core.openpgp_signature` - core.openpgp_signature * `file.file` - file.file
|
|
34
34
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
|
35
35
|
# @option opts [String] :repository_version Repository Version referenced by HREF/PRN
|
|
36
36
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
|
|
@@ -53,8 +53,8 @@ module PulpcoreClient
|
|
|
53
53
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
|
54
54
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
55
55
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
56
|
-
# @option opts [String] :pulp_type Pulp type * `core.publishedmetadata` - core.publishedmetadata * `file.file` - file.file
|
|
57
|
-
# @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas. * `core.publishedmetadata` - core.publishedmetadata * `file.file` - file.file
|
|
56
|
+
# @option opts [String] :pulp_type Pulp type * `core.publishedmetadata` - core.publishedmetadata * `core.openpgp_publickey` - core.openpgp_publickey * `core.openpgp_publicsubkey` - core.openpgp_publicsubkey * `core.openpgp_userid` - core.openpgp_userid * `core.openpgp_userattribute` - core.openpgp_userattribute * `core.openpgp_signature` - core.openpgp_signature * `file.file` - file.file
|
|
57
|
+
# @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas. * `core.publishedmetadata` - core.publishedmetadata * `core.openpgp_publickey` - core.openpgp_publickey * `core.openpgp_publicsubkey` - core.openpgp_publicsubkey * `core.openpgp_userid` - core.openpgp_userid * `core.openpgp_userattribute` - core.openpgp_userattribute * `core.openpgp_signature` - core.openpgp_signature * `file.file` - file.file
|
|
58
58
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
|
59
59
|
# @option opts [String] :repository_version Repository Version referenced by HREF/PRN
|
|
60
60
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
|
|
@@ -70,11 +70,11 @@ module PulpcoreClient
|
|
|
70
70
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
|
71
71
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
|
72
72
|
end
|
|
73
|
-
allowable_values = ["core.publishedmetadata", "file.file"]
|
|
73
|
+
allowable_values = ["core.openpgp_publickey", "core.openpgp_publicsubkey", "core.openpgp_signature", "core.openpgp_userattribute", "core.openpgp_userid", "core.publishedmetadata", "file.file"]
|
|
74
74
|
if @api_client.config.client_side_validation && opts[:'pulp_type'] && !allowable_values.include?(opts[:'pulp_type'])
|
|
75
75
|
fail ArgumentError, "invalid value for \"pulp_type\", must be one of #{allowable_values}"
|
|
76
76
|
end
|
|
77
|
-
allowable_values = ["core.publishedmetadata", "file.file"]
|
|
77
|
+
allowable_values = ["core.openpgp_publickey", "core.openpgp_publicsubkey", "core.openpgp_signature", "core.openpgp_userattribute", "core.openpgp_userid", "core.publishedmetadata", "file.file"]
|
|
78
78
|
if @api_client.config.client_side_validation && opts[:'pulp_type__in'] && !opts[:'pulp_type__in'].all? { |item| allowable_values.include?(item) }
|
|
79
79
|
fail ArgumentError, "invalid value for \"pulp_type__in\", must include one of #{allowable_values}"
|
|
80
80
|
end
|
|
@@ -0,0 +1,266 @@
|
|
|
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 'cgi'
|
|
14
|
+
|
|
15
|
+
module PulpcoreClient
|
|
16
|
+
class ContentOpenpgpPublickeyApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Create an open pgp public key
|
|
23
|
+
# Trigger an asynchronous task to create content,optionally create new repository version.
|
|
24
|
+
# @param [Hash] opts the optional parameters
|
|
25
|
+
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
|
26
|
+
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
|
27
|
+
# @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
|
|
28
|
+
# @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
|
|
29
|
+
# @return [AsyncOperationResponse]
|
|
30
|
+
def create(opts = {})
|
|
31
|
+
data, _status_code, _headers = create_with_http_info(opts)
|
|
32
|
+
data
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# Create an open pgp public key
|
|
36
|
+
# Trigger an asynchronous task to create content,optionally create new repository version.
|
|
37
|
+
# @param [Hash] opts the optional parameters
|
|
38
|
+
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
|
39
|
+
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
|
40
|
+
# @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
|
|
41
|
+
# @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
|
|
42
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
43
|
+
def create_with_http_info(opts = {})
|
|
44
|
+
if @api_client.config.debugging
|
|
45
|
+
@api_client.config.logger.debug 'Calling API: ContentOpenpgpPublickeyApi.create ...'
|
|
46
|
+
end
|
|
47
|
+
if @api_client.config.client_side_validation && !opts[:'file_url'].nil? && opts[:'file_url'].to_s.length < 1
|
|
48
|
+
fail ArgumentError, 'invalid value for "opts[:"file_url"]" when calling ContentOpenpgpPublickeyApi.create, the character length must be great than or equal to 1.'
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# resource path
|
|
52
|
+
local_var_path = '/pulp/api/v3/content/core/openpgp_publickey/'
|
|
53
|
+
|
|
54
|
+
# query parameters
|
|
55
|
+
query_params = opts[:query_params] || {}
|
|
56
|
+
|
|
57
|
+
# header parameters
|
|
58
|
+
header_params = opts[:header_params] || {}
|
|
59
|
+
# HTTP header 'Accept' (if needed)
|
|
60
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
61
|
+
# HTTP header 'Content-Type'
|
|
62
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/x-www-form-urlencoded'])
|
|
63
|
+
|
|
64
|
+
# form parameters
|
|
65
|
+
form_params = opts[:form_params] || {}
|
|
66
|
+
form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
|
67
|
+
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
|
|
68
|
+
form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
|
|
69
|
+
form_params['file_url'] = opts[:'file_url'] if !opts[:'file_url'].nil?
|
|
70
|
+
|
|
71
|
+
# http body (model)
|
|
72
|
+
post_body = opts[:body]
|
|
73
|
+
|
|
74
|
+
# return_type
|
|
75
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
|
76
|
+
|
|
77
|
+
# auth_names
|
|
78
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
79
|
+
|
|
80
|
+
new_options = opts.merge(
|
|
81
|
+
:header_params => header_params,
|
|
82
|
+
:query_params => query_params,
|
|
83
|
+
:form_params => form_params,
|
|
84
|
+
:body => post_body,
|
|
85
|
+
:auth_names => auth_names,
|
|
86
|
+
:return_type => return_type
|
|
87
|
+
)
|
|
88
|
+
|
|
89
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
90
|
+
if @api_client.config.debugging
|
|
91
|
+
@api_client.config.logger.debug "API called: ContentOpenpgpPublickeyApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
92
|
+
end
|
|
93
|
+
return data, status_code, headers
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# List open pgp public keys
|
|
97
|
+
# A ViewSet for uploads that do not require to store an uploaded content as an Artifact.
|
|
98
|
+
# @param [Hash] opts the optional parameters
|
|
99
|
+
# @option opts [String] :fingerprint Filter results where fingerprint matches value
|
|
100
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
101
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
102
|
+
# @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) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `raw_data` - Raw data * `-raw_data` - Raw data (descending) * `fingerprint` - Fingerprint * `-fingerprint` - Fingerprint (descending) * `created` - Created * `-created` - Created (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
103
|
+
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
|
104
|
+
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
|
105
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
106
|
+
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
107
|
+
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
|
108
|
+
# @option opts [String] :repository_version Repository Version referenced by HREF/PRN
|
|
109
|
+
# @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
|
|
110
|
+
# @option opts [String] :repository_version_removed Repository Version referenced by HREF/PRN
|
|
111
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
112
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
113
|
+
# @return [PaginatedOpenPGPPublicKeyResponseList]
|
|
114
|
+
def list(opts = {})
|
|
115
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
|
116
|
+
data
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
# List open pgp public keys
|
|
120
|
+
# A ViewSet for uploads that do not require to store an uploaded content as an Artifact.
|
|
121
|
+
# @param [Hash] opts the optional parameters
|
|
122
|
+
# @option opts [String] :fingerprint Filter results where fingerprint matches value
|
|
123
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
124
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
125
|
+
# @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) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `raw_data` - Raw data * `-raw_data` - Raw data (descending) * `fingerprint` - Fingerprint * `-fingerprint` - Fingerprint (descending) * `created` - Created * `-created` - Created (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
|
126
|
+
# @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
|
|
127
|
+
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
|
128
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
|
129
|
+
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
130
|
+
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
|
131
|
+
# @option opts [String] :repository_version Repository Version referenced by HREF/PRN
|
|
132
|
+
# @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
|
|
133
|
+
# @option opts [String] :repository_version_removed Repository Version referenced by HREF/PRN
|
|
134
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
135
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
136
|
+
# @return [Array<(PaginatedOpenPGPPublicKeyResponseList, Integer, Hash)>] PaginatedOpenPGPPublicKeyResponseList data, response status code and response headers
|
|
137
|
+
def list_with_http_info(opts = {})
|
|
138
|
+
if @api_client.config.debugging
|
|
139
|
+
@api_client.config.logger.debug 'Calling API: ContentOpenpgpPublickeyApi.list ...'
|
|
140
|
+
end
|
|
141
|
+
allowable_values = ["-created", "-fingerprint", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-raw_data", "-timestamp_of_interest", "-upstream_id", "created", "fingerprint", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "raw_data", "timestamp_of_interest", "upstream_id"]
|
|
142
|
+
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
|
143
|
+
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
|
144
|
+
end
|
|
145
|
+
# resource path
|
|
146
|
+
local_var_path = '/pulp/api/v3/content/core/openpgp_publickey/'
|
|
147
|
+
|
|
148
|
+
# query parameters
|
|
149
|
+
query_params = opts[:query_params] || {}
|
|
150
|
+
query_params[:'fingerprint'] = opts[:'fingerprint'] if !opts[:'fingerprint'].nil?
|
|
151
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
152
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
153
|
+
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
|
154
|
+
query_params[:'orphaned_for'] = opts[:'orphaned_for'] if !opts[:'orphaned_for'].nil?
|
|
155
|
+
query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
|
|
156
|
+
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
|
157
|
+
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
|
158
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
|
159
|
+
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
|
160
|
+
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
|
161
|
+
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
|
162
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
|
163
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
|
164
|
+
|
|
165
|
+
# header parameters
|
|
166
|
+
header_params = opts[:header_params] || {}
|
|
167
|
+
# HTTP header 'Accept' (if needed)
|
|
168
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
169
|
+
|
|
170
|
+
# form parameters
|
|
171
|
+
form_params = opts[:form_params] || {}
|
|
172
|
+
|
|
173
|
+
# http body (model)
|
|
174
|
+
post_body = opts[:body]
|
|
175
|
+
|
|
176
|
+
# return_type
|
|
177
|
+
return_type = opts[:return_type] || 'PaginatedOpenPGPPublicKeyResponseList'
|
|
178
|
+
|
|
179
|
+
# auth_names
|
|
180
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
181
|
+
|
|
182
|
+
new_options = opts.merge(
|
|
183
|
+
:header_params => header_params,
|
|
184
|
+
:query_params => query_params,
|
|
185
|
+
:form_params => form_params,
|
|
186
|
+
:body => post_body,
|
|
187
|
+
:auth_names => auth_names,
|
|
188
|
+
:return_type => return_type
|
|
189
|
+
)
|
|
190
|
+
|
|
191
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
192
|
+
if @api_client.config.debugging
|
|
193
|
+
@api_client.config.logger.debug "API called: ContentOpenpgpPublickeyApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
194
|
+
end
|
|
195
|
+
return data, status_code, headers
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
# Inspect an open pgp public key
|
|
199
|
+
# A ViewSet for uploads that do not require to store an uploaded content as an Artifact.
|
|
200
|
+
# @param open_p_g_p_public_key_href [String]
|
|
201
|
+
# @param [Hash] opts the optional parameters
|
|
202
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
203
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
204
|
+
# @return [OpenPGPPublicKeyResponse]
|
|
205
|
+
def read(open_p_g_p_public_key_href, opts = {})
|
|
206
|
+
data, _status_code, _headers = read_with_http_info(open_p_g_p_public_key_href, opts)
|
|
207
|
+
data
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
# Inspect an open pgp public key
|
|
211
|
+
# A ViewSet for uploads that do not require to store an uploaded content as an Artifact.
|
|
212
|
+
# @param open_p_g_p_public_key_href [String]
|
|
213
|
+
# @param [Hash] opts the optional parameters
|
|
214
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
215
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
216
|
+
# @return [Array<(OpenPGPPublicKeyResponse, Integer, Hash)>] OpenPGPPublicKeyResponse data, response status code and response headers
|
|
217
|
+
def read_with_http_info(open_p_g_p_public_key_href, opts = {})
|
|
218
|
+
if @api_client.config.debugging
|
|
219
|
+
@api_client.config.logger.debug 'Calling API: ContentOpenpgpPublickeyApi.read ...'
|
|
220
|
+
end
|
|
221
|
+
# verify the required parameter 'open_p_g_p_public_key_href' is set
|
|
222
|
+
if @api_client.config.client_side_validation && open_p_g_p_public_key_href.nil?
|
|
223
|
+
fail ArgumentError, "Missing the required parameter 'open_p_g_p_public_key_href' when calling ContentOpenpgpPublickeyApi.read"
|
|
224
|
+
end
|
|
225
|
+
# resource path
|
|
226
|
+
local_var_path = '{open_p_g_p_public_key_href}'.sub('{' + 'open_p_g_p_public_key_href' + '}', CGI.escape(open_p_g_p_public_key_href.to_s).gsub('%2F', '/'))
|
|
227
|
+
|
|
228
|
+
# query parameters
|
|
229
|
+
query_params = opts[:query_params] || {}
|
|
230
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
|
231
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
|
232
|
+
|
|
233
|
+
# header parameters
|
|
234
|
+
header_params = opts[:header_params] || {}
|
|
235
|
+
# HTTP header 'Accept' (if needed)
|
|
236
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
237
|
+
|
|
238
|
+
# form parameters
|
|
239
|
+
form_params = opts[:form_params] || {}
|
|
240
|
+
|
|
241
|
+
# http body (model)
|
|
242
|
+
post_body = opts[:body]
|
|
243
|
+
|
|
244
|
+
# return_type
|
|
245
|
+
return_type = opts[:return_type] || 'OpenPGPPublicKeyResponse'
|
|
246
|
+
|
|
247
|
+
# auth_names
|
|
248
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
|
249
|
+
|
|
250
|
+
new_options = opts.merge(
|
|
251
|
+
:header_params => header_params,
|
|
252
|
+
:query_params => query_params,
|
|
253
|
+
:form_params => form_params,
|
|
254
|
+
:body => post_body,
|
|
255
|
+
:auth_names => auth_names,
|
|
256
|
+
:return_type => return_type
|
|
257
|
+
)
|
|
258
|
+
|
|
259
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
260
|
+
if @api_client.config.debugging
|
|
261
|
+
@api_client.config.logger.debug "API called: ContentOpenpgpPublickeyApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
262
|
+
end
|
|
263
|
+
return data, status_code, headers
|
|
264
|
+
end
|
|
265
|
+
end
|
|
266
|
+
end
|