Skip to content

Commit

Permalink
docs(samples): add example tags to generated samples (#507)
Browse files Browse the repository at this point in the history
* docs(samples): add example tags to generated samples

PiperOrigin-RevId: 408439482

Source-Link: googleapis/googleapis@b9f6184

Source-Link: googleapis/googleapis-gen@eb888bc
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZWI4ODhiYzIxNGVmYzdiZjQzYmY0NjM0YjQ3MDI1NDU2NWE2NTlhNSJ9

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
2 people authored and sofisl committed Oct 13, 2022
1 parent 95395c0 commit 639b828
Show file tree
Hide file tree
Showing 16 changed files with 423 additions and 439 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"img.shields.io"
],
"silent": true,
"concurrency": 10
"concurrency": 5
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function main(name) {
// Instantiates a client
const datatransferClient = new DataTransferServiceClient();

async function checkValidCreds() {
async function callCheckValidCreds() {
// Construct request
const request = {
name,
Expand All @@ -44,7 +44,7 @@ function main(name) {
console.log(response);
}

checkValidCreds();
callCheckValidCreds();
// [END bigquerydatatransfer_v1_generated_DataTransferService_CheckValidCreds_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function main(parent, transferConfig) {
/**
* Required. Data transfer configuration to create.
*/
// const transferConfig = ''
// const transferConfig = {}
/**
* Optional OAuth2 authorization code to use with this transfer configuration.
* This is required if new credentials are needed, as indicated by
Expand Down Expand Up @@ -72,7 +72,7 @@ function main(parent, transferConfig) {
// Instantiates a client
const datatransferClient = new DataTransferServiceClient();

async function createTransferConfig() {
async function callCreateTransferConfig() {
// Construct request
const request = {
parent,
Expand All @@ -84,7 +84,7 @@ function main(parent, transferConfig) {
console.log(response);
}

createTransferConfig();
callCreateTransferConfig();
// [END bigquerydatatransfer_v1_generated_DataTransferService_CreateTransferConfig_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function main(name) {
// Instantiates a client
const datatransferClient = new DataTransferServiceClient();

async function deleteTransferConfig() {
async function callDeleteTransferConfig() {
// Construct request
const request = {
name,
Expand All @@ -44,7 +44,7 @@ function main(name) {
console.log(response);
}

deleteTransferConfig();
callDeleteTransferConfig();
// [END bigquerydatatransfer_v1_generated_DataTransferService_DeleteTransferConfig_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function main(name) {
// Instantiates a client
const datatransferClient = new DataTransferServiceClient();

async function deleteTransferRun() {
async function callDeleteTransferRun() {
// Construct request
const request = {
name,
Expand All @@ -44,7 +44,7 @@ function main(name) {
console.log(response);
}

deleteTransferRun();
callDeleteTransferRun();
// [END bigquerydatatransfer_v1_generated_DataTransferService_DeleteTransferRun_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function main(name) {
// Instantiates a client
const datatransferClient = new DataTransferServiceClient();

async function getDataSource() {
async function callGetDataSource() {
// Construct request
const request = {
name,
Expand All @@ -44,7 +44,7 @@ function main(name) {
console.log(response);
}

getDataSource();
callGetDataSource();
// [END bigquerydatatransfer_v1_generated_DataTransferService_GetDataSource_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function main(name) {
// Instantiates a client
const datatransferClient = new DataTransferServiceClient();

async function getTransferConfig() {
async function callGetTransferConfig() {
// Construct request
const request = {
name,
Expand All @@ -44,7 +44,7 @@ function main(name) {
console.log(response);
}

getTransferConfig();
callGetTransferConfig();
// [END bigquerydatatransfer_v1_generated_DataTransferService_GetTransferConfig_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function main(name) {
// Instantiates a client
const datatransferClient = new DataTransferServiceClient();

async function getTransferRun() {
async function callGetTransferRun() {
// Construct request
const request = {
name,
Expand All @@ -44,7 +44,7 @@ function main(name) {
console.log(response);
}

getTransferRun();
callGetTransferRun();
// [END bigquerydatatransfer_v1_generated_DataTransferService_GetTransferRun_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function main(parent) {
// Instantiates a client
const datatransferClient = new DataTransferServiceClient();

async function listDataSources() {
async function callListDataSources() {
// Construct request
const request = {
parent,
Expand All @@ -58,7 +58,7 @@ function main(parent) {
}
}

listDataSources();
callListDataSources();
// [END bigquerydatatransfer_v1_generated_DataTransferService_ListDataSources_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function main(parent) {
// Instantiates a client
const datatransferClient = new DataTransferServiceClient();

async function listTransferConfigs() {
async function callListTransferConfigs() {
// Construct request
const request = {
parent,
Expand All @@ -62,7 +62,7 @@ function main(parent) {
}
}

listTransferConfigs();
callListTransferConfigs();
// [END bigquerydatatransfer_v1_generated_DataTransferService_ListTransferConfigs_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function main(parent) {
// Instantiates a client
const datatransferClient = new DataTransferServiceClient();

async function listTransferLogs() {
async function callListTransferLogs() {
// Construct request
const request = {
parent,
Expand All @@ -63,7 +63,7 @@ function main(parent) {
}
}

listTransferLogs();
callListTransferLogs();
// [END bigquerydatatransfer_v1_generated_DataTransferService_ListTransferLogs_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function main(parent) {
/**
* Indicates how run attempts are to be pulled.
*/
// const runAttempt = ''
// const runAttempt = {}

// Imports the Datatransfer library
const {DataTransferServiceClient} =
Expand All @@ -54,7 +54,7 @@ function main(parent) {
// Instantiates a client
const datatransferClient = new DataTransferServiceClient();

async function listTransferRuns() {
async function callListTransferRuns() {
// Construct request
const request = {
parent,
Expand All @@ -67,7 +67,7 @@ function main(parent) {
}
}

listTransferRuns();
callListTransferRuns();
// [END bigquerydatatransfer_v1_generated_DataTransferService_ListTransferRuns_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ function main(parent, startTime, endTime) {
* Required. Start time of the range of transfer runs. For example,
* `"2017-05-25T00:00:00+00:00"`.
*/
// const startTime = ''
// const startTime = {}
/**
* Required. End time of the range of transfer runs. For example,
* `"2017-05-30T00:00:00+00:00"`.
*/
// const endTime = ''
// const endTime = {}

// Imports the Datatransfer library
const {DataTransferServiceClient} =
Expand All @@ -43,7 +43,7 @@ function main(parent, startTime, endTime) {
// Instantiates a client
const datatransferClient = new DataTransferServiceClient();

async function scheduleTransferRuns() {
async function callScheduleTransferRuns() {
// Construct request
const request = {
parent,
Expand All @@ -56,7 +56,7 @@ function main(parent, startTime, endTime) {
console.log(response);
}

scheduleTransferRuns();
callScheduleTransferRuns();
// [END bigquerydatatransfer_v1_generated_DataTransferService_ScheduleTransferRuns_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ function main() {
/**
* Time range for the transfer runs that should be started.
*/
// const requestedTimeRange = ''
// const requestedTimeRange = {}
/**
* Specific run_time for a transfer run to be started. The
* requested_run_time must not be in the future.
*/
// const requestedRunTime = ''
// const requestedRunTime = {}

// Imports the Datatransfer library
const {DataTransferServiceClient} =
Expand All @@ -42,7 +42,7 @@ function main() {
// Instantiates a client
const datatransferClient = new DataTransferServiceClient();

async function startManualTransferRuns() {
async function callStartManualTransferRuns() {
// Construct request
const request = {};

Expand All @@ -51,7 +51,7 @@ function main() {
console.log(response);
}

startManualTransferRuns();
callStartManualTransferRuns();
// [END bigquerydatatransfer_v1_generated_DataTransferService_StartManualTransferRuns_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function main(transferConfig, updateMask) {
/**
* Required. Data transfer configuration to create.
*/
// const transferConfig = ''
// const transferConfig = {}
/**
* Optional OAuth2 authorization code to use with this transfer configuration.
* If it is provided, the transfer configuration will be associated with the
Expand All @@ -44,7 +44,7 @@ function main(transferConfig, updateMask) {
/**
* Required. Required list of fields to be updated in this request.
*/
// const updateMask = ''
// const updateMask = {}
/**
* Optional version info. If users want to find a very recent access token,
* that is, immediately after approving access, users have to set the
Expand All @@ -70,7 +70,7 @@ function main(transferConfig, updateMask) {
// Instantiates a client
const datatransferClient = new DataTransferServiceClient();

async function updateTransferConfig() {
async function callUpdateTransferConfig() {
// Construct request
const request = {
transferConfig,
Expand All @@ -82,7 +82,7 @@ function main(transferConfig, updateMask) {
console.log(response);
}

updateTransferConfig();
callUpdateTransferConfig();
// [END bigquerydatatransfer_v1_generated_DataTransferService_UpdateTransferConfig_async]
}

Expand Down
Loading

0 comments on commit 639b828

Please sign in to comment.