cloudpdf 3.0.0.alpha.11 → 3.0.0.alpha.12
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/doc/annotations/client.rb +106 -0
- data/lib/CloudPDF/doc/annotations/types/export_appearance_annotations_request.rb +21 -0
- data/lib/CloudPDF/doc/annotations/types/flatten_annotations_request.rb +21 -0
- data/lib/CloudPDF/doc/pages/client.rb +102 -0
- data/lib/CloudPDF/doc/pages/types/remove_name_pages_request.rb +19 -0
- data/lib/CloudPDF/doc/pages/types/set_name_pages_request.rb +19 -0
- data/lib/CloudPDF/types/doc_annotations_export_appearance400response.rb +15 -0
- data/lib/CloudPDF/types/doc_annotations_export_appearance400response_code.rb +29 -0
- data/lib/CloudPDF/types/doc_annotations_export_appearance400response_name.rb +11 -0
- data/lib/CloudPDF/types/doc_annotations_export_appearance404response.rb +15 -0
- data/lib/CloudPDF/types/doc_annotations_export_appearance404response_code.rb +29 -0
- data/lib/CloudPDF/types/doc_annotations_export_appearance404response_name.rb +11 -0
- data/lib/CloudPDF/types/doc_annotations_export_appearance_request.rb +23 -0
- data/lib/CloudPDF/types/doc_annotations_flatten200response.rb +9 -0
- data/lib/CloudPDF/types/doc_annotations_flatten200response_meta.rb +11 -0
- data/lib/CloudPDF/types/doc_annotations_flatten200response_meta_affected_pages_item.rb +13 -0
- data/lib/CloudPDF/types/doc_annotations_flatten200response_meta_affected_pages_item_revision.rb +13 -0
- data/lib/CloudPDF/types/doc_annotations_flatten200response_meta_affected_pages_item_weak_annotation_state.rb +15 -0
- data/lib/CloudPDF/types/doc_annotations_flatten200response_meta_affected_pages_item_weak_annotation_state_known.rb +9 -0
- data/lib/CloudPDF/types/doc_annotations_flatten200response_meta_affected_pages_item_weak_annotation_state_unknown.rb +7 -0
- data/lib/CloudPDF/types/doc_annotations_flatten200response_meta_cache_delta.rb +15 -0
- data/lib/CloudPDF/types/doc_annotations_flatten200response_meta_cache_delta_pages_item.rb +11 -0
- data/lib/CloudPDF/types/doc_annotations_flatten200response_meta_cache_delta_pages_item_cache.rb +11 -0
- data/lib/CloudPDF/types/doc_annotations_flatten400response.rb +15 -0
- data/lib/CloudPDF/types/doc_annotations_flatten400response_code.rb +29 -0
- data/lib/CloudPDF/types/doc_annotations_flatten400response_name.rb +11 -0
- data/lib/CloudPDF/types/doc_annotations_flatten404response.rb +15 -0
- data/lib/CloudPDF/types/doc_annotations_flatten404response_code.rb +29 -0
- data/lib/CloudPDF/types/doc_annotations_flatten404response_name.rb +11 -0
- data/lib/CloudPDF/types/doc_annotations_flatten_request.rb +23 -0
- data/lib/CloudPDF/types/doc_pages_remove_name200response.rb +9 -0
- data/lib/CloudPDF/types/doc_pages_remove_name200response_meta.rb +11 -0
- data/lib/CloudPDF/types/doc_pages_remove_name200response_meta_affected_pages_item.rb +13 -0
- data/lib/CloudPDF/types/doc_pages_remove_name200response_meta_affected_pages_item_revision.rb +13 -0
- data/lib/CloudPDF/types/doc_pages_remove_name200response_meta_affected_pages_item_weak_annotation_state.rb +15 -0
- data/lib/CloudPDF/types/doc_pages_remove_name200response_meta_affected_pages_item_weak_annotation_state_known.rb +9 -0
- data/lib/CloudPDF/types/doc_pages_remove_name200response_meta_affected_pages_item_weak_annotation_state_unknown.rb +7 -0
- data/lib/CloudPDF/types/doc_pages_remove_name200response_meta_cache_delta.rb +15 -0
- data/lib/CloudPDF/types/doc_pages_remove_name200response_meta_cache_delta_pages_item.rb +11 -0
- data/lib/CloudPDF/types/doc_pages_remove_name200response_meta_cache_delta_pages_item_cache.rb +11 -0
- data/lib/CloudPDF/types/doc_pages_remove_name400response.rb +15 -0
- data/lib/CloudPDF/types/doc_pages_remove_name400response_code.rb +29 -0
- data/lib/CloudPDF/types/doc_pages_remove_name400response_name.rb +11 -0
- data/lib/CloudPDF/types/doc_pages_remove_name404response.rb +15 -0
- data/lib/CloudPDF/types/doc_pages_remove_name404response_code.rb +29 -0
- data/lib/CloudPDF/types/doc_pages_remove_name404response_name.rb +11 -0
- data/lib/CloudPDF/types/doc_pages_remove_name_request.rb +23 -0
- data/lib/CloudPDF/types/doc_pages_set_name200response.rb +9 -0
- data/lib/CloudPDF/types/doc_pages_set_name200response_meta.rb +11 -0
- data/lib/CloudPDF/types/doc_pages_set_name200response_meta_affected_pages_item.rb +13 -0
- data/lib/CloudPDF/types/doc_pages_set_name200response_meta_affected_pages_item_revision.rb +13 -0
- data/lib/CloudPDF/types/doc_pages_set_name200response_meta_affected_pages_item_weak_annotation_state.rb +15 -0
- data/lib/CloudPDF/types/doc_pages_set_name200response_meta_affected_pages_item_weak_annotation_state_known.rb +9 -0
- data/lib/CloudPDF/types/doc_pages_set_name200response_meta_affected_pages_item_weak_annotation_state_unknown.rb +7 -0
- data/lib/CloudPDF/types/doc_pages_set_name200response_meta_cache_delta.rb +15 -0
- data/lib/CloudPDF/types/doc_pages_set_name200response_meta_cache_delta_pages_item.rb +11 -0
- data/lib/CloudPDF/types/doc_pages_set_name200response_meta_cache_delta_pages_item_cache.rb +11 -0
- data/lib/CloudPDF/types/doc_pages_set_name400response.rb +15 -0
- data/lib/CloudPDF/types/doc_pages_set_name400response_code.rb +29 -0
- data/lib/CloudPDF/types/doc_pages_set_name400response_name.rb +11 -0
- data/lib/CloudPDF/types/doc_pages_set_name404response.rb +15 -0
- data/lib/CloudPDF/types/doc_pages_set_name404response_code.rb +29 -0
- data/lib/CloudPDF/types/doc_pages_set_name404response_name.rb +11 -0
- data/lib/CloudPDF/types/doc_pages_set_name_request.rb +23 -0
- data/lib/CloudPDF/version.rb +1 -1
- data/lib/cloudpdf.rb +62 -0
- data/reference.md +332 -0
- metadata +64 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f9c2439fab2f50326f80b9c8f2a122c62feb7c0235557429b65667bec337261c
|
|
4
|
+
data.tar.gz: db4d6eed3e1123cd1d3d4282a3f8594f1cf0377a133f41a6ea722028170008d5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: aa5b585822b22356b9ec88904ad7ea818ed8968ebec1c43df74650b28ad4857d239e2889924a4272e8857e12a62ef83801a4dd5a270c2e691c57804b8b947d03
|
|
7
|
+
data.tar.gz: a37ea51209374ea6c9838e1f2ce7caf96daa147cc57bade4f36af6d01579544e5e8470e47209e31508f48b7d45e394ae37ea46416c5e401bd88f16efaeecf0f6
|
data/.fern/metadata.json
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
"generatorConfig": {
|
|
6
6
|
"moduleName": "CloudPDF"
|
|
7
7
|
},
|
|
8
|
-
"originGitCommit": "
|
|
8
|
+
"originGitCommit": "b0888bd6ca83627cb07ea05c440e35c183cebbd0",
|
|
9
9
|
"originGitCommitIsDirty": false,
|
|
10
10
|
"invokedBy": "ci",
|
|
11
|
-
"requestedVersion": "3.0.0.alpha.
|
|
11
|
+
"requestedVersion": "3.0.0.alpha.12",
|
|
12
12
|
"ciProvider": "github"
|
|
13
13
|
}
|
|
@@ -262,6 +262,112 @@ module CloudPDF
|
|
|
262
262
|
raise error_class.new(response.body, code: code)
|
|
263
263
|
end
|
|
264
264
|
end
|
|
265
|
+
|
|
266
|
+
# @param request_options [Hash]
|
|
267
|
+
# @param params [CloudPDF::Types::DocAnnotationsExportAppearanceRequest]
|
|
268
|
+
# @option request_options [String] :base_url
|
|
269
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
270
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
271
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
272
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
273
|
+
# @option params [String] :doc_id
|
|
274
|
+
# @option params [String] :layer_name
|
|
275
|
+
# @option params [Integer] :pon
|
|
276
|
+
# @option params [String, nil] :document_password
|
|
277
|
+
#
|
|
278
|
+
# @example
|
|
279
|
+
# client.doc.annotations.export_appearance(
|
|
280
|
+
# doc_id: "docId",
|
|
281
|
+
# layer_name: "layerName",
|
|
282
|
+
# pon: 1,
|
|
283
|
+
# request: {
|
|
284
|
+
# string: {
|
|
285
|
+
# key: "value"
|
|
286
|
+
# }
|
|
287
|
+
# }
|
|
288
|
+
# )
|
|
289
|
+
#
|
|
290
|
+
# @return [untyped]
|
|
291
|
+
def export_appearance(request_options: {}, **params)
|
|
292
|
+
params = CloudPDF::Internal::Types::Utils.normalize_keys(params)
|
|
293
|
+
path_param_names = %i[doc_id layer_name pon]
|
|
294
|
+
body_params = params.except(*path_param_names)
|
|
295
|
+
|
|
296
|
+
headers = {}
|
|
297
|
+
headers["X-Document-Password"] = params[:document_password] if params[:document_password]
|
|
298
|
+
|
|
299
|
+
request = CloudPDF::Internal::JSON::Request.new(
|
|
300
|
+
base_url: request_options[:base_url],
|
|
301
|
+
method: "POST",
|
|
302
|
+
path: "v1/docs/#{URI.encode_uri_component(params[:doc_id].to_s)}/layers/#{URI.encode_uri_component(params[:layer_name].to_s)}/annotations/pages/#{URI.encode_uri_component(params[:pon].to_s)}/items/appearance",
|
|
303
|
+
headers: headers,
|
|
304
|
+
body: body_params,
|
|
305
|
+
request_options: request_options
|
|
306
|
+
)
|
|
307
|
+
begin
|
|
308
|
+
response = @client.send(request)
|
|
309
|
+
rescue Net::HTTPRequestTimeout
|
|
310
|
+
raise CloudPDF::Errors::TimeoutError
|
|
311
|
+
end
|
|
312
|
+
code = response.code.to_i
|
|
313
|
+
return if code.between?(200, 299)
|
|
314
|
+
|
|
315
|
+
error_class = CloudPDF::Errors::ResponseError.subclass_for_code(code)
|
|
316
|
+
raise error_class.new(response.body, code: code)
|
|
317
|
+
end
|
|
318
|
+
|
|
319
|
+
# @param request_options [Hash]
|
|
320
|
+
# @param params [CloudPDF::Types::DocAnnotationsFlattenRequest]
|
|
321
|
+
# @option request_options [String] :base_url
|
|
322
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
323
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
324
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
325
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
326
|
+
# @option params [String] :doc_id
|
|
327
|
+
# @option params [String] :layer_name
|
|
328
|
+
# @option params [Integer] :pon
|
|
329
|
+
# @option params [String, nil] :document_password
|
|
330
|
+
#
|
|
331
|
+
# @example
|
|
332
|
+
# client.doc.annotations.flatten(
|
|
333
|
+
# doc_id: "docId",
|
|
334
|
+
# layer_name: "layerName",
|
|
335
|
+
# pon: 1,
|
|
336
|
+
# request: {
|
|
337
|
+
# key: "value"
|
|
338
|
+
# }
|
|
339
|
+
# )
|
|
340
|
+
#
|
|
341
|
+
# @return [CloudPDF::Types::DocAnnotationsFlatten200Response]
|
|
342
|
+
def flatten(request_options: {}, **params)
|
|
343
|
+
params = CloudPDF::Internal::Types::Utils.normalize_keys(params)
|
|
344
|
+
path_param_names = %i[doc_id layer_name pon]
|
|
345
|
+
body_params = params.except(*path_param_names)
|
|
346
|
+
|
|
347
|
+
headers = {}
|
|
348
|
+
headers["X-Document-Password"] = params[:document_password] if params[:document_password]
|
|
349
|
+
|
|
350
|
+
request = CloudPDF::Internal::JSON::Request.new(
|
|
351
|
+
base_url: request_options[:base_url],
|
|
352
|
+
method: "POST",
|
|
353
|
+
path: "v1/docs/#{URI.encode_uri_component(params[:doc_id].to_s)}/layers/#{URI.encode_uri_component(params[:layer_name].to_s)}/annotations/pages/#{URI.encode_uri_component(params[:pon].to_s)}/items/flatten",
|
|
354
|
+
headers: headers,
|
|
355
|
+
body: body_params,
|
|
356
|
+
request_options: request_options
|
|
357
|
+
)
|
|
358
|
+
begin
|
|
359
|
+
response = @client.send(request)
|
|
360
|
+
rescue Net::HTTPRequestTimeout
|
|
361
|
+
raise CloudPDF::Errors::TimeoutError
|
|
362
|
+
end
|
|
363
|
+
code = response.code.to_i
|
|
364
|
+
if code.between?(200, 299)
|
|
365
|
+
CloudPDF::Types::DocAnnotationsFlatten200Response.load(response.body)
|
|
366
|
+
else
|
|
367
|
+
error_class = CloudPDF::Errors::ResponseError.subclass_for_code(code)
|
|
368
|
+
raise error_class.new(response.body, code: code)
|
|
369
|
+
end
|
|
370
|
+
end
|
|
265
371
|
end
|
|
266
372
|
end
|
|
267
373
|
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CloudPDF
|
|
4
|
+
module Doc
|
|
5
|
+
module Annotations
|
|
6
|
+
module Types
|
|
7
|
+
class ExportAppearanceAnnotationsRequest < 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 :pon, -> { Integer }, optional: false, nullable: false
|
|
13
|
+
|
|
14
|
+
field :document_password, -> { String }, optional: true, nullable: false, api_name: "X-Document-Password"
|
|
15
|
+
|
|
16
|
+
field :body, -> { Internal::Types::Hash[String, Object] }, optional: false, nullable: false
|
|
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 Annotations
|
|
6
|
+
module Types
|
|
7
|
+
class FlattenAnnotationsRequest < 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 :pon, -> { Integer }, optional: false, nullable: false
|
|
13
|
+
|
|
14
|
+
field :document_password, -> { String }, optional: true, nullable: false, api_name: "X-Document-Password"
|
|
15
|
+
|
|
16
|
+
field :body, -> { Internal::Types::Hash[String, Object] }, optional: false, nullable: false
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -321,6 +321,108 @@ module CloudPDF
|
|
|
321
321
|
end
|
|
322
322
|
end
|
|
323
323
|
|
|
324
|
+
# @param request_options [Hash]
|
|
325
|
+
# @param params [CloudPDF::Types::DocPagesSetNameRequest]
|
|
326
|
+
# @option request_options [String] :base_url
|
|
327
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
328
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
329
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
330
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
331
|
+
# @option params [String] :doc_id
|
|
332
|
+
# @option params [String] :layer_name
|
|
333
|
+
# @option params [String, nil] :document_password
|
|
334
|
+
#
|
|
335
|
+
# @example
|
|
336
|
+
# client.doc.pages.set_name(
|
|
337
|
+
# doc_id: "docId",
|
|
338
|
+
# layer_name: "layerName",
|
|
339
|
+
# request: {
|
|
340
|
+
# key: "value"
|
|
341
|
+
# }
|
|
342
|
+
# )
|
|
343
|
+
#
|
|
344
|
+
# @return [CloudPDF::Types::DocPagesSetName200Response]
|
|
345
|
+
def set_name(request_options: {}, **params)
|
|
346
|
+
params = CloudPDF::Internal::Types::Utils.normalize_keys(params)
|
|
347
|
+
path_param_names = %i[doc_id layer_name]
|
|
348
|
+
body_params = params.except(*path_param_names)
|
|
349
|
+
|
|
350
|
+
headers = {}
|
|
351
|
+
headers["X-Document-Password"] = params[:document_password] if params[:document_password]
|
|
352
|
+
|
|
353
|
+
request = CloudPDF::Internal::JSON::Request.new(
|
|
354
|
+
base_url: request_options[:base_url],
|
|
355
|
+
method: "POST",
|
|
356
|
+
path: "v1/docs/#{URI.encode_uri_component(params[:doc_id].to_s)}/layers/#{URI.encode_uri_component(params[:layer_name].to_s)}/pages/names",
|
|
357
|
+
headers: headers,
|
|
358
|
+
body: body_params,
|
|
359
|
+
request_options: request_options
|
|
360
|
+
)
|
|
361
|
+
begin
|
|
362
|
+
response = @client.send(request)
|
|
363
|
+
rescue Net::HTTPRequestTimeout
|
|
364
|
+
raise CloudPDF::Errors::TimeoutError
|
|
365
|
+
end
|
|
366
|
+
code = response.code.to_i
|
|
367
|
+
if code.between?(200, 299)
|
|
368
|
+
CloudPDF::Types::DocPagesSetName200Response.load(response.body)
|
|
369
|
+
else
|
|
370
|
+
error_class = CloudPDF::Errors::ResponseError.subclass_for_code(code)
|
|
371
|
+
raise error_class.new(response.body, code: code)
|
|
372
|
+
end
|
|
373
|
+
end
|
|
374
|
+
|
|
375
|
+
# @param request_options [Hash]
|
|
376
|
+
# @param params [CloudPDF::Types::DocPagesRemoveNameRequest]
|
|
377
|
+
# @option request_options [String] :base_url
|
|
378
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
379
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
380
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
381
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
382
|
+
# @option params [String] :doc_id
|
|
383
|
+
# @option params [String] :layer_name
|
|
384
|
+
# @option params [String, nil] :document_password
|
|
385
|
+
#
|
|
386
|
+
# @example
|
|
387
|
+
# client.doc.pages.remove_name(
|
|
388
|
+
# doc_id: "docId",
|
|
389
|
+
# layer_name: "layerName",
|
|
390
|
+
# request: {
|
|
391
|
+
# key: "value"
|
|
392
|
+
# }
|
|
393
|
+
# )
|
|
394
|
+
#
|
|
395
|
+
# @return [CloudPDF::Types::DocPagesRemoveName200Response]
|
|
396
|
+
def remove_name(request_options: {}, **params)
|
|
397
|
+
params = CloudPDF::Internal::Types::Utils.normalize_keys(params)
|
|
398
|
+
path_param_names = %i[doc_id layer_name]
|
|
399
|
+
body_params = params.except(*path_param_names)
|
|
400
|
+
|
|
401
|
+
headers = {}
|
|
402
|
+
headers["X-Document-Password"] = params[:document_password] if params[:document_password]
|
|
403
|
+
|
|
404
|
+
request = CloudPDF::Internal::JSON::Request.new(
|
|
405
|
+
base_url: request_options[:base_url],
|
|
406
|
+
method: "POST",
|
|
407
|
+
path: "v1/docs/#{URI.encode_uri_component(params[:doc_id].to_s)}/layers/#{URI.encode_uri_component(params[:layer_name].to_s)}/pages/names/delete",
|
|
408
|
+
headers: headers,
|
|
409
|
+
body: body_params,
|
|
410
|
+
request_options: request_options
|
|
411
|
+
)
|
|
412
|
+
begin
|
|
413
|
+
response = @client.send(request)
|
|
414
|
+
rescue Net::HTTPRequestTimeout
|
|
415
|
+
raise CloudPDF::Errors::TimeoutError
|
|
416
|
+
end
|
|
417
|
+
code = response.code.to_i
|
|
418
|
+
if code.between?(200, 299)
|
|
419
|
+
CloudPDF::Types::DocPagesRemoveName200Response.load(response.body)
|
|
420
|
+
else
|
|
421
|
+
error_class = CloudPDF::Errors::ResponseError.subclass_for_code(code)
|
|
422
|
+
raise error_class.new(response.body, code: code)
|
|
423
|
+
end
|
|
424
|
+
end
|
|
425
|
+
|
|
324
426
|
# @param request_options [Hash]
|
|
325
427
|
# @param params [CloudPDF::Types::DocPagesRotateRequest]
|
|
326
428
|
# @option request_options [String] :base_url
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CloudPDF
|
|
4
|
+
module Doc
|
|
5
|
+
module Pages
|
|
6
|
+
module Types
|
|
7
|
+
class RemoveNamePagesRequest < 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, -> { Internal::Types::Hash[String, Object] }, optional: false, nullable: false
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CloudPDF
|
|
4
|
+
module Doc
|
|
5
|
+
module Pages
|
|
6
|
+
module Types
|
|
7
|
+
class SetNamePagesRequest < 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, -> { Internal::Types::Hash[String, Object] }, optional: false, nullable: false
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CloudPDF
|
|
4
|
+
module Types
|
|
5
|
+
class DocAnnotationsExportAppearance400Response < Internal::Types::Model
|
|
6
|
+
field :name, -> { CloudPDF::Types::DocAnnotationsExportAppearance400ResponseName }, optional: false, nullable: false
|
|
7
|
+
|
|
8
|
+
field :code, -> { CloudPDF::Types::DocAnnotationsExportAppearance400ResponseCode }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :message, -> { String }, optional: false, nullable: false
|
|
11
|
+
|
|
12
|
+
field :details, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CloudPDF
|
|
4
|
+
module Types
|
|
5
|
+
module DocAnnotationsExportAppearance400ResponseCode
|
|
6
|
+
extend CloudPDF::Internal::Types::Enum
|
|
7
|
+
|
|
8
|
+
UNKNOWN = "Unknown"
|
|
9
|
+
INVALID_ARG = "InvalidArg"
|
|
10
|
+
DOC_NOT_OPEN = "DocNotOpen"
|
|
11
|
+
DOC_OPEN_FAILED = "DocOpenFailed"
|
|
12
|
+
DOC_PASSWORD_REQUIRED = "DocPasswordRequired"
|
|
13
|
+
DOC_PASSWORD_INCORRECT = "DocPasswordIncorrect"
|
|
14
|
+
SHARE_PASSWORD_REQUIRED = "SharePasswordRequired"
|
|
15
|
+
ABORTED = "Aborted"
|
|
16
|
+
NETWORK = "Network"
|
|
17
|
+
UNAUTHENTICATED = "Unauthenticated"
|
|
18
|
+
FORBIDDEN = "Forbidden"
|
|
19
|
+
NOT_FOUND = "NotFound"
|
|
20
|
+
WIRE_FORMAT = "WireFormat"
|
|
21
|
+
RUNTIME_UNAVAILABLE = "RuntimeUnavailable"
|
|
22
|
+
INVALID_REFERENCE = "InvalidReference"
|
|
23
|
+
WEAK_ANNOTATION_SESSION_CONFLICT = "WeakAnnotationSessionConflict"
|
|
24
|
+
LAYER_VERSION_CONFLICT = "LayerVersionConflict"
|
|
25
|
+
NOT_IMPLEMENTED = "NotImplemented"
|
|
26
|
+
MALFORMED_PDF = "MalformedPdf"
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CloudPDF
|
|
4
|
+
module Types
|
|
5
|
+
class DocAnnotationsExportAppearance404Response < Internal::Types::Model
|
|
6
|
+
field :name, -> { CloudPDF::Types::DocAnnotationsExportAppearance404ResponseName }, optional: false, nullable: false
|
|
7
|
+
|
|
8
|
+
field :code, -> { CloudPDF::Types::DocAnnotationsExportAppearance404ResponseCode }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :message, -> { String }, optional: false, nullable: false
|
|
11
|
+
|
|
12
|
+
field :details, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CloudPDF
|
|
4
|
+
module Types
|
|
5
|
+
module DocAnnotationsExportAppearance404ResponseCode
|
|
6
|
+
extend CloudPDF::Internal::Types::Enum
|
|
7
|
+
|
|
8
|
+
UNKNOWN = "Unknown"
|
|
9
|
+
INVALID_ARG = "InvalidArg"
|
|
10
|
+
DOC_NOT_OPEN = "DocNotOpen"
|
|
11
|
+
DOC_OPEN_FAILED = "DocOpenFailed"
|
|
12
|
+
DOC_PASSWORD_REQUIRED = "DocPasswordRequired"
|
|
13
|
+
DOC_PASSWORD_INCORRECT = "DocPasswordIncorrect"
|
|
14
|
+
SHARE_PASSWORD_REQUIRED = "SharePasswordRequired"
|
|
15
|
+
ABORTED = "Aborted"
|
|
16
|
+
NETWORK = "Network"
|
|
17
|
+
UNAUTHENTICATED = "Unauthenticated"
|
|
18
|
+
FORBIDDEN = "Forbidden"
|
|
19
|
+
NOT_FOUND = "NotFound"
|
|
20
|
+
WIRE_FORMAT = "WireFormat"
|
|
21
|
+
RUNTIME_UNAVAILABLE = "RuntimeUnavailable"
|
|
22
|
+
INVALID_REFERENCE = "InvalidReference"
|
|
23
|
+
WEAK_ANNOTATION_SESSION_CONFLICT = "WeakAnnotationSessionConflict"
|
|
24
|
+
LAYER_VERSION_CONFLICT = "LayerVersionConflict"
|
|
25
|
+
NOT_IMPLEMENTED = "NotImplemented"
|
|
26
|
+
MALFORMED_PDF = "MalformedPdf"
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CloudPDF
|
|
4
|
+
module Types
|
|
5
|
+
module DocAnnotationsExportAppearanceRequest
|
|
6
|
+
# DocAnnotationsExportAppearanceRequest is an alias for Hash
|
|
7
|
+
|
|
8
|
+
# @option str [String]
|
|
9
|
+
#
|
|
10
|
+
# @return [untyped]
|
|
11
|
+
def self.load(str)
|
|
12
|
+
::JSON.parse(str)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
# @option value [untyped]
|
|
16
|
+
#
|
|
17
|
+
# @return [String]
|
|
18
|
+
def self.dump(value)
|
|
19
|
+
::JSON.generate(value)
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CloudPDF
|
|
4
|
+
module Types
|
|
5
|
+
class DocAnnotationsFlatten200ResponseMeta < Internal::Types::Model
|
|
6
|
+
field :affected_pages, -> { Internal::Types::Array[CloudPDF::Types::DocAnnotationsFlatten200ResponseMetaAffectedPagesItem] }, optional: false, nullable: false, api_name: "affectedPages"
|
|
7
|
+
|
|
8
|
+
field :cache_delta, -> { CloudPDF::Types::DocAnnotationsFlatten200ResponseMetaCacheDelta }, optional: false, nullable: true, api_name: "cacheDelta"
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CloudPDF
|
|
4
|
+
module Types
|
|
5
|
+
class DocAnnotationsFlatten200ResponseMetaAffectedPagesItem < Internal::Types::Model
|
|
6
|
+
field :page_object_number, -> { Integer }, optional: false, nullable: false, api_name: "pageObjectNumber"
|
|
7
|
+
|
|
8
|
+
field :revision, -> { CloudPDF::Types::DocAnnotationsFlatten200ResponseMetaAffectedPagesItemRevision }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :weak_annotation_state, -> { CloudPDF::Types::DocAnnotationsFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState }, optional: false, nullable: false, api_name: "weakAnnotationState"
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
data/lib/CloudPDF/types/doc_annotations_flatten200response_meta_affected_pages_item_revision.rb
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CloudPDF
|
|
4
|
+
module Types
|
|
5
|
+
class DocAnnotationsFlatten200ResponseMetaAffectedPagesItemRevision < Internal::Types::Model
|
|
6
|
+
field :doc_session_id, -> { String }, optional: false, nullable: false, api_name: "docSessionId"
|
|
7
|
+
|
|
8
|
+
field :page_object_number, -> { Integer }, optional: false, nullable: false, api_name: "pageObjectNumber"
|
|
9
|
+
|
|
10
|
+
field :generation, -> { Integer }, optional: false, nullable: false
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CloudPDF
|
|
4
|
+
module Types
|
|
5
|
+
class DocAnnotationsFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState < Internal::Types::Model
|
|
6
|
+
extend CloudPDF::Internal::Types::Union
|
|
7
|
+
|
|
8
|
+
discriminant :kind
|
|
9
|
+
|
|
10
|
+
member -> { CloudPDF::Types::DocAnnotationsFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown }, key: "UNKNOWN"
|
|
11
|
+
|
|
12
|
+
member -> { CloudPDF::Types::DocAnnotationsFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown }, key: "KNOWN"
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CloudPDF
|
|
4
|
+
module Types
|
|
5
|
+
class DocAnnotationsFlatten200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown < Internal::Types::Model
|
|
6
|
+
field :has_any_weak_annotations, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "hasAnyWeakAnnotations"
|
|
7
|
+
end
|
|
8
|
+
end
|
|
9
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CloudPDF
|
|
4
|
+
module Types
|
|
5
|
+
class DocAnnotationsFlatten200ResponseMetaCacheDelta < Internal::Types::Model
|
|
6
|
+
field :previous_doc_version, -> { Integer }, optional: false, nullable: false, api_name: "previousDocVersion"
|
|
7
|
+
|
|
8
|
+
field :doc_version, -> { Integer }, optional: false, nullable: false, api_name: "docVersion"
|
|
9
|
+
|
|
10
|
+
field :annotations_version, -> { Integer }, optional: true, nullable: false, api_name: "annotationsVersion"
|
|
11
|
+
|
|
12
|
+
field :pages, -> { Internal::Types::Array[CloudPDF::Types::DocAnnotationsFlatten200ResponseMetaCacheDeltaPagesItem] }, optional: false, nullable: false
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CloudPDF
|
|
4
|
+
module Types
|
|
5
|
+
class DocAnnotationsFlatten200ResponseMetaCacheDeltaPagesItem < Internal::Types::Model
|
|
6
|
+
field :page_object_number, -> { Integer }, optional: false, nullable: false, api_name: "pageObjectNumber"
|
|
7
|
+
|
|
8
|
+
field :cache, -> { CloudPDF::Types::DocAnnotationsFlatten200ResponseMetaCacheDeltaPagesItemCache }, optional: false, nullable: false
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
data/lib/CloudPDF/types/doc_annotations_flatten200response_meta_cache_delta_pages_item_cache.rb
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CloudPDF
|
|
4
|
+
module Types
|
|
5
|
+
class DocAnnotationsFlatten200ResponseMetaCacheDeltaPagesItemCache < Internal::Types::Model
|
|
6
|
+
field :content_version, -> { Integer }, optional: false, nullable: false, api_name: "contentVersion"
|
|
7
|
+
|
|
8
|
+
field :annotation_version, -> { Integer }, optional: false, nullable: false, api_name: "annotationVersion"
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CloudPDF
|
|
4
|
+
module Types
|
|
5
|
+
class DocAnnotationsFlatten400Response < Internal::Types::Model
|
|
6
|
+
field :name, -> { CloudPDF::Types::DocAnnotationsFlatten400ResponseName }, optional: false, nullable: false
|
|
7
|
+
|
|
8
|
+
field :code, -> { CloudPDF::Types::DocAnnotationsFlatten400ResponseCode }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :message, -> { String }, optional: false, nullable: false
|
|
11
|
+
|
|
12
|
+
field :details, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CloudPDF
|
|
4
|
+
module Types
|
|
5
|
+
module DocAnnotationsFlatten400ResponseCode
|
|
6
|
+
extend CloudPDF::Internal::Types::Enum
|
|
7
|
+
|
|
8
|
+
UNKNOWN = "Unknown"
|
|
9
|
+
INVALID_ARG = "InvalidArg"
|
|
10
|
+
DOC_NOT_OPEN = "DocNotOpen"
|
|
11
|
+
DOC_OPEN_FAILED = "DocOpenFailed"
|
|
12
|
+
DOC_PASSWORD_REQUIRED = "DocPasswordRequired"
|
|
13
|
+
DOC_PASSWORD_INCORRECT = "DocPasswordIncorrect"
|
|
14
|
+
SHARE_PASSWORD_REQUIRED = "SharePasswordRequired"
|
|
15
|
+
ABORTED = "Aborted"
|
|
16
|
+
NETWORK = "Network"
|
|
17
|
+
UNAUTHENTICATED = "Unauthenticated"
|
|
18
|
+
FORBIDDEN = "Forbidden"
|
|
19
|
+
NOT_FOUND = "NotFound"
|
|
20
|
+
WIRE_FORMAT = "WireFormat"
|
|
21
|
+
RUNTIME_UNAVAILABLE = "RuntimeUnavailable"
|
|
22
|
+
INVALID_REFERENCE = "InvalidReference"
|
|
23
|
+
WEAK_ANNOTATION_SESSION_CONFLICT = "WeakAnnotationSessionConflict"
|
|
24
|
+
LAYER_VERSION_CONFLICT = "LayerVersionConflict"
|
|
25
|
+
NOT_IMPLEMENTED = "NotImplemented"
|
|
26
|
+
MALFORMED_PDF = "MalformedPdf"
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|