Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .fern/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"generatorConfig": {
"moduleName": "CloudPDF"
},
"originGitCommit": "3283147ded32fc15c426768f75557a4d95943d84",
"originGitCommit": "ce65e1390549db1272ac3720a5ddfcea55be2c07",
"originGitCommitIsDirty": false,
"invokedBy": "ci",
"requestedVersion": "3.0.0.alpha.21",
"requestedVersion": "3.0.0.alpha.22",
"ciProvider": "github"
}
8 changes: 4 additions & 4 deletions cloudpdf-generation.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"language": "ruby",
"canonicalVersion": "3.0.0-next.21",
"sdkVersion": "3.0.0.alpha.21",
"canonicalVersion": "3.0.0-next.22",
"sdkVersion": "3.0.0.alpha.22",
"source": {
"repository": "embedpdf/embed-pdf-viewer",
"openapi": "cloudpdf/contract/openapi.json",
"openapiSha256": "f85648401f5c683a32e2b50acc3d753df9f4ce06df8492e5d2b599beceb0e788",
"gitCommit": "3283147ded32fc15c426768f75557a4d95943d84",
"openapiSha256": "1f5aa976eec4d5fc4e2b22efe725df58a01389896733ec1870f96a6441b62859",
"gitCommit": "ce65e1390549db1272ac3720a5ddfcea55be2c07",
"gitCommitIsDirty": false
},
"fern": {
Expand Down
37 changes: 37 additions & 0 deletions lib/CloudPDF/deployment/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,43 @@ def license_status(request_options: {}, **_params)
raise error_class.new(response.body, code: code)
end
end

# What each module declares, for a dashboard or a script that lists modules, offers their permissions in its
# dialogs and shows their meters. Which tenants may use one is in their `features` (`tenants.get`); what it costs,
# if anything, is the operator's.
#
# @param request_options [Hash]
# @param _params [Hash]
# @option request_options [String] :base_url
# @option request_options [Hash{String => Object}] :additional_headers
# @option request_options [Hash{String => Object}] :additional_query_parameters
# @option request_options [Hash{String => Object}] :additional_body_parameters
# @option request_options [Integer] :timeout_in_seconds
#
# @example
# client.deployment.modules
#
# @return [CloudPDF::Types::DeploymentModulesResponse]
def modules(request_options: {}, **_params)
request = CloudPDF::Internal::JSON::Request.new(
base_url: request_options[:base_url],
method: "GET",
path: "v1/deployment/modules",
request_options: request_options
)
begin
response = @client.send(request)
rescue Net::HTTPRequestTimeout
raise CloudPDF::Errors::TimeoutError
end
code = response.code.to_i
if code.between?(200, 299)
(response.body.to_s.empty? ? nil : CloudPDF::Types::DeploymentModulesResponse.load(response.body))
else
error_class = CloudPDF::Errors::ResponseError.subclass_for_code(code)
raise error_class.new(response.body, code: code)
end
end
end
end
end
4 changes: 4 additions & 0 deletions lib/CloudPDF/tenants/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,8 @@ def suspend(request_options: {}, **params)
# @option request_options [Integer] :timeout_in_seconds
# @option params [String] :tenant_id
# @option params [String, nil] :period
# @option params [String, nil] :from
# @option params [String, nil] :to
#
# @example
# client.tenants.usage(tenant_id: "tenantId")
Expand All @@ -301,6 +303,8 @@ def usage(request_options: {}, **params)
params = CloudPDF::Internal::Types::Utils.normalize_keys(params)
query_params = {}
query_params["period"] = params[:period] if params.key?(:period)
query_params["from"] = params[:from] if params.key?(:from)
query_params["to"] = params[:to] if params.key?(:to)

request = CloudPDF::Internal::JSON::Request.new(
base_url: request_options[:base_url],
Expand Down
4 changes: 4 additions & 0 deletions lib/CloudPDF/tenants/types/usage_tenants_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ class UsageTenantsRequest < Internal::Types::Model
field :tenant_id, -> { String }, optional: false, nullable: false, api_name: "tenantId"

field :period, -> { String }, optional: true, nullable: false

field :from, -> { String }, optional: true, nullable: false

field :to, -> { String }, optional: true, nullable: false
end
end
end
Expand Down
2 changes: 2 additions & 0 deletions lib/CloudPDF/types/annotation_caret.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ class AnnotationCaret < Internal::Types::Model

field :actions, -> { CloudPDF::Types::PdfAnnotationActions }, optional: false, nullable: true

field :rich_text, -> { CloudPDF::Types::RichTextDocument }, optional: false, nullable: true, api_name: "richText"

field :color, -> { String }, optional: false, nullable: false

field :opacity, -> { Integer }, optional: false, nullable: false
Expand Down
4 changes: 3 additions & 1 deletion lib/CloudPDF/types/annotation_circle.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ class AnnotationCircle < Internal::Types::Model

field :actions, -> { CloudPDF::Types::PdfAnnotationActions }, optional: false, nullable: true

field :color, -> { String }, optional: false, nullable: false
field :rich_text, -> { CloudPDF::Types::RichTextDocument }, optional: false, nullable: true, api_name: "richText"

field :color, -> { String }, optional: false, nullable: true

field :opacity, -> { Integer }, optional: false, nullable: false

Expand Down
2 changes: 2 additions & 0 deletions lib/CloudPDF/types/annotation_draft_caret.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ class AnnotationDraftCaret < Internal::Types::Model

field :actions, -> { Object }, optional: true, nullable: false

field :rich_text, -> { CloudPDF::Types::RichTextDocumentInput }, optional: true, nullable: false, api_name: "richText"

field :color, -> { String }, optional: true, nullable: false

field :opacity, -> { Integer }, optional: true, nullable: false
Expand Down
2 changes: 2 additions & 0 deletions lib/CloudPDF/types/annotation_draft_circle.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ class AnnotationDraftCircle < Internal::Types::Model

field :actions, -> { Object }, optional: true, nullable: false

field :rich_text, -> { CloudPDF::Types::RichTextDocumentInput }, optional: true, nullable: false, api_name: "richText"

field :color, -> { String }, optional: true, nullable: false

field :opacity, -> { Integer }, optional: true, nullable: false
Expand Down
2 changes: 2 additions & 0 deletions lib/CloudPDF/types/annotation_draft_file_attachment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ class AnnotationDraftFileAttachment < Internal::Types::Model

field :actions, -> { Object }, optional: true, nullable: false

field :rich_text, -> { CloudPDF::Types::RichTextDocumentInput }, optional: true, nullable: false, api_name: "richText"

field :color, -> { String }, optional: true, nullable: false

field :opacity, -> { Integer }, optional: true, nullable: false
Expand Down
4 changes: 2 additions & 2 deletions lib/CloudPDF/types/annotation_draft_free_text.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ class AnnotationDraftFreeText < Internal::Types::Model

field :actions, -> { Object }, optional: true, nullable: false

field :rich_text, -> { CloudPDF::Types::RichTextDocumentInput }, optional: true, nullable: false, api_name: "richText"

field :box, -> { CloudPDF::Types::AnnotationDraftFreeTextBox }, optional: true, nullable: false

field :rotation, -> { Integer }, optional: true, nullable: false
Expand All @@ -79,8 +81,6 @@ class AnnotationDraftFreeText < Internal::Types::Model

field :vertical_align, -> { CloudPDF::Types::AnnotationDraftFreeTextVerticalAlign }, optional: true, nullable: false, api_name: "verticalAlign"

field :rich_text, -> { CloudPDF::Types::AnnotationDraftFreeTextRichText }, optional: true, nullable: false, api_name: "richText"

field :color, -> { String }, optional: true, nullable: false

field :font_color, -> { String }, optional: true, nullable: false, api_name: "fontColor"
Expand Down
11 changes: 0 additions & 11 deletions lib/CloudPDF/types/annotation_draft_free_text_rich_text.rb

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 2 additions & 0 deletions lib/CloudPDF/types/annotation_draft_highlight.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ class AnnotationDraftHighlight < Internal::Types::Model

field :actions, -> { Object }, optional: true, nullable: false

field :rich_text, -> { CloudPDF::Types::RichTextDocumentInput }, optional: true, nullable: false, api_name: "richText"

field :color, -> { String }, optional: true, nullable: false

field :opacity, -> { Integer }, optional: true, nullable: false
Expand Down
2 changes: 2 additions & 0 deletions lib/CloudPDF/types/annotation_draft_ink.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ class AnnotationDraftInk < Internal::Types::Model

field :actions, -> { Object }, optional: true, nullable: false

field :rich_text, -> { CloudPDF::Types::RichTextDocumentInput }, optional: true, nullable: false, api_name: "richText"

field :color, -> { String }, optional: true, nullable: false

field :opacity, -> { Integer }, optional: true, nullable: false
Expand Down
2 changes: 2 additions & 0 deletions lib/CloudPDF/types/annotation_draft_line.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ class AnnotationDraftLine < Internal::Types::Model

field :actions, -> { Object }, optional: true, nullable: false

field :rich_text, -> { CloudPDF::Types::RichTextDocumentInput }, optional: true, nullable: false, api_name: "richText"

field :color, -> { String }, optional: true, nullable: false

field :opacity, -> { Integer }, optional: true, nullable: false
Expand Down
2 changes: 2 additions & 0 deletions lib/CloudPDF/types/annotation_draft_polygon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ class AnnotationDraftPolygon < Internal::Types::Model

field :actions, -> { Object }, optional: true, nullable: false

field :rich_text, -> { CloudPDF::Types::RichTextDocumentInput }, optional: true, nullable: false, api_name: "richText"

field :color, -> { String }, optional: true, nullable: false

field :opacity, -> { Integer }, optional: true, nullable: false
Expand Down
2 changes: 2 additions & 0 deletions lib/CloudPDF/types/annotation_draft_polyline.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ class AnnotationDraftPolyline < Internal::Types::Model

field :actions, -> { Object }, optional: true, nullable: false

field :rich_text, -> { CloudPDF::Types::RichTextDocumentInput }, optional: true, nullable: false, api_name: "richText"

field :color, -> { String }, optional: true, nullable: false

field :opacity, -> { Integer }, optional: true, nullable: false
Expand Down
2 changes: 2 additions & 0 deletions lib/CloudPDF/types/annotation_draft_redact.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ class AnnotationDraftRedact < Internal::Types::Model

field :actions, -> { Object }, optional: true, nullable: false

field :rich_text, -> { CloudPDF::Types::RichTextDocumentInput }, optional: true, nullable: false, api_name: "richText"

field :color, -> { String }, optional: true, nullable: false

field :opacity, -> { Integer }, optional: true, nullable: false
Expand Down
2 changes: 2 additions & 0 deletions lib/CloudPDF/types/annotation_draft_square.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ class AnnotationDraftSquare < Internal::Types::Model

field :actions, -> { Object }, optional: true, nullable: false

field :rich_text, -> { CloudPDF::Types::RichTextDocumentInput }, optional: true, nullable: false, api_name: "richText"

field :color, -> { String }, optional: true, nullable: false

field :opacity, -> { Integer }, optional: true, nullable: false
Expand Down
2 changes: 2 additions & 0 deletions lib/CloudPDF/types/annotation_draft_squiggly.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ class AnnotationDraftSquiggly < Internal::Types::Model

field :actions, -> { Object }, optional: true, nullable: false

field :rich_text, -> { CloudPDF::Types::RichTextDocumentInput }, optional: true, nullable: false, api_name: "richText"

field :color, -> { String }, optional: true, nullable: false

field :opacity, -> { Integer }, optional: true, nullable: false
Expand Down
2 changes: 2 additions & 0 deletions lib/CloudPDF/types/annotation_draft_stamp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ class AnnotationDraftStamp < Internal::Types::Model

field :actions, -> { Object }, optional: true, nullable: false

field :rich_text, -> { CloudPDF::Types::RichTextDocumentInput }, optional: true, nullable: false, api_name: "richText"

field :box, -> { CloudPDF::Types::AnnotationDraftStampBox }, optional: true, nullable: false

field :rotation, -> { Integer }, optional: true, nullable: false
Expand Down
Loading
Loading