cloudpdf 3.0.0.alpha.18 → 3.0.0.alpha.19
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/.fern/metadata.json +2 -2
- data/lib/CloudPDF/client.rb +3 -3
- data/lib/CloudPDF/documents/layers/client.rb +2 -2
- data/lib/CloudPDF/documents/layers/types/list_layers_request.rb +1 -1
- data/lib/CloudPDF/folders/client.rb +1 -1
- data/lib/CloudPDF/{shares → grants}/client.rb +55 -55
- data/lib/CloudPDF/{shares/types/archive_shares_request.rb → grants/types/archive_grants_request.rb} +3 -3
- data/lib/CloudPDF/{shares/types/delete_shares_request.rb → grants/types/delete_grants_request.rb} +3 -3
- data/lib/CloudPDF/{shares/types/get_shares_request.rb → grants/types/get_grants_request.rb} +3 -3
- data/lib/CloudPDF/{shares/types/shares_create_request.rb → grants/types/grants_create_request.rb} +7 -5
- data/lib/CloudPDF/{shares/types/shares_create_request_layer_mode.rb → grants/types/grants_create_request_layer_mode.rb} +2 -2
- data/lib/CloudPDF/{shares/types/shares_create_request_visitor_identity.rb → grants/types/grants_create_request_visitor_identity.rb} +4 -4
- data/lib/CloudPDF/{shares/types/shares_update_request_visitor_identity_ask.rb → grants/types/grants_create_request_visitor_identity_ask.rb} +2 -2
- data/lib/CloudPDF/{shares/types/shares_create_request_visitor_identity_fields.rb → grants/types/grants_create_request_visitor_identity_fields.rb} +7 -7
- data/lib/CloudPDF/{shares/types/shares_update_request_visitor_identity_fields_display_name.rb → grants/types/grants_create_request_visitor_identity_fields_display_name.rb} +2 -2
- data/lib/CloudPDF/{shares/types/shares_create_request_visitor_identity_fields_title.rb → grants/types/grants_create_request_visitor_identity_fields_email.rb} +2 -2
- data/lib/CloudPDF/{shares/types/shares_update_request_visitor_identity_fields_organization.rb → grants/types/grants_create_request_visitor_identity_fields_organization.rb} +2 -2
- data/lib/CloudPDF/{shares/types/shares_update_request_visitor_identity_fields_organizational_unit.rb → grants/types/grants_create_request_visitor_identity_fields_organizational_unit.rb} +2 -2
- data/lib/CloudPDF/{shares/types/shares_update_request_visitor_identity_fields_email.rb → grants/types/grants_create_request_visitor_identity_fields_title.rb} +2 -2
- data/lib/CloudPDF/grants/types/grants_exchange_request.rb +19 -0
- data/lib/CloudPDF/{shares/types/shares_exchange_request_visitor_identity.rb → grants/types/grants_exchange_request_visitor_identity.rb} +2 -2
- data/lib/CloudPDF/{shares/types/shares_update_request.rb → grants/types/grants_update_request.rb} +8 -6
- data/lib/CloudPDF/{shares/types/shares_update_request_layer_mode.rb → grants/types/grants_update_request_layer_mode.rb} +2 -2
- data/lib/CloudPDF/{shares/types/shares_update_request_visitor_identity.rb → grants/types/grants_update_request_visitor_identity.rb} +4 -4
- data/lib/CloudPDF/{shares/types/shares_create_request_visitor_identity_ask.rb → grants/types/grants_update_request_visitor_identity_ask.rb} +2 -2
- data/lib/CloudPDF/{shares/types/shares_update_request_visitor_identity_fields.rb → grants/types/grants_update_request_visitor_identity_fields.rb} +7 -7
- data/lib/CloudPDF/{shares/types/shares_create_request_visitor_identity_fields_display_name.rb → grants/types/grants_update_request_visitor_identity_fields_display_name.rb} +2 -2
- data/lib/CloudPDF/{shares/types/shares_update_request_visitor_identity_fields_title.rb → grants/types/grants_update_request_visitor_identity_fields_email.rb} +2 -2
- data/lib/CloudPDF/{shares/types/shares_create_request_visitor_identity_fields_organization.rb → grants/types/grants_update_request_visitor_identity_fields_organization.rb} +2 -2
- data/lib/CloudPDF/{shares/types/shares_create_request_visitor_identity_fields_organizational_unit.rb → grants/types/grants_update_request_visitor_identity_fields_organizational_unit.rb} +2 -2
- data/lib/CloudPDF/{shares/types/shares_create_request_visitor_identity_fields_email.rb → grants/types/grants_update_request_visitor_identity_fields_title.rb} +2 -2
- data/lib/CloudPDF/{shares/types/list_shares_request.rb → grants/types/list_grants_request.rb} +2 -2
- data/lib/CloudPDF/{shares → grants}/visitors/client.rb +12 -12
- data/lib/CloudPDF/{shares → grants}/visitors/types/delete_visitors_request.rb +2 -2
- data/lib/CloudPDF/{shares → grants}/visitors/types/list_visitors_request.rb +2 -2
- data/lib/CloudPDF/tenants/client.rb +1 -1
- data/lib/CloudPDF/types/documents_layers_list200response_layers_item.rb +1 -1
- data/lib/CloudPDF/types/engine_error_payload_code.rb +1 -1
- data/lib/CloudPDF/types/grants_archive200response.rb +9 -0
- data/lib/CloudPDF/types/{shares_archive200response_share.rb → grants_archive200response_grant.rb} +6 -4
- data/lib/CloudPDF/types/{shares_archive200response_share_layer_mode.rb → grants_archive200response_grant_layer_mode.rb} +1 -1
- data/lib/CloudPDF/types/grants_archive200response_grant_visitor_identity.rb +15 -0
- data/lib/CloudPDF/types/{shares_archive200response_share_visitor_identity_ask.rb → grants_archive200response_grant_visitor_identity_ask.rb} +1 -1
- data/lib/CloudPDF/types/grants_archive200response_grant_visitor_identity_fields.rb +17 -0
- data/lib/CloudPDF/types/{shares_archive200response_share_visitor_identity_fields_display_name.rb → grants_archive200response_grant_visitor_identity_fields_display_name.rb} +1 -1
- data/lib/CloudPDF/types/{shares_archive200response_share_visitor_identity_fields_email.rb → grants_archive200response_grant_visitor_identity_fields_email.rb} +1 -1
- data/lib/CloudPDF/types/{shares_archive200response_share_visitor_identity_fields_organization.rb → grants_archive200response_grant_visitor_identity_fields_organization.rb} +1 -1
- data/lib/CloudPDF/types/{shares_archive200response_share_visitor_identity_fields_organizational_unit.rb → grants_archive200response_grant_visitor_identity_fields_organizational_unit.rb} +1 -1
- data/lib/CloudPDF/types/{shares_archive200response_share_visitor_identity_fields_title.rb → grants_archive200response_grant_visitor_identity_fields_title.rb} +1 -1
- data/lib/CloudPDF/types/{shares_archive404response.rb → grants_archive404response.rb} +2 -2
- data/lib/CloudPDF/types/grants_create200response.rb +9 -0
- data/lib/CloudPDF/types/{shares_update200response_share.rb → grants_create200response_grant.rb} +6 -4
- data/lib/CloudPDF/types/{shares_create200response_share_layer_mode.rb → grants_create200response_grant_layer_mode.rb} +1 -1
- data/lib/CloudPDF/types/grants_create200response_grant_visitor_identity.rb +15 -0
- data/lib/CloudPDF/types/{shares_create200response_share_visitor_identity_ask.rb → grants_create200response_grant_visitor_identity_ask.rb} +1 -1
- data/lib/CloudPDF/types/grants_create200response_grant_visitor_identity_fields.rb +17 -0
- data/lib/CloudPDF/types/{shares_create200response_share_visitor_identity_fields_display_name.rb → grants_create200response_grant_visitor_identity_fields_display_name.rb} +1 -1
- data/lib/CloudPDF/types/{shares_update200response_share_visitor_identity_fields_email.rb → grants_create200response_grant_visitor_identity_fields_email.rb} +1 -1
- data/lib/CloudPDF/types/{shares_create200response_share_visitor_identity_fields_organization.rb → grants_create200response_grant_visitor_identity_fields_organization.rb} +1 -1
- data/lib/CloudPDF/types/{shares_create200response_share_visitor_identity_fields_organizational_unit.rb → grants_create200response_grant_visitor_identity_fields_organizational_unit.rb} +1 -1
- data/lib/CloudPDF/types/{shares_create200response_share_visitor_identity_fields_title.rb → grants_create200response_grant_visitor_identity_fields_title.rb} +1 -1
- data/lib/CloudPDF/types/{shares_delete404response.rb → grants_create400response.rb} +2 -2
- data/lib/CloudPDF/types/{shares_create400response.rb → grants_create403response.rb} +2 -2
- data/lib/CloudPDF/types/{shares_create403response.rb → grants_create404response.rb} +2 -2
- data/lib/CloudPDF/types/{shares_create404response.rb → grants_delete404response.rb} +2 -2
- data/lib/CloudPDF/types/grants_delete409response.rb +23 -0
- data/lib/CloudPDF/types/{shares_exchange200response.rb → grants_exchange200response.rb} +3 -3
- data/lib/CloudPDF/types/{shares_exchange200response_layer_mode.rb → grants_exchange200response_layer_mode.rb} +1 -1
- data/lib/CloudPDF/types/{shares_exchange200response_visitor.rb → grants_exchange200response_visitor.rb} +2 -2
- data/lib/CloudPDF/types/{shares_exchange200response_visitor_identity_request.rb → grants_exchange200response_visitor_identity_request.rb} +4 -4
- data/lib/CloudPDF/types/{shares_exchange200response_visitor_identity_request_fields.rb → grants_exchange200response_visitor_identity_request_fields.rb} +6 -6
- data/lib/CloudPDF/types/{shares_exchange200response_visitor_identity_request_fields_display_name.rb → grants_exchange200response_visitor_identity_request_fields_display_name.rb} +1 -1
- data/lib/CloudPDF/types/{shares_exchange200response_visitor_identity_request_fields_email.rb → grants_exchange200response_visitor_identity_request_fields_email.rb} +1 -1
- data/lib/CloudPDF/types/{shares_exchange200response_visitor_identity_request_fields_organization.rb → grants_exchange200response_visitor_identity_request_fields_organization.rb} +1 -1
- data/lib/CloudPDF/types/{shares_exchange200response_visitor_identity_request_fields_organizational_unit.rb → grants_exchange200response_visitor_identity_request_fields_organizational_unit.rb} +1 -1
- data/lib/CloudPDF/types/{shares_exchange200response_visitor_identity_request_fields_title.rb → grants_exchange200response_visitor_identity_request_fields_title.rb} +1 -1
- data/lib/CloudPDF/types/{shares_exchange200response_visitor_identity_request_invalid_item.rb → grants_exchange200response_visitor_identity_request_invalid_item.rb} +1 -1
- data/lib/CloudPDF/types/{shares_exchange200response_visitor_identity_request_missing_item.rb → grants_exchange200response_visitor_identity_request_missing_item.rb} +1 -1
- data/lib/CloudPDF/types/{shares_exchange400response.rb → grants_exchange400response.rb} +2 -2
- data/lib/CloudPDF/types/{shares_exchange403response.rb → grants_exchange403response.rb} +2 -2
- data/lib/CloudPDF/types/{shares_exchange404response.rb → grants_exchange404response.rb} +2 -2
- data/lib/CloudPDF/types/{shares_exchange410response.rb → grants_exchange410response.rb} +2 -2
- data/lib/CloudPDF/types/grants_exchange422response.rb +23 -0
- data/lib/CloudPDF/types/grants_get200response.rb +9 -0
- data/lib/CloudPDF/types/{shares_get200response_share.rb → grants_get200response_grant.rb} +6 -4
- data/lib/CloudPDF/types/{shares_get200response_share_layer_mode.rb → grants_get200response_grant_layer_mode.rb} +1 -1
- data/lib/CloudPDF/types/grants_get200response_grant_visitor_identity.rb +15 -0
- data/lib/CloudPDF/types/{shares_get200response_share_visitor_identity_ask.rb → grants_get200response_grant_visitor_identity_ask.rb} +1 -1
- data/lib/CloudPDF/types/grants_get200response_grant_visitor_identity_fields.rb +17 -0
- data/lib/CloudPDF/types/{shares_get200response_share_visitor_identity_fields_display_name.rb → grants_get200response_grant_visitor_identity_fields_display_name.rb} +1 -1
- data/lib/CloudPDF/types/{shares_get200response_share_visitor_identity_fields_email.rb → grants_get200response_grant_visitor_identity_fields_email.rb} +1 -1
- data/lib/CloudPDF/types/{shares_get200response_share_visitor_identity_fields_organization.rb → grants_get200response_grant_visitor_identity_fields_organization.rb} +1 -1
- data/lib/CloudPDF/types/{shares_get200response_share_visitor_identity_fields_organizational_unit.rb → grants_get200response_grant_visitor_identity_fields_organizational_unit.rb} +1 -1
- data/lib/CloudPDF/types/{shares_get200response_share_visitor_identity_fields_title.rb → grants_get200response_grant_visitor_identity_fields_title.rb} +1 -1
- data/lib/CloudPDF/types/{shares_get404response.rb → grants_get404response.rb} +2 -2
- data/lib/CloudPDF/types/{shares_list200response.rb → grants_list200response.rb} +2 -2
- data/lib/CloudPDF/types/{shares_list200response_shares_item.rb → grants_list200response_grants_item.rb} +6 -4
- data/lib/CloudPDF/types/grants_list200response_grants_item_layer_mode.rb +12 -0
- data/lib/CloudPDF/types/grants_list200response_grants_item_visitor_identity.rb +15 -0
- data/lib/CloudPDF/types/{shares_list200response_shares_item_visitor_identity_ask.rb → grants_list200response_grants_item_visitor_identity_ask.rb} +1 -1
- data/lib/CloudPDF/types/grants_list200response_grants_item_visitor_identity_fields.rb +17 -0
- data/lib/CloudPDF/types/{shares_list200response_shares_item_visitor_identity_fields_display_name.rb → grants_list200response_grants_item_visitor_identity_fields_display_name.rb} +1 -1
- data/lib/CloudPDF/types/{shares_list200response_shares_item_visitor_identity_fields_email.rb → grants_list200response_grants_item_visitor_identity_fields_email.rb} +1 -1
- data/lib/CloudPDF/types/{shares_list200response_shares_item_visitor_identity_fields_organization.rb → grants_list200response_grants_item_visitor_identity_fields_organization.rb} +1 -1
- data/lib/CloudPDF/types/{shares_list200response_shares_item_visitor_identity_fields_organizational_unit.rb → grants_list200response_grants_item_visitor_identity_fields_organizational_unit.rb} +1 -1
- data/lib/CloudPDF/types/{shares_list200response_shares_item_visitor_identity_fields_title.rb → grants_list200response_grants_item_visitor_identity_fields_title.rb} +1 -1
- data/lib/CloudPDF/types/{shares_list400response.rb → grants_list400response.rb} +2 -2
- data/lib/CloudPDF/types/grants_update200response.rb +9 -0
- data/lib/CloudPDF/types/{shares_create200response_share.rb → grants_update200response_grant.rb} +6 -4
- data/lib/CloudPDF/types/{shares_update200response_share_layer_mode.rb → grants_update200response_grant_layer_mode.rb} +1 -1
- data/lib/CloudPDF/types/grants_update200response_grant_visitor_identity.rb +15 -0
- data/lib/CloudPDF/types/{shares_update200response_share_visitor_identity_ask.rb → grants_update200response_grant_visitor_identity_ask.rb} +1 -1
- data/lib/CloudPDF/types/grants_update200response_grant_visitor_identity_fields.rb +17 -0
- data/lib/CloudPDF/types/{shares_update200response_share_visitor_identity_fields_display_name.rb → grants_update200response_grant_visitor_identity_fields_display_name.rb} +1 -1
- data/lib/CloudPDF/types/{shares_create200response_share_visitor_identity_fields_email.rb → grants_update200response_grant_visitor_identity_fields_email.rb} +1 -1
- data/lib/CloudPDF/types/{shares_update200response_share_visitor_identity_fields_organization.rb → grants_update200response_grant_visitor_identity_fields_organization.rb} +1 -1
- data/lib/CloudPDF/types/{shares_update200response_share_visitor_identity_fields_organizational_unit.rb → grants_update200response_grant_visitor_identity_fields_organizational_unit.rb} +1 -1
- data/lib/CloudPDF/types/{shares_update200response_share_visitor_identity_fields_title.rb → grants_update200response_grant_visitor_identity_fields_title.rb} +1 -1
- data/lib/CloudPDF/types/grants_update400response.rb +23 -0
- data/lib/CloudPDF/types/grants_update404response.rb +23 -0
- data/lib/CloudPDF/types/grants_update409response.rb +23 -0
- data/lib/CloudPDF/types/{shares_visitors_delete_response.rb → grants_visitors_delete_response.rb} +2 -2
- data/lib/CloudPDF/types/{shares_visitors_list200response.rb → grants_visitors_list200response.rb} +2 -2
- data/lib/CloudPDF/types/{shares_visitors_list200response_visitors_item.rb → grants_visitors_list200response_visitors_item.rb} +3 -3
- data/lib/CloudPDF/types/{shares_visitors_list200response_visitors_item_answers.rb → grants_visitors_list200response_visitors_item_answers.rb} +1 -1
- data/lib/CloudPDF/types/{shares_visitors_list200response_visitors_item_layer.rb → grants_visitors_list200response_visitors_item_layer.rb} +1 -1
- data/lib/CloudPDF/types/{shares_visitors_list400response.rb → grants_visitors_list400response.rb} +2 -2
- data/lib/CloudPDF/types/{shares_visitors_list404response.rb → grants_visitors_list404response.rb} +2 -2
- data/lib/CloudPDF/version.rb +1 -1
- data/lib/cloudpdf.rb +120 -120
- data/reference.md +73 -57
- metadata +122 -122
- data/lib/CloudPDF/shares/types/shares_exchange_request.rb +0 -19
- data/lib/CloudPDF/types/shares_archive200response.rb +0 -9
- data/lib/CloudPDF/types/shares_archive200response_share_visitor_identity.rb +0 -15
- data/lib/CloudPDF/types/shares_archive200response_share_visitor_identity_fields.rb +0 -17
- data/lib/CloudPDF/types/shares_create200response.rb +0 -9
- data/lib/CloudPDF/types/shares_create200response_share_visitor_identity.rb +0 -15
- data/lib/CloudPDF/types/shares_create200response_share_visitor_identity_fields.rb +0 -17
- data/lib/CloudPDF/types/shares_delete409response.rb +0 -23
- data/lib/CloudPDF/types/shares_exchange422response.rb +0 -23
- data/lib/CloudPDF/types/shares_get200response.rb +0 -9
- data/lib/CloudPDF/types/shares_get200response_share_visitor_identity.rb +0 -15
- data/lib/CloudPDF/types/shares_get200response_share_visitor_identity_fields.rb +0 -17
- data/lib/CloudPDF/types/shares_list200response_shares_item_layer_mode.rb +0 -12
- data/lib/CloudPDF/types/shares_list200response_shares_item_visitor_identity.rb +0 -15
- data/lib/CloudPDF/types/shares_list200response_shares_item_visitor_identity_fields.rb +0 -17
- data/lib/CloudPDF/types/shares_update200response.rb +0 -9
- data/lib/CloudPDF/types/shares_update200response_share_visitor_identity.rb +0 -15
- data/lib/CloudPDF/types/shares_update200response_share_visitor_identity_fields.rb +0 -17
- data/lib/CloudPDF/types/shares_update400response.rb +0 -23
- data/lib/CloudPDF/types/shares_update404response.rb +0 -23
- data/lib/CloudPDF/types/shares_update409response.rb +0 -23
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a1c37b3981c0f40377e822a5f54c659b11509cbf472d907d15dd09f8ee6cb431
|
|
4
|
+
data.tar.gz: b475d2013a5b323e9196ad8970e7f1d89ef7d852e2b46076fd01c48edc2754d6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 49f37a312d6ef11f3ce66aedb7cbb9eba61067ed79aa9db70a8b86c260005a162bd51f0293ebaae666146c11e5bd5105a668547d7a453c785f026eb563f53bc6
|
|
7
|
+
data.tar.gz: 6d65aa063488045912ef5ae09d49b814cc6bc40f4fe1c6e6389d36afc17212de6f1044533f426b88271a0df5a684bdffc893ed7d48029f8a0fd82427eca3355c
|
data/.fern/metadata.json
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
"generatorConfig": {
|
|
6
6
|
"moduleName": "CloudPDF"
|
|
7
7
|
},
|
|
8
|
-
"originGitCommit": "
|
|
8
|
+
"originGitCommit": "0606e988ebff3773183ef02e0a820c36b3a25f8d",
|
|
9
9
|
"originGitCommitIsDirty": false,
|
|
10
10
|
"invokedBy": "ci",
|
|
11
|
-
"requestedVersion": "3.0.0.alpha.
|
|
11
|
+
"requestedVersion": "3.0.0.alpha.19",
|
|
12
12
|
"ciProvider": "github"
|
|
13
13
|
}
|
data/lib/CloudPDF/client.rb
CHANGED
|
@@ -28,9 +28,9 @@ module CloudPDF
|
|
|
28
28
|
@doc ||= CloudPDF::Doc::Client.new(client: @raw_client)
|
|
29
29
|
end
|
|
30
30
|
|
|
31
|
-
# @return [CloudPDF::
|
|
32
|
-
def
|
|
33
|
-
@
|
|
31
|
+
# @return [CloudPDF::Grants::Client]
|
|
32
|
+
def grants
|
|
33
|
+
@grants ||= CloudPDF::Grants::Client.new(client: @raw_client)
|
|
34
34
|
end
|
|
35
35
|
|
|
36
36
|
# @return [CloudPDF::Tenants::Client]
|
|
@@ -22,7 +22,7 @@ module CloudPDF
|
|
|
22
22
|
# @option params [String] :id
|
|
23
23
|
# @option params [Integer, nil] :limit
|
|
24
24
|
# @option params [String, nil] :cursor
|
|
25
|
-
# @option params [String, nil] :
|
|
25
|
+
# @option params [String, nil] :grant_id
|
|
26
26
|
#
|
|
27
27
|
# @example
|
|
28
28
|
# client.documents.layers.list(
|
|
@@ -36,7 +36,7 @@ module CloudPDF
|
|
|
36
36
|
query_params = {}
|
|
37
37
|
query_params["limit"] = params[:limit] if params.key?(:limit)
|
|
38
38
|
query_params["cursor"] = params[:cursor] if params.key?(:cursor)
|
|
39
|
-
query_params["
|
|
39
|
+
query_params["grantId"] = params[:grant_id] if params.key?(:grant_id)
|
|
40
40
|
|
|
41
41
|
request = CloudPDF::Internal::JSON::Request.new(
|
|
42
42
|
base_url: request_options[:base_url],
|
|
@@ -13,7 +13,7 @@ module CloudPDF
|
|
|
13
13
|
|
|
14
14
|
field :cursor, -> { String }, optional: true, nullable: false
|
|
15
15
|
|
|
16
|
-
field :
|
|
16
|
+
field :grant_id, -> { String }, optional: true, nullable: false, api_name: "grantId"
|
|
17
17
|
end
|
|
18
18
|
end
|
|
19
19
|
end
|
|
@@ -142,7 +142,7 @@ module CloudPDF
|
|
|
142
142
|
# Without recursive, a folder with anything inside is refused: 409 Conflict with `details.reason` `not-empty` and
|
|
143
143
|
# what it holds, counted over every level below, in `details.folders` and `details.documents`. With
|
|
144
144
|
# recursive=true, the folder and every folder under it go at once, and every document in them stops opening,
|
|
145
|
-
# leaves every list and stops answering its
|
|
145
|
+
# leaves every list and stops answering its grants at once; their stored files and grants are removed in the
|
|
146
146
|
# background. Uploads into those folders that have not committed cannot commit.
|
|
147
147
|
#
|
|
148
148
|
# @param request_options [Hash]
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
module CloudPDF
|
|
4
|
-
module
|
|
4
|
+
module Grants
|
|
5
5
|
class Client
|
|
6
6
|
# @param client [CloudPDF::Internal::Http::RawClient]
|
|
7
7
|
#
|
|
@@ -10,17 +10,17 @@ module CloudPDF
|
|
|
10
10
|
@client = client
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
-
# Unauthenticated, but requires a browser Origin header, checked against the grant allowlist. Unknown,
|
|
14
|
-
# and
|
|
15
|
-
# until `
|
|
16
|
-
# VisitorIdentityRequired until the required answers are given; `error.details` carries `fields` (what
|
|
17
|
-
# asks), `missing`, `invalid`, `purpose` and `privacyUrl`. A
|
|
18
|
-
# session at once with `visitor.identityRequest`, and writes answer 403 VisitorIdentityRequired with
|
|
19
|
-
# details until the visitor exchanges again with their answers. Answers that can not be taken answer 422
|
|
20
|
-
#
|
|
13
|
+
# Unauthenticated, but requires a browser Origin header, checked against the grant allowlist. Unknown, deleted,
|
|
14
|
+
# paused and archived grants are indistinguishable (404). Passphrase-protected grants return 422
|
|
15
|
+
# GrantPassphraseRequired until `passphrase` is supplied. A grant that asks its visitors who they are on open
|
|
16
|
+
# returns 422 VisitorIdentityRequired until the required answers are given; `error.details` carries `fields` (what
|
|
17
|
+
# the grant asks), `missing`, `invalid`, `purpose` and `privacyUrl`. A grant that asks before the first change
|
|
18
|
+
# issues the session at once with `visitor.identityRequest`, and writes answer 403 VisitorIdentityRequired with
|
|
19
|
+
# the same details until the visitor exchanges again with their answers. Answers that can not be taken answer 422
|
|
20
|
+
# on any grant. Mounted only when the deployment can sign (HS256 mode).
|
|
21
21
|
#
|
|
22
22
|
# @param request_options [Hash]
|
|
23
|
-
# @param params [CloudPDF::
|
|
23
|
+
# @param params [CloudPDF::Grants::Types::GrantsExchangeRequest]
|
|
24
24
|
# @option request_options [String] :base_url
|
|
25
25
|
# @option request_options [Hash{String => Object}] :additional_headers
|
|
26
26
|
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
@@ -28,16 +28,16 @@ module CloudPDF
|
|
|
28
28
|
# @option request_options [Integer] :timeout_in_seconds
|
|
29
29
|
#
|
|
30
30
|
# @example
|
|
31
|
-
# client.
|
|
31
|
+
# client.grants.exchange(grant: "grant")
|
|
32
32
|
#
|
|
33
|
-
# @return [CloudPDF::Types::
|
|
33
|
+
# @return [CloudPDF::Types::GrantsExchange200Response]
|
|
34
34
|
def exchange(request_options: {}, **params)
|
|
35
35
|
params = CloudPDF::Internal::Types::Utils.normalize_keys(params)
|
|
36
36
|
request = CloudPDF::Internal::JSON::Request.new(
|
|
37
37
|
base_url: request_options[:base_url],
|
|
38
38
|
method: "POST",
|
|
39
|
-
path: "v1/
|
|
40
|
-
body: CloudPDF::
|
|
39
|
+
path: "v1/grant-sessions",
|
|
40
|
+
body: CloudPDF::Grants::Types::GrantsExchangeRequest.new(params).to_h,
|
|
41
41
|
request_options: request_options
|
|
42
42
|
)
|
|
43
43
|
begin
|
|
@@ -47,7 +47,7 @@ module CloudPDF
|
|
|
47
47
|
end
|
|
48
48
|
code = response.code.to_i
|
|
49
49
|
if code.between?(200, 299)
|
|
50
|
-
(response.body.to_s.empty? ? nil : CloudPDF::Types::
|
|
50
|
+
(response.body.to_s.empty? ? nil : CloudPDF::Types::GrantsExchange200Response.load(response.body))
|
|
51
51
|
else
|
|
52
52
|
error_class = CloudPDF::Errors::ResponseError.subclass_for_code(code)
|
|
53
53
|
raise error_class.new(response.body, code: code)
|
|
@@ -68,9 +68,9 @@ module CloudPDF
|
|
|
68
68
|
# @option params [Boolean, nil] :archived
|
|
69
69
|
#
|
|
70
70
|
# @example
|
|
71
|
-
# client.
|
|
71
|
+
# client.grants.list(tenant_id: "tenantId")
|
|
72
72
|
#
|
|
73
|
-
# @return [CloudPDF::Types::
|
|
73
|
+
# @return [CloudPDF::Types::GrantsList200Response]
|
|
74
74
|
def list(request_options: {}, **params)
|
|
75
75
|
params = CloudPDF::Internal::Types::Utils.normalize_keys(params)
|
|
76
76
|
query_params = {}
|
|
@@ -82,7 +82,7 @@ module CloudPDF
|
|
|
82
82
|
request = CloudPDF::Internal::JSON::Request.new(
|
|
83
83
|
base_url: request_options[:base_url],
|
|
84
84
|
method: "GET",
|
|
85
|
-
path: "v1/tenants/#{URI.encode_uri_component(params[:tenant_id].to_s)}/
|
|
85
|
+
path: "v1/tenants/#{URI.encode_uri_component(params[:tenant_id].to_s)}/grants",
|
|
86
86
|
query: query_params,
|
|
87
87
|
request_options: request_options
|
|
88
88
|
)
|
|
@@ -93,18 +93,18 @@ module CloudPDF
|
|
|
93
93
|
end
|
|
94
94
|
code = response.code.to_i
|
|
95
95
|
if code.between?(200, 299)
|
|
96
|
-
(response.body.to_s.empty? ? nil : CloudPDF::Types::
|
|
96
|
+
(response.body.to_s.empty? ? nil : CloudPDF::Types::GrantsList200Response.load(response.body))
|
|
97
97
|
else
|
|
98
98
|
error_class = CloudPDF::Errors::ResponseError.subclass_for_code(code)
|
|
99
99
|
raise error_class.new(response.body, code: code)
|
|
100
100
|
end
|
|
101
101
|
end
|
|
102
102
|
|
|
103
|
-
# The returned
|
|
103
|
+
# The returned id is what a link page or an embed opens. Mounted only when the deployment can sign (HS256 mode) —
|
|
104
104
|
# exchange mints session JWTs, so grants exist only where minting does.
|
|
105
105
|
#
|
|
106
106
|
# @param request_options [Hash]
|
|
107
|
-
# @param params [CloudPDF::
|
|
107
|
+
# @param params [CloudPDF::Grants::Types::GrantsCreateRequest]
|
|
108
108
|
# @option request_options [String] :base_url
|
|
109
109
|
# @option request_options [Hash{String => Object}] :additional_headers
|
|
110
110
|
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
@@ -113,23 +113,23 @@ module CloudPDF
|
|
|
113
113
|
# @option params [String] :tenant_id
|
|
114
114
|
#
|
|
115
115
|
# @example
|
|
116
|
-
# client.
|
|
116
|
+
# client.grants.create(
|
|
117
117
|
# tenant_id: "tenantId",
|
|
118
118
|
# doc_id: "docId",
|
|
119
119
|
# scope: ["scope"]
|
|
120
120
|
# )
|
|
121
121
|
#
|
|
122
|
-
# @return [CloudPDF::Types::
|
|
122
|
+
# @return [CloudPDF::Types::GrantsCreate200Response]
|
|
123
123
|
def create(request_options: {}, **params)
|
|
124
124
|
params = CloudPDF::Internal::Types::Utils.normalize_keys(params)
|
|
125
|
-
request_data = CloudPDF::
|
|
125
|
+
request_data = CloudPDF::Grants::Types::GrantsCreateRequest.new(params).to_h
|
|
126
126
|
non_body_param_names = %w[tenantId]
|
|
127
127
|
body = request_data.except(*non_body_param_names)
|
|
128
128
|
|
|
129
129
|
request = CloudPDF::Internal::JSON::Request.new(
|
|
130
130
|
base_url: request_options[:base_url],
|
|
131
131
|
method: "POST",
|
|
132
|
-
path: "v1/tenants/#{URI.encode_uri_component(params[:tenant_id].to_s)}/
|
|
132
|
+
path: "v1/tenants/#{URI.encode_uri_component(params[:tenant_id].to_s)}/grants",
|
|
133
133
|
body: body,
|
|
134
134
|
request_options: request_options
|
|
135
135
|
)
|
|
@@ -140,7 +140,7 @@ module CloudPDF
|
|
|
140
140
|
end
|
|
141
141
|
code = response.code.to_i
|
|
142
142
|
if code.between?(200, 299)
|
|
143
|
-
(response.body.to_s.empty? ? nil : CloudPDF::Types::
|
|
143
|
+
(response.body.to_s.empty? ? nil : CloudPDF::Types::GrantsCreate200Response.load(response.body))
|
|
144
144
|
else
|
|
145
145
|
error_class = CloudPDF::Errors::ResponseError.subclass_for_code(code)
|
|
146
146
|
raise error_class.new(response.body, code: code)
|
|
@@ -155,21 +155,21 @@ module CloudPDF
|
|
|
155
155
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
156
156
|
# @option request_options [Integer] :timeout_in_seconds
|
|
157
157
|
# @option params [String] :tenant_id
|
|
158
|
-
# @option params [String] :
|
|
158
|
+
# @option params [String] :grant_id
|
|
159
159
|
#
|
|
160
160
|
# @example
|
|
161
|
-
# client.
|
|
161
|
+
# client.grants.get(
|
|
162
162
|
# tenant_id: "tenantId",
|
|
163
|
-
#
|
|
163
|
+
# grant_id: "grantId"
|
|
164
164
|
# )
|
|
165
165
|
#
|
|
166
|
-
# @return [CloudPDF::Types::
|
|
166
|
+
# @return [CloudPDF::Types::GrantsGet200Response]
|
|
167
167
|
def get(request_options: {}, **params)
|
|
168
168
|
params = CloudPDF::Internal::Types::Utils.normalize_keys(params)
|
|
169
169
|
request = CloudPDF::Internal::JSON::Request.new(
|
|
170
170
|
base_url: request_options[:base_url],
|
|
171
171
|
method: "GET",
|
|
172
|
-
path: "v1/tenants/#{URI.encode_uri_component(params[:tenant_id].to_s)}/
|
|
172
|
+
path: "v1/tenants/#{URI.encode_uri_component(params[:tenant_id].to_s)}/grants/#{URI.encode_uri_component(params[:grant_id].to_s)}",
|
|
173
173
|
request_options: request_options
|
|
174
174
|
)
|
|
175
175
|
begin
|
|
@@ -179,7 +179,7 @@ module CloudPDF
|
|
|
179
179
|
end
|
|
180
180
|
code = response.code.to_i
|
|
181
181
|
if code.between?(200, 299)
|
|
182
|
-
(response.body.to_s.empty? ? nil : CloudPDF::Types::
|
|
182
|
+
(response.body.to_s.empty? ? nil : CloudPDF::Types::GrantsGet200Response.load(response.body))
|
|
183
183
|
else
|
|
184
184
|
error_class = CloudPDF::Errors::ResponseError.subclass_for_code(code)
|
|
185
185
|
raise error_class.new(response.body, code: code)
|
|
@@ -194,12 +194,12 @@ module CloudPDF
|
|
|
194
194
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
195
195
|
# @option request_options [Integer] :timeout_in_seconds
|
|
196
196
|
# @option params [String] :tenant_id
|
|
197
|
-
# @option params [String] :
|
|
197
|
+
# @option params [String] :grant_id
|
|
198
198
|
#
|
|
199
199
|
# @example
|
|
200
|
-
# client.
|
|
200
|
+
# client.grants.delete(
|
|
201
201
|
# tenant_id: "tenantId",
|
|
202
|
-
#
|
|
202
|
+
# grant_id: "grantId"
|
|
203
203
|
# )
|
|
204
204
|
#
|
|
205
205
|
# @return [untyped]
|
|
@@ -208,7 +208,7 @@ module CloudPDF
|
|
|
208
208
|
request = CloudPDF::Internal::JSON::Request.new(
|
|
209
209
|
base_url: request_options[:base_url],
|
|
210
210
|
method: "DELETE",
|
|
211
|
-
path: "v1/tenants/#{URI.encode_uri_component(params[:tenant_id].to_s)}/
|
|
211
|
+
path: "v1/tenants/#{URI.encode_uri_component(params[:tenant_id].to_s)}/grants/#{URI.encode_uri_component(params[:grant_id].to_s)}",
|
|
212
212
|
request_options: request_options
|
|
213
213
|
)
|
|
214
214
|
begin
|
|
@@ -224,32 +224,32 @@ module CloudPDF
|
|
|
224
224
|
end
|
|
225
225
|
|
|
226
226
|
# @param request_options [Hash]
|
|
227
|
-
# @param params [CloudPDF::
|
|
227
|
+
# @param params [CloudPDF::Grants::Types::GrantsUpdateRequest]
|
|
228
228
|
# @option request_options [String] :base_url
|
|
229
229
|
# @option request_options [Hash{String => Object}] :additional_headers
|
|
230
230
|
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
231
231
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
232
232
|
# @option request_options [Integer] :timeout_in_seconds
|
|
233
233
|
# @option params [String] :tenant_id
|
|
234
|
-
# @option params [String] :
|
|
234
|
+
# @option params [String] :grant_id
|
|
235
235
|
#
|
|
236
236
|
# @example
|
|
237
|
-
# client.
|
|
237
|
+
# client.grants.update(
|
|
238
238
|
# tenant_id: "tenantId",
|
|
239
|
-
#
|
|
239
|
+
# grant_id: "grantId"
|
|
240
240
|
# )
|
|
241
241
|
#
|
|
242
|
-
# @return [CloudPDF::Types::
|
|
242
|
+
# @return [CloudPDF::Types::GrantsUpdate200Response]
|
|
243
243
|
def update(request_options: {}, **params)
|
|
244
244
|
params = CloudPDF::Internal::Types::Utils.normalize_keys(params)
|
|
245
|
-
request_data = CloudPDF::
|
|
246
|
-
non_body_param_names = %w[tenantId
|
|
245
|
+
request_data = CloudPDF::Grants::Types::GrantsUpdateRequest.new(params).to_h
|
|
246
|
+
non_body_param_names = %w[tenantId grantId]
|
|
247
247
|
body = request_data.except(*non_body_param_names)
|
|
248
248
|
|
|
249
249
|
request = CloudPDF::Internal::JSON::Request.new(
|
|
250
250
|
base_url: request_options[:base_url],
|
|
251
251
|
method: "PATCH",
|
|
252
|
-
path: "v1/tenants/#{URI.encode_uri_component(params[:tenant_id].to_s)}/
|
|
252
|
+
path: "v1/tenants/#{URI.encode_uri_component(params[:tenant_id].to_s)}/grants/#{URI.encode_uri_component(params[:grant_id].to_s)}",
|
|
253
253
|
body: body,
|
|
254
254
|
request_options: request_options
|
|
255
255
|
)
|
|
@@ -260,16 +260,16 @@ module CloudPDF
|
|
|
260
260
|
end
|
|
261
261
|
code = response.code.to_i
|
|
262
262
|
if code.between?(200, 299)
|
|
263
|
-
(response.body.to_s.empty? ? nil : CloudPDF::Types::
|
|
263
|
+
(response.body.to_s.empty? ? nil : CloudPDF::Types::GrantsUpdate200Response.load(response.body))
|
|
264
264
|
else
|
|
265
265
|
error_class = CloudPDF::Errors::ResponseError.subclass_for_code(code)
|
|
266
266
|
raise error_class.new(response.body, code: code)
|
|
267
267
|
end
|
|
268
268
|
end
|
|
269
269
|
|
|
270
|
-
# Archiving is final: an archived
|
|
271
|
-
# (`disabled`) is the reversible stop. An archived
|
|
272
|
-
# can be deleted.
|
|
270
|
+
# Archiving is final: an archived grant never exchanges again, and to give access again you create a new grant.
|
|
271
|
+
# Pausing (`disabled`) is the reversible stop. An archived grant no longer counts as using its shared layer, so
|
|
272
|
+
# that layer can be deleted.
|
|
273
273
|
#
|
|
274
274
|
# @param request_options [Hash]
|
|
275
275
|
# @param params [Hash]
|
|
@@ -279,21 +279,21 @@ module CloudPDF
|
|
|
279
279
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
280
280
|
# @option request_options [Integer] :timeout_in_seconds
|
|
281
281
|
# @option params [String] :tenant_id
|
|
282
|
-
# @option params [String] :
|
|
282
|
+
# @option params [String] :grant_id
|
|
283
283
|
#
|
|
284
284
|
# @example
|
|
285
|
-
# client.
|
|
285
|
+
# client.grants.archive(
|
|
286
286
|
# tenant_id: "tenantId",
|
|
287
|
-
#
|
|
287
|
+
# grant_id: "grantId"
|
|
288
288
|
# )
|
|
289
289
|
#
|
|
290
|
-
# @return [CloudPDF::Types::
|
|
290
|
+
# @return [CloudPDF::Types::GrantsArchive200Response]
|
|
291
291
|
def archive(request_options: {}, **params)
|
|
292
292
|
params = CloudPDF::Internal::Types::Utils.normalize_keys(params)
|
|
293
293
|
request = CloudPDF::Internal::JSON::Request.new(
|
|
294
294
|
base_url: request_options[:base_url],
|
|
295
295
|
method: "POST",
|
|
296
|
-
path: "v1/tenants/#{URI.encode_uri_component(params[:tenant_id].to_s)}/
|
|
296
|
+
path: "v1/tenants/#{URI.encode_uri_component(params[:tenant_id].to_s)}/grants/#{URI.encode_uri_component(params[:grant_id].to_s)}/archive",
|
|
297
297
|
request_options: request_options
|
|
298
298
|
)
|
|
299
299
|
begin
|
|
@@ -303,7 +303,7 @@ module CloudPDF
|
|
|
303
303
|
end
|
|
304
304
|
code = response.code.to_i
|
|
305
305
|
if code.between?(200, 299)
|
|
306
|
-
(response.body.to_s.empty? ? nil : CloudPDF::Types::
|
|
306
|
+
(response.body.to_s.empty? ? nil : CloudPDF::Types::GrantsArchive200Response.load(response.body))
|
|
307
307
|
else
|
|
308
308
|
error_class = CloudPDF::Errors::ResponseError.subclass_for_code(code)
|
|
309
309
|
raise error_class.new(response.body, code: code)
|
|
@@ -312,7 +312,7 @@ module CloudPDF
|
|
|
312
312
|
|
|
313
313
|
# @return [CloudPDF::Visitors::Client]
|
|
314
314
|
def visitors
|
|
315
|
-
@visitors ||= CloudPDF::
|
|
315
|
+
@visitors ||= CloudPDF::Grants::Visitors::Client.new(client: @client)
|
|
316
316
|
end
|
|
317
317
|
end
|
|
318
318
|
end
|
data/lib/CloudPDF/{shares/types/archive_shares_request.rb → grants/types/archive_grants_request.rb}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
module CloudPDF
|
|
4
|
-
module
|
|
4
|
+
module Grants
|
|
5
5
|
module Types
|
|
6
|
-
class
|
|
6
|
+
class ArchiveGrantsRequest < Internal::Types::Model
|
|
7
7
|
field :tenant_id, -> { String }, optional: false, nullable: false, api_name: "tenantId"
|
|
8
8
|
|
|
9
|
-
field :
|
|
9
|
+
field :grant_id, -> { String }, optional: false, nullable: false, api_name: "grantId"
|
|
10
10
|
end
|
|
11
11
|
end
|
|
12
12
|
end
|
data/lib/CloudPDF/{shares/types/delete_shares_request.rb → grants/types/delete_grants_request.rb}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
module CloudPDF
|
|
4
|
-
module
|
|
4
|
+
module Grants
|
|
5
5
|
module Types
|
|
6
|
-
class
|
|
6
|
+
class DeleteGrantsRequest < Internal::Types::Model
|
|
7
7
|
field :tenant_id, -> { String }, optional: false, nullable: false, api_name: "tenantId"
|
|
8
8
|
|
|
9
|
-
field :
|
|
9
|
+
field :grant_id, -> { String }, optional: false, nullable: false, api_name: "grantId"
|
|
10
10
|
end
|
|
11
11
|
end
|
|
12
12
|
end
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
module CloudPDF
|
|
4
|
-
module
|
|
4
|
+
module Grants
|
|
5
5
|
module Types
|
|
6
|
-
class
|
|
6
|
+
class GetGrantsRequest < Internal::Types::Model
|
|
7
7
|
field :tenant_id, -> { String }, optional: false, nullable: false, api_name: "tenantId"
|
|
8
8
|
|
|
9
|
-
field :
|
|
9
|
+
field :grant_id, -> { String }, optional: false, nullable: false, api_name: "grantId"
|
|
10
10
|
end
|
|
11
11
|
end
|
|
12
12
|
end
|
data/lib/CloudPDF/{shares/types/shares_create_request.rb → grants/types/grants_create_request.rb}
RENAMED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
module CloudPDF
|
|
4
|
-
module
|
|
4
|
+
module Grants
|
|
5
5
|
module Types
|
|
6
|
-
class
|
|
6
|
+
class GrantsCreateRequest < Internal::Types::Model
|
|
7
7
|
field :tenant_id, -> { String }, optional: false, nullable: false, api_name: "tenantId"
|
|
8
8
|
|
|
9
9
|
field :doc_id, -> { String }, optional: false, nullable: false, api_name: "docId"
|
|
10
10
|
|
|
11
|
-
field :
|
|
11
|
+
field :name, -> { String }, optional: true, nullable: false
|
|
12
|
+
|
|
13
|
+
field :layer_mode, -> { CloudPDF::Grants::Types::GrantsCreateRequestLayerMode }, optional: true, nullable: false, api_name: "layerMode"
|
|
12
14
|
|
|
13
15
|
field :layer_name, -> { String }, optional: true, nullable: false, api_name: "layerName"
|
|
14
16
|
|
|
@@ -16,7 +18,7 @@ module CloudPDF
|
|
|
16
18
|
|
|
17
19
|
field :visitor_idle_seconds, -> { Integer }, optional: true, nullable: false, api_name: "visitorIdleSeconds"
|
|
18
20
|
|
|
19
|
-
field :visitor_identity, -> { CloudPDF::
|
|
21
|
+
field :visitor_identity, -> { CloudPDF::Grants::Types::GrantsCreateRequestVisitorIdentity }, optional: true, nullable: false, api_name: "visitorIdentity"
|
|
20
22
|
|
|
21
23
|
field :identity, -> { CloudPDF::Types::Identity }, optional: true, nullable: false
|
|
22
24
|
|
|
@@ -24,7 +26,7 @@ module CloudPDF
|
|
|
24
26
|
|
|
25
27
|
field :origins, -> { Internal::Types::Array[String] }, optional: true, nullable: false
|
|
26
28
|
|
|
27
|
-
field :
|
|
29
|
+
field :passphrase, -> { String }, optional: true, nullable: false
|
|
28
30
|
|
|
29
31
|
field :session_ttl_seconds, -> { Integer }, optional: true, nullable: false, api_name: "sessionTtlSeconds"
|
|
30
32
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
module CloudPDF
|
|
4
|
-
module
|
|
4
|
+
module Grants
|
|
5
5
|
module Types
|
|
6
|
-
class
|
|
7
|
-
field :fields, -> { CloudPDF::
|
|
6
|
+
class GrantsCreateRequestVisitorIdentity < Internal::Types::Model
|
|
7
|
+
field :fields, -> { CloudPDF::Grants::Types::GrantsCreateRequestVisitorIdentityFields }, optional: false, nullable: false
|
|
8
8
|
|
|
9
|
-
field :ask, -> { CloudPDF::
|
|
9
|
+
field :ask, -> { CloudPDF::Grants::Types::GrantsCreateRequestVisitorIdentityAsk }, optional: false, nullable: false
|
|
10
10
|
|
|
11
11
|
field :purpose, -> { String }, optional: true, nullable: false
|
|
12
12
|
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
module CloudPDF
|
|
4
|
-
module
|
|
4
|
+
module Grants
|
|
5
5
|
module Types
|
|
6
|
-
class
|
|
7
|
-
field :display_name, -> { CloudPDF::
|
|
6
|
+
class GrantsCreateRequestVisitorIdentityFields < Internal::Types::Model
|
|
7
|
+
field :display_name, -> { CloudPDF::Grants::Types::GrantsCreateRequestVisitorIdentityFieldsDisplayName }, optional: true, nullable: false, api_name: "displayName"
|
|
8
8
|
|
|
9
|
-
field :email, -> { CloudPDF::
|
|
9
|
+
field :email, -> { CloudPDF::Grants::Types::GrantsCreateRequestVisitorIdentityFieldsEmail }, optional: true, nullable: false
|
|
10
10
|
|
|
11
|
-
field :title, -> { CloudPDF::
|
|
11
|
+
field :title, -> { CloudPDF::Grants::Types::GrantsCreateRequestVisitorIdentityFieldsTitle }, optional: true, nullable: false
|
|
12
12
|
|
|
13
|
-
field :organization, -> { CloudPDF::
|
|
13
|
+
field :organization, -> { CloudPDF::Grants::Types::GrantsCreateRequestVisitorIdentityFieldsOrganization }, optional: true, nullable: false
|
|
14
14
|
|
|
15
|
-
field :organizational_unit, -> { CloudPDF::
|
|
15
|
+
field :organizational_unit, -> { CloudPDF::Grants::Types::GrantsCreateRequestVisitorIdentityFieldsOrganizationalUnit }, optional: true, nullable: false, api_name: "organizationalUnit"
|
|
16
16
|
end
|
|
17
17
|
end
|
|
18
18
|
end
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
module CloudPDF
|
|
4
|
-
module
|
|
4
|
+
module Grants
|
|
5
5
|
module Types
|
|
6
|
-
module
|
|
6
|
+
module GrantsCreateRequestVisitorIdentityFieldsDisplayName
|
|
7
7
|
extend CloudPDF::Internal::Types::Enum
|
|
8
8
|
|
|
9
9
|
REQUIRED = "required"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
module CloudPDF
|
|
4
|
-
module
|
|
4
|
+
module Grants
|
|
5
5
|
module Types
|
|
6
|
-
module
|
|
6
|
+
module GrantsCreateRequestVisitorIdentityFieldsEmail
|
|
7
7
|
extend CloudPDF::Internal::Types::Enum
|
|
8
8
|
|
|
9
9
|
REQUIRED = "required"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
module CloudPDF
|
|
4
|
-
module
|
|
4
|
+
module Grants
|
|
5
5
|
module Types
|
|
6
|
-
module
|
|
6
|
+
module GrantsCreateRequestVisitorIdentityFieldsOrganization
|
|
7
7
|
extend CloudPDF::Internal::Types::Enum
|
|
8
8
|
|
|
9
9
|
REQUIRED = "required"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
module CloudPDF
|
|
4
|
-
module
|
|
4
|
+
module Grants
|
|
5
5
|
module Types
|
|
6
|
-
module
|
|
6
|
+
module GrantsCreateRequestVisitorIdentityFieldsOrganizationalUnit
|
|
7
7
|
extend CloudPDF::Internal::Types::Enum
|
|
8
8
|
|
|
9
9
|
REQUIRED = "required"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
module CloudPDF
|
|
4
|
-
module
|
|
4
|
+
module Grants
|
|
5
5
|
module Types
|
|
6
|
-
module
|
|
6
|
+
module GrantsCreateRequestVisitorIdentityFieldsTitle
|
|
7
7
|
extend CloudPDF::Internal::Types::Enum
|
|
8
8
|
|
|
9
9
|
REQUIRED = "required"
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CloudPDF
|
|
4
|
+
module Grants
|
|
5
|
+
module Types
|
|
6
|
+
class GrantsExchangeRequest < Internal::Types::Model
|
|
7
|
+
field :grant, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :passphrase, -> { String }, optional: true, nullable: false
|
|
10
|
+
|
|
11
|
+
field :visitor_handle, -> { String }, optional: true, nullable: false, api_name: "visitorHandle"
|
|
12
|
+
|
|
13
|
+
field :restart, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
14
|
+
|
|
15
|
+
field :visitor_identity, -> { CloudPDF::Grants::Types::GrantsExchangeRequestVisitorIdentity }, optional: true, nullable: false, api_name: "visitorIdentity"
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|