-
Notifications
You must be signed in to change notification settings - Fork 598
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…#5873) * feat: Update Compute Engine API to revision 20241201 (#966) Source-Link: googleapis/googleapis@5d5b1bf Source-Link: googleapis/googleapis-gen@c735b61 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbXB1dGUvLk93bEJvdC55YW1sIiwiaCI6ImM3MzViNjE5M2RhZWJhYTljNDVjMmUyMzE1M2FmMTZhZWU3MzJmZTYifQ== * 🦉 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
1 parent
62687be
commit 8bb5b1d
Showing
38 changed files
with
22,762 additions
and
978 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
1,090 changes: 1,056 additions & 34 deletions
1,090
packages/google-cloud-compute/protos/google/cloud/compute/v1/compute.proto
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
3,185 changes: 2,476 additions & 709 deletions
3,185
packages/google-cloud-compute/protos/protos.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
80 changes: 80 additions & 0 deletions
80
...ges/google-cloud-compute/samples/generated/v1/instance_group_managers.resume_instances.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, instanceGroupManagersResumeInstancesRequestResource, project, zone) { | ||
// [START compute_v1_generated_InstanceGroupManagers_ResumeInstances_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. | ||
*/ | ||
// const instanceGroupManager = 'abc123' | ||
/** | ||
* The body resource for this request | ||
*/ | ||
// const instanceGroupManagersResumeInstancesRequestResource = {} | ||
/** | ||
* 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. | ||
*/ | ||
// const zone = 'abc123' | ||
|
||
// Imports the Compute library | ||
const {InstanceGroupManagersClient} = require('@google-cloud/compute').v1; | ||
|
||
// Instantiates a client | ||
const computeClient = new InstanceGroupManagersClient(); | ||
|
||
async function callResumeInstances() { | ||
// Construct request | ||
const request = { | ||
instanceGroupManager, | ||
instanceGroupManagersResumeInstancesRequestResource, | ||
project, | ||
zone, | ||
}; | ||
|
||
// Run request | ||
const response = await computeClient.resumeInstances(request); | ||
console.log(response); | ||
} | ||
|
||
callResumeInstances(); | ||
// [END compute_v1_generated_InstanceGroupManagers_ResumeInstances_async] | ||
} | ||
|
||
process.on('unhandledRejection', err => { | ||
console.error(err.message); | ||
process.exitCode = 1; | ||
}); | ||
main(...process.argv.slice(2)); |
Oops, something went wrong.