Skip to content

Commit

Permalink
docs(samples): add example tags to generated samples (#415)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 408439482

Source-Link: googleapis/googleapis@b9f6184

Source-Link: googleapis/googleapis-gen@eb888bc
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZWI4ODhiYzIxNGVmYzdiZjQzYmY0NjM0YjQ3MDI1NDU2NWE2NTlhNSJ9
  • Loading branch information
gcf-owl-bot[bot] authored Nov 10, 2021
1 parent bdf3815 commit 053573c
Show file tree
Hide file tree
Showing 19 changed files with 430 additions and 438 deletions.
2 changes: 1 addition & 1 deletion packages/google-cloud-scheduler/linkinator.config.json
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 @@ -26,20 +26,20 @@ function main(parent, job) {
// const parent = 'abc123'
/**
* Required. The job to add. The user can optionally specify a name for the
* job in [name][google.cloud.scheduler.v1.Job.name]. [name][google.cloud.scheduler.v1.Job.name] cannot be the same as an
* job in name google.cloud.scheduler.v1.Job.name. name google.cloud.scheduler.v1.Job.name cannot be the same as an
* existing job. If a name is not specified then the system will
* generate a random unique name that will be returned
* ([name][google.cloud.scheduler.v1.Job.name]) in the response.
* (name google.cloud.scheduler.v1.Job.name) in the response.
*/
// const job = ''
// const job = {}

// Imports the Scheduler library
const {CloudSchedulerClient} = require('@google-cloud/scheduler').v1;

// Instantiates a client
const schedulerClient = new CloudSchedulerClient();

async function createJob() {
async function callCreateJob() {
// Construct request
const request = {
parent,
Expand All @@ -51,7 +51,7 @@ function main(parent, job) {
console.log(response);
}

createJob();
callCreateJob();
// [END cloudscheduler_v1_generated_CloudScheduler_CreateJob_async]
}

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

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

deleteJob();
callDeleteJob();
// [END cloudscheduler_v1_generated_CloudScheduler_DeleteJob_async]
}

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

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

getJob();
callGetJob();
// [END cloudscheduler_v1_generated_CloudScheduler_GetJob_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ function main(parent) {
* A token identifying a page of results the server will return. To
* request the first page results, page_token must be empty. To
* request the next page of results, page_token must be the value of
* [next_page_token][google.cloud.scheduler.v1.ListJobsResponse.next_page_token] returned from
* the previous call to [ListJobs][google.cloud.scheduler.v1.CloudScheduler.ListJobs]. It is an error to
* switch the value of [filter][google.cloud.scheduler.v1.ListJobsRequest.filter] or
* [order_by][google.cloud.scheduler.v1.ListJobsRequest.order_by] while iterating through pages.
* next_page_token google.cloud.scheduler.v1.ListJobsResponse.next_page_token returned from
* the previous call to ListJobs google.cloud.scheduler.v1.CloudScheduler.ListJobs. It is an error to
* switch the value of filter google.cloud.scheduler.v1.ListJobsRequest.filter or
* order_by google.cloud.scheduler.v1.ListJobsRequest.order_by while iterating through pages.
*/
// const pageToken = 'abc123'

Expand All @@ -49,7 +49,7 @@ function main(parent) {
// Instantiates a client
const schedulerClient = new CloudSchedulerClient();

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

listJobs();
callListJobs();
// [END cloudscheduler_v1_generated_CloudScheduler_ListJobs_async]
}

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

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

pauseJob();
callPauseJob();
// [END cloudscheduler_v1_generated_CloudScheduler_PauseJob_async]
}

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

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

resumeJob();
callResumeJob();
// [END cloudscheduler_v1_generated_CloudScheduler_ResumeJob_async]
}

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

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

runJob();
callRunJob();
// [END cloudscheduler_v1_generated_CloudScheduler_RunJob_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,23 @@ function main(job, updateMask) {
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The new job properties. [name][google.cloud.scheduler.v1.Job.name] must be specified.
* Required. The new job properties. name google.cloud.scheduler.v1.Job.name must be specified.
* Output only fields cannot be modified using UpdateJob.
* Any value specified for an output only field will be ignored.
*/
// const job = ''
// const job = {}
/**
* A mask used to specify which fields of the job are being updated.
*/
// const updateMask = ''
// const updateMask = {}

// Imports the Scheduler library
const {CloudSchedulerClient} = require('@google-cloud/scheduler').v1;

// Instantiates a client
const schedulerClient = new CloudSchedulerClient();

async function updateJob() {
async function callUpdateJob() {
// Construct request
const request = {
job,
Expand All @@ -48,7 +48,7 @@ function main(job, updateMask) {
console.log(response);
}

updateJob();
callUpdateJob();
// [END cloudscheduler_v1_generated_CloudScheduler_UpdateJob_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,20 @@ function main(parent, job) {
// const parent = 'abc123'
/**
* Required. The job to add. The user can optionally specify a name for the
* job in [name][google.cloud.scheduler.v1beta1.Job.name]. [name][google.cloud.scheduler.v1beta1.Job.name] cannot be the same as an
* job in name google.cloud.scheduler.v1beta1.Job.name. name google.cloud.scheduler.v1beta1.Job.name cannot be the same as an
* existing job. If a name is not specified then the system will
* generate a random unique name that will be returned
* ([name][google.cloud.scheduler.v1beta1.Job.name]) in the response.
* (name google.cloud.scheduler.v1beta1.Job.name) in the response.
*/
// const job = ''
// const job = {}

// Imports the Scheduler library
const {CloudSchedulerClient} = require('@google-cloud/scheduler').v1beta1;

// Instantiates a client
const schedulerClient = new CloudSchedulerClient();

async function createJob() {
async function callCreateJob() {
// Construct request
const request = {
parent,
Expand All @@ -51,7 +51,7 @@ function main(parent, job) {
console.log(response);
}

createJob();
callCreateJob();
// [END cloudscheduler_v1beta1_generated_CloudScheduler_CreateJob_async]
}

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

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

deleteJob();
callDeleteJob();
// [END cloudscheduler_v1beta1_generated_CloudScheduler_DeleteJob_async]
}

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

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

getJob();
callGetJob();
// [END cloudscheduler_v1beta1_generated_CloudScheduler_GetJob_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ function main(parent) {
* A token identifying a page of results the server will return. To
* request the first page results, page_token must be empty. To
* request the next page of results, page_token must be the value of
* [next_page_token][google.cloud.scheduler.v1beta1.ListJobsResponse.next_page_token] returned from
* the previous call to [ListJobs][google.cloud.scheduler.v1beta1.CloudScheduler.ListJobs]. It is an error to
* switch the value of [filter][google.cloud.scheduler.v1beta1.ListJobsRequest.filter] or
* [order_by][google.cloud.scheduler.v1beta1.ListJobsRequest.order_by] while iterating through pages.
* next_page_token google.cloud.scheduler.v1beta1.ListJobsResponse.next_page_token returned from
* the previous call to ListJobs google.cloud.scheduler.v1beta1.CloudScheduler.ListJobs. It is an error to
* switch the value of filter google.cloud.scheduler.v1beta1.ListJobsRequest.filter or
* order_by google.cloud.scheduler.v1beta1.ListJobsRequest.order_by while iterating through pages.
*/
// const pageToken = 'abc123'

Expand All @@ -49,7 +49,7 @@ function main(parent) {
// Instantiates a client
const schedulerClient = new CloudSchedulerClient();

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

listJobs();
callListJobs();
// [END cloudscheduler_v1beta1_generated_CloudScheduler_ListJobs_async]
}

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

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

pauseJob();
callPauseJob();
// [END cloudscheduler_v1beta1_generated_CloudScheduler_PauseJob_async]
}

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

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

resumeJob();
callResumeJob();
// [END cloudscheduler_v1beta1_generated_CloudScheduler_ResumeJob_async]
}

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

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

runJob();
callRunJob();
// [END cloudscheduler_v1beta1_generated_CloudScheduler_RunJob_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,23 @@ function main(job) {
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The new job properties. [name][google.cloud.scheduler.v1beta1.Job.name] must be specified.
* Required. The new job properties. name google.cloud.scheduler.v1beta1.Job.name must be specified.
* Output only fields cannot be modified using UpdateJob.
* Any value specified for an output only field will be ignored.
*/
// const job = ''
// const job = {}
/**
* A mask used to specify which fields of the job are being updated.
*/
// const updateMask = ''
// const updateMask = {}

// Imports the Scheduler library
const {CloudSchedulerClient} = require('@google-cloud/scheduler').v1beta1;

// Instantiates a client
const schedulerClient = new CloudSchedulerClient();

async function updateJob() {
async function callUpdateJob() {
// Construct request
const request = {
job,
Expand All @@ -47,7 +47,7 @@ function main(job) {
console.log(response);
}

updateJob();
callUpdateJob();
// [END cloudscheduler_v1beta1_generated_CloudScheduler_UpdateJob_async]
}

Expand Down
Loading

0 comments on commit 053573c

Please sign in to comment.