cloudpdf 3.0.0.alpha.7 → 3.0.0.alpha.9
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/pages/client.rb +157 -0
- data/lib/CloudPDF/doc/pages/types/extract_pages_request.rb +19 -0
- data/lib/CloudPDF/doc/pages/types/insert_blank_pages_request.rb +19 -0
- data/lib/CloudPDF/doc/pages/types/insert_pages_request.rb +17 -0
- data/lib/CloudPDF/types/doc_pages_extract400response.rb +15 -0
- data/lib/CloudPDF/types/doc_pages_extract400response_code.rb +29 -0
- data/lib/CloudPDF/types/doc_pages_extract400response_name.rb +11 -0
- data/lib/CloudPDF/types/doc_pages_extract404response.rb +15 -0
- data/lib/CloudPDF/types/doc_pages_extract404response_code.rb +29 -0
- data/lib/CloudPDF/types/doc_pages_extract404response_name.rb +11 -0
- data/lib/CloudPDF/types/doc_pages_extract_request.rb +23 -0
- data/lib/CloudPDF/types/doc_pages_insert200response.rb +9 -0
- data/lib/CloudPDF/types/doc_pages_insert200response_meta.rb +11 -0
- data/lib/CloudPDF/types/doc_pages_insert200response_meta_affected_pages_item.rb +13 -0
- data/lib/CloudPDF/types/doc_pages_insert200response_meta_affected_pages_item_revision.rb +13 -0
- data/lib/CloudPDF/types/doc_pages_insert200response_meta_affected_pages_item_weak_annotation_state.rb +15 -0
- data/lib/CloudPDF/types/doc_pages_insert200response_meta_affected_pages_item_weak_annotation_state_known.rb +9 -0
- data/lib/CloudPDF/types/doc_pages_insert200response_meta_affected_pages_item_weak_annotation_state_unknown.rb +7 -0
- data/lib/CloudPDF/types/doc_pages_insert200response_meta_cache_delta.rb +13 -0
- data/lib/CloudPDF/types/doc_pages_insert200response_meta_cache_delta_pages_item.rb +11 -0
- data/lib/CloudPDF/types/doc_pages_insert200response_meta_cache_delta_pages_item_cache.rb +11 -0
- data/lib/CloudPDF/types/doc_pages_insert400response.rb +15 -0
- data/lib/CloudPDF/types/doc_pages_insert400response_code.rb +29 -0
- data/lib/CloudPDF/types/doc_pages_insert400response_name.rb +11 -0
- data/lib/CloudPDF/types/doc_pages_insert404response.rb +15 -0
- data/lib/CloudPDF/types/doc_pages_insert404response_code.rb +29 -0
- data/lib/CloudPDF/types/doc_pages_insert404response_name.rb +11 -0
- data/lib/CloudPDF/types/doc_pages_insert_blank200response.rb +9 -0
- data/lib/CloudPDF/types/doc_pages_insert_blank200response_meta.rb +11 -0
- data/lib/CloudPDF/types/doc_pages_insert_blank200response_meta_affected_pages_item.rb +13 -0
- data/lib/CloudPDF/types/doc_pages_insert_blank200response_meta_affected_pages_item_revision.rb +13 -0
- data/lib/CloudPDF/types/doc_pages_insert_blank200response_meta_affected_pages_item_weak_annotation_state.rb +15 -0
- data/lib/CloudPDF/types/doc_pages_insert_blank200response_meta_affected_pages_item_weak_annotation_state_known.rb +9 -0
- data/lib/CloudPDF/types/doc_pages_insert_blank200response_meta_affected_pages_item_weak_annotation_state_unknown.rb +7 -0
- data/lib/CloudPDF/types/doc_pages_insert_blank200response_meta_cache_delta.rb +13 -0
- data/lib/CloudPDF/types/doc_pages_insert_blank200response_meta_cache_delta_pages_item.rb +11 -0
- data/lib/CloudPDF/types/doc_pages_insert_blank200response_meta_cache_delta_pages_item_cache.rb +11 -0
- data/lib/CloudPDF/types/doc_pages_insert_blank400response.rb +15 -0
- data/lib/CloudPDF/types/doc_pages_insert_blank400response_code.rb +29 -0
- data/lib/CloudPDF/types/doc_pages_insert_blank400response_name.rb +11 -0
- data/lib/CloudPDF/types/doc_pages_insert_blank404response.rb +15 -0
- data/lib/CloudPDF/types/doc_pages_insert_blank404response_code.rb +29 -0
- data/lib/CloudPDF/types/doc_pages_insert_blank404response_name.rb +11 -0
- data/lib/CloudPDF/types/doc_pages_insert_blank_request.rb +23 -0
- data/lib/CloudPDF/version.rb +1 -1
- data/lib/cloudpdf.rb +43 -0
- data/reference.md +267 -0
- metadata +45 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 980255ac2f16c60c98e0691506ce98bcee3baca00bd983682f8b21d5113b1e41
|
|
4
|
+
data.tar.gz: 23c064910d5dd62e106ed3ec862cbe876b75ce9c553dedfc7e3f86b21dccdc28
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7349e85af42fde5bc93fd7709f2839357f43a5e3f8cbc5bbf26fb66606a7b8524efc3c842a57adf946769246221ea276659adac2cd94ef982f4a1d6b58178703
|
|
7
|
+
data.tar.gz: 5a0cf9cd9d42af013e11244db47f6cff7eb787c58c7738163d9d24eb8f853eaf32864d50a7cd26225dd2948050addd5ae7aa8c28ac330ac9ea80b8f0905e7452
|
data/.fern/metadata.json
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
"generatorConfig": {
|
|
6
6
|
"moduleName": "CloudPDF"
|
|
7
7
|
},
|
|
8
|
-
"originGitCommit": "
|
|
8
|
+
"originGitCommit": "e5cd0731cb3a1f2ed5821f8d60191bd58934c3dd",
|
|
9
9
|
"originGitCommitIsDirty": false,
|
|
10
10
|
"invokedBy": "ci",
|
|
11
|
-
"requestedVersion": "3.0.0.alpha.
|
|
11
|
+
"requestedVersion": "3.0.0.alpha.9",
|
|
12
12
|
"ciProvider": "github"
|
|
13
13
|
}
|
|
@@ -62,6 +62,60 @@ module CloudPDF
|
|
|
62
62
|
end
|
|
63
63
|
end
|
|
64
64
|
|
|
65
|
+
# A read, not a mutation: the source document is untouched and no event is published. Body is
|
|
66
|
+
# `{"pageObjectNumbers": number[]}`; the response body is the new PDF.
|
|
67
|
+
#
|
|
68
|
+
# @param request_options [Hash]
|
|
69
|
+
# @param params [CloudPDF::Types::DocPagesExtractRequest]
|
|
70
|
+
# @option request_options [String] :base_url
|
|
71
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
72
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
73
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
74
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
75
|
+
# @option params [String] :doc_id
|
|
76
|
+
# @option params [String] :layer_name
|
|
77
|
+
# @option params [String, nil] :document_password
|
|
78
|
+
#
|
|
79
|
+
# @example
|
|
80
|
+
# client.doc.pages.extract(
|
|
81
|
+
# doc_id: "docId",
|
|
82
|
+
# layer_name: "layerName",
|
|
83
|
+
# request: {
|
|
84
|
+
# string: {
|
|
85
|
+
# key: "value"
|
|
86
|
+
# }
|
|
87
|
+
# }
|
|
88
|
+
# )
|
|
89
|
+
#
|
|
90
|
+
# @return [untyped]
|
|
91
|
+
def extract(request_options: {}, **params)
|
|
92
|
+
params = CloudPDF::Internal::Types::Utils.normalize_keys(params)
|
|
93
|
+
path_param_names = %i[doc_id layer_name]
|
|
94
|
+
body_params = params.except(*path_param_names)
|
|
95
|
+
|
|
96
|
+
headers = {}
|
|
97
|
+
headers["X-Document-Password"] = params[:document_password] if params[:document_password]
|
|
98
|
+
|
|
99
|
+
request = CloudPDF::Internal::JSON::Request.new(
|
|
100
|
+
base_url: request_options[:base_url],
|
|
101
|
+
method: "POST",
|
|
102
|
+
path: "v1/docs/#{URI.encode_uri_component(params[:doc_id].to_s)}/layers/#{URI.encode_uri_component(params[:layer_name].to_s)}/pages/extract",
|
|
103
|
+
headers: headers,
|
|
104
|
+
body: body_params,
|
|
105
|
+
request_options: request_options
|
|
106
|
+
)
|
|
107
|
+
begin
|
|
108
|
+
response = @client.send(request)
|
|
109
|
+
rescue Net::HTTPRequestTimeout
|
|
110
|
+
raise CloudPDF::Errors::TimeoutError
|
|
111
|
+
end
|
|
112
|
+
code = response.code.to_i
|
|
113
|
+
return if code.between?(200, 299)
|
|
114
|
+
|
|
115
|
+
error_class = CloudPDF::Errors::ResponseError.subclass_for_code(code)
|
|
116
|
+
raise error_class.new(response.body, code: code)
|
|
117
|
+
end
|
|
118
|
+
|
|
65
119
|
# @param request_options [Hash]
|
|
66
120
|
# @param params [CloudPDF::Types::DocPagesFlattenRequest]
|
|
67
121
|
# @option request_options [String] :base_url
|
|
@@ -113,6 +167,109 @@ module CloudPDF
|
|
|
113
167
|
end
|
|
114
168
|
end
|
|
115
169
|
|
|
170
|
+
# Multipart mutation envelope: a `body` field holding `{"destIndex"?: number}` (omitted → append) plus a
|
|
171
|
+
# `resource:source` file part carrying the standalone PDF whose pages are copied in. The inserted copies get
|
|
172
|
+
# fresh page object numbers, returned in insertion order.
|
|
173
|
+
#
|
|
174
|
+
# @param request_options [Hash]
|
|
175
|
+
# @param params [void]
|
|
176
|
+
# @option request_options [String] :base_url
|
|
177
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
178
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
179
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
180
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
181
|
+
# @option params [String] :doc_id
|
|
182
|
+
# @option params [String] :layer_name
|
|
183
|
+
# @option params [String, nil] :document_password
|
|
184
|
+
#
|
|
185
|
+
# @example
|
|
186
|
+
# client.doc.pages.insert(
|
|
187
|
+
# doc_id: "docId",
|
|
188
|
+
# layer_name: "layerName"
|
|
189
|
+
# )
|
|
190
|
+
#
|
|
191
|
+
# @return [CloudPDF::Types::DocPagesInsert200Response]
|
|
192
|
+
def insert(request_options: {}, **params)
|
|
193
|
+
params = CloudPDF::Internal::Types::Utils.normalize_keys(params)
|
|
194
|
+
body = Internal::Multipart::FormData.new
|
|
195
|
+
|
|
196
|
+
body.add_part(params[:file].to_form_data_part(name: "file")) if params[:file]
|
|
197
|
+
|
|
198
|
+
request = CloudPDF::Internal::Multipart::Request.new(
|
|
199
|
+
base_url: request_options[:base_url],
|
|
200
|
+
method: "POST",
|
|
201
|
+
path: "v1/docs/#{URI.encode_uri_component(params[:doc_id].to_s)}/layers/#{URI.encode_uri_component(params[:layer_name].to_s)}/pages/insert",
|
|
202
|
+
body: body,
|
|
203
|
+
request_options: request_options
|
|
204
|
+
)
|
|
205
|
+
begin
|
|
206
|
+
response = @client.send(request)
|
|
207
|
+
rescue Net::HTTPRequestTimeout
|
|
208
|
+
raise CloudPDF::Errors::TimeoutError
|
|
209
|
+
end
|
|
210
|
+
code = response.code.to_i
|
|
211
|
+
if code.between?(200, 299)
|
|
212
|
+
CloudPDF::Types::DocPagesInsert200Response.load(response.body)
|
|
213
|
+
else
|
|
214
|
+
error_class = CloudPDF::Errors::ResponseError.subclass_for_code(code)
|
|
215
|
+
raise error_class.new(response.body, code: code)
|
|
216
|
+
end
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
# Body is `{"size": {"width", "height"}, "count"?, "destIndex"?}` — size in PDF points, count in [1, 100],
|
|
220
|
+
# destIndex omitted → append.
|
|
221
|
+
#
|
|
222
|
+
# @param request_options [Hash]
|
|
223
|
+
# @param params [CloudPDF::Types::DocPagesInsertBlankRequest]
|
|
224
|
+
# @option request_options [String] :base_url
|
|
225
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
226
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
227
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
228
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
229
|
+
# @option params [String] :doc_id
|
|
230
|
+
# @option params [String] :layer_name
|
|
231
|
+
# @option params [String, nil] :document_password
|
|
232
|
+
#
|
|
233
|
+
# @example
|
|
234
|
+
# client.doc.pages.insert_blank(
|
|
235
|
+
# doc_id: "docId",
|
|
236
|
+
# layer_name: "layerName",
|
|
237
|
+
# request: {
|
|
238
|
+
# key: "value"
|
|
239
|
+
# }
|
|
240
|
+
# )
|
|
241
|
+
#
|
|
242
|
+
# @return [CloudPDF::Types::DocPagesInsertBlank200Response]
|
|
243
|
+
def insert_blank(request_options: {}, **params)
|
|
244
|
+
params = CloudPDF::Internal::Types::Utils.normalize_keys(params)
|
|
245
|
+
path_param_names = %i[doc_id layer_name]
|
|
246
|
+
body_params = params.except(*path_param_names)
|
|
247
|
+
|
|
248
|
+
headers = {}
|
|
249
|
+
headers["X-Document-Password"] = params[:document_password] if params[:document_password]
|
|
250
|
+
|
|
251
|
+
request = CloudPDF::Internal::JSON::Request.new(
|
|
252
|
+
base_url: request_options[:base_url],
|
|
253
|
+
method: "POST",
|
|
254
|
+
path: "v1/docs/#{URI.encode_uri_component(params[:doc_id].to_s)}/layers/#{URI.encode_uri_component(params[:layer_name].to_s)}/pages/insert-blank",
|
|
255
|
+
headers: headers,
|
|
256
|
+
body: body_params,
|
|
257
|
+
request_options: request_options
|
|
258
|
+
)
|
|
259
|
+
begin
|
|
260
|
+
response = @client.send(request)
|
|
261
|
+
rescue Net::HTTPRequestTimeout
|
|
262
|
+
raise CloudPDF::Errors::TimeoutError
|
|
263
|
+
end
|
|
264
|
+
code = response.code.to_i
|
|
265
|
+
if code.between?(200, 299)
|
|
266
|
+
CloudPDF::Types::DocPagesInsertBlank200Response.load(response.body)
|
|
267
|
+
else
|
|
268
|
+
error_class = CloudPDF::Errors::ResponseError.subclass_for_code(code)
|
|
269
|
+
raise error_class.new(response.body, code: code)
|
|
270
|
+
end
|
|
271
|
+
end
|
|
272
|
+
|
|
116
273
|
# @param request_options [Hash]
|
|
117
274
|
# @param params [CloudPDF::Types::DocPagesMoveRequest]
|
|
118
275
|
# @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 ExtractPagesRequest < 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 InsertBlankPagesRequest < 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,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CloudPDF
|
|
4
|
+
module Doc
|
|
5
|
+
module Pages
|
|
6
|
+
module Types
|
|
7
|
+
class InsertPagesRequest < 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,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CloudPDF
|
|
4
|
+
module Types
|
|
5
|
+
class DocPagesExtract400Response < Internal::Types::Model
|
|
6
|
+
field :name, -> { CloudPDF::Types::DocPagesExtract400ResponseName }, optional: false, nullable: false
|
|
7
|
+
|
|
8
|
+
field :code, -> { CloudPDF::Types::DocPagesExtract400ResponseCode }, 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 DocPagesExtract400ResponseCode
|
|
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 DocPagesExtract404Response < Internal::Types::Model
|
|
6
|
+
field :name, -> { CloudPDF::Types::DocPagesExtract404ResponseName }, optional: false, nullable: false
|
|
7
|
+
|
|
8
|
+
field :code, -> { CloudPDF::Types::DocPagesExtract404ResponseCode }, 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 DocPagesExtract404ResponseCode
|
|
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 DocPagesExtractRequest
|
|
6
|
+
# DocPagesExtractRequest 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 DocPagesInsert200ResponseMeta < Internal::Types::Model
|
|
6
|
+
field :affected_pages, -> { Internal::Types::Array[CloudPDF::Types::DocPagesInsert200ResponseMetaAffectedPagesItem] }, optional: false, nullable: false, api_name: "affectedPages"
|
|
7
|
+
|
|
8
|
+
field :cache_delta, -> { CloudPDF::Types::DocPagesInsert200ResponseMetaCacheDelta }, 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 DocPagesInsert200ResponseMetaAffectedPagesItem < Internal::Types::Model
|
|
6
|
+
field :page_object_number, -> { Integer }, optional: false, nullable: false, api_name: "pageObjectNumber"
|
|
7
|
+
|
|
8
|
+
field :revision, -> { CloudPDF::Types::DocPagesInsert200ResponseMetaAffectedPagesItemRevision }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :weak_annotation_state, -> { CloudPDF::Types::DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState }, optional: false, nullable: false, api_name: "weakAnnotationState"
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CloudPDF
|
|
4
|
+
module Types
|
|
5
|
+
class DocPagesInsert200ResponseMetaAffectedPagesItemRevision < 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 DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState < Internal::Types::Model
|
|
6
|
+
extend CloudPDF::Internal::Types::Union
|
|
7
|
+
|
|
8
|
+
discriminant :kind
|
|
9
|
+
|
|
10
|
+
member -> { CloudPDF::Types::DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown }, key: "UNKNOWN"
|
|
11
|
+
|
|
12
|
+
member -> { CloudPDF::Types::DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown }, 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 DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown < 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,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CloudPDF
|
|
4
|
+
module Types
|
|
5
|
+
class DocPagesInsert200ResponseMetaCacheDelta < 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 :pages, -> { Internal::Types::Array[CloudPDF::Types::DocPagesInsert200ResponseMetaCacheDeltaPagesItem] }, optional: false, nullable: false
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CloudPDF
|
|
4
|
+
module Types
|
|
5
|
+
class DocPagesInsert200ResponseMetaCacheDeltaPagesItem < Internal::Types::Model
|
|
6
|
+
field :page_object_number, -> { Integer }, optional: false, nullable: false, api_name: "pageObjectNumber"
|
|
7
|
+
|
|
8
|
+
field :cache, -> { CloudPDF::Types::DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache }, optional: false, nullable: false
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CloudPDF
|
|
4
|
+
module Types
|
|
5
|
+
class DocPagesInsert200ResponseMetaCacheDeltaPagesItemCache < 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 DocPagesInsert400Response < Internal::Types::Model
|
|
6
|
+
field :name, -> { CloudPDF::Types::DocPagesInsert400ResponseName }, optional: false, nullable: false
|
|
7
|
+
|
|
8
|
+
field :code, -> { CloudPDF::Types::DocPagesInsert400ResponseCode }, 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 DocPagesInsert400ResponseCode
|
|
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 DocPagesInsert404Response < Internal::Types::Model
|
|
6
|
+
field :name, -> { CloudPDF::Types::DocPagesInsert404ResponseName }, optional: false, nullable: false
|
|
7
|
+
|
|
8
|
+
field :code, -> { CloudPDF::Types::DocPagesInsert404ResponseCode }, 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 DocPagesInsert404ResponseCode
|
|
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
|