cloudpdf 3.0.0.alpha.19 → 3.0.0.alpha.21
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/README.md +9 -1
- data/lib/CloudPDF/client.rb +1 -1
- data/lib/CloudPDF/doc/client.rb +5 -0
- data/lib/CloudPDF/doc/fonts/client.rb +116 -0
- data/lib/CloudPDF/doc/fonts/programs/client.rb +111 -0
- data/lib/CloudPDF/doc/fonts/programs/types/download_programs_request.rb +21 -0
- data/lib/CloudPDF/doc/fonts/programs/types/get_programs_request.rb +21 -0
- data/lib/CloudPDF/doc/fonts/types/list_fonts_request.rb +17 -0
- data/lib/CloudPDF/doc/fonts/types/resolve_fonts_request.rb +19 -0
- data/lib/CloudPDF/documents/client.rb +9 -1
- data/lib/CloudPDF/environment.rb +7 -0
- data/lib/CloudPDF/grants/client.rb +3 -2
- data/lib/CloudPDF/tenants/client.rb +49 -0
- data/lib/CloudPDF/tenants/types/tenants_update_request.rb +13 -0
- data/lib/CloudPDF/tokens/client.rb +4 -2
- data/lib/CloudPDF/types/annotation_caret.rb +2 -0
- data/lib/CloudPDF/types/annotation_circle.rb +2 -0
- data/lib/CloudPDF/types/annotation_draft_caret.rb +2 -0
- data/lib/CloudPDF/types/annotation_draft_circle.rb +2 -0
- data/lib/CloudPDF/types/annotation_draft_file_attachment.rb +2 -0
- data/lib/CloudPDF/types/annotation_draft_free_text.rb +2 -0
- data/lib/CloudPDF/types/annotation_draft_highlight.rb +2 -0
- data/lib/CloudPDF/types/annotation_draft_ink.rb +2 -0
- data/lib/CloudPDF/types/annotation_draft_line.rb +2 -0
- data/lib/CloudPDF/types/annotation_draft_link.rb +2 -0
- data/lib/CloudPDF/types/annotation_draft_polygon.rb +2 -0
- data/lib/CloudPDF/types/annotation_draft_polyline.rb +2 -0
- data/lib/CloudPDF/types/annotation_draft_popup.rb +2 -0
- data/lib/CloudPDF/types/annotation_draft_redact.rb +2 -0
- data/lib/CloudPDF/types/annotation_draft_square.rb +2 -0
- data/lib/CloudPDF/types/annotation_draft_squiggly.rb +2 -0
- data/lib/CloudPDF/types/annotation_draft_stamp.rb +2 -0
- data/lib/CloudPDF/types/annotation_draft_strikeout.rb +2 -0
- data/lib/CloudPDF/types/annotation_draft_text.rb +2 -0
- data/lib/CloudPDF/types/annotation_draft_underline.rb +2 -0
- data/lib/CloudPDF/types/annotation_draft_widget.rb +2 -0
- data/lib/CloudPDF/types/annotation_file_attachment.rb +2 -0
- data/lib/CloudPDF/types/annotation_free_text.rb +2 -0
- data/lib/CloudPDF/types/annotation_highlight.rb +2 -0
- data/lib/CloudPDF/types/annotation_ink.rb +2 -0
- data/lib/CloudPDF/types/annotation_line.rb +2 -0
- data/lib/CloudPDF/types/annotation_link.rb +2 -0
- data/lib/CloudPDF/types/annotation_mutation_meta.rb +2 -0
- data/lib/CloudPDF/types/annotation_patch_caret.rb +2 -0
- data/lib/CloudPDF/types/annotation_patch_circle.rb +2 -0
- data/lib/CloudPDF/types/annotation_patch_file_attachment.rb +2 -0
- data/lib/CloudPDF/types/annotation_patch_free_text.rb +2 -0
- data/lib/CloudPDF/types/annotation_patch_highlight.rb +2 -0
- data/lib/CloudPDF/types/annotation_patch_ink.rb +2 -0
- data/lib/CloudPDF/types/annotation_patch_line.rb +2 -0
- data/lib/CloudPDF/types/annotation_patch_link.rb +2 -0
- data/lib/CloudPDF/types/annotation_patch_polygon.rb +2 -0
- data/lib/CloudPDF/types/annotation_patch_polyline.rb +2 -0
- data/lib/CloudPDF/types/annotation_patch_popup.rb +2 -0
- data/lib/CloudPDF/types/annotation_patch_redact.rb +2 -0
- data/lib/CloudPDF/types/annotation_patch_square.rb +2 -0
- data/lib/CloudPDF/types/annotation_patch_squiggly.rb +2 -0
- data/lib/CloudPDF/types/annotation_patch_stamp.rb +2 -0
- data/lib/CloudPDF/types/annotation_patch_strikeout.rb +2 -0
- data/lib/CloudPDF/types/annotation_patch_text.rb +2 -0
- data/lib/CloudPDF/types/annotation_patch_underline.rb +2 -0
- data/lib/CloudPDF/types/annotation_polygon.rb +2 -0
- data/lib/CloudPDF/types/annotation_polyline.rb +2 -0
- data/lib/CloudPDF/types/annotation_popup.rb +2 -0
- data/lib/CloudPDF/types/annotation_redact.rb +2 -0
- data/lib/CloudPDF/types/annotation_square.rb +2 -0
- data/lib/CloudPDF/types/annotation_squiggly.rb +2 -0
- data/lib/CloudPDF/types/annotation_stamp.rb +2 -0
- data/lib/CloudPDF/types/annotation_strikeout.rb +2 -0
- data/lib/CloudPDF/types/annotation_text.rb +2 -0
- data/lib/CloudPDF/types/annotation_underline.rb +2 -0
- data/lib/CloudPDF/types/annotation_unsupported.rb +2 -0
- data/lib/CloudPDF/types/attachment_mutation_meta.rb +2 -0
- data/lib/CloudPDF/types/cache_delta.rb +2 -0
- data/lib/CloudPDF/types/change_item.rb +2 -0
- data/lib/CloudPDF/types/change_item_pages_copy.rb +13 -0
- data/lib/CloudPDF/types/change_item_pages_copy_layout.rb +15 -0
- data/lib/CloudPDF/types/change_item_pages_copy_layout_labels_item.rb +15 -0
- data/lib/CloudPDF/types/change_item_pages_copy_layout_labels_item_style.rb +15 -0
- data/lib/CloudPDF/types/change_item_pages_copy_layout_named_pages_item.rb +11 -0
- data/lib/CloudPDF/types/change_item_pages_copy_layout_named_pages_item_target.rb +17 -0
- data/lib/CloudPDF/types/change_item_pages_copy_layout_named_pages_item_target_dangling.rb +7 -0
- data/lib/CloudPDF/types/change_item_pages_copy_layout_named_pages_item_target_page.rb +9 -0
- data/lib/CloudPDF/types/change_item_pages_copy_layout_named_pages_item_target_template.rb +9 -0
- data/lib/CloudPDF/types/change_item_pages_copy_layout_pages_item.rb +27 -0
- data/lib/CloudPDF/types/change_item_pages_copy_layout_pages_item_boxes.rb +17 -0
- data/lib/CloudPDF/types/change_item_pages_copy_layout_pages_item_boxes_art.rb +15 -0
- data/lib/CloudPDF/types/change_item_pages_copy_layout_pages_item_boxes_bleed.rb +15 -0
- data/lib/CloudPDF/types/change_item_pages_copy_layout_pages_item_boxes_crop.rb +15 -0
- data/lib/CloudPDF/types/change_item_pages_copy_layout_pages_item_boxes_media.rb +15 -0
- data/lib/CloudPDF/types/change_item_pages_copy_layout_pages_item_boxes_trim.rb +15 -0
- data/lib/CloudPDF/types/change_item_pages_copy_layout_pages_item_pdf_crop_box.rb +15 -0
- data/lib/CloudPDF/types/change_item_pages_copy_layout_pages_item_size.rb +11 -0
- data/lib/CloudPDF/types/change_item_pages_copy_layout_pages_item_tab_order.rb +15 -0
- data/lib/CloudPDF/types/change_item_pages_delete_layout.rb +2 -0
- data/lib/CloudPDF/types/change_item_pages_delete_layout_labels_item.rb +15 -0
- data/lib/CloudPDF/types/change_item_pages_delete_layout_labels_item_style.rb +15 -0
- data/lib/CloudPDF/types/change_item_pages_insert_blank_layout.rb +2 -0
- data/lib/CloudPDF/types/change_item_pages_insert_blank_layout_labels_item.rb +15 -0
- data/lib/CloudPDF/types/change_item_pages_insert_blank_layout_labels_item_style.rb +15 -0
- data/lib/CloudPDF/types/change_item_pages_insert_layout.rb +2 -0
- data/lib/CloudPDF/types/change_item_pages_insert_layout_labels_item.rb +15 -0
- data/lib/CloudPDF/types/change_item_pages_insert_layout_labels_item_style.rb +15 -0
- data/lib/CloudPDF/types/change_item_pages_reorder_layout.rb +2 -0
- data/lib/CloudPDF/types/change_item_pages_reorder_layout_labels_item.rb +15 -0
- data/lib/CloudPDF/types/change_item_pages_reorder_layout_labels_item_style.rb +15 -0
- data/lib/CloudPDF/types/change_item_pages_restore_layout.rb +2 -0
- data/lib/CloudPDF/types/change_item_pages_restore_layout_labels_item.rb +15 -0
- data/lib/CloudPDF/types/change_item_pages_restore_layout_labels_item_style.rb +15 -0
- data/lib/CloudPDF/types/change_item_pages_rotate_layout.rb +2 -0
- data/lib/CloudPDF/types/change_item_pages_rotate_layout_labels_item.rb +15 -0
- data/lib/CloudPDF/types/change_item_pages_rotate_layout_labels_item_style.rb +15 -0
- data/lib/CloudPDF/types/change_item_skipped_op.rb +1 -0
- data/lib/CloudPDF/types/change_op.rb +2 -0
- data/lib/CloudPDF/types/change_op_pages_copy.rb +13 -0
- data/lib/CloudPDF/types/change_op_pages_insert.rb +2 -0
- data/lib/CloudPDF/types/doc_fonts_list200response.rb +23 -0
- data/lib/CloudPDF/types/doc_fonts_list404response.rb +23 -0
- data/lib/CloudPDF/types/doc_fonts_programs_download403response.rb +23 -0
- data/lib/CloudPDF/types/doc_fonts_programs_download404response.rb +23 -0
- data/lib/CloudPDF/types/doc_fonts_programs_get200response.rb +23 -0
- data/lib/CloudPDF/types/doc_fonts_programs_get404response.rb +23 -0
- data/lib/CloudPDF/types/doc_fonts_resolve200response.rb +23 -0
- data/lib/CloudPDF/types/doc_fonts_resolve400response.rb +23 -0
- data/lib/CloudPDF/types/doc_fonts_resolve404response.rb +23 -0
- data/lib/CloudPDF/types/doc_fonts_resolve_request.rb +23 -0
- data/lib/CloudPDF/types/doc_manifest200response.rb +4 -0
- data/lib/CloudPDF/types/doc_pages_remove_name200response_layout.rb +2 -0
- data/lib/CloudPDF/types/doc_pages_remove_name200response_layout_labels_item.rb +15 -0
- data/lib/CloudPDF/types/doc_pages_remove_name200response_layout_labels_item_style.rb +15 -0
- data/lib/CloudPDF/types/doc_pages_set_name200response_layout.rb +2 -0
- data/lib/CloudPDF/types/doc_pages_set_name200response_layout_labels_item.rb +15 -0
- data/lib/CloudPDF/types/doc_pages_set_name200response_layout_labels_item_style.rb +15 -0
- data/lib/CloudPDF/types/documents_init403response.rb +23 -0
- data/lib/CloudPDF/types/documents_upload_proxy404response.rb +23 -0
- data/lib/CloudPDF/types/font.rb +25 -0
- data/lib/CloudPDF/types/font_list.rb +13 -0
- data/lib/CloudPDF/types/font_program.rb +19 -0
- data/lib/CloudPDF/types/font_program_embedded.rb +13 -0
- data/lib/CloudPDF/types/font_program_embedding_permission.rb +13 -0
- data/lib/CloudPDF/types/font_program_format.rb +15 -0
- data/lib/CloudPDF/types/font_program_info.rb +25 -0
- data/lib/CloudPDF/types/font_program_info_covers_item.rb +11 -0
- data/lib/CloudPDF/types/font_program_info_embedded.rb +13 -0
- data/lib/CloudPDF/types/font_program_info_embedding_permission.rb +13 -0
- data/lib/CloudPDF/types/font_program_info_format.rb +15 -0
- data/lib/CloudPDF/types/font_resolution.rb +11 -0
- data/lib/CloudPDF/types/font_resolve_request.rb +11 -0
- data/lib/CloudPDF/types/font_resolve_run.rb +17 -0
- data/lib/CloudPDF/types/font_restrictions_item.rb +16 -0
- data/lib/CloudPDF/types/font_source.rb +13 -0
- data/lib/CloudPDF/types/form_mutation_meta.rb +2 -0
- data/lib/CloudPDF/types/grants_update403response.rb +23 -0
- data/lib/CloudPDF/types/mutation_meta.rb +2 -0
- data/lib/CloudPDF/types/outline_mutation_meta.rb +2 -0
- data/lib/CloudPDF/types/resolved_font_run.rb +19 -0
- data/lib/CloudPDF/types/tenant_feature.rb +11 -0
- data/lib/CloudPDF/types/tenant_feature_stopped.rb +11 -0
- data/lib/CloudPDF/types/tenants_create200response_tenant.rb +2 -0
- data/lib/CloudPDF/types/tenants_get200response_tenant.rb +2 -0
- data/lib/CloudPDF/types/tenants_list200response_tenants_item.rb +2 -0
- data/lib/CloudPDF/types/tenants_update200response.rb +9 -0
- data/lib/CloudPDF/types/tenants_update200response_tenant.rb +19 -0
- data/lib/CloudPDF/types/tenants_update200response_tenant_status.rb +12 -0
- data/lib/CloudPDF/types/tenants_update400response.rb +23 -0
- data/lib/CloudPDF/types/tenants_update404response.rb +23 -0
- data/lib/CloudPDF/types/tokens_issue_request.rb +2 -0
- data/lib/CloudPDF/types/tokens_issue_request_upload.rb +21 -0
- data/lib/CloudPDF/types/widget_annotation.rb +2 -0
- data/lib/CloudPDF/types/widget_patch.rb +2 -0
- data/lib/CloudPDF/version.rb +1 -1
- data/lib/cloudpdf.rb +82 -0
- data/reference.md +419 -3
- metadata +84 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8a10f23f7c3154efb687a0d6f376bf657f38f01e3146f74a4c1a5b98d49cc27c
|
|
4
|
+
data.tar.gz: 1f73e9c53b2b4d5cb55f7261ef709e70c8518afdf222b27716414f450aa9d281
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 240f3cc0cfa8c158af44834c25eb764900bffda9e434b8effe5593ae16127e30ca5f2f6ee98c0dde84108dee4b58eb8725c15e1dcbd1af8772fa99932592d6e1
|
|
7
|
+
data.tar.gz: ce8d16d5415a3c2805e9d15e7ce2b69dc2ade183efd408a590c346f1728e2e615d60f81db284e52fd5be532418b623860eeb5d4b188390a7fa321d7af95566ee
|
data/.fern/metadata.json
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
"generatorConfig": {
|
|
6
6
|
"moduleName": "CloudPDF"
|
|
7
7
|
},
|
|
8
|
-
"originGitCommit": "
|
|
8
|
+
"originGitCommit": "3283147ded32fc15c426768f75557a4d95943d84",
|
|
9
9
|
"originGitCommitIsDirty": false,
|
|
10
10
|
"invokedBy": "ci",
|
|
11
|
-
"requestedVersion": "3.0.0.alpha.
|
|
11
|
+
"requestedVersion": "3.0.0.alpha.21",
|
|
12
12
|
"ciProvider": "github"
|
|
13
13
|
}
|
data/README.md
CHANGED
|
@@ -41,7 +41,15 @@ client.doc.changes(
|
|
|
41
41
|
|
|
42
42
|
## Environments
|
|
43
43
|
|
|
44
|
-
This SDK allows you to configure different custom URLs for API requests. You can specify your own custom URL.
|
|
44
|
+
This SDK allows you to configure different environments or custom URLs for API requests. You can either use the predefined environments or specify your own custom URL.
|
|
45
|
+
### Environments
|
|
46
|
+
```ruby
|
|
47
|
+
require "cloudpdf"
|
|
48
|
+
|
|
49
|
+
CloudPDF = CloudPDF::Client.new(
|
|
50
|
+
base_url: CloudPDF::Environment::SAAS
|
|
51
|
+
)
|
|
52
|
+
```
|
|
45
53
|
|
|
46
54
|
### Custom URL
|
|
47
55
|
```ruby
|
data/lib/CloudPDF/client.rb
CHANGED
|
@@ -9,7 +9,7 @@ module CloudPDF
|
|
|
9
9
|
# @return [void]
|
|
10
10
|
def initialize(token:, base_url: nil, max_retries: 2)
|
|
11
11
|
@raw_client = CloudPDF::Internal::Http::RawClient.new(
|
|
12
|
-
base_url: base_url,
|
|
12
|
+
base_url: base_url || CloudPDF::Environment::SAAS,
|
|
13
13
|
headers: {
|
|
14
14
|
"X-Fern-Language" => "Ruby",
|
|
15
15
|
Authorization: "Bearer #{token}"
|
data/lib/CloudPDF/doc/client.rb
CHANGED
|
@@ -359,6 +359,11 @@ module CloudPDF
|
|
|
359
359
|
@attachments ||= CloudPDF::Doc::Attachments::Client.new(client: @client)
|
|
360
360
|
end
|
|
361
361
|
|
|
362
|
+
# @return [CloudPDF::Fonts::Client]
|
|
363
|
+
def fonts
|
|
364
|
+
@fonts ||= CloudPDF::Doc::Fonts::Client.new(client: @client)
|
|
365
|
+
end
|
|
366
|
+
|
|
362
367
|
# @return [CloudPDF::Forms::Client]
|
|
363
368
|
def forms
|
|
364
369
|
@forms ||= CloudPDF::Doc::Forms::Client.new(client: @client)
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CloudPDF
|
|
4
|
+
module Doc
|
|
5
|
+
module Fonts
|
|
6
|
+
class Client
|
|
7
|
+
# @param client [CloudPDF::Internal::Http::RawClient]
|
|
8
|
+
#
|
|
9
|
+
# @return [void]
|
|
10
|
+
def initialize(client:)
|
|
11
|
+
@client = client
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# @param request_options [Hash]
|
|
15
|
+
# @param params [Hash]
|
|
16
|
+
# @option request_options [String] :base_url
|
|
17
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
18
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
19
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
20
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
21
|
+
# @option params [String] :doc_id
|
|
22
|
+
# @option params [String] :layer_name
|
|
23
|
+
# @option params [String, nil] :document_password
|
|
24
|
+
#
|
|
25
|
+
# @example
|
|
26
|
+
# client.doc.fonts.list(
|
|
27
|
+
# doc_id: "docId",
|
|
28
|
+
# layer_name: "layerName"
|
|
29
|
+
# )
|
|
30
|
+
#
|
|
31
|
+
# @return [CloudPDF::Types::FontList]
|
|
32
|
+
def list(request_options: {}, **params)
|
|
33
|
+
params = CloudPDF::Internal::Types::Utils.normalize_keys(params)
|
|
34
|
+
headers = {}
|
|
35
|
+
headers["X-Document-Password"] = params[:document_password] if params[:document_password]
|
|
36
|
+
|
|
37
|
+
request = CloudPDF::Internal::JSON::Request.new(
|
|
38
|
+
base_url: request_options[:base_url],
|
|
39
|
+
method: "GET",
|
|
40
|
+
path: "v1/docs/#{URI.encode_uri_component(params[:doc_id].to_s)}/layers/#{URI.encode_uri_component(params[:layer_name].to_s)}/fonts",
|
|
41
|
+
headers: headers,
|
|
42
|
+
request_options: request_options
|
|
43
|
+
)
|
|
44
|
+
begin
|
|
45
|
+
response = @client.send(request)
|
|
46
|
+
rescue Net::HTTPRequestTimeout
|
|
47
|
+
raise CloudPDF::Errors::TimeoutError
|
|
48
|
+
end
|
|
49
|
+
code = response.code.to_i
|
|
50
|
+
if code.between?(200, 299)
|
|
51
|
+
(response.body.to_s.empty? ? nil : CloudPDF::Types::DocFontsList200Response.load(response.body))
|
|
52
|
+
else
|
|
53
|
+
error_class = CloudPDF::Errors::ResponseError.subclass_for_code(code)
|
|
54
|
+
raise error_class.new(response.body, code: code)
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# @param request_options [Hash]
|
|
59
|
+
# @param params [CloudPDF::Types::DocFontsResolveRequest]
|
|
60
|
+
# @option request_options [String] :base_url
|
|
61
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
62
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
63
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
64
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
65
|
+
# @option params [String] :doc_id
|
|
66
|
+
# @option params [String] :layer_name
|
|
67
|
+
# @option params [String, nil] :document_password
|
|
68
|
+
#
|
|
69
|
+
# @example
|
|
70
|
+
# client.doc.fonts.resolve(
|
|
71
|
+
# doc_id: "docId",
|
|
72
|
+
# layer_name: "layerName",
|
|
73
|
+
# runs: [{
|
|
74
|
+
# text: "text"
|
|
75
|
+
# }]
|
|
76
|
+
# )
|
|
77
|
+
#
|
|
78
|
+
# @return [CloudPDF::Types::FontResolution]
|
|
79
|
+
def resolve(request_options: {}, **params)
|
|
80
|
+
params = CloudPDF::Internal::Types::Utils.normalize_keys(params)
|
|
81
|
+
path_param_names = %i[doc_id layer_name]
|
|
82
|
+
body_params = params.except(*path_param_names)
|
|
83
|
+
|
|
84
|
+
headers = {}
|
|
85
|
+
headers["X-Document-Password"] = params[:document_password] if params[:document_password]
|
|
86
|
+
|
|
87
|
+
request = CloudPDF::Internal::JSON::Request.new(
|
|
88
|
+
base_url: request_options[:base_url],
|
|
89
|
+
method: "POST",
|
|
90
|
+
path: "v1/docs/#{URI.encode_uri_component(params[:doc_id].to_s)}/layers/#{URI.encode_uri_component(params[:layer_name].to_s)}/fonts/resolve",
|
|
91
|
+
headers: headers,
|
|
92
|
+
body: CloudPDF::Types::FontResolveRequest.new(body_params).to_h,
|
|
93
|
+
request_options: request_options
|
|
94
|
+
)
|
|
95
|
+
begin
|
|
96
|
+
response = @client.send(request)
|
|
97
|
+
rescue Net::HTTPRequestTimeout
|
|
98
|
+
raise CloudPDF::Errors::TimeoutError
|
|
99
|
+
end
|
|
100
|
+
code = response.code.to_i
|
|
101
|
+
if code.between?(200, 299)
|
|
102
|
+
(response.body.to_s.empty? ? nil : CloudPDF::Types::DocFontsResolve200Response.load(response.body))
|
|
103
|
+
else
|
|
104
|
+
error_class = CloudPDF::Errors::ResponseError.subclass_for_code(code)
|
|
105
|
+
raise error_class.new(response.body, code: code)
|
|
106
|
+
end
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# @return [CloudPDF::Programs::Client]
|
|
110
|
+
def programs
|
|
111
|
+
@programs ||= CloudPDF::Doc::Fonts::Programs::Client.new(client: @client)
|
|
112
|
+
end
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
end
|
|
116
|
+
end
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CloudPDF
|
|
4
|
+
module Doc
|
|
5
|
+
module Fonts
|
|
6
|
+
module Programs
|
|
7
|
+
class Client
|
|
8
|
+
# @param client [CloudPDF::Internal::Http::RawClient]
|
|
9
|
+
#
|
|
10
|
+
# @return [void]
|
|
11
|
+
def initialize(client:)
|
|
12
|
+
@client = client
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
# A document token needs any one of the listed capabilities: one that may write text in the document. A file
|
|
16
|
+
# the list says can't be downloaded (`canDownload: false`) is not found.
|
|
17
|
+
#
|
|
18
|
+
# @param request_options [Hash]
|
|
19
|
+
# @param params [Hash]
|
|
20
|
+
# @option request_options [String] :base_url
|
|
21
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
22
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
23
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
24
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
25
|
+
# @option params [String] :doc_id
|
|
26
|
+
# @option params [String] :layer_name
|
|
27
|
+
# @option params [String] :display_hash
|
|
28
|
+
# @option params [String, nil] :document_password
|
|
29
|
+
#
|
|
30
|
+
# @example
|
|
31
|
+
# client.doc.fonts.programs.download(
|
|
32
|
+
# doc_id: "docId",
|
|
33
|
+
# layer_name: "layerName",
|
|
34
|
+
# display_hash: "displayHash"
|
|
35
|
+
# )
|
|
36
|
+
#
|
|
37
|
+
# @return [untyped]
|
|
38
|
+
def download(request_options: {}, **params)
|
|
39
|
+
params = CloudPDF::Internal::Types::Utils.normalize_keys(params)
|
|
40
|
+
headers = {}
|
|
41
|
+
headers["X-Document-Password"] = params[:document_password] if params[:document_password]
|
|
42
|
+
|
|
43
|
+
request = CloudPDF::Internal::JSON::Request.new(
|
|
44
|
+
base_url: request_options[:base_url],
|
|
45
|
+
method: "GET",
|
|
46
|
+
path: "v1/docs/#{URI.encode_uri_component(params[:doc_id].to_s)}/layers/#{URI.encode_uri_component(params[:layer_name].to_s)}/font-program-files/#{URI.encode_uri_component(params[:display_hash].to_s)}",
|
|
47
|
+
headers: headers,
|
|
48
|
+
request_options: request_options
|
|
49
|
+
)
|
|
50
|
+
begin
|
|
51
|
+
response = @client.send(request)
|
|
52
|
+
rescue Net::HTTPRequestTimeout
|
|
53
|
+
raise CloudPDF::Errors::TimeoutError
|
|
54
|
+
end
|
|
55
|
+
code = response.code.to_i
|
|
56
|
+
return if code.between?(200, 299)
|
|
57
|
+
|
|
58
|
+
error_class = CloudPDF::Errors::ResponseError.subclass_for_code(code)
|
|
59
|
+
raise error_class.new(response.body, code: code)
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# @param request_options [Hash]
|
|
63
|
+
# @param params [Hash]
|
|
64
|
+
# @option request_options [String] :base_url
|
|
65
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
66
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
67
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
68
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
69
|
+
# @option params [String] :doc_id
|
|
70
|
+
# @option params [String] :layer_name
|
|
71
|
+
# @option params [String] :display_hash
|
|
72
|
+
# @option params [String, nil] :document_password
|
|
73
|
+
#
|
|
74
|
+
# @example
|
|
75
|
+
# client.doc.fonts.programs.get(
|
|
76
|
+
# doc_id: "docId",
|
|
77
|
+
# layer_name: "layerName",
|
|
78
|
+
# display_hash: "displayHash"
|
|
79
|
+
# )
|
|
80
|
+
#
|
|
81
|
+
# @return [CloudPDF::Types::FontProgramInfo]
|
|
82
|
+
def get(request_options: {}, **params)
|
|
83
|
+
params = CloudPDF::Internal::Types::Utils.normalize_keys(params)
|
|
84
|
+
headers = {}
|
|
85
|
+
headers["X-Document-Password"] = params[:document_password] if params[:document_password]
|
|
86
|
+
|
|
87
|
+
request = CloudPDF::Internal::JSON::Request.new(
|
|
88
|
+
base_url: request_options[:base_url],
|
|
89
|
+
method: "GET",
|
|
90
|
+
path: "v1/docs/#{URI.encode_uri_component(params[:doc_id].to_s)}/layers/#{URI.encode_uri_component(params[:layer_name].to_s)}/font-programs/#{URI.encode_uri_component(params[:display_hash].to_s)}",
|
|
91
|
+
headers: headers,
|
|
92
|
+
request_options: request_options
|
|
93
|
+
)
|
|
94
|
+
begin
|
|
95
|
+
response = @client.send(request)
|
|
96
|
+
rescue Net::HTTPRequestTimeout
|
|
97
|
+
raise CloudPDF::Errors::TimeoutError
|
|
98
|
+
end
|
|
99
|
+
code = response.code.to_i
|
|
100
|
+
if code.between?(200, 299)
|
|
101
|
+
(response.body.to_s.empty? ? nil : CloudPDF::Types::DocFontsProgramsGet200Response.load(response.body))
|
|
102
|
+
else
|
|
103
|
+
error_class = CloudPDF::Errors::ResponseError.subclass_for_code(code)
|
|
104
|
+
raise error_class.new(response.body, code: code)
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
end
|
|
108
|
+
end
|
|
109
|
+
end
|
|
110
|
+
end
|
|
111
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CloudPDF
|
|
4
|
+
module Doc
|
|
5
|
+
module Fonts
|
|
6
|
+
module Programs
|
|
7
|
+
module Types
|
|
8
|
+
class DownloadProgramsRequest < Internal::Types::Model
|
|
9
|
+
field :doc_id, -> { String }, optional: false, nullable: false, api_name: "docId"
|
|
10
|
+
|
|
11
|
+
field :layer_name, -> { String }, optional: false, nullable: false, api_name: "layerName"
|
|
12
|
+
|
|
13
|
+
field :display_hash, -> { String }, optional: false, nullable: false, api_name: "displayHash"
|
|
14
|
+
|
|
15
|
+
field :document_password, -> { String }, optional: true, nullable: false, api_name: "X-Document-Password"
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CloudPDF
|
|
4
|
+
module Doc
|
|
5
|
+
module Fonts
|
|
6
|
+
module Programs
|
|
7
|
+
module Types
|
|
8
|
+
class GetProgramsRequest < Internal::Types::Model
|
|
9
|
+
field :doc_id, -> { String }, optional: false, nullable: false, api_name: "docId"
|
|
10
|
+
|
|
11
|
+
field :layer_name, -> { String }, optional: false, nullable: false, api_name: "layerName"
|
|
12
|
+
|
|
13
|
+
field :display_hash, -> { String }, optional: false, nullable: false, api_name: "displayHash"
|
|
14
|
+
|
|
15
|
+
field :document_password, -> { String }, optional: true, nullable: false, api_name: "X-Document-Password"
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CloudPDF
|
|
4
|
+
module Doc
|
|
5
|
+
module Fonts
|
|
6
|
+
module Types
|
|
7
|
+
class ListFontsRequest < Internal::Types::Model
|
|
8
|
+
field :doc_id, -> { String }, optional: false, nullable: false, api_name: "docId"
|
|
9
|
+
|
|
10
|
+
field :layer_name, -> { String }, optional: false, nullable: false, api_name: "layerName"
|
|
11
|
+
|
|
12
|
+
field :document_password, -> { String }, optional: true, nullable: false, api_name: "X-Document-Password"
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CloudPDF
|
|
4
|
+
module Doc
|
|
5
|
+
module Fonts
|
|
6
|
+
module Types
|
|
7
|
+
class ResolveFontsRequest < Internal::Types::Model
|
|
8
|
+
field :doc_id, -> { String }, optional: false, nullable: false, api_name: "docId"
|
|
9
|
+
|
|
10
|
+
field :layer_name, -> { String }, optional: false, nullable: false, api_name: "layerName"
|
|
11
|
+
|
|
12
|
+
field :document_password, -> { String }, optional: true, nullable: false, api_name: "X-Document-Password"
|
|
13
|
+
|
|
14
|
+
field :body, -> { CloudPDF::Types::FontResolveRequest }, optional: false, nullable: false
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -185,6 +185,8 @@ module CloudPDF
|
|
|
185
185
|
end
|
|
186
186
|
end
|
|
187
187
|
|
|
188
|
+
# An upload token commits only the documents it started; any other document answers 404.
|
|
189
|
+
#
|
|
188
190
|
# @param request_options [Hash]
|
|
189
191
|
# @param params [CloudPDF::Documents::Types::DocumentsCommitRequest]
|
|
190
192
|
# @option request_options [String] :base_url
|
|
@@ -305,7 +307,8 @@ module CloudPDF
|
|
|
305
307
|
end
|
|
306
308
|
|
|
307
309
|
# This bounded origin-mediated fallback must only be used after documents.init returns upload.kind=proxy. Auto
|
|
308
|
-
# mode prefers a presigned object-store PUT whenever available.
|
|
310
|
+
# mode prefers a presigned object-store PUT whenever available. An upload token sends files only to the documents
|
|
311
|
+
# it started.
|
|
309
312
|
#
|
|
310
313
|
# @param request_options [Hash]
|
|
311
314
|
# @param params [void]
|
|
@@ -404,6 +407,11 @@ module CloudPDF
|
|
|
404
407
|
end
|
|
405
408
|
end
|
|
406
409
|
|
|
410
|
+
# With an upload token, the document goes into the token's folder with the token's metadata, whatever the request
|
|
411
|
+
# says; contentLength must be within the token's maxBytes, and the token makes at most maxFiles documents (403
|
|
412
|
+
# after). docId, idempotencyKey and dedupMode reuse-existing are refused (400): each could reach a document the
|
|
413
|
+
# token didn't make.
|
|
414
|
+
#
|
|
407
415
|
# @param request_options [Hash]
|
|
408
416
|
# @param params [CloudPDF::Documents::Types::DocumentsInitRequest]
|
|
409
417
|
# @option request_options [String] :base_url
|
|
@@ -100,8 +100,9 @@ module CloudPDF
|
|
|
100
100
|
end
|
|
101
101
|
end
|
|
102
102
|
|
|
103
|
-
# The returned id is what a link page or an embed opens.
|
|
104
|
-
#
|
|
103
|
+
# The returned id is what a link page or an embed opens. Its scope gives only document permissions the caller
|
|
104
|
+
# holds itself, as tokens.issue does. Mounted only when the deployment can sign (HS256 mode) — exchange mints
|
|
105
|
+
# session JWTs, so grants exist only where minting does.
|
|
105
106
|
#
|
|
106
107
|
# @param request_options [Hash]
|
|
107
108
|
# @param params [CloudPDF::Grants::Types::GrantsCreateRequest]
|
|
@@ -157,6 +157,55 @@ module CloudPDF
|
|
|
157
157
|
raise error_class.new(response.body, code: code)
|
|
158
158
|
end
|
|
159
159
|
|
|
160
|
+
# A feature names an installed module; any other id is a 400. A module route answers a tenant without its feature
|
|
161
|
+
# 403 FeatureNotEnabled, and one whose feature is stopped 402 FeatureStopped (details.feature, details.stopped).
|
|
162
|
+
# Other replicas apply a change within 30 seconds.
|
|
163
|
+
#
|
|
164
|
+
# @param request_options [Hash]
|
|
165
|
+
# @param params [CloudPDF::Tenants::Types::TenantsUpdateRequest]
|
|
166
|
+
# @option request_options [String] :base_url
|
|
167
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
168
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
169
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
170
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
171
|
+
# @option params [String] :tenant_id
|
|
172
|
+
#
|
|
173
|
+
# @example
|
|
174
|
+
# client.tenants.update(
|
|
175
|
+
# tenant_id: "tenantId",
|
|
176
|
+
# features: [{
|
|
177
|
+
# id: "id"
|
|
178
|
+
# }]
|
|
179
|
+
# )
|
|
180
|
+
#
|
|
181
|
+
# @return [CloudPDF::Types::TenantsUpdate200Response]
|
|
182
|
+
def update(request_options: {}, **params)
|
|
183
|
+
params = CloudPDF::Internal::Types::Utils.normalize_keys(params)
|
|
184
|
+
request_data = CloudPDF::Tenants::Types::TenantsUpdateRequest.new(params).to_h
|
|
185
|
+
non_body_param_names = %w[tenantId]
|
|
186
|
+
body = request_data.except(*non_body_param_names)
|
|
187
|
+
|
|
188
|
+
request = CloudPDF::Internal::JSON::Request.new(
|
|
189
|
+
base_url: request_options[:base_url],
|
|
190
|
+
method: "PATCH",
|
|
191
|
+
path: "v1/tenants/#{URI.encode_uri_component(params[:tenant_id].to_s)}",
|
|
192
|
+
body: body,
|
|
193
|
+
request_options: request_options
|
|
194
|
+
)
|
|
195
|
+
begin
|
|
196
|
+
response = @client.send(request)
|
|
197
|
+
rescue Net::HTTPRequestTimeout
|
|
198
|
+
raise CloudPDF::Errors::TimeoutError
|
|
199
|
+
end
|
|
200
|
+
code = response.code.to_i
|
|
201
|
+
if code.between?(200, 299)
|
|
202
|
+
(response.body.to_s.empty? ? nil : CloudPDF::Types::TenantsUpdate200Response.load(response.body))
|
|
203
|
+
else
|
|
204
|
+
error_class = CloudPDF::Errors::ResponseError.subclass_for_code(code)
|
|
205
|
+
raise error_class.new(response.body, code: code)
|
|
206
|
+
end
|
|
207
|
+
end
|
|
208
|
+
|
|
160
209
|
# @param request_options [Hash]
|
|
161
210
|
# @param params [Hash]
|
|
162
211
|
# @option request_options [String] :base_url
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CloudPDF
|
|
4
|
+
module Tenants
|
|
5
|
+
module Types
|
|
6
|
+
class TenantsUpdateRequest < Internal::Types::Model
|
|
7
|
+
field :tenant_id, -> { String }, optional: false, nullable: false, api_name: "tenantId"
|
|
8
|
+
|
|
9
|
+
field :features, -> { Internal::Types::Array[CloudPDF::Types::TenantFeature] }, optional: false, nullable: false
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -10,8 +10,10 @@ module CloudPDF
|
|
|
10
10
|
@client = client
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
-
#
|
|
14
|
-
#
|
|
13
|
+
# Authority mints only downward: kind "doc" gives only document permissions the caller holds itself, kind "tenant"
|
|
14
|
+
# requires the API token, and kind "upload" requires docs.create instead of tokens.issue-doc, since an upload
|
|
15
|
+
# token can do only what docs.create allows. Mounted only when the deployment can sign (HS256 mode); asymmetric
|
|
16
|
+
# deployments mint with their own private key.
|
|
15
17
|
#
|
|
16
18
|
# @param request_options [Hash]
|
|
17
19
|
# @param params [CloudPDF::Types::TokensIssueRequest]
|
|
@@ -11,6 +11,8 @@ module CloudPDF
|
|
|
11
11
|
|
|
12
12
|
field :appearance_state, -> { String }, optional: false, nullable: true, api_name: "appearanceState"
|
|
13
13
|
|
|
14
|
+
field :structure_position, -> { Internal::Types::Array[Integer] }, optional: false, nullable: true, api_name: "structurePosition"
|
|
15
|
+
|
|
14
16
|
field :nm, -> { String }, optional: false, nullable: true
|
|
15
17
|
|
|
16
18
|
field :rect, -> { CloudPDF::Types::AnnotationCaretRect }, optional: false, nullable: false
|
|
@@ -11,6 +11,8 @@ module CloudPDF
|
|
|
11
11
|
|
|
12
12
|
field :appearance_state, -> { String }, optional: false, nullable: true, api_name: "appearanceState"
|
|
13
13
|
|
|
14
|
+
field :structure_position, -> { Internal::Types::Array[Integer] }, optional: false, nullable: true, api_name: "structurePosition"
|
|
15
|
+
|
|
14
16
|
field :nm, -> { String }, optional: false, nullable: true
|
|
15
17
|
|
|
16
18
|
field :rect, -> { CloudPDF::Types::AnnotationCircleRect }, optional: false, nullable: false
|
|
@@ -11,6 +11,8 @@ module CloudPDF
|
|
|
11
11
|
|
|
12
12
|
field :appearance_state, -> { Object }, optional: true, nullable: false, api_name: "appearanceState"
|
|
13
13
|
|
|
14
|
+
field :structure_position, -> { Object }, optional: true, nullable: false, api_name: "structurePosition"
|
|
15
|
+
|
|
14
16
|
field :nm, -> { String }, optional: true, nullable: false
|
|
15
17
|
|
|
16
18
|
field :rect, -> { CloudPDF::Types::AnnotationDraftCaretRect }, optional: true, nullable: false
|
|
@@ -11,6 +11,8 @@ module CloudPDF
|
|
|
11
11
|
|
|
12
12
|
field :appearance_state, -> { Object }, optional: true, nullable: false, api_name: "appearanceState"
|
|
13
13
|
|
|
14
|
+
field :structure_position, -> { Object }, optional: true, nullable: false, api_name: "structurePosition"
|
|
15
|
+
|
|
14
16
|
field :nm, -> { String }, optional: true, nullable: false
|
|
15
17
|
|
|
16
18
|
field :rect, -> { CloudPDF::Types::AnnotationDraftCircleRect }, optional: true, nullable: false
|
|
@@ -11,6 +11,8 @@ module CloudPDF
|
|
|
11
11
|
|
|
12
12
|
field :appearance_state, -> { Object }, optional: true, nullable: false, api_name: "appearanceState"
|
|
13
13
|
|
|
14
|
+
field :structure_position, -> { Object }, optional: true, nullable: false, api_name: "structurePosition"
|
|
15
|
+
|
|
14
16
|
field :nm, -> { String }, optional: true, nullable: false
|
|
15
17
|
|
|
16
18
|
field :rect, -> { CloudPDF::Types::AnnotationDraftFileAttachmentRect }, optional: false, nullable: false
|
|
@@ -11,6 +11,8 @@ module CloudPDF
|
|
|
11
11
|
|
|
12
12
|
field :appearance_state, -> { Object }, optional: true, nullable: false, api_name: "appearanceState"
|
|
13
13
|
|
|
14
|
+
field :structure_position, -> { Object }, optional: true, nullable: false, api_name: "structurePosition"
|
|
15
|
+
|
|
14
16
|
field :nm, -> { String }, optional: true, nullable: false
|
|
15
17
|
|
|
16
18
|
field :rect, -> { CloudPDF::Types::AnnotationDraftFreeTextRect }, optional: true, nullable: false
|
|
@@ -11,6 +11,8 @@ module CloudPDF
|
|
|
11
11
|
|
|
12
12
|
field :appearance_state, -> { Object }, optional: true, nullable: false, api_name: "appearanceState"
|
|
13
13
|
|
|
14
|
+
field :structure_position, -> { Object }, optional: true, nullable: false, api_name: "structurePosition"
|
|
15
|
+
|
|
14
16
|
field :nm, -> { String }, optional: true, nullable: false
|
|
15
17
|
|
|
16
18
|
field :rect, -> { CloudPDF::Types::AnnotationDraftHighlightRect }, optional: true, nullable: false
|
|
@@ -11,6 +11,8 @@ module CloudPDF
|
|
|
11
11
|
|
|
12
12
|
field :appearance_state, -> { Object }, optional: true, nullable: false, api_name: "appearanceState"
|
|
13
13
|
|
|
14
|
+
field :structure_position, -> { Object }, optional: true, nullable: false, api_name: "structurePosition"
|
|
15
|
+
|
|
14
16
|
field :nm, -> { String }, optional: true, nullable: false
|
|
15
17
|
|
|
16
18
|
field :rect, -> { CloudPDF::Types::AnnotationDraftInkRect }, optional: true, nullable: false
|
|
@@ -11,6 +11,8 @@ module CloudPDF
|
|
|
11
11
|
|
|
12
12
|
field :appearance_state, -> { Object }, optional: true, nullable: false, api_name: "appearanceState"
|
|
13
13
|
|
|
14
|
+
field :structure_position, -> { Object }, optional: true, nullable: false, api_name: "structurePosition"
|
|
15
|
+
|
|
14
16
|
field :nm, -> { String }, optional: true, nullable: false
|
|
15
17
|
|
|
16
18
|
field :rect, -> { CloudPDF::Types::AnnotationDraftLineRect }, optional: true, nullable: false
|
|
@@ -11,6 +11,8 @@ module CloudPDF
|
|
|
11
11
|
|
|
12
12
|
field :appearance_state, -> { Object }, optional: true, nullable: false, api_name: "appearanceState"
|
|
13
13
|
|
|
14
|
+
field :structure_position, -> { Object }, optional: true, nullable: false, api_name: "structurePosition"
|
|
15
|
+
|
|
14
16
|
field :nm, -> { String }, optional: true, nullable: false
|
|
15
17
|
|
|
16
18
|
field :rect, -> { CloudPDF::Types::AnnotationDraftLinkRect }, optional: false, nullable: false
|
|
@@ -11,6 +11,8 @@ module CloudPDF
|
|
|
11
11
|
|
|
12
12
|
field :appearance_state, -> { Object }, optional: true, nullable: false, api_name: "appearanceState"
|
|
13
13
|
|
|
14
|
+
field :structure_position, -> { Object }, optional: true, nullable: false, api_name: "structurePosition"
|
|
15
|
+
|
|
14
16
|
field :nm, -> { String }, optional: true, nullable: false
|
|
15
17
|
|
|
16
18
|
field :rect, -> { CloudPDF::Types::AnnotationDraftPolygonRect }, optional: true, nullable: false
|
|
@@ -11,6 +11,8 @@ module CloudPDF
|
|
|
11
11
|
|
|
12
12
|
field :appearance_state, -> { Object }, optional: true, nullable: false, api_name: "appearanceState"
|
|
13
13
|
|
|
14
|
+
field :structure_position, -> { Object }, optional: true, nullable: false, api_name: "structurePosition"
|
|
15
|
+
|
|
14
16
|
field :nm, -> { String }, optional: true, nullable: false
|
|
15
17
|
|
|
16
18
|
field :rect, -> { CloudPDF::Types::AnnotationDraftPolylineRect }, optional: true, nullable: false
|
|
@@ -11,6 +11,8 @@ module CloudPDF
|
|
|
11
11
|
|
|
12
12
|
field :appearance_state, -> { Object }, optional: true, nullable: false, api_name: "appearanceState"
|
|
13
13
|
|
|
14
|
+
field :structure_position, -> { Object }, optional: true, nullable: false, api_name: "structurePosition"
|
|
15
|
+
|
|
14
16
|
field :nm, -> { String }, optional: true, nullable: false
|
|
15
17
|
|
|
16
18
|
field :rect, -> { CloudPDF::Types::AnnotationDraftPopupRect }, optional: false, nullable: false
|