Skip to content

Commit

Permalink
docs(samples): add example tags to generated samples (#495)
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 10, 2021
1 parent 61b8940 commit d520990
Show file tree
Hide file tree
Showing 34 changed files with 1,058 additions and 1,599 deletions.
2 changes: 1 addition & 1 deletion packages/google-container/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 @@ -19,24 +19,6 @@ function main() {
/**
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Deprecated. The Google Developers Console [project ID or project
* number](https://support.google.com/cloud/answer/6158840).
* This field has been deprecated and replaced by the name field.
*/
// const projectId = 'abc123'
/**
* Deprecated. The name of the Google Compute Engine
* [zone](https://cloud.google.com/compute/docs/zones#available) in which the
* operation resides. This field has been deprecated and replaced by the name
* field.
*/
// const zone = 'abc123'
/**
* Deprecated. The server-assigned `name` of the operation.
* This field has been deprecated and replaced by the name field.
*/
// const operationId = 'abc123'
/**
* The name (project, location, operation id) of the operation to cancel.
* Specified in the format `projects/* /locations/* /operations/*`.
Expand All @@ -49,7 +31,7 @@ function main() {
// Instantiates a client
const containerClient = new ClusterManagerClient();

async function cancelOperation() {
async function callCancelOperation() {
// Construct request
const request = {};

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

cancelOperation();
callCancelOperation();
// [END container_v1_generated_ClusterManager_CancelOperation_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,6 @@ function main() {
/**
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Deprecated. The Google Developers Console [project ID or project
* number](https://developers.google.com/console/help/new/#projectnumber).
* This field has been deprecated and replaced by the name field.
*/
// const projectId = 'abc123'
/**
* Deprecated. The name of the Google Compute Engine
* [zone](https://cloud.google.com/compute/docs/zones#available) in which the
* cluster resides. This field has been deprecated and replaced by the name
* field.
*/
// const zone = 'abc123'
/**
* Deprecated. The name of the cluster.
* This field has been deprecated and replaced by the name field.
*/
// const clusterId = 'abc123'
/**
* The name (project, location, cluster id) of the cluster to complete IP
* rotation. Specified in the format `projects/* /locations/* /clusters/*`.
Expand All @@ -49,7 +31,7 @@ function main() {
// Instantiates a client
const containerClient = new ClusterManagerClient();

async function completeIPRotation() {
async function callCompleteIPRotation() {
// Construct request
const request = {};

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

completeIPRotation();
callCompleteIPRotation();
// [END container_v1_generated_ClusterManager_CompleteIPRotation_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,10 @@ function main(cluster) {
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Deprecated. The Google Developers Console [project ID or project
* number](https://support.google.com/cloud/answer/6158840).
* This field has been deprecated and replaced by the parent field.
* Required. A cluster
* resource (https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
*/
// const projectId = 'abc123'
/**
* Deprecated. The name of the Google Compute Engine
* [zone](https://cloud.google.com/compute/docs/zones#available) in which the
* cluster resides. This field has been deprecated and replaced by the parent
* field.
*/
// const zone = 'abc123'
/**
* Required. A [cluster
* resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
*/
// const cluster = ''
// const cluster = {}
/**
* The parent (project and location) where the cluster will be created.
* Specified in the format `projects/* /locations/*`.
Expand All @@ -49,7 +36,7 @@ function main(cluster) {
// Instantiates a client
const containerClient = new ClusterManagerClient();

async function createCluster() {
async function callCreateCluster() {
// Construct request
const request = {
cluster,
Expand All @@ -60,7 +47,7 @@ function main(cluster) {
console.log(response);
}

createCluster();
callCreateCluster();
// [END container_v1_generated_ClusterManager_CreateCluster_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,28 +19,10 @@ function main(nodePool) {
/**
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Deprecated. The Google Developers Console [project ID or project
* number](https://developers.google.com/console/help/new/#projectnumber).
* This field has been deprecated and replaced by the parent field.
*/
// const projectId = 'abc123'
/**
* Deprecated. The name of the Google Compute Engine
* [zone](https://cloud.google.com/compute/docs/zones#available) in which the
* cluster resides. This field has been deprecated and replaced by the parent
* field.
*/
// const zone = 'abc123'
/**
* Deprecated. The name of the cluster.
* This field has been deprecated and replaced by the parent field.
*/
// const clusterId = 'abc123'
/**
* Required. The node pool to create.
*/
// const nodePool = ''
// const nodePool = {}
/**
* The parent (project, location, cluster id) where the node pool will be
* created. Specified in the format
Expand All @@ -54,7 +36,7 @@ function main(nodePool) {
// Instantiates a client
const containerClient = new ClusterManagerClient();

async function createNodePool() {
async function callCreateNodePool() {
// Construct request
const request = {
nodePool,
Expand All @@ -65,7 +47,7 @@ function main(nodePool) {
console.log(response);
}

createNodePool();
callCreateNodePool();
// [END container_v1_generated_ClusterManager_CreateNodePool_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,6 @@ function main() {
/**
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Deprecated. The Google Developers Console [project ID or project
* number](https://support.google.com/cloud/answer/6158840).
* This field has been deprecated and replaced by the name field.
*/
// const projectId = 'abc123'
/**
* Deprecated. The name of the Google Compute Engine
* [zone](https://cloud.google.com/compute/docs/zones#available) in which the
* cluster resides. This field has been deprecated and replaced by the name
* field.
*/
// const zone = 'abc123'
/**
* Deprecated. The name of the cluster to delete.
* This field has been deprecated and replaced by the name field.
*/
// const clusterId = 'abc123'
/**
* The name (project, location, cluster) of the cluster to delete.
* Specified in the format `projects/* /locations/* /clusters/*`.
Expand All @@ -49,7 +31,7 @@ function main() {
// Instantiates a client
const containerClient = new ClusterManagerClient();

async function deleteCluster() {
async function callDeleteCluster() {
// Construct request
const request = {};

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

deleteCluster();
callDeleteCluster();
// [END container_v1_generated_ClusterManager_DeleteCluster_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,29 +19,6 @@ function main() {
/**
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Deprecated. The Google Developers Console [project ID or project
* number](https://developers.google.com/console/help/new/#projectnumber).
* This field has been deprecated and replaced by the name field.
*/
// const projectId = 'abc123'
/**
* Deprecated. The name of the Google Compute Engine
* [zone](https://cloud.google.com/compute/docs/zones#available) in which the
* cluster resides. This field has been deprecated and replaced by the name
* field.
*/
// const zone = 'abc123'
/**
* Deprecated. The name of the cluster.
* This field has been deprecated and replaced by the name field.
*/
// const clusterId = 'abc123'
/**
* Deprecated. The name of the node pool to delete.
* This field has been deprecated and replaced by the name field.
*/
// const nodePoolId = 'abc123'
/**
* The name (project, location, cluster, node pool id) of the node pool to
* delete. Specified in the format
Expand All @@ -55,7 +32,7 @@ function main() {
// Instantiates a client
const containerClient = new ClusterManagerClient();

async function deleteNodePool() {
async function callDeleteNodePool() {
// Construct request
const request = {};

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

deleteNodePool();
callDeleteNodePool();
// [END container_v1_generated_ClusterManager_DeleteNodePool_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,6 @@ function main() {
/**
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Deprecated. The Google Developers Console [project ID or project
* number](https://support.google.com/cloud/answer/6158840).
* This field has been deprecated and replaced by the name field.
*/
// const projectId = 'abc123'
/**
* Deprecated. The name of the Google Compute Engine
* [zone](https://cloud.google.com/compute/docs/zones#available) in which the
* cluster resides. This field has been deprecated and replaced by the name
* field.
*/
// const zone = 'abc123'
/**
* Deprecated. The name of the cluster to retrieve.
* This field has been deprecated and replaced by the name field.
*/
// const clusterId = 'abc123'
/**
* The name (project, location, cluster) of the cluster to retrieve.
* Specified in the format `projects/* /locations/* /clusters/*`.
Expand All @@ -49,7 +31,7 @@ function main() {
// Instantiates a client
const containerClient = new ClusterManagerClient();

async function getCluster() {
async function callGetCluster() {
// Construct request
const request = {};

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

getCluster();
callGetCluster();
// [END container_v1_generated_ClusterManager_GetCluster_async]
}

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

async function getJSONWebKeys() {
async function callGetJSONWebKeys() {
// Construct request
const request = {};

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

getJSONWebKeys();
callGetJSONWebKeys();
// [END container_v1_generated_ClusterManager_GetJSONWebKeys_async]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,29 +19,6 @@ function main() {
/**
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Deprecated. The Google Developers Console [project ID or project
* number](https://developers.google.com/console/help/new/#projectnumber).
* This field has been deprecated and replaced by the name field.
*/
// const projectId = 'abc123'
/**
* Deprecated. The name of the Google Compute Engine
* [zone](https://cloud.google.com/compute/docs/zones#available) in which the
* cluster resides. This field has been deprecated and replaced by the name
* field.
*/
// const zone = 'abc123'
/**
* Deprecated. The name of the cluster.
* This field has been deprecated and replaced by the name field.
*/
// const clusterId = 'abc123'
/**
* Deprecated. The name of the node pool.
* This field has been deprecated and replaced by the name field.
*/
// const nodePoolId = 'abc123'
/**
* The name (project, location, cluster, node pool id) of the node pool to
* get. Specified in the format
Expand All @@ -55,7 +32,7 @@ function main() {
// Instantiates a client
const containerClient = new ClusterManagerClient();

async function getNodePool() {
async function callGetNodePool() {
// Construct request
const request = {};

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

getNodePool();
callGetNodePool();
// [END container_v1_generated_ClusterManager_GetNodePool_async]
}

Expand Down
Loading

0 comments on commit d520990

Please sign in to comment.