Skip to content

Commit

Permalink
docs: update jsdoc samples and json import paths (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored and JustinBeckwith committed Mar 12, 2019
1 parent fb7916d commit cada47f
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 4 deletions.
14 changes: 13 additions & 1 deletion packages/google-cloud-asset/src/v1beta1/asset_service_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

'use strict';

const gapicConfig = require('./asset_service_client_config');
const gapicConfig = require('./asset_service_client_config.json');
const gax = require('google-gax');
const merge = require('lodash.merge');
const path = require('path');
Expand Down Expand Up @@ -328,6 +328,18 @@ class AssetServiceClient {
* .catch(err => {
* console.error(err);
* });
*
* const formattedParent = client.projectPath('[PROJECT]');
* const outputConfig = {};
* const request = {
* parent: formattedParent,
* outputConfig: outputConfig,
* };
*
* // Handle the operation using the await pattern.
* const [operation] = await client.exportAssets(request);
*
* const [response] = await operation.promise();
*/
exportAssets(request, options, callback) {
if (options instanceof Function && callback === undefined) {
Expand Down
33 changes: 30 additions & 3 deletions packages/google-cloud-asset/synth.metadata
Original file line number Diff line number Diff line change
@@ -1,11 +1,38 @@
{
"updateTime": "2019-03-08T00:45:38.648657Z",
"updateTime": "2019-03-12T11:07:21.227219Z",
"sources": [
{
"generator": {
"name": "artman",
"version": "0.16.15",
"dockerImage": "googleapis/artman@sha256:9caadfa59d48224cba5f3217eb9d61a155b78ccf31e628abef385bc5b7ed3bd2"
"version": "0.16.16",
"dockerImage": "googleapis/artman@sha256:30babbfce7f05a62b1892c63c575aa2c8c502eb4bcc8f3bb90ec83e955d5d319"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "abd1c9a99c5cd7179d8e5e0c8d4c8e761054cc78",
"internalRef": "237945492"
}
},
{
"template": {
"name": "node_library",
"origin": "synthtool.gcp",
"version": "2019.2.26"
}
}
],
"destinations": [
{
"client": {
"source": "googleapis",
"apiName": "asset",
"apiVersion": "v1beta1",
"language": "nodejs",
"generator": "gapic",
"config": "google/cloud/asset/artman_cloudasset_v1beta1.yaml"
}
}
]
Expand Down

0 comments on commit cada47f

Please sign in to comment.