Skip to content

Commit a431d76

Browse files
authored
docs: fix yaml parsing error in comments (#452)
1 parent 8cfb843 commit a431d76

File tree

3 files changed

+64
-2
lines changed

3 files changed

+64
-2
lines changed

packages/google-cloud-asset/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ Samples are in the [`samples/`](https://github.com/googleapis/nodejs-asset/tree/
9595
9696
| Sample | Source Code | Try it |
9797
| --------------------------- | --------------------------------- | ------ |
98+
| 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) |
99+
| 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) |
100+
| 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) |
98101
| 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) |
99102
| 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) |
100103
| 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) |

packages/google-cloud-asset/samples/README.md

+60
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212

1313
* [Before you begin](#before-you-begin)
1414
* [Samples](#samples)
15+
* [Analyze Iam Policy](#analyze-iam-policy)
16+
* [Analyze Iam Policy Longrunning and write results to Bigquery](#analyze-iam-policy-longrunning-and-write-results-to-bigquery)
17+
* [Analyze Iam Policy Longrunning and write results to GCS](#analyze-iam-policy-longrunning-and-write-results-to-gcs)
1518
* [Create Feed](#create-feed)
1619
* [Delete Feed](#delete-feed)
1720
* [Export Assets](#export-assets)
@@ -39,6 +42,63 @@ Before running the samples, make sure you've followed the steps outlined in
3942

4043

4144

45+
### Analyze Iam Policy
46+
47+
Analyzes accessible IAM policies that match a request.
48+
49+
View the [source code](https://github.com/googleapis/nodejs-asset/blob/master/samples/analyzeIamPolicy.js).
50+
51+
[![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)
52+
53+
__Usage:__
54+
55+
56+
`node analyzeIamPolicy`
57+
58+
59+
-----
60+
61+
62+
63+
64+
### Analyze Iam Policy Longrunning and write results to Bigquery
65+
66+
Analyzes accessible IAM policies that match a request.
67+
68+
View the [source code](https://github.com/googleapis/nodejs-asset/blob/master/samples/analyzeIamPolicyLongrunningBigquery.js).
69+
70+
[![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)
71+
72+
__Usage:__
73+
74+
75+
`node analyzeIamPolicyLongrunningBigquery <dataset_id> <table_prefix>`
76+
77+
78+
-----
79+
80+
81+
82+
83+
### Analyze Iam Policy Longrunning and write results to GCS
84+
85+
Analyzes accessible IAM policies that match a request.
86+
87+
View the [source code](https://github.com/googleapis/nodejs-asset/blob/master/samples/analyzeIamPolicyLongrunningGcs.js).
88+
89+
[![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)
90+
91+
__Usage:__
92+
93+
94+
`node analyzeIamPolicyLongrunningGcs <gs:my-bucket/my-analysis.json>`
95+
96+
97+
-----
98+
99+
100+
101+
42102
### Create Feed
43103

44104
Create Feed.

packages/google-cloud-asset/samples/analyzeIamPolicyLongrunningGcs.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
// sample-metadata:
1818
// title: Analyze Iam Policy Longrunning and write results to GCS
1919
// description: Analyzes accessible IAM policies that match a request.
20-
// usage: node analyzeIamPolicyLongrunningGcs
21-
// <gs://my-bucket/my-analysis.json>
20+
// usage: node analyzeIamPolicyLongrunningGcs <gs://my-bucket/my-analysis.json>
2221

2322
async function main(gcsUri) {
2423
// [START asset_quickstart_analyze_iam_policy_longrunning_gcs]

0 commit comments

Comments
 (0)