Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

Commit

Permalink
feat(samples): add example tags to generated samples (#128)
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 408439482
Source-Link: googleapis/googleapis@b9f6184
Source-Link: https://github.com/googleapis/googleapis-gen/commit/eb888bc214efc7bf43bf4634b470254565a659a5
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZWI4ODhiYzIxNGVmYzdiZjQzYmY0NjM0YjQ3MDI1NDU2NWE2NTlhNSJ9
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Nov 11, 2021
1 parent d611b10 commit 0f2f1a8
Show file tree
Hide file tree
Showing 19 changed files with 402 additions and 418 deletions.
2 changes: 1 addition & 1 deletion 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
}
6 changes: 3 additions & 3 deletions samples/generated/v1/transcoder_service.create_job.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function main(parent, job) {
/**
* Required. Parameters for creating transcoding job.
*/
// const job = ''
// const job = {}

// Imports the Transcoder library
const {TranscoderServiceClient} =
Expand All @@ -36,7 +36,7 @@ function main(parent, job) {
// Instantiates a client
const transcoderClient = new TranscoderServiceClient();

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

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function main(parent, jobTemplate, jobTemplateId) {
/**
* Required. Parameters for creating job template.
*/
// const jobTemplate = ''
// const jobTemplate = {}
/**
* Required. The ID to use for the job template, which will become the final component
* of the job template's resource name.
Expand All @@ -43,7 +43,7 @@ function main(parent, jobTemplate, jobTemplateId) {
// Instantiates a client
const transcoderClient = new TranscoderServiceClient();

async function createJobTemplate() {
async function callCreateJobTemplate() {
// Construct request
const request = {
parent,
Expand All @@ -56,7 +56,7 @@ function main(parent, jobTemplate, jobTemplateId) {
console.log(response);
}

createJobTemplate();
callCreateJobTemplate();
// [END transcoder_v1_generated_TranscoderService_CreateJobTemplate_async]
}

Expand Down
4 changes: 2 additions & 2 deletions samples/generated/v1/transcoder_service.delete_job.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function main(name) {
// Instantiates a client
const transcoderClient = new TranscoderServiceClient();

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

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

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

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

deleteJobTemplate();
callDeleteJobTemplate();
// [END transcoder_v1_generated_TranscoderService_DeleteJobTemplate_async]
}

Expand Down
4 changes: 2 additions & 2 deletions samples/generated/v1/transcoder_service.get_job.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function main(name) {
// Instantiates a client
const transcoderClient = new TranscoderServiceClient();

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

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

Expand Down
4 changes: 2 additions & 2 deletions samples/generated/v1/transcoder_service.get_job_template.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function main(name) {
// Instantiates a client
const transcoderClient = new TranscoderServiceClient();

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

getJobTemplate();
callGetJobTemplate();
// [END transcoder_v1_generated_TranscoderService_GetJobTemplate_async]
}

Expand Down
4 changes: 2 additions & 2 deletions samples/generated/v1/transcoder_service.list_job_templates.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function main(parent) {
// Instantiates a client
const transcoderClient = new TranscoderServiceClient();

async function listJobTemplates() {
async function callListJobTemplates() {
// Construct request
const request = {
parent,
Expand All @@ -64,7 +64,7 @@ function main(parent) {
}
}

listJobTemplates();
callListJobTemplates();
// [END transcoder_v1_generated_TranscoderService_ListJobTemplates_async]
}

Expand Down
4 changes: 2 additions & 2 deletions samples/generated/v1/transcoder_service.list_jobs.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function main(parent) {
// Instantiates a client
const transcoderClient = new TranscoderServiceClient();

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

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

Expand Down
6 changes: 3 additions & 3 deletions samples/generated/v1beta1/transcoder_service.create_job.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function main(parent, job) {
/**
* Required. Parameters for creating transcoding job.
*/
// const job = ''
// const job = {}

// Imports the Transcoder library
const {TranscoderServiceClient} =
Expand All @@ -36,7 +36,7 @@ function main(parent, job) {
// Instantiates a client
const transcoderClient = new TranscoderServiceClient();

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

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function main(parent, jobTemplate, jobTemplateId) {
/**
* Required. Parameters for creating job template.
*/
// const jobTemplate = ''
// const jobTemplate = {}
/**
* Required. The ID to use for the job template, which will become the final component
* of the job template's resource name.
Expand All @@ -43,7 +43,7 @@ function main(parent, jobTemplate, jobTemplateId) {
// Instantiates a client
const transcoderClient = new TranscoderServiceClient();

async function createJobTemplate() {
async function callCreateJobTemplate() {
// Construct request
const request = {
parent,
Expand All @@ -56,7 +56,7 @@ function main(parent, jobTemplate, jobTemplateId) {
console.log(response);
}

createJobTemplate();
callCreateJobTemplate();
// [END transcoder_v1beta1_generated_TranscoderService_CreateJobTemplate_async]
}

Expand Down
4 changes: 2 additions & 2 deletions samples/generated/v1beta1/transcoder_service.delete_job.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function main(name) {
// Instantiates a client
const transcoderClient = new TranscoderServiceClient();

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

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

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

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

deleteJobTemplate();
callDeleteJobTemplate();
// [END transcoder_v1beta1_generated_TranscoderService_DeleteJobTemplate_async]
}

Expand Down
4 changes: 2 additions & 2 deletions samples/generated/v1beta1/transcoder_service.get_job.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function main(name) {
// Instantiates a client
const transcoderClient = new TranscoderServiceClient();

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

getJob();
callGetJob();
// [END transcoder_v1beta1_generated_TranscoderService_GetJob_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 transcoderClient = new TranscoderServiceClient();

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

getJobTemplate();
callGetJobTemplate();
// [END transcoder_v1beta1_generated_TranscoderService_GetJobTemplate_async]
}

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

async function listJobTemplates() {
async function callListJobTemplates() {
// Construct request
const request = {
parent,
Expand All @@ -54,7 +54,7 @@ function main(parent) {
}
}

listJobTemplates();
callListJobTemplates();
// [END transcoder_v1beta1_generated_TranscoderService_ListJobTemplates_async]
}

Expand Down
4 changes: 2 additions & 2 deletions samples/generated/v1beta1/transcoder_service.list_jobs.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function main(parent) {
// Instantiates a client
const transcoderClient = new TranscoderServiceClient();

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

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

Expand Down
Loading

0 comments on commit 0f2f1a8

Please sign in to comment.