Skip to content

Commit

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

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

Source-Link: googleapis/googleapis@f64a3c8

Source-Link: googleapis/googleapis-gen@808541b
Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbXB1dGUvLk93bEJvdC55YW1sIiwiaCI6IjgwODU0MWI3ZTc2OTdlMjk4NGEwZWEwZWJhMWFkYjU1NjBkYWRlOTcifQ==

* 🦉 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 Mar 21, 2023
1 parent 623b203 commit bea2478
Show file tree
Hide file tree
Showing 12 changed files with 1,420 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/google-cloud-compute/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/
| Node_groups.patch | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/node_groups.patch.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/node_groups.patch.js,samples/README.md) |
| Node_groups.set_iam_policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/node_groups.set_iam_policy.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/node_groups.set_iam_policy.js,samples/README.md) |
| Node_groups.set_node_template | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/node_groups.set_node_template.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/node_groups.set_node_template.js,samples/README.md) |
| Node_groups.simulate_maintenance_event | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/node_groups.simulate_maintenance_event.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/node_groups.simulate_maintenance_event.js,samples/README.md) |
| Node_groups.test_iam_permissions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/node_groups.test_iam_permissions.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/node_groups.test_iam_permissions.js,samples/README.md) |
| Node_templates.aggregated_list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/node_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/node_templates.aggregated_list.js,samples/README.md) |
| Node_templates.delete | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/node_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/node_templates.delete.js,samples/README.md) |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9421,6 +9421,8 @@ message GuestOsFeature {

SEV_CAPABLE = 87083793;

SEV_LIVE_MIGRATABLE = 392039820;

SEV_SNP_CAPABLE = 426919;

UEFI_COMPATIBLE = 195865408;
Expand Down Expand Up @@ -9897,12 +9899,16 @@ message HealthStatusForNetworkEndpoint {
// A value indicating that the enum field is not set.
UNDEFINED_HEALTH_STATE = 0;

// Endpoint is being drained.
DRAINING = 480455402;

// Endpoint is healthy.
HEALTHY = 439801213;

// Endpoint is unhealthy.
UNHEALTHY = 462118084;

// Health status of the endpoint is unknown.
UNKNOWN = 433141802;

}
Expand Down Expand Up @@ -18682,6 +18688,13 @@ message NodeGroupsSetNodeTemplateRequest {

}

//
message NodeGroupsSimulateMaintenanceEventRequest {
// Names of the nodes to go under maintenance simulation.
repeated string nodes = 104993457;

}

// Represent a sole-tenant Node Template resource. You can use a template to define properties for nodes in a node group. For more information, read Creating node groups and instances.
message NodeTemplate {
// CPU overcommit.
Expand Down Expand Up @@ -26603,6 +26616,31 @@ message SimulateMaintenanceEventInstanceRequest {

}

// A request message for NodeGroups.SimulateMaintenanceEvent. See the method description for details.
message SimulateMaintenanceEventNodeGroupRequest {
// Name of the NodeGroup resource whose nodes will go under maintenance simulation.
string node_group = 469958146 [(google.api.field_behavior) = REQUIRED];

// The body resource for this request
NodeGroupsSimulateMaintenanceEventRequest node_groups_simulate_maintenance_event_request_resource = 351468764 [(google.api.field_behavior) = REQUIRED];

// Project ID for this request.
string project = 227560217 [
(google.api.field_behavior) = REQUIRED,
(google.cloud.operation_request_field) = "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).
optional string request_id = 37109963;

// The name of the zone for this request.
string zone = 3744684 [
(google.api.field_behavior) = REQUIRED,
(google.cloud.operation_request_field) = "zone"
];

}

// Represents a Persistent Disk Snapshot resource. You can use snapshots to back up data on a regular interval. For more information, read Creating persistent disk snapshots.
message Snapshot {
// [Output Only] The architecture of the snapshot. Valid values are ARM64 or X86_64.
Expand Down Expand Up @@ -34205,6 +34243,16 @@ service NodeGroups {
option (google.cloud.operation_service) = "ZoneOperations";
}

// Simulates maintenance event on specified nodes from the node group.
rpc SimulateMaintenanceEvent(SimulateMaintenanceEventNodeGroupRequest) returns (Operation) {
option (google.api.http) = {
body: "node_groups_simulate_maintenance_event_request_resource"
post: "/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{node_group}/simulateMaintenanceEvent"
};
option (google.api.method_signature) = "project,zone,node_group,node_groups_simulate_maintenance_event_request_resource";
option (google.cloud.operation_service) = "ZoneOperations";
}

// Returns permissions that a caller has on the specified resource.
rpc TestIamPermissions(TestIamPermissionsNodeGroupRequest) returns (TestPermissionsResponse) {
option (google.api.http) = {
Expand Down
Loading

0 comments on commit bea2478

Please sign in to comment.