Skip to content

Commit

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

* feat: Update Compute Engine API to revision 20230307 (#770)

Source-Link: googleapis/googleapis@c2016e5

Source-Link: googleapis/googleapis-gen@0885fd7
Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbXB1dGUvLk93bEJvdC55YW1sIiwiaCI6IjA4ODVmZDdhZThhODA1YTM3Nzk3NGVkZmJhNjBhYjdjOTMyN2Y3NWEifQ==

* 🦉 Updates from OwlBot post-processor

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

* build: fix dataform publishing(#4099)

Release-As: 0.4.1

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: sofisl <[email protected]>
  • Loading branch information
3 people authored Mar 20, 2023
1 parent a4610aa commit e6a35a6
Show file tree
Hide file tree
Showing 81 changed files with 18,056 additions and 4,833 deletions.
8 changes: 8 additions & 0 deletions packages/google-cloud-compute/README.md

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2,026 changes: 2,024 additions & 2 deletions packages/google-cloud-compute/protos/protos.d.ts

Large diffs are not rendered by default.

14,624 changes: 9,975 additions & 4,649 deletions packages/google-cloud-compute/protos/protos.js

Large diffs are not rendered by default.

962 changes: 954 additions & 8 deletions packages/google-cloud-compute/protos/protos.json

Large diffs are not rendered by default.

144 changes: 144 additions & 0 deletions packages/google-cloud-compute/samples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
* [Disks.set_iam_policy](#disks.set_iam_policy)
* [Disks.set_labels](#disks.set_labels)
* [Disks.test_iam_permissions](#disks.test_iam_permissions)
* [Disks.update](#disks.update)
* [External_vpn_gateways.delete](#external_vpn_gateways.delete)
* [External_vpn_gateways.get](#external_vpn_gateways.get)
* [External_vpn_gateways.insert](#external_vpn_gateways.insert)
Expand Down Expand Up @@ -185,6 +186,7 @@
* [Instance_groups.list_instances](#instance_groups.list_instances)
* [Instance_groups.remove_instances](#instance_groups.remove_instances)
* [Instance_groups.set_named_ports](#instance_groups.set_named_ports)
* [Instance_templates.aggregated_list](#instance_templates.aggregated_list)
* [Instance_templates.delete](#instance_templates.delete)
* [Instance_templates.get](#instance_templates.get)
* [Instance_templates.get_iam_policy](#instance_templates.get_iam_policy)
Expand Down Expand Up @@ -222,6 +224,7 @@
* [Instances.set_machine_type](#instances.set_machine_type)
* [Instances.set_metadata](#instances.set_metadata)
* [Instances.set_min_cpu_platform](#instances.set_min_cpu_platform)
* [Instances.set_name](#instances.set_name)
* [Instances.set_scheduling](#instances.set_scheduling)
* [Instances.set_service_account](#instances.set_service_account)
* [Instances.set_shielded_instance_integrity_policy](#instances.set_shielded_instance_integrity_policy)
Expand Down Expand Up @@ -410,6 +413,7 @@
* [Region_disks.set_iam_policy](#region_disks.set_iam_policy)
* [Region_disks.set_labels](#region_disks.set_labels)
* [Region_disks.test_iam_permissions](#region_disks.test_iam_permissions)
* [Region_disks.update](#region_disks.update)
* [Region_health_check_services.delete](#region_health_check_services.delete)
* [Region_health_check_services.get](#region_health_check_services.get)
* [Region_health_check_services.insert](#region_health_check_services.insert)
Expand Down Expand Up @@ -444,6 +448,10 @@
* [Region_instance_groups.list](#region_instance_groups.list)
* [Region_instance_groups.list_instances](#region_instance_groups.list_instances)
* [Region_instance_groups.set_named_ports](#region_instance_groups.set_named_ports)
* [Region_instance_templates.delete](#region_instance_templates.delete)
* [Region_instance_templates.get](#region_instance_templates.get)
* [Region_instance_templates.insert](#region_instance_templates.insert)
* [Region_instance_templates.list](#region_instance_templates.list)
* [Region_instances.bulk_insert](#region_instances.bulk_insert)
* [Region_network_endpoint_groups.delete](#region_network_endpoint_groups.delete)
* [Region_network_endpoint_groups.get](#region_network_endpoint_groups.get)
Expand Down Expand Up @@ -1648,6 +1656,23 @@ __Usage:__



### Disks.update

View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/disks.update.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/disks.update.js,samples/README.md)

__Usage:__


`node packages/google-cloud-compute/samples/generated/v1/disks.update.js`


-----




### External_vpn_gateways.delete

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



### Instance_templates.aggregated_list

View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instance_templates.aggregated_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/instance_templates.aggregated_list.js,samples/README.md)

__Usage:__


`node packages/google-cloud-compute/samples/generated/v1/instance_templates.aggregated_list.js`


-----




### Instance_templates.delete

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



### Instances.set_name

View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instances.set_name.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/instances.set_name.js,samples/README.md)

__Usage:__


`node packages/google-cloud-compute/samples/generated/v1/instances.set_name.js`


-----




### Instances.set_scheduling

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



### Region_disks.update

View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_disks.update.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_disks.update.js,samples/README.md)

__Usage:__


`node packages/google-cloud-compute/samples/generated/v1/region_disks.update.js`


-----




### Region_health_check_services.delete

View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_health_check_services.delete.js).
Expand Down Expand Up @@ -8057,6 +8133,74 @@ __Usage:__



### Region_instance_templates.delete

View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instance_templates.delete.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_templates.delete.js,samples/README.md)

__Usage:__


`node packages/google-cloud-compute/samples/generated/v1/region_instance_templates.delete.js`


-----




### Region_instance_templates.get

View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instance_templates.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/region_instance_templates.get.js,samples/README.md)

__Usage:__


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


-----




### Region_instance_templates.insert

View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instance_templates.insert.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_templates.insert.js,samples/README.md)

__Usage:__


`node packages/google-cloud-compute/samples/generated/v1/region_instance_templates.insert.js`


-----




### Region_instance_templates.list

View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instance_templates.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/region_instance_templates.list.js,samples/README.md)

__Usage:__


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


-----




### Region_instances.bulk_insert

View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_instances.bulk_insert.js).
Expand Down
87 changes: 87 additions & 0 deletions packages/google-cloud-compute/samples/generated/v1/disks.update.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
// Copyright 2023 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(disk, diskResource, project, zone) {
// [START compute_v1_generated_Disks_Update_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 disk name for this request.
*/
// const disk = 'abc123'
/**
* The body resource for this request
*/
// const diskResource = {}
/**
*/
// const paths = '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'
/**
* update_mask indicates fields to be updated as part of this request.
*/
// const updateMask = 'abc123'
/**
* The name of the zone for this request.
*/
// const zone = 'abc123'

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

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

async function callUpdate() {
// Construct request
const request = {
disk,
diskResource,
project,
zone,
};

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

callUpdate();
// [END compute_v1_generated_Disks_Update_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
Expand Up @@ -45,7 +45,7 @@ function main() {
*/
// const pageToken = 'abc123'
/**
* Parent ID for this request.
* Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization.
*/
// const parentId = 'abc123'
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function main(firewallPolicy, parentId) {
*/
// const firewallPolicy = 'abc123'
/**
* The new parent of the firewall policy.
* The new parent of the firewall policy. The ID can be either be "folders/[FOLDER_ID]" if the parent is a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization.
*/
// const parentId = 'abc123'
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function main(family, project) {
*/
// const family = 'abc123'
/**
* Project ID for this request.
* The image project that the image belongs to. For example, to get a CentOS image, specify centos-cloud as the image project.
*/
// const project = 'my-project'

Expand Down
Loading

0 comments on commit e6a35a6

Please sign in to comment.