From a431d76b8a2a2a37dee5a36476a376549000abdd Mon Sep 17 00:00:00 2001 From: "Benjamin E. Coe" Date: Mon, 8 Feb 2021 14:33:45 -0800 Subject: [PATCH] docs: fix yaml parsing error in comments (#452) --- packages/google-cloud-asset/README.md | 3 + packages/google-cloud-asset/samples/README.md | 60 +++++++++++++++++++ .../samples/analyzeIamPolicyLongrunningGcs.js | 3 +- 3 files changed, 64 insertions(+), 2 deletions(-) diff --git a/packages/google-cloud-asset/README.md b/packages/google-cloud-asset/README.md index 9d91367da32..0ddb14d8a80 100644 --- a/packages/google-cloud-asset/README.md +++ b/packages/google-cloud-asset/README.md @@ -95,6 +95,9 @@ Samples are in the [`samples/`](https://github.com/googleapis/nodejs-asset/tree/ | Sample | Source Code | Try it | | --------------------------- | --------------------------------- | ------ | +| Analyze Iam Policy | [source code](https://github.com/googleapis/nodejs-asset/blob/master/samples/analyzeIamPolicy.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-asset&page=editor&open_in_editor=samples/analyzeIamPolicy.js,samples/README.md) | +| Analyze Iam Policy Longrunning and write results to Bigquery | [source code](https://github.com/googleapis/nodejs-asset/blob/master/samples/analyzeIamPolicyLongrunningBigquery.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-asset&page=editor&open_in_editor=samples/analyzeIamPolicyLongrunningBigquery.js,samples/README.md) | +| Analyze Iam Policy Longrunning and write results to GCS | [source code](https://github.com/googleapis/nodejs-asset/blob/master/samples/analyzeIamPolicyLongrunningGcs.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-asset&page=editor&open_in_editor=samples/analyzeIamPolicyLongrunningGcs.js,samples/README.md) | | Create Feed | [source code](https://github.com/googleapis/nodejs-asset/blob/master/samples/createFeed.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-asset&page=editor&open_in_editor=samples/createFeed.js,samples/README.md) | | Delete Feed | [source code](https://github.com/googleapis/nodejs-asset/blob/master/samples/deleteFeed.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-asset&page=editor&open_in_editor=samples/deleteFeed.js,samples/README.md) | | Export Assets | [source code](https://github.com/googleapis/nodejs-asset/blob/master/samples/exportAssets.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-asset&page=editor&open_in_editor=samples/exportAssets.js,samples/README.md) | diff --git a/packages/google-cloud-asset/samples/README.md b/packages/google-cloud-asset/samples/README.md index b883ab1c86b..aa7a6640204 100644 --- a/packages/google-cloud-asset/samples/README.md +++ b/packages/google-cloud-asset/samples/README.md @@ -12,6 +12,9 @@ * [Before you begin](#before-you-begin) * [Samples](#samples) + * [Analyze Iam Policy](#analyze-iam-policy) + * [Analyze Iam Policy Longrunning and write results to Bigquery](#analyze-iam-policy-longrunning-and-write-results-to-bigquery) + * [Analyze Iam Policy Longrunning and write results to GCS](#analyze-iam-policy-longrunning-and-write-results-to-gcs) * [Create Feed](#create-feed) * [Delete Feed](#delete-feed) * [Export Assets](#export-assets) @@ -39,6 +42,63 @@ Before running the samples, make sure you've followed the steps outlined in +### Analyze Iam Policy + +Analyzes accessible IAM policies that match a request. + +View the [source code](https://github.com/googleapis/nodejs-asset/blob/master/samples/analyzeIamPolicy.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-asset&page=editor&open_in_editor=samples/analyzeIamPolicy.js,samples/README.md) + +__Usage:__ + + +`node analyzeIamPolicy` + + +----- + + + + +### Analyze Iam Policy Longrunning and write results to Bigquery + +Analyzes accessible IAM policies that match a request. + +View the [source code](https://github.com/googleapis/nodejs-asset/blob/master/samples/analyzeIamPolicyLongrunningBigquery.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-asset&page=editor&open_in_editor=samples/analyzeIamPolicyLongrunningBigquery.js,samples/README.md) + +__Usage:__ + + +`node analyzeIamPolicyLongrunningBigquery ` + + +----- + + + + +### Analyze Iam Policy Longrunning and write results to GCS + +Analyzes accessible IAM policies that match a request. + +View the [source code](https://github.com/googleapis/nodejs-asset/blob/master/samples/analyzeIamPolicyLongrunningGcs.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-asset&page=editor&open_in_editor=samples/analyzeIamPolicyLongrunningGcs.js,samples/README.md) + +__Usage:__ + + +`node analyzeIamPolicyLongrunningGcs ` + + +----- + + + + ### Create Feed Create Feed. diff --git a/packages/google-cloud-asset/samples/analyzeIamPolicyLongrunningGcs.js b/packages/google-cloud-asset/samples/analyzeIamPolicyLongrunningGcs.js index 15a576d6e60..df93e0c494e 100644 --- a/packages/google-cloud-asset/samples/analyzeIamPolicyLongrunningGcs.js +++ b/packages/google-cloud-asset/samples/analyzeIamPolicyLongrunningGcs.js @@ -17,8 +17,7 @@ // sample-metadata: // title: Analyze Iam Policy Longrunning and write results to GCS // description: Analyzes accessible IAM policies that match a request. -// usage: node analyzeIamPolicyLongrunningGcs -// +// usage: node analyzeIamPolicyLongrunningGcs async function main(gcsUri) { // [START asset_quickstart_analyze_iam_policy_longrunning_gcs]