Skip to content

Commit

Permalink
feat: [compute] Update Compute Engine API to revision 20241201 (#966) (
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
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Dec 10, 2024
1 parent 62687be commit 8bb5b1d
Show file tree
Hide file tree
Showing 38 changed files with 22,762 additions and 978 deletions.
11 changes: 11 additions & 0 deletions packages/google-cloud-compute/README.md

Large diffs are not rendered by default.

1,090 changes: 1,056 additions & 34 deletions packages/google-cloud-compute/protos/google/cloud/compute/v1/compute.proto

Large diffs are not rendered by default.

3,576 changes: 3,575 additions & 1 deletion packages/google-cloud-compute/protos/protos.d.ts

Large diffs are not rendered by default.

9,784 changes: 9,552 additions & 232 deletions packages/google-cloud-compute/protos/protos.js

Large diffs are not rendered by default.

3,185 changes: 2,476 additions & 709 deletions packages/google-cloud-compute/protos/protos.json

Large diffs are not rendered by default.

198 changes: 198 additions & 0 deletions packages/google-cloud-compute/samples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,12 @@
* [Instance_group_managers.patch_per_instance_configs](#instance_group_managers.patch_per_instance_configs)
* [Instance_group_managers.recreate_instances](#instance_group_managers.recreate_instances)
* [Instance_group_managers.resize](#instance_group_managers.resize)
* [Instance_group_managers.resume_instances](#instance_group_managers.resume_instances)
* [Instance_group_managers.set_instance_template](#instance_group_managers.set_instance_template)
* [Instance_group_managers.set_target_pools](#instance_group_managers.set_target_pools)
* [Instance_group_managers.start_instances](#instance_group_managers.start_instances)
* [Instance_group_managers.stop_instances](#instance_group_managers.stop_instances)
* [Instance_group_managers.suspend_instances](#instance_group_managers.suspend_instances)
* [Instance_group_managers.update_per_instance_configs](#instance_group_managers.update_per_instance_configs)
* [Instance_groups.add_instances](#instance_groups.add_instances)
* [Instance_groups.aggregated_list](#instance_groups.aggregated_list)
Expand Down Expand Up @@ -346,6 +350,8 @@
* [Network_firewall_policies.remove_rule](#network_firewall_policies.remove_rule)
* [Network_firewall_policies.set_iam_policy](#network_firewall_policies.set_iam_policy)
* [Network_firewall_policies.test_iam_permissions](#network_firewall_policies.test_iam_permissions)
* [Network_profiles.get](#network_profiles.get)
* [Network_profiles.list](#network_profiles.list)
* [Networks.add_peering](#networks.add_peering)
* [Networks.delete](#networks.delete)
* [Networks.get](#networks.get)
Expand Down Expand Up @@ -488,8 +494,12 @@
* [Region_instance_group_managers.patch_per_instance_configs](#region_instance_group_managers.patch_per_instance_configs)
* [Region_instance_group_managers.recreate_instances](#region_instance_group_managers.recreate_instances)
* [Region_instance_group_managers.resize](#region_instance_group_managers.resize)
* [Region_instance_group_managers.resume_instances](#region_instance_group_managers.resume_instances)
* [Region_instance_group_managers.set_instance_template](#region_instance_group_managers.set_instance_template)
* [Region_instance_group_managers.set_target_pools](#region_instance_group_managers.set_target_pools)
* [Region_instance_group_managers.start_instances](#region_instance_group_managers.start_instances)
* [Region_instance_group_managers.stop_instances](#region_instance_group_managers.stop_instances)
* [Region_instance_group_managers.suspend_instances](#region_instance_group_managers.suspend_instances)
* [Region_instance_group_managers.update_per_instance_configs](#region_instance_group_managers.update_per_instance_configs)
* [Region_instance_groups.get](#region_instance_groups.get)
* [Region_instance_groups.list](#region_instance_groups.list)
Expand Down Expand Up @@ -549,6 +559,7 @@
* [Region_security_policies.patch](#region_security_policies.patch)
* [Region_security_policies.patch_rule](#region_security_policies.patch_rule)
* [Region_security_policies.remove_rule](#region_security_policies.remove_rule)
* [Region_security_policies.set_labels](#region_security_policies.set_labels)
* [Region_ssl_certificates.delete](#region_ssl_certificates.delete)
* [Region_ssl_certificates.get](#region_ssl_certificates.get)
* [Region_ssl_certificates.insert](#region_ssl_certificates.insert)
Expand Down Expand Up @@ -3828,6 +3839,23 @@ __Usage:__



### Instance_group_managers.resume_instances

View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instance_group_managers.resume_instances.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/instance_group_managers.resume_instances.js,samples/README.md)

__Usage:__


`node packages/google-cloud-compute/samples/generated/v1/instance_group_managers.resume_instances.js`


-----




### Instance_group_managers.set_instance_template

View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instance_group_managers.set_instance_template.js).
Expand Down Expand Up @@ -3862,6 +3890,57 @@ __Usage:__



### Instance_group_managers.start_instances

View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instance_group_managers.start_instances.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/instance_group_managers.start_instances.js,samples/README.md)

__Usage:__


`node packages/google-cloud-compute/samples/generated/v1/instance_group_managers.start_instances.js`


-----




### Instance_group_managers.stop_instances

View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instance_group_managers.stop_instances.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/instance_group_managers.stop_instances.js,samples/README.md)

__Usage:__


`node packages/google-cloud-compute/samples/generated/v1/instance_group_managers.stop_instances.js`


-----




### Instance_group_managers.suspend_instances

View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instance_group_managers.suspend_instances.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/instance_group_managers.suspend_instances.js,samples/README.md)

__Usage:__


`node packages/google-cloud-compute/samples/generated/v1/instance_group_managers.suspend_instances.js`


-----




### Instance_group_managers.update_per_instance_configs

View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instance_group_managers.update_per_instance_configs.js).
Expand Down Expand Up @@ -6480,6 +6559,40 @@ __Usage:__



### Network_profiles.get

View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/network_profiles.get.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/network_profiles.get.js,samples/README.md)

__Usage:__


`node packages/google-cloud-compute/samples/generated/v1/network_profiles.get.js`


-----




### Network_profiles.list

View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/network_profiles.list.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/network_profiles.list.js,samples/README.md)

__Usage:__


`node packages/google-cloud-compute/samples/generated/v1/network_profiles.list.js`


-----




### Networks.add_peering

View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/networks.add_peering.js).
Expand Down Expand Up @@ -8894,6 +9007,23 @@ __Usage:__



### Region_instance_group_managers.resume_instances

View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instance_group_managers.resume_instances.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/region_instance_group_managers.resume_instances.js,samples/README.md)

__Usage:__


`node packages/google-cloud-compute/samples/generated/v1/region_instance_group_managers.resume_instances.js`


-----




### Region_instance_group_managers.set_instance_template

View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instance_group_managers.set_instance_template.js).
Expand Down Expand Up @@ -8928,6 +9058,57 @@ __Usage:__



### Region_instance_group_managers.start_instances

View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instance_group_managers.start_instances.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/region_instance_group_managers.start_instances.js,samples/README.md)

__Usage:__


`node packages/google-cloud-compute/samples/generated/v1/region_instance_group_managers.start_instances.js`


-----




### Region_instance_group_managers.stop_instances

View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instance_group_managers.stop_instances.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/region_instance_group_managers.stop_instances.js,samples/README.md)

__Usage:__


`node packages/google-cloud-compute/samples/generated/v1/region_instance_group_managers.stop_instances.js`


-----




### Region_instance_group_managers.suspend_instances

View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instance_group_managers.suspend_instances.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/region_instance_group_managers.suspend_instances.js,samples/README.md)

__Usage:__


`node packages/google-cloud-compute/samples/generated/v1/region_instance_group_managers.suspend_instances.js`


-----




### Region_instance_group_managers.update_per_instance_configs

View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instance_group_managers.update_per_instance_configs.js).
Expand Down Expand Up @@ -9931,6 +10112,23 @@ __Usage:__



### Region_security_policies.set_labels

View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_security_policies.set_labels.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/region_security_policies.set_labels.js,samples/README.md)

__Usage:__


`node packages/google-cloud-compute/samples/generated/v1/region_security_policies.set_labels.js`


-----




### Region_ssl_certificates.delete

View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_ssl_certificates.delete.js).
Expand Down
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));
Loading

0 comments on commit 8bb5b1d

Please sign in to comment.