@@ -33,7 +33,7 @@ function main(parent, outputConfig) {
3333 * data collection and indexing, there is a volatile window during which
3434 * running the same query may get different results.
3535 */
36- // const readTime = ''
36+ // const readTime = {}
3737 /**
3838 * A list of asset types to take a snapshot for. For example:
3939 * "compute.googleapis.com/Disk".
@@ -42,39 +42,39 @@ function main(parent, outputConfig) {
4242 * with "compute.googleapis.com".
4343 * * ".*Instance" snapshots resources whose asset type ends with "Instance".
4444 * * ".*Instance.*" snapshots resources whose asset type contains "Instance".
45- * See [ RE2] (https://github.com/google/re2/wiki/Syntax) for all supported
45+ * See RE2 (https://github.com/google/re2/wiki/Syntax) for all supported
4646 * regular expression syntax. If the regular expression does not match any
4747 * supported asset type, an INVALID_ARGUMENT error will be returned.
4848 * If specified, only matching assets will be returned, otherwise, it will
49- * snapshot all asset types. See [ Introduction to Cloud Asset
50- * Inventory] (https://cloud.google.com/asset-inventory/docs/overview)
49+ * snapshot all asset types. See Introduction to Cloud Asset
50+ * Inventory (https://cloud.google.com/asset-inventory/docs/overview)
5151 * for all supported asset types.
5252 */
5353 // const assetTypes = 'abc123'
5454 /**
5555 * Asset content type. If not specified, no content but the asset name will be
5656 * returned.
5757 */
58- // const contentType = ''
58+ // const contentType = {}
5959 /**
6060 * Required. Output configuration indicating where the results will be output to.
6161 */
62- // const outputConfig = ''
62+ // const outputConfig = {}
6363 /**
6464 * A list of relationship types to export, for example:
6565 * `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
6666 * content_type=RELATIONSHIP.
6767 * * If specified:
6868 * it snapshots specified relationships. It returns an error if
69- * any of the [ relationship_types] doesn't belong to the supported
70- * relationship types of the [ asset_types] or if any of the [ asset_types]
71- * doesn't belong to the source types of the [ relationship_types] .
69+ * any of the relationship_types doesn't belong to the supported
70+ * relationship types of the asset_types or if any of the asset_types
71+ * doesn't belong to the source types of the relationship_types.
7272 * * Otherwise:
73- * it snapshots the supported relationships for all [ asset_types] or returns
74- * an error if any of the [ asset_types] has no relationship support.
73+ * it snapshots the supported relationships for all asset_types or returns
74+ * an error if any of the asset_types has no relationship support.
7575 * An unspecified asset types field means all supported asset_types.
76- * See [ Introduction to Cloud Asset
77- * Inventory] (https://cloud.google.com/asset-inventory/docs/overview) for all
76+ * See Introduction to Cloud Asset
77+ * Inventory (https://cloud.google.com/asset-inventory/docs/overview) for all
7878 * supported asset types and relationship types.
7979 */
8080 // const relationshipTypes = 'abc123'
@@ -85,7 +85,7 @@ function main(parent, outputConfig) {
8585 // Instantiates a client
8686 const assetClient = new AssetServiceClient ( ) ;
8787
88- async function exportAssets ( ) {
88+ async function callExportAssets ( ) {
8989 // Construct request
9090 const request = {
9191 parent,
@@ -98,7 +98,7 @@ function main(parent, outputConfig) {
9898 console . log ( response ) ;
9999 }
100100
101- exportAssets ( ) ;
101+ callExportAssets ( ) ;
102102 // [END cloudasset_v1_generated_AssetService_ExportAssets_async]
103103}
104104
0 commit comments