Skip to content

Commit cada47f

Browse files
yoshi-automationJustinBeckwith
authored andcommitted
docs: update jsdoc samples and json import paths (#115)
1 parent fb7916d commit cada47f

2 files changed

Lines changed: 43 additions & 4 deletions

File tree

packages/google-cloud-asset/src/v1beta1/asset_service_client.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
'use strict';
1616

17-
const gapicConfig = require('./asset_service_client_config');
17+
const gapicConfig = require('./asset_service_client_config.json');
1818
const gax = require('google-gax');
1919
const merge = require('lodash.merge');
2020
const path = require('path');
@@ -328,6 +328,18 @@ class AssetServiceClient {
328328
* .catch(err => {
329329
* console.error(err);
330330
* });
331+
*
332+
* const formattedParent = client.projectPath('[PROJECT]');
333+
* const outputConfig = {};
334+
* const request = {
335+
* parent: formattedParent,
336+
* outputConfig: outputConfig,
337+
* };
338+
*
339+
* // Handle the operation using the await pattern.
340+
* const [operation] = await client.exportAssets(request);
341+
*
342+
* const [response] = await operation.promise();
331343
*/
332344
exportAssets(request, options, callback) {
333345
if (options instanceof Function && callback === undefined) {

packages/google-cloud-asset/synth.metadata

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,38 @@
11
{
2-
"updateTime": "2019-03-08T00:45:38.648657Z",
2+
"updateTime": "2019-03-12T11:07:21.227219Z",
33
"sources": [
44
{
55
"generator": {
66
"name": "artman",
7-
"version": "0.16.15",
8-
"dockerImage": "googleapis/artman@sha256:9caadfa59d48224cba5f3217eb9d61a155b78ccf31e628abef385bc5b7ed3bd2"
7+
"version": "0.16.16",
8+
"dockerImage": "googleapis/artman@sha256:30babbfce7f05a62b1892c63c575aa2c8c502eb4bcc8f3bb90ec83e955d5d319"
9+
}
10+
},
11+
{
12+
"git": {
13+
"name": "googleapis",
14+
"remote": "https://github.com/googleapis/googleapis.git",
15+
"sha": "abd1c9a99c5cd7179d8e5e0c8d4c8e761054cc78",
16+
"internalRef": "237945492"
17+
}
18+
},
19+
{
20+
"template": {
21+
"name": "node_library",
22+
"origin": "synthtool.gcp",
23+
"version": "2019.2.26"
24+
}
25+
}
26+
],
27+
"destinations": [
28+
{
29+
"client": {
30+
"source": "googleapis",
31+
"apiName": "asset",
32+
"apiVersion": "v1beta1",
33+
"language": "nodejs",
34+
"generator": "gapic",
35+
"config": "google/cloud/asset/artman_cloudasset_v1beta1.yaml"
936
}
1037
}
1138
]

0 commit comments

Comments
 (0)