Skip to content

Commit

Permalink
docs(samples): add example tags to generated samples (#117)
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
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Nov 12, 2021
1 parent b7ff1aa commit f86258c
Show file tree
Hide file tree
Showing 22 changed files with 580 additions and 600 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 @@ -27,7 +27,7 @@ function main(parent) {
/**
* Assignment resource to create.
*/
// const assignment = ''
// const assignment = {}
/**
* The optional assignment ID. Assignment name will be generated automatically
* if this field is empty.
Expand All @@ -43,7 +43,7 @@ function main(parent) {
// Instantiates a client
const reservationClient = new ReservationServiceClient();

async function createAssignment() {
async function callCreateAssignment() {
// Construct request
const request = {
parent,
Expand All @@ -54,7 +54,7 @@ function main(parent) {
console.log(response);
}

createAssignment();
callCreateAssignment();
// [END bigqueryreservation_v1_generated_ReservationService_CreateAssignment_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function main(parent) {
/**
* Content of the capacity commitment to create.
*/
// const capacityCommitment = ''
// const capacityCommitment = {}
/**
* If true, fail the request if another project in the organization has a
* capacity commitment.
Expand All @@ -49,7 +49,7 @@ function main(parent) {
// Instantiates a client
const reservationClient = new ReservationServiceClient();

async function createCapacityCommitment() {
async function callCreateCapacityCommitment() {
// Construct request
const request = {
parent,
Expand All @@ -60,7 +60,7 @@ function main(parent) {
console.log(response);
}

createCapacityCommitment();
callCreateCapacityCommitment();
// [END bigqueryreservation_v1_generated_ReservationService_CreateCapacityCommitment_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function main(parent) {
/**
* Definition of the new reservation to create.
*/
// const reservation = ''
// const reservation = {}

// Imports the Reservation library
const {ReservationServiceClient} =
Expand All @@ -41,7 +41,7 @@ function main(parent) {
// Instantiates a client
const reservationClient = new ReservationServiceClient();

async function createReservation() {
async function callCreateReservation() {
// Construct request
const request = {
parent,
Expand All @@ -52,7 +52,7 @@ function main(parent) {
console.log(response);
}

createReservation();
callCreateReservation();
// [END bigqueryreservation_v1_generated_ReservationService_CreateReservation_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 reservationClient = new ReservationServiceClient();

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

deleteAssignment();
callDeleteAssignment();
// [END bigqueryreservation_v1_generated_ReservationService_DeleteAssignment_async]
}

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

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

deleteCapacityCommitment();
callDeleteCapacityCommitment();
// [END bigqueryreservation_v1_generated_ReservationService_DeleteCapacityCommitment_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 reservationClient = new ReservationServiceClient();

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

deleteReservation();
callDeleteReservation();
// [END bigqueryreservation_v1_generated_ReservationService_DeleteReservation_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 reservationClient = new ReservationServiceClient();

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

getBiReservation();
callGetBiReservation();
// [END bigqueryreservation_v1_generated_ReservationService_GetBiReservation_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 reservationClient = new ReservationServiceClient();

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

getCapacityCommitment();
callGetCapacityCommitment();
// [END bigqueryreservation_v1_generated_ReservationService_GetCapacityCommitment_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 reservationClient = new ReservationServiceClient();

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

getReservation();
callGetReservation();
// [END bigqueryreservation_v1_generated_ReservationService_GetReservation_async]
}

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

async function listAssignments() {
async function callListAssignments() {
// Construct request
const request = {
parent,
Expand All @@ -55,7 +55,7 @@ function main(parent) {
}
}

listAssignments();
callListAssignments();
// [END bigqueryreservation_v1_generated_ReservationService_ListAssignments_async]
}

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

async function listCapacityCommitments() {
async function callListCapacityCommitments() {
// Construct request
const request = {
parent,
Expand All @@ -55,7 +55,7 @@ function main(parent) {
}
}

listCapacityCommitments();
callListCapacityCommitments();
// [END bigqueryreservation_v1_generated_ReservationService_ListCapacityCommitments_async]
}

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

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

listReservations();
callListReservations();
// [END bigqueryreservation_v1_generated_ReservationService_ListReservations_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function main() {
// Instantiates a client
const reservationClient = new ReservationServiceClient();

async function mergeCapacityCommitments() {
async function callMergeCapacityCommitments() {
// Construct request
const request = {};

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

mergeCapacityCommitments();
callMergeCapacityCommitments();
// [END bigqueryreservation_v1_generated_ReservationService_MergeCapacityCommitments_async]
}

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

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

moveAssignment();
callMoveAssignment();
// [END bigqueryreservation_v1_generated_ReservationService_MoveAssignment_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 reservationClient = new ReservationServiceClient();

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

searchAllAssignments();
callSearchAllAssignments();
// [END bigqueryreservation_v1_generated_ReservationService_SearchAllAssignments_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 reservationClient = new ReservationServiceClient();

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

searchAssignments();
callSearchAssignments();
// [END bigqueryreservation_v1_generated_ReservationService_SearchAssignments_async]
}

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

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

splitCapacityCommitment();
callSplitCapacityCommitment();
// [END bigqueryreservation_v1_generated_ReservationService_SplitCapacityCommitment_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ function main() {
/**
* A reservation to update.
*/
// const biReservation = ''
// const biReservation = {}
/**
* A list of fields to be updated in this request.
*/
// const updateMask = ''
// const updateMask = {}

// Imports the Reservation library
const {ReservationServiceClient} =
Expand All @@ -35,7 +35,7 @@ function main() {
// Instantiates a client
const reservationClient = new ReservationServiceClient();

async function updateBiReservation() {
async function callUpdateBiReservation() {
// Construct request
const request = {};

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

updateBiReservation();
callUpdateBiReservation();
// [END bigqueryreservation_v1_generated_ReservationService_UpdateBiReservation_async]
}

Expand Down
Loading

0 comments on commit f86258c

Please sign in to comment.