@@ -33,7 +33,7 @@ function main(parent, outputConfig) {
33
33
* data collection and indexing, there is a volatile window during which
34
34
* running the same query may get different results.
35
35
*/
36
- // const readTime = ''
36
+ // const readTime = {}
37
37
/**
38
38
* A list of asset types to take a snapshot for. For example:
39
39
* "compute.googleapis.com/Disk".
@@ -42,39 +42,39 @@ function main(parent, outputConfig) {
42
42
* with "compute.googleapis.com".
43
43
* * ".*Instance" snapshots resources whose asset type ends with "Instance".
44
44
* * ".*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
46
46
* regular expression syntax. If the regular expression does not match any
47
47
* supported asset type, an INVALID_ARGUMENT error will be returned.
48
48
* 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)
51
51
* for all supported asset types.
52
52
*/
53
53
// const assetTypes = 'abc123'
54
54
/**
55
55
* Asset content type. If not specified, no content but the asset name will be
56
56
* returned.
57
57
*/
58
- // const contentType = ''
58
+ // const contentType = {}
59
59
/**
60
60
* Required. Output configuration indicating where the results will be output to.
61
61
*/
62
- // const outputConfig = ''
62
+ // const outputConfig = {}
63
63
/**
64
64
* A list of relationship types to export, for example:
65
65
* `INSTANCE_TO_INSTANCEGROUP`. This field should only be specified if
66
66
* content_type=RELATIONSHIP.
67
67
* * If specified:
68
68
* 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.
72
72
* * 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.
75
75
* 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
78
78
* supported asset types and relationship types.
79
79
*/
80
80
// const relationshipTypes = 'abc123'
@@ -85,7 +85,7 @@ function main(parent, outputConfig) {
85
85
// Instantiates a client
86
86
const assetClient = new AssetServiceClient ( ) ;
87
87
88
- async function exportAssets ( ) {
88
+ async function callExportAssets ( ) {
89
89
// Construct request
90
90
const request = {
91
91
parent,
@@ -98,7 +98,7 @@ function main(parent, outputConfig) {
98
98
console . log ( response ) ;
99
99
}
100
100
101
- exportAssets ( ) ;
101
+ callExportAssets ( ) ;
102
102
// [END cloudasset_v1_generated_AssetService_ExportAssets_async]
103
103
}
104
104
0 commit comments