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
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CloudPDF
|
|
4
|
+
module Types
|
|
5
|
+
class DocAnnotationsFlatten404Response < Internal::Types::Model
|
|
6
|
+
field :name, -> { CloudPDF::Types::DocAnnotationsFlatten404ResponseName }, optional: false, nullable: false
|
|
7
|
+
|
|
8
|
+
field :code, -> { CloudPDF::Types::DocAnnotationsFlatten404ResponseCode }, 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 DocAnnotationsFlatten404ResponseCode
|
|
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 DocAnnotationsFlattenRequest
|
|
6
|
+
# DocAnnotationsFlattenRequest 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 DocPagesRemoveName200ResponseMeta < Internal::Types::Model
|
|
6
|
+
field :affected_pages, -> { Internal::Types::Array[CloudPDF::Types::DocPagesRemoveName200ResponseMetaAffectedPagesItem] }, optional: false, nullable: false, api_name: "affectedPages"
|
|
7
|
+
|
|
8
|
+
field :cache_delta, -> { CloudPDF::Types::DocPagesRemoveName200ResponseMetaCacheDelta }, 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 DocPagesRemoveName200ResponseMetaAffectedPagesItem < Internal::Types::Model
|
|
6
|
+
field :page_object_number, -> { Integer }, optional: false, nullable: false, api_name: "pageObjectNumber"
|
|
7
|
+
|
|
8
|
+
field :revision, -> { CloudPDF::Types::DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :weak_annotation_state, -> { CloudPDF::Types::DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationState }, 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 DocPagesRemoveName200ResponseMetaAffectedPagesItemRevision < 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 DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationState < Internal::Types::Model
|
|
6
|
+
extend CloudPDF::Internal::Types::Union
|
|
7
|
+
|
|
8
|
+
discriminant :kind
|
|
9
|
+
|
|
10
|
+
member -> { CloudPDF::Types::DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown }, key: "UNKNOWN"
|
|
11
|
+
|
|
12
|
+
member -> { CloudPDF::Types::DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown }, 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 DocPagesRemoveName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown < 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 DocPagesRemoveName200ResponseMetaCacheDelta < 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::DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem] }, 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 DocPagesRemoveName200ResponseMetaCacheDeltaPagesItem < Internal::Types::Model
|
|
6
|
+
field :page_object_number, -> { Integer }, optional: false, nullable: false, api_name: "pageObjectNumber"
|
|
7
|
+
|
|
8
|
+
field :cache, -> { CloudPDF::Types::DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache }, 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 DocPagesRemoveName200ResponseMetaCacheDeltaPagesItemCache < 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 DocPagesRemoveName400Response < Internal::Types::Model
|
|
6
|
+
field :name, -> { CloudPDF::Types::DocPagesRemoveName400ResponseName }, optional: false, nullable: false
|
|
7
|
+
|
|
8
|
+
field :code, -> { CloudPDF::Types::DocPagesRemoveName400ResponseCode }, 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 DocPagesRemoveName400ResponseCode
|
|
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 DocPagesRemoveName404Response < Internal::Types::Model
|
|
6
|
+
field :name, -> { CloudPDF::Types::DocPagesRemoveName404ResponseName }, optional: false, nullable: false
|
|
7
|
+
|
|
8
|
+
field :code, -> { CloudPDF::Types::DocPagesRemoveName404ResponseCode }, 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 DocPagesRemoveName404ResponseCode
|
|
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 DocPagesRemoveNameRequest
|
|
6
|
+
# DocPagesRemoveNameRequest 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 DocPagesSetName200ResponseMeta < Internal::Types::Model
|
|
6
|
+
field :affected_pages, -> { Internal::Types::Array[CloudPDF::Types::DocPagesSetName200ResponseMetaAffectedPagesItem] }, optional: false, nullable: false, api_name: "affectedPages"
|
|
7
|
+
|
|
8
|
+
field :cache_delta, -> { CloudPDF::Types::DocPagesSetName200ResponseMetaCacheDelta }, 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 DocPagesSetName200ResponseMetaAffectedPagesItem < Internal::Types::Model
|
|
6
|
+
field :page_object_number, -> { Integer }, optional: false, nullable: false, api_name: "pageObjectNumber"
|
|
7
|
+
|
|
8
|
+
field :revision, -> { CloudPDF::Types::DocPagesSetName200ResponseMetaAffectedPagesItemRevision }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :weak_annotation_state, -> { CloudPDF::Types::DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationState }, 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 DocPagesSetName200ResponseMetaAffectedPagesItemRevision < 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 DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationState < Internal::Types::Model
|
|
6
|
+
extend CloudPDF::Internal::Types::Union
|
|
7
|
+
|
|
8
|
+
discriminant :kind
|
|
9
|
+
|
|
10
|
+
member -> { CloudPDF::Types::DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateUnknown }, key: "UNKNOWN"
|
|
11
|
+
|
|
12
|
+
member -> { CloudPDF::Types::DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown }, 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 DocPagesSetName200ResponseMetaAffectedPagesItemWeakAnnotationStateKnown < 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 DocPagesSetName200ResponseMetaCacheDelta < 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::DocPagesSetName200ResponseMetaCacheDeltaPagesItem] }, 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 DocPagesSetName200ResponseMetaCacheDeltaPagesItem < Internal::Types::Model
|
|
6
|
+
field :page_object_number, -> { Integer }, optional: false, nullable: false, api_name: "pageObjectNumber"
|
|
7
|
+
|
|
8
|
+
field :cache, -> { CloudPDF::Types::DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache }, 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 DocPagesSetName200ResponseMetaCacheDeltaPagesItemCache < 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 DocPagesSetName400Response < Internal::Types::Model
|
|
6
|
+
field :name, -> { CloudPDF::Types::DocPagesSetName400ResponseName }, optional: false, nullable: false
|
|
7
|
+
|
|
8
|
+
field :code, -> { CloudPDF::Types::DocPagesSetName400ResponseCode }, 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 DocPagesSetName400ResponseCode
|
|
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 DocPagesSetName404Response < Internal::Types::Model
|
|
6
|
+
field :name, -> { CloudPDF::Types::DocPagesSetName404ResponseName }, optional: false, nullable: false
|
|
7
|
+
|
|
8
|
+
field :code, -> { CloudPDF::Types::DocPagesSetName404ResponseCode }, 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 DocPagesSetName404ResponseCode
|
|
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 DocPagesSetNameRequest
|
|
6
|
+
# DocPagesSetNameRequest 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
|
data/lib/CloudPDF/version.rb
CHANGED