Skip to content

Commit

Permalink
docs(samples): add example tags to generated samples (#141)
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 11, 2021
1 parent c5ff462 commit dde42b9
Show file tree
Hide file tree
Showing 10 changed files with 209 additions and 213 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 @@ -31,7 +31,7 @@ function main(parent, connection) {
/**
* Required. Connection to create.
*/
// const connection = ''
// const connection = {}

// Imports the Connection library
const {ConnectionServiceClient} =
Expand All @@ -40,7 +40,7 @@ function main(parent, connection) {
// Instantiates a client
const connectionClient = new ConnectionServiceClient();

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

createConnection();
callCreateConnection();
// [END bigqueryconnection_v1_generated_ConnectionService_CreateConnection_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 connectionClient = new ConnectionServiceClient();

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

deleteConnection();
callDeleteConnection();
// [END bigqueryconnection_v1_generated_ConnectionService_DeleteConnection_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 connectionClient = new ConnectionServiceClient();

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

getConnection();
callGetConnection();
// [END bigqueryconnection_v1_generated_ConnectionService_GetConnection_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function main(resource) {
* OPTIONAL: A `GetPolicyOptions` object for specifying options to
* `GetIamPolicy`. This field is only used by Cloud IAM.
*/
// const options = ''
// const options = {}

// Imports the Connection library
const {ConnectionServiceClient} =
Expand All @@ -37,7 +37,7 @@ function main(resource) {
// Instantiates a client
const connectionClient = new ConnectionServiceClient();

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

getIamPolicy();
callGetIamPolicy();
// [END bigqueryconnection_v1_generated_ConnectionService_GetIamPolicy_async]
}

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

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

listConnections();
callListConnections();
// [END bigqueryconnection_v1_generated_ConnectionService_ListConnections_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function main(resource, policy) {
* valid policy but certain Cloud Platform services (such as Projects)
* might reject them.
*/
// const policy = ''
// const policy = {}

// Imports the Connection library
const {ConnectionServiceClient} =
Expand All @@ -39,7 +39,7 @@ function main(resource, policy) {
// Instantiates a client
const connectionClient = new ConnectionServiceClient();

async function setIamPolicy() {
async function callSetIamPolicy() {
// Construct request
const request = {
resource,
Expand All @@ -51,7 +51,7 @@ function main(resource, policy) {
console.log(response);
}

setIamPolicy();
callSetIamPolicy();
// [END bigqueryconnection_v1_generated_ConnectionService_SetIamPolicy_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function main(resource, permissions) {
* The set of permissions to check for the `resource`. Permissions with
* wildcards (such as '*' or 'storage.*') are not allowed. For more
* information see
* [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
* IAM Overview (https://cloud.google.com/iam/docs/overview#permissions).
*/
// const permissions = 'abc123'

Expand All @@ -39,7 +39,7 @@ function main(resource, permissions) {
// Instantiates a client
const connectionClient = new ConnectionServiceClient();

async function testIamPermissions() {
async function callTestIamPermissions() {
// Construct request
const request = {
resource,
Expand All @@ -51,7 +51,7 @@ function main(resource, permissions) {
console.log(response);
}

testIamPermissions();
callTestIamPermissions();
// [END bigqueryconnection_v1_generated_ConnectionService_TestIamPermissions_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ function main(name, connection, updateMask) {
/**
* Required. Connection containing the updated fields.
*/
// const connection = ''
// const connection = {}
/**
* Required. Update mask for the connection fields to be updated.
*/
// const updateMask = ''
// const updateMask = {}

// Imports the Connection library
const {ConnectionServiceClient} =
Expand All @@ -40,7 +40,7 @@ function main(name, connection, updateMask) {
// Instantiates a client
const connectionClient = new ConnectionServiceClient();

async function updateConnection() {
async function callUpdateConnection() {
// Construct request
const request = {
name,
Expand All @@ -53,7 +53,7 @@ function main(name, connection, updateMask) {
console.log(response);
}

updateConnection();
callUpdateConnection();
// [END bigqueryconnection_v1_generated_ConnectionService_UpdateConnection_async]
}

Expand Down
Loading

0 comments on commit dde42b9

Please sign in to comment.