Skip to content

Commit

Permalink
fix(tpu): 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 381748c commit 46140f6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 18 deletions.
17 changes: 8 additions & 9 deletions src/apis/tpu/v1.ts
Expand Up @@ -502,9 +502,8 @@ export namespace tpu_v1 {
this.operations = new Resource$Projects$Locations$Operations(
this.context
);
this.tensorflowVersions = new Resource$Projects$Locations$Tensorflowversions(
this.context
);
this.tensorflowVersions =
new Resource$Projects$Locations$Tensorflowversions(this.context);
}

/**
Expand Down Expand Up @@ -840,8 +839,7 @@ export namespace tpu_v1 {
* // Do the magic
* const res = await tpu.projects.locations.acceleratorTypes.get({
* // Required. The resource name.
* name:
* 'projects/my-project/locations/my-location/acceleratorTypes/my-acceleratorType',
* name: 'projects/my-project/locations/my-location/acceleratorTypes/my-acceleratorType',
* });
* console.log(res.data);
*
Expand Down Expand Up @@ -2796,8 +2794,7 @@ export namespace tpu_v1 {
* // Do the magic
* const res = await tpu.projects.locations.tensorflowVersions.get({
* // Required. The resource name.
* name:
* 'projects/my-project/locations/my-location/tensorflowVersions/my-tensorflowVersion',
* name: 'projects/my-project/locations/my-location/tensorflowVersions/my-tensorflowVersion',
* });
* console.log(res.data);
*
Expand Down Expand Up @@ -2866,7 +2863,8 @@ export namespace tpu_v1 {

if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Projects$Locations$Tensorflowversions$Get;
params =
{} as Params$Resource$Projects$Locations$Tensorflowversions$Get;
options = {};
}

Expand Down Expand Up @@ -3009,7 +3007,8 @@ export namespace tpu_v1 {

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

Expand Down
17 changes: 8 additions & 9 deletions src/apis/tpu/v1alpha1.ts
Expand Up @@ -502,9 +502,8 @@ export namespace tpu_v1alpha1 {
this.operations = new Resource$Projects$Locations$Operations(
this.context
);
this.tensorflowVersions = new Resource$Projects$Locations$Tensorflowversions(
this.context
);
this.tensorflowVersions =
new Resource$Projects$Locations$Tensorflowversions(this.context);
}

/**
Expand Down Expand Up @@ -840,8 +839,7 @@ export namespace tpu_v1alpha1 {
* // Do the magic
* const res = await tpu.projects.locations.acceleratorTypes.get({
* // Required. The resource name.
* name:
* 'projects/my-project/locations/my-location/acceleratorTypes/my-acceleratorType',
* name: 'projects/my-project/locations/my-location/acceleratorTypes/my-acceleratorType',
* });
* console.log(res.data);
*
Expand Down Expand Up @@ -2805,8 +2803,7 @@ export namespace tpu_v1alpha1 {
* // Do the magic
* const res = await tpu.projects.locations.tensorflowVersions.get({
* // Required. The resource name.
* name:
* 'projects/my-project/locations/my-location/tensorflowVersions/my-tensorflowVersion',
* name: 'projects/my-project/locations/my-location/tensorflowVersions/my-tensorflowVersion',
* });
* console.log(res.data);
*
Expand Down Expand Up @@ -2875,7 +2872,8 @@ export namespace tpu_v1alpha1 {

if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Projects$Locations$Tensorflowversions$Get;
params =
{} as Params$Resource$Projects$Locations$Tensorflowversions$Get;
options = {};
}

Expand Down Expand Up @@ -3018,7 +3016,8 @@ export namespace tpu_v1alpha1 {

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

Expand Down

0 comments on commit 46140f6

Please sign in to comment.