-
Notifications
You must be signed in to change notification settings - Fork 592
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
…#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
1 parent
76f05f2
commit f3e0606
Showing
52 changed files
with
48,106 additions
and
5,342 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
1,535 changes: 1,504 additions & 31 deletions
1,535
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.
26,177 changes: 22,013 additions & 4,164 deletions
26,177
packages/google-cloud-compute/protos/protos.js
Large diffs are not rendered by default.
Oops, something went wrong.
5,710 changes: 4,583 additions & 1,127 deletions
5,710
packages/google-cloud-compute/protos/protos.json
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
80 changes: 80 additions & 0 deletions
80
...oogle-cloud-compute/samples/generated/v1/instance_group_manager_resize_requests.cancel.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, 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)); |
80 changes: 80 additions & 0 deletions
80
...oogle-cloud-compute/samples/generated/v1/instance_group_manager_resize_requests.delete.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, 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)); |
76 changes: 76 additions & 0 deletions
76
...s/google-cloud-compute/samples/generated/v1/instance_group_manager_resize_requests.get.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,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)); |
80 changes: 80 additions & 0 deletions
80
...oogle-cloud-compute/samples/generated/v1/instance_group_manager_resize_requests.insert.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, 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)); |
Oops, something went wrong.