Skip to content

Commit

Permalink
docs: fix yaml parsing error in comments (#452)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe authored Feb 8, 2021
1 parent 8cfb843 commit a431d76
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 2 deletions.
3 changes: 3 additions & 0 deletions packages/google-cloud-asset/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) |
Expand Down
60 changes: 60 additions & 0 deletions packages/google-cloud-asset/samples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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 <dataset_id> <table_prefix>`


-----




### 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 <gs:my-bucket/my-analysis.json>`


-----




### Create Feed

Create Feed.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
// <gs://my-bucket/my-analysis.json>
// usage: node analyzeIamPolicyLongrunningGcs <gs://my-bucket/my-analysis.json>

async function main(gcsUri) {
// [START asset_quickstart_analyze_iam_policy_longrunning_gcs]
Expand Down

0 comments on commit a431d76

Please sign in to comment.