Skip to content

Commit

Permalink
docs: update samples in comments (#230)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored and JustinBeckwith committed Feb 8, 2019
1 parent c6cf67a commit 099d44f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
40 changes: 20 additions & 20 deletions packages/google-privacy-dlp/src/v2/dlp_service_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -860,8 +860,8 @@ class DlpServiceClient {
* client.listInspectTemplates({parent: formattedParent})
* .then(responses => {
* const resources = responses[0];
* for (let i = 0; i < resources.length; i += 1) {
* // doThingsWith(resources[i])
* for (const resource of resources) {
* // doThingsWith(resource)
* }
* })
* .catch(err => {
Expand All @@ -880,8 +880,8 @@ class DlpServiceClient {
* const nextRequest = responses[1];
* // The actual response object, if necessary.
* // const rawResponse = responses[2];
* for (let i = 0; i < resources.length; i += 1) {
* // doThingsWith(resources[i]);
* for (const resource of resources) {
* // doThingsWith(resource);
* }
* if (nextRequest) {
* // Fetch the next page.
Expand Down Expand Up @@ -1265,8 +1265,8 @@ class DlpServiceClient {
* client.listDeidentifyTemplates({parent: formattedParent})
* .then(responses => {
* const resources = responses[0];
* for (let i = 0; i < resources.length; i += 1) {
* // doThingsWith(resources[i])
* for (const resource of resources) {
* // doThingsWith(resource)
* }
* })
* .catch(err => {
Expand All @@ -1285,8 +1285,8 @@ class DlpServiceClient {
* const nextRequest = responses[1];
* // The actual response object, if necessary.
* // const rawResponse = responses[2];
* for (let i = 0; i < resources.length; i += 1) {
* // doThingsWith(resources[i]);
* for (const resource of resources) {
* // doThingsWith(resource);
* }
* if (nextRequest) {
* // Fetch the next page.
Expand Down Expand Up @@ -1584,8 +1584,8 @@ class DlpServiceClient {
* client.listDlpJobs({parent: formattedParent})
* .then(responses => {
* const resources = responses[0];
* for (let i = 0; i < resources.length; i += 1) {
* // doThingsWith(resources[i])
* for (const resource of resources) {
* // doThingsWith(resource)
* }
* })
* .catch(err => {
Expand All @@ -1604,8 +1604,8 @@ class DlpServiceClient {
* const nextRequest = responses[1];
* // The actual response object, if necessary.
* // const rawResponse = responses[2];
* for (let i = 0; i < resources.length; i += 1) {
* // doThingsWith(resources[i]);
* for (const resource of resources) {
* // doThingsWith(resource);
* }
* if (nextRequest) {
* // Fetch the next page.
Expand Down Expand Up @@ -1923,8 +1923,8 @@ class DlpServiceClient {
* client.listJobTriggers({parent: formattedParent})
* .then(responses => {
* const resources = responses[0];
* for (let i = 0; i < resources.length; i += 1) {
* // doThingsWith(resources[i])
* for (const resource of resources) {
* // doThingsWith(resource)
* }
* })
* .catch(err => {
Expand All @@ -1943,8 +1943,8 @@ class DlpServiceClient {
* const nextRequest = responses[1];
* // The actual response object, if necessary.
* // const rawResponse = responses[2];
* for (let i = 0; i < resources.length; i += 1) {
* // doThingsWith(resources[i]);
* for (const resource of resources) {
* // doThingsWith(resource);
* }
* if (nextRequest) {
* // Fetch the next page.
Expand Down Expand Up @@ -2475,8 +2475,8 @@ class DlpServiceClient {
* client.listStoredInfoTypes({parent: formattedParent})
* .then(responses => {
* const resources = responses[0];
* for (let i = 0; i < resources.length; i += 1) {
* // doThingsWith(resources[i])
* for (const resource of resources) {
* // doThingsWith(resource)
* }
* })
* .catch(err => {
Expand All @@ -2495,8 +2495,8 @@ class DlpServiceClient {
* const nextRequest = responses[1];
* // The actual response object, if necessary.
* // const rawResponse = responses[2];
* for (let i = 0; i < resources.length; i += 1) {
* // doThingsWith(resources[i]);
* for (const resource of resources) {
* // doThingsWith(resource);
* }
* if (nextRequest) {
* // Fetch the next page.
Expand Down
10 changes: 5 additions & 5 deletions packages/google-privacy-dlp/synth.metadata
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"updateTime": "2019-01-26T12:19:05.748089Z",
"updateTime": "2019-02-07T12:13:29.688941Z",
"sources": [
{
"generator": {
"name": "artman",
"version": "0.16.7",
"dockerImage": "googleapis/artman@sha256:d6c8ced606eb49973ca95d2af7c55a681acc042db0f87d135968349e7bf6dd80"
"version": "0.16.10",
"dockerImage": "googleapis/artman@sha256:0954ba3e40d694e631bb2f39460d502a3d9f3a66d40b7a9a67f4b30012195beb"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "a6b4398490269577fc511f297b85763ba4701403",
"internalRef": "230969086"
"sha": "49b7906ba5f15c1bc52bf5febc3bd0645d29b980",
"internalRef": "232773383"
}
},
{
Expand Down

0 comments on commit 099d44f

Please sign in to comment.