Skip to content

Commit

Permalink
fix(policysimulator): update the API
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored and sofisl committed May 21, 2021
1 parent 4ae693c commit 25cd0d6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
13 changes: 6 additions & 7 deletions src/apis/policysimulator/v1.ts
Expand Up @@ -1636,8 +1636,7 @@ export namespace policysimulator_v1 {
* // Do the magic
* const res = await policysimulator.organizations.locations.replays.get({
* // Required. The name of the Replay to retrieve, in the following format: `{projects|folders|organizations\}/{resource-id\}/locations/global/replays/{replay-id\}`, where `{resource-id\}` is the ID of the project, folder, or organization that owns the `Replay`. Example: `projects/my-example-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36`
* name:
* 'organizations/my-organization/locations/my-location/replays/my-replay',
* name: 'organizations/my-organization/locations/my-location/replays/my-replay',
* });
* console.log(res.data);
*
Expand Down Expand Up @@ -1801,17 +1800,16 @@ export namespace policysimulator_v1 {
* google.options({auth: authClient});
*
* // Do the magic
* const res = await policysimulator.organizations.locations.replays.results.list(
* {
* const res =
* await policysimulator.organizations.locations.replays.results.list({
* // The maximum number of ReplayResult objects to return. Defaults to 5000. The maximum value is 5000; values above 5000 are rounded down to 5000.
* pageSize: 'placeholder-value',
* // A page token, received from a previous Simulator.ListReplayResults call. Provide this token to retrieve the next page of results. When paginating, all other parameters provided to [Simulator.ListReplayResults[] must match the call that provided the page token.
* pageToken: 'placeholder-value',
* // Required. The Replay whose results are listed, in the following format: `{projects|folders|organizations\}/{resource-id\}/locations/global/replays/{replay-id\}` Example: `projects/my-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36`
* parent:
* 'organizations/my-organization/locations/my-location/replays/my-replay',
* }
* );
* });
* console.log(res.data);
*
* // Example response
Expand Down Expand Up @@ -1883,7 +1881,8 @@ export namespace policysimulator_v1 {

if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Organizations$Locations$Replays$Results$List;
params =
{} as Params$Resource$Organizations$Locations$Replays$Results$List;
options = {};
}

Expand Down
13 changes: 6 additions & 7 deletions src/apis/policysimulator/v1beta1.ts
Expand Up @@ -1639,8 +1639,7 @@ export namespace policysimulator_v1beta1 {
* // Do the magic
* const res = await policysimulator.organizations.locations.replays.get({
* // Required. The name of the Replay to retrieve, in the following format: `{projects|folders|organizations\}/{resource-id\}/locations/global/replays/{replay-id\}`, where `{resource-id\}` is the ID of the project, folder, or organization that owns the `Replay`. Example: `projects/my-example-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36`
* name:
* 'organizations/my-organization/locations/my-location/replays/my-replay',
* name: 'organizations/my-organization/locations/my-location/replays/my-replay',
* });
* console.log(res.data);
*
Expand Down Expand Up @@ -1804,17 +1803,16 @@ export namespace policysimulator_v1beta1 {
* google.options({auth: authClient});
*
* // Do the magic
* const res = await policysimulator.organizations.locations.replays.results.list(
* {
* const res =
* await policysimulator.organizations.locations.replays.results.list({
* // The maximum number of ReplayResult objects to return. Defaults to 5000. The maximum value is 5000; values above 5000 are rounded down to 5000.
* pageSize: 'placeholder-value',
* // A page token, received from a previous Simulator.ListReplayResults call. Provide this token to retrieve the next page of results. When paginating, all other parameters provided to [Simulator.ListReplayResults[] must match the call that provided the page token.
* pageToken: 'placeholder-value',
* // Required. The Replay whose results are listed, in the following format: `{projects|folders|organizations\}/{resource-id\}/locations/global/replays/{replay-id\}` Example: `projects/my-project/locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36`
* parent:
* 'organizations/my-organization/locations/my-location/replays/my-replay',
* }
* );
* });
* console.log(res.data);
*
* // Example response
Expand Down Expand Up @@ -1886,7 +1884,8 @@ export namespace policysimulator_v1beta1 {

if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Organizations$Locations$Replays$Results$List;
params =
{} as Params$Resource$Organizations$Locations$Replays$Results$List;
options = {};
}

Expand Down

0 comments on commit 25cd0d6

Please sign in to comment.