Skip to content

Latest commit

 

History

History

readme.md

ABAP SDK for Google Cloud code samples

Pub/Sub

Example
Description
Publish topics This code sample can be used to publish a "Hello World!" message to a Pub/Sub Topic.
Pull subscriptions This code sample can be used to pull messages that were published to a Pub/Sub Topic using a subscription.
Create topic This code sample can be used to create a topic in Pub/Sub.
Create subscription This code sample can be used to create a subscription and attach the same to a Pub/Sub Topic.
List subscriptions of a topic This code sample can be used to list all the subscriptions attached to a Pub/Sub Topic.

Cloud Storage

Example
Description
Create bucket This code sample can be used to create a bucket in Cloud Storage.
List buckets This code sample can be used to list all the buckets in your Cloud project.
Upload file to a bucket This code sample can be used to upload an object to a Cloud Storage bucket.
Retrieve metadata of a file This code sample can be used to retrieve the metadata of an object from a Cloud Storage bucket.
Download file from a bucket This code sample can be used to download the object data from a Cloud Storage bucket.
Upload file with chunking and customer supplied encryption key This code sample can be used to upload a large object to a Cloud Storage bucket using chunking and providing customer-supplied encryption keys to encrypt the object.

Document AI

Example
Description
Process a single document This code sample can be used to process a single document. The default processor version is used to process the document.
Send a document for human review This code sample can be used to process a single document and send the processed data for human review.
Batch process multiple documents This code sample can be used to process multiple documents placed in a Cloud Storage bucket with the default processor version.
Documents placed in a source Cloud Storage bucket are processed in a long-running operation and the processed files are placed in a target Cloud Storage bucket in JSON format.
Process a single document with a processor version This code sample can be used to process a single document using a specified processor version.
Batch process multiple documents with a processor version This code sample can be used to process multiple documents placed in a Cloud Storage bucket using a specific processor version.
Documents placed in a source Cloud Storage bucket are processed in a long-running operation and the processed files are placed in a target Cloud Storage bucket in JSON format.
Get the latest state of a long-running operation This code sample can be used to get the latest state of a long-running operation.
Start asynchronous cancellation on a long-running operation This code sample can be used to start asynchronous cancellation on a long-running operation.

Secret Manager

Example
Description
Create secret This code sample can be used to create a new secret.
Add secret version This code sample can be used to add a new version to the secret.
Access secret version This code sample can be used to access a secret version and display the secret.
Patch secret This code sample can be used to patch a secret by modifying the label information.
Destroy secret version This code sample can be used to destroys a secret version.
Delete secret This code sample can be used to deletes a secret.

Cloud Translation

Example
Description
Create glossary This code sample can be used to create a glossary by using Google Cloud Translation API (v3).
A glossary is a custom dictionary the Cloud Translation API (v3) uses to consistently translate business's domain specific terminology.
Make sure a glossary file is prepared and uploaded to a Cloud Storage bucket in the same Google Cloud project. For more information about preparing a glossary file, see Creating and using glossaries (Advanced).
Translate with glossary This code sample can be used to translate glossary texts for an already configured glossary id.
Make sure a glossary id is created for the resource locations. For more information about preparing a glossary file, see Creating and using glossaries (Advanced).
Translate text in batch mode This code sample can be used to translate text in batch mode. Make sure that you have completed the following steps:
1. Store your text file in a source Cloud Storage bucket.
2. Create a target Cloud Storage bucket to store the translated text files.
3. Grant the service accounts access to Cloud Storage buckets, in addition to Cloud Translation permissions.
Translate document in batch mode This code sample can be used to translate one or more files of supported types in a Cloud Storage bucket and store the translated file into a target Cloud Storage bucket. For batch translations, the service account must have additional permissions to access Cloud Storage buckets along with the permissions to perform translation. For more information, see Translate documents.

Google Sheets

Example
Description
Create Spreadsheet This code sample can be used to create a spreadsheet by using Google Cloud Sheets API (v4).
Append values in a spreadsheet This code sample can be used to append values in a spreadsheet using Google Cloud Sheets API (v4).
Update values in a spreadsheet This code sample can be used to update values in a spreadsheet using Google Cloud Sheets API (v4).
Create sheet in drive and update values This code sample can be used to creating a spreadsheet in a Shared Drive and then to insert values to it using Google Cloud Sheets API (v4).