Skip to content

Commit

Permalink
feat: [compute] Update Compute Engine API to revision 20240421 (#899) (
Browse files Browse the repository at this point in the history
…#5294)

* feat: Update Compute Engine API to revision 20240407 (#890)

Source-Link: googleapis/googleapis@018c0e3

Source-Link: googleapis/googleapis-gen@dad8476
Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbXB1dGUvLk93bEJvdC55YW1sIiwiaCI6ImRhZDg0NzZjOTRlYjFlY2IyZmQ3MmYyOTY4MjVlOTYyMWVhOGI0NWQifQ==

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* feat: Update Compute Engine API to revision 20240421 (#899)

Source-Link: googleapis/googleapis@55499b5

Source-Link: googleapis/googleapis-gen@cf5049b
Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbXB1dGUvLk93bEJvdC55YW1sIiwiaCI6ImNmNTA0OWI3MDc5MjgyMDA2NWRiMzhlNzEyN2YzMmVhYjc3MDU5NDQifQ==

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored May 1, 2024
1 parent 76f05f2 commit f3e0606
Show file tree
Hide file tree
Showing 52 changed files with 48,106 additions and 5,342 deletions.
21 changes: 21 additions & 0 deletions packages/google-cloud-compute/README.md

Large diffs are not rendered by default.

1,535 changes: 1,504 additions & 31 deletions packages/google-cloud-compute/protos/google/cloud/compute/v1/compute.proto

Large diffs are not rendered by default.

6,375 changes: 6,373 additions & 2 deletions packages/google-cloud-compute/protos/protos.d.ts

Large diffs are not rendered by default.

26,177 changes: 22,013 additions & 4,164 deletions packages/google-cloud-compute/protos/protos.js

Large diffs are not rendered by default.

5,710 changes: 4,583 additions & 1,127 deletions packages/google-cloud-compute/protos/protos.json

Large diffs are not rendered by default.

378 changes: 378 additions & 0 deletions packages/google-cloud-compute/samples/README.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
// Copyright 2024 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// ** This file is automatically generated by gapic-generator-typescript. **
// ** https://github.com/googleapis/gapic-generator-typescript **
// ** All changes to this file may be overwritten. **



'use strict';

function main(instanceGroupManager, project, resizeRequest, zone) {
// [START compute_v1_generated_InstanceGroupManagerResizeRequests_Cancel_async]
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* The name of the managed instance group. The name should conform to RFC1035 or be a resource ID.
*/
// const instanceGroupManager = 'abc123'
/**
* Project ID for this request.
*/
// const project = 'my-project'
/**
* An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
*/
// const requestId = 'abc123'
/**
* The name of the resize request to cancel. The name should conform to RFC1035 or be a resource ID.
*/
// const resizeRequest = 'abc123'
/**
* The name of the zone where the managed instance group is located. The name should conform to RFC1035.
*/
// const zone = 'abc123'

// Imports the Compute library
const {InstanceGroupManagerResizeRequestsClient} = require('@google-cloud/compute').v1;

// Instantiates a client
const computeClient = new InstanceGroupManagerResizeRequestsClient();

async function callCancel() {
// Construct request
const request = {
instanceGroupManager,
project,
resizeRequest,
zone,
};

// Run request
const response = await computeClient.cancel(request);
console.log(response);
}

callCancel();
// [END compute_v1_generated_InstanceGroupManagerResizeRequests_Cancel_async]
}

process.on('unhandledRejection', err => {
console.error(err.message);
process.exitCode = 1;
});
main(...process.argv.slice(2));
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
// Copyright 2024 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// ** This file is automatically generated by gapic-generator-typescript. **
// ** https://github.com/googleapis/gapic-generator-typescript **
// ** All changes to this file may be overwritten. **



'use strict';

function main(instanceGroupManager, project, resizeRequest, zone) {
// [START compute_v1_generated_InstanceGroupManagerResizeRequests_Delete_async]
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* The name of the managed instance group. The name should conform to RFC1035 or be a resource ID.
*/
// const instanceGroupManager = 'abc123'
/**
* Project ID for this request.
*/
// const project = 'my-project'
/**
* An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
*/
// const requestId = 'abc123'
/**
* The name of the resize request to delete. The name should conform to RFC1035 or be a resource ID.
*/
// const resizeRequest = 'abc123'
/**
* The name of the zone where the managed instance group is located. The name should conform to RFC1035.
*/
// const zone = 'abc123'

// Imports the Compute library
const {InstanceGroupManagerResizeRequestsClient} = require('@google-cloud/compute').v1;

// Instantiates a client
const computeClient = new InstanceGroupManagerResizeRequestsClient();

async function callDelete() {
// Construct request
const request = {
instanceGroupManager,
project,
resizeRequest,
zone,
};

// Run request
const response = await computeClient.delete(request);
console.log(response);
}

callDelete();
// [END compute_v1_generated_InstanceGroupManagerResizeRequests_Delete_async]
}

process.on('unhandledRejection', err => {
console.error(err.message);
process.exitCode = 1;
});
main(...process.argv.slice(2));
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
// Copyright 2024 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// ** This file is automatically generated by gapic-generator-typescript. **
// ** https://github.com/googleapis/gapic-generator-typescript **
// ** All changes to this file may be overwritten. **



'use strict';

function main(instanceGroupManager, project, resizeRequest, zone) {
// [START compute_v1_generated_InstanceGroupManagerResizeRequests_Get_async]
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* The name of the managed instance group. Name should conform to RFC1035 or be a resource ID.
*/
// const instanceGroupManager = 'abc123'
/**
* Project ID for this request.
*/
// const project = 'my-project'
/**
* The name of the resize request. Name should conform to RFC1035 or be a resource ID.
*/
// const resizeRequest = 'abc123'
/**
* Name of the href="/compute/docs/regions-zones/#available">zone scoping this request. Name should conform to RFC1035.
*/
// const zone = 'abc123'

// Imports the Compute library
const {InstanceGroupManagerResizeRequestsClient} = require('@google-cloud/compute').v1;

// Instantiates a client
const computeClient = new InstanceGroupManagerResizeRequestsClient();

async function callGet() {
// Construct request
const request = {
instanceGroupManager,
project,
resizeRequest,
zone,
};

// Run request
const response = await computeClient.get(request);
console.log(response);
}

callGet();
// [END compute_v1_generated_InstanceGroupManagerResizeRequests_Get_async]
}

process.on('unhandledRejection', err => {
console.error(err.message);
process.exitCode = 1;
});
main(...process.argv.slice(2));
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
// Copyright 2024 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// ** This file is automatically generated by gapic-generator-typescript. **
// ** https://github.com/googleapis/gapic-generator-typescript **
// ** All changes to this file may be overwritten. **



'use strict';

function main(instanceGroupManager, instanceGroupManagerResizeRequestResource, project, zone) {
// [START compute_v1_generated_InstanceGroupManagerResizeRequests_Insert_async]
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* The name of the managed instance group to which the resize request will be added. Name should conform to RFC1035 or be a resource ID.
*/
// const instanceGroupManager = 'abc123'
/**
* The body resource for this request
*/
// const instanceGroupManagerResizeRequestResource = {}
/**
* Project ID for this request.
*/
// const project = 'my-project'
/**
* An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
*/
// const requestId = 'abc123'
/**
* The name of the zone where the managed instance group is located and where the resize request will be created. Name should conform to RFC1035.
*/
// const zone = 'abc123'

// Imports the Compute library
const {InstanceGroupManagerResizeRequestsClient} = require('@google-cloud/compute').v1;

// Instantiates a client
const computeClient = new InstanceGroupManagerResizeRequestsClient();

async function callInsert() {
// Construct request
const request = {
instanceGroupManager,
instanceGroupManagerResizeRequestResource,
project,
zone,
};

// Run request
const response = await computeClient.insert(request);
console.log(response);
}

callInsert();
// [END compute_v1_generated_InstanceGroupManagerResizeRequests_Insert_async]
}

process.on('unhandledRejection', err => {
console.error(err.message);
process.exitCode = 1;
});
main(...process.argv.slice(2));
Loading

0 comments on commit f3e0606

Please sign in to comment.