Skip to content

Latest commit

 

History

History
132 lines (80 loc) · 5.14 KB

File metadata and controls

132 lines (80 loc) · 5.14 KB

Reports

Overview

REST APIs for managing reports

Available Operations

  • upload - Upload a report.
  • get_signed_url - Get the signed access url for the linting reports for a particular document.
  • get_changes_signed_url - Get the signed access url for the change reports for a particular document.

upload

Upload a report.

Example Usage

require 'speakeasy_client_sdk_ruby'


s = ::OpenApiSDK::SpeakeasyClientSDK.new
s.config_security(
  ::OpenApiSDK::Shared::Security.new(
    api_key: "<YOUR_API_KEY_HERE>",
  )
)


req = ::OpenApiSDK::Operations::UploadReportRequestBody.new(
  data: ::OpenApiSDK::Shared::Report.new(),
  file: ::OpenApiSDK::Operations::UploadReportFile.new(
    file_name: "example.file",
    content: "0x8cc9e675ad".encode(),
  ),
)
    
res = s.reports.upload(req)

if ! res.uploaded_report.nil?
  # handle response
end

Parameters

Parameter Type Required Description
request ::OpenApiSDK::Operations::UploadReportRequestBody ✔️ The request object to use for the request.

Response

T.nilable(::OpenApiSDK::Operations::UploadReportResponse)

get_signed_url

Get the signed access url for the linting reports for a particular document.

Example Usage

require 'speakeasy_client_sdk_ruby'


s = ::OpenApiSDK::SpeakeasyClientSDK.new
s.config_security(
  ::OpenApiSDK::Shared::Security.new(
    api_key: "<YOUR_API_KEY_HERE>",
  )
)

    
res = s.reports.get_signed_url(document_checksum="<value>")

if ! res.signed_access.nil?
  # handle response
end

Parameters

Parameter Type Required Description
document_checksum ::String ✔️ The checksum of the document to retrieve the signed access url for.

Response

T.nilable(::OpenApiSDK::Operations::GetLintingReportSignedUrlResponse)

get_changes_signed_url

Get the signed access url for the change reports for a particular document.

Example Usage

require 'speakeasy_client_sdk_ruby'


s = ::OpenApiSDK::SpeakeasyClientSDK.new
s.config_security(
  ::OpenApiSDK::Shared::Security.new(
    api_key: "<YOUR_API_KEY_HERE>",
  )
)

    
res = s.reports.get_changes_signed_url(document_checksum="<value>")

if ! res.signed_access.nil?
  # handle response
end

Parameters

Parameter Type Required Description
document_checksum ::String ✔️ The checksum of the document to retrieve the signed access url for.

Response

T.nilable(::OpenApiSDK::Operations::GetChangesReportSignedUrlResponse)