diff --git a/packages/google-cloud-compute/README.md b/packages/google-cloud-compute/README.md index 6268823e0b7..118cca4f92c 100644 --- a/packages/google-cloud-compute/README.md +++ b/packages/google-cloud-compute/README.md @@ -314,6 +314,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Instances.insert | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instances.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/instances.insert.js,packages/google-cloud-compute/samples/README.md) | | Instances.list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instances.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/instances.list.js,packages/google-cloud-compute/samples/README.md) | | Instances.list_referrers | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instances.list_referrers.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.list_referrers.js,packages/google-cloud-compute/samples/README.md) | +| Instances.perform_maintenance | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instances.perform_maintenance.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.perform_maintenance.js,packages/google-cloud-compute/samples/README.md) | | Instances.remove_resource_policies | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instances.remove_resource_policies.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.remove_resource_policies.js,packages/google-cloud-compute/samples/README.md) | | Instances.reset | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instances.reset.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.reset.js,packages/google-cloud-compute/samples/README.md) | | Instances.resume | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instances.resume.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.resume.js,packages/google-cloud-compute/samples/README.md) | @@ -646,6 +647,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Region_url_maps.patch | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_url_maps.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/region_url_maps.patch.js,packages/google-cloud-compute/samples/README.md) | | Region_url_maps.update | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_url_maps.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_url_maps.update.js,packages/google-cloud-compute/samples/README.md) | | Region_url_maps.validate | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_url_maps.validate.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_url_maps.validate.js,packages/google-cloud-compute/samples/README.md) | +| Region_zones.list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_zones.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_zones.list.js,packages/google-cloud-compute/samples/README.md) | | Regions.get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/regions.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/regions.get.js,packages/google-cloud-compute/samples/README.md) | | Regions.list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/regions.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/regions.list.js,packages/google-cloud-compute/samples/README.md) | | Reservations.aggregated_list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/reservations.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/reservations.aggregated_list.js,packages/google-cloud-compute/samples/README.md) | diff --git a/packages/google-cloud-compute/protos/google/cloud/compute/v1/compute.proto b/packages/google-cloud-compute/protos/google/cloud/compute/v1/compute.proto index 875c1337a4b..b4cd73e3c39 100644 --- a/packages/google-cloud-compute/protos/google/cloud/compute/v1/compute.proto +++ b/packages/google-cloud-compute/protos/google/cloud/compute/v1/compute.proto @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// 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. @@ -14,7 +14,7 @@ // Generated by the disco-to-proto3-converter. DO NOT EDIT! // Source Discovery file: compute.v1.json -// Source file revision: 20231110 +// Source file revision: 20240130 // API name: compute // API version: v1 @@ -994,6 +994,7 @@ message AggregatedListAcceleratorTypesRequest { // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. optional bool return_partial_success = 517198390; + // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } @@ -1021,6 +1022,7 @@ message AggregatedListAddressesRequest { // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. optional bool return_partial_success = 517198390; + // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } @@ -1048,6 +1050,7 @@ message AggregatedListAutoscalersRequest { // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. optional bool return_partial_success = 517198390; + // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } @@ -1075,6 +1078,7 @@ message AggregatedListBackendServicesRequest { // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. optional bool return_partial_success = 517198390; + // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } @@ -1102,6 +1106,7 @@ message AggregatedListDiskTypesRequest { // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. optional bool return_partial_success = 517198390; + // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } @@ -1129,6 +1134,7 @@ message AggregatedListDisksRequest { // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. optional bool return_partial_success = 517198390; + // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } @@ -1156,6 +1162,7 @@ message AggregatedListForwardingRulesRequest { // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. optional bool return_partial_success = 517198390; + // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } @@ -1183,6 +1190,7 @@ message AggregatedListGlobalOperationsRequest { // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. optional bool return_partial_success = 517198390; + // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } @@ -1210,6 +1218,7 @@ message AggregatedListHealthChecksRequest { // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. optional bool return_partial_success = 517198390; + // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } @@ -1237,6 +1246,7 @@ message AggregatedListInstanceGroupManagersRequest { // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. optional bool return_partial_success = 517198390; + // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } @@ -1264,6 +1274,7 @@ message AggregatedListInstanceGroupsRequest { // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. optional bool return_partial_success = 517198390; + // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } @@ -1291,6 +1302,7 @@ message AggregatedListInstanceTemplatesRequest { // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. optional bool return_partial_success = 517198390; + // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } @@ -1318,6 +1330,7 @@ message AggregatedListInstancesRequest { // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. optional bool return_partial_success = 517198390; + // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } @@ -1345,6 +1358,7 @@ message AggregatedListInterconnectAttachmentsRequest { // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. optional bool return_partial_success = 517198390; + // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } @@ -1372,6 +1386,7 @@ message AggregatedListMachineTypesRequest { // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. optional bool return_partial_success = 517198390; + // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } @@ -1399,6 +1414,7 @@ message AggregatedListNetworkAttachmentsRequest { // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. optional bool return_partial_success = 517198390; + // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } @@ -1426,6 +1442,7 @@ message AggregatedListNetworkEdgeSecurityServicesRequest { // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. optional bool return_partial_success = 517198390; + // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } @@ -1453,6 +1470,7 @@ message AggregatedListNetworkEndpointGroupsRequest { // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. optional bool return_partial_success = 517198390; + // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } @@ -1480,6 +1498,7 @@ message AggregatedListNodeGroupsRequest { // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. optional bool return_partial_success = 517198390; + // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } @@ -1507,6 +1526,7 @@ message AggregatedListNodeTemplatesRequest { // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. optional bool return_partial_success = 517198390; + // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } @@ -1534,6 +1554,7 @@ message AggregatedListNodeTypesRequest { // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. optional bool return_partial_success = 517198390; + // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } @@ -1561,6 +1582,7 @@ message AggregatedListPacketMirroringsRequest { // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. optional bool return_partial_success = 517198390; + // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } @@ -1588,6 +1610,7 @@ message AggregatedListPublicDelegatedPrefixesRequest { // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. optional bool return_partial_success = 517198390; + // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } @@ -1615,6 +1638,7 @@ message AggregatedListRegionCommitmentsRequest { // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. optional bool return_partial_success = 517198390; + // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } @@ -1642,6 +1666,7 @@ message AggregatedListReservationsRequest { // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. optional bool return_partial_success = 517198390; + // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } @@ -1669,6 +1694,7 @@ message AggregatedListResourcePoliciesRequest { // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. optional bool return_partial_success = 517198390; + // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } @@ -1696,6 +1722,7 @@ message AggregatedListRoutersRequest { // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. optional bool return_partial_success = 517198390; + // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } @@ -1723,6 +1750,7 @@ message AggregatedListSecurityPoliciesRequest { // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. optional bool return_partial_success = 517198390; + // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } @@ -1750,6 +1778,7 @@ message AggregatedListServiceAttachmentsRequest { // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. optional bool return_partial_success = 517198390; + // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } @@ -1777,6 +1806,7 @@ message AggregatedListSslCertificatesRequest { // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. optional bool return_partial_success = 517198390; + // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } @@ -1804,6 +1834,7 @@ message AggregatedListSslPoliciesRequest { // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. optional bool return_partial_success = 517198390; + // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } @@ -1831,6 +1862,7 @@ message AggregatedListSubnetworksRequest { // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. optional bool return_partial_success = 517198390; + // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } @@ -1858,6 +1890,7 @@ message AggregatedListTargetHttpProxiesRequest { // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. optional bool return_partial_success = 517198390; + // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } @@ -1885,6 +1918,7 @@ message AggregatedListTargetHttpsProxiesRequest { // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. optional bool return_partial_success = 517198390; + // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } @@ -1912,6 +1946,7 @@ message AggregatedListTargetInstancesRequest { // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. optional bool return_partial_success = 517198390; + // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } @@ -1939,6 +1974,7 @@ message AggregatedListTargetPoolsRequest { // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. optional bool return_partial_success = 517198390; + // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } @@ -1966,6 +2002,7 @@ message AggregatedListTargetTcpProxiesRequest { // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. optional bool return_partial_success = 517198390; + // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } @@ -1993,6 +2030,7 @@ message AggregatedListTargetVpnGatewaysRequest { // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. optional bool return_partial_success = 517198390; + // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } @@ -2020,6 +2058,7 @@ message AggregatedListUrlMapsRequest { // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. optional bool return_partial_success = 517198390; + // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } @@ -2047,6 +2086,7 @@ message AggregatedListVpnGatewaysRequest { // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. optional bool return_partial_success = 517198390; + // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } @@ -2074,6 +2114,7 @@ message AggregatedListVpnTunnelsRequest { // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. optional bool return_partial_success = 517198390; + // The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. optional int64 service_project_number = 316757497; } @@ -2088,6 +2129,69 @@ message AliasIpRange { } +// This reservation type is specified by total resource amounts (e.g. total count of CPUs) and can account for multiple instance SKUs. In other words, one can create instances of varying shapes against this reservation. +message AllocationAggregateReservation { + // The VM family that all instances scheduled against this reservation must belong to. + enum VmFamily { + // A value indicating that the enum field is not set. + UNDEFINED_VM_FAMILY = 0; + + VM_FAMILY_CLOUD_TPU_LITE_DEVICE_CT5L = 108020067; + + VM_FAMILY_CLOUD_TPU_LITE_POD_SLICE_CT5LP = 18705267; + + VM_FAMILY_CLOUD_TPU_POD_SLICE_CT4P = 517384407; + + } + + // The workload type of the instances that will target this reservation. + enum WorkloadType { + // A value indicating that the enum field is not set. + UNDEFINED_WORKLOAD_TYPE = 0; + + // Reserved resources will be optimized for BATCH workloads, such as ML training. + BATCH = 62971674; + + // Reserved resources will be optimized for SERVING workloads, such as ML inference. + SERVING = 17781740; + + UNSPECIFIED = 526786327; + + } + + // [Output only] List of resources currently in use. + repeated AllocationAggregateReservationReservedResourceInfo in_use_resources = 409009107; + + // List of reserved resources (CPUs, memory, accelerators). + repeated AllocationAggregateReservationReservedResourceInfo reserved_resources = 213217742; + + // The VM family that all instances scheduled against this reservation must belong to. + // Check the VmFamily enum for the list of possible values. + optional string vm_family = 125017580; + + // The workload type of the instances that will target this reservation. + // Check the WorkloadType enum for the list of possible values. + optional string workload_type = 273432322; + +} + +// +message AllocationAggregateReservationReservedResourceInfo { + // Properties of accelerator resources in this reservation. + optional AllocationAggregateReservationReservedResourceInfoAccelerator accelerator = 424338027; + +} + +// +message AllocationAggregateReservationReservedResourceInfoAccelerator { + // Number of accelerators of specified type. + optional int32 accelerator_count = 504879675; + + // Full or partial URL to accelerator type. e.g. "projects/{PROJECT}/zones/{ZONE}/acceleratorTypes/ct4l" + optional string accelerator_type = 138031246; + +} + // [Output Only] Contains output only fields. message AllocationResourceStatus { // Allocation Properties of this reservation. @@ -2528,6 +2632,9 @@ message AttachedDiskInitializeParams { // Specifies the disk type to use to create the instance. If not specified, the default is pd-standard, specified using the full URL. For example: https://www.googleapis.com/compute/v1/projects/project/zones/zone /diskTypes/pd-standard For a full list of acceptable values, see Persistent disk types. If you specify this field when creating a VM, you can provide either the full or partial URL. For example, the following values are valid: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /diskTypes/diskType - projects/project/zones/zone/diskTypes/diskType - zones/zone/diskTypes/diskType If you specify this field when creating or updating an instance template or all-instances configuration, specify the type of the disk, not the URL. For example: pd-standard. optional string disk_type = 93009052; + // Whether this disk is using confidential compute mode. + optional bool enable_confidential_compute = 102135228; + // Labels to apply to this disk. These can be later modified by the disks.setLabels method. This field is only applicable for persistent disks. map labels = 500195327; @@ -3231,16 +3338,16 @@ message BackendService { // A value indicating that the enum field is not set. UNDEFINED_LOAD_BALANCING_SCHEME = 0; - // Signifies that this will be used for external HTTP(S), SSL Proxy, TCP Proxy, or Network Load Balancing + // Signifies that this will be used for classic Application Load Balancers, global external proxy Network Load Balancers, or external passthrough Network Load Balancers. EXTERNAL = 35607499; - // Signifies that this will be used for External Managed HTTP(S) Load Balancing. + // Signifies that this will be used for global external Application Load Balancers, regional external Application Load Balancers, or regional external proxy Network Load Balancers. EXTERNAL_MANAGED = 512006923; - // Signifies that this will be used for Internal TCP/UDP Load Balancing. + // Signifies that this will be used for internal passthrough Network Load Balancers. INTERNAL = 279295677; - // Signifies that this will be used for Internal HTTP(S) Load Balancing. + // Signifies that this will be used for internal Application Load Balancers. INTERNAL_MANAGED = 37350397; // Signifies that this will be used by Traffic Director. @@ -3340,7 +3447,7 @@ message BackendService { } - // Lifetime of cookies in seconds. This setting is applicable to external and internal HTTP(S) load balancers and Traffic Director and requires GENERATED_COOKIE or HTTP_COOKIE session affinity. If set to 0, the cookie is non-persistent and lasts only until the end of the browser session (or equivalent). The maximum allowed value is two weeks (1,209,600). Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. + // Lifetime of cookies in seconds. This setting is applicable to Application Load Balancers and Traffic Director and requires GENERATED_COOKIE or HTTP_COOKIE session affinity. If set to 0, the cookie is non-persistent and lasts only until the end of the browser session (or equivalent). The maximum allowed value is two weeks (1,209,600). Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. optional int32 affinity_cookie_ttl_sec = 369996954; // The list of backends that serve this BackendService. @@ -3357,7 +3464,7 @@ message BackendService { optional ConnectionDraining connection_draining = 461096747; - // Connection Tracking configuration for this BackendService. Connection tracking policy settings are only available for Network Load Balancing and Internal TCP/UDP Load Balancing. + // Connection Tracking configuration for this BackendService. Connection tracking policy settings are only available for external passthrough Network Load Balancers and internal passthrough Network Load Balancers. optional BackendServiceConnectionTrackingPolicy connection_tracking_policy = 143994969; // Consistent Hash-based load balancing can be used to provide soft session affinity based on HTTP headers, cookies or other properties. This load balancing policy is applicable only for HTTP connections. The affinity to a particular destination host will be lost when one or more hosts are added/removed from the destination service. This field specifies parameters that control consistent hashing. This field is only applicable when localityLbPolicy is set to MAGLEV or RING_HASH. This field is applicable to either: - A regional backend service with the service_protocol set to HTTP, HTTPS, or HTTP2, and load_balancing_scheme set to INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED. @@ -3378,10 +3485,10 @@ message BackendService { // [Output Only] The resource URL for the edge security policy associated with this backend service. optional string edge_security_policy = 41036943; - // If true, enables Cloud CDN for the backend service of an external HTTP(S) load balancer. + // If true, enables Cloud CDN for the backend service of a global external Application Load Balancer. optional bool enable_c_d_n = 250733499; - // Requires at least one backend instance group to be defined as a backup (failover) backend. For load balancers that have configurable failover: [Internal TCP/UDP Load Balancing](https://cloud.google.com/load-balancing/docs/internal/failover-overview) and [external TCP/UDP Load Balancing](https://cloud.google.com/load-balancing/docs/network/networklb-failover-overview). + // Requires at least one backend instance group to be defined as a backup (failover) backend. For load balancers that have configurable failover: [Internal passthrough Network Load Balancers](https://cloud.google.com/load-balancing/docs/internal/failover-overview) and [external passthrough Network Load Balancers](https://cloud.google.com/load-balancing/docs/network/networklb-failover-overview). optional BackendServiceFailoverPolicy failover_policy = 105658655; // Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a BackendService. An up-to-date fingerprint must be provided in order to update the BackendService, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a BackendService. @@ -3390,7 +3497,7 @@ message BackendService { // The list of URLs to the healthChecks, httpHealthChecks (legacy), or httpsHealthChecks (legacy) resource for health checking this backend service. Not all backend services support legacy health checks. See Load balancer guide. Currently, at most one health check can be specified for each backend service. Backend services with instance group or zonal NEG backends must have a health check. Backend services with internet or serverless NEG backends must not have a health check. repeated string health_checks = 448370606; - // The configurations for Identity-Aware Proxy on this resource. Not available for Internal TCP/UDP Load Balancing and Network Load Balancing. + // The configurations for Identity-Aware Proxy on this resource. Not available for internal passthrough Network Load Balancers and external passthrough Network Load Balancers. optional BackendServiceIAP iap = 104024; // [Output Only] The unique identifier for the resource. This identifier is defined by the server. @@ -3428,10 +3535,10 @@ message BackendService { // Settings controlling the ejection of unhealthy backend endpoints from the load balancing pool of each individual proxy instance that processes the traffic for the given backend service. If not set, this feature is considered disabled. Results of the outlier detection algorithm (ejection of endpoints from the load balancing pool and returning them back to the pool) are executed independently by each proxy instance of the load balancer. In most cases, more than one proxy instance handles the traffic received by a backend service. Thus, it is possible that an unhealthy endpoint is detected and ejected by only some of the proxies, and while this happens, other proxies may continue to send requests to the same unhealthy endpoint until they detect and eject the unhealthy endpoint. Applicable backend endpoints can be: - VM instances in an Instance Group - Endpoints in a Zonal NEG (GCE_VM_IP, GCE_VM_IP_PORT) - Endpoints in a Hybrid Connectivity NEG (NON_GCP_PRIVATE_IP_PORT) - Serverless NEGs, that resolve to Cloud Run, App Engine, or Cloud Functions Services - Private Service Connect NEGs, that resolve to Google-managed regional API endpoints or managed services published using Private Service Connect Applicable backend service types can be: - A global backend service with the loadBalancingScheme set to INTERNAL_SELF_MANAGED or EXTERNAL_MANAGED. - A regional backend service with the serviceProtocol set to HTTP, HTTPS, or HTTP2, and loadBalancingScheme set to INTERNAL_MANAGED or EXTERNAL_MANAGED. Not supported for Serverless NEGs. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true. optional OutlierDetection outlier_detection = 354625086; - // Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80. For Internal TCP/UDP Load Balancing and Network Load Balancing, omit port. + // Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80. For internal passthrough Network Load Balancers and external passthrough Network Load Balancers, omit port. optional int32 port = 3446913; - // A named port on a backend instance group representing the port for communication to the backend VMs in that group. The named port must be [defined on each backend instance group](https://cloud.google.com/load-balancing/docs/backend-service#named_ports). This parameter has no meaning if the backends are NEGs. For Internal TCP/UDP Load Balancing and Network Load Balancing, omit port_name. + // A named port on a backend instance group representing the port for communication to the backend VMs in that group. The named port must be [defined on each backend instance group](https://cloud.google.com/load-balancing/docs/backend-service#named_ports). This parameter has no meaning if the backends are NEGs. For internal passthrough Network Load Balancers and external passthrough Network Load Balancers, omit port_name. optional string port_name = 41534345; // The protocol this BackendService uses to communicate with backends. Possible values are HTTP, HTTPS, HTTP2, TCP, SSL, UDP or GRPC. depending on the chosen load balancer or Traffic Director configuration. Refer to the documentation for the load balancers or for Traffic Director for more information. Must be set to GRPC when the backend service is referenced by a URL map that is bound to target gRPC proxy. @@ -3599,10 +3706,10 @@ message BackendServiceConnectionTrackingPolicy { // Check the ConnectionPersistenceOnUnhealthyBackends enum for the list of possible values. optional string connection_persistence_on_unhealthy_backends = 152439033; - // Enable Strong Session Affinity for Network Load Balancing. This option is not available publicly. + // Enable Strong Session Affinity for external passthrough Network Load Balancers. This option is not available publicly. optional bool enable_strong_affinity = 24539924; - // Specifies how long to keep a Connection Tracking entry while there is no matching traffic (in seconds). For Internal TCP/UDP Load Balancing: - The minimum (default) is 10 minutes and the maximum is 16 hours. - It can be set only if Connection Tracking is less than 5-tuple (i.e. Session Affinity is CLIENT_IP_NO_DESTINATION, CLIENT_IP or CLIENT_IP_PROTO, and Tracking Mode is PER_SESSION). For Network Load Balancer the default is 60 seconds. This option is not available publicly. + // Specifies how long to keep a Connection Tracking entry while there is no matching traffic (in seconds). For internal passthrough Network Load Balancers: - The minimum (default) is 10 minutes and the maximum is 16 hours. - It can be set only if Connection Tracking is less than 5-tuple (i.e. Session Affinity is CLIENT_IP_NO_DESTINATION, CLIENT_IP or CLIENT_IP_PROTO, and Tracking Mode is PER_SESSION). For external passthrough Network Load Balancers the default is 60 seconds. This option is not available publicly. optional int32 idle_timeout_sec = 24977544; // Specifies the key used for connection tracking. There are two options: - PER_CONNECTION: This is the default mode. The Connection Tracking is performed as per the Connection Key (default Hash Method) for the specific protocol. - PER_SESSION: The Connection Tracking is performed as per the configured Session Affinity. It matches the configured Session Affinity. For more details, see [Tracking Mode for Network Load Balancing](https://cloud.google.com/load-balancing/docs/network/networklb-backend-service#tracking-mode) and [Tracking Mode for Internal TCP/UDP Load Balancing](https://cloud.google.com/load-balancing/docs/internal#tracking-mode). @@ -3611,12 +3718,12 @@ message BackendServiceConnectionTrackingPolicy { } -// For load balancers that have configurable failover: [Internal TCP/UDP Load Balancing](https://cloud.google.com/load-balancing/docs/internal/failover-overview) and [external TCP/UDP Load Balancing](https://cloud.google.com/load-balancing/docs/network/networklb-failover-overview). On failover or failback, this field indicates whether connection draining will be honored. Google Cloud has a fixed connection draining timeout of 10 minutes. A setting of true terminates existing TCP connections to the active pool during failover and failback, immediately draining traffic. A setting of false allows existing TCP connections to persist, even on VMs no longer in the active pool, for up to the duration of the connection draining timeout (10 minutes). +// For load balancers that have configurable failover: [Internal passthrough Network Load Balancers](https://cloud.google.com/load-balancing/docs/internal/failover-overview) and [external passthrough Network Load Balancers](https://cloud.google.com/load-balancing/docs/network/networklb-failover-overview). On failover or failback, this field indicates whether connection draining will be honored. Google Cloud has a fixed connection draining timeout of 10 minutes. A setting of true terminates existing TCP connections to the active pool during failover and failback, immediately draining traffic. A setting of false allows existing TCP connections to persist, even on VMs no longer in the active pool, for up to the duration of the connection draining timeout (10 minutes). message BackendServiceFailoverPolicy { // This can be set to true only if the protocol is TCP. The default is false. optional bool disable_connection_drain_on_failover = 182150753; - // If set to true, connections to the load balancer are dropped when all primary and all backup backend VMs are unhealthy.If set to false, connections are distributed among all primary VMs when all primary and all backup backend VMs are unhealthy. For load balancers that have configurable failover: [Internal TCP/UDP Load Balancing](https://cloud.google.com/load-balancing/docs/internal/failover-overview) and [external TCP/UDP Load Balancing](https://cloud.google.com/load-balancing/docs/network/networklb-failover-overview). The default is false. + // If set to true, connections to the load balancer are dropped when all primary and all backup backend VMs are unhealthy.If set to false, connections are distributed among all primary VMs when all primary and all backup backend VMs are unhealthy. For load balancers that have configurable failover: [Internal passthrough Network Load Balancers](https://cloud.google.com/load-balancing/docs/internal/failover-overview) and [external passthrough Network Load Balancers](https://cloud.google.com/load-balancing/docs/network/networklb-failover-overview). The default is false. optional bool drop_traffic_if_unhealthy = 112289428; // The value of the field must be in the range [0, 1]. If the value is 0, the load balancer performs a failover when the number of healthy primary VMs equals zero. For all other values, the load balancer performs a failover when the total number of healthy primary VMs is less than this ratio. For load balancers that have configurable failover: [Internal TCP/UDP Load Balancing](https://cloud.google.com/load-balancing/docs/internal/failover-overview) and [external TCP/UDP Load Balancing](https://cloud.google.com/load-balancing/docs/network/networklb-failover-overview). @@ -4024,10 +4131,10 @@ message Binding { // The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). optional Expr condition = 212430107; - // Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. + // Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workforce identity pool. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`: All workforce identities in a group. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All workforce identities with a specific attribute value. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`: All identities in a workforce identity pool. * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workload identity pool. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool group. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All identities in a workload identity pool with a certain attribute. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`: All identities in a workload identity pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: Deleted single identity in a workforce identity pool. For example, `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`. repeated string members = 412010777; - // Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + // Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles). optional string role = 3506294; } @@ -4391,6 +4498,8 @@ message Commitment { MEMORY_OPTIMIZED_M3 = 276301372; + STORAGE_OPTIMIZED_Z3 = 316796085; + TYPE_UNSPECIFIED = 437714322; } @@ -4411,6 +4520,9 @@ message Commitment { // [Output Only] Commitment end time in RFC3339 text format. optional string end_timestamp = 468096690; + // Specifies the already existing reservations to attach to the Commitment. This field is optional, and it can be a full or partial URL. For example, the following are valid URLs to an reservation: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /reservations/reservation - projects/project/zones/zone/reservations/reservation + repeated string existing_reservations = 493028443; + // [Output Only] The unique identifier for the resource. This identifier is defined by the server. optional uint64 id = 3355; @@ -4433,7 +4545,7 @@ message Commitment { // [Output Only] URL of the region where this commitment may be used. optional string region = 138946292; - // List of create-on-create reseravtions for this commitment. + // List of create-on-create reservations for this commitment. repeated Reservation reservations = 399717927; // A list of commitment amounts for particular resources. Note that VCPU and MEMORY resource commitments must occur together. @@ -6701,6 +6813,9 @@ message Disk { // Encrypts the disk using a customer-supplied encryption key or a customer-managed encryption key. Encryption keys do not protect access to metadata of the disk. After you encrypt a disk with a customer-supplied key, you must provide the same key if you use the disk later. For example, to create a disk snapshot, to create a disk image, to create a machine image, or to attach the disk to a virtual machine. After you encrypt a disk with a customer-managed key, the diskEncryptionKey.kmsKeyName is set to a key *version* name once the disk is created. The disk is encrypted with this version of the key. In the response, diskEncryptionKey.kmsKeyName appears in the following format: "diskEncryptionKey.kmsKeyName": "projects/kms_project_id/locations/region/keyRings/ key_region/cryptoKeys/key /cryptoKeysVersions/version If you do not provide an encryption key when creating the disk, then the disk is encrypted using an automatically generated key and you don't need to provide a key to use the disk later. optional CustomerEncryptionKey disk_encryption_key = 271660677; + // Whether this disk is using confidential compute mode. + optional bool enable_confidential_compute = 102135228; + // A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options. repeated GuestOsFeature guest_os_features = 79294545; @@ -6761,6 +6876,9 @@ message Disk { // [Output Only] Status information for the disk resource. optional DiskResourceStatus resource_status = 249429315; + // Output only. Reserved for future use. + optional bool satisfies_pzi = 480964257; + // [Output Only] Reserved for future use. optional bool satisfies_pzs = 480964267; @@ -7728,6 +7846,9 @@ message FirewallPolicyRule { // [Output Only] Calculation of the complexity of a single firewall policy rule. optional int32 rule_tuple_count = 388342037; + // A fully-qualified URL of a SecurityProfile resource instance. Example: https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group Must be specified if action = 'apply_security_profile_group' and cannot be specified for other actions. + optional string security_profile_group = 207411626; + // A list of network resource URLs to which this rule applies. This field allows you to control which network's VMs get this rule. If this field is left blank, all VMs within the organization will receive the rule. repeated string target_resources = 528230647; @@ -7737,6 +7858,9 @@ message FirewallPolicyRule { // A list of service accounts indicating the sets of instances that are applied with this rule. repeated string target_service_accounts = 457639710; + // Boolean flag indicating if the traffic should be TLS decrypted. Can be set only if action = 'apply_security_profile_group' and cannot be set for other actions. + optional bool tls_inspect = 43425488; + } // Represents a match condition that incoming traffic is evaluated against. Exactly one field must be specified. @@ -7824,7 +7948,7 @@ message FixedOrPercent { } -// Represents a Forwarding Rule resource. Forwarding rule resources in Google Cloud can be either regional or global in scope: * [Global](https://cloud.google.com/compute/docs/reference/rest/v1/globalForwardingRules) * [Regional](https://cloud.google.com/compute/docs/reference/rest/v1/forwardingRules) A forwarding rule and its corresponding IP address represent the frontend configuration of a Google Cloud Platform load balancer. Forwarding rules can also reference target instances and Cloud VPN Classic gateways (targetVpnGateway). For more information, read Forwarding rule concepts and Using protocol forwarding. +// Represents a Forwarding Rule resource. Forwarding rule resources in Google Cloud can be either regional or global in scope: * [Global](https://cloud.google.com/compute/docs/reference/rest/v1/globalForwardingRules) * [Regional](https://cloud.google.com/compute/docs/reference/rest/v1/forwardingRules) A forwarding rule and its corresponding IP address represent the frontend configuration of a Google Cloud load balancer. Forwarding rules can also reference target instances and Cloud VPN Classic gateways (targetVpnGateway). For more information, read Forwarding rule concepts and Using protocol forwarding. message ForwardingRule { // The IP protocol to which this rule applies. For protocol forwarding, valid options are TCP, UDP, ESP, AH, SCTP, ICMP and L3_DEFAULT. The valid IP protocols are different for different load balancing products as described in [Load balancing features](https://cloud.google.com/load-balancing/docs/features#protocols_from_the_load_balancer_to_the_backends). enum IPProtocolEnum { @@ -7932,16 +8056,16 @@ message ForwardingRule { // The ports, portRange, and allPorts fields are mutually exclusive. Only packets addressed to ports in the specified range will be forwarded to the backends configured with this forwarding rule. The allPorts field has the following limitations: - It requires that the forwarding rule IPProtocol be TCP, UDP, SCTP, or L3_DEFAULT. - It's applicable only to the following products: internal passthrough Network Load Balancers, backend service-based external passthrough Network Load Balancers, and internal and external protocol forwarding. - Set this field to true to allow packets addressed to any port or packets lacking destination port information (for example, UDP fragments after the first fragment) to be forwarded to the backends configured with this forwarding rule. The L3_DEFAULT protocol requires allPorts be set to true. optional bool all_ports = 445175796; - // This field is used along with the backend_service field for internal load balancing or with the target field for internal TargetInstance. If set to true, clients can access the Internal TCP/UDP Load Balancer, Internal HTTP(S) and TCP Proxy Load Balancer from all regions. If false, only allows access from the local region the load balancer is located at. Note that for INTERNAL_MANAGED forwarding rules, this field cannot be changed after the forwarding rule is created. + // If set to true, clients can access the internal passthrough Network Load Balancers, the regional internal Application Load Balancer, and the regional internal proxy Network Load Balancer from all regions. If false, only allows access from the local region the load balancer is located at. Note that for INTERNAL_MANAGED forwarding rules, this field cannot be changed after the forwarding rule is created. optional bool allow_global_access = 499409674; // This is used in PSC consumer ForwardingRule to control whether the PSC endpoint can be accessed from another region. optional bool allow_psc_global_access = 263471819; - // Identifies the backend service to which the forwarding rule sends traffic. Required for Internal TCP/UDP Load Balancing and Network Load Balancing; must be omitted for all other load balancer types. + // Identifies the backend service to which the forwarding rule sends traffic. Required for internal and external passthrough Network Load Balancers; must be omitted for all other load balancer types. optional string backend_service = 306946058; - // [Output Only] The URL for the corresponding base Forwarding Rule. By base Forwarding Rule, we mean the Forwarding Rule that has the same IP address, protocol, and port settings with the current Forwarding Rule, but without sourceIPRanges specified. Always empty if the current Forwarding Rule does not have sourceIPRanges specified. + // [Output Only] The URL for the corresponding base forwarding rule. By base forwarding rule, we mean the forwarding rule that has the same IP address, protocol, and port settings with the current forwarding rule, but without sourceIPRanges specified. Always empty if the current forwarding rule does not have sourceIPRanges specified. optional string base_forwarding_rule = 524873104; // [Output Only] Creation timestamp in RFC3339 text format. @@ -7963,7 +8087,7 @@ message ForwardingRule { // Indicates whether or not this load balancer can be used as a collector for packet mirroring. To prevent mirroring loops, instances behind this load balancer will not have their traffic mirrored even if a PacketMirroring rule applies to them. This can only be set to true for load balancers that have their loadBalancingScheme set to INTERNAL. optional bool is_mirroring_collector = 119255164; - // [Output Only] Type of the resource. Always compute#forwardingRule for Forwarding Rule resources. + // [Output Only] Type of the resource. Always compute#forwardingRule for forwarding rule resources. optional string kind = 3292052; // A fingerprint for the labels being applied to this resource, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a ForwardingRule. @@ -7982,7 +8106,7 @@ message ForwardingRule { // Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. For Private Service Connect forwarding rules that forward traffic to Google APIs, the forwarding rule name must be a 1-20 characters string with lowercase letters and numbers and must start with a letter. optional string name = 3373707; - // This field is not used for global external load balancing. For Internal TCP/UDP Load Balancing, this field identifies the network that the load balanced IP should belong to for this Forwarding Rule. If the subnetwork is specified, the network of the subnetwork will be used. If neither subnetwork nor this field is specified, the default network will be used. For Private Service Connect forwarding rules that forward traffic to Google APIs, a network must be provided. + // This field is not used for global external load balancing. For internal passthrough Network Load Balancers, this field identifies the network that the load balanced IP should belong to for this forwarding rule. If the subnetwork is specified, the network of the subnetwork will be used. If neither subnetwork nor this field is specified, the default network will be used. For Private Service Connect forwarding rules that forward traffic to Google APIs, a network must be provided. optional string network = 232872494; // This signifies the networking tier used for configuring this load balancer and can only take the following values: PREMIUM, STANDARD. For regional ForwardingRule, the valid values are PREMIUM and STANDARD. For GlobalForwardingRule, the valid value is PREMIUM. If this field is not specified, it is assumed to be PREMIUM. If IPAddress is specified, this value must be equal to the networkTier of the Address. @@ -7998,7 +8122,7 @@ message ForwardingRule { // The ports, portRange, and allPorts fields are mutually exclusive. Only packets addressed to ports in the specified range will be forwarded to the backends configured with this forwarding rule. The ports field has the following limitations: - It requires that the forwarding rule IPProtocol be TCP, UDP, or SCTP, and - It's applicable only to the following products: internal passthrough Network Load Balancers, backend service-based external passthrough Network Load Balancers, and internal protocol forwarding. - You can specify a list of up to five ports by number, separated by commas. The ports can be contiguous or discontiguous. For external forwarding rules, two or more forwarding rules cannot use the same [IPAddress, IPProtocol] pair if they share at least one port number. For internal forwarding rules within the same VPC network, two or more forwarding rules cannot use the same [IPAddress, IPProtocol] pair if they share at least one port number. @pattern: \\d+(?:-\\d+)? repeated string ports = 106854418; - // [Output Only] The PSC connection id of the PSC Forwarding Rule. + // [Output Only] The PSC connection id of the PSC forwarding rule. optional uint64 psc_connection_id = 292082397; // @@ -8014,16 +8138,16 @@ message ForwardingRule { // Service Directory resources to register this forwarding rule with. Currently, only supports a single Service Directory resource. repeated ForwardingRuleServiceDirectoryRegistration service_directory_registrations = 223549694; - // An optional prefix to the service name for this Forwarding Rule. If specified, the prefix is the first label of the fully qualified service name. The label must be 1-63 characters long, and comply with RFC1035. Specifically, the label must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. This field is only used for internal load balancing. + // An optional prefix to the service name for this forwarding rule. If specified, the prefix is the first label of the fully qualified service name. The label must be 1-63 characters long, and comply with RFC1035. Specifically, the label must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. This field is only used for internal load balancing. optional string service_label = 417008874; - // [Output Only] The internal fully qualified service name for this Forwarding Rule. This field is only used for internal load balancing. + // [Output Only] The internal fully qualified service name for this forwarding rule. This field is only used for internal load balancing. optional string service_name = 359880149; - // If not empty, this Forwarding Rule will only forward the traffic when the source IP address matches one of the IP addresses or CIDR ranges set here. Note that a Forwarding Rule can only have up to 64 source IP ranges, and this field can only be used with a regional Forwarding Rule whose scheme is EXTERNAL. Each source_ip_range entry should be either an IP address (for example, 1.2.3.4) or a CIDR range (for example, 1.2.3.0/24). + // If not empty, this forwarding rule will only forward the traffic when the source IP address matches one of the IP addresses or CIDR ranges set here. Note that a forwarding rule can only have up to 64 source IP ranges, and this field can only be used with a regional forwarding rule whose scheme is EXTERNAL. Each source_ip_range entry should be either an IP address (for example, 1.2.3.4) or a CIDR range (for example, 1.2.3.0/24). repeated string source_ip_ranges = 111563210; - // This field identifies the subnetwork that the load balanced IP should belong to for this Forwarding Rule, used in internal load balancing and network load balancing with IPv6. If the network specified is in auto subnet mode, this field is optional. However, a subnetwork must be specified if the network is in custom subnet mode or when creating external forwarding rule with IPv6. + // This field identifies the subnetwork that the load balanced IP should belong to for this forwarding rule, used with internal load balancers and external passthrough Network Load Balancers with IPv6. If the network specified is in auto subnet mode, this field is optional. However, a subnetwork must be specified if the network is in custom subnet mode or when creating external forwarding rule with IPv6. optional string subnetwork = 307827694; // The URL of the target resource to receive the matched traffic. For regional forwarding rules, this target must be in the same region as the forwarding rule. For global forwarding rules, this target must be a global load balancing resource. The forwarded traffic must be of a type appropriate to the target object. - For load balancers, see the "Target" column in [Port specifications](https://cloud.google.com/load-balancing/docs/forwarding-rule-concepts#ip_address_specifications). - For Private Service Connect forwarding rules that forward traffic to Google APIs, provide the name of a supported Google API bundle: - vpc-sc - APIs that support VPC Service Controls. - all-apis - All supported Google APIs. - For Private Service Connect forwarding rules that forward traffic to managed services, the target must be a service attachment. The target is not mutable once set as a service attachment. @@ -8084,7 +8208,7 @@ message ForwardingRuleReference { } -// Describes the auto-registration of the Forwarding Rule to Service Directory. The region and project of the Service Directory resource generated from this registration will be the same as this Forwarding Rule. +// Describes the auto-registration of the forwarding rule to Service Directory. The region and project of the Service Directory resource generated from this registration will be the same as this forwarding rule. message ForwardingRuleServiceDirectoryRegistration { // Service Directory namespace to register the forwarding rule under. optional string namespace = 178476379; @@ -8092,7 +8216,7 @@ message ForwardingRuleServiceDirectoryRegistration { // Service Directory service to register the forwarding rule under. optional string service = 373540533; - // [Optional] Service Directory region to register this global forwarding rule under. Default to "us-central1". Only used for PSC for Google APIs. All PSC for Google APIs Forwarding Rules on the same network should use the same Service Directory region. + // [Optional] Service Directory region to register this global forwarding rule under. Default to "us-central1". Only used for PSC for Google APIs. All PSC for Google APIs forwarding rules on the same network should use the same Service Directory region. optional string service_directory_region = 74030416; } @@ -8109,7 +8233,7 @@ message ForwardingRulesScopedList { // message GRPCHealthCheck { - // Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health check. Supported by backend services for pass-through load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for pass-through load balancers. Supports all backends that can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend service's named port in the instance group's list of named ports. + // Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health check. Supported by backend services for passthrough load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for passthrough load balancers. Supports all backends that can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend service's named port in the instance group's list of named ports. enum PortSpecification { // A value indicating that the enum field is not set. UNDEFINED_PORT_SPECIFICATION = 0; @@ -8134,7 +8258,7 @@ message GRPCHealthCheck { // Not supported. optional string port_name = 41534345; - // Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health check. Supported by backend services for pass-through load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for pass-through load balancers. Supports all backends that can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend service's named port in the instance group's list of named ports. + // Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health check. Supported by backend services for passthrough load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for passthrough load balancers. Supports all backends that can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend service's named port in the instance group's list of named ports. // Check the PortSpecification enum for the list of possible values. optional string port_specification = 51590597; @@ -9993,7 +10117,7 @@ message GuestAttributesValue { // Guest OS features. message GuestOsFeature { - // The ID of a supported feature. To add multiple values, use commas to separate values. Set to one or more of the following values: - VIRTIO_SCSI_MULTIQUEUE - WINDOWS - MULTI_IP_SUBNET - UEFI_COMPATIBLE - GVNIC - SEV_CAPABLE - SUSPEND_RESUME_COMPATIBLE - SEV_LIVE_MIGRATABLE - SEV_SNP_CAPABLE For more information, see Enabling guest operating system features. + // The ID of a supported feature. To add multiple values, use commas to separate values. Set to one or more of the following values: - VIRTIO_SCSI_MULTIQUEUE - WINDOWS - MULTI_IP_SUBNET - UEFI_COMPATIBLE - GVNIC - SEV_CAPABLE - SUSPEND_RESUME_COMPATIBLE - SEV_LIVE_MIGRATABLE - SEV_SNP_CAPABLE - TDX_CAPABLE - IDPF For more information, see Enabling guest operating system features. enum Type { // A value indicating that the enum field is not set. UNDEFINED_TYPE = 0; @@ -10002,6 +10126,8 @@ message GuestOsFeature { GVNIC = 68209305; + IDPF = 2242641; + MULTI_IP_SUBNET = 151776719; SECURE_BOOT = 376811194; @@ -10022,7 +10148,7 @@ message GuestOsFeature { } - // The ID of a supported feature. To add multiple values, use commas to separate values. Set to one or more of the following values: - VIRTIO_SCSI_MULTIQUEUE - WINDOWS - MULTI_IP_SUBNET - UEFI_COMPATIBLE - GVNIC - SEV_CAPABLE - SUSPEND_RESUME_COMPATIBLE - SEV_LIVE_MIGRATABLE - SEV_SNP_CAPABLE For more information, see Enabling guest operating system features. + // The ID of a supported feature. To add multiple values, use commas to separate values. Set to one or more of the following values: - VIRTIO_SCSI_MULTIQUEUE - WINDOWS - MULTI_IP_SUBNET - UEFI_COMPATIBLE - GVNIC - SEV_CAPABLE - SUSPEND_RESUME_COMPATIBLE - SEV_LIVE_MIGRATABLE - SEV_SNP_CAPABLE - TDX_CAPABLE - IDPF For more information, see Enabling guest operating system features. // Check the Type enum for the list of possible values. optional string type = 3575610; @@ -10030,7 +10156,7 @@ message GuestOsFeature { // message HTTP2HealthCheck { - // Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health check. Supported by backend services for pass-through load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for pass-through load balancers. Supports all backends that can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend service's named port in the instance group's list of named ports. + // Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health check. Supported by backend services for passthrough load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for passthrough load balancers. Supports all backends that can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend service's named port in the instance group's list of named ports. enum PortSpecification { // A value indicating that the enum field is not set. UNDEFINED_PORT_SPECIFICATION = 0; @@ -10066,7 +10192,7 @@ message HTTP2HealthCheck { // Not supported. optional string port_name = 41534345; - // Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health check. Supported by backend services for pass-through load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for pass-through load balancers. Supports all backends that can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend service's named port in the instance group's list of named ports. + // Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health check. Supported by backend services for passthrough load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for passthrough load balancers. Supports all backends that can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend service's named port in the instance group's list of named ports. // Check the PortSpecification enum for the list of possible values. optional string port_specification = 51590597; @@ -10084,7 +10210,7 @@ message HTTP2HealthCheck { // message HTTPHealthCheck { - // Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health check. Supported by backend services for pass-through load balancers and backend services for proxy load balancers. Also supported in legacy HTTP health checks for target pools. The health check supports all backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for pass-through load balancers. Supports all backends that can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend service's named port in the instance group's list of named ports. + // Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health check. Supported by backend services for passthrough load balancers and backend services for proxy load balancers. Also supported in legacy HTTP health checks for target pools. The health check supports all backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for pass-through load balancers. Supports all backends that can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend service's named port in the instance group's list of named ports. enum PortSpecification { // A value indicating that the enum field is not set. UNDEFINED_PORT_SPECIFICATION = 0; @@ -10120,7 +10246,7 @@ message HTTPHealthCheck { // Not supported. optional string port_name = 41534345; - // Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health check. Supported by backend services for pass-through load balancers and backend services for proxy load balancers. Also supported in legacy HTTP health checks for target pools. The health check supports all backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for pass-through load balancers. Supports all backends that can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend service's named port in the instance group's list of named ports. + // Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health check. Supported by backend services for passthrough load balancers and backend services for proxy load balancers. Also supported in legacy HTTP health checks for target pools. The health check supports all backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for pass-through load balancers. Supports all backends that can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend service's named port in the instance group's list of named ports. // Check the PortSpecification enum for the list of possible values. optional string port_specification = 51590597; @@ -10138,7 +10264,7 @@ message HTTPHealthCheck { // message HTTPSHealthCheck { - // Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health check. Supported by backend services for pass-through load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for pass-through load balancers. Supports all backends that can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend service's named port in the instance group's list of named ports. + // Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health check. Supported by backend services for passthrough load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for passthrough load balancers. Supports all backends that can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend service's named port in the instance group's list of named ports. enum PortSpecification { // A value indicating that the enum field is not set. UNDEFINED_PORT_SPECIFICATION = 0; @@ -10174,7 +10300,7 @@ message HTTPSHealthCheck { // Not supported. optional string port_name = 41534345; - // Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health check. Supported by backend services for pass-through load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for pass-through load balancers. Supports all backends that can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend service's named port in the instance group's list of named ports. + // Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health check. Supported by backend services for passthrough load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for passthrough load balancers. Supports all backends that can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend service's named port in the instance group's list of named ports. // Check the PortSpecification enum for the list of possible values. optional string port_specification = 51590597; @@ -10190,7 +10316,7 @@ message HTTPSHealthCheck { } -// Represents a health check resource. Google Compute Engine has two health check resources: * [Regional](/compute/docs/reference/rest/v1/regionHealthChecks) * [Global](/compute/docs/reference/rest/v1/healthChecks) These health check resources can be used for load balancing and for autohealing VMs in a managed instance group (MIG). **Load balancing** The following load balancer can use either regional or global health check: * Internal TCP/UDP load balancer The following load balancers require regional health check: * Internal HTTP(S) load balancer * Backend service-based network load balancer Traffic Director and the following load balancers require global health check: * External HTTP(S) load balancer * TCP proxy load balancer * SSL proxy load balancer The following load balancer require [legacy HTTP health checks](/compute/docs/reference/rest/v1/httpHealthChecks): * Target pool-based network load balancer **Autohealing in MIGs** The health checks that you use for autohealing VMs in a MIG can be either regional or global. For more information, see Set up an application health check and autohealing. For more information, see Health checks overview. +// Represents a health check resource. Google Compute Engine has two health check resources: * [Regional](/compute/docs/reference/rest/v1/regionHealthChecks) * [Global](/compute/docs/reference/rest/v1/healthChecks) These health check resources can be used for load balancing and for autohealing VMs in a managed instance group (MIG). **Load balancing** Health check requirements vary depending on the type of load balancer. For details about the type of health check supported for each load balancer and corresponding backend type, see Health checks overview: Load balancer guide. **Autohealing in MIGs** The health checks that you use for autohealing VMs in a MIG can be either regional or global. For more information, see Set up an application health check and autohealing. For more information, see Health checks overview. message HealthCheck { // Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS, HTTP2 or GRPC. Exactly one of the protocol-specific health check fields must be specified, which must match type field. enum Type { @@ -10857,6 +10983,9 @@ message Image { // Size of the image when restored onto a persistent disk (in GB). optional int64 disk_size_gb = 316263735; + // Whether this image is created from a confidential compute mode disk. [Output Only]: This field is not set by user, but from source disk. + optional bool enable_confidential_compute = 102135228; + // The name of the image family to which this image belongs. The image family name can be from a publicly managed image family provided by Compute Engine, or from a custom image family you create. For example, centos-stream-9 is a publicly available image family. For more information, see Image family best practices. When creating disks, you can specify an image family instead of a specific image name. The image family always returns its latest image that is not deprecated. The name of the image family must comply with RFC1035. optional string family = 328751972; @@ -10890,6 +11019,9 @@ message Image { // The parameters of the raw disk image. optional RawDisk raw_disk = 503113556; + // Output only. Reserved for future use. + optional bool satisfies_pzi = 480964257; + // [Output Only] Reserved for future use. optional bool satisfies_pzs = 480964267; @@ -12594,6 +12726,9 @@ message Instance { // [Output Only] Specifies values set for instance attributes as compared to the values requested by user in the corresponding input only field. optional ResourceStatus resource_status = 249429315; + // [Output Only] Reserved for future use. + optional bool satisfies_pzi = 480964257; + // [Output Only] Reserved for future use. optional bool satisfies_pzs = 480964267; @@ -12790,6 +12925,9 @@ message InstanceGroupManager { } + // Specifies configuration that overrides the instance template configuration for the group. + optional InstanceGroupManagerAllInstancesConfig all_instances_config = 112596737; + // The autohealing policy for this managed instance group. You can specify only one value. repeated InstanceGroupManagerAutoHealingPolicy auto_healing_policies = 456799109; @@ -12933,6 +13071,13 @@ message InstanceGroupManagerAggregatedList { } +// +message InstanceGroupManagerAllInstancesConfig { + // Properties to set on all instances in the group. You can add or modify properties using the instanceGroupManagers.patch or regionInstanceGroupManagers.patch. After setting allInstancesConfig on the group, you must update the group's instances to apply the configuration. To apply the configuration, set the group's updatePolicy.type field to use proactive updates or use the applyUpdatesToInstances method. + optional InstancePropertiesPatch properties = 147688755; + +} + // message InstanceGroupManagerAutoHealingPolicy { // The URL for the health check that signals autohealing. @@ -12986,6 +13131,9 @@ message InstanceGroupManagerList { // message InstanceGroupManagerStatus { + // [Output only] Status of all-instances configuration on the group. + optional InstanceGroupManagerStatusAllInstancesConfig all_instances_config = 112596737; + // [Output Only] The URL of the Autoscaler that targets this instance group manager. optional string autoscaler = 517258967; @@ -13000,6 +13148,16 @@ message InstanceGroupManagerStatus { } +// +message InstanceGroupManagerStatusAllInstancesConfig { + // [Output Only] Current all-instances configuration revision. This value is in RFC3339 text format. + optional string current_revision = 38355937; + + // [Output Only] A bit indicating whether this configuration has been applied to all managed instances in the group. + optional bool effective = 141961639; + +} + // message InstanceGroupManagerStatusStateful { // [Output Only] A bit indicating whether the managed instance group has stateful configuration, that is, if you have configured any items in a stateful policy or in per-instance configs. The group might report that it has no stateful configuration even when there is still some preserved state on a managed instance, for example, if you have deleted all PICs but not yet applied those deletions. @@ -13602,6 +13760,16 @@ message InstanceProperties { } +// Represents the change that you want to make to the instance properties. +message InstancePropertiesPatch { + // The label key-value pairs that you want to patch onto the instance. + map labels = 500195327; + + // The metadata key-value pairs that you want to patch onto the instance. For more information, see Project and instance metadata. + map metadata = 86866735; + +} + // message InstanceReference { // The URL for a specific instance. @required compute.instancegroups.addInstances/removeInstances @@ -17289,6 +17457,31 @@ message ListRegionUrlMapsRequest { } +// A request message for RegionZones.List. See the method description for details. +message ListRegionZonesRequest { + // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + optional string filter = 336120696; + + // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + optional uint32 max_results = 54715419; + + // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + optional string order_by = 160562920; + + // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + optional string page_token = 19994697; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Region for this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + optional bool return_partial_success = 517198390; + +} + // A request message for Regions.List. See the method description for details. message ListRegionsRequest { // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. @@ -18155,6 +18348,9 @@ message MachineImage { // Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. optional string name = 3373707; + // Output only. Reserved for future use. + optional bool satisfies_pzi = 480964257; + // [Output Only] Reserved for future use. optional bool satisfies_pzs = 480964267; @@ -19003,13 +19199,13 @@ message NetworkEndpoint { // Optional fully qualified domain name of network endpoint. This can only be specified when NetworkEndpointGroup.network_endpoint_type is NON_GCP_FQDN_PORT. optional string fqdn = 3150485; - // The name for a specific VM instance that the IP address belongs to. This is required for network endpoints of type GCE_VM_IP_PORT. The instance must be in the same zone of network endpoint group. The name must be 1-63 characters long, and comply with RFC1035. + // The name or a URL of VM instance of this network endpoint. This field is required for network endpoints of type GCE_VM_IP and GCE_VM_IP_PORT. The instance must be in the same zone of network endpoint group (for zonal NEGs) or in the zone within the region of the NEG (for regional NEGs). If the ipAddress is specified, it must belongs to the VM instance. The name must be 1-63 characters long, and comply with RFC1035 or be a valid URL pointing to an existing instance. optional string instance = 18257045; - // Optional IPv4 address of network endpoint. The IP address must belong to a VM in Compute Engine (either the primary IP or as part of an aliased IP range). If the IP address is not specified, then the primary IP address for the VM instance in the network that the network endpoint group belongs to will be used. + // Optional IPv4 address of network endpoint. The IP address must belong to a VM in Compute Engine (either the primary IP or as part of an aliased IP range). If the IP address is not specified, then the primary IP address for the VM instance in the network that the network endpoint group belongs to will be used. This field is redundant and need not be set for network endpoints of type GCE_VM_IP. If set, it must be set to the primary internal IP address of the attached VM instance that matches the subnetwork of the NEG. The primary internal IP address from any NIC of a multi-NIC VM instance can be added to a NEG as long as it matches the NEG subnetwork. optional string ip_address = 406272220; - // Optional port number of network endpoint. If not specified, the defaultPort for the network endpoint group will be used. + // Optional port number of network endpoint. If not specified, the defaultPort for the network endpoint group will be used. This field can not be set for network endpoints of type GCE_VM_IP. optional int32 port = 3446913; } @@ -19047,19 +19243,19 @@ message NetworkEndpointGroup { // Metadata defined as annotations on the network endpoint group. map annotations = 112032548; - // Only valid when networkEndpointType is "SERVERLESS". Only one of cloudRun, appEngine or cloudFunction may be set. + // Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set. optional NetworkEndpointGroupAppEngine app_engine = 340788768; - // Only valid when networkEndpointType is "SERVERLESS". Only one of cloudRun, appEngine or cloudFunction may be set. + // Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set. optional NetworkEndpointGroupCloudFunction cloud_function = 519893666; - // Only valid when networkEndpointType is "SERVERLESS". Only one of cloudRun, appEngine or cloudFunction may be set. + // Only valid when networkEndpointType is SERVERLESS. Only one of cloudRun, appEngine or cloudFunction may be set. optional NetworkEndpointGroupCloudRun cloud_run = 111060353; // [Output Only] Creation timestamp in RFC3339 text format. optional string creation_timestamp = 30525366; - // The default port used if the port number is not specified in the network endpoint. + // The default port used if the port number is not specified in the network endpoint. If the network endpoint type is either GCE_VM_IP, SERVERLESS or PRIVATE_SERVICE_CONNECT, this field must not be specified. optional int32 default_port = 423377855; // An optional description of this resource. Provide this property when you create the resource. @@ -19074,7 +19270,7 @@ message NetworkEndpointGroup { // Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. optional string name = 3373707; - // The URL of the network to which all network endpoints in the NEG belong. Uses "default" project network if unspecified. + // The URL of the network to which all network endpoints in the NEG belong. Uses default project network if unspecified. optional string network = 232872494; // Type of network endpoints in this network endpoint group. Can be one of GCE_VM_IP, GCE_VM_IP_PORT, NON_GCP_PRIVATE_IP_PORT, INTERNET_FQDN_PORT, INTERNET_IP_PORT, SERVERLESS, PRIVATE_SERVICE_CONNECT. @@ -19083,7 +19279,7 @@ message NetworkEndpointGroup { optional NetworkEndpointGroupPscData psc_data = 71937481; - // The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment. An example value is: "asia-northeast3-cloudkms.googleapis.com" + // The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment. An example value is: asia-northeast3-cloudkms.googleapis.com optional string psc_target_service = 269132134; // [Output Only] The URL of the region where the network endpoint group is located. @@ -19130,23 +19326,23 @@ message NetworkEndpointGroupAggregatedList { // Configuration for an App Engine network endpoint group (NEG). The service is optional, may be provided explicitly or in the URL mask. The version is optional and can only be provided explicitly or in the URL mask when service is present. Note: App Engine service must be in the same project and located in the same region as the Serverless NEG. message NetworkEndpointGroupAppEngine { - // Optional serving service. The service name is case-sensitive and must be 1-63 characters long. Example value: "default", "my-service". + // Optional serving service. The service name is case-sensitive and must be 1-63 characters long. Example value: default, my-service. optional string service = 373540533; - // A template to parse service and version fields from a request URL. URL mask allows for routing to multiple App Engine services without having to create multiple Network Endpoint Groups and backend services. For example, the request URLs "foo1-dot-appname.appspot.com/v1" and "foo1-dot-appname.appspot.com/v2" can be backed by the same Serverless NEG with URL mask "-dot-appname.appspot.com/". The URL mask will parse them to { service = "foo1", version = "v1" } and { service = "foo1", version = "v2" } respectively. + // An URL mask is one of the main components of the Cloud Function. A template to parse service and version fields from a request URL. URL mask allows for routing to multiple App Engine services without having to create multiple Network Endpoint Groups and backend services. For example, the request URLs foo1-dot-appname.appspot.com/v1 and foo1-dot-appname.appspot.com/v2 can be backed by the same Serverless NEG with URL mask -dot-appname.appspot.com/. The URL mask will parse them to { service = "foo1", version = "v1" } and { service = "foo1", version = "v2" } respectively. optional string url_mask = 103352252; - // Optional serving version. The version name is case-sensitive and must be 1-100 characters long. Example value: "v1", "v2". + // Optional serving version. The version name is case-sensitive and must be 1-100 characters long. Example value: v1, v2. optional string version = 351608024; } // Configuration for a Cloud Function network endpoint group (NEG). The function must be provided explicitly or in the URL mask. Note: Cloud Function must be in the same project and located in the same region as the Serverless NEG. message NetworkEndpointGroupCloudFunction { - // A user-defined name of the Cloud Function. The function name is case-sensitive and must be 1-63 characters long. Example value: "func1". + // A user-defined name of the Cloud Function. The function name is case-sensitive and must be 1-63 characters long. Example value: func1. optional string function = 307196888; - // A template to parse function field from a request URL. URL mask allows for routing to multiple Cloud Functions without having to create multiple Network Endpoint Groups and backend services. For example, request URLs " mydomain.com/function1" and "mydomain.com/function2" can be backed by the same Serverless NEG with URL mask "/". The URL mask will parse them to { function = "function1" } and { function = "function2" } respectively. + // An URL mask is one of the main components of the Cloud Function. A template to parse function field from a request URL. URL mask allows for routing to multiple Cloud Functions without having to create multiple Network Endpoint Groups and backend services. For example, request URLs mydomain.com/function1 and mydomain.com/function2 can be backed by the same Serverless NEG with URL mask /. The URL mask will parse them to { function = "function1" } and { function = "function2" } respectively. optional string url_mask = 103352252; } @@ -19159,7 +19355,7 @@ message NetworkEndpointGroupCloudRun { // Optional Cloud Run tag represents the "named-revision" to provide additional fine-grained traffic routing information. The tag must be 1-63 characters long, and comply with RFC1035. Example value: "revision-0010". optional string tag = 114586; - // A template to parse and fields from a request URL. URL mask allows for routing to multiple Run services without having to create multiple network endpoint groups and backend services. For example, request URLs "foo1.domain.com/bar1" and "foo1.domain.com/bar2" can be backed by the same Serverless Network Endpoint Group (NEG) with URL mask ".domain.com/". The URL mask will parse them to { service="bar1", tag="foo1" } and { service="bar2", tag="foo2" } respectively. + // An URL mask is one of the main components of the Cloud Function. A template to parse and fields from a request URL. URL mask allows for routing to multiple Run services without having to create multiple network endpoint groups and backend services. For example, request URLs foo1.domain.com/bar1 and foo1.domain.com/bar2 can be backed by the same Serverless Network Endpoint Group (NEG) with URL mask .domain.com/. The URL mask will parse them to { service="bar1", tag="foo1" } and { service="bar2", tag="foo2" } respectively. optional string url_mask = 103352252; } @@ -20225,7 +20421,7 @@ message NotificationEndpointList { } -// Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/v1/globalOperations) * [Regional](/compute/docs/reference/rest/v1/regionOperations) * [Zonal](/compute/docs/reference/rest/v1/zoneOperations) You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the `globalOperations` resource. - For regional operations, use the `regionOperations` resource. - For zonal operations, use the `zoneOperations` resource. For more information, read Global, Regional, and Zonal Resources. +// Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/v1/globalOperations) * [Regional](/compute/docs/reference/rest/v1/regionOperations) * [Zonal](/compute/docs/reference/rest/v1/zoneOperations) You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the `globalOperations` resource. - For regional operations, use the `regionOperations` resource. - For zonal operations, use the `zoneOperations` resource. For more information, read Global, Regional, and Zonal Resources. Note that completed Operation resources have a limited retention period. message Operation { // [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`. enum Status { @@ -20569,10 +20765,10 @@ message PacketMirroringFilter { } - // Protocols that apply as filter on mirrored traffic. If no protocols are specified, all traffic that matches the specified CIDR ranges is mirrored. If neither cidrRanges nor IPProtocols is specified, all traffic is mirrored. + // Protocols that apply as filter on mirrored traffic. If no protocols are specified, all traffic that matches the specified CIDR ranges is mirrored. If neither cidrRanges nor IPProtocols is specified, all IPv4 traffic is mirrored. repeated string I_p_protocols = 98544854; - // IP CIDR ranges that apply as filter on the source (ingress) or destination (egress) IP in the IP header. Only IPv4 is supported. If no ranges are specified, all traffic that matches the specified IPProtocols is mirrored. If neither cidrRanges nor IPProtocols is specified, all traffic is mirrored. + // One or more IPv4 or IPv6 CIDR ranges that apply as filter on the source (ingress) or destination (egress) IP in the IP header. If no ranges are specified, all IPv4 traffic that matches the specified IPProtocols is mirrored. If neither cidrRanges nor IPProtocols is specified, all IPv4 traffic is mirrored. To mirror all IPv4 and IPv6 traffic, use "0.0.0.0/0,::/0". Note: Support for IPv6 traffic is in preview. repeated string cidr_ranges = 487901697; // Direction of traffic to mirror, either INGRESS, EGRESS, or BOTH. The default is BOTH. @@ -21871,6 +22067,28 @@ message PerInstanceConfig { } +// A request message for Instances.PerformMaintenance. See the method description for details. +message PerformMaintenanceInstanceRequest { + // Name of the instance scoping this request. + string instance = 18257045 [(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" + ]; + +} + // An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** ``` { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 } ``` **YAML example:** ``` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). message Policy { // Specifies cloud audit logging configuration for this policy. @@ -22545,6 +22763,8 @@ message Quota { COMMITTED_NVIDIA_A100_GPUS = 375799445; + COMMITTED_NVIDIA_H100_GPUS = 71649180; + COMMITTED_NVIDIA_K80_GPUS = 3857188; COMMITTED_NVIDIA_L4_GPUS = 19163645; @@ -22561,6 +22781,8 @@ message Quota { COMMITTED_T2D_CPUS = 382266439; + COMMITTED_Z3_CPUS = 263844686; + // Guest CPUs CPUS = 2075595; @@ -22696,6 +22918,8 @@ message Quota { PREEMPTIBLE_NVIDIA_A100_GPUS = 68832784; + PREEMPTIBLE_NVIDIA_H100_GPUS = 301553431; + PREEMPTIBLE_NVIDIA_K80_GPUS = 374960201; PREEMPTIBLE_NVIDIA_L4_GPUS = 100408376; @@ -22714,6 +22938,12 @@ message Quota { PREEMPTIBLE_NVIDIA_V100_GPUS = 230123813; + PREEMPTIBLE_TPU_LITE_DEVICE_V5 = 174262523; + + PREEMPTIBLE_TPU_LITE_PODSLICE_V5 = 112281796; + + PREEMPTIBLE_TPU_PODSLICE_V4 = 425541132; + PSC_ILB_CONSUMER_FORWARDING_RULES_PER_PRODUCER_NETWORK = 231164291; PSC_INTERNAL_LB_FORWARDING_RULES = 169005435; @@ -22789,6 +23019,12 @@ message Quota { TARGET_VPN_GATEWAYS = 75029928; + TPU_LITE_DEVICE_V5 = 449577597; + + TPU_LITE_PODSLICE_V5 = 12708294; + + TPU_PODSLICE_V4 = 214467530; + URL_MAPS = 378660743; VPN_GATEWAYS = 35620282; @@ -23780,6 +24016,9 @@ message Reservation { } + // Reservation for aggregated resources, providing shape flexibility. + optional AllocationAggregateReservation aggregate_reservation = 291567948; + // [Output Only] Full or partial URL to a parent commitment. This field displays for reservations that are tied to a commitment. optional string commitment = 482134805; @@ -25428,7 +25667,7 @@ message Rule { // message SSLHealthCheck { - // Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health check. Supported by backend services for pass-through load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for pass-through load balancers. Supports all backends that can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend service's named port in the instance group's list of named ports. + // Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health check. Supported by backend services for passthrough load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for passthrough load balancers. Supports all backends that can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend service's named port in the instance group's list of named ports. enum PortSpecification { // A value indicating that the enum field is not set. UNDEFINED_PORT_SPECIFICATION = 0; @@ -25461,7 +25700,7 @@ message SSLHealthCheck { // Not supported. optional string port_name = 41534345; - // Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health check. Supported by backend services for pass-through load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for pass-through load balancers. Supports all backends that can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend service's named port in the instance group's list of named ports. + // Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health check. Supported by backend services for passthrough load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for passthrough load balancers. Supports all backends that can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend service's named port in the instance group's list of named ports. // Check the PortSpecification enum for the list of possible values. optional string port_specification = 51590597; @@ -26115,6 +26354,9 @@ message SecurityPolicyRuleMatcher { // User defined CEVAL expression. A CEVAL expression is used to specify match criteria such as origin.ip, source.region_code and contents in the request header. Expressions containing `evaluateThreatIntelligence` require Cloud Armor Managed Protection Plus tier and are not supported in Edge Policies nor in Regional Policies. Expressions containing `evaluatePreconfiguredExpr('sourceiplist-*')` require Cloud Armor Managed Protection Plus tier and are only supported in Global Security Policies. optional Expr expr = 3127797; + // The configuration options available when specifying a user defined CEVAL expression (i.e., 'expr'). + optional SecurityPolicyRuleMatcherExprOptions expr_options = 486220372; + // Preconfigured versioned expression. If this field is specified, config must also be specified. Available preconfigured expressions along with their requirements are: SRC_IPS_V1 - must specify the corresponding src_ip_range field in config. // Check the VersionedExpr enum for the list of possible values. optional string versioned_expr = 322286013; @@ -26128,6 +26370,23 @@ message SecurityPolicyRuleMatcherConfig { } +// +message SecurityPolicyRuleMatcherExprOptions { + // reCAPTCHA configuration options to be applied for the rule. If the rule does not evaluate reCAPTCHA tokens, this field has no effect. + optional SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions recaptcha_options = 389151558; + +} + +// +message SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions { + // A list of site keys to be used during the validation of reCAPTCHA action-tokens. The provided site keys need to be created from reCAPTCHA API under the same project where the security policy is created. + repeated string action_token_site_keys = 59929885; + + // A list of site keys to be used during the validation of reCAPTCHA session-tokens. The provided site keys need to be created from reCAPTCHA API under the same project where the security policy is created. + repeated string session_token_site_keys = 333363581; + +} + // Represents a match condition that incoming network traffic is evaluated against. message SecurityPolicyRuleNetworkMatcher { // Destination IPv4/IPv6 addresses or CIDR prefixes, in standard text format. @@ -26230,7 +26489,7 @@ message SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams { // message SecurityPolicyRuleRateLimitOptions { - // Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. + // Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. enum EnforceOnKey { // A value indicating that the enum field is not set. UNDEFINED_ENFORCE_ON_KEY = 0; @@ -26249,6 +26508,10 @@ message SecurityPolicyRuleRateLimitOptions { SNI = 82254; + TLS_JA3_FINGERPRINT = 327127933; + + USER_IP = 34009627; + XFF_IP = 438707118; } @@ -26262,7 +26525,7 @@ message SecurityPolicyRuleRateLimitOptions { // Action to take for requests that are under the configured rate limit threshold. Valid option is "allow" only. optional string conform_action = 517612367; - // Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. + // Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. // Check the EnforceOnKey enum for the list of possible values. optional string enforce_on_key = 416648956; @@ -26285,7 +26548,7 @@ message SecurityPolicyRuleRateLimitOptions { // message SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig { - // Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKeyConfigs" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. + // Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKeyConfigs" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. enum EnforceOnKeyType { // A value indicating that the enum field is not set. UNDEFINED_ENFORCE_ON_KEY_TYPE = 0; @@ -26304,6 +26567,10 @@ message SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig { SNI = 82254; + TLS_JA3_FINGERPRINT = 327127933; + + USER_IP = 34009627; + XFF_IP = 438707118; } @@ -26311,7 +26578,7 @@ message SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig { // Rate limit key name applicable only for the following key types: HTTP_HEADER -- Name of the HTTP header whose value is taken as the key value. HTTP_COOKIE -- Name of the HTTP cookie whose value is taken as the key value. optional string enforce_on_key_name = 132555246; - // Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKeyConfigs" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. + // Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKeyConfigs" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. - TLS_JA3_FINGERPRINT: JA3 TLS/SSL fingerprint if the client connects using HTTPS, HTTP/2 or HTTP/3. If not available, the key type defaults to ALL. - USER_IP: The IP address of the originating client, which is resolved based on "userIpRequestHeaders" configured with the security policy. If there is no "userIpRequestHeaders" configuration or an IP address cannot be resolved from it, the key type defaults to IP. // Check the EnforceOnKeyType enum for the list of possible values. optional string enforce_on_key_type = 132757149; @@ -26888,7 +27155,7 @@ message SetDiskAutoDeleteInstanceRequest { // A request message for BackendBuckets.SetEdgeSecurityPolicy. See the method description for details. message SetEdgeSecurityPolicyBackendBucketRequest { - // Name of the BackendService resource to which the security policy should be set. The name should conform to RFC1035. + // Name of the BackendBucket resource to which the security policy should be set. The name should conform to RFC1035. string backend_bucket = 91714037 [(google.api.field_behavior) = REQUIRED]; // Project ID for this request. @@ -28521,6 +28788,9 @@ message SimulateMaintenanceEventInstanceRequest { // 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; + // Determines whether the customers receive notifications before migration. Only applicable to SF vms. + optional bool with_extended_notifications = 405957627; + // The name of the zone for this request. string zone = 3744684 [ (google.api.field_behavior) = REQUIRED, @@ -28641,6 +28911,9 @@ message Snapshot { // [Output Only] Number of bytes downloaded to restore a snapshot to a disk. optional int64 download_bytes = 435054068; + // Whether this snapshot is created from a confidential compute mode disk. [Output Only]: This field is not set by user, but from source disk. + optional bool enable_confidential_compute = 102135228; + // [Output Only] A list of features to enable on the guest operating system. Applicable only for bootable images. Read Enabling guest operating system features to see a list of available options. repeated GuestOsFeature guest_os_features = 79294545; @@ -28668,6 +28941,9 @@ message Snapshot { // Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. optional string name = 3373707; + // Output only. Reserved for future use. + optional bool satisfies_pzi = 480964257; + // [Output Only] Reserved for future use. optional bool satisfies_pzs = 480964267; @@ -29092,7 +29368,7 @@ message SslPoliciesScopedList { } -// Represents an SSL Policy resource. Use SSL policies to control the SSL features, such as versions and cipher suites, offered by an HTTPS or SSL Proxy load balancer. For more information, read SSL Policy Concepts. +// Represents an SSL Policy resource. Use SSL policies to control SSL features, such as versions and cipher suites, that are offered by Application Load Balancers and proxy Network Load Balancers. For more information, read SSL policies overview. message SslPolicy { // The minimum version of SSL protocol that can be used by the clients to establish a connection with the load balancer. This can be one of TLS_1_0, TLS_1_1, TLS_1_2. enum MinTlsVersion { @@ -29436,7 +29712,7 @@ message StopGroupAsyncReplicationRegionDiskRequest { // A request message for Instances.Stop. See the method description for details. message StopInstanceRequest { - // If true, discard the contents of any attached localSSD partitions. Default value is false. + // This property is required if the instance has any attached Local SSD disks. If false, Local SSD data will be preserved when the instance is suspended. If true, the contents of any attached Local SSD disks will be discarded. optional bool discard_local_ssd = 319517903; // Name of the instance resource to stop. @@ -29492,7 +29768,7 @@ message Subnetwork { } - // The purpose of the resource. This field can be either PRIVATE, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or INTERNAL_HTTPS_LOAD_BALANCER. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. A subnet with purpose set to REGIONAL_MANAGED_PROXY is a user-created subnetwork that is reserved for regional Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to INTERNAL_HTTPS_LOAD_BALANCER is a proxy-only subnet that can be used only by regional internal HTTP(S) load balancers. Note that REGIONAL_MANAGED_PROXY is the preferred setting for all regional Envoy load balancers. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY. + // The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY. enum Purpose { // A value indicating that the enum field is not set. UNDEFINED_PURPOSE = 0; @@ -29500,7 +29776,7 @@ message Subnetwork { // Subnet reserved for Global Envoy-based Load Balancing. GLOBAL_MANAGED_PROXY = 236463602; - // Subnet reserved for Internal HTTP(S) Load Balancing. + // Subnet reserved for Internal HTTP(S) Load Balancing. This is a legacy purpose, please use REGIONAL_MANAGED_PROXY instead. INTERNAL_HTTPS_LOAD_BALANCER = 248748889; // Regular user created or automatically created subnet. @@ -29520,7 +29796,7 @@ message Subnetwork { } - // The role of subnetwork. Currently, this field is only used when purpose = REGIONAL_MANAGED_PROXY. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Envoy-based load balancers in a region. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently draining. This field can be updated with a patch request. + // The role of subnetwork. Currently, this field is only used when purpose is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Envoy-based load balancers in a region. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently draining. This field can be updated with a patch request. enum Role { // A value indicating that the enum field is not set. UNDEFINED_ROLE = 0; @@ -29614,14 +29890,17 @@ message Subnetwork { // Check the PrivateIpv6GoogleAccess enum for the list of possible values. optional string private_ipv6_google_access = 48277006; - // The purpose of the resource. This field can be either PRIVATE, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or INTERNAL_HTTPS_LOAD_BALANCER. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. A subnet with purpose set to REGIONAL_MANAGED_PROXY is a user-created subnetwork that is reserved for regional Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to INTERNAL_HTTPS_LOAD_BALANCER is a proxy-only subnet that can be used only by regional internal HTTP(S) load balancers. Note that REGIONAL_MANAGED_PROXY is the preferred setting for all regional Envoy load balancers. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY. + // The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY. // Check the Purpose enum for the list of possible values. optional string purpose = 316407070; // URL of the region where the Subnetwork resides. This field can be set only at resource creation time. optional string region = 138946292; - // The role of subnetwork. Currently, this field is only used when purpose = REGIONAL_MANAGED_PROXY. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Envoy-based load balancers in a region. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently draining. This field can be updated with a patch request. + // The URL of the reserved internal range. + optional string reserved_internal_range = 286248754; + + // The role of subnetwork. Currently, this field is only used when purpose is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Envoy-based load balancers in a region. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently draining. This field can be updated with a patch request. // Check the Role enum for the list of possible values. optional string role = 3506294; @@ -29752,6 +30031,9 @@ message SubnetworkSecondaryRange { // The name associated with this subnetwork secondary range, used when adding an alias IP range to a VM instance. The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the subnetwork. optional string range_name = 332216397; + // The URL of the reserved internal range. + optional string reserved_internal_range = 286248754; + } // @@ -29800,7 +30082,7 @@ message Subsetting { // A request message for Instances.Suspend. See the method description for details. message SuspendInstanceRequest { - // If true, discard the contents of any attached localSSD partitions. Default value is false. + // This property is required if the instance has any attached Local SSD disks. If false, Local SSD data will be preserved when the instance is suspended. If true, the contents of any attached Local SSD disks will be discarded. optional bool discard_local_ssd = 319517903; // Name of the instance resource to suspend. @@ -29841,7 +30123,7 @@ message SwitchToCustomModeNetworkRequest { // message TCPHealthCheck { - // Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health check. Supported by backend services for pass-through load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for pass-through load balancers. Supports all backends that can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend service's named port in the instance group's list of named ports. + // Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health check. Supported by backend services for passthrough load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for passthrough load balancers. Supports all backends that can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend service's named port in the instance group's list of named ports. enum PortSpecification { // A value indicating that the enum field is not set. UNDEFINED_PORT_SPECIFICATION = 0; @@ -29874,7 +30156,7 @@ message TCPHealthCheck { // Not supported. optional string port_name = 41534345; - // Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health check. Supported by backend services for pass-through load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for pass-through load balancers. Supports all backends that can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend service's named port in the instance group's list of named ports. + // Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health check. Supported by backend services for passthrough load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for passthrough load balancers. Supports all backends that can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend service's named port in the instance group's list of named ports. // Check the PortSpecification enum for the list of possible values. optional string port_specification = 51590597; @@ -30319,7 +30601,7 @@ message TargetInstancesScopedList { } -// Represents a Target Pool resource. Target pools are used for network TCP/UDP load balancing. A target pool references member instances, an associated legacy HttpHealthCheck resource, and, optionally, a backup target pool. For more information, read Using target pools. +// Represents a Target Pool resource. Target pools are used with external passthrough Network Load Balancers. A target pool references member instances, an associated legacy HttpHealthCheck resource, and, optionally, a backup target pool. For more information, read Using target pools. message TargetPool { // Session affinity option, must be one of the following values: NONE: Connections from the same client IP may go to any instance in the pool. CLIENT_IP: Connections from the same client IP will go to the same instance in the pool while that instance remains healthy. CLIENT_IP_PROTO: Connections from the same client IP with the same IP protocol will go to the same instance in the pool while that instance remains healthy. enum SessionAffinity { @@ -30534,7 +30816,7 @@ message TargetSslProxiesSetSslCertificatesRequest { } -// Represents a Target SSL Proxy resource. A target SSL proxy is a component of a SSL Proxy load balancer. Global forwarding rules reference a target SSL proxy, and the target proxy then references an external backend service. For more information, read Using Target Proxies. +// Represents a Target SSL Proxy resource. A target SSL proxy is a component of a Proxy Network Load Balancer. The forwarding rule references the target SSL proxy, and the target proxy then references a backend service. For more information, read Proxy Network Load Balancer overview. message TargetSslProxy { // Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE. enum ProxyHeader { @@ -30641,7 +30923,7 @@ message TargetTcpProxiesSetProxyHeaderRequest { } -// Represents a Target TCP Proxy resource. A target TCP proxy is a component of a TCP Proxy load balancer. Global forwarding rules reference target TCP proxy, and the target proxy then references an external backend service. For more information, read TCP Proxy Load Balancing overview. +// Represents a Target TCP Proxy resource. A target TCP proxy is a component of a Proxy Network Load Balancer. The forwarding rule references the target TCP proxy, and the target proxy then references a backend service. For more information, read Proxy Network Load Balancer overview. message TargetTcpProxy { // Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE. enum ProxyHeader { @@ -32158,7 +32440,7 @@ message UsableSubnetwork { } - // The purpose of the resource. This field can be either PRIVATE, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or INTERNAL_HTTPS_LOAD_BALANCER. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. A subnet with purpose set to REGIONAL_MANAGED_PROXY is a user-created subnetwork that is reserved for regional Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to INTERNAL_HTTPS_LOAD_BALANCER is a proxy-only subnet that can be used only by regional internal HTTP(S) load balancers. Note that REGIONAL_MANAGED_PROXY is the preferred setting for all regional Envoy load balancers. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY. + // The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY. enum Purpose { // A value indicating that the enum field is not set. UNDEFINED_PURPOSE = 0; @@ -32166,7 +32448,7 @@ message UsableSubnetwork { // Subnet reserved for Global Envoy-based Load Balancing. GLOBAL_MANAGED_PROXY = 236463602; - // Subnet reserved for Internal HTTP(S) Load Balancing. + // Subnet reserved for Internal HTTP(S) Load Balancing. This is a legacy purpose, please use REGIONAL_MANAGED_PROXY instead. INTERNAL_HTTPS_LOAD_BALANCER = 248748889; // Regular user created or automatically created subnet. @@ -32186,7 +32468,7 @@ message UsableSubnetwork { } - // The role of subnetwork. Currently, this field is only used when purpose = REGIONAL_MANAGED_PROXY. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Envoy-based load balancers in a region. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently draining. This field can be updated with a patch request. + // The role of subnetwork. Currently, this field is only used when purpose is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Envoy-based load balancers in a region. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently draining. This field can be updated with a patch request. enum Role { // A value indicating that the enum field is not set. UNDEFINED_ROLE = 0; @@ -32228,11 +32510,11 @@ message UsableSubnetwork { // Network URL. optional string network = 232872494; - // The purpose of the resource. This field can be either PRIVATE, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or INTERNAL_HTTPS_LOAD_BALANCER. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. A subnet with purpose set to REGIONAL_MANAGED_PROXY is a user-created subnetwork that is reserved for regional Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. A subnet with purpose set to INTERNAL_HTTPS_LOAD_BALANCER is a proxy-only subnet that can be used only by regional internal HTTP(S) load balancers. Note that REGIONAL_MANAGED_PROXY is the preferred setting for all regional Envoy load balancers. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to REGIONAL_MANAGED_PROXY. + // The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY. // Check the Purpose enum for the list of possible values. optional string purpose = 316407070; - // The role of subnetwork. Currently, this field is only used when purpose = REGIONAL_MANAGED_PROXY. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Envoy-based load balancers in a region. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently draining. This field can be updated with a patch request. + // The role of subnetwork. Currently, this field is only used when purpose is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Envoy-based load balancers in a region. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently draining. This field can be updated with a patch request. // Check the Role enum for the list of possible values. optional string role = 3506294; @@ -34972,7 +35254,7 @@ service InstanceGroupManagers { option (google.api.method_signature) = "project,zone,instance_group_manager"; } - // Lists all of the instances in the managed instance group. Each instance in the list has a currentAction, which indicates the action that the managed instance group is performing on the instance. For example, if the group is still creating an instance, the currentAction is CREATING. If a previous action failed, the list displays the errors for that failed action. The orderBy query parameter is not supported. The `pageToken` query parameter is supported only in the alpha and beta API and only if the group's `listManagedInstancesResults` field is set to `PAGINATED`. + // Lists all of the instances in the managed instance group. Each instance in the list has a currentAction, which indicates the action that the managed instance group is performing on the instance. For example, if the group is still creating an instance, the currentAction is CREATING. If a previous action failed, the list displays the errors for that failed action. The orderBy query parameter is not supported. The `pageToken` query parameter is supported only if the group's `listManagedInstancesResults` field is set to `PAGINATED`. rpc ListManagedInstances(ListManagedInstancesInstanceGroupManagersRequest) returns (InstanceGroupManagersListManagedInstancesResponse) { option (google.api.http) = { post: "/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instance_group_manager}/listManagedInstances" @@ -35398,6 +35680,15 @@ service Instances { option (google.api.method_signature) = "project,zone,instance"; } + // Perform a manual maintenance on the instance. + rpc PerformMaintenance(PerformMaintenanceInstanceRequest) returns (Operation) { + option (google.api.http) = { + post: "/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/performMaintenance" + }; + option (google.api.method_signature) = "project,zone,instance"; + option (google.cloud.operation_service) = "ZoneOperations"; + } + // Removes resource policies from an instance. rpc RemoveResourcePolicies(RemoveResourcePoliciesInstanceRequest) returns (Operation) { option (google.api.http) = { @@ -37881,7 +38172,7 @@ service RegionInstanceGroupManagers { option (google.api.method_signature) = "project,region,instance_group_manager"; } - // Lists the instances in the managed instance group and instances that are scheduled to be created. The list includes any current actions that the group has scheduled for its instances. The orderBy query parameter is not supported. The `pageToken` query parameter is supported only in the alpha and beta API and only if the group's `listManagedInstancesResults` field is set to `PAGINATED`. + // Lists the instances in the managed instance group and instances that are scheduled to be created. The list includes any current actions that the group has scheduled for its instances. The orderBy query parameter is not supported. The `pageToken` query parameter is supported only if the group's `listManagedInstancesResults` field is set to `PAGINATED`. rpc ListManagedInstances(ListManagedInstancesRegionInstanceGroupManagersRequest) returns (RegionInstanceGroupManagersListInstancesResponse) { option (google.api.http) = { post: "/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instance_group_manager}/listManagedInstances" @@ -38864,6 +39155,26 @@ service RegionUrlMaps { } +// The RegionZones API. +service RegionZones { + option (google.api.default_host) = + "compute.googleapis.com"; + + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/compute.readonly," + "https://www.googleapis.com/auth/compute," + "https://www.googleapis.com/auth/cloud-platform"; + + // Retrieves the list of Zone resources under the specific region available to the specified project. + rpc List(ListRegionZonesRequest) returns (ZoneList) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/regions/{region}/zones" + }; + option (google.api.method_signature) = "project,region"; + } + +} + // The Regions API. service Regions { option (google.api.default_host) = @@ -40314,7 +40625,7 @@ service TargetSslProxies { option (google.cloud.operation_service) = "GlobalOperations"; } - // Sets the SSL policy for TargetSslProxy. The SSL policy specifies the server-side support for SSL features. This affects connections between clients and the SSL proxy load balancer. They do not affect the connection between the load balancer and the backends. + // Sets the SSL policy for TargetSslProxy. The SSL policy specifies the server-side support for SSL features. This affects connections between clients and the load balancer. They do not affect the connection between the load balancer and the backends. rpc SetSslPolicy(SetSslPolicyTargetSslProxyRequest) returns (Operation) { option (google.api.http) = { body: "ssl_policy_reference_resource" diff --git a/packages/google-cloud-compute/protos/protos.d.ts b/packages/google-cloud-compute/protos/protos.d.ts index 9a2226e5849..3e7e6352a04 100644 --- a/packages/google-cloud-compute/protos/protos.d.ts +++ b/packages/google-cloud-compute/protos/protos.d.ts @@ -14884,6 +14884,355 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an AllocationAggregateReservation. */ + interface IAllocationAggregateReservation { + + /** AllocationAggregateReservation inUseResources */ + inUseResources?: (google.cloud.compute.v1.IAllocationAggregateReservationReservedResourceInfo[]|null); + + /** AllocationAggregateReservation reservedResources */ + reservedResources?: (google.cloud.compute.v1.IAllocationAggregateReservationReservedResourceInfo[]|null); + + /** AllocationAggregateReservation vmFamily */ + vmFamily?: (string|null); + + /** AllocationAggregateReservation workloadType */ + workloadType?: (string|null); + } + + /** Represents an AllocationAggregateReservation. */ + class AllocationAggregateReservation implements IAllocationAggregateReservation { + + /** + * Constructs a new AllocationAggregateReservation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IAllocationAggregateReservation); + + /** AllocationAggregateReservation inUseResources. */ + public inUseResources: google.cloud.compute.v1.IAllocationAggregateReservationReservedResourceInfo[]; + + /** AllocationAggregateReservation reservedResources. */ + public reservedResources: google.cloud.compute.v1.IAllocationAggregateReservationReservedResourceInfo[]; + + /** AllocationAggregateReservation vmFamily. */ + public vmFamily?: (string|null); + + /** AllocationAggregateReservation workloadType. */ + public workloadType?: (string|null); + + /** AllocationAggregateReservation _vmFamily. */ + public _vmFamily?: "vmFamily"; + + /** AllocationAggregateReservation _workloadType. */ + public _workloadType?: "workloadType"; + + /** + * Creates a new AllocationAggregateReservation instance using the specified properties. + * @param [properties] Properties to set + * @returns AllocationAggregateReservation instance + */ + public static create(properties?: google.cloud.compute.v1.IAllocationAggregateReservation): google.cloud.compute.v1.AllocationAggregateReservation; + + /** + * Encodes the specified AllocationAggregateReservation message. Does not implicitly {@link google.cloud.compute.v1.AllocationAggregateReservation.verify|verify} messages. + * @param message AllocationAggregateReservation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IAllocationAggregateReservation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AllocationAggregateReservation message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AllocationAggregateReservation.verify|verify} messages. + * @param message AllocationAggregateReservation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IAllocationAggregateReservation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AllocationAggregateReservation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AllocationAggregateReservation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.AllocationAggregateReservation; + + /** + * Decodes an AllocationAggregateReservation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AllocationAggregateReservation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.AllocationAggregateReservation; + + /** + * Verifies an AllocationAggregateReservation message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an AllocationAggregateReservation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AllocationAggregateReservation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.AllocationAggregateReservation; + + /** + * Creates a plain object from an AllocationAggregateReservation message. Also converts values to other types if specified. + * @param message AllocationAggregateReservation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.AllocationAggregateReservation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AllocationAggregateReservation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AllocationAggregateReservation + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace AllocationAggregateReservation { + + /** VmFamily enum. */ + enum VmFamily { + UNDEFINED_VM_FAMILY = 0, + VM_FAMILY_CLOUD_TPU_LITE_DEVICE_CT5L = 108020067, + VM_FAMILY_CLOUD_TPU_LITE_POD_SLICE_CT5LP = 18705267, + VM_FAMILY_CLOUD_TPU_POD_SLICE_CT4P = 517384407 + } + + /** WorkloadType enum. */ + enum WorkloadType { + UNDEFINED_WORKLOAD_TYPE = 0, + BATCH = 62971674, + SERVING = 17781740, + UNSPECIFIED = 526786327 + } + } + + /** Properties of an AllocationAggregateReservationReservedResourceInfo. */ + interface IAllocationAggregateReservationReservedResourceInfo { + + /** AllocationAggregateReservationReservedResourceInfo accelerator */ + accelerator?: (google.cloud.compute.v1.IAllocationAggregateReservationReservedResourceInfoAccelerator|null); + } + + /** Represents an AllocationAggregateReservationReservedResourceInfo. */ + class AllocationAggregateReservationReservedResourceInfo implements IAllocationAggregateReservationReservedResourceInfo { + + /** + * Constructs a new AllocationAggregateReservationReservedResourceInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IAllocationAggregateReservationReservedResourceInfo); + + /** AllocationAggregateReservationReservedResourceInfo accelerator. */ + public accelerator?: (google.cloud.compute.v1.IAllocationAggregateReservationReservedResourceInfoAccelerator|null); + + /** AllocationAggregateReservationReservedResourceInfo _accelerator. */ + public _accelerator?: "accelerator"; + + /** + * Creates a new AllocationAggregateReservationReservedResourceInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns AllocationAggregateReservationReservedResourceInfo instance + */ + public static create(properties?: google.cloud.compute.v1.IAllocationAggregateReservationReservedResourceInfo): google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo; + + /** + * Encodes the specified AllocationAggregateReservationReservedResourceInfo message. Does not implicitly {@link google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo.verify|verify} messages. + * @param message AllocationAggregateReservationReservedResourceInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IAllocationAggregateReservationReservedResourceInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AllocationAggregateReservationReservedResourceInfo message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo.verify|verify} messages. + * @param message AllocationAggregateReservationReservedResourceInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IAllocationAggregateReservationReservedResourceInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AllocationAggregateReservationReservedResourceInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AllocationAggregateReservationReservedResourceInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo; + + /** + * Decodes an AllocationAggregateReservationReservedResourceInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AllocationAggregateReservationReservedResourceInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo; + + /** + * Verifies an AllocationAggregateReservationReservedResourceInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an AllocationAggregateReservationReservedResourceInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AllocationAggregateReservationReservedResourceInfo + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo; + + /** + * Creates a plain object from an AllocationAggregateReservationReservedResourceInfo message. Also converts values to other types if specified. + * @param message AllocationAggregateReservationReservedResourceInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AllocationAggregateReservationReservedResourceInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AllocationAggregateReservationReservedResourceInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an AllocationAggregateReservationReservedResourceInfoAccelerator. */ + interface IAllocationAggregateReservationReservedResourceInfoAccelerator { + + /** AllocationAggregateReservationReservedResourceInfoAccelerator acceleratorCount */ + acceleratorCount?: (number|null); + + /** AllocationAggregateReservationReservedResourceInfoAccelerator acceleratorType */ + acceleratorType?: (string|null); + } + + /** Represents an AllocationAggregateReservationReservedResourceInfoAccelerator. */ + class AllocationAggregateReservationReservedResourceInfoAccelerator implements IAllocationAggregateReservationReservedResourceInfoAccelerator { + + /** + * Constructs a new AllocationAggregateReservationReservedResourceInfoAccelerator. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IAllocationAggregateReservationReservedResourceInfoAccelerator); + + /** AllocationAggregateReservationReservedResourceInfoAccelerator acceleratorCount. */ + public acceleratorCount?: (number|null); + + /** AllocationAggregateReservationReservedResourceInfoAccelerator acceleratorType. */ + public acceleratorType?: (string|null); + + /** AllocationAggregateReservationReservedResourceInfoAccelerator _acceleratorCount. */ + public _acceleratorCount?: "acceleratorCount"; + + /** AllocationAggregateReservationReservedResourceInfoAccelerator _acceleratorType. */ + public _acceleratorType?: "acceleratorType"; + + /** + * Creates a new AllocationAggregateReservationReservedResourceInfoAccelerator instance using the specified properties. + * @param [properties] Properties to set + * @returns AllocationAggregateReservationReservedResourceInfoAccelerator instance + */ + public static create(properties?: google.cloud.compute.v1.IAllocationAggregateReservationReservedResourceInfoAccelerator): google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfoAccelerator; + + /** + * Encodes the specified AllocationAggregateReservationReservedResourceInfoAccelerator message. Does not implicitly {@link google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfoAccelerator.verify|verify} messages. + * @param message AllocationAggregateReservationReservedResourceInfoAccelerator message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IAllocationAggregateReservationReservedResourceInfoAccelerator, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AllocationAggregateReservationReservedResourceInfoAccelerator message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfoAccelerator.verify|verify} messages. + * @param message AllocationAggregateReservationReservedResourceInfoAccelerator message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IAllocationAggregateReservationReservedResourceInfoAccelerator, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AllocationAggregateReservationReservedResourceInfoAccelerator message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AllocationAggregateReservationReservedResourceInfoAccelerator + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfoAccelerator; + + /** + * Decodes an AllocationAggregateReservationReservedResourceInfoAccelerator message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AllocationAggregateReservationReservedResourceInfoAccelerator + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfoAccelerator; + + /** + * Verifies an AllocationAggregateReservationReservedResourceInfoAccelerator message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an AllocationAggregateReservationReservedResourceInfoAccelerator message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AllocationAggregateReservationReservedResourceInfoAccelerator + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfoAccelerator; + + /** + * Creates a plain object from an AllocationAggregateReservationReservedResourceInfoAccelerator message. Also converts values to other types if specified. + * @param message AllocationAggregateReservationReservedResourceInfoAccelerator + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfoAccelerator, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AllocationAggregateReservationReservedResourceInfoAccelerator to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AllocationAggregateReservationReservedResourceInfoAccelerator + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an AllocationResourceStatus. */ interface IAllocationResourceStatus { @@ -16838,6 +17187,9 @@ export namespace google { /** AttachedDiskInitializeParams diskType */ diskType?: (string|null); + /** AttachedDiskInitializeParams enableConfidentialCompute */ + enableConfidentialCompute?: (boolean|null); + /** AttachedDiskInitializeParams labels */ labels?: ({ [k: string]: string }|null); @@ -16899,6 +17251,9 @@ export namespace google { /** AttachedDiskInitializeParams diskType. */ public diskType?: (string|null); + /** AttachedDiskInitializeParams enableConfidentialCompute. */ + public enableConfidentialCompute?: (boolean|null); + /** AttachedDiskInitializeParams labels. */ public labels: { [k: string]: string }; @@ -16950,6 +17305,9 @@ export namespace google { /** AttachedDiskInitializeParams _diskType. */ public _diskType?: "diskType"; + /** AttachedDiskInitializeParams _enableConfidentialCompute. */ + public _enableConfidentialCompute?: "enableConfidentialCompute"; + /** AttachedDiskInitializeParams _onUpdateAction. */ public _onUpdateAction?: "onUpdateAction"; @@ -25139,6 +25497,9 @@ export namespace google { /** Commitment endTimestamp */ endTimestamp?: (string|null); + /** Commitment existingReservations */ + existingReservations?: (string[]|null); + /** Commitment id */ id?: (number|Long|string|null); @@ -25209,6 +25570,9 @@ export namespace google { /** Commitment endTimestamp. */ public endTimestamp?: (string|null); + /** Commitment existingReservations. */ + public existingReservations: string[]; + /** Commitment id. */ public id?: (number|Long|string|null); @@ -25429,6 +25793,7 @@ export namespace google { GRAPHICS_OPTIMIZED = 68500563, MEMORY_OPTIMIZED = 281753417, MEMORY_OPTIMIZED_M3 = 276301372, + STORAGE_OPTIMIZED_Z3 = 316796085, TYPE_UNSPECIFIED = 437714322 } } @@ -38498,6 +38863,9 @@ export namespace google { /** Disk diskEncryptionKey */ diskEncryptionKey?: (google.cloud.compute.v1.ICustomerEncryptionKey|null); + /** Disk enableConfidentialCompute */ + enableConfidentialCompute?: (boolean|null); + /** Disk guestOsFeatures */ guestOsFeatures?: (google.cloud.compute.v1.IGuestOsFeature[]|null); @@ -38558,6 +38926,9 @@ export namespace google { /** Disk resourceStatus */ resourceStatus?: (google.cloud.compute.v1.IDiskResourceStatus|null); + /** Disk satisfiesPzi */ + satisfiesPzi?: (boolean|null); + /** Disk satisfiesPzs */ satisfiesPzs?: (boolean|null); @@ -38640,6 +39011,9 @@ export namespace google { /** Disk diskEncryptionKey. */ public diskEncryptionKey?: (google.cloud.compute.v1.ICustomerEncryptionKey|null); + /** Disk enableConfidentialCompute. */ + public enableConfidentialCompute?: (boolean|null); + /** Disk guestOsFeatures. */ public guestOsFeatures: google.cloud.compute.v1.IGuestOsFeature[]; @@ -38700,6 +39074,9 @@ export namespace google { /** Disk resourceStatus. */ public resourceStatus?: (google.cloud.compute.v1.IDiskResourceStatus|null); + /** Disk satisfiesPzi. */ + public satisfiesPzi?: (boolean|null); + /** Disk satisfiesPzs. */ public satisfiesPzs?: (boolean|null); @@ -38769,6 +39146,9 @@ export namespace google { /** Disk _diskEncryptionKey. */ public _diskEncryptionKey?: "diskEncryptionKey"; + /** Disk _enableConfidentialCompute. */ + public _enableConfidentialCompute?: "enableConfidentialCompute"; + /** Disk _id. */ public _id?: "id"; @@ -38811,6 +39191,9 @@ export namespace google { /** Disk _resourceStatus. */ public _resourceStatus?: "resourceStatus"; + /** Disk _satisfiesPzi. */ + public _satisfiesPzi?: "satisfiesPzi"; + /** Disk _satisfiesPzs. */ public _satisfiesPzs?: "satisfiesPzs"; @@ -44583,6 +44966,9 @@ export namespace google { /** FirewallPolicyRule ruleTupleCount */ ruleTupleCount?: (number|null); + /** FirewallPolicyRule securityProfileGroup */ + securityProfileGroup?: (string|null); + /** FirewallPolicyRule targetResources */ targetResources?: (string[]|null); @@ -44591,6 +44977,9 @@ export namespace google { /** FirewallPolicyRule targetServiceAccounts */ targetServiceAccounts?: (string[]|null); + + /** FirewallPolicyRule tlsInspect */ + tlsInspect?: (boolean|null); } /** Represents a FirewallPolicyRule. */ @@ -44632,6 +45021,9 @@ export namespace google { /** FirewallPolicyRule ruleTupleCount. */ public ruleTupleCount?: (number|null); + /** FirewallPolicyRule securityProfileGroup. */ + public securityProfileGroup?: (string|null); + /** FirewallPolicyRule targetResources. */ public targetResources: string[]; @@ -44641,6 +45033,9 @@ export namespace google { /** FirewallPolicyRule targetServiceAccounts. */ public targetServiceAccounts: string[]; + /** FirewallPolicyRule tlsInspect. */ + public tlsInspect?: (boolean|null); + /** FirewallPolicyRule _action. */ public _action?: "action"; @@ -44671,6 +45066,12 @@ export namespace google { /** FirewallPolicyRule _ruleTupleCount. */ public _ruleTupleCount?: "ruleTupleCount"; + /** FirewallPolicyRule _securityProfileGroup. */ + public _securityProfileGroup?: "securityProfileGroup"; + + /** FirewallPolicyRule _tlsInspect. */ + public _tlsInspect?: "tlsInspect"; + /** * Creates a new FirewallPolicyRule instance using the specified properties. * @param [properties] Properties to set @@ -62631,6 +63032,7 @@ export namespace google { UNDEFINED_TYPE = 0, FEATURE_TYPE_UNSPECIFIED = 531767259, GVNIC = 68209305, + IDPF = 2242641, MULTI_IP_SUBNET = 151776719, SECURE_BOOT = 376811194, SEV_CAPABLE = 87083793, @@ -66740,6 +67142,9 @@ export namespace google { /** Image diskSizeGb */ diskSizeGb?: (number|Long|string|null); + /** Image enableConfidentialCompute */ + enableConfidentialCompute?: (boolean|null); + /** Image family */ family?: (string|null); @@ -66773,6 +67178,9 @@ export namespace google { /** Image rawDisk */ rawDisk?: (google.cloud.compute.v1.IRawDisk|null); + /** Image satisfiesPzi */ + satisfiesPzi?: (boolean|null); + /** Image satisfiesPzs */ satisfiesPzs?: (boolean|null); @@ -66846,6 +67254,9 @@ export namespace google { /** Image diskSizeGb. */ public diskSizeGb?: (number|Long|string|null); + /** Image enableConfidentialCompute. */ + public enableConfidentialCompute?: (boolean|null); + /** Image family. */ public family?: (string|null); @@ -66879,6 +67290,9 @@ export namespace google { /** Image rawDisk. */ public rawDisk?: (google.cloud.compute.v1.IRawDisk|null); + /** Image satisfiesPzi. */ + public satisfiesPzi?: (boolean|null); + /** Image satisfiesPzs. */ public satisfiesPzs?: (boolean|null); @@ -66942,6 +67356,9 @@ export namespace google { /** Image _diskSizeGb. */ public _diskSizeGb?: "diskSizeGb"; + /** Image _enableConfidentialCompute. */ + public _enableConfidentialCompute?: "enableConfidentialCompute"; + /** Image _family. */ public _family?: "family"; @@ -66963,6 +67380,9 @@ export namespace google { /** Image _rawDisk. */ public _rawDisk?: "rawDisk"; + /** Image _satisfiesPzi. */ + public _satisfiesPzi?: "satisfiesPzi"; + /** Image _satisfiesPzs. */ public _satisfiesPzs?: "satisfiesPzs"; @@ -75986,6 +76406,9 @@ export namespace google { /** Instance resourceStatus */ resourceStatus?: (google.cloud.compute.v1.IResourceStatus|null); + /** Instance satisfiesPzi */ + satisfiesPzi?: (boolean|null); + /** Instance satisfiesPzs */ satisfiesPzs?: (boolean|null); @@ -76131,6 +76554,9 @@ export namespace google { /** Instance resourceStatus. */ public resourceStatus?: (google.cloud.compute.v1.IResourceStatus|null); + /** Instance satisfiesPzi. */ + public satisfiesPzi?: (boolean|null); + /** Instance satisfiesPzs. */ public satisfiesPzs?: (boolean|null); @@ -76251,6 +76677,9 @@ export namespace google { /** Instance _resourceStatus. */ public _resourceStatus?: "resourceStatus"; + /** Instance _satisfiesPzi. */ + public _satisfiesPzi?: "satisfiesPzi"; + /** Instance _satisfiesPzs. */ public _satisfiesPzs?: "satisfiesPzs"; @@ -77281,6 +77710,9 @@ export namespace google { /** Properties of an InstanceGroupManager. */ interface IInstanceGroupManager { + /** InstanceGroupManager allInstancesConfig */ + allInstancesConfig?: (google.cloud.compute.v1.IInstanceGroupManagerAllInstancesConfig|null); + /** InstanceGroupManager autoHealingPolicies */ autoHealingPolicies?: (google.cloud.compute.v1.IInstanceGroupManagerAutoHealingPolicy[]|null); @@ -77363,6 +77795,9 @@ export namespace google { */ constructor(properties?: google.cloud.compute.v1.IInstanceGroupManager); + /** InstanceGroupManager allInstancesConfig. */ + public allInstancesConfig?: (google.cloud.compute.v1.IInstanceGroupManagerAllInstancesConfig|null); + /** InstanceGroupManager autoHealingPolicies. */ public autoHealingPolicies: google.cloud.compute.v1.IInstanceGroupManagerAutoHealingPolicy[]; @@ -77435,6 +77870,9 @@ export namespace google { /** InstanceGroupManager zone. */ public zone?: (string|null); + /** InstanceGroupManager _allInstancesConfig. */ + public _allInstancesConfig?: "allInstancesConfig"; + /** InstanceGroupManager _baseInstanceName. */ public _baseInstanceName?: "baseInstanceName"; @@ -77939,6 +78377,106 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an InstanceGroupManagerAllInstancesConfig. */ + interface IInstanceGroupManagerAllInstancesConfig { + + /** InstanceGroupManagerAllInstancesConfig properties */ + properties?: (google.cloud.compute.v1.IInstancePropertiesPatch|null); + } + + /** Represents an InstanceGroupManagerAllInstancesConfig. */ + class InstanceGroupManagerAllInstancesConfig implements IInstanceGroupManagerAllInstancesConfig { + + /** + * Constructs a new InstanceGroupManagerAllInstancesConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IInstanceGroupManagerAllInstancesConfig); + + /** InstanceGroupManagerAllInstancesConfig properties. */ + public properties?: (google.cloud.compute.v1.IInstancePropertiesPatch|null); + + /** InstanceGroupManagerAllInstancesConfig _properties. */ + public _properties?: "properties"; + + /** + * Creates a new InstanceGroupManagerAllInstancesConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns InstanceGroupManagerAllInstancesConfig instance + */ + public static create(properties?: google.cloud.compute.v1.IInstanceGroupManagerAllInstancesConfig): google.cloud.compute.v1.InstanceGroupManagerAllInstancesConfig; + + /** + * Encodes the specified InstanceGroupManagerAllInstancesConfig message. Does not implicitly {@link google.cloud.compute.v1.InstanceGroupManagerAllInstancesConfig.verify|verify} messages. + * @param message InstanceGroupManagerAllInstancesConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IInstanceGroupManagerAllInstancesConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InstanceGroupManagerAllInstancesConfig message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InstanceGroupManagerAllInstancesConfig.verify|verify} messages. + * @param message InstanceGroupManagerAllInstancesConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IInstanceGroupManagerAllInstancesConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InstanceGroupManagerAllInstancesConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InstanceGroupManagerAllInstancesConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.InstanceGroupManagerAllInstancesConfig; + + /** + * Decodes an InstanceGroupManagerAllInstancesConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InstanceGroupManagerAllInstancesConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.InstanceGroupManagerAllInstancesConfig; + + /** + * Verifies an InstanceGroupManagerAllInstancesConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an InstanceGroupManagerAllInstancesConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InstanceGroupManagerAllInstancesConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.InstanceGroupManagerAllInstancesConfig; + + /** + * Creates a plain object from an InstanceGroupManagerAllInstancesConfig message. Also converts values to other types if specified. + * @param message InstanceGroupManagerAllInstancesConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.InstanceGroupManagerAllInstancesConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InstanceGroupManagerAllInstancesConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InstanceGroupManagerAllInstancesConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an InstanceGroupManagerAutoHealingPolicy. */ interface IInstanceGroupManagerAutoHealingPolicy { @@ -78303,6 +78841,9 @@ export namespace google { /** Properties of an InstanceGroupManagerStatus. */ interface IInstanceGroupManagerStatus { + /** InstanceGroupManagerStatus allInstancesConfig */ + allInstancesConfig?: (google.cloud.compute.v1.IInstanceGroupManagerStatusAllInstancesConfig|null); + /** InstanceGroupManagerStatus autoscaler */ autoscaler?: (string|null); @@ -78325,6 +78866,9 @@ export namespace google { */ constructor(properties?: google.cloud.compute.v1.IInstanceGroupManagerStatus); + /** InstanceGroupManagerStatus allInstancesConfig. */ + public allInstancesConfig?: (google.cloud.compute.v1.IInstanceGroupManagerStatusAllInstancesConfig|null); + /** InstanceGroupManagerStatus autoscaler. */ public autoscaler?: (string|null); @@ -78337,6 +78881,9 @@ export namespace google { /** InstanceGroupManagerStatus versionTarget. */ public versionTarget?: (google.cloud.compute.v1.IInstanceGroupManagerStatusVersionTarget|null); + /** InstanceGroupManagerStatus _allInstancesConfig. */ + public _allInstancesConfig?: "allInstancesConfig"; + /** InstanceGroupManagerStatus _autoscaler. */ public _autoscaler?: "autoscaler"; @@ -78427,6 +78974,115 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an InstanceGroupManagerStatusAllInstancesConfig. */ + interface IInstanceGroupManagerStatusAllInstancesConfig { + + /** InstanceGroupManagerStatusAllInstancesConfig currentRevision */ + currentRevision?: (string|null); + + /** InstanceGroupManagerStatusAllInstancesConfig effective */ + effective?: (boolean|null); + } + + /** Represents an InstanceGroupManagerStatusAllInstancesConfig. */ + class InstanceGroupManagerStatusAllInstancesConfig implements IInstanceGroupManagerStatusAllInstancesConfig { + + /** + * Constructs a new InstanceGroupManagerStatusAllInstancesConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IInstanceGroupManagerStatusAllInstancesConfig); + + /** InstanceGroupManagerStatusAllInstancesConfig currentRevision. */ + public currentRevision?: (string|null); + + /** InstanceGroupManagerStatusAllInstancesConfig effective. */ + public effective?: (boolean|null); + + /** InstanceGroupManagerStatusAllInstancesConfig _currentRevision. */ + public _currentRevision?: "currentRevision"; + + /** InstanceGroupManagerStatusAllInstancesConfig _effective. */ + public _effective?: "effective"; + + /** + * Creates a new InstanceGroupManagerStatusAllInstancesConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns InstanceGroupManagerStatusAllInstancesConfig instance + */ + public static create(properties?: google.cloud.compute.v1.IInstanceGroupManagerStatusAllInstancesConfig): google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig; + + /** + * Encodes the specified InstanceGroupManagerStatusAllInstancesConfig message. Does not implicitly {@link google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig.verify|verify} messages. + * @param message InstanceGroupManagerStatusAllInstancesConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IInstanceGroupManagerStatusAllInstancesConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InstanceGroupManagerStatusAllInstancesConfig message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig.verify|verify} messages. + * @param message InstanceGroupManagerStatusAllInstancesConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IInstanceGroupManagerStatusAllInstancesConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InstanceGroupManagerStatusAllInstancesConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InstanceGroupManagerStatusAllInstancesConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig; + + /** + * Decodes an InstanceGroupManagerStatusAllInstancesConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InstanceGroupManagerStatusAllInstancesConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig; + + /** + * Verifies an InstanceGroupManagerStatusAllInstancesConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an InstanceGroupManagerStatusAllInstancesConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InstanceGroupManagerStatusAllInstancesConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig; + + /** + * Creates a plain object from an InstanceGroupManagerStatusAllInstancesConfig message. Also converts values to other types if specified. + * @param message InstanceGroupManagerStatusAllInstancesConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InstanceGroupManagerStatusAllInstancesConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InstanceGroupManagerStatusAllInstancesConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an InstanceGroupManagerStatusStateful. */ interface IInstanceGroupManagerStatusStateful { @@ -82295,6 +82951,109 @@ export namespace google { } } + /** Properties of an InstancePropertiesPatch. */ + interface IInstancePropertiesPatch { + + /** InstancePropertiesPatch labels */ + labels?: ({ [k: string]: string }|null); + + /** InstancePropertiesPatch metadata */ + metadata?: ({ [k: string]: string }|null); + } + + /** Represents an InstancePropertiesPatch. */ + class InstancePropertiesPatch implements IInstancePropertiesPatch { + + /** + * Constructs a new InstancePropertiesPatch. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IInstancePropertiesPatch); + + /** InstancePropertiesPatch labels. */ + public labels: { [k: string]: string }; + + /** InstancePropertiesPatch metadata. */ + public metadata: { [k: string]: string }; + + /** + * Creates a new InstancePropertiesPatch instance using the specified properties. + * @param [properties] Properties to set + * @returns InstancePropertiesPatch instance + */ + public static create(properties?: google.cloud.compute.v1.IInstancePropertiesPatch): google.cloud.compute.v1.InstancePropertiesPatch; + + /** + * Encodes the specified InstancePropertiesPatch message. Does not implicitly {@link google.cloud.compute.v1.InstancePropertiesPatch.verify|verify} messages. + * @param message InstancePropertiesPatch message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IInstancePropertiesPatch, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InstancePropertiesPatch message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InstancePropertiesPatch.verify|verify} messages. + * @param message InstancePropertiesPatch message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IInstancePropertiesPatch, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InstancePropertiesPatch message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InstancePropertiesPatch + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.InstancePropertiesPatch; + + /** + * Decodes an InstancePropertiesPatch message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InstancePropertiesPatch + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.InstancePropertiesPatch; + + /** + * Verifies an InstancePropertiesPatch message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an InstancePropertiesPatch message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InstancePropertiesPatch + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.InstancePropertiesPatch; + + /** + * Creates a plain object from an InstancePropertiesPatch message. Also converts values to other types if specified. + * @param message InstancePropertiesPatch + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.InstancePropertiesPatch, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InstancePropertiesPatch to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InstancePropertiesPatch + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an InstanceReference. */ interface IInstanceReference { @@ -102316,6 +103075,154 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a ListRegionZonesRequest. */ + interface IListRegionZonesRequest { + + /** ListRegionZonesRequest filter */ + filter?: (string|null); + + /** ListRegionZonesRequest maxResults */ + maxResults?: (number|null); + + /** ListRegionZonesRequest orderBy */ + orderBy?: (string|null); + + /** ListRegionZonesRequest pageToken */ + pageToken?: (string|null); + + /** ListRegionZonesRequest project */ + project?: (string|null); + + /** ListRegionZonesRequest region */ + region?: (string|null); + + /** ListRegionZonesRequest returnPartialSuccess */ + returnPartialSuccess?: (boolean|null); + } + + /** Represents a ListRegionZonesRequest. */ + class ListRegionZonesRequest implements IListRegionZonesRequest { + + /** + * Constructs a new ListRegionZonesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IListRegionZonesRequest); + + /** ListRegionZonesRequest filter. */ + public filter?: (string|null); + + /** ListRegionZonesRequest maxResults. */ + public maxResults?: (number|null); + + /** ListRegionZonesRequest orderBy. */ + public orderBy?: (string|null); + + /** ListRegionZonesRequest pageToken. */ + public pageToken?: (string|null); + + /** ListRegionZonesRequest project. */ + public project: string; + + /** ListRegionZonesRequest region. */ + public region: string; + + /** ListRegionZonesRequest returnPartialSuccess. */ + public returnPartialSuccess?: (boolean|null); + + /** ListRegionZonesRequest _filter. */ + public _filter?: "filter"; + + /** ListRegionZonesRequest _maxResults. */ + public _maxResults?: "maxResults"; + + /** ListRegionZonesRequest _orderBy. */ + public _orderBy?: "orderBy"; + + /** ListRegionZonesRequest _pageToken. */ + public _pageToken?: "pageToken"; + + /** ListRegionZonesRequest _returnPartialSuccess. */ + public _returnPartialSuccess?: "returnPartialSuccess"; + + /** + * Creates a new ListRegionZonesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListRegionZonesRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IListRegionZonesRequest): google.cloud.compute.v1.ListRegionZonesRequest; + + /** + * Encodes the specified ListRegionZonesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionZonesRequest.verify|verify} messages. + * @param message ListRegionZonesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IListRegionZonesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListRegionZonesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionZonesRequest.verify|verify} messages. + * @param message ListRegionZonesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IListRegionZonesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListRegionZonesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListRegionZonesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.ListRegionZonesRequest; + + /** + * Decodes a ListRegionZonesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListRegionZonesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.ListRegionZonesRequest; + + /** + * Verifies a ListRegionZonesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListRegionZonesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListRegionZonesRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.ListRegionZonesRequest; + + /** + * Creates a plain object from a ListRegionZonesRequest message. Also converts values to other types if specified. + * @param message ListRegionZonesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.ListRegionZonesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListRegionZonesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListRegionZonesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a ListRegionsRequest. */ interface IListRegionsRequest { @@ -107533,6 +108440,9 @@ export namespace google { /** MachineImage name */ name?: (string|null); + /** MachineImage satisfiesPzi */ + satisfiesPzi?: (boolean|null); + /** MachineImage satisfiesPzs */ satisfiesPzs?: (boolean|null); @@ -107594,6 +108504,9 @@ export namespace google { /** MachineImage name. */ public name?: (string|null); + /** MachineImage satisfiesPzi. */ + public satisfiesPzi?: (boolean|null); + /** MachineImage satisfiesPzs. */ public satisfiesPzs?: (boolean|null); @@ -107645,6 +108558,9 @@ export namespace google { /** MachineImage _name. */ public _name?: "name"; + /** MachineImage _satisfiesPzi. */ + public _satisfiesPzi?: "satisfiesPzi"; + /** MachineImage _satisfiesPzs. */ public _satisfiesPzs?: "satisfiesPzs"; @@ -127426,6 +128342,124 @@ export namespace google { } } + /** Properties of a PerformMaintenanceInstanceRequest. */ + interface IPerformMaintenanceInstanceRequest { + + /** PerformMaintenanceInstanceRequest instance */ + instance?: (string|null); + + /** PerformMaintenanceInstanceRequest project */ + project?: (string|null); + + /** PerformMaintenanceInstanceRequest requestId */ + requestId?: (string|null); + + /** PerformMaintenanceInstanceRequest zone */ + zone?: (string|null); + } + + /** Represents a PerformMaintenanceInstanceRequest. */ + class PerformMaintenanceInstanceRequest implements IPerformMaintenanceInstanceRequest { + + /** + * Constructs a new PerformMaintenanceInstanceRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IPerformMaintenanceInstanceRequest); + + /** PerformMaintenanceInstanceRequest instance. */ + public instance: string; + + /** PerformMaintenanceInstanceRequest project. */ + public project: string; + + /** PerformMaintenanceInstanceRequest requestId. */ + public requestId?: (string|null); + + /** PerformMaintenanceInstanceRequest zone. */ + public zone: string; + + /** PerformMaintenanceInstanceRequest _requestId. */ + public _requestId?: "requestId"; + + /** + * Creates a new PerformMaintenanceInstanceRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns PerformMaintenanceInstanceRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IPerformMaintenanceInstanceRequest): google.cloud.compute.v1.PerformMaintenanceInstanceRequest; + + /** + * Encodes the specified PerformMaintenanceInstanceRequest message. Does not implicitly {@link google.cloud.compute.v1.PerformMaintenanceInstanceRequest.verify|verify} messages. + * @param message PerformMaintenanceInstanceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IPerformMaintenanceInstanceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PerformMaintenanceInstanceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.PerformMaintenanceInstanceRequest.verify|verify} messages. + * @param message PerformMaintenanceInstanceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IPerformMaintenanceInstanceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PerformMaintenanceInstanceRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PerformMaintenanceInstanceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.PerformMaintenanceInstanceRequest; + + /** + * Decodes a PerformMaintenanceInstanceRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PerformMaintenanceInstanceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.PerformMaintenanceInstanceRequest; + + /** + * Verifies a PerformMaintenanceInstanceRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a PerformMaintenanceInstanceRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PerformMaintenanceInstanceRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.PerformMaintenanceInstanceRequest; + + /** + * Creates a plain object from a PerformMaintenanceInstanceRequest message. Also converts values to other types if specified. + * @param message PerformMaintenanceInstanceRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.PerformMaintenanceInstanceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PerformMaintenanceInstanceRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PerformMaintenanceInstanceRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a Policy. */ interface IPolicy { @@ -130493,6 +131527,7 @@ export namespace google { COMMITTED_N2_CPUS = 322589603, COMMITTED_NVIDIA_A100_80GB_GPUS = 464326565, COMMITTED_NVIDIA_A100_GPUS = 375799445, + COMMITTED_NVIDIA_H100_GPUS = 71649180, COMMITTED_NVIDIA_K80_GPUS = 3857188, COMMITTED_NVIDIA_L4_GPUS = 19163645, COMMITTED_NVIDIA_P100_GPUS = 107528100, @@ -130501,6 +131536,7 @@ export namespace google { COMMITTED_NVIDIA_V100_GPUS = 219562, COMMITTED_T2A_CPUS = 296378986, COMMITTED_T2D_CPUS = 382266439, + COMMITTED_Z3_CPUS = 263844686, CPUS = 2075595, CPUS_ALL_REGIONS = 470911149, DISKS_TOTAL_GB = 353520543, @@ -130568,6 +131604,7 @@ export namespace google { PREEMPTIBLE_LOCAL_SSD_GB = 260819336, PREEMPTIBLE_NVIDIA_A100_80GB_GPUS = 151942410, PREEMPTIBLE_NVIDIA_A100_GPUS = 68832784, + PREEMPTIBLE_NVIDIA_H100_GPUS = 301553431, PREEMPTIBLE_NVIDIA_K80_GPUS = 374960201, PREEMPTIBLE_NVIDIA_L4_GPUS = 100408376, PREEMPTIBLE_NVIDIA_P100_GPUS = 337432351, @@ -130577,6 +131614,9 @@ export namespace google { PREEMPTIBLE_NVIDIA_T4_GPUS = 221115968, PREEMPTIBLE_NVIDIA_T4_VWS_GPUS = 44497965, PREEMPTIBLE_NVIDIA_V100_GPUS = 230123813, + PREEMPTIBLE_TPU_LITE_DEVICE_V5 = 174262523, + PREEMPTIBLE_TPU_LITE_PODSLICE_V5 = 112281796, + PREEMPTIBLE_TPU_PODSLICE_V4 = 425541132, PSC_ILB_CONSUMER_FORWARDING_RULES_PER_PRODUCER_NETWORK = 231164291, PSC_INTERNAL_LB_FORWARDING_RULES = 169005435, PUBLIC_ADVERTISED_PREFIXES = 471371980, @@ -130614,6 +131654,9 @@ export namespace google { TARGET_SSL_PROXIES = 159216235, TARGET_TCP_PROXIES = 182243136, TARGET_VPN_GATEWAYS = 75029928, + TPU_LITE_DEVICE_V5 = 449577597, + TPU_LITE_PODSLICE_V5 = 12708294, + TPU_PODSLICE_V4 = 214467530, URL_MAPS = 378660743, VPN_GATEWAYS = 35620282, VPN_TUNNELS = 104327296, @@ -137179,6 +138222,9 @@ export namespace google { /** Properties of a Reservation. */ interface IReservation { + /** Reservation aggregateReservation */ + aggregateReservation?: (google.cloud.compute.v1.IAllocationAggregateReservation|null); + /** Reservation commitment */ commitment?: (string|null); @@ -137234,6 +138280,9 @@ export namespace google { */ constructor(properties?: google.cloud.compute.v1.IReservation); + /** Reservation aggregateReservation. */ + public aggregateReservation?: (google.cloud.compute.v1.IAllocationAggregateReservation|null); + /** Reservation commitment. */ public commitment?: (string|null); @@ -137279,6 +138328,9 @@ export namespace google { /** Reservation zone. */ public zone?: (string|null); + /** Reservation _aggregateReservation. */ + public _aggregateReservation?: "aggregateReservation"; + /** Reservation _commitment. */ public _commitment?: "commitment"; @@ -148899,6 +149951,9 @@ export namespace google { /** SecurityPolicyRuleMatcher expr */ expr?: (google.cloud.compute.v1.IExpr|null); + /** SecurityPolicyRuleMatcher exprOptions */ + exprOptions?: (google.cloud.compute.v1.ISecurityPolicyRuleMatcherExprOptions|null); + /** SecurityPolicyRuleMatcher versionedExpr */ versionedExpr?: (string|null); } @@ -148918,6 +149973,9 @@ export namespace google { /** SecurityPolicyRuleMatcher expr. */ public expr?: (google.cloud.compute.v1.IExpr|null); + /** SecurityPolicyRuleMatcher exprOptions. */ + public exprOptions?: (google.cloud.compute.v1.ISecurityPolicyRuleMatcherExprOptions|null); + /** SecurityPolicyRuleMatcher versionedExpr. */ public versionedExpr?: (string|null); @@ -148927,6 +149985,9 @@ export namespace google { /** SecurityPolicyRuleMatcher _expr. */ public _expr?: "expr"; + /** SecurityPolicyRuleMatcher _exprOptions. */ + public _exprOptions?: "exprOptions"; + /** SecurityPolicyRuleMatcher _versionedExpr. */ public _versionedExpr?: "versionedExpr"; @@ -149114,6 +150175,209 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a SecurityPolicyRuleMatcherExprOptions. */ + interface ISecurityPolicyRuleMatcherExprOptions { + + /** SecurityPolicyRuleMatcherExprOptions recaptchaOptions */ + recaptchaOptions?: (google.cloud.compute.v1.ISecurityPolicyRuleMatcherExprOptionsRecaptchaOptions|null); + } + + /** Represents a SecurityPolicyRuleMatcherExprOptions. */ + class SecurityPolicyRuleMatcherExprOptions implements ISecurityPolicyRuleMatcherExprOptions { + + /** + * Constructs a new SecurityPolicyRuleMatcherExprOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ISecurityPolicyRuleMatcherExprOptions); + + /** SecurityPolicyRuleMatcherExprOptions recaptchaOptions. */ + public recaptchaOptions?: (google.cloud.compute.v1.ISecurityPolicyRuleMatcherExprOptionsRecaptchaOptions|null); + + /** SecurityPolicyRuleMatcherExprOptions _recaptchaOptions. */ + public _recaptchaOptions?: "recaptchaOptions"; + + /** + * Creates a new SecurityPolicyRuleMatcherExprOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns SecurityPolicyRuleMatcherExprOptions instance + */ + public static create(properties?: google.cloud.compute.v1.ISecurityPolicyRuleMatcherExprOptions): google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptions; + + /** + * Encodes the specified SecurityPolicyRuleMatcherExprOptions message. Does not implicitly {@link google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptions.verify|verify} messages. + * @param message SecurityPolicyRuleMatcherExprOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ISecurityPolicyRuleMatcherExprOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SecurityPolicyRuleMatcherExprOptions message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptions.verify|verify} messages. + * @param message SecurityPolicyRuleMatcherExprOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ISecurityPolicyRuleMatcherExprOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SecurityPolicyRuleMatcherExprOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SecurityPolicyRuleMatcherExprOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptions; + + /** + * Decodes a SecurityPolicyRuleMatcherExprOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SecurityPolicyRuleMatcherExprOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptions; + + /** + * Verifies a SecurityPolicyRuleMatcherExprOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SecurityPolicyRuleMatcherExprOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SecurityPolicyRuleMatcherExprOptions + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptions; + + /** + * Creates a plain object from a SecurityPolicyRuleMatcherExprOptions message. Also converts values to other types if specified. + * @param message SecurityPolicyRuleMatcherExprOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SecurityPolicyRuleMatcherExprOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SecurityPolicyRuleMatcherExprOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions. */ + interface ISecurityPolicyRuleMatcherExprOptionsRecaptchaOptions { + + /** SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions actionTokenSiteKeys */ + actionTokenSiteKeys?: (string[]|null); + + /** SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions sessionTokenSiteKeys */ + sessionTokenSiteKeys?: (string[]|null); + } + + /** Represents a SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions. */ + class SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions implements ISecurityPolicyRuleMatcherExprOptionsRecaptchaOptions { + + /** + * Constructs a new SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ISecurityPolicyRuleMatcherExprOptionsRecaptchaOptions); + + /** SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions actionTokenSiteKeys. */ + public actionTokenSiteKeys: string[]; + + /** SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions sessionTokenSiteKeys. */ + public sessionTokenSiteKeys: string[]; + + /** + * Creates a new SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions instance + */ + public static create(properties?: google.cloud.compute.v1.ISecurityPolicyRuleMatcherExprOptionsRecaptchaOptions): google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions; + + /** + * Encodes the specified SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions message. Does not implicitly {@link google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions.verify|verify} messages. + * @param message SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ISecurityPolicyRuleMatcherExprOptionsRecaptchaOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions.verify|verify} messages. + * @param message SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ISecurityPolicyRuleMatcherExprOptionsRecaptchaOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions; + + /** + * Decodes a SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions; + + /** + * Verifies a SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions; + + /** + * Creates a plain object from a SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions message. Also converts values to other types if specified. + * @param message SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a SecurityPolicyRuleNetworkMatcher. */ interface ISecurityPolicyRuleNetworkMatcher { @@ -149889,6 +151153,8 @@ export namespace google { IP = 2343, REGION_CODE = 79559768, SNI = 82254, + TLS_JA3_FINGERPRINT = 327127933, + USER_IP = 34009627, XFF_IP = 438707118 } } @@ -150014,6 +151280,8 @@ export namespace google { IP = 2343, REGION_CODE = 79559768, SNI = 82254, + TLS_JA3_FINGERPRINT = 327127933, + USER_IP = 34009627, XFF_IP = 438707118 } } @@ -163054,6 +164322,9 @@ export namespace google { /** SimulateMaintenanceEventInstanceRequest requestId */ requestId?: (string|null); + /** SimulateMaintenanceEventInstanceRequest withExtendedNotifications */ + withExtendedNotifications?: (boolean|null); + /** SimulateMaintenanceEventInstanceRequest zone */ zone?: (string|null); } @@ -163076,12 +164347,18 @@ export namespace google { /** SimulateMaintenanceEventInstanceRequest requestId. */ public requestId?: (string|null); + /** SimulateMaintenanceEventInstanceRequest withExtendedNotifications. */ + public withExtendedNotifications?: (boolean|null); + /** SimulateMaintenanceEventInstanceRequest zone. */ public zone: string; /** SimulateMaintenanceEventInstanceRequest _requestId. */ public _requestId?: "requestId"; + /** SimulateMaintenanceEventInstanceRequest _withExtendedNotifications. */ + public _withExtendedNotifications?: "withExtendedNotifications"; + /** * Creates a new SimulateMaintenanceEventInstanceRequest instance using the specified properties. * @param [properties] Properties to set @@ -163311,6 +164588,9 @@ export namespace google { /** Snapshot downloadBytes */ downloadBytes?: (number|Long|string|null); + /** Snapshot enableConfidentialCompute */ + enableConfidentialCompute?: (boolean|null); + /** Snapshot guestOsFeatures */ guestOsFeatures?: (google.cloud.compute.v1.IGuestOsFeature[]|null); @@ -163338,6 +164618,9 @@ export namespace google { /** Snapshot name */ name?: (string|null); + /** Snapshot satisfiesPzi */ + satisfiesPzi?: (boolean|null); + /** Snapshot satisfiesPzs */ satisfiesPzs?: (boolean|null); @@ -163414,6 +164697,9 @@ export namespace google { /** Snapshot downloadBytes. */ public downloadBytes?: (number|Long|string|null); + /** Snapshot enableConfidentialCompute. */ + public enableConfidentialCompute?: (boolean|null); + /** Snapshot guestOsFeatures. */ public guestOsFeatures: google.cloud.compute.v1.IGuestOsFeature[]; @@ -163441,6 +164727,9 @@ export namespace google { /** Snapshot name. */ public name?: (string|null); + /** Snapshot satisfiesPzi. */ + public satisfiesPzi?: (boolean|null); + /** Snapshot satisfiesPzs. */ public satisfiesPzs?: (boolean|null); @@ -163507,6 +164796,9 @@ export namespace google { /** Snapshot _downloadBytes. */ public _downloadBytes?: "downloadBytes"; + /** Snapshot _enableConfidentialCompute. */ + public _enableConfidentialCompute?: "enableConfidentialCompute"; + /** Snapshot _id. */ public _id?: "id"; @@ -163522,6 +164814,9 @@ export namespace google { /** Snapshot _name. */ public _name?: "name"; + /** Snapshot _satisfiesPzi. */ + public _satisfiesPzi?: "satisfiesPzi"; + /** Snapshot _satisfiesPzs. */ public _satisfiesPzs?: "satisfiesPzs"; @@ -167923,6 +169218,9 @@ export namespace google { /** Subnetwork region */ region?: (string|null); + /** Subnetwork reservedInternalRange */ + reservedInternalRange?: (string|null); + /** Subnetwork role */ role?: (string|null); @@ -168005,6 +169303,9 @@ export namespace google { /** Subnetwork region. */ public region?: (string|null); + /** Subnetwork reservedInternalRange. */ + public reservedInternalRange?: (string|null); + /** Subnetwork role. */ public role?: (string|null); @@ -168077,6 +169378,9 @@ export namespace google { /** Subnetwork _region. */ public _region?: "region"; + /** Subnetwork _reservedInternalRange. */ + public _reservedInternalRange?: "reservedInternalRange"; + /** Subnetwork _role. */ public _role?: "role"; @@ -168682,6 +169986,9 @@ export namespace google { /** SubnetworkSecondaryRange rangeName */ rangeName?: (string|null); + + /** SubnetworkSecondaryRange reservedInternalRange */ + reservedInternalRange?: (string|null); } /** Represents a SubnetworkSecondaryRange. */ @@ -168699,12 +170006,18 @@ export namespace google { /** SubnetworkSecondaryRange rangeName. */ public rangeName?: (string|null); + /** SubnetworkSecondaryRange reservedInternalRange. */ + public reservedInternalRange?: (string|null); + /** SubnetworkSecondaryRange _ipCidrRange. */ public _ipCidrRange?: "ipCidrRange"; /** SubnetworkSecondaryRange _rangeName. */ public _rangeName?: "rangeName"; + /** SubnetworkSecondaryRange _reservedInternalRange. */ + public _reservedInternalRange?: "reservedInternalRange"; + /** * Creates a new SubnetworkSecondaryRange instance using the specified properties. * @param [properties] Properties to set @@ -193643,6 +194956,20 @@ export namespace google { */ public listReferrers(request: google.cloud.compute.v1.IListReferrersInstancesRequest): Promise; + /** + * Calls PerformMaintenance. + * @param request PerformMaintenanceInstanceRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public performMaintenance(request: google.cloud.compute.v1.IPerformMaintenanceInstanceRequest, callback: google.cloud.compute.v1.Instances.PerformMaintenanceCallback): void; + + /** + * Calls PerformMaintenance. + * @param request PerformMaintenanceInstanceRequest message or plain object + * @returns Promise + */ + public performMaintenance(request: google.cloud.compute.v1.IPerformMaintenanceInstanceRequest): Promise; + /** * Calls RemoveResourcePolicies. * @param request RemoveResourcePoliciesInstanceRequest message or plain object @@ -194178,6 +195505,13 @@ export namespace google { */ type ListReferrersCallback = (error: (Error|null), response?: google.cloud.compute.v1.InstanceListReferrers) => void; + /** + * Callback as used by {@link google.cloud.compute.v1.Instances|performMaintenance}. + * @param error Error, if any + * @param [response] Operation + */ + type PerformMaintenanceCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; + /** * Callback as used by {@link google.cloud.compute.v1.Instances|removeResourcePolicies}. * @param error Error, if any @@ -201753,6 +203087,51 @@ export namespace google { type ValidateCallback = (error: (Error|null), response?: google.cloud.compute.v1.UrlMapsValidateResponse) => void; } + /** Represents a RegionZones */ + class RegionZones extends $protobuf.rpc.Service { + + /** + * Constructs a new RegionZones service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new RegionZones service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): RegionZones; + + /** + * Calls List. + * @param request ListRegionZonesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ZoneList + */ + public list(request: google.cloud.compute.v1.IListRegionZonesRequest, callback: google.cloud.compute.v1.RegionZones.ListCallback): void; + + /** + * Calls List. + * @param request ListRegionZonesRequest message or plain object + * @returns Promise + */ + public list(request: google.cloud.compute.v1.IListRegionZonesRequest): Promise; + } + + namespace RegionZones { + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionZones|list}. + * @param error Error, if any + * @param [response] ZoneList + */ + type ListCallback = (error: (Error|null), response?: google.cloud.compute.v1.ZoneList) => void; + } + /** Represents a Regions */ class Regions extends $protobuf.rpc.Service { diff --git a/packages/google-cloud-compute/protos/protos.js b/packages/google-cloud-compute/protos/protos.js index 9b2b4dc5fbf..77a2955f67d 100644 --- a/packages/google-cloud-compute/protos/protos.js +++ b/packages/google-cloud-compute/protos/protos.js @@ -42945,6 +42945,877 @@ return AliasIpRange; })(); + v1.AllocationAggregateReservation = (function() { + + /** + * Properties of an AllocationAggregateReservation. + * @memberof google.cloud.compute.v1 + * @interface IAllocationAggregateReservation + * @property {Array.|null} [inUseResources] AllocationAggregateReservation inUseResources + * @property {Array.|null} [reservedResources] AllocationAggregateReservation reservedResources + * @property {string|null} [vmFamily] AllocationAggregateReservation vmFamily + * @property {string|null} [workloadType] AllocationAggregateReservation workloadType + */ + + /** + * Constructs a new AllocationAggregateReservation. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an AllocationAggregateReservation. + * @implements IAllocationAggregateReservation + * @constructor + * @param {google.cloud.compute.v1.IAllocationAggregateReservation=} [properties] Properties to set + */ + function AllocationAggregateReservation(properties) { + this.inUseResources = []; + this.reservedResources = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * AllocationAggregateReservation inUseResources. + * @member {Array.} inUseResources + * @memberof google.cloud.compute.v1.AllocationAggregateReservation + * @instance + */ + AllocationAggregateReservation.prototype.inUseResources = $util.emptyArray; + + /** + * AllocationAggregateReservation reservedResources. + * @member {Array.} reservedResources + * @memberof google.cloud.compute.v1.AllocationAggregateReservation + * @instance + */ + AllocationAggregateReservation.prototype.reservedResources = $util.emptyArray; + + /** + * AllocationAggregateReservation vmFamily. + * @member {string|null|undefined} vmFamily + * @memberof google.cloud.compute.v1.AllocationAggregateReservation + * @instance + */ + AllocationAggregateReservation.prototype.vmFamily = null; + + /** + * AllocationAggregateReservation workloadType. + * @member {string|null|undefined} workloadType + * @memberof google.cloud.compute.v1.AllocationAggregateReservation + * @instance + */ + AllocationAggregateReservation.prototype.workloadType = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * AllocationAggregateReservation _vmFamily. + * @member {"vmFamily"|undefined} _vmFamily + * @memberof google.cloud.compute.v1.AllocationAggregateReservation + * @instance + */ + Object.defineProperty(AllocationAggregateReservation.prototype, "_vmFamily", { + get: $util.oneOfGetter($oneOfFields = ["vmFamily"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * AllocationAggregateReservation _workloadType. + * @member {"workloadType"|undefined} _workloadType + * @memberof google.cloud.compute.v1.AllocationAggregateReservation + * @instance + */ + Object.defineProperty(AllocationAggregateReservation.prototype, "_workloadType", { + get: $util.oneOfGetter($oneOfFields = ["workloadType"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new AllocationAggregateReservation instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.AllocationAggregateReservation + * @static + * @param {google.cloud.compute.v1.IAllocationAggregateReservation=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AllocationAggregateReservation} AllocationAggregateReservation instance + */ + AllocationAggregateReservation.create = function create(properties) { + return new AllocationAggregateReservation(properties); + }; + + /** + * Encodes the specified AllocationAggregateReservation message. Does not implicitly {@link google.cloud.compute.v1.AllocationAggregateReservation.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.AllocationAggregateReservation + * @static + * @param {google.cloud.compute.v1.IAllocationAggregateReservation} message AllocationAggregateReservation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AllocationAggregateReservation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.vmFamily != null && Object.hasOwnProperty.call(message, "vmFamily")) + writer.uint32(/* id 125017580, wireType 2 =*/1000140642).string(message.vmFamily); + if (message.reservedResources != null && message.reservedResources.length) + for (var i = 0; i < message.reservedResources.length; ++i) + $root.google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo.encode(message.reservedResources[i], writer.uint32(/* id 213217742, wireType 2 =*/1705741938).fork()).ldelim(); + if (message.workloadType != null && Object.hasOwnProperty.call(message, "workloadType")) + writer.uint32(/* id 273432322, wireType 2 =*/2187458578).string(message.workloadType); + if (message.inUseResources != null && message.inUseResources.length) + for (var i = 0; i < message.inUseResources.length; ++i) + $root.google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo.encode(message.inUseResources[i], writer.uint32(/* id 409009107, wireType 2 =*/3272072858).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified AllocationAggregateReservation message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AllocationAggregateReservation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.AllocationAggregateReservation + * @static + * @param {google.cloud.compute.v1.IAllocationAggregateReservation} message AllocationAggregateReservation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AllocationAggregateReservation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AllocationAggregateReservation message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.AllocationAggregateReservation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.AllocationAggregateReservation} AllocationAggregateReservation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AllocationAggregateReservation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AllocationAggregateReservation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 409009107: { + if (!(message.inUseResources && message.inUseResources.length)) + message.inUseResources = []; + message.inUseResources.push($root.google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo.decode(reader, reader.uint32())); + break; + } + case 213217742: { + if (!(message.reservedResources && message.reservedResources.length)) + message.reservedResources = []; + message.reservedResources.push($root.google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo.decode(reader, reader.uint32())); + break; + } + case 125017580: { + message.vmFamily = reader.string(); + break; + } + case 273432322: { + message.workloadType = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AllocationAggregateReservation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.AllocationAggregateReservation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.AllocationAggregateReservation} AllocationAggregateReservation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AllocationAggregateReservation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AllocationAggregateReservation message. + * @function verify + * @memberof google.cloud.compute.v1.AllocationAggregateReservation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AllocationAggregateReservation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.inUseResources != null && message.hasOwnProperty("inUseResources")) { + if (!Array.isArray(message.inUseResources)) + return "inUseResources: array expected"; + for (var i = 0; i < message.inUseResources.length; ++i) { + var error = $root.google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo.verify(message.inUseResources[i]); + if (error) + return "inUseResources." + error; + } + } + if (message.reservedResources != null && message.hasOwnProperty("reservedResources")) { + if (!Array.isArray(message.reservedResources)) + return "reservedResources: array expected"; + for (var i = 0; i < message.reservedResources.length; ++i) { + var error = $root.google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo.verify(message.reservedResources[i]); + if (error) + return "reservedResources." + error; + } + } + if (message.vmFamily != null && message.hasOwnProperty("vmFamily")) { + properties._vmFamily = 1; + if (!$util.isString(message.vmFamily)) + return "vmFamily: string expected"; + } + if (message.workloadType != null && message.hasOwnProperty("workloadType")) { + properties._workloadType = 1; + if (!$util.isString(message.workloadType)) + return "workloadType: string expected"; + } + return null; + }; + + /** + * Creates an AllocationAggregateReservation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.AllocationAggregateReservation + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.AllocationAggregateReservation} AllocationAggregateReservation + */ + AllocationAggregateReservation.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AllocationAggregateReservation) + return object; + var message = new $root.google.cloud.compute.v1.AllocationAggregateReservation(); + if (object.inUseResources) { + if (!Array.isArray(object.inUseResources)) + throw TypeError(".google.cloud.compute.v1.AllocationAggregateReservation.inUseResources: array expected"); + message.inUseResources = []; + for (var i = 0; i < object.inUseResources.length; ++i) { + if (typeof object.inUseResources[i] !== "object") + throw TypeError(".google.cloud.compute.v1.AllocationAggregateReservation.inUseResources: object expected"); + message.inUseResources[i] = $root.google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo.fromObject(object.inUseResources[i]); + } + } + if (object.reservedResources) { + if (!Array.isArray(object.reservedResources)) + throw TypeError(".google.cloud.compute.v1.AllocationAggregateReservation.reservedResources: array expected"); + message.reservedResources = []; + for (var i = 0; i < object.reservedResources.length; ++i) { + if (typeof object.reservedResources[i] !== "object") + throw TypeError(".google.cloud.compute.v1.AllocationAggregateReservation.reservedResources: object expected"); + message.reservedResources[i] = $root.google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo.fromObject(object.reservedResources[i]); + } + } + if (object.vmFamily != null) + message.vmFamily = String(object.vmFamily); + if (object.workloadType != null) + message.workloadType = String(object.workloadType); + return message; + }; + + /** + * Creates a plain object from an AllocationAggregateReservation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.AllocationAggregateReservation + * @static + * @param {google.cloud.compute.v1.AllocationAggregateReservation} message AllocationAggregateReservation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AllocationAggregateReservation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.reservedResources = []; + object.inUseResources = []; + } + if (message.vmFamily != null && message.hasOwnProperty("vmFamily")) { + object.vmFamily = message.vmFamily; + if (options.oneofs) + object._vmFamily = "vmFamily"; + } + if (message.reservedResources && message.reservedResources.length) { + object.reservedResources = []; + for (var j = 0; j < message.reservedResources.length; ++j) + object.reservedResources[j] = $root.google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo.toObject(message.reservedResources[j], options); + } + if (message.workloadType != null && message.hasOwnProperty("workloadType")) { + object.workloadType = message.workloadType; + if (options.oneofs) + object._workloadType = "workloadType"; + } + if (message.inUseResources && message.inUseResources.length) { + object.inUseResources = []; + for (var j = 0; j < message.inUseResources.length; ++j) + object.inUseResources[j] = $root.google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo.toObject(message.inUseResources[j], options); + } + return object; + }; + + /** + * Converts this AllocationAggregateReservation to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.AllocationAggregateReservation + * @instance + * @returns {Object.} JSON object + */ + AllocationAggregateReservation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for AllocationAggregateReservation + * @function getTypeUrl + * @memberof google.cloud.compute.v1.AllocationAggregateReservation + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AllocationAggregateReservation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.AllocationAggregateReservation"; + }; + + /** + * VmFamily enum. + * @name google.cloud.compute.v1.AllocationAggregateReservation.VmFamily + * @enum {number} + * @property {number} UNDEFINED_VM_FAMILY=0 UNDEFINED_VM_FAMILY value + * @property {number} VM_FAMILY_CLOUD_TPU_LITE_DEVICE_CT5L=108020067 VM_FAMILY_CLOUD_TPU_LITE_DEVICE_CT5L value + * @property {number} VM_FAMILY_CLOUD_TPU_LITE_POD_SLICE_CT5LP=18705267 VM_FAMILY_CLOUD_TPU_LITE_POD_SLICE_CT5LP value + * @property {number} VM_FAMILY_CLOUD_TPU_POD_SLICE_CT4P=517384407 VM_FAMILY_CLOUD_TPU_POD_SLICE_CT4P value + */ + AllocationAggregateReservation.VmFamily = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_VM_FAMILY"] = 0; + values[valuesById[108020067] = "VM_FAMILY_CLOUD_TPU_LITE_DEVICE_CT5L"] = 108020067; + values[valuesById[18705267] = "VM_FAMILY_CLOUD_TPU_LITE_POD_SLICE_CT5LP"] = 18705267; + values[valuesById[517384407] = "VM_FAMILY_CLOUD_TPU_POD_SLICE_CT4P"] = 517384407; + return values; + })(); + + /** + * WorkloadType enum. + * @name google.cloud.compute.v1.AllocationAggregateReservation.WorkloadType + * @enum {number} + * @property {number} UNDEFINED_WORKLOAD_TYPE=0 UNDEFINED_WORKLOAD_TYPE value + * @property {number} BATCH=62971674 BATCH value + * @property {number} SERVING=17781740 SERVING value + * @property {number} UNSPECIFIED=526786327 UNSPECIFIED value + */ + AllocationAggregateReservation.WorkloadType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_WORKLOAD_TYPE"] = 0; + values[valuesById[62971674] = "BATCH"] = 62971674; + values[valuesById[17781740] = "SERVING"] = 17781740; + values[valuesById[526786327] = "UNSPECIFIED"] = 526786327; + return values; + })(); + + return AllocationAggregateReservation; + })(); + + v1.AllocationAggregateReservationReservedResourceInfo = (function() { + + /** + * Properties of an AllocationAggregateReservationReservedResourceInfo. + * @memberof google.cloud.compute.v1 + * @interface IAllocationAggregateReservationReservedResourceInfo + * @property {google.cloud.compute.v1.IAllocationAggregateReservationReservedResourceInfoAccelerator|null} [accelerator] AllocationAggregateReservationReservedResourceInfo accelerator + */ + + /** + * Constructs a new AllocationAggregateReservationReservedResourceInfo. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an AllocationAggregateReservationReservedResourceInfo. + * @implements IAllocationAggregateReservationReservedResourceInfo + * @constructor + * @param {google.cloud.compute.v1.IAllocationAggregateReservationReservedResourceInfo=} [properties] Properties to set + */ + function AllocationAggregateReservationReservedResourceInfo(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * AllocationAggregateReservationReservedResourceInfo accelerator. + * @member {google.cloud.compute.v1.IAllocationAggregateReservationReservedResourceInfoAccelerator|null|undefined} accelerator + * @memberof google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo + * @instance + */ + AllocationAggregateReservationReservedResourceInfo.prototype.accelerator = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * AllocationAggregateReservationReservedResourceInfo _accelerator. + * @member {"accelerator"|undefined} _accelerator + * @memberof google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo + * @instance + */ + Object.defineProperty(AllocationAggregateReservationReservedResourceInfo.prototype, "_accelerator", { + get: $util.oneOfGetter($oneOfFields = ["accelerator"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new AllocationAggregateReservationReservedResourceInfo instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo + * @static + * @param {google.cloud.compute.v1.IAllocationAggregateReservationReservedResourceInfo=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo} AllocationAggregateReservationReservedResourceInfo instance + */ + AllocationAggregateReservationReservedResourceInfo.create = function create(properties) { + return new AllocationAggregateReservationReservedResourceInfo(properties); + }; + + /** + * Encodes the specified AllocationAggregateReservationReservedResourceInfo message. Does not implicitly {@link google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo + * @static + * @param {google.cloud.compute.v1.IAllocationAggregateReservationReservedResourceInfo} message AllocationAggregateReservationReservedResourceInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AllocationAggregateReservationReservedResourceInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.accelerator != null && Object.hasOwnProperty.call(message, "accelerator")) + $root.google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfoAccelerator.encode(message.accelerator, writer.uint32(/* id 424338027, wireType 2 =*/3394704218).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified AllocationAggregateReservationReservedResourceInfo message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo + * @static + * @param {google.cloud.compute.v1.IAllocationAggregateReservationReservedResourceInfo} message AllocationAggregateReservationReservedResourceInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AllocationAggregateReservationReservedResourceInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AllocationAggregateReservationReservedResourceInfo message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo} AllocationAggregateReservationReservedResourceInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AllocationAggregateReservationReservedResourceInfo.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 424338027: { + message.accelerator = $root.google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfoAccelerator.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AllocationAggregateReservationReservedResourceInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo} AllocationAggregateReservationReservedResourceInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AllocationAggregateReservationReservedResourceInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AllocationAggregateReservationReservedResourceInfo message. + * @function verify + * @memberof google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AllocationAggregateReservationReservedResourceInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.accelerator != null && message.hasOwnProperty("accelerator")) { + properties._accelerator = 1; + { + var error = $root.google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfoAccelerator.verify(message.accelerator); + if (error) + return "accelerator." + error; + } + } + return null; + }; + + /** + * Creates an AllocationAggregateReservationReservedResourceInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo} AllocationAggregateReservationReservedResourceInfo + */ + AllocationAggregateReservationReservedResourceInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo) + return object; + var message = new $root.google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo(); + if (object.accelerator != null) { + if (typeof object.accelerator !== "object") + throw TypeError(".google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo.accelerator: object expected"); + message.accelerator = $root.google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfoAccelerator.fromObject(object.accelerator); + } + return message; + }; + + /** + * Creates a plain object from an AllocationAggregateReservationReservedResourceInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo + * @static + * @param {google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo} message AllocationAggregateReservationReservedResourceInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AllocationAggregateReservationReservedResourceInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.accelerator != null && message.hasOwnProperty("accelerator")) { + object.accelerator = $root.google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfoAccelerator.toObject(message.accelerator, options); + if (options.oneofs) + object._accelerator = "accelerator"; + } + return object; + }; + + /** + * Converts this AllocationAggregateReservationReservedResourceInfo to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo + * @instance + * @returns {Object.} JSON object + */ + AllocationAggregateReservationReservedResourceInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for AllocationAggregateReservationReservedResourceInfo + * @function getTypeUrl + * @memberof google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AllocationAggregateReservationReservedResourceInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfo"; + }; + + return AllocationAggregateReservationReservedResourceInfo; + })(); + + v1.AllocationAggregateReservationReservedResourceInfoAccelerator = (function() { + + /** + * Properties of an AllocationAggregateReservationReservedResourceInfoAccelerator. + * @memberof google.cloud.compute.v1 + * @interface IAllocationAggregateReservationReservedResourceInfoAccelerator + * @property {number|null} [acceleratorCount] AllocationAggregateReservationReservedResourceInfoAccelerator acceleratorCount + * @property {string|null} [acceleratorType] AllocationAggregateReservationReservedResourceInfoAccelerator acceleratorType + */ + + /** + * Constructs a new AllocationAggregateReservationReservedResourceInfoAccelerator. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an AllocationAggregateReservationReservedResourceInfoAccelerator. + * @implements IAllocationAggregateReservationReservedResourceInfoAccelerator + * @constructor + * @param {google.cloud.compute.v1.IAllocationAggregateReservationReservedResourceInfoAccelerator=} [properties] Properties to set + */ + function AllocationAggregateReservationReservedResourceInfoAccelerator(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * AllocationAggregateReservationReservedResourceInfoAccelerator acceleratorCount. + * @member {number|null|undefined} acceleratorCount + * @memberof google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfoAccelerator + * @instance + */ + AllocationAggregateReservationReservedResourceInfoAccelerator.prototype.acceleratorCount = null; + + /** + * AllocationAggregateReservationReservedResourceInfoAccelerator acceleratorType. + * @member {string|null|undefined} acceleratorType + * @memberof google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfoAccelerator + * @instance + */ + AllocationAggregateReservationReservedResourceInfoAccelerator.prototype.acceleratorType = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * AllocationAggregateReservationReservedResourceInfoAccelerator _acceleratorCount. + * @member {"acceleratorCount"|undefined} _acceleratorCount + * @memberof google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfoAccelerator + * @instance + */ + Object.defineProperty(AllocationAggregateReservationReservedResourceInfoAccelerator.prototype, "_acceleratorCount", { + get: $util.oneOfGetter($oneOfFields = ["acceleratorCount"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * AllocationAggregateReservationReservedResourceInfoAccelerator _acceleratorType. + * @member {"acceleratorType"|undefined} _acceleratorType + * @memberof google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfoAccelerator + * @instance + */ + Object.defineProperty(AllocationAggregateReservationReservedResourceInfoAccelerator.prototype, "_acceleratorType", { + get: $util.oneOfGetter($oneOfFields = ["acceleratorType"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new AllocationAggregateReservationReservedResourceInfoAccelerator instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfoAccelerator + * @static + * @param {google.cloud.compute.v1.IAllocationAggregateReservationReservedResourceInfoAccelerator=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfoAccelerator} AllocationAggregateReservationReservedResourceInfoAccelerator instance + */ + AllocationAggregateReservationReservedResourceInfoAccelerator.create = function create(properties) { + return new AllocationAggregateReservationReservedResourceInfoAccelerator(properties); + }; + + /** + * Encodes the specified AllocationAggregateReservationReservedResourceInfoAccelerator message. Does not implicitly {@link google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfoAccelerator.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfoAccelerator + * @static + * @param {google.cloud.compute.v1.IAllocationAggregateReservationReservedResourceInfoAccelerator} message AllocationAggregateReservationReservedResourceInfoAccelerator message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AllocationAggregateReservationReservedResourceInfoAccelerator.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.acceleratorType != null && Object.hasOwnProperty.call(message, "acceleratorType")) + writer.uint32(/* id 138031246, wireType 2 =*/1104249970).string(message.acceleratorType); + if (message.acceleratorCount != null && Object.hasOwnProperty.call(message, "acceleratorCount")) + writer.uint32(/* id 504879675, wireType 0 =*/4039037400).int32(message.acceleratorCount); + return writer; + }; + + /** + * Encodes the specified AllocationAggregateReservationReservedResourceInfoAccelerator message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfoAccelerator.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfoAccelerator + * @static + * @param {google.cloud.compute.v1.IAllocationAggregateReservationReservedResourceInfoAccelerator} message AllocationAggregateReservationReservedResourceInfoAccelerator message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AllocationAggregateReservationReservedResourceInfoAccelerator.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AllocationAggregateReservationReservedResourceInfoAccelerator message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfoAccelerator + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfoAccelerator} AllocationAggregateReservationReservedResourceInfoAccelerator + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AllocationAggregateReservationReservedResourceInfoAccelerator.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfoAccelerator(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 504879675: { + message.acceleratorCount = reader.int32(); + break; + } + case 138031246: { + message.acceleratorType = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AllocationAggregateReservationReservedResourceInfoAccelerator message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfoAccelerator + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfoAccelerator} AllocationAggregateReservationReservedResourceInfoAccelerator + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AllocationAggregateReservationReservedResourceInfoAccelerator.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AllocationAggregateReservationReservedResourceInfoAccelerator message. + * @function verify + * @memberof google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfoAccelerator + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AllocationAggregateReservationReservedResourceInfoAccelerator.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.acceleratorCount != null && message.hasOwnProperty("acceleratorCount")) { + properties._acceleratorCount = 1; + if (!$util.isInteger(message.acceleratorCount)) + return "acceleratorCount: integer expected"; + } + if (message.acceleratorType != null && message.hasOwnProperty("acceleratorType")) { + properties._acceleratorType = 1; + if (!$util.isString(message.acceleratorType)) + return "acceleratorType: string expected"; + } + return null; + }; + + /** + * Creates an AllocationAggregateReservationReservedResourceInfoAccelerator message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfoAccelerator + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfoAccelerator} AllocationAggregateReservationReservedResourceInfoAccelerator + */ + AllocationAggregateReservationReservedResourceInfoAccelerator.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfoAccelerator) + return object; + var message = new $root.google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfoAccelerator(); + if (object.acceleratorCount != null) + message.acceleratorCount = object.acceleratorCount | 0; + if (object.acceleratorType != null) + message.acceleratorType = String(object.acceleratorType); + return message; + }; + + /** + * Creates a plain object from an AllocationAggregateReservationReservedResourceInfoAccelerator message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfoAccelerator + * @static + * @param {google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfoAccelerator} message AllocationAggregateReservationReservedResourceInfoAccelerator + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AllocationAggregateReservationReservedResourceInfoAccelerator.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.acceleratorType != null && message.hasOwnProperty("acceleratorType")) { + object.acceleratorType = message.acceleratorType; + if (options.oneofs) + object._acceleratorType = "acceleratorType"; + } + if (message.acceleratorCount != null && message.hasOwnProperty("acceleratorCount")) { + object.acceleratorCount = message.acceleratorCount; + if (options.oneofs) + object._acceleratorCount = "acceleratorCount"; + } + return object; + }; + + /** + * Converts this AllocationAggregateReservationReservedResourceInfoAccelerator to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfoAccelerator + * @instance + * @returns {Object.} JSON object + */ + AllocationAggregateReservationReservedResourceInfoAccelerator.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for AllocationAggregateReservationReservedResourceInfoAccelerator + * @function getTypeUrl + * @memberof google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfoAccelerator + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AllocationAggregateReservationReservedResourceInfoAccelerator.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.AllocationAggregateReservationReservedResourceInfoAccelerator"; + }; + + return AllocationAggregateReservationReservedResourceInfoAccelerator; + })(); + v1.AllocationResourceStatus = (function() { /** @@ -48144,6 +49015,7 @@ * @property {string|null} [diskName] AttachedDiskInitializeParams diskName * @property {number|Long|null} [diskSizeGb] AttachedDiskInitializeParams diskSizeGb * @property {string|null} [diskType] AttachedDiskInitializeParams diskType + * @property {boolean|null} [enableConfidentialCompute] AttachedDiskInitializeParams enableConfidentialCompute * @property {Object.|null} [labels] AttachedDiskInitializeParams labels * @property {Array.|null} [licenses] AttachedDiskInitializeParams licenses * @property {string|null} [onUpdateAction] AttachedDiskInitializeParams onUpdateAction @@ -48218,6 +49090,14 @@ */ AttachedDiskInitializeParams.prototype.diskType = null; + /** + * AttachedDiskInitializeParams enableConfidentialCompute. + * @member {boolean|null|undefined} enableConfidentialCompute + * @memberof google.cloud.compute.v1.AttachedDiskInitializeParams + * @instance + */ + AttachedDiskInitializeParams.prototype.enableConfidentialCompute = null; + /** * AttachedDiskInitializeParams labels. * @member {Object.} labels @@ -48372,6 +49252,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * AttachedDiskInitializeParams _enableConfidentialCompute. + * @member {"enableConfidentialCompute"|undefined} _enableConfidentialCompute + * @memberof google.cloud.compute.v1.AttachedDiskInitializeParams + * @instance + */ + Object.defineProperty(AttachedDiskInitializeParams.prototype, "_enableConfidentialCompute", { + get: $util.oneOfGetter($oneOfFields = ["enableConfidentialCompute"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * AttachedDiskInitializeParams _onUpdateAction. * @member {"onUpdateAction"|undefined} _onUpdateAction @@ -48485,6 +49376,8 @@ writer.uint32(/* id 92807149, wireType 2 =*/742457194).string(message.diskName); if (message.diskType != null && Object.hasOwnProperty.call(message, "diskType")) writer.uint32(/* id 93009052, wireType 2 =*/744072418).string(message.diskType); + if (message.enableConfidentialCompute != null && Object.hasOwnProperty.call(message, "enableConfidentialCompute")) + writer.uint32(/* id 102135228, wireType 0 =*/817081824).bool(message.enableConfidentialCompute); if (message.sourceSnapshot != null && Object.hasOwnProperty.call(message, "sourceSnapshot")) writer.uint32(/* id 126061928, wireType 2 =*/1008495426).string(message.sourceSnapshot); if (message.provisionedIops != null && Object.hasOwnProperty.call(message, "provisionedIops")) @@ -48566,6 +49459,10 @@ message.diskType = reader.string(); break; } + case 102135228: { + message.enableConfidentialCompute = reader.bool(); + break; + } case 500195327: { if (message.labels === $util.emptyObject) message.labels = {}; @@ -48719,6 +49616,11 @@ if (!$util.isString(message.diskType)) return "diskType: string expected"; } + if (message.enableConfidentialCompute != null && message.hasOwnProperty("enableConfidentialCompute")) { + properties._enableConfidentialCompute = 1; + if (typeof message.enableConfidentialCompute !== "boolean") + return "enableConfidentialCompute: boolean expected"; + } if (message.labels != null && message.hasOwnProperty("labels")) { if (!$util.isObject(message.labels)) return "labels: object expected"; @@ -48829,6 +49731,8 @@ message.diskSizeGb = new $util.LongBits(object.diskSizeGb.low >>> 0, object.diskSizeGb.high >>> 0).toNumber(); if (object.diskType != null) message.diskType = String(object.diskType); + if (object.enableConfidentialCompute != null) + message.enableConfidentialCompute = Boolean(object.enableConfidentialCompute); if (object.labels) { if (typeof object.labels !== "object") throw TypeError(".google.cloud.compute.v1.AttachedDiskInitializeParams.labels: object expected"); @@ -48948,6 +49852,11 @@ if (options.oneofs) object._diskType = "diskType"; } + if (message.enableConfidentialCompute != null && message.hasOwnProperty("enableConfidentialCompute")) { + object.enableConfidentialCompute = message.enableConfidentialCompute; + if (options.oneofs) + object._enableConfidentialCompute = "enableConfidentialCompute"; + } if (message.sourceSnapshot != null && message.hasOwnProperty("sourceSnapshot")) { object.sourceSnapshot = message.sourceSnapshot; if (options.oneofs) @@ -72038,6 +72947,7 @@ * @property {string|null} [creationTimestamp] Commitment creationTimestamp * @property {string|null} [description] Commitment description * @property {string|null} [endTimestamp] Commitment endTimestamp + * @property {Array.|null} [existingReservations] Commitment existingReservations * @property {number|Long|null} [id] Commitment id * @property {string|null} [kind] Commitment kind * @property {google.cloud.compute.v1.ILicenseResourceCommitment|null} [licenseResource] Commitment licenseResource @@ -72064,6 +72974,7 @@ * @param {google.cloud.compute.v1.ICommitment=} [properties] Properties to set */ function Commitment(properties) { + this.existingReservations = []; this.mergeSourceCommitments = []; this.reservations = []; this.resources = []; @@ -72113,6 +73024,14 @@ */ Commitment.prototype.endTimestamp = null; + /** + * Commitment existingReservations. + * @member {Array.} existingReservations + * @memberof google.cloud.compute.v1.Commitment + * @instance + */ + Commitment.prototype.existingReservations = $util.emptyArray; + /** * Commitment id. * @member {number|Long|null|undefined} id @@ -72488,6 +73407,9 @@ writer.uint32(/* id 456214797, wireType 2 =*/3649718378).string(message.selfLink); if (message.endTimestamp != null && Object.hasOwnProperty.call(message, "endTimestamp")) writer.uint32(/* id 468096690, wireType 2 =*/3744773522).string(message.endTimestamp); + if (message.existingReservations != null && message.existingReservations.length) + for (var i = 0; i < message.existingReservations.length; ++i) + writer.uint32(/* id 493028443, wireType 2 =*/3944227546).string(message.existingReservations[i]); if (message.autoRenew != null && Object.hasOwnProperty.call(message, "autoRenew")) writer.uint32(/* id 495520765, wireType 0 =*/3964166120).bool(message.autoRenew); return writer; @@ -72544,6 +73466,12 @@ message.endTimestamp = reader.string(); break; } + case 493028443: { + if (!(message.existingReservations && message.existingReservations.length)) + message.existingReservations = []; + message.existingReservations.push(reader.string()); + break; + } case 3355: { message.id = reader.uint64(); break; @@ -72671,6 +73599,13 @@ if (!$util.isString(message.endTimestamp)) return "endTimestamp: string expected"; } + if (message.existingReservations != null && message.hasOwnProperty("existingReservations")) { + if (!Array.isArray(message.existingReservations)) + return "existingReservations: array expected"; + for (var i = 0; i < message.existingReservations.length; ++i) + if (!$util.isString(message.existingReservations[i])) + return "existingReservations: string[] expected"; + } if (message.id != null && message.hasOwnProperty("id")) { properties._id = 1; if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high))) @@ -72784,6 +73719,13 @@ message.description = String(object.description); if (object.endTimestamp != null) message.endTimestamp = String(object.endTimestamp); + if (object.existingReservations) { + if (!Array.isArray(object.existingReservations)) + throw TypeError(".google.cloud.compute.v1.Commitment.existingReservations: array expected"); + message.existingReservations = []; + for (var i = 0; i < object.existingReservations.length; ++i) + message.existingReservations[i] = String(object.existingReservations[i]); + } if (object.id != null) if ($util.Long) (message.id = $util.Long.fromValue(object.id)).unsigned = true; @@ -72865,6 +73807,7 @@ object.resources = []; object.mergeSourceCommitments = []; object.reservations = []; + object.existingReservations = []; } if (message.id != null && message.hasOwnProperty("id")) { if (typeof message.id === "number") @@ -72964,6 +73907,11 @@ if (options.oneofs) object._endTimestamp = "endTimestamp"; } + if (message.existingReservations && message.existingReservations.length) { + object.existingReservations = []; + for (var j = 0; j < message.existingReservations.length; ++j) + object.existingReservations[j] = message.existingReservations[j]; + } if (message.autoRenew != null && message.hasOwnProperty("autoRenew")) { object.autoRenew = message.autoRenew; if (options.oneofs) @@ -73076,6 +74024,7 @@ * @property {number} GRAPHICS_OPTIMIZED=68500563 GRAPHICS_OPTIMIZED value * @property {number} MEMORY_OPTIMIZED=281753417 MEMORY_OPTIMIZED value * @property {number} MEMORY_OPTIMIZED_M3=276301372 MEMORY_OPTIMIZED_M3 value + * @property {number} STORAGE_OPTIMIZED_Z3=316796085 STORAGE_OPTIMIZED_Z3 value * @property {number} TYPE_UNSPECIFIED=437714322 TYPE_UNSPECIFIED value */ Commitment.Type = (function() { @@ -73096,6 +74045,7 @@ values[valuesById[68500563] = "GRAPHICS_OPTIMIZED"] = 68500563; values[valuesById[281753417] = "MEMORY_OPTIMIZED"] = 281753417; values[valuesById[276301372] = "MEMORY_OPTIMIZED_M3"] = 276301372; + values[valuesById[316796085] = "STORAGE_OPTIMIZED_Z3"] = 316796085; values[valuesById[437714322] = "TYPE_UNSPECIFIED"] = 437714322; return values; })(); @@ -105381,6 +106331,7 @@ * @property {string|null} [creationTimestamp] Disk creationTimestamp * @property {string|null} [description] Disk description * @property {google.cloud.compute.v1.ICustomerEncryptionKey|null} [diskEncryptionKey] Disk diskEncryptionKey + * @property {boolean|null} [enableConfidentialCompute] Disk enableConfidentialCompute * @property {Array.|null} [guestOsFeatures] Disk guestOsFeatures * @property {number|Long|null} [id] Disk id * @property {string|null} [kind] Disk kind @@ -105401,6 +106352,7 @@ * @property {Array.|null} [replicaZones] Disk replicaZones * @property {Array.|null} [resourcePolicies] Disk resourcePolicies * @property {google.cloud.compute.v1.IDiskResourceStatus|null} [resourceStatus] Disk resourceStatus + * @property {boolean|null} [satisfiesPzi] Disk satisfiesPzi * @property {boolean|null} [satisfiesPzs] Disk satisfiesPzs * @property {string|null} [selfLink] Disk selfLink * @property {number|Long|null} [sizeGb] Disk sizeGb @@ -105492,6 +106444,14 @@ */ Disk.prototype.diskEncryptionKey = null; + /** + * Disk enableConfidentialCompute. + * @member {boolean|null|undefined} enableConfidentialCompute + * @memberof google.cloud.compute.v1.Disk + * @instance + */ + Disk.prototype.enableConfidentialCompute = null; + /** * Disk guestOsFeatures. * @member {Array.} guestOsFeatures @@ -105652,6 +106612,14 @@ */ Disk.prototype.resourceStatus = null; + /** + * Disk satisfiesPzi. + * @member {boolean|null|undefined} satisfiesPzi + * @memberof google.cloud.compute.v1.Disk + * @instance + */ + Disk.prototype.satisfiesPzi = null; + /** * Disk satisfiesPzs. * @member {boolean|null|undefined} satisfiesPzs @@ -105854,6 +106822,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * Disk _enableConfidentialCompute. + * @member {"enableConfidentialCompute"|undefined} _enableConfidentialCompute + * @memberof google.cloud.compute.v1.Disk + * @instance + */ + Object.defineProperty(Disk.prototype, "_enableConfidentialCompute", { + get: $util.oneOfGetter($oneOfFields = ["enableConfidentialCompute"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Disk _id. * @member {"id"|undefined} _id @@ -106008,6 +106987,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * Disk _satisfiesPzi. + * @member {"satisfiesPzi"|undefined} _satisfiesPzi + * @memberof google.cloud.compute.v1.Disk + * @instance + */ + Object.defineProperty(Disk.prototype, "_satisfiesPzi", { + get: $util.oneOfGetter($oneOfFields = ["satisfiesPzi"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Disk _satisfiesPzs. * @member {"satisfiesPzs"|undefined} _satisfiesPzs @@ -106260,6 +107250,8 @@ $root.google.cloud.compute.v1.GuestOsFeature.encode(message.guestOsFeatures[i], writer.uint32(/* id 79294545, wireType 2 =*/634356362).fork()).ldelim(); if (message.sourceSnapshotId != null && Object.hasOwnProperty.call(message, "sourceSnapshotId")) writer.uint32(/* id 98962258, wireType 2 =*/791698066).string(message.sourceSnapshotId); + if (message.enableConfidentialCompute != null && Object.hasOwnProperty.call(message, "enableConfidentialCompute")) + writer.uint32(/* id 102135228, wireType 0 =*/817081824).bool(message.enableConfidentialCompute); if (message.users != null && message.users.length) for (var i = 0; i < message.users.length; ++i) writer.uint32(/* id 111578632, wireType 2 =*/892629058).string(message.users[i]); @@ -106311,6 +107303,8 @@ writer.uint32(/* id 454190809, wireType 2 =*/3633526474).string(message.sourceDiskId); if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) writer.uint32(/* id 456214797, wireType 2 =*/3649718378).string(message.selfLink); + if (message.satisfiesPzi != null && Object.hasOwnProperty.call(message, "satisfiesPzi")) + writer.uint32(/* id 480964257, wireType 0 =*/3847714056).bool(message.satisfiesPzi); if (message.satisfiesPzs != null && Object.hasOwnProperty.call(message, "satisfiesPzs")) writer.uint32(/* id 480964267, wireType 0 =*/3847714136).bool(message.satisfiesPzs); if (message.sizeGb != null && Object.hasOwnProperty.call(message, "sizeGb")) @@ -106397,6 +107391,10 @@ message.diskEncryptionKey = $root.google.cloud.compute.v1.CustomerEncryptionKey.decode(reader, reader.uint32()); break; } + case 102135228: { + message.enableConfidentialCompute = reader.bool(); + break; + } case 79294545: { if (!(message.guestOsFeatures && message.guestOsFeatures.length)) message.guestOsFeatures = []; @@ -106511,6 +107509,10 @@ message.resourceStatus = $root.google.cloud.compute.v1.DiskResourceStatus.decode(reader, reader.uint32()); break; } + case 480964257: { + message.satisfiesPzi = reader.bool(); + break; + } case 480964267: { message.satisfiesPzs = reader.bool(); break; @@ -106662,6 +107664,11 @@ return "diskEncryptionKey." + error; } } + if (message.enableConfidentialCompute != null && message.hasOwnProperty("enableConfidentialCompute")) { + properties._enableConfidentialCompute = 1; + if (typeof message.enableConfidentialCompute !== "boolean") + return "enableConfidentialCompute: boolean expected"; + } if (message.guestOsFeatures != null && message.hasOwnProperty("guestOsFeatures")) { if (!Array.isArray(message.guestOsFeatures)) return "guestOsFeatures: array expected"; @@ -106783,6 +107790,11 @@ return "resourceStatus." + error; } } + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) { + properties._satisfiesPzi = 1; + if (typeof message.satisfiesPzi !== "boolean") + return "satisfiesPzi: boolean expected"; + } if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) { properties._satisfiesPzs = 1; if (typeof message.satisfiesPzs !== "boolean") @@ -106922,6 +107934,8 @@ throw TypeError(".google.cloud.compute.v1.Disk.diskEncryptionKey: object expected"); message.diskEncryptionKey = $root.google.cloud.compute.v1.CustomerEncryptionKey.fromObject(object.diskEncryptionKey); } + if (object.enableConfidentialCompute != null) + message.enableConfidentialCompute = Boolean(object.enableConfidentialCompute); if (object.guestOsFeatures) { if (!Array.isArray(object.guestOsFeatures)) throw TypeError(".google.cloud.compute.v1.Disk.guestOsFeatures: array expected"); @@ -107036,6 +108050,8 @@ throw TypeError(".google.cloud.compute.v1.Disk.resourceStatus: object expected"); message.resourceStatus = $root.google.cloud.compute.v1.DiskResourceStatus.fromObject(object.resourceStatus); } + if (object.satisfiesPzi != null) + message.satisfiesPzi = Boolean(object.satisfiesPzi); if (object.satisfiesPzs != null) message.satisfiesPzs = Boolean(object.satisfiesPzs); if (object.selfLink != null) @@ -107209,6 +108225,11 @@ if (options.oneofs) object._sourceSnapshotId = "sourceSnapshotId"; } + if (message.enableConfidentialCompute != null && message.hasOwnProperty("enableConfidentialCompute")) { + object.enableConfidentialCompute = message.enableConfidentialCompute; + if (options.oneofs) + object._enableConfidentialCompute = "enableConfidentialCompute"; + } if (message.users && message.users.length) { object.users = []; for (var j = 0; j < message.users.length; ++j) @@ -107331,6 +108352,11 @@ if (options.oneofs) object._selfLink = "selfLink"; } + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) { + object.satisfiesPzi = message.satisfiesPzi; + if (options.oneofs) + object._satisfiesPzi = "satisfiesPzi"; + } if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) { object.satisfiesPzs = message.satisfiesPzs; if (options.oneofs) @@ -122807,9 +123833,11 @@ * @property {number|null} [priority] FirewallPolicyRule priority * @property {string|null} [ruleName] FirewallPolicyRule ruleName * @property {number|null} [ruleTupleCount] FirewallPolicyRule ruleTupleCount + * @property {string|null} [securityProfileGroup] FirewallPolicyRule securityProfileGroup * @property {Array.|null} [targetResources] FirewallPolicyRule targetResources * @property {Array.|null} [targetSecureTags] FirewallPolicyRule targetSecureTags * @property {Array.|null} [targetServiceAccounts] FirewallPolicyRule targetServiceAccounts + * @property {boolean|null} [tlsInspect] FirewallPolicyRule tlsInspect */ /** @@ -122910,6 +123938,14 @@ */ FirewallPolicyRule.prototype.ruleTupleCount = null; + /** + * FirewallPolicyRule securityProfileGroup. + * @member {string|null|undefined} securityProfileGroup + * @memberof google.cloud.compute.v1.FirewallPolicyRule + * @instance + */ + FirewallPolicyRule.prototype.securityProfileGroup = null; + /** * FirewallPolicyRule targetResources. * @member {Array.} targetResources @@ -122934,6 +123970,14 @@ */ FirewallPolicyRule.prototype.targetServiceAccounts = $util.emptyArray; + /** + * FirewallPolicyRule tlsInspect. + * @member {boolean|null|undefined} tlsInspect + * @memberof google.cloud.compute.v1.FirewallPolicyRule + * @instance + */ + FirewallPolicyRule.prototype.tlsInspect = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -123047,6 +124091,28 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * FirewallPolicyRule _securityProfileGroup. + * @member {"securityProfileGroup"|undefined} _securityProfileGroup + * @memberof google.cloud.compute.v1.FirewallPolicyRule + * @instance + */ + Object.defineProperty(FirewallPolicyRule.prototype, "_securityProfileGroup", { + get: $util.oneOfGetter($oneOfFields = ["securityProfileGroup"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * FirewallPolicyRule _tlsInspect. + * @member {"tlsInspect"|undefined} _tlsInspect + * @memberof google.cloud.compute.v1.FirewallPolicyRule + * @instance + */ + Object.defineProperty(FirewallPolicyRule.prototype, "_tlsInspect", { + get: $util.oneOfGetter($oneOfFields = ["tlsInspect"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new FirewallPolicyRule instance using the specified properties. * @function create @@ -123073,6 +124139,8 @@ writer = $Writer.create(); if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) writer.uint32(/* id 3292052, wireType 2 =*/26336418).string(message.kind); + if (message.tlsInspect != null && Object.hasOwnProperty.call(message, "tlsInspect")) + writer.uint32(/* id 43425488, wireType 0 =*/347403904).bool(message.tlsInspect); if (message.ruleName != null && Object.hasOwnProperty.call(message, "ruleName")) writer.uint32(/* id 55286254, wireType 2 =*/442290034).string(message.ruleName); if (message.match != null && Object.hasOwnProperty.call(message, "match")) @@ -123081,6 +124149,8 @@ writer.uint32(/* id 111150975, wireType 2 =*/889207802).string(message.direction); if (message.action != null && Object.hasOwnProperty.call(message, "action")) writer.uint32(/* id 187661878, wireType 2 =*/1501295026).string(message.action); + if (message.securityProfileGroup != null && Object.hasOwnProperty.call(message, "securityProfileGroup")) + writer.uint32(/* id 207411626, wireType 2 =*/1659293010).string(message.securityProfileGroup); if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled")) writer.uint32(/* id 270940796, wireType 0 =*/2167526368).bool(message.disabled); if (message.enableLogging != null && Object.hasOwnProperty.call(message, "enableLogging")) @@ -123174,6 +124244,10 @@ message.ruleTupleCount = reader.int32(); break; } + case 207411626: { + message.securityProfileGroup = reader.string(); + break; + } case 528230647: { if (!(message.targetResources && message.targetResources.length)) message.targetResources = []; @@ -123192,6 +124266,10 @@ message.targetServiceAccounts.push(reader.string()); break; } + case 43425488: { + message.tlsInspect = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -123281,6 +124359,11 @@ if (!$util.isInteger(message.ruleTupleCount)) return "ruleTupleCount: integer expected"; } + if (message.securityProfileGroup != null && message.hasOwnProperty("securityProfileGroup")) { + properties._securityProfileGroup = 1; + if (!$util.isString(message.securityProfileGroup)) + return "securityProfileGroup: string expected"; + } if (message.targetResources != null && message.hasOwnProperty("targetResources")) { if (!Array.isArray(message.targetResources)) return "targetResources: array expected"; @@ -123304,6 +124387,11 @@ if (!$util.isString(message.targetServiceAccounts[i])) return "targetServiceAccounts: string[] expected"; } + if (message.tlsInspect != null && message.hasOwnProperty("tlsInspect")) { + properties._tlsInspect = 1; + if (typeof message.tlsInspect !== "boolean") + return "tlsInspect: boolean expected"; + } return null; }; @@ -123342,6 +124430,8 @@ message.ruleName = String(object.ruleName); if (object.ruleTupleCount != null) message.ruleTupleCount = object.ruleTupleCount | 0; + if (object.securityProfileGroup != null) + message.securityProfileGroup = String(object.securityProfileGroup); if (object.targetResources) { if (!Array.isArray(object.targetResources)) throw TypeError(".google.cloud.compute.v1.FirewallPolicyRule.targetResources: array expected"); @@ -123366,6 +124456,8 @@ for (var i = 0; i < object.targetServiceAccounts.length; ++i) message.targetServiceAccounts[i] = String(object.targetServiceAccounts[i]); } + if (object.tlsInspect != null) + message.tlsInspect = Boolean(object.tlsInspect); return message; }; @@ -123392,6 +124484,11 @@ if (options.oneofs) object._kind = "kind"; } + if (message.tlsInspect != null && message.hasOwnProperty("tlsInspect")) { + object.tlsInspect = message.tlsInspect; + if (options.oneofs) + object._tlsInspect = "tlsInspect"; + } if (message.ruleName != null && message.hasOwnProperty("ruleName")) { object.ruleName = message.ruleName; if (options.oneofs) @@ -123412,6 +124509,11 @@ if (options.oneofs) object._action = "action"; } + if (message.securityProfileGroup != null && message.hasOwnProperty("securityProfileGroup")) { + object.securityProfileGroup = message.securityProfileGroup; + if (options.oneofs) + object._securityProfileGroup = "securityProfileGroup"; + } if (message.disabled != null && message.hasOwnProperty("disabled")) { object.disabled = message.disabled; if (options.oneofs) @@ -166390,6 +167492,7 @@ * @property {number} UNDEFINED_TYPE=0 UNDEFINED_TYPE value * @property {number} FEATURE_TYPE_UNSPECIFIED=531767259 FEATURE_TYPE_UNSPECIFIED value * @property {number} GVNIC=68209305 GVNIC value + * @property {number} IDPF=2242641 IDPF value * @property {number} MULTI_IP_SUBNET=151776719 MULTI_IP_SUBNET value * @property {number} SECURE_BOOT=376811194 SECURE_BOOT value * @property {number} SEV_CAPABLE=87083793 SEV_CAPABLE value @@ -166405,6 +167508,7 @@ values[valuesById[0] = "UNDEFINED_TYPE"] = 0; values[valuesById[531767259] = "FEATURE_TYPE_UNSPECIFIED"] = 531767259; values[valuesById[68209305] = "GVNIC"] = 68209305; + values[valuesById[2242641] = "IDPF"] = 2242641; values[valuesById[151776719] = "MULTI_IP_SUBNET"] = 151776719; values[valuesById[376811194] = "SECURE_BOOT"] = 376811194; values[valuesById[87083793] = "SEV_CAPABLE"] = 87083793; @@ -178105,6 +179209,7 @@ * @property {google.cloud.compute.v1.IDeprecationStatus|null} [deprecated] Image deprecated * @property {string|null} [description] Image description * @property {number|Long|null} [diskSizeGb] Image diskSizeGb + * @property {boolean|null} [enableConfidentialCompute] Image enableConfidentialCompute * @property {string|null} [family] Image family * @property {Array.|null} [guestOsFeatures] Image guestOsFeatures * @property {number|Long|null} [id] Image id @@ -178116,6 +179221,7 @@ * @property {Array.|null} [licenses] Image licenses * @property {string|null} [name] Image name * @property {google.cloud.compute.v1.IRawDisk|null} [rawDisk] Image rawDisk + * @property {boolean|null} [satisfiesPzi] Image satisfiesPzi * @property {boolean|null} [satisfiesPzs] Image satisfiesPzs * @property {string|null} [selfLink] Image selfLink * @property {google.cloud.compute.v1.IInitialStateConfig|null} [shieldedInstanceInitialState] Image shieldedInstanceInitialState @@ -178201,6 +179307,14 @@ */ Image.prototype.diskSizeGb = null; + /** + * Image enableConfidentialCompute. + * @member {boolean|null|undefined} enableConfidentialCompute + * @memberof google.cloud.compute.v1.Image + * @instance + */ + Image.prototype.enableConfidentialCompute = null; + /** * Image family. * @member {string|null|undefined} family @@ -178289,6 +179403,14 @@ */ Image.prototype.rawDisk = null; + /** + * Image satisfiesPzi. + * @member {boolean|null|undefined} satisfiesPzi + * @memberof google.cloud.compute.v1.Image + * @instance + */ + Image.prototype.satisfiesPzi = null; + /** * Image satisfiesPzs. * @member {boolean|null|undefined} satisfiesPzs @@ -178478,6 +179600,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * Image _enableConfidentialCompute. + * @member {"enableConfidentialCompute"|undefined} _enableConfidentialCompute + * @memberof google.cloud.compute.v1.Image + * @instance + */ + Object.defineProperty(Image.prototype, "_enableConfidentialCompute", { + get: $util.oneOfGetter($oneOfFields = ["enableConfidentialCompute"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Image _family. * @member {"family"|undefined} _family @@ -178555,6 +179688,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * Image _satisfiesPzi. + * @member {"satisfiesPzi"|undefined} _satisfiesPzi + * @memberof google.cloud.compute.v1.Image + * @instance + */ + Object.defineProperty(Image.prototype, "_satisfiesPzi", { + get: $util.oneOfGetter($oneOfFields = ["satisfiesPzi"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Image _satisfiesPzs. * @member {"satisfiesPzs"|undefined} _satisfiesPzs @@ -178756,6 +179900,8 @@ $root.google.cloud.compute.v1.GuestOsFeature.encode(message.guestOsFeatures[i], writer.uint32(/* id 79294545, wireType 2 =*/634356362).fork()).ldelim(); if (message.sourceSnapshotId != null && Object.hasOwnProperty.call(message, "sourceSnapshotId")) writer.uint32(/* id 98962258, wireType 2 =*/791698066).string(message.sourceSnapshotId); + if (message.enableConfidentialCompute != null && Object.hasOwnProperty.call(message, "enableConfidentialCompute")) + writer.uint32(/* id 102135228, wireType 0 =*/817081824).bool(message.enableConfidentialCompute); if (message.sourceSnapshot != null && Object.hasOwnProperty.call(message, "sourceSnapshot")) writer.uint32(/* id 126061928, wireType 2 =*/1008495426).string(message.sourceSnapshot); if (message.labelFingerprint != null && Object.hasOwnProperty.call(message, "labelFingerprint")) @@ -178794,6 +179940,8 @@ writer.uint32(/* id 454190809, wireType 2 =*/3633526474).string(message.sourceDiskId); if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) writer.uint32(/* id 456214797, wireType 2 =*/3649718378).string(message.selfLink); + if (message.satisfiesPzi != null && Object.hasOwnProperty.call(message, "satisfiesPzi")) + writer.uint32(/* id 480964257, wireType 0 =*/3847714056).bool(message.satisfiesPzi); if (message.satisfiesPzs != null && Object.hasOwnProperty.call(message, "satisfiesPzs")) writer.uint32(/* id 480964267, wireType 0 =*/3847714136).bool(message.satisfiesPzs); if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) @@ -178863,6 +180011,10 @@ message.diskSizeGb = reader.int64(); break; } + case 102135228: { + message.enableConfidentialCompute = reader.bool(); + break; + } case 328751972: { message.family = reader.string(); break; @@ -178937,6 +180089,10 @@ message.rawDisk = $root.google.cloud.compute.v1.RawDisk.decode(reader, reader.uint32()); break; } + case 480964257: { + message.satisfiesPzi = reader.bool(); + break; + } case 480964267: { message.satisfiesPzs = reader.bool(); break; @@ -179068,6 +180224,11 @@ if (!$util.isInteger(message.diskSizeGb) && !(message.diskSizeGb && $util.isInteger(message.diskSizeGb.low) && $util.isInteger(message.diskSizeGb.high))) return "diskSizeGb: integer|Long expected"; } + if (message.enableConfidentialCompute != null && message.hasOwnProperty("enableConfidentialCompute")) { + properties._enableConfidentialCompute = 1; + if (typeof message.enableConfidentialCompute !== "boolean") + return "enableConfidentialCompute: boolean expected"; + } if (message.family != null && message.hasOwnProperty("family")) { properties._family = 1; if (!$util.isString(message.family)) @@ -179140,6 +180301,11 @@ return "rawDisk." + error; } } + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) { + properties._satisfiesPzi = 1; + if (typeof message.satisfiesPzi !== "boolean") + return "satisfiesPzi: boolean expected"; + } if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) { properties._satisfiesPzs = 1; if (typeof message.satisfiesPzs !== "boolean") @@ -179273,6 +180439,8 @@ message.diskSizeGb = object.diskSizeGb; else if (typeof object.diskSizeGb === "object") message.diskSizeGb = new $util.LongBits(object.diskSizeGb.low >>> 0, object.diskSizeGb.high >>> 0).toNumber(); + if (object.enableConfidentialCompute != null) + message.enableConfidentialCompute = Boolean(object.enableConfidentialCompute); if (object.family != null) message.family = String(object.family); if (object.guestOsFeatures) { @@ -179338,6 +180506,8 @@ throw TypeError(".google.cloud.compute.v1.Image.rawDisk: object expected"); message.rawDisk = $root.google.cloud.compute.v1.RawDisk.fromObject(object.rawDisk); } + if (object.satisfiesPzi != null) + message.satisfiesPzi = Boolean(object.satisfiesPzi); if (object.satisfiesPzs != null) message.satisfiesPzs = Boolean(object.satisfiesPzs); if (object.selfLink != null) @@ -179460,6 +180630,11 @@ if (options.oneofs) object._sourceSnapshotId = "sourceSnapshotId"; } + if (message.enableConfidentialCompute != null && message.hasOwnProperty("enableConfidentialCompute")) { + object.enableConfidentialCompute = message.enableConfidentialCompute; + if (options.oneofs) + object._enableConfidentialCompute = "enableConfidentialCompute"; + } if (message.sourceSnapshot != null && message.hasOwnProperty("sourceSnapshot")) { object.sourceSnapshot = message.sourceSnapshot; if (options.oneofs) @@ -179556,6 +180731,11 @@ if (options.oneofs) object._selfLink = "selfLink"; } + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) { + object.satisfiesPzi = message.satisfiesPzi; + if (options.oneofs) + object._satisfiesPzi = "satisfiesPzi"; + } if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) { object.satisfiesPzs = message.satisfiesPzs; if (options.oneofs) @@ -201836,6 +203016,7 @@ * @property {google.cloud.compute.v1.IReservationAffinity|null} [reservationAffinity] Instance reservationAffinity * @property {Array.|null} [resourcePolicies] Instance resourcePolicies * @property {google.cloud.compute.v1.IResourceStatus|null} [resourceStatus] Instance resourceStatus + * @property {boolean|null} [satisfiesPzi] Instance satisfiesPzi * @property {boolean|null} [satisfiesPzs] Instance satisfiesPzs * @property {google.cloud.compute.v1.IScheduling|null} [scheduling] Instance scheduling * @property {string|null} [selfLink] Instance selfLink @@ -202128,6 +203309,14 @@ */ Instance.prototype.resourceStatus = null; + /** + * Instance satisfiesPzi. + * @member {boolean|null|undefined} satisfiesPzi + * @memberof google.cloud.compute.v1.Instance + * @instance + */ + Instance.prototype.satisfiesPzi = null; + /** * Instance satisfiesPzs. * @member {boolean|null|undefined} satisfiesPzs @@ -202532,6 +203721,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * Instance _satisfiesPzi. + * @member {"satisfiesPzi"|undefined} _satisfiesPzi + * @memberof google.cloud.compute.v1.Instance + * @instance + */ + Object.defineProperty(Instance.prototype, "_satisfiesPzi", { + get: $util.oneOfGetter($oneOfFields = ["satisfiesPzi"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Instance _satisfiesPzs. * @member {"satisfiesPzs"|undefined} _satisfiesPzs @@ -202777,6 +203977,8 @@ $root.google.cloud.compute.v1.AcceleratorConfig.encode(message.guestAccelerators[i], writer.uint32(/* id 463595119, wireType 2 =*/3708760954).fork()).ldelim(); if (message.canIpForward != null && Object.hasOwnProperty.call(message, "canIpForward")) writer.uint32(/* id 467731324, wireType 0 =*/3741850592).bool(message.canIpForward); + if (message.satisfiesPzi != null && Object.hasOwnProperty.call(message, "satisfiesPzi")) + writer.uint32(/* id 480964257, wireType 0 =*/3847714056).bool(message.satisfiesPzi); if (message.satisfiesPzs != null && Object.hasOwnProperty.call(message, "satisfiesPzs")) writer.uint32(/* id 480964267, wireType 0 =*/3847714136).bool(message.satisfiesPzs); if (message.confidentialInstanceConfig != null && Object.hasOwnProperty.call(message, "confidentialInstanceConfig")) @@ -202973,6 +204175,10 @@ message.resourceStatus = $root.google.cloud.compute.v1.ResourceStatus.decode(reader, reader.uint32()); break; } + case 480964257: { + message.satisfiesPzi = reader.bool(); + break; + } case 480964267: { message.satisfiesPzs = reader.bool(); break; @@ -203267,6 +204473,11 @@ return "resourceStatus." + error; } } + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) { + properties._satisfiesPzi = 1; + if (typeof message.satisfiesPzi !== "boolean") + return "satisfiesPzi: boolean expected"; + } if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) { properties._satisfiesPzs = 1; if (typeof message.satisfiesPzs !== "boolean") @@ -203498,6 +204709,8 @@ throw TypeError(".google.cloud.compute.v1.Instance.resourceStatus: object expected"); message.resourceStatus = $root.google.cloud.compute.v1.ResourceStatus.fromObject(object.resourceStatus); } + if (object.satisfiesPzi != null) + message.satisfiesPzi = Boolean(object.satisfiesPzi); if (object.satisfiesPzs != null) message.satisfiesPzs = Boolean(object.satisfiesPzs); if (object.scheduling != null) { @@ -203785,6 +204998,11 @@ if (options.oneofs) object._canIpForward = "canIpForward"; } + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) { + object.satisfiesPzi = message.satisfiesPzi; + if (options.oneofs) + object._satisfiesPzi = "satisfiesPzi"; + } if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) { object.satisfiesPzs = message.satisfiesPzs; if (options.oneofs) @@ -206595,6 +207813,7 @@ * Properties of an InstanceGroupManager. * @memberof google.cloud.compute.v1 * @interface IInstanceGroupManager + * @property {google.cloud.compute.v1.IInstanceGroupManagerAllInstancesConfig|null} [allInstancesConfig] InstanceGroupManager allInstancesConfig * @property {Array.|null} [autoHealingPolicies] InstanceGroupManager autoHealingPolicies * @property {string|null} [baseInstanceName] InstanceGroupManager baseInstanceName * @property {string|null} [creationTimestamp] InstanceGroupManager creationTimestamp @@ -206640,6 +207859,14 @@ this[keys[i]] = properties[keys[i]]; } + /** + * InstanceGroupManager allInstancesConfig. + * @member {google.cloud.compute.v1.IInstanceGroupManagerAllInstancesConfig|null|undefined} allInstancesConfig + * @memberof google.cloud.compute.v1.InstanceGroupManager + * @instance + */ + InstanceGroupManager.prototype.allInstancesConfig = null; + /** * InstanceGroupManager autoHealingPolicies. * @member {Array.} autoHealingPolicies @@ -206835,6 +208062,17 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; + /** + * InstanceGroupManager _allInstancesConfig. + * @member {"allInstancesConfig"|undefined} _allInstancesConfig + * @memberof google.cloud.compute.v1.InstanceGroupManager + * @instance + */ + Object.defineProperty(InstanceGroupManager.prototype, "_allInstancesConfig", { + get: $util.oneOfGetter($oneOfFields = ["allInstancesConfig"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * InstanceGroupManager _baseInstanceName. * @member {"baseInstanceName"|undefined} _baseInstanceName @@ -207095,6 +208333,8 @@ writer.uint32(/* id 62880239, wireType 0 =*/503041912).int32(message.targetSize); if (message.instanceGroup != null && Object.hasOwnProperty.call(message, "instanceGroup")) writer.uint32(/* id 81095253, wireType 2 =*/648762026).string(message.instanceGroup); + if (message.allInstancesConfig != null && Object.hasOwnProperty.call(message, "allInstancesConfig")) + $root.google.cloud.compute.v1.InstanceGroupManagerAllInstancesConfig.encode(message.allInstancesConfig, writer.uint32(/* id 112596737, wireType 2 =*/900773898).fork()).ldelim(); if (message.region != null && Object.hasOwnProperty.call(message, "region")) writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); if (message.versions != null && message.versions.length) @@ -207165,6 +208405,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 112596737: { + message.allInstancesConfig = $root.google.cloud.compute.v1.InstanceGroupManagerAllInstancesConfig.decode(reader, reader.uint32()); + break; + } case 456799109: { if (!(message.autoHealingPolicies && message.autoHealingPolicies.length)) message.autoHealingPolicies = []; @@ -207305,6 +208549,14 @@ if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; + if (message.allInstancesConfig != null && message.hasOwnProperty("allInstancesConfig")) { + properties._allInstancesConfig = 1; + { + var error = $root.google.cloud.compute.v1.InstanceGroupManagerAllInstancesConfig.verify(message.allInstancesConfig); + if (error) + return "allInstancesConfig." + error; + } + } if (message.autoHealingPolicies != null && message.hasOwnProperty("autoHealingPolicies")) { if (!Array.isArray(message.autoHealingPolicies)) return "autoHealingPolicies: array expected"; @@ -207472,6 +208724,11 @@ if (object instanceof $root.google.cloud.compute.v1.InstanceGroupManager) return object; var message = new $root.google.cloud.compute.v1.InstanceGroupManager(); + if (object.allInstancesConfig != null) { + if (typeof object.allInstancesConfig !== "object") + throw TypeError(".google.cloud.compute.v1.InstanceGroupManager.allInstancesConfig: object expected"); + message.allInstancesConfig = $root.google.cloud.compute.v1.InstanceGroupManagerAllInstancesConfig.fromObject(object.allInstancesConfig); + } if (object.autoHealingPolicies) { if (!Array.isArray(object.autoHealingPolicies)) throw TypeError(".google.cloud.compute.v1.InstanceGroupManager.autoHealingPolicies: array expected"); @@ -207639,6 +208896,11 @@ if (options.oneofs) object._instanceGroup = "instanceGroup"; } + if (message.allInstancesConfig != null && message.hasOwnProperty("allInstancesConfig")) { + object.allInstancesConfig = $root.google.cloud.compute.v1.InstanceGroupManagerAllInstancesConfig.toObject(message.allInstancesConfig, options); + if (options.oneofs) + object._allInstancesConfig = "allInstancesConfig"; + } if (message.region != null && message.hasOwnProperty("region")) { object.region = message.region; if (options.oneofs) @@ -208929,6 +210191,233 @@ return InstanceGroupManagerAggregatedList; })(); + v1.InstanceGroupManagerAllInstancesConfig = (function() { + + /** + * Properties of an InstanceGroupManagerAllInstancesConfig. + * @memberof google.cloud.compute.v1 + * @interface IInstanceGroupManagerAllInstancesConfig + * @property {google.cloud.compute.v1.IInstancePropertiesPatch|null} [properties] InstanceGroupManagerAllInstancesConfig properties + */ + + /** + * Constructs a new InstanceGroupManagerAllInstancesConfig. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an InstanceGroupManagerAllInstancesConfig. + * @implements IInstanceGroupManagerAllInstancesConfig + * @constructor + * @param {google.cloud.compute.v1.IInstanceGroupManagerAllInstancesConfig=} [properties] Properties to set + */ + function InstanceGroupManagerAllInstancesConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * InstanceGroupManagerAllInstancesConfig properties. + * @member {google.cloud.compute.v1.IInstancePropertiesPatch|null|undefined} properties + * @memberof google.cloud.compute.v1.InstanceGroupManagerAllInstancesConfig + * @instance + */ + InstanceGroupManagerAllInstancesConfig.prototype.properties = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * InstanceGroupManagerAllInstancesConfig _properties. + * @member {"properties"|undefined} _properties + * @memberof google.cloud.compute.v1.InstanceGroupManagerAllInstancesConfig + * @instance + */ + Object.defineProperty(InstanceGroupManagerAllInstancesConfig.prototype, "_properties", { + get: $util.oneOfGetter($oneOfFields = ["properties"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InstanceGroupManagerAllInstancesConfig instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.InstanceGroupManagerAllInstancesConfig + * @static + * @param {google.cloud.compute.v1.IInstanceGroupManagerAllInstancesConfig=} [properties] Properties to set + * @returns {google.cloud.compute.v1.InstanceGroupManagerAllInstancesConfig} InstanceGroupManagerAllInstancesConfig instance + */ + InstanceGroupManagerAllInstancesConfig.create = function create(properties) { + return new InstanceGroupManagerAllInstancesConfig(properties); + }; + + /** + * Encodes the specified InstanceGroupManagerAllInstancesConfig message. Does not implicitly {@link google.cloud.compute.v1.InstanceGroupManagerAllInstancesConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.InstanceGroupManagerAllInstancesConfig + * @static + * @param {google.cloud.compute.v1.IInstanceGroupManagerAllInstancesConfig} message InstanceGroupManagerAllInstancesConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstanceGroupManagerAllInstancesConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.properties != null && Object.hasOwnProperty.call(message, "properties")) + $root.google.cloud.compute.v1.InstancePropertiesPatch.encode(message.properties, writer.uint32(/* id 147688755, wireType 2 =*/1181510042).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified InstanceGroupManagerAllInstancesConfig message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InstanceGroupManagerAllInstancesConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.InstanceGroupManagerAllInstancesConfig + * @static + * @param {google.cloud.compute.v1.IInstanceGroupManagerAllInstancesConfig} message InstanceGroupManagerAllInstancesConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstanceGroupManagerAllInstancesConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InstanceGroupManagerAllInstancesConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.InstanceGroupManagerAllInstancesConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.InstanceGroupManagerAllInstancesConfig} InstanceGroupManagerAllInstancesConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstanceGroupManagerAllInstancesConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.InstanceGroupManagerAllInstancesConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 147688755: { + message.properties = $root.google.cloud.compute.v1.InstancePropertiesPatch.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InstanceGroupManagerAllInstancesConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.InstanceGroupManagerAllInstancesConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.InstanceGroupManagerAllInstancesConfig} InstanceGroupManagerAllInstancesConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstanceGroupManagerAllInstancesConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InstanceGroupManagerAllInstancesConfig message. + * @function verify + * @memberof google.cloud.compute.v1.InstanceGroupManagerAllInstancesConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InstanceGroupManagerAllInstancesConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.properties != null && message.hasOwnProperty("properties")) { + properties._properties = 1; + { + var error = $root.google.cloud.compute.v1.InstancePropertiesPatch.verify(message.properties); + if (error) + return "properties." + error; + } + } + return null; + }; + + /** + * Creates an InstanceGroupManagerAllInstancesConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.InstanceGroupManagerAllInstancesConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.InstanceGroupManagerAllInstancesConfig} InstanceGroupManagerAllInstancesConfig + */ + InstanceGroupManagerAllInstancesConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.InstanceGroupManagerAllInstancesConfig) + return object; + var message = new $root.google.cloud.compute.v1.InstanceGroupManagerAllInstancesConfig(); + if (object.properties != null) { + if (typeof object.properties !== "object") + throw TypeError(".google.cloud.compute.v1.InstanceGroupManagerAllInstancesConfig.properties: object expected"); + message.properties = $root.google.cloud.compute.v1.InstancePropertiesPatch.fromObject(object.properties); + } + return message; + }; + + /** + * Creates a plain object from an InstanceGroupManagerAllInstancesConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.InstanceGroupManagerAllInstancesConfig + * @static + * @param {google.cloud.compute.v1.InstanceGroupManagerAllInstancesConfig} message InstanceGroupManagerAllInstancesConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InstanceGroupManagerAllInstancesConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.properties != null && message.hasOwnProperty("properties")) { + object.properties = $root.google.cloud.compute.v1.InstancePropertiesPatch.toObject(message.properties, options); + if (options.oneofs) + object._properties = "properties"; + } + return object; + }; + + /** + * Converts this InstanceGroupManagerAllInstancesConfig to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.InstanceGroupManagerAllInstancesConfig + * @instance + * @returns {Object.} JSON object + */ + InstanceGroupManagerAllInstancesConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InstanceGroupManagerAllInstancesConfig + * @function getTypeUrl + * @memberof google.cloud.compute.v1.InstanceGroupManagerAllInstancesConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InstanceGroupManagerAllInstancesConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.InstanceGroupManagerAllInstancesConfig"; + }; + + return InstanceGroupManagerAllInstancesConfig; + })(); + v1.InstanceGroupManagerAutoHealingPolicy = (function() { /** @@ -209855,6 +211344,7 @@ * Properties of an InstanceGroupManagerStatus. * @memberof google.cloud.compute.v1 * @interface IInstanceGroupManagerStatus + * @property {google.cloud.compute.v1.IInstanceGroupManagerStatusAllInstancesConfig|null} [allInstancesConfig] InstanceGroupManagerStatus allInstancesConfig * @property {string|null} [autoscaler] InstanceGroupManagerStatus autoscaler * @property {boolean|null} [isStable] InstanceGroupManagerStatus isStable * @property {google.cloud.compute.v1.IInstanceGroupManagerStatusStateful|null} [stateful] InstanceGroupManagerStatus stateful @@ -209876,6 +211366,14 @@ this[keys[i]] = properties[keys[i]]; } + /** + * InstanceGroupManagerStatus allInstancesConfig. + * @member {google.cloud.compute.v1.IInstanceGroupManagerStatusAllInstancesConfig|null|undefined} allInstancesConfig + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatus + * @instance + */ + InstanceGroupManagerStatus.prototype.allInstancesConfig = null; + /** * InstanceGroupManagerStatus autoscaler. * @member {string|null|undefined} autoscaler @@ -209911,6 +211409,17 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; + /** + * InstanceGroupManagerStatus _allInstancesConfig. + * @member {"allInstancesConfig"|undefined} _allInstancesConfig + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatus + * @instance + */ + Object.defineProperty(InstanceGroupManagerStatus.prototype, "_allInstancesConfig", { + get: $util.oneOfGetter($oneOfFields = ["allInstancesConfig"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * InstanceGroupManagerStatus _autoscaler. * @member {"autoscaler"|undefined} _autoscaler @@ -209981,6 +211490,8 @@ writer = $Writer.create(); if (message.isStable != null && Object.hasOwnProperty.call(message, "isStable")) writer.uint32(/* id 108410864, wireType 0 =*/867286912).bool(message.isStable); + if (message.allInstancesConfig != null && Object.hasOwnProperty.call(message, "allInstancesConfig")) + $root.google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig.encode(message.allInstancesConfig, writer.uint32(/* id 112596737, wireType 2 =*/900773898).fork()).ldelim(); if (message.stateful != null && Object.hasOwnProperty.call(message, "stateful")) $root.google.cloud.compute.v1.InstanceGroupManagerStatusStateful.encode(message.stateful, writer.uint32(/* id 244462412, wireType 2 =*/1955699298).fork()).ldelim(); if (message.versionTarget != null && Object.hasOwnProperty.call(message, "versionTarget")) @@ -210021,6 +211532,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 112596737: { + message.allInstancesConfig = $root.google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig.decode(reader, reader.uint32()); + break; + } case 517258967: { message.autoscaler = reader.string(); break; @@ -210073,6 +211588,14 @@ if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; + if (message.allInstancesConfig != null && message.hasOwnProperty("allInstancesConfig")) { + properties._allInstancesConfig = 1; + { + var error = $root.google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig.verify(message.allInstancesConfig); + if (error) + return "allInstancesConfig." + error; + } + } if (message.autoscaler != null && message.hasOwnProperty("autoscaler")) { properties._autoscaler = 1; if (!$util.isString(message.autoscaler)) @@ -210114,6 +211637,11 @@ if (object instanceof $root.google.cloud.compute.v1.InstanceGroupManagerStatus) return object; var message = new $root.google.cloud.compute.v1.InstanceGroupManagerStatus(); + if (object.allInstancesConfig != null) { + if (typeof object.allInstancesConfig !== "object") + throw TypeError(".google.cloud.compute.v1.InstanceGroupManagerStatus.allInstancesConfig: object expected"); + message.allInstancesConfig = $root.google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig.fromObject(object.allInstancesConfig); + } if (object.autoscaler != null) message.autoscaler = String(object.autoscaler); if (object.isStable != null) @@ -210149,6 +211677,11 @@ if (options.oneofs) object._isStable = "isStable"; } + if (message.allInstancesConfig != null && message.hasOwnProperty("allInstancesConfig")) { + object.allInstancesConfig = $root.google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig.toObject(message.allInstancesConfig, options); + if (options.oneofs) + object._allInstancesConfig = "allInstancesConfig"; + } if (message.stateful != null && message.hasOwnProperty("stateful")) { object.stateful = $root.google.cloud.compute.v1.InstanceGroupManagerStatusStateful.toObject(message.stateful, options); if (options.oneofs) @@ -210196,6 +211729,265 @@ return InstanceGroupManagerStatus; })(); + v1.InstanceGroupManagerStatusAllInstancesConfig = (function() { + + /** + * Properties of an InstanceGroupManagerStatusAllInstancesConfig. + * @memberof google.cloud.compute.v1 + * @interface IInstanceGroupManagerStatusAllInstancesConfig + * @property {string|null} [currentRevision] InstanceGroupManagerStatusAllInstancesConfig currentRevision + * @property {boolean|null} [effective] InstanceGroupManagerStatusAllInstancesConfig effective + */ + + /** + * Constructs a new InstanceGroupManagerStatusAllInstancesConfig. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an InstanceGroupManagerStatusAllInstancesConfig. + * @implements IInstanceGroupManagerStatusAllInstancesConfig + * @constructor + * @param {google.cloud.compute.v1.IInstanceGroupManagerStatusAllInstancesConfig=} [properties] Properties to set + */ + function InstanceGroupManagerStatusAllInstancesConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * InstanceGroupManagerStatusAllInstancesConfig currentRevision. + * @member {string|null|undefined} currentRevision + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig + * @instance + */ + InstanceGroupManagerStatusAllInstancesConfig.prototype.currentRevision = null; + + /** + * InstanceGroupManagerStatusAllInstancesConfig effective. + * @member {boolean|null|undefined} effective + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig + * @instance + */ + InstanceGroupManagerStatusAllInstancesConfig.prototype.effective = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * InstanceGroupManagerStatusAllInstancesConfig _currentRevision. + * @member {"currentRevision"|undefined} _currentRevision + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig + * @instance + */ + Object.defineProperty(InstanceGroupManagerStatusAllInstancesConfig.prototype, "_currentRevision", { + get: $util.oneOfGetter($oneOfFields = ["currentRevision"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * InstanceGroupManagerStatusAllInstancesConfig _effective. + * @member {"effective"|undefined} _effective + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig + * @instance + */ + Object.defineProperty(InstanceGroupManagerStatusAllInstancesConfig.prototype, "_effective", { + get: $util.oneOfGetter($oneOfFields = ["effective"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InstanceGroupManagerStatusAllInstancesConfig instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig + * @static + * @param {google.cloud.compute.v1.IInstanceGroupManagerStatusAllInstancesConfig=} [properties] Properties to set + * @returns {google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig} InstanceGroupManagerStatusAllInstancesConfig instance + */ + InstanceGroupManagerStatusAllInstancesConfig.create = function create(properties) { + return new InstanceGroupManagerStatusAllInstancesConfig(properties); + }; + + /** + * Encodes the specified InstanceGroupManagerStatusAllInstancesConfig message. Does not implicitly {@link google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig + * @static + * @param {google.cloud.compute.v1.IInstanceGroupManagerStatusAllInstancesConfig} message InstanceGroupManagerStatusAllInstancesConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstanceGroupManagerStatusAllInstancesConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.currentRevision != null && Object.hasOwnProperty.call(message, "currentRevision")) + writer.uint32(/* id 38355937, wireType 2 =*/306847498).string(message.currentRevision); + if (message.effective != null && Object.hasOwnProperty.call(message, "effective")) + writer.uint32(/* id 141961639, wireType 0 =*/1135693112).bool(message.effective); + return writer; + }; + + /** + * Encodes the specified InstanceGroupManagerStatusAllInstancesConfig message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig + * @static + * @param {google.cloud.compute.v1.IInstanceGroupManagerStatusAllInstancesConfig} message InstanceGroupManagerStatusAllInstancesConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstanceGroupManagerStatusAllInstancesConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InstanceGroupManagerStatusAllInstancesConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig} InstanceGroupManagerStatusAllInstancesConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstanceGroupManagerStatusAllInstancesConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 38355937: { + message.currentRevision = reader.string(); + break; + } + case 141961639: { + message.effective = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InstanceGroupManagerStatusAllInstancesConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig} InstanceGroupManagerStatusAllInstancesConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstanceGroupManagerStatusAllInstancesConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InstanceGroupManagerStatusAllInstancesConfig message. + * @function verify + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InstanceGroupManagerStatusAllInstancesConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.currentRevision != null && message.hasOwnProperty("currentRevision")) { + properties._currentRevision = 1; + if (!$util.isString(message.currentRevision)) + return "currentRevision: string expected"; + } + if (message.effective != null && message.hasOwnProperty("effective")) { + properties._effective = 1; + if (typeof message.effective !== "boolean") + return "effective: boolean expected"; + } + return null; + }; + + /** + * Creates an InstanceGroupManagerStatusAllInstancesConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig} InstanceGroupManagerStatusAllInstancesConfig + */ + InstanceGroupManagerStatusAllInstancesConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig) + return object; + var message = new $root.google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig(); + if (object.currentRevision != null) + message.currentRevision = String(object.currentRevision); + if (object.effective != null) + message.effective = Boolean(object.effective); + return message; + }; + + /** + * Creates a plain object from an InstanceGroupManagerStatusAllInstancesConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig + * @static + * @param {google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig} message InstanceGroupManagerStatusAllInstancesConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InstanceGroupManagerStatusAllInstancesConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.currentRevision != null && message.hasOwnProperty("currentRevision")) { + object.currentRevision = message.currentRevision; + if (options.oneofs) + object._currentRevision = "currentRevision"; + } + if (message.effective != null && message.hasOwnProperty("effective")) { + object.effective = message.effective; + if (options.oneofs) + object._effective = "effective"; + } + return object; + }; + + /** + * Converts this InstanceGroupManagerStatusAllInstancesConfig to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig + * @instance + * @returns {Object.} JSON object + */ + InstanceGroupManagerStatusAllInstancesConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InstanceGroupManagerStatusAllInstancesConfig + * @function getTypeUrl + * @memberof google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InstanceGroupManagerStatusAllInstancesConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig"; + }; + + return InstanceGroupManagerStatusAllInstancesConfig; + })(); + v1.InstanceGroupManagerStatusStateful = (function() { /** @@ -220314,6 +222106,302 @@ return InstanceProperties; })(); + v1.InstancePropertiesPatch = (function() { + + /** + * Properties of an InstancePropertiesPatch. + * @memberof google.cloud.compute.v1 + * @interface IInstancePropertiesPatch + * @property {Object.|null} [labels] InstancePropertiesPatch labels + * @property {Object.|null} [metadata] InstancePropertiesPatch metadata + */ + + /** + * Constructs a new InstancePropertiesPatch. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an InstancePropertiesPatch. + * @implements IInstancePropertiesPatch + * @constructor + * @param {google.cloud.compute.v1.IInstancePropertiesPatch=} [properties] Properties to set + */ + function InstancePropertiesPatch(properties) { + this.labels = {}; + this.metadata = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * InstancePropertiesPatch labels. + * @member {Object.} labels + * @memberof google.cloud.compute.v1.InstancePropertiesPatch + * @instance + */ + InstancePropertiesPatch.prototype.labels = $util.emptyObject; + + /** + * InstancePropertiesPatch metadata. + * @member {Object.} metadata + * @memberof google.cloud.compute.v1.InstancePropertiesPatch + * @instance + */ + InstancePropertiesPatch.prototype.metadata = $util.emptyObject; + + /** + * Creates a new InstancePropertiesPatch instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.InstancePropertiesPatch + * @static + * @param {google.cloud.compute.v1.IInstancePropertiesPatch=} [properties] Properties to set + * @returns {google.cloud.compute.v1.InstancePropertiesPatch} InstancePropertiesPatch instance + */ + InstancePropertiesPatch.create = function create(properties) { + return new InstancePropertiesPatch(properties); + }; + + /** + * Encodes the specified InstancePropertiesPatch message. Does not implicitly {@link google.cloud.compute.v1.InstancePropertiesPatch.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.InstancePropertiesPatch + * @static + * @param {google.cloud.compute.v1.IInstancePropertiesPatch} message InstancePropertiesPatch message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstancePropertiesPatch.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) + for (var keys = Object.keys(message.metadata), i = 0; i < keys.length; ++i) + writer.uint32(/* id 86866735, wireType 2 =*/694933882).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.metadata[keys[i]]).ldelim(); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 500195327, wireType 2 =*/4001562618).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + return writer; + }; + + /** + * Encodes the specified InstancePropertiesPatch message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InstancePropertiesPatch.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.InstancePropertiesPatch + * @static + * @param {google.cloud.compute.v1.IInstancePropertiesPatch} message InstancePropertiesPatch message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstancePropertiesPatch.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InstancePropertiesPatch message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.InstancePropertiesPatch + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.InstancePropertiesPatch} InstancePropertiesPatch + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstancePropertiesPatch.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.InstancePropertiesPatch(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 500195327: { + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; + break; + } + case 86866735: { + if (message.metadata === $util.emptyObject) + message.metadata = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.metadata[key] = value; + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InstancePropertiesPatch message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.InstancePropertiesPatch + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.InstancePropertiesPatch} InstancePropertiesPatch + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstancePropertiesPatch.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InstancePropertiesPatch message. + * @function verify + * @memberof google.cloud.compute.v1.InstancePropertiesPatch + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InstancePropertiesPatch.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } + if (message.metadata != null && message.hasOwnProperty("metadata")) { + if (!$util.isObject(message.metadata)) + return "metadata: object expected"; + var key = Object.keys(message.metadata); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.metadata[key[i]])) + return "metadata: string{k:string} expected"; + } + return null; + }; + + /** + * Creates an InstancePropertiesPatch message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.InstancePropertiesPatch + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.InstancePropertiesPatch} InstancePropertiesPatch + */ + InstancePropertiesPatch.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.InstancePropertiesPatch) + return object; + var message = new $root.google.cloud.compute.v1.InstancePropertiesPatch(); + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.compute.v1.InstancePropertiesPatch.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); + } + if (object.metadata) { + if (typeof object.metadata !== "object") + throw TypeError(".google.cloud.compute.v1.InstancePropertiesPatch.metadata: object expected"); + message.metadata = {}; + for (var keys = Object.keys(object.metadata), i = 0; i < keys.length; ++i) + message.metadata[keys[i]] = String(object.metadata[keys[i]]); + } + return message; + }; + + /** + * Creates a plain object from an InstancePropertiesPatch message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.InstancePropertiesPatch + * @static + * @param {google.cloud.compute.v1.InstancePropertiesPatch} message InstancePropertiesPatch + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InstancePropertiesPatch.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) { + object.metadata = {}; + object.labels = {}; + } + var keys2; + if (message.metadata && (keys2 = Object.keys(message.metadata)).length) { + object.metadata = {}; + for (var j = 0; j < keys2.length; ++j) + object.metadata[keys2[j]] = message.metadata[keys2[j]]; + } + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; + } + return object; + }; + + /** + * Converts this InstancePropertiesPatch to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.InstancePropertiesPatch + * @instance + * @returns {Object.} JSON object + */ + InstancePropertiesPatch.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InstancePropertiesPatch + * @function getTypeUrl + * @memberof google.cloud.compute.v1.InstancePropertiesPatch + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InstancePropertiesPatch.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.InstancePropertiesPatch"; + }; + + return InstancePropertiesPatch; + })(); + v1.InstanceReference = (function() { /** @@ -268456,58 +270544,479 @@ }; /** - * Converts this ListRegionAutoscalersRequest to JSON. + * Converts this ListRegionAutoscalersRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.ListRegionAutoscalersRequest + * @instance + * @returns {Object.} JSON object + */ + ListRegionAutoscalersRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListRegionAutoscalersRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.ListRegionAutoscalersRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListRegionAutoscalersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionAutoscalersRequest"; + }; + + return ListRegionAutoscalersRequest; + })(); + + v1.ListRegionBackendServicesRequest = (function() { + + /** + * Properties of a ListRegionBackendServicesRequest. + * @memberof google.cloud.compute.v1 + * @interface IListRegionBackendServicesRequest + * @property {string|null} [filter] ListRegionBackendServicesRequest filter + * @property {number|null} [maxResults] ListRegionBackendServicesRequest maxResults + * @property {string|null} [orderBy] ListRegionBackendServicesRequest orderBy + * @property {string|null} [pageToken] ListRegionBackendServicesRequest pageToken + * @property {string|null} [project] ListRegionBackendServicesRequest project + * @property {string|null} [region] ListRegionBackendServicesRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionBackendServicesRequest returnPartialSuccess + */ + + /** + * Constructs a new ListRegionBackendServicesRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a ListRegionBackendServicesRequest. + * @implements IListRegionBackendServicesRequest + * @constructor + * @param {google.cloud.compute.v1.IListRegionBackendServicesRequest=} [properties] Properties to set + */ + function ListRegionBackendServicesRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListRegionBackendServicesRequest filter. + * @member {string|null|undefined} filter + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @instance + */ + ListRegionBackendServicesRequest.prototype.filter = null; + + /** + * ListRegionBackendServicesRequest maxResults. + * @member {number|null|undefined} maxResults + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @instance + */ + ListRegionBackendServicesRequest.prototype.maxResults = null; + + /** + * ListRegionBackendServicesRequest orderBy. + * @member {string|null|undefined} orderBy + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @instance + */ + ListRegionBackendServicesRequest.prototype.orderBy = null; + + /** + * ListRegionBackendServicesRequest pageToken. + * @member {string|null|undefined} pageToken + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @instance + */ + ListRegionBackendServicesRequest.prototype.pageToken = null; + + /** + * ListRegionBackendServicesRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @instance + */ + ListRegionBackendServicesRequest.prototype.project = ""; + + /** + * ListRegionBackendServicesRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @instance + */ + ListRegionBackendServicesRequest.prototype.region = ""; + + /** + * ListRegionBackendServicesRequest returnPartialSuccess. + * @member {boolean|null|undefined} returnPartialSuccess + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @instance + */ + ListRegionBackendServicesRequest.prototype.returnPartialSuccess = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ListRegionBackendServicesRequest _filter. + * @member {"filter"|undefined} _filter + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @instance + */ + Object.defineProperty(ListRegionBackendServicesRequest.prototype, "_filter", { + get: $util.oneOfGetter($oneOfFields = ["filter"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * ListRegionBackendServicesRequest _maxResults. + * @member {"maxResults"|undefined} _maxResults + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @instance + */ + Object.defineProperty(ListRegionBackendServicesRequest.prototype, "_maxResults", { + get: $util.oneOfGetter($oneOfFields = ["maxResults"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * ListRegionBackendServicesRequest _orderBy. + * @member {"orderBy"|undefined} _orderBy + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @instance + */ + Object.defineProperty(ListRegionBackendServicesRequest.prototype, "_orderBy", { + get: $util.oneOfGetter($oneOfFields = ["orderBy"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * ListRegionBackendServicesRequest _pageToken. + * @member {"pageToken"|undefined} _pageToken + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @instance + */ + Object.defineProperty(ListRegionBackendServicesRequest.prototype, "_pageToken", { + get: $util.oneOfGetter($oneOfFields = ["pageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * ListRegionBackendServicesRequest _returnPartialSuccess. + * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @instance + */ + Object.defineProperty(ListRegionBackendServicesRequest.prototype, "_returnPartialSuccess", { + get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ListRegionBackendServicesRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @static + * @param {google.cloud.compute.v1.IListRegionBackendServicesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionBackendServicesRequest} ListRegionBackendServicesRequest instance + */ + ListRegionBackendServicesRequest.create = function create(properties) { + return new ListRegionBackendServicesRequest(properties); + }; + + /** + * Encodes the specified ListRegionBackendServicesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionBackendServicesRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @static + * @param {google.cloud.compute.v1.IListRegionBackendServicesRequest} message ListRegionBackendServicesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListRegionBackendServicesRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 19994697, wireType 2 =*/159957578).string(message.pageToken); + if (message.maxResults != null && Object.hasOwnProperty.call(message, "maxResults")) + writer.uint32(/* id 54715419, wireType 0 =*/437723352).uint32(message.maxResults); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 160562920, wireType 2 =*/1284503362).string(message.orderBy); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 336120696, wireType 2 =*/2688965570).string(message.filter); + if (message.returnPartialSuccess != null && Object.hasOwnProperty.call(message, "returnPartialSuccess")) + writer.uint32(/* id 517198390, wireType 0 =*/4137587120).bool(message.returnPartialSuccess); + return writer; + }; + + /** + * Encodes the specified ListRegionBackendServicesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionBackendServicesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @static + * @param {google.cloud.compute.v1.IListRegionBackendServicesRequest} message ListRegionBackendServicesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListRegionBackendServicesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListRegionBackendServicesRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.ListRegionBackendServicesRequest} ListRegionBackendServicesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListRegionBackendServicesRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionBackendServicesRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 336120696: { + message.filter = reader.string(); + break; + } + case 54715419: { + message.maxResults = reader.uint32(); + break; + } + case 160562920: { + message.orderBy = reader.string(); + break; + } + case 19994697: { + message.pageToken = reader.string(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + case 517198390: { + message.returnPartialSuccess = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListRegionBackendServicesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.ListRegionBackendServicesRequest} ListRegionBackendServicesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListRegionBackendServicesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListRegionBackendServicesRequest message. + * @function verify + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListRegionBackendServicesRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.filter != null && message.hasOwnProperty("filter")) { + properties._filter = 1; + if (!$util.isString(message.filter)) + return "filter: string expected"; + } + if (message.maxResults != null && message.hasOwnProperty("maxResults")) { + properties._maxResults = 1; + if (!$util.isInteger(message.maxResults)) + return "maxResults: integer expected"; + } + if (message.orderBy != null && message.hasOwnProperty("orderBy")) { + properties._orderBy = 1; + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; + } + if (message.pageToken != null && message.hasOwnProperty("pageToken")) { + properties._pageToken = 1; + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + } + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; + if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { + properties._returnPartialSuccess = 1; + if (typeof message.returnPartialSuccess !== "boolean") + return "returnPartialSuccess: boolean expected"; + } + return null; + }; + + /** + * Creates a ListRegionBackendServicesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.ListRegionBackendServicesRequest} ListRegionBackendServicesRequest + */ + ListRegionBackendServicesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionBackendServicesRequest) + return object; + var message = new $root.google.cloud.compute.v1.ListRegionBackendServicesRequest(); + if (object.filter != null) + message.filter = String(object.filter); + if (object.maxResults != null) + message.maxResults = object.maxResults >>> 0; + if (object.orderBy != null) + message.orderBy = String(object.orderBy); + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.project != null) + message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); + if (object.returnPartialSuccess != null) + message.returnPartialSuccess = Boolean(object.returnPartialSuccess); + return message; + }; + + /** + * Creates a plain object from a ListRegionBackendServicesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @static + * @param {google.cloud.compute.v1.ListRegionBackendServicesRequest} message ListRegionBackendServicesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListRegionBackendServicesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.project = ""; + } + if (message.pageToken != null && message.hasOwnProperty("pageToken")) { + object.pageToken = message.pageToken; + if (options.oneofs) + object._pageToken = "pageToken"; + } + if (message.maxResults != null && message.hasOwnProperty("maxResults")) { + object.maxResults = message.maxResults; + if (options.oneofs) + object._maxResults = "maxResults"; + } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) { + object.orderBy = message.orderBy; + if (options.oneofs) + object._orderBy = "orderBy"; + } + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.filter != null && message.hasOwnProperty("filter")) { + object.filter = message.filter; + if (options.oneofs) + object._filter = "filter"; + } + if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { + object.returnPartialSuccess = message.returnPartialSuccess; + if (options.oneofs) + object._returnPartialSuccess = "returnPartialSuccess"; + } + return object; + }; + + /** + * Converts this ListRegionBackendServicesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionAutoscalersRequest + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest * @instance * @returns {Object.} JSON object */ - ListRegionAutoscalersRequest.prototype.toJSON = function toJSON() { + ListRegionBackendServicesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionAutoscalersRequest + * Gets the default type url for ListRegionBackendServicesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionAutoscalersRequest + * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionAutoscalersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionBackendServicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionAutoscalersRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionBackendServicesRequest"; }; - return ListRegionAutoscalersRequest; + return ListRegionBackendServicesRequest; })(); - v1.ListRegionBackendServicesRequest = (function() { + v1.ListRegionCommitmentsRequest = (function() { /** - * Properties of a ListRegionBackendServicesRequest. + * Properties of a ListRegionCommitmentsRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionBackendServicesRequest - * @property {string|null} [filter] ListRegionBackendServicesRequest filter - * @property {number|null} [maxResults] ListRegionBackendServicesRequest maxResults - * @property {string|null} [orderBy] ListRegionBackendServicesRequest orderBy - * @property {string|null} [pageToken] ListRegionBackendServicesRequest pageToken - * @property {string|null} [project] ListRegionBackendServicesRequest project - * @property {string|null} [region] ListRegionBackendServicesRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionBackendServicesRequest returnPartialSuccess + * @interface IListRegionCommitmentsRequest + * @property {string|null} [filter] ListRegionCommitmentsRequest filter + * @property {number|null} [maxResults] ListRegionCommitmentsRequest maxResults + * @property {string|null} [orderBy] ListRegionCommitmentsRequest orderBy + * @property {string|null} [pageToken] ListRegionCommitmentsRequest pageToken + * @property {string|null} [project] ListRegionCommitmentsRequest project + * @property {string|null} [region] ListRegionCommitmentsRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionCommitmentsRequest returnPartialSuccess */ /** - * Constructs a new ListRegionBackendServicesRequest. + * Constructs a new ListRegionCommitmentsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionBackendServicesRequest. - * @implements IListRegionBackendServicesRequest + * @classdesc Represents a ListRegionCommitmentsRequest. + * @implements IListRegionCommitmentsRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionBackendServicesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionCommitmentsRequest=} [properties] Properties to set */ - function ListRegionBackendServicesRequest(properties) { + function ListRegionCommitmentsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -268515,141 +271024,141 @@ } /** - * ListRegionBackendServicesRequest filter. + * ListRegionCommitmentsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @instance */ - ListRegionBackendServicesRequest.prototype.filter = null; + ListRegionCommitmentsRequest.prototype.filter = null; /** - * ListRegionBackendServicesRequest maxResults. + * ListRegionCommitmentsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @instance */ - ListRegionBackendServicesRequest.prototype.maxResults = null; + ListRegionCommitmentsRequest.prototype.maxResults = null; /** - * ListRegionBackendServicesRequest orderBy. + * ListRegionCommitmentsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @instance */ - ListRegionBackendServicesRequest.prototype.orderBy = null; + ListRegionCommitmentsRequest.prototype.orderBy = null; /** - * ListRegionBackendServicesRequest pageToken. + * ListRegionCommitmentsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @instance */ - ListRegionBackendServicesRequest.prototype.pageToken = null; + ListRegionCommitmentsRequest.prototype.pageToken = null; /** - * ListRegionBackendServicesRequest project. + * ListRegionCommitmentsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @instance */ - ListRegionBackendServicesRequest.prototype.project = ""; + ListRegionCommitmentsRequest.prototype.project = ""; /** - * ListRegionBackendServicesRequest region. + * ListRegionCommitmentsRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @instance */ - ListRegionBackendServicesRequest.prototype.region = ""; + ListRegionCommitmentsRequest.prototype.region = ""; /** - * ListRegionBackendServicesRequest returnPartialSuccess. + * ListRegionCommitmentsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @instance */ - ListRegionBackendServicesRequest.prototype.returnPartialSuccess = null; + ListRegionCommitmentsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * ListRegionBackendServicesRequest _filter. + * ListRegionCommitmentsRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @instance */ - Object.defineProperty(ListRegionBackendServicesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionCommitmentsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionBackendServicesRequest _maxResults. + * ListRegionCommitmentsRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @instance */ - Object.defineProperty(ListRegionBackendServicesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionCommitmentsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionBackendServicesRequest _orderBy. + * ListRegionCommitmentsRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @instance */ - Object.defineProperty(ListRegionBackendServicesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionCommitmentsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionBackendServicesRequest _pageToken. + * ListRegionCommitmentsRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @instance */ - Object.defineProperty(ListRegionBackendServicesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionCommitmentsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionBackendServicesRequest _returnPartialSuccess. + * ListRegionCommitmentsRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @instance */ - Object.defineProperty(ListRegionBackendServicesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionCommitmentsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionBackendServicesRequest instance using the specified properties. + * Creates a new ListRegionCommitmentsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @static - * @param {google.cloud.compute.v1.IListRegionBackendServicesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionBackendServicesRequest} ListRegionBackendServicesRequest instance + * @param {google.cloud.compute.v1.IListRegionCommitmentsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionCommitmentsRequest} ListRegionCommitmentsRequest instance */ - ListRegionBackendServicesRequest.create = function create(properties) { - return new ListRegionBackendServicesRequest(properties); + ListRegionCommitmentsRequest.create = function create(properties) { + return new ListRegionCommitmentsRequest(properties); }; /** - * Encodes the specified ListRegionBackendServicesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionBackendServicesRequest.verify|verify} messages. + * Encodes the specified ListRegionCommitmentsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionCommitmentsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @static - * @param {google.cloud.compute.v1.IListRegionBackendServicesRequest} message ListRegionBackendServicesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionCommitmentsRequest} message ListRegionCommitmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionBackendServicesRequest.encode = function encode(message, writer) { + ListRegionCommitmentsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -268670,33 +271179,33 @@ }; /** - * Encodes the specified ListRegionBackendServicesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionBackendServicesRequest.verify|verify} messages. + * Encodes the specified ListRegionCommitmentsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionCommitmentsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @static - * @param {google.cloud.compute.v1.IListRegionBackendServicesRequest} message ListRegionBackendServicesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionCommitmentsRequest} message ListRegionCommitmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionBackendServicesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionCommitmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionBackendServicesRequest message from the specified reader or buffer. + * Decodes a ListRegionCommitmentsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionBackendServicesRequest} ListRegionBackendServicesRequest + * @returns {google.cloud.compute.v1.ListRegionCommitmentsRequest} ListRegionCommitmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionBackendServicesRequest.decode = function decode(reader, length) { + ListRegionCommitmentsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionBackendServicesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionCommitmentsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -268737,30 +271246,30 @@ }; /** - * Decodes a ListRegionBackendServicesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionCommitmentsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionBackendServicesRequest} ListRegionBackendServicesRequest + * @returns {google.cloud.compute.v1.ListRegionCommitmentsRequest} ListRegionCommitmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionBackendServicesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionCommitmentsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionBackendServicesRequest message. + * Verifies a ListRegionCommitmentsRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionBackendServicesRequest.verify = function verify(message) { + ListRegionCommitmentsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -268799,17 +271308,17 @@ }; /** - * Creates a ListRegionBackendServicesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionCommitmentsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionBackendServicesRequest} ListRegionBackendServicesRequest + * @returns {google.cloud.compute.v1.ListRegionCommitmentsRequest} ListRegionCommitmentsRequest */ - ListRegionBackendServicesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionBackendServicesRequest) + ListRegionCommitmentsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionCommitmentsRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionBackendServicesRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionCommitmentsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -268828,15 +271337,15 @@ }; /** - * Creates a plain object from a ListRegionBackendServicesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionCommitmentsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @static - * @param {google.cloud.compute.v1.ListRegionBackendServicesRequest} message ListRegionBackendServicesRequest + * @param {google.cloud.compute.v1.ListRegionCommitmentsRequest} message ListRegionCommitmentsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionBackendServicesRequest.toObject = function toObject(message, options) { + ListRegionCommitmentsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -268877,58 +271386,58 @@ }; /** - * Converts this ListRegionBackendServicesRequest to JSON. + * Converts this ListRegionCommitmentsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @instance * @returns {Object.} JSON object */ - ListRegionBackendServicesRequest.prototype.toJSON = function toJSON() { + ListRegionCommitmentsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionBackendServicesRequest + * Gets the default type url for ListRegionCommitmentsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionBackendServicesRequest + * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionBackendServicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionCommitmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionBackendServicesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionCommitmentsRequest"; }; - return ListRegionBackendServicesRequest; + return ListRegionCommitmentsRequest; })(); - v1.ListRegionCommitmentsRequest = (function() { + v1.ListRegionDiskTypesRequest = (function() { /** - * Properties of a ListRegionCommitmentsRequest. + * Properties of a ListRegionDiskTypesRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionCommitmentsRequest - * @property {string|null} [filter] ListRegionCommitmentsRequest filter - * @property {number|null} [maxResults] ListRegionCommitmentsRequest maxResults - * @property {string|null} [orderBy] ListRegionCommitmentsRequest orderBy - * @property {string|null} [pageToken] ListRegionCommitmentsRequest pageToken - * @property {string|null} [project] ListRegionCommitmentsRequest project - * @property {string|null} [region] ListRegionCommitmentsRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionCommitmentsRequest returnPartialSuccess + * @interface IListRegionDiskTypesRequest + * @property {string|null} [filter] ListRegionDiskTypesRequest filter + * @property {number|null} [maxResults] ListRegionDiskTypesRequest maxResults + * @property {string|null} [orderBy] ListRegionDiskTypesRequest orderBy + * @property {string|null} [pageToken] ListRegionDiskTypesRequest pageToken + * @property {string|null} [project] ListRegionDiskTypesRequest project + * @property {string|null} [region] ListRegionDiskTypesRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionDiskTypesRequest returnPartialSuccess */ /** - * Constructs a new ListRegionCommitmentsRequest. + * Constructs a new ListRegionDiskTypesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionCommitmentsRequest. - * @implements IListRegionCommitmentsRequest + * @classdesc Represents a ListRegionDiskTypesRequest. + * @implements IListRegionDiskTypesRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionCommitmentsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionDiskTypesRequest=} [properties] Properties to set */ - function ListRegionCommitmentsRequest(properties) { + function ListRegionDiskTypesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -268936,141 +271445,141 @@ } /** - * ListRegionCommitmentsRequest filter. + * ListRegionDiskTypesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @instance */ - ListRegionCommitmentsRequest.prototype.filter = null; + ListRegionDiskTypesRequest.prototype.filter = null; /** - * ListRegionCommitmentsRequest maxResults. + * ListRegionDiskTypesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @instance */ - ListRegionCommitmentsRequest.prototype.maxResults = null; + ListRegionDiskTypesRequest.prototype.maxResults = null; /** - * ListRegionCommitmentsRequest orderBy. + * ListRegionDiskTypesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @instance */ - ListRegionCommitmentsRequest.prototype.orderBy = null; + ListRegionDiskTypesRequest.prototype.orderBy = null; /** - * ListRegionCommitmentsRequest pageToken. + * ListRegionDiskTypesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @instance */ - ListRegionCommitmentsRequest.prototype.pageToken = null; + ListRegionDiskTypesRequest.prototype.pageToken = null; /** - * ListRegionCommitmentsRequest project. + * ListRegionDiskTypesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @instance */ - ListRegionCommitmentsRequest.prototype.project = ""; + ListRegionDiskTypesRequest.prototype.project = ""; /** - * ListRegionCommitmentsRequest region. + * ListRegionDiskTypesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @instance */ - ListRegionCommitmentsRequest.prototype.region = ""; + ListRegionDiskTypesRequest.prototype.region = ""; /** - * ListRegionCommitmentsRequest returnPartialSuccess. + * ListRegionDiskTypesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @instance */ - ListRegionCommitmentsRequest.prototype.returnPartialSuccess = null; + ListRegionDiskTypesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * ListRegionCommitmentsRequest _filter. + * ListRegionDiskTypesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @instance */ - Object.defineProperty(ListRegionCommitmentsRequest.prototype, "_filter", { + Object.defineProperty(ListRegionDiskTypesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionCommitmentsRequest _maxResults. + * ListRegionDiskTypesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @instance */ - Object.defineProperty(ListRegionCommitmentsRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionDiskTypesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionCommitmentsRequest _orderBy. + * ListRegionDiskTypesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @instance */ - Object.defineProperty(ListRegionCommitmentsRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionDiskTypesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionCommitmentsRequest _pageToken. + * ListRegionDiskTypesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @instance */ - Object.defineProperty(ListRegionCommitmentsRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionDiskTypesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionCommitmentsRequest _returnPartialSuccess. + * ListRegionDiskTypesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @instance */ - Object.defineProperty(ListRegionCommitmentsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionDiskTypesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionCommitmentsRequest instance using the specified properties. + * Creates a new ListRegionDiskTypesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @static - * @param {google.cloud.compute.v1.IListRegionCommitmentsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionCommitmentsRequest} ListRegionCommitmentsRequest instance + * @param {google.cloud.compute.v1.IListRegionDiskTypesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionDiskTypesRequest} ListRegionDiskTypesRequest instance */ - ListRegionCommitmentsRequest.create = function create(properties) { - return new ListRegionCommitmentsRequest(properties); + ListRegionDiskTypesRequest.create = function create(properties) { + return new ListRegionDiskTypesRequest(properties); }; /** - * Encodes the specified ListRegionCommitmentsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionCommitmentsRequest.verify|verify} messages. + * Encodes the specified ListRegionDiskTypesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionDiskTypesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @static - * @param {google.cloud.compute.v1.IListRegionCommitmentsRequest} message ListRegionCommitmentsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionDiskTypesRequest} message ListRegionDiskTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionCommitmentsRequest.encode = function encode(message, writer) { + ListRegionDiskTypesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -269091,33 +271600,33 @@ }; /** - * Encodes the specified ListRegionCommitmentsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionCommitmentsRequest.verify|verify} messages. + * Encodes the specified ListRegionDiskTypesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionDiskTypesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @static - * @param {google.cloud.compute.v1.IListRegionCommitmentsRequest} message ListRegionCommitmentsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionDiskTypesRequest} message ListRegionDiskTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionCommitmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionDiskTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionCommitmentsRequest message from the specified reader or buffer. + * Decodes a ListRegionDiskTypesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionCommitmentsRequest} ListRegionCommitmentsRequest + * @returns {google.cloud.compute.v1.ListRegionDiskTypesRequest} ListRegionDiskTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionCommitmentsRequest.decode = function decode(reader, length) { + ListRegionDiskTypesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionCommitmentsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionDiskTypesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -269158,30 +271667,30 @@ }; /** - * Decodes a ListRegionCommitmentsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionDiskTypesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionCommitmentsRequest} ListRegionCommitmentsRequest + * @returns {google.cloud.compute.v1.ListRegionDiskTypesRequest} ListRegionDiskTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionCommitmentsRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionDiskTypesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionCommitmentsRequest message. + * Verifies a ListRegionDiskTypesRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionCommitmentsRequest.verify = function verify(message) { + ListRegionDiskTypesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -269220,17 +271729,17 @@ }; /** - * Creates a ListRegionCommitmentsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionDiskTypesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionCommitmentsRequest} ListRegionCommitmentsRequest + * @returns {google.cloud.compute.v1.ListRegionDiskTypesRequest} ListRegionDiskTypesRequest */ - ListRegionCommitmentsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionCommitmentsRequest) + ListRegionDiskTypesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionDiskTypesRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionCommitmentsRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionDiskTypesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -269249,15 +271758,15 @@ }; /** - * Creates a plain object from a ListRegionCommitmentsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionDiskTypesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @static - * @param {google.cloud.compute.v1.ListRegionCommitmentsRequest} message ListRegionCommitmentsRequest + * @param {google.cloud.compute.v1.ListRegionDiskTypesRequest} message ListRegionDiskTypesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionCommitmentsRequest.toObject = function toObject(message, options) { + ListRegionDiskTypesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -269298,58 +271807,58 @@ }; /** - * Converts this ListRegionCommitmentsRequest to JSON. + * Converts this ListRegionDiskTypesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @instance * @returns {Object.} JSON object */ - ListRegionCommitmentsRequest.prototype.toJSON = function toJSON() { + ListRegionDiskTypesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionCommitmentsRequest + * Gets the default type url for ListRegionDiskTypesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionCommitmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionDiskTypesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionCommitmentsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionDiskTypesRequest"; }; - return ListRegionCommitmentsRequest; + return ListRegionDiskTypesRequest; })(); - v1.ListRegionDiskTypesRequest = (function() { + v1.ListRegionDisksRequest = (function() { /** - * Properties of a ListRegionDiskTypesRequest. + * Properties of a ListRegionDisksRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionDiskTypesRequest - * @property {string|null} [filter] ListRegionDiskTypesRequest filter - * @property {number|null} [maxResults] ListRegionDiskTypesRequest maxResults - * @property {string|null} [orderBy] ListRegionDiskTypesRequest orderBy - * @property {string|null} [pageToken] ListRegionDiskTypesRequest pageToken - * @property {string|null} [project] ListRegionDiskTypesRequest project - * @property {string|null} [region] ListRegionDiskTypesRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionDiskTypesRequest returnPartialSuccess + * @interface IListRegionDisksRequest + * @property {string|null} [filter] ListRegionDisksRequest filter + * @property {number|null} [maxResults] ListRegionDisksRequest maxResults + * @property {string|null} [orderBy] ListRegionDisksRequest orderBy + * @property {string|null} [pageToken] ListRegionDisksRequest pageToken + * @property {string|null} [project] ListRegionDisksRequest project + * @property {string|null} [region] ListRegionDisksRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionDisksRequest returnPartialSuccess */ /** - * Constructs a new ListRegionDiskTypesRequest. + * Constructs a new ListRegionDisksRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionDiskTypesRequest. - * @implements IListRegionDiskTypesRequest + * @classdesc Represents a ListRegionDisksRequest. + * @implements IListRegionDisksRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionDiskTypesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionDisksRequest=} [properties] Properties to set */ - function ListRegionDiskTypesRequest(properties) { + function ListRegionDisksRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -269357,141 +271866,141 @@ } /** - * ListRegionDiskTypesRequest filter. + * ListRegionDisksRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @instance */ - ListRegionDiskTypesRequest.prototype.filter = null; + ListRegionDisksRequest.prototype.filter = null; /** - * ListRegionDiskTypesRequest maxResults. + * ListRegionDisksRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @instance */ - ListRegionDiskTypesRequest.prototype.maxResults = null; + ListRegionDisksRequest.prototype.maxResults = null; /** - * ListRegionDiskTypesRequest orderBy. + * ListRegionDisksRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @instance */ - ListRegionDiskTypesRequest.prototype.orderBy = null; + ListRegionDisksRequest.prototype.orderBy = null; /** - * ListRegionDiskTypesRequest pageToken. + * ListRegionDisksRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @instance */ - ListRegionDiskTypesRequest.prototype.pageToken = null; + ListRegionDisksRequest.prototype.pageToken = null; /** - * ListRegionDiskTypesRequest project. + * ListRegionDisksRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @instance */ - ListRegionDiskTypesRequest.prototype.project = ""; + ListRegionDisksRequest.prototype.project = ""; /** - * ListRegionDiskTypesRequest region. + * ListRegionDisksRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @instance */ - ListRegionDiskTypesRequest.prototype.region = ""; + ListRegionDisksRequest.prototype.region = ""; /** - * ListRegionDiskTypesRequest returnPartialSuccess. + * ListRegionDisksRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @instance */ - ListRegionDiskTypesRequest.prototype.returnPartialSuccess = null; + ListRegionDisksRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * ListRegionDiskTypesRequest _filter. + * ListRegionDisksRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @instance */ - Object.defineProperty(ListRegionDiskTypesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionDisksRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionDiskTypesRequest _maxResults. + * ListRegionDisksRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @instance */ - Object.defineProperty(ListRegionDiskTypesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionDisksRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionDiskTypesRequest _orderBy. + * ListRegionDisksRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @instance */ - Object.defineProperty(ListRegionDiskTypesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionDisksRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionDiskTypesRequest _pageToken. + * ListRegionDisksRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @instance */ - Object.defineProperty(ListRegionDiskTypesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionDisksRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionDiskTypesRequest _returnPartialSuccess. + * ListRegionDisksRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @instance */ - Object.defineProperty(ListRegionDiskTypesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionDisksRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionDiskTypesRequest instance using the specified properties. + * Creates a new ListRegionDisksRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @static - * @param {google.cloud.compute.v1.IListRegionDiskTypesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionDiskTypesRequest} ListRegionDiskTypesRequest instance + * @param {google.cloud.compute.v1.IListRegionDisksRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionDisksRequest} ListRegionDisksRequest instance */ - ListRegionDiskTypesRequest.create = function create(properties) { - return new ListRegionDiskTypesRequest(properties); + ListRegionDisksRequest.create = function create(properties) { + return new ListRegionDisksRequest(properties); }; /** - * Encodes the specified ListRegionDiskTypesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionDiskTypesRequest.verify|verify} messages. + * Encodes the specified ListRegionDisksRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionDisksRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @static - * @param {google.cloud.compute.v1.IListRegionDiskTypesRequest} message ListRegionDiskTypesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionDisksRequest} message ListRegionDisksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionDiskTypesRequest.encode = function encode(message, writer) { + ListRegionDisksRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -269512,33 +272021,33 @@ }; /** - * Encodes the specified ListRegionDiskTypesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionDiskTypesRequest.verify|verify} messages. + * Encodes the specified ListRegionDisksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionDisksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @static - * @param {google.cloud.compute.v1.IListRegionDiskTypesRequest} message ListRegionDiskTypesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionDisksRequest} message ListRegionDisksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionDiskTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionDisksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionDiskTypesRequest message from the specified reader or buffer. + * Decodes a ListRegionDisksRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionDiskTypesRequest} ListRegionDiskTypesRequest + * @returns {google.cloud.compute.v1.ListRegionDisksRequest} ListRegionDisksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionDiskTypesRequest.decode = function decode(reader, length) { + ListRegionDisksRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionDiskTypesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionDisksRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -269579,30 +272088,30 @@ }; /** - * Decodes a ListRegionDiskTypesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionDisksRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionDiskTypesRequest} ListRegionDiskTypesRequest + * @returns {google.cloud.compute.v1.ListRegionDisksRequest} ListRegionDisksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionDiskTypesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionDisksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionDiskTypesRequest message. + * Verifies a ListRegionDisksRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionDiskTypesRequest.verify = function verify(message) { + ListRegionDisksRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -269641,17 +272150,17 @@ }; /** - * Creates a ListRegionDiskTypesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionDisksRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionDiskTypesRequest} ListRegionDiskTypesRequest + * @returns {google.cloud.compute.v1.ListRegionDisksRequest} ListRegionDisksRequest */ - ListRegionDiskTypesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionDiskTypesRequest) + ListRegionDisksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionDisksRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionDiskTypesRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionDisksRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -269670,15 +272179,15 @@ }; /** - * Creates a plain object from a ListRegionDiskTypesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionDisksRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @static - * @param {google.cloud.compute.v1.ListRegionDiskTypesRequest} message ListRegionDiskTypesRequest + * @param {google.cloud.compute.v1.ListRegionDisksRequest} message ListRegionDisksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionDiskTypesRequest.toObject = function toObject(message, options) { + ListRegionDisksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -269719,58 +272228,58 @@ }; /** - * Converts this ListRegionDiskTypesRequest to JSON. + * Converts this ListRegionDisksRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @instance * @returns {Object.} JSON object */ - ListRegionDiskTypesRequest.prototype.toJSON = function toJSON() { + ListRegionDisksRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionDiskTypesRequest + * Gets the default type url for ListRegionDisksRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionDiskTypesRequest + * @memberof google.cloud.compute.v1.ListRegionDisksRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionDiskTypesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionDisksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionDiskTypesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionDisksRequest"; }; - return ListRegionDiskTypesRequest; + return ListRegionDisksRequest; })(); - v1.ListRegionDisksRequest = (function() { + v1.ListRegionHealthCheckServicesRequest = (function() { /** - * Properties of a ListRegionDisksRequest. + * Properties of a ListRegionHealthCheckServicesRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionDisksRequest - * @property {string|null} [filter] ListRegionDisksRequest filter - * @property {number|null} [maxResults] ListRegionDisksRequest maxResults - * @property {string|null} [orderBy] ListRegionDisksRequest orderBy - * @property {string|null} [pageToken] ListRegionDisksRequest pageToken - * @property {string|null} [project] ListRegionDisksRequest project - * @property {string|null} [region] ListRegionDisksRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionDisksRequest returnPartialSuccess + * @interface IListRegionHealthCheckServicesRequest + * @property {string|null} [filter] ListRegionHealthCheckServicesRequest filter + * @property {number|null} [maxResults] ListRegionHealthCheckServicesRequest maxResults + * @property {string|null} [orderBy] ListRegionHealthCheckServicesRequest orderBy + * @property {string|null} [pageToken] ListRegionHealthCheckServicesRequest pageToken + * @property {string|null} [project] ListRegionHealthCheckServicesRequest project + * @property {string|null} [region] ListRegionHealthCheckServicesRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionHealthCheckServicesRequest returnPartialSuccess */ /** - * Constructs a new ListRegionDisksRequest. + * Constructs a new ListRegionHealthCheckServicesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionDisksRequest. - * @implements IListRegionDisksRequest + * @classdesc Represents a ListRegionHealthCheckServicesRequest. + * @implements IListRegionHealthCheckServicesRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionDisksRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionHealthCheckServicesRequest=} [properties] Properties to set */ - function ListRegionDisksRequest(properties) { + function ListRegionHealthCheckServicesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -269778,141 +272287,141 @@ } /** - * ListRegionDisksRequest filter. + * ListRegionHealthCheckServicesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @instance */ - ListRegionDisksRequest.prototype.filter = null; + ListRegionHealthCheckServicesRequest.prototype.filter = null; /** - * ListRegionDisksRequest maxResults. + * ListRegionHealthCheckServicesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @instance */ - ListRegionDisksRequest.prototype.maxResults = null; + ListRegionHealthCheckServicesRequest.prototype.maxResults = null; /** - * ListRegionDisksRequest orderBy. + * ListRegionHealthCheckServicesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @instance */ - ListRegionDisksRequest.prototype.orderBy = null; + ListRegionHealthCheckServicesRequest.prototype.orderBy = null; /** - * ListRegionDisksRequest pageToken. + * ListRegionHealthCheckServicesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @instance */ - ListRegionDisksRequest.prototype.pageToken = null; + ListRegionHealthCheckServicesRequest.prototype.pageToken = null; /** - * ListRegionDisksRequest project. + * ListRegionHealthCheckServicesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @instance */ - ListRegionDisksRequest.prototype.project = ""; + ListRegionHealthCheckServicesRequest.prototype.project = ""; /** - * ListRegionDisksRequest region. + * ListRegionHealthCheckServicesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @instance */ - ListRegionDisksRequest.prototype.region = ""; + ListRegionHealthCheckServicesRequest.prototype.region = ""; /** - * ListRegionDisksRequest returnPartialSuccess. + * ListRegionHealthCheckServicesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @instance */ - ListRegionDisksRequest.prototype.returnPartialSuccess = null; + ListRegionHealthCheckServicesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * ListRegionDisksRequest _filter. + * ListRegionHealthCheckServicesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @instance */ - Object.defineProperty(ListRegionDisksRequest.prototype, "_filter", { + Object.defineProperty(ListRegionHealthCheckServicesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionDisksRequest _maxResults. + * ListRegionHealthCheckServicesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @instance */ - Object.defineProperty(ListRegionDisksRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionHealthCheckServicesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionDisksRequest _orderBy. + * ListRegionHealthCheckServicesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @instance */ - Object.defineProperty(ListRegionDisksRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionHealthCheckServicesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionDisksRequest _pageToken. + * ListRegionHealthCheckServicesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @instance */ - Object.defineProperty(ListRegionDisksRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionHealthCheckServicesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionDisksRequest _returnPartialSuccess. + * ListRegionHealthCheckServicesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @instance */ - Object.defineProperty(ListRegionDisksRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionHealthCheckServicesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionDisksRequest instance using the specified properties. + * Creates a new ListRegionHealthCheckServicesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @static - * @param {google.cloud.compute.v1.IListRegionDisksRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionDisksRequest} ListRegionDisksRequest instance + * @param {google.cloud.compute.v1.IListRegionHealthCheckServicesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionHealthCheckServicesRequest} ListRegionHealthCheckServicesRequest instance */ - ListRegionDisksRequest.create = function create(properties) { - return new ListRegionDisksRequest(properties); + ListRegionHealthCheckServicesRequest.create = function create(properties) { + return new ListRegionHealthCheckServicesRequest(properties); }; /** - * Encodes the specified ListRegionDisksRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionDisksRequest.verify|verify} messages. + * Encodes the specified ListRegionHealthCheckServicesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionHealthCheckServicesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @static - * @param {google.cloud.compute.v1.IListRegionDisksRequest} message ListRegionDisksRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionHealthCheckServicesRequest} message ListRegionHealthCheckServicesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionDisksRequest.encode = function encode(message, writer) { + ListRegionHealthCheckServicesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -269933,33 +272442,33 @@ }; /** - * Encodes the specified ListRegionDisksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionDisksRequest.verify|verify} messages. + * Encodes the specified ListRegionHealthCheckServicesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionHealthCheckServicesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @static - * @param {google.cloud.compute.v1.IListRegionDisksRequest} message ListRegionDisksRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionHealthCheckServicesRequest} message ListRegionHealthCheckServicesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionDisksRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionHealthCheckServicesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionDisksRequest message from the specified reader or buffer. + * Decodes a ListRegionHealthCheckServicesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionDisksRequest} ListRegionDisksRequest + * @returns {google.cloud.compute.v1.ListRegionHealthCheckServicesRequest} ListRegionHealthCheckServicesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionDisksRequest.decode = function decode(reader, length) { + ListRegionHealthCheckServicesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionDisksRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionHealthCheckServicesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -270000,30 +272509,30 @@ }; /** - * Decodes a ListRegionDisksRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionHealthCheckServicesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionDisksRequest} ListRegionDisksRequest + * @returns {google.cloud.compute.v1.ListRegionHealthCheckServicesRequest} ListRegionHealthCheckServicesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionDisksRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionHealthCheckServicesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionDisksRequest message. + * Verifies a ListRegionHealthCheckServicesRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionDisksRequest.verify = function verify(message) { + ListRegionHealthCheckServicesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -270062,17 +272571,17 @@ }; /** - * Creates a ListRegionDisksRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionHealthCheckServicesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionDisksRequest} ListRegionDisksRequest + * @returns {google.cloud.compute.v1.ListRegionHealthCheckServicesRequest} ListRegionHealthCheckServicesRequest */ - ListRegionDisksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionDisksRequest) + ListRegionHealthCheckServicesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionHealthCheckServicesRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionDisksRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionHealthCheckServicesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -270091,15 +272600,15 @@ }; /** - * Creates a plain object from a ListRegionDisksRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionHealthCheckServicesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @static - * @param {google.cloud.compute.v1.ListRegionDisksRequest} message ListRegionDisksRequest + * @param {google.cloud.compute.v1.ListRegionHealthCheckServicesRequest} message ListRegionHealthCheckServicesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionDisksRequest.toObject = function toObject(message, options) { + ListRegionHealthCheckServicesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -270140,58 +272649,58 @@ }; /** - * Converts this ListRegionDisksRequest to JSON. + * Converts this ListRegionHealthCheckServicesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @instance * @returns {Object.} JSON object */ - ListRegionDisksRequest.prototype.toJSON = function toJSON() { + ListRegionHealthCheckServicesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionDisksRequest + * Gets the default type url for ListRegionHealthCheckServicesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionDisksRequest + * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionDisksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionHealthCheckServicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionDisksRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionHealthCheckServicesRequest"; }; - return ListRegionDisksRequest; + return ListRegionHealthCheckServicesRequest; })(); - v1.ListRegionHealthCheckServicesRequest = (function() { + v1.ListRegionHealthChecksRequest = (function() { /** - * Properties of a ListRegionHealthCheckServicesRequest. + * Properties of a ListRegionHealthChecksRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionHealthCheckServicesRequest - * @property {string|null} [filter] ListRegionHealthCheckServicesRequest filter - * @property {number|null} [maxResults] ListRegionHealthCheckServicesRequest maxResults - * @property {string|null} [orderBy] ListRegionHealthCheckServicesRequest orderBy - * @property {string|null} [pageToken] ListRegionHealthCheckServicesRequest pageToken - * @property {string|null} [project] ListRegionHealthCheckServicesRequest project - * @property {string|null} [region] ListRegionHealthCheckServicesRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionHealthCheckServicesRequest returnPartialSuccess + * @interface IListRegionHealthChecksRequest + * @property {string|null} [filter] ListRegionHealthChecksRequest filter + * @property {number|null} [maxResults] ListRegionHealthChecksRequest maxResults + * @property {string|null} [orderBy] ListRegionHealthChecksRequest orderBy + * @property {string|null} [pageToken] ListRegionHealthChecksRequest pageToken + * @property {string|null} [project] ListRegionHealthChecksRequest project + * @property {string|null} [region] ListRegionHealthChecksRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionHealthChecksRequest returnPartialSuccess */ /** - * Constructs a new ListRegionHealthCheckServicesRequest. + * Constructs a new ListRegionHealthChecksRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionHealthCheckServicesRequest. - * @implements IListRegionHealthCheckServicesRequest + * @classdesc Represents a ListRegionHealthChecksRequest. + * @implements IListRegionHealthChecksRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionHealthCheckServicesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionHealthChecksRequest=} [properties] Properties to set */ - function ListRegionHealthCheckServicesRequest(properties) { + function ListRegionHealthChecksRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -270199,141 +272708,141 @@ } /** - * ListRegionHealthCheckServicesRequest filter. + * ListRegionHealthChecksRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @instance */ - ListRegionHealthCheckServicesRequest.prototype.filter = null; + ListRegionHealthChecksRequest.prototype.filter = null; /** - * ListRegionHealthCheckServicesRequest maxResults. + * ListRegionHealthChecksRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @instance */ - ListRegionHealthCheckServicesRequest.prototype.maxResults = null; + ListRegionHealthChecksRequest.prototype.maxResults = null; /** - * ListRegionHealthCheckServicesRequest orderBy. + * ListRegionHealthChecksRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @instance */ - ListRegionHealthCheckServicesRequest.prototype.orderBy = null; + ListRegionHealthChecksRequest.prototype.orderBy = null; /** - * ListRegionHealthCheckServicesRequest pageToken. + * ListRegionHealthChecksRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @instance */ - ListRegionHealthCheckServicesRequest.prototype.pageToken = null; + ListRegionHealthChecksRequest.prototype.pageToken = null; /** - * ListRegionHealthCheckServicesRequest project. + * ListRegionHealthChecksRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @instance */ - ListRegionHealthCheckServicesRequest.prototype.project = ""; + ListRegionHealthChecksRequest.prototype.project = ""; /** - * ListRegionHealthCheckServicesRequest region. + * ListRegionHealthChecksRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @instance */ - ListRegionHealthCheckServicesRequest.prototype.region = ""; + ListRegionHealthChecksRequest.prototype.region = ""; /** - * ListRegionHealthCheckServicesRequest returnPartialSuccess. + * ListRegionHealthChecksRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @instance */ - ListRegionHealthCheckServicesRequest.prototype.returnPartialSuccess = null; + ListRegionHealthChecksRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * ListRegionHealthCheckServicesRequest _filter. + * ListRegionHealthChecksRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @instance */ - Object.defineProperty(ListRegionHealthCheckServicesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionHealthChecksRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionHealthCheckServicesRequest _maxResults. + * ListRegionHealthChecksRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @instance */ - Object.defineProperty(ListRegionHealthCheckServicesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionHealthChecksRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionHealthCheckServicesRequest _orderBy. + * ListRegionHealthChecksRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @instance */ - Object.defineProperty(ListRegionHealthCheckServicesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionHealthChecksRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionHealthCheckServicesRequest _pageToken. + * ListRegionHealthChecksRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @instance */ - Object.defineProperty(ListRegionHealthCheckServicesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionHealthChecksRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionHealthCheckServicesRequest _returnPartialSuccess. + * ListRegionHealthChecksRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @instance */ - Object.defineProperty(ListRegionHealthCheckServicesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionHealthChecksRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionHealthCheckServicesRequest instance using the specified properties. + * Creates a new ListRegionHealthChecksRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @static - * @param {google.cloud.compute.v1.IListRegionHealthCheckServicesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionHealthCheckServicesRequest} ListRegionHealthCheckServicesRequest instance + * @param {google.cloud.compute.v1.IListRegionHealthChecksRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionHealthChecksRequest} ListRegionHealthChecksRequest instance */ - ListRegionHealthCheckServicesRequest.create = function create(properties) { - return new ListRegionHealthCheckServicesRequest(properties); + ListRegionHealthChecksRequest.create = function create(properties) { + return new ListRegionHealthChecksRequest(properties); }; /** - * Encodes the specified ListRegionHealthCheckServicesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionHealthCheckServicesRequest.verify|verify} messages. + * Encodes the specified ListRegionHealthChecksRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionHealthChecksRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @static - * @param {google.cloud.compute.v1.IListRegionHealthCheckServicesRequest} message ListRegionHealthCheckServicesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionHealthChecksRequest} message ListRegionHealthChecksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionHealthCheckServicesRequest.encode = function encode(message, writer) { + ListRegionHealthChecksRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -270354,33 +272863,33 @@ }; /** - * Encodes the specified ListRegionHealthCheckServicesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionHealthCheckServicesRequest.verify|verify} messages. + * Encodes the specified ListRegionHealthChecksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionHealthChecksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @static - * @param {google.cloud.compute.v1.IListRegionHealthCheckServicesRequest} message ListRegionHealthCheckServicesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionHealthChecksRequest} message ListRegionHealthChecksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionHealthCheckServicesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionHealthChecksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionHealthCheckServicesRequest message from the specified reader or buffer. + * Decodes a ListRegionHealthChecksRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionHealthCheckServicesRequest} ListRegionHealthCheckServicesRequest + * @returns {google.cloud.compute.v1.ListRegionHealthChecksRequest} ListRegionHealthChecksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionHealthCheckServicesRequest.decode = function decode(reader, length) { + ListRegionHealthChecksRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionHealthCheckServicesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionHealthChecksRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -270421,30 +272930,30 @@ }; /** - * Decodes a ListRegionHealthCheckServicesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionHealthChecksRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionHealthCheckServicesRequest} ListRegionHealthCheckServicesRequest + * @returns {google.cloud.compute.v1.ListRegionHealthChecksRequest} ListRegionHealthChecksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionHealthCheckServicesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionHealthChecksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionHealthCheckServicesRequest message. + * Verifies a ListRegionHealthChecksRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionHealthCheckServicesRequest.verify = function verify(message) { + ListRegionHealthChecksRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -270483,17 +272992,17 @@ }; /** - * Creates a ListRegionHealthCheckServicesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionHealthChecksRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionHealthCheckServicesRequest} ListRegionHealthCheckServicesRequest + * @returns {google.cloud.compute.v1.ListRegionHealthChecksRequest} ListRegionHealthChecksRequest */ - ListRegionHealthCheckServicesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionHealthCheckServicesRequest) + ListRegionHealthChecksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionHealthChecksRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionHealthCheckServicesRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionHealthChecksRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -270512,15 +273021,15 @@ }; /** - * Creates a plain object from a ListRegionHealthCheckServicesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionHealthChecksRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @static - * @param {google.cloud.compute.v1.ListRegionHealthCheckServicesRequest} message ListRegionHealthCheckServicesRequest + * @param {google.cloud.compute.v1.ListRegionHealthChecksRequest} message ListRegionHealthChecksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionHealthCheckServicesRequest.toObject = function toObject(message, options) { + ListRegionHealthChecksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -270561,58 +273070,58 @@ }; /** - * Converts this ListRegionHealthCheckServicesRequest to JSON. + * Converts this ListRegionHealthChecksRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @instance * @returns {Object.} JSON object */ - ListRegionHealthCheckServicesRequest.prototype.toJSON = function toJSON() { + ListRegionHealthChecksRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionHealthCheckServicesRequest + * Gets the default type url for ListRegionHealthChecksRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionHealthCheckServicesRequest + * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionHealthCheckServicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionHealthChecksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionHealthCheckServicesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionHealthChecksRequest"; }; - return ListRegionHealthCheckServicesRequest; + return ListRegionHealthChecksRequest; })(); - v1.ListRegionHealthChecksRequest = (function() { + v1.ListRegionInstanceGroupManagersRequest = (function() { /** - * Properties of a ListRegionHealthChecksRequest. + * Properties of a ListRegionInstanceGroupManagersRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionHealthChecksRequest - * @property {string|null} [filter] ListRegionHealthChecksRequest filter - * @property {number|null} [maxResults] ListRegionHealthChecksRequest maxResults - * @property {string|null} [orderBy] ListRegionHealthChecksRequest orderBy - * @property {string|null} [pageToken] ListRegionHealthChecksRequest pageToken - * @property {string|null} [project] ListRegionHealthChecksRequest project - * @property {string|null} [region] ListRegionHealthChecksRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionHealthChecksRequest returnPartialSuccess + * @interface IListRegionInstanceGroupManagersRequest + * @property {string|null} [filter] ListRegionInstanceGroupManagersRequest filter + * @property {number|null} [maxResults] ListRegionInstanceGroupManagersRequest maxResults + * @property {string|null} [orderBy] ListRegionInstanceGroupManagersRequest orderBy + * @property {string|null} [pageToken] ListRegionInstanceGroupManagersRequest pageToken + * @property {string|null} [project] ListRegionInstanceGroupManagersRequest project + * @property {string|null} [region] ListRegionInstanceGroupManagersRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionInstanceGroupManagersRequest returnPartialSuccess */ /** - * Constructs a new ListRegionHealthChecksRequest. + * Constructs a new ListRegionInstanceGroupManagersRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionHealthChecksRequest. - * @implements IListRegionHealthChecksRequest + * @classdesc Represents a ListRegionInstanceGroupManagersRequest. + * @implements IListRegionInstanceGroupManagersRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionHealthChecksRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionInstanceGroupManagersRequest=} [properties] Properties to set */ - function ListRegionHealthChecksRequest(properties) { + function ListRegionInstanceGroupManagersRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -270620,141 +273129,141 @@ } /** - * ListRegionHealthChecksRequest filter. + * ListRegionInstanceGroupManagersRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @instance */ - ListRegionHealthChecksRequest.prototype.filter = null; + ListRegionInstanceGroupManagersRequest.prototype.filter = null; /** - * ListRegionHealthChecksRequest maxResults. + * ListRegionInstanceGroupManagersRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @instance */ - ListRegionHealthChecksRequest.prototype.maxResults = null; + ListRegionInstanceGroupManagersRequest.prototype.maxResults = null; /** - * ListRegionHealthChecksRequest orderBy. + * ListRegionInstanceGroupManagersRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @instance */ - ListRegionHealthChecksRequest.prototype.orderBy = null; + ListRegionInstanceGroupManagersRequest.prototype.orderBy = null; /** - * ListRegionHealthChecksRequest pageToken. + * ListRegionInstanceGroupManagersRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @instance */ - ListRegionHealthChecksRequest.prototype.pageToken = null; + ListRegionInstanceGroupManagersRequest.prototype.pageToken = null; /** - * ListRegionHealthChecksRequest project. + * ListRegionInstanceGroupManagersRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @instance */ - ListRegionHealthChecksRequest.prototype.project = ""; + ListRegionInstanceGroupManagersRequest.prototype.project = ""; /** - * ListRegionHealthChecksRequest region. + * ListRegionInstanceGroupManagersRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @instance */ - ListRegionHealthChecksRequest.prototype.region = ""; + ListRegionInstanceGroupManagersRequest.prototype.region = ""; /** - * ListRegionHealthChecksRequest returnPartialSuccess. + * ListRegionInstanceGroupManagersRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @instance */ - ListRegionHealthChecksRequest.prototype.returnPartialSuccess = null; + ListRegionInstanceGroupManagersRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * ListRegionHealthChecksRequest _filter. + * ListRegionInstanceGroupManagersRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @instance */ - Object.defineProperty(ListRegionHealthChecksRequest.prototype, "_filter", { + Object.defineProperty(ListRegionInstanceGroupManagersRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionHealthChecksRequest _maxResults. + * ListRegionInstanceGroupManagersRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @instance */ - Object.defineProperty(ListRegionHealthChecksRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionInstanceGroupManagersRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionHealthChecksRequest _orderBy. + * ListRegionInstanceGroupManagersRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @instance */ - Object.defineProperty(ListRegionHealthChecksRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionInstanceGroupManagersRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionHealthChecksRequest _pageToken. + * ListRegionInstanceGroupManagersRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @instance */ - Object.defineProperty(ListRegionHealthChecksRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionInstanceGroupManagersRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionHealthChecksRequest _returnPartialSuccess. + * ListRegionInstanceGroupManagersRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @instance */ - Object.defineProperty(ListRegionHealthChecksRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionInstanceGroupManagersRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionHealthChecksRequest instance using the specified properties. + * Creates a new ListRegionInstanceGroupManagersRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @static - * @param {google.cloud.compute.v1.IListRegionHealthChecksRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionHealthChecksRequest} ListRegionHealthChecksRequest instance + * @param {google.cloud.compute.v1.IListRegionInstanceGroupManagersRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest} ListRegionInstanceGroupManagersRequest instance */ - ListRegionHealthChecksRequest.create = function create(properties) { - return new ListRegionHealthChecksRequest(properties); + ListRegionInstanceGroupManagersRequest.create = function create(properties) { + return new ListRegionInstanceGroupManagersRequest(properties); }; /** - * Encodes the specified ListRegionHealthChecksRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionHealthChecksRequest.verify|verify} messages. + * Encodes the specified ListRegionInstanceGroupManagersRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @static - * @param {google.cloud.compute.v1.IListRegionHealthChecksRequest} message ListRegionHealthChecksRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionInstanceGroupManagersRequest} message ListRegionInstanceGroupManagersRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionHealthChecksRequest.encode = function encode(message, writer) { + ListRegionInstanceGroupManagersRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -270775,33 +273284,33 @@ }; /** - * Encodes the specified ListRegionHealthChecksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionHealthChecksRequest.verify|verify} messages. + * Encodes the specified ListRegionInstanceGroupManagersRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @static - * @param {google.cloud.compute.v1.IListRegionHealthChecksRequest} message ListRegionHealthChecksRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionInstanceGroupManagersRequest} message ListRegionInstanceGroupManagersRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionHealthChecksRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionInstanceGroupManagersRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionHealthChecksRequest message from the specified reader or buffer. + * Decodes a ListRegionInstanceGroupManagersRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionHealthChecksRequest} ListRegionHealthChecksRequest + * @returns {google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest} ListRegionInstanceGroupManagersRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionHealthChecksRequest.decode = function decode(reader, length) { + ListRegionInstanceGroupManagersRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionHealthChecksRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -270842,30 +273351,30 @@ }; /** - * Decodes a ListRegionHealthChecksRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionInstanceGroupManagersRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionHealthChecksRequest} ListRegionHealthChecksRequest + * @returns {google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest} ListRegionInstanceGroupManagersRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionHealthChecksRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionInstanceGroupManagersRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionHealthChecksRequest message. + * Verifies a ListRegionInstanceGroupManagersRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionHealthChecksRequest.verify = function verify(message) { + ListRegionInstanceGroupManagersRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -270904,17 +273413,17 @@ }; /** - * Creates a ListRegionHealthChecksRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionInstanceGroupManagersRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionHealthChecksRequest} ListRegionHealthChecksRequest + * @returns {google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest} ListRegionInstanceGroupManagersRequest */ - ListRegionHealthChecksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionHealthChecksRequest) + ListRegionInstanceGroupManagersRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionHealthChecksRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -270933,15 +273442,15 @@ }; /** - * Creates a plain object from a ListRegionHealthChecksRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionInstanceGroupManagersRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @static - * @param {google.cloud.compute.v1.ListRegionHealthChecksRequest} message ListRegionHealthChecksRequest + * @param {google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest} message ListRegionInstanceGroupManagersRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionHealthChecksRequest.toObject = function toObject(message, options) { + ListRegionInstanceGroupManagersRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -270982,58 +273491,58 @@ }; /** - * Converts this ListRegionHealthChecksRequest to JSON. + * Converts this ListRegionInstanceGroupManagersRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @instance * @returns {Object.} JSON object */ - ListRegionHealthChecksRequest.prototype.toJSON = function toJSON() { + ListRegionInstanceGroupManagersRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionHealthChecksRequest + * Gets the default type url for ListRegionInstanceGroupManagersRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionHealthChecksRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionHealthChecksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionInstanceGroupManagersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionHealthChecksRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest"; }; - return ListRegionHealthChecksRequest; + return ListRegionInstanceGroupManagersRequest; })(); - v1.ListRegionInstanceGroupManagersRequest = (function() { + v1.ListRegionInstanceGroupsRequest = (function() { /** - * Properties of a ListRegionInstanceGroupManagersRequest. + * Properties of a ListRegionInstanceGroupsRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionInstanceGroupManagersRequest - * @property {string|null} [filter] ListRegionInstanceGroupManagersRequest filter - * @property {number|null} [maxResults] ListRegionInstanceGroupManagersRequest maxResults - * @property {string|null} [orderBy] ListRegionInstanceGroupManagersRequest orderBy - * @property {string|null} [pageToken] ListRegionInstanceGroupManagersRequest pageToken - * @property {string|null} [project] ListRegionInstanceGroupManagersRequest project - * @property {string|null} [region] ListRegionInstanceGroupManagersRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionInstanceGroupManagersRequest returnPartialSuccess + * @interface IListRegionInstanceGroupsRequest + * @property {string|null} [filter] ListRegionInstanceGroupsRequest filter + * @property {number|null} [maxResults] ListRegionInstanceGroupsRequest maxResults + * @property {string|null} [orderBy] ListRegionInstanceGroupsRequest orderBy + * @property {string|null} [pageToken] ListRegionInstanceGroupsRequest pageToken + * @property {string|null} [project] ListRegionInstanceGroupsRequest project + * @property {string|null} [region] ListRegionInstanceGroupsRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionInstanceGroupsRequest returnPartialSuccess */ /** - * Constructs a new ListRegionInstanceGroupManagersRequest. + * Constructs a new ListRegionInstanceGroupsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionInstanceGroupManagersRequest. - * @implements IListRegionInstanceGroupManagersRequest + * @classdesc Represents a ListRegionInstanceGroupsRequest. + * @implements IListRegionInstanceGroupsRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionInstanceGroupManagersRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionInstanceGroupsRequest=} [properties] Properties to set */ - function ListRegionInstanceGroupManagersRequest(properties) { + function ListRegionInstanceGroupsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -271041,141 +273550,141 @@ } /** - * ListRegionInstanceGroupManagersRequest filter. + * ListRegionInstanceGroupsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @instance */ - ListRegionInstanceGroupManagersRequest.prototype.filter = null; + ListRegionInstanceGroupsRequest.prototype.filter = null; /** - * ListRegionInstanceGroupManagersRequest maxResults. + * ListRegionInstanceGroupsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @instance */ - ListRegionInstanceGroupManagersRequest.prototype.maxResults = null; + ListRegionInstanceGroupsRequest.prototype.maxResults = null; /** - * ListRegionInstanceGroupManagersRequest orderBy. + * ListRegionInstanceGroupsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @instance */ - ListRegionInstanceGroupManagersRequest.prototype.orderBy = null; + ListRegionInstanceGroupsRequest.prototype.orderBy = null; /** - * ListRegionInstanceGroupManagersRequest pageToken. + * ListRegionInstanceGroupsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @instance */ - ListRegionInstanceGroupManagersRequest.prototype.pageToken = null; + ListRegionInstanceGroupsRequest.prototype.pageToken = null; /** - * ListRegionInstanceGroupManagersRequest project. + * ListRegionInstanceGroupsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @instance */ - ListRegionInstanceGroupManagersRequest.prototype.project = ""; + ListRegionInstanceGroupsRequest.prototype.project = ""; /** - * ListRegionInstanceGroupManagersRequest region. + * ListRegionInstanceGroupsRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @instance */ - ListRegionInstanceGroupManagersRequest.prototype.region = ""; + ListRegionInstanceGroupsRequest.prototype.region = ""; /** - * ListRegionInstanceGroupManagersRequest returnPartialSuccess. + * ListRegionInstanceGroupsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @instance */ - ListRegionInstanceGroupManagersRequest.prototype.returnPartialSuccess = null; + ListRegionInstanceGroupsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * ListRegionInstanceGroupManagersRequest _filter. + * ListRegionInstanceGroupsRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @instance */ - Object.defineProperty(ListRegionInstanceGroupManagersRequest.prototype, "_filter", { + Object.defineProperty(ListRegionInstanceGroupsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionInstanceGroupManagersRequest _maxResults. + * ListRegionInstanceGroupsRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @instance */ - Object.defineProperty(ListRegionInstanceGroupManagersRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionInstanceGroupsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionInstanceGroupManagersRequest _orderBy. + * ListRegionInstanceGroupsRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @instance */ - Object.defineProperty(ListRegionInstanceGroupManagersRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionInstanceGroupsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionInstanceGroupManagersRequest _pageToken. + * ListRegionInstanceGroupsRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @instance */ - Object.defineProperty(ListRegionInstanceGroupManagersRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionInstanceGroupsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionInstanceGroupManagersRequest _returnPartialSuccess. + * ListRegionInstanceGroupsRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @instance */ - Object.defineProperty(ListRegionInstanceGroupManagersRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionInstanceGroupsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionInstanceGroupManagersRequest instance using the specified properties. + * Creates a new ListRegionInstanceGroupsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @static - * @param {google.cloud.compute.v1.IListRegionInstanceGroupManagersRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest} ListRegionInstanceGroupManagersRequest instance + * @param {google.cloud.compute.v1.IListRegionInstanceGroupsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionInstanceGroupsRequest} ListRegionInstanceGroupsRequest instance */ - ListRegionInstanceGroupManagersRequest.create = function create(properties) { - return new ListRegionInstanceGroupManagersRequest(properties); + ListRegionInstanceGroupsRequest.create = function create(properties) { + return new ListRegionInstanceGroupsRequest(properties); }; /** - * Encodes the specified ListRegionInstanceGroupManagersRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest.verify|verify} messages. + * Encodes the specified ListRegionInstanceGroupsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstanceGroupsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @static - * @param {google.cloud.compute.v1.IListRegionInstanceGroupManagersRequest} message ListRegionInstanceGroupManagersRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionInstanceGroupsRequest} message ListRegionInstanceGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionInstanceGroupManagersRequest.encode = function encode(message, writer) { + ListRegionInstanceGroupsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -271196,33 +273705,33 @@ }; /** - * Encodes the specified ListRegionInstanceGroupManagersRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest.verify|verify} messages. + * Encodes the specified ListRegionInstanceGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstanceGroupsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @static - * @param {google.cloud.compute.v1.IListRegionInstanceGroupManagersRequest} message ListRegionInstanceGroupManagersRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionInstanceGroupsRequest} message ListRegionInstanceGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionInstanceGroupManagersRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionInstanceGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionInstanceGroupManagersRequest message from the specified reader or buffer. + * Decodes a ListRegionInstanceGroupsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest} ListRegionInstanceGroupManagersRequest + * @returns {google.cloud.compute.v1.ListRegionInstanceGroupsRequest} ListRegionInstanceGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionInstanceGroupManagersRequest.decode = function decode(reader, length) { + ListRegionInstanceGroupsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionInstanceGroupsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -271263,30 +273772,30 @@ }; /** - * Decodes a ListRegionInstanceGroupManagersRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionInstanceGroupsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest} ListRegionInstanceGroupManagersRequest + * @returns {google.cloud.compute.v1.ListRegionInstanceGroupsRequest} ListRegionInstanceGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionInstanceGroupManagersRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionInstanceGroupsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionInstanceGroupManagersRequest message. + * Verifies a ListRegionInstanceGroupsRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionInstanceGroupManagersRequest.verify = function verify(message) { + ListRegionInstanceGroupsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -271325,17 +273834,17 @@ }; /** - * Creates a ListRegionInstanceGroupManagersRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionInstanceGroupsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest} ListRegionInstanceGroupManagersRequest + * @returns {google.cloud.compute.v1.ListRegionInstanceGroupsRequest} ListRegionInstanceGroupsRequest */ - ListRegionInstanceGroupManagersRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest) + ListRegionInstanceGroupsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionInstanceGroupsRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionInstanceGroupsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -271354,15 +273863,15 @@ }; /** - * Creates a plain object from a ListRegionInstanceGroupManagersRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionInstanceGroupsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @static - * @param {google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest} message ListRegionInstanceGroupManagersRequest + * @param {google.cloud.compute.v1.ListRegionInstanceGroupsRequest} message ListRegionInstanceGroupsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionInstanceGroupManagersRequest.toObject = function toObject(message, options) { + ListRegionInstanceGroupsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -271403,58 +273912,58 @@ }; /** - * Converts this ListRegionInstanceGroupManagersRequest to JSON. + * Converts this ListRegionInstanceGroupsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @instance * @returns {Object.} JSON object */ - ListRegionInstanceGroupManagersRequest.prototype.toJSON = function toJSON() { + ListRegionInstanceGroupsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionInstanceGroupManagersRequest + * Gets the default type url for ListRegionInstanceGroupsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionInstanceGroupManagersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionInstanceGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionInstanceGroupsRequest"; }; - return ListRegionInstanceGroupManagersRequest; + return ListRegionInstanceGroupsRequest; })(); - v1.ListRegionInstanceGroupsRequest = (function() { + v1.ListRegionInstanceTemplatesRequest = (function() { /** - * Properties of a ListRegionInstanceGroupsRequest. + * Properties of a ListRegionInstanceTemplatesRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionInstanceGroupsRequest - * @property {string|null} [filter] ListRegionInstanceGroupsRequest filter - * @property {number|null} [maxResults] ListRegionInstanceGroupsRequest maxResults - * @property {string|null} [orderBy] ListRegionInstanceGroupsRequest orderBy - * @property {string|null} [pageToken] ListRegionInstanceGroupsRequest pageToken - * @property {string|null} [project] ListRegionInstanceGroupsRequest project - * @property {string|null} [region] ListRegionInstanceGroupsRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionInstanceGroupsRequest returnPartialSuccess + * @interface IListRegionInstanceTemplatesRequest + * @property {string|null} [filter] ListRegionInstanceTemplatesRequest filter + * @property {number|null} [maxResults] ListRegionInstanceTemplatesRequest maxResults + * @property {string|null} [orderBy] ListRegionInstanceTemplatesRequest orderBy + * @property {string|null} [pageToken] ListRegionInstanceTemplatesRequest pageToken + * @property {string|null} [project] ListRegionInstanceTemplatesRequest project + * @property {string|null} [region] ListRegionInstanceTemplatesRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionInstanceTemplatesRequest returnPartialSuccess */ /** - * Constructs a new ListRegionInstanceGroupsRequest. + * Constructs a new ListRegionInstanceTemplatesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionInstanceGroupsRequest. - * @implements IListRegionInstanceGroupsRequest + * @classdesc Represents a ListRegionInstanceTemplatesRequest. + * @implements IListRegionInstanceTemplatesRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionInstanceGroupsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionInstanceTemplatesRequest=} [properties] Properties to set */ - function ListRegionInstanceGroupsRequest(properties) { + function ListRegionInstanceTemplatesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -271462,141 +273971,141 @@ } /** - * ListRegionInstanceGroupsRequest filter. + * ListRegionInstanceTemplatesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @instance */ - ListRegionInstanceGroupsRequest.prototype.filter = null; + ListRegionInstanceTemplatesRequest.prototype.filter = null; /** - * ListRegionInstanceGroupsRequest maxResults. + * ListRegionInstanceTemplatesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @instance */ - ListRegionInstanceGroupsRequest.prototype.maxResults = null; + ListRegionInstanceTemplatesRequest.prototype.maxResults = null; /** - * ListRegionInstanceGroupsRequest orderBy. + * ListRegionInstanceTemplatesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @instance */ - ListRegionInstanceGroupsRequest.prototype.orderBy = null; + ListRegionInstanceTemplatesRequest.prototype.orderBy = null; /** - * ListRegionInstanceGroupsRequest pageToken. + * ListRegionInstanceTemplatesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @instance */ - ListRegionInstanceGroupsRequest.prototype.pageToken = null; + ListRegionInstanceTemplatesRequest.prototype.pageToken = null; /** - * ListRegionInstanceGroupsRequest project. + * ListRegionInstanceTemplatesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @instance */ - ListRegionInstanceGroupsRequest.prototype.project = ""; + ListRegionInstanceTemplatesRequest.prototype.project = ""; /** - * ListRegionInstanceGroupsRequest region. + * ListRegionInstanceTemplatesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @instance */ - ListRegionInstanceGroupsRequest.prototype.region = ""; + ListRegionInstanceTemplatesRequest.prototype.region = ""; /** - * ListRegionInstanceGroupsRequest returnPartialSuccess. + * ListRegionInstanceTemplatesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @instance */ - ListRegionInstanceGroupsRequest.prototype.returnPartialSuccess = null; + ListRegionInstanceTemplatesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * ListRegionInstanceGroupsRequest _filter. + * ListRegionInstanceTemplatesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @instance */ - Object.defineProperty(ListRegionInstanceGroupsRequest.prototype, "_filter", { + Object.defineProperty(ListRegionInstanceTemplatesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionInstanceGroupsRequest _maxResults. + * ListRegionInstanceTemplatesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @instance */ - Object.defineProperty(ListRegionInstanceGroupsRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionInstanceTemplatesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionInstanceGroupsRequest _orderBy. + * ListRegionInstanceTemplatesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @instance */ - Object.defineProperty(ListRegionInstanceGroupsRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionInstanceTemplatesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionInstanceGroupsRequest _pageToken. + * ListRegionInstanceTemplatesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @instance */ - Object.defineProperty(ListRegionInstanceGroupsRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionInstanceTemplatesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionInstanceGroupsRequest _returnPartialSuccess. + * ListRegionInstanceTemplatesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @instance */ - Object.defineProperty(ListRegionInstanceGroupsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionInstanceTemplatesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionInstanceGroupsRequest instance using the specified properties. + * Creates a new ListRegionInstanceTemplatesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @static - * @param {google.cloud.compute.v1.IListRegionInstanceGroupsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionInstanceGroupsRequest} ListRegionInstanceGroupsRequest instance + * @param {google.cloud.compute.v1.IListRegionInstanceTemplatesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionInstanceTemplatesRequest} ListRegionInstanceTemplatesRequest instance */ - ListRegionInstanceGroupsRequest.create = function create(properties) { - return new ListRegionInstanceGroupsRequest(properties); + ListRegionInstanceTemplatesRequest.create = function create(properties) { + return new ListRegionInstanceTemplatesRequest(properties); }; /** - * Encodes the specified ListRegionInstanceGroupsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstanceGroupsRequest.verify|verify} messages. + * Encodes the specified ListRegionInstanceTemplatesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstanceTemplatesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @static - * @param {google.cloud.compute.v1.IListRegionInstanceGroupsRequest} message ListRegionInstanceGroupsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionInstanceTemplatesRequest} message ListRegionInstanceTemplatesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionInstanceGroupsRequest.encode = function encode(message, writer) { + ListRegionInstanceTemplatesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -271617,33 +274126,33 @@ }; /** - * Encodes the specified ListRegionInstanceGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstanceGroupsRequest.verify|verify} messages. + * Encodes the specified ListRegionInstanceTemplatesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstanceTemplatesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @static - * @param {google.cloud.compute.v1.IListRegionInstanceGroupsRequest} message ListRegionInstanceGroupsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionInstanceTemplatesRequest} message ListRegionInstanceTemplatesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionInstanceGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionInstanceTemplatesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionInstanceGroupsRequest message from the specified reader or buffer. + * Decodes a ListRegionInstanceTemplatesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionInstanceGroupsRequest} ListRegionInstanceGroupsRequest + * @returns {google.cloud.compute.v1.ListRegionInstanceTemplatesRequest} ListRegionInstanceTemplatesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionInstanceGroupsRequest.decode = function decode(reader, length) { + ListRegionInstanceTemplatesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionInstanceGroupsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionInstanceTemplatesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -271684,30 +274193,30 @@ }; /** - * Decodes a ListRegionInstanceGroupsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionInstanceTemplatesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionInstanceGroupsRequest} ListRegionInstanceGroupsRequest + * @returns {google.cloud.compute.v1.ListRegionInstanceTemplatesRequest} ListRegionInstanceTemplatesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionInstanceGroupsRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionInstanceTemplatesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionInstanceGroupsRequest message. + * Verifies a ListRegionInstanceTemplatesRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionInstanceGroupsRequest.verify = function verify(message) { + ListRegionInstanceTemplatesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -271746,17 +274255,17 @@ }; /** - * Creates a ListRegionInstanceGroupsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionInstanceTemplatesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionInstanceGroupsRequest} ListRegionInstanceGroupsRequest + * @returns {google.cloud.compute.v1.ListRegionInstanceTemplatesRequest} ListRegionInstanceTemplatesRequest */ - ListRegionInstanceGroupsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionInstanceGroupsRequest) + ListRegionInstanceTemplatesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionInstanceTemplatesRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionInstanceGroupsRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionInstanceTemplatesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -271775,15 +274284,15 @@ }; /** - * Creates a plain object from a ListRegionInstanceGroupsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionInstanceTemplatesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @static - * @param {google.cloud.compute.v1.ListRegionInstanceGroupsRequest} message ListRegionInstanceGroupsRequest + * @param {google.cloud.compute.v1.ListRegionInstanceTemplatesRequest} message ListRegionInstanceTemplatesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionInstanceGroupsRequest.toObject = function toObject(message, options) { + ListRegionInstanceTemplatesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -271824,58 +274333,58 @@ }; /** - * Converts this ListRegionInstanceGroupsRequest to JSON. + * Converts this ListRegionInstanceTemplatesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @instance * @returns {Object.} JSON object */ - ListRegionInstanceGroupsRequest.prototype.toJSON = function toJSON() { + ListRegionInstanceTemplatesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionInstanceGroupsRequest + * Gets the default type url for ListRegionInstanceTemplatesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionInstanceGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionInstanceGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionInstanceTemplatesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionInstanceGroupsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionInstanceTemplatesRequest"; }; - return ListRegionInstanceGroupsRequest; + return ListRegionInstanceTemplatesRequest; })(); - v1.ListRegionInstanceTemplatesRequest = (function() { + v1.ListRegionNetworkEndpointGroupsRequest = (function() { /** - * Properties of a ListRegionInstanceTemplatesRequest. + * Properties of a ListRegionNetworkEndpointGroupsRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionInstanceTemplatesRequest - * @property {string|null} [filter] ListRegionInstanceTemplatesRequest filter - * @property {number|null} [maxResults] ListRegionInstanceTemplatesRequest maxResults - * @property {string|null} [orderBy] ListRegionInstanceTemplatesRequest orderBy - * @property {string|null} [pageToken] ListRegionInstanceTemplatesRequest pageToken - * @property {string|null} [project] ListRegionInstanceTemplatesRequest project - * @property {string|null} [region] ListRegionInstanceTemplatesRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionInstanceTemplatesRequest returnPartialSuccess + * @interface IListRegionNetworkEndpointGroupsRequest + * @property {string|null} [filter] ListRegionNetworkEndpointGroupsRequest filter + * @property {number|null} [maxResults] ListRegionNetworkEndpointGroupsRequest maxResults + * @property {string|null} [orderBy] ListRegionNetworkEndpointGroupsRequest orderBy + * @property {string|null} [pageToken] ListRegionNetworkEndpointGroupsRequest pageToken + * @property {string|null} [project] ListRegionNetworkEndpointGroupsRequest project + * @property {string|null} [region] ListRegionNetworkEndpointGroupsRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionNetworkEndpointGroupsRequest returnPartialSuccess */ /** - * Constructs a new ListRegionInstanceTemplatesRequest. + * Constructs a new ListRegionNetworkEndpointGroupsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionInstanceTemplatesRequest. - * @implements IListRegionInstanceTemplatesRequest + * @classdesc Represents a ListRegionNetworkEndpointGroupsRequest. + * @implements IListRegionNetworkEndpointGroupsRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionInstanceTemplatesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionNetworkEndpointGroupsRequest=} [properties] Properties to set */ - function ListRegionInstanceTemplatesRequest(properties) { + function ListRegionNetworkEndpointGroupsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -271883,141 +274392,141 @@ } /** - * ListRegionInstanceTemplatesRequest filter. + * ListRegionNetworkEndpointGroupsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @instance */ - ListRegionInstanceTemplatesRequest.prototype.filter = null; + ListRegionNetworkEndpointGroupsRequest.prototype.filter = null; /** - * ListRegionInstanceTemplatesRequest maxResults. + * ListRegionNetworkEndpointGroupsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @instance */ - ListRegionInstanceTemplatesRequest.prototype.maxResults = null; + ListRegionNetworkEndpointGroupsRequest.prototype.maxResults = null; /** - * ListRegionInstanceTemplatesRequest orderBy. + * ListRegionNetworkEndpointGroupsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @instance */ - ListRegionInstanceTemplatesRequest.prototype.orderBy = null; + ListRegionNetworkEndpointGroupsRequest.prototype.orderBy = null; /** - * ListRegionInstanceTemplatesRequest pageToken. + * ListRegionNetworkEndpointGroupsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @instance */ - ListRegionInstanceTemplatesRequest.prototype.pageToken = null; + ListRegionNetworkEndpointGroupsRequest.prototype.pageToken = null; /** - * ListRegionInstanceTemplatesRequest project. + * ListRegionNetworkEndpointGroupsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @instance */ - ListRegionInstanceTemplatesRequest.prototype.project = ""; + ListRegionNetworkEndpointGroupsRequest.prototype.project = ""; /** - * ListRegionInstanceTemplatesRequest region. + * ListRegionNetworkEndpointGroupsRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @instance */ - ListRegionInstanceTemplatesRequest.prototype.region = ""; + ListRegionNetworkEndpointGroupsRequest.prototype.region = ""; /** - * ListRegionInstanceTemplatesRequest returnPartialSuccess. + * ListRegionNetworkEndpointGroupsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @instance */ - ListRegionInstanceTemplatesRequest.prototype.returnPartialSuccess = null; + ListRegionNetworkEndpointGroupsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * ListRegionInstanceTemplatesRequest _filter. + * ListRegionNetworkEndpointGroupsRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @instance */ - Object.defineProperty(ListRegionInstanceTemplatesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionNetworkEndpointGroupsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionInstanceTemplatesRequest _maxResults. + * ListRegionNetworkEndpointGroupsRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @instance */ - Object.defineProperty(ListRegionInstanceTemplatesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionNetworkEndpointGroupsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionInstanceTemplatesRequest _orderBy. + * ListRegionNetworkEndpointGroupsRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @instance */ - Object.defineProperty(ListRegionInstanceTemplatesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionNetworkEndpointGroupsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionInstanceTemplatesRequest _pageToken. + * ListRegionNetworkEndpointGroupsRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @instance */ - Object.defineProperty(ListRegionInstanceTemplatesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionNetworkEndpointGroupsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionInstanceTemplatesRequest _returnPartialSuccess. + * ListRegionNetworkEndpointGroupsRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @instance */ - Object.defineProperty(ListRegionInstanceTemplatesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionNetworkEndpointGroupsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionInstanceTemplatesRequest instance using the specified properties. + * Creates a new ListRegionNetworkEndpointGroupsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @static - * @param {google.cloud.compute.v1.IListRegionInstanceTemplatesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionInstanceTemplatesRequest} ListRegionInstanceTemplatesRequest instance + * @param {google.cloud.compute.v1.IListRegionNetworkEndpointGroupsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest} ListRegionNetworkEndpointGroupsRequest instance */ - ListRegionInstanceTemplatesRequest.create = function create(properties) { - return new ListRegionInstanceTemplatesRequest(properties); + ListRegionNetworkEndpointGroupsRequest.create = function create(properties) { + return new ListRegionNetworkEndpointGroupsRequest(properties); }; /** - * Encodes the specified ListRegionInstanceTemplatesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstanceTemplatesRequest.verify|verify} messages. + * Encodes the specified ListRegionNetworkEndpointGroupsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @static - * @param {google.cloud.compute.v1.IListRegionInstanceTemplatesRequest} message ListRegionInstanceTemplatesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionNetworkEndpointGroupsRequest} message ListRegionNetworkEndpointGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionInstanceTemplatesRequest.encode = function encode(message, writer) { + ListRegionNetworkEndpointGroupsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -272038,33 +274547,33 @@ }; /** - * Encodes the specified ListRegionInstanceTemplatesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionInstanceTemplatesRequest.verify|verify} messages. + * Encodes the specified ListRegionNetworkEndpointGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @static - * @param {google.cloud.compute.v1.IListRegionInstanceTemplatesRequest} message ListRegionInstanceTemplatesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionNetworkEndpointGroupsRequest} message ListRegionNetworkEndpointGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionInstanceTemplatesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionNetworkEndpointGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionInstanceTemplatesRequest message from the specified reader or buffer. + * Decodes a ListRegionNetworkEndpointGroupsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionInstanceTemplatesRequest} ListRegionInstanceTemplatesRequest + * @returns {google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest} ListRegionNetworkEndpointGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionInstanceTemplatesRequest.decode = function decode(reader, length) { + ListRegionNetworkEndpointGroupsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionInstanceTemplatesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -272105,30 +274614,30 @@ }; /** - * Decodes a ListRegionInstanceTemplatesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionNetworkEndpointGroupsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionInstanceTemplatesRequest} ListRegionInstanceTemplatesRequest + * @returns {google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest} ListRegionNetworkEndpointGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionInstanceTemplatesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionNetworkEndpointGroupsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionInstanceTemplatesRequest message. + * Verifies a ListRegionNetworkEndpointGroupsRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionInstanceTemplatesRequest.verify = function verify(message) { + ListRegionNetworkEndpointGroupsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -272167,17 +274676,17 @@ }; /** - * Creates a ListRegionInstanceTemplatesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionNetworkEndpointGroupsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionInstanceTemplatesRequest} ListRegionInstanceTemplatesRequest + * @returns {google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest} ListRegionNetworkEndpointGroupsRequest */ - ListRegionInstanceTemplatesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionInstanceTemplatesRequest) + ListRegionNetworkEndpointGroupsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionInstanceTemplatesRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -272196,15 +274705,15 @@ }; /** - * Creates a plain object from a ListRegionInstanceTemplatesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionNetworkEndpointGroupsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @static - * @param {google.cloud.compute.v1.ListRegionInstanceTemplatesRequest} message ListRegionInstanceTemplatesRequest + * @param {google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest} message ListRegionNetworkEndpointGroupsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionInstanceTemplatesRequest.toObject = function toObject(message, options) { + ListRegionNetworkEndpointGroupsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -272245,58 +274754,58 @@ }; /** - * Converts this ListRegionInstanceTemplatesRequest to JSON. + * Converts this ListRegionNetworkEndpointGroupsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @instance * @returns {Object.} JSON object */ - ListRegionInstanceTemplatesRequest.prototype.toJSON = function toJSON() { + ListRegionNetworkEndpointGroupsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionInstanceTemplatesRequest + * Gets the default type url for ListRegionNetworkEndpointGroupsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionInstanceTemplatesRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionInstanceTemplatesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionNetworkEndpointGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionInstanceTemplatesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest"; }; - return ListRegionInstanceTemplatesRequest; + return ListRegionNetworkEndpointGroupsRequest; })(); - v1.ListRegionNetworkEndpointGroupsRequest = (function() { + v1.ListRegionNetworkFirewallPoliciesRequest = (function() { /** - * Properties of a ListRegionNetworkEndpointGroupsRequest. + * Properties of a ListRegionNetworkFirewallPoliciesRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionNetworkEndpointGroupsRequest - * @property {string|null} [filter] ListRegionNetworkEndpointGroupsRequest filter - * @property {number|null} [maxResults] ListRegionNetworkEndpointGroupsRequest maxResults - * @property {string|null} [orderBy] ListRegionNetworkEndpointGroupsRequest orderBy - * @property {string|null} [pageToken] ListRegionNetworkEndpointGroupsRequest pageToken - * @property {string|null} [project] ListRegionNetworkEndpointGroupsRequest project - * @property {string|null} [region] ListRegionNetworkEndpointGroupsRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionNetworkEndpointGroupsRequest returnPartialSuccess + * @interface IListRegionNetworkFirewallPoliciesRequest + * @property {string|null} [filter] ListRegionNetworkFirewallPoliciesRequest filter + * @property {number|null} [maxResults] ListRegionNetworkFirewallPoliciesRequest maxResults + * @property {string|null} [orderBy] ListRegionNetworkFirewallPoliciesRequest orderBy + * @property {string|null} [pageToken] ListRegionNetworkFirewallPoliciesRequest pageToken + * @property {string|null} [project] ListRegionNetworkFirewallPoliciesRequest project + * @property {string|null} [region] ListRegionNetworkFirewallPoliciesRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionNetworkFirewallPoliciesRequest returnPartialSuccess */ /** - * Constructs a new ListRegionNetworkEndpointGroupsRequest. + * Constructs a new ListRegionNetworkFirewallPoliciesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionNetworkEndpointGroupsRequest. - * @implements IListRegionNetworkEndpointGroupsRequest + * @classdesc Represents a ListRegionNetworkFirewallPoliciesRequest. + * @implements IListRegionNetworkFirewallPoliciesRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionNetworkEndpointGroupsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionNetworkFirewallPoliciesRequest=} [properties] Properties to set */ - function ListRegionNetworkEndpointGroupsRequest(properties) { + function ListRegionNetworkFirewallPoliciesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -272304,141 +274813,141 @@ } /** - * ListRegionNetworkEndpointGroupsRequest filter. + * ListRegionNetworkFirewallPoliciesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @instance */ - ListRegionNetworkEndpointGroupsRequest.prototype.filter = null; + ListRegionNetworkFirewallPoliciesRequest.prototype.filter = null; /** - * ListRegionNetworkEndpointGroupsRequest maxResults. + * ListRegionNetworkFirewallPoliciesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @instance */ - ListRegionNetworkEndpointGroupsRequest.prototype.maxResults = null; + ListRegionNetworkFirewallPoliciesRequest.prototype.maxResults = null; /** - * ListRegionNetworkEndpointGroupsRequest orderBy. + * ListRegionNetworkFirewallPoliciesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @instance */ - ListRegionNetworkEndpointGroupsRequest.prototype.orderBy = null; + ListRegionNetworkFirewallPoliciesRequest.prototype.orderBy = null; /** - * ListRegionNetworkEndpointGroupsRequest pageToken. + * ListRegionNetworkFirewallPoliciesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @instance */ - ListRegionNetworkEndpointGroupsRequest.prototype.pageToken = null; + ListRegionNetworkFirewallPoliciesRequest.prototype.pageToken = null; /** - * ListRegionNetworkEndpointGroupsRequest project. + * ListRegionNetworkFirewallPoliciesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @instance */ - ListRegionNetworkEndpointGroupsRequest.prototype.project = ""; + ListRegionNetworkFirewallPoliciesRequest.prototype.project = ""; /** - * ListRegionNetworkEndpointGroupsRequest region. + * ListRegionNetworkFirewallPoliciesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @instance */ - ListRegionNetworkEndpointGroupsRequest.prototype.region = ""; + ListRegionNetworkFirewallPoliciesRequest.prototype.region = ""; /** - * ListRegionNetworkEndpointGroupsRequest returnPartialSuccess. + * ListRegionNetworkFirewallPoliciesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @instance */ - ListRegionNetworkEndpointGroupsRequest.prototype.returnPartialSuccess = null; + ListRegionNetworkFirewallPoliciesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * ListRegionNetworkEndpointGroupsRequest _filter. + * ListRegionNetworkFirewallPoliciesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @instance */ - Object.defineProperty(ListRegionNetworkEndpointGroupsRequest.prototype, "_filter", { + Object.defineProperty(ListRegionNetworkFirewallPoliciesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionNetworkEndpointGroupsRequest _maxResults. + * ListRegionNetworkFirewallPoliciesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @instance */ - Object.defineProperty(ListRegionNetworkEndpointGroupsRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionNetworkFirewallPoliciesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionNetworkEndpointGroupsRequest _orderBy. + * ListRegionNetworkFirewallPoliciesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @instance */ - Object.defineProperty(ListRegionNetworkEndpointGroupsRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionNetworkFirewallPoliciesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionNetworkEndpointGroupsRequest _pageToken. + * ListRegionNetworkFirewallPoliciesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @instance */ - Object.defineProperty(ListRegionNetworkEndpointGroupsRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionNetworkFirewallPoliciesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionNetworkEndpointGroupsRequest _returnPartialSuccess. + * ListRegionNetworkFirewallPoliciesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @instance */ - Object.defineProperty(ListRegionNetworkEndpointGroupsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionNetworkFirewallPoliciesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionNetworkEndpointGroupsRequest instance using the specified properties. + * Creates a new ListRegionNetworkFirewallPoliciesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @static - * @param {google.cloud.compute.v1.IListRegionNetworkEndpointGroupsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest} ListRegionNetworkEndpointGroupsRequest instance + * @param {google.cloud.compute.v1.IListRegionNetworkFirewallPoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest} ListRegionNetworkFirewallPoliciesRequest instance */ - ListRegionNetworkEndpointGroupsRequest.create = function create(properties) { - return new ListRegionNetworkEndpointGroupsRequest(properties); + ListRegionNetworkFirewallPoliciesRequest.create = function create(properties) { + return new ListRegionNetworkFirewallPoliciesRequest(properties); }; /** - * Encodes the specified ListRegionNetworkEndpointGroupsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest.verify|verify} messages. + * Encodes the specified ListRegionNetworkFirewallPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @static - * @param {google.cloud.compute.v1.IListRegionNetworkEndpointGroupsRequest} message ListRegionNetworkEndpointGroupsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionNetworkFirewallPoliciesRequest} message ListRegionNetworkFirewallPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionNetworkEndpointGroupsRequest.encode = function encode(message, writer) { + ListRegionNetworkFirewallPoliciesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -272459,33 +274968,33 @@ }; /** - * Encodes the specified ListRegionNetworkEndpointGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest.verify|verify} messages. + * Encodes the specified ListRegionNetworkFirewallPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @static - * @param {google.cloud.compute.v1.IListRegionNetworkEndpointGroupsRequest} message ListRegionNetworkEndpointGroupsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionNetworkFirewallPoliciesRequest} message ListRegionNetworkFirewallPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionNetworkEndpointGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionNetworkFirewallPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionNetworkEndpointGroupsRequest message from the specified reader or buffer. + * Decodes a ListRegionNetworkFirewallPoliciesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest} ListRegionNetworkEndpointGroupsRequest + * @returns {google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest} ListRegionNetworkFirewallPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionNetworkEndpointGroupsRequest.decode = function decode(reader, length) { + ListRegionNetworkFirewallPoliciesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -272526,30 +275035,30 @@ }; /** - * Decodes a ListRegionNetworkEndpointGroupsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionNetworkFirewallPoliciesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest} ListRegionNetworkEndpointGroupsRequest + * @returns {google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest} ListRegionNetworkFirewallPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionNetworkEndpointGroupsRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionNetworkFirewallPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionNetworkEndpointGroupsRequest message. + * Verifies a ListRegionNetworkFirewallPoliciesRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionNetworkEndpointGroupsRequest.verify = function verify(message) { + ListRegionNetworkFirewallPoliciesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -272588,17 +275097,17 @@ }; /** - * Creates a ListRegionNetworkEndpointGroupsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionNetworkFirewallPoliciesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest} ListRegionNetworkEndpointGroupsRequest + * @returns {google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest} ListRegionNetworkFirewallPoliciesRequest */ - ListRegionNetworkEndpointGroupsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest) + ListRegionNetworkFirewallPoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -272617,15 +275126,15 @@ }; /** - * Creates a plain object from a ListRegionNetworkEndpointGroupsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionNetworkFirewallPoliciesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @static - * @param {google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest} message ListRegionNetworkEndpointGroupsRequest + * @param {google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest} message ListRegionNetworkFirewallPoliciesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionNetworkEndpointGroupsRequest.toObject = function toObject(message, options) { + ListRegionNetworkFirewallPoliciesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -272666,58 +275175,58 @@ }; /** - * Converts this ListRegionNetworkEndpointGroupsRequest to JSON. + * Converts this ListRegionNetworkFirewallPoliciesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @instance * @returns {Object.} JSON object */ - ListRegionNetworkEndpointGroupsRequest.prototype.toJSON = function toJSON() { + ListRegionNetworkFirewallPoliciesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionNetworkEndpointGroupsRequest + * Gets the default type url for ListRegionNetworkFirewallPoliciesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionNetworkEndpointGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionNetworkFirewallPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest"; }; - return ListRegionNetworkEndpointGroupsRequest; + return ListRegionNetworkFirewallPoliciesRequest; })(); - v1.ListRegionNetworkFirewallPoliciesRequest = (function() { + v1.ListRegionNotificationEndpointsRequest = (function() { /** - * Properties of a ListRegionNetworkFirewallPoliciesRequest. + * Properties of a ListRegionNotificationEndpointsRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionNetworkFirewallPoliciesRequest - * @property {string|null} [filter] ListRegionNetworkFirewallPoliciesRequest filter - * @property {number|null} [maxResults] ListRegionNetworkFirewallPoliciesRequest maxResults - * @property {string|null} [orderBy] ListRegionNetworkFirewallPoliciesRequest orderBy - * @property {string|null} [pageToken] ListRegionNetworkFirewallPoliciesRequest pageToken - * @property {string|null} [project] ListRegionNetworkFirewallPoliciesRequest project - * @property {string|null} [region] ListRegionNetworkFirewallPoliciesRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionNetworkFirewallPoliciesRequest returnPartialSuccess + * @interface IListRegionNotificationEndpointsRequest + * @property {string|null} [filter] ListRegionNotificationEndpointsRequest filter + * @property {number|null} [maxResults] ListRegionNotificationEndpointsRequest maxResults + * @property {string|null} [orderBy] ListRegionNotificationEndpointsRequest orderBy + * @property {string|null} [pageToken] ListRegionNotificationEndpointsRequest pageToken + * @property {string|null} [project] ListRegionNotificationEndpointsRequest project + * @property {string|null} [region] ListRegionNotificationEndpointsRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionNotificationEndpointsRequest returnPartialSuccess */ /** - * Constructs a new ListRegionNetworkFirewallPoliciesRequest. + * Constructs a new ListRegionNotificationEndpointsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionNetworkFirewallPoliciesRequest. - * @implements IListRegionNetworkFirewallPoliciesRequest + * @classdesc Represents a ListRegionNotificationEndpointsRequest. + * @implements IListRegionNotificationEndpointsRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionNetworkFirewallPoliciesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionNotificationEndpointsRequest=} [properties] Properties to set */ - function ListRegionNetworkFirewallPoliciesRequest(properties) { + function ListRegionNotificationEndpointsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -272725,141 +275234,141 @@ } /** - * ListRegionNetworkFirewallPoliciesRequest filter. + * ListRegionNotificationEndpointsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @instance */ - ListRegionNetworkFirewallPoliciesRequest.prototype.filter = null; + ListRegionNotificationEndpointsRequest.prototype.filter = null; /** - * ListRegionNetworkFirewallPoliciesRequest maxResults. + * ListRegionNotificationEndpointsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @instance */ - ListRegionNetworkFirewallPoliciesRequest.prototype.maxResults = null; + ListRegionNotificationEndpointsRequest.prototype.maxResults = null; /** - * ListRegionNetworkFirewallPoliciesRequest orderBy. + * ListRegionNotificationEndpointsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @instance */ - ListRegionNetworkFirewallPoliciesRequest.prototype.orderBy = null; + ListRegionNotificationEndpointsRequest.prototype.orderBy = null; /** - * ListRegionNetworkFirewallPoliciesRequest pageToken. + * ListRegionNotificationEndpointsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @instance */ - ListRegionNetworkFirewallPoliciesRequest.prototype.pageToken = null; + ListRegionNotificationEndpointsRequest.prototype.pageToken = null; /** - * ListRegionNetworkFirewallPoliciesRequest project. + * ListRegionNotificationEndpointsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @instance */ - ListRegionNetworkFirewallPoliciesRequest.prototype.project = ""; + ListRegionNotificationEndpointsRequest.prototype.project = ""; /** - * ListRegionNetworkFirewallPoliciesRequest region. + * ListRegionNotificationEndpointsRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @instance */ - ListRegionNetworkFirewallPoliciesRequest.prototype.region = ""; + ListRegionNotificationEndpointsRequest.prototype.region = ""; /** - * ListRegionNetworkFirewallPoliciesRequest returnPartialSuccess. + * ListRegionNotificationEndpointsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @instance */ - ListRegionNetworkFirewallPoliciesRequest.prototype.returnPartialSuccess = null; + ListRegionNotificationEndpointsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * ListRegionNetworkFirewallPoliciesRequest _filter. + * ListRegionNotificationEndpointsRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @instance */ - Object.defineProperty(ListRegionNetworkFirewallPoliciesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionNotificationEndpointsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionNetworkFirewallPoliciesRequest _maxResults. + * ListRegionNotificationEndpointsRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @instance */ - Object.defineProperty(ListRegionNetworkFirewallPoliciesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionNotificationEndpointsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionNetworkFirewallPoliciesRequest _orderBy. + * ListRegionNotificationEndpointsRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @instance */ - Object.defineProperty(ListRegionNetworkFirewallPoliciesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionNotificationEndpointsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionNetworkFirewallPoliciesRequest _pageToken. + * ListRegionNotificationEndpointsRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @instance */ - Object.defineProperty(ListRegionNetworkFirewallPoliciesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionNotificationEndpointsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionNetworkFirewallPoliciesRequest _returnPartialSuccess. + * ListRegionNotificationEndpointsRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @instance */ - Object.defineProperty(ListRegionNetworkFirewallPoliciesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionNotificationEndpointsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionNetworkFirewallPoliciesRequest instance using the specified properties. + * Creates a new ListRegionNotificationEndpointsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @static - * @param {google.cloud.compute.v1.IListRegionNetworkFirewallPoliciesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest} ListRegionNetworkFirewallPoliciesRequest instance + * @param {google.cloud.compute.v1.IListRegionNotificationEndpointsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionNotificationEndpointsRequest} ListRegionNotificationEndpointsRequest instance */ - ListRegionNetworkFirewallPoliciesRequest.create = function create(properties) { - return new ListRegionNetworkFirewallPoliciesRequest(properties); + ListRegionNotificationEndpointsRequest.create = function create(properties) { + return new ListRegionNotificationEndpointsRequest(properties); }; /** - * Encodes the specified ListRegionNetworkFirewallPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest.verify|verify} messages. + * Encodes the specified ListRegionNotificationEndpointsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionNotificationEndpointsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @static - * @param {google.cloud.compute.v1.IListRegionNetworkFirewallPoliciesRequest} message ListRegionNetworkFirewallPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionNotificationEndpointsRequest} message ListRegionNotificationEndpointsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionNetworkFirewallPoliciesRequest.encode = function encode(message, writer) { + ListRegionNotificationEndpointsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -272880,33 +275389,33 @@ }; /** - * Encodes the specified ListRegionNetworkFirewallPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest.verify|verify} messages. + * Encodes the specified ListRegionNotificationEndpointsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionNotificationEndpointsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @static - * @param {google.cloud.compute.v1.IListRegionNetworkFirewallPoliciesRequest} message ListRegionNetworkFirewallPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionNotificationEndpointsRequest} message ListRegionNotificationEndpointsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionNetworkFirewallPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionNotificationEndpointsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionNetworkFirewallPoliciesRequest message from the specified reader or buffer. + * Decodes a ListRegionNotificationEndpointsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest} ListRegionNetworkFirewallPoliciesRequest + * @returns {google.cloud.compute.v1.ListRegionNotificationEndpointsRequest} ListRegionNotificationEndpointsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionNetworkFirewallPoliciesRequest.decode = function decode(reader, length) { + ListRegionNotificationEndpointsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionNotificationEndpointsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -272947,30 +275456,30 @@ }; /** - * Decodes a ListRegionNetworkFirewallPoliciesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionNotificationEndpointsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest} ListRegionNetworkFirewallPoliciesRequest + * @returns {google.cloud.compute.v1.ListRegionNotificationEndpointsRequest} ListRegionNotificationEndpointsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionNetworkFirewallPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionNotificationEndpointsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionNetworkFirewallPoliciesRequest message. + * Verifies a ListRegionNotificationEndpointsRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionNetworkFirewallPoliciesRequest.verify = function verify(message) { + ListRegionNotificationEndpointsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -273009,17 +275518,17 @@ }; /** - * Creates a ListRegionNetworkFirewallPoliciesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionNotificationEndpointsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest} ListRegionNetworkFirewallPoliciesRequest + * @returns {google.cloud.compute.v1.ListRegionNotificationEndpointsRequest} ListRegionNotificationEndpointsRequest */ - ListRegionNetworkFirewallPoliciesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest) + ListRegionNotificationEndpointsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionNotificationEndpointsRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionNotificationEndpointsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -273038,15 +275547,15 @@ }; /** - * Creates a plain object from a ListRegionNetworkFirewallPoliciesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionNotificationEndpointsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @static - * @param {google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest} message ListRegionNetworkFirewallPoliciesRequest + * @param {google.cloud.compute.v1.ListRegionNotificationEndpointsRequest} message ListRegionNotificationEndpointsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionNetworkFirewallPoliciesRequest.toObject = function toObject(message, options) { + ListRegionNotificationEndpointsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -273087,58 +275596,58 @@ }; /** - * Converts this ListRegionNetworkFirewallPoliciesRequest to JSON. + * Converts this ListRegionNotificationEndpointsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @instance * @returns {Object.} JSON object */ - ListRegionNetworkFirewallPoliciesRequest.prototype.toJSON = function toJSON() { + ListRegionNotificationEndpointsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionNetworkFirewallPoliciesRequest + * Gets the default type url for ListRegionNotificationEndpointsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionNetworkFirewallPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionNotificationEndpointsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionNotificationEndpointsRequest"; }; - return ListRegionNetworkFirewallPoliciesRequest; + return ListRegionNotificationEndpointsRequest; })(); - v1.ListRegionNotificationEndpointsRequest = (function() { + v1.ListRegionOperationsRequest = (function() { /** - * Properties of a ListRegionNotificationEndpointsRequest. + * Properties of a ListRegionOperationsRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionNotificationEndpointsRequest - * @property {string|null} [filter] ListRegionNotificationEndpointsRequest filter - * @property {number|null} [maxResults] ListRegionNotificationEndpointsRequest maxResults - * @property {string|null} [orderBy] ListRegionNotificationEndpointsRequest orderBy - * @property {string|null} [pageToken] ListRegionNotificationEndpointsRequest pageToken - * @property {string|null} [project] ListRegionNotificationEndpointsRequest project - * @property {string|null} [region] ListRegionNotificationEndpointsRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionNotificationEndpointsRequest returnPartialSuccess + * @interface IListRegionOperationsRequest + * @property {string|null} [filter] ListRegionOperationsRequest filter + * @property {number|null} [maxResults] ListRegionOperationsRequest maxResults + * @property {string|null} [orderBy] ListRegionOperationsRequest orderBy + * @property {string|null} [pageToken] ListRegionOperationsRequest pageToken + * @property {string|null} [project] ListRegionOperationsRequest project + * @property {string|null} [region] ListRegionOperationsRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionOperationsRequest returnPartialSuccess */ /** - * Constructs a new ListRegionNotificationEndpointsRequest. + * Constructs a new ListRegionOperationsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionNotificationEndpointsRequest. - * @implements IListRegionNotificationEndpointsRequest + * @classdesc Represents a ListRegionOperationsRequest. + * @implements IListRegionOperationsRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionNotificationEndpointsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionOperationsRequest=} [properties] Properties to set */ - function ListRegionNotificationEndpointsRequest(properties) { + function ListRegionOperationsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -273146,141 +275655,141 @@ } /** - * ListRegionNotificationEndpointsRequest filter. + * ListRegionOperationsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @instance */ - ListRegionNotificationEndpointsRequest.prototype.filter = null; + ListRegionOperationsRequest.prototype.filter = null; /** - * ListRegionNotificationEndpointsRequest maxResults. + * ListRegionOperationsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @instance */ - ListRegionNotificationEndpointsRequest.prototype.maxResults = null; + ListRegionOperationsRequest.prototype.maxResults = null; /** - * ListRegionNotificationEndpointsRequest orderBy. + * ListRegionOperationsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @instance */ - ListRegionNotificationEndpointsRequest.prototype.orderBy = null; + ListRegionOperationsRequest.prototype.orderBy = null; /** - * ListRegionNotificationEndpointsRequest pageToken. + * ListRegionOperationsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @instance */ - ListRegionNotificationEndpointsRequest.prototype.pageToken = null; + ListRegionOperationsRequest.prototype.pageToken = null; /** - * ListRegionNotificationEndpointsRequest project. + * ListRegionOperationsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @instance */ - ListRegionNotificationEndpointsRequest.prototype.project = ""; + ListRegionOperationsRequest.prototype.project = ""; /** - * ListRegionNotificationEndpointsRequest region. + * ListRegionOperationsRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @instance */ - ListRegionNotificationEndpointsRequest.prototype.region = ""; + ListRegionOperationsRequest.prototype.region = ""; /** - * ListRegionNotificationEndpointsRequest returnPartialSuccess. + * ListRegionOperationsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @instance */ - ListRegionNotificationEndpointsRequest.prototype.returnPartialSuccess = null; + ListRegionOperationsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * ListRegionNotificationEndpointsRequest _filter. + * ListRegionOperationsRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @instance */ - Object.defineProperty(ListRegionNotificationEndpointsRequest.prototype, "_filter", { + Object.defineProperty(ListRegionOperationsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionNotificationEndpointsRequest _maxResults. + * ListRegionOperationsRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @instance */ - Object.defineProperty(ListRegionNotificationEndpointsRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionOperationsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionNotificationEndpointsRequest _orderBy. + * ListRegionOperationsRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @instance */ - Object.defineProperty(ListRegionNotificationEndpointsRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionOperationsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionNotificationEndpointsRequest _pageToken. + * ListRegionOperationsRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @instance */ - Object.defineProperty(ListRegionNotificationEndpointsRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionOperationsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionNotificationEndpointsRequest _returnPartialSuccess. + * ListRegionOperationsRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @instance */ - Object.defineProperty(ListRegionNotificationEndpointsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionOperationsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionNotificationEndpointsRequest instance using the specified properties. + * Creates a new ListRegionOperationsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @static - * @param {google.cloud.compute.v1.IListRegionNotificationEndpointsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionNotificationEndpointsRequest} ListRegionNotificationEndpointsRequest instance + * @param {google.cloud.compute.v1.IListRegionOperationsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionOperationsRequest} ListRegionOperationsRequest instance */ - ListRegionNotificationEndpointsRequest.create = function create(properties) { - return new ListRegionNotificationEndpointsRequest(properties); + ListRegionOperationsRequest.create = function create(properties) { + return new ListRegionOperationsRequest(properties); }; /** - * Encodes the specified ListRegionNotificationEndpointsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionNotificationEndpointsRequest.verify|verify} messages. + * Encodes the specified ListRegionOperationsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionOperationsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @static - * @param {google.cloud.compute.v1.IListRegionNotificationEndpointsRequest} message ListRegionNotificationEndpointsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionOperationsRequest} message ListRegionOperationsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionNotificationEndpointsRequest.encode = function encode(message, writer) { + ListRegionOperationsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -273301,33 +275810,33 @@ }; /** - * Encodes the specified ListRegionNotificationEndpointsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionNotificationEndpointsRequest.verify|verify} messages. + * Encodes the specified ListRegionOperationsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionOperationsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @static - * @param {google.cloud.compute.v1.IListRegionNotificationEndpointsRequest} message ListRegionNotificationEndpointsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionOperationsRequest} message ListRegionOperationsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionNotificationEndpointsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionOperationsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionNotificationEndpointsRequest message from the specified reader or buffer. + * Decodes a ListRegionOperationsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionNotificationEndpointsRequest} ListRegionNotificationEndpointsRequest + * @returns {google.cloud.compute.v1.ListRegionOperationsRequest} ListRegionOperationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionNotificationEndpointsRequest.decode = function decode(reader, length) { + ListRegionOperationsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionNotificationEndpointsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionOperationsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -273368,30 +275877,30 @@ }; /** - * Decodes a ListRegionNotificationEndpointsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionOperationsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionNotificationEndpointsRequest} ListRegionNotificationEndpointsRequest + * @returns {google.cloud.compute.v1.ListRegionOperationsRequest} ListRegionOperationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionNotificationEndpointsRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionOperationsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionNotificationEndpointsRequest message. + * Verifies a ListRegionOperationsRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionNotificationEndpointsRequest.verify = function verify(message) { + ListRegionOperationsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -273430,17 +275939,17 @@ }; /** - * Creates a ListRegionNotificationEndpointsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionOperationsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionNotificationEndpointsRequest} ListRegionNotificationEndpointsRequest + * @returns {google.cloud.compute.v1.ListRegionOperationsRequest} ListRegionOperationsRequest */ - ListRegionNotificationEndpointsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionNotificationEndpointsRequest) + ListRegionOperationsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionOperationsRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionNotificationEndpointsRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionOperationsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -273459,15 +275968,15 @@ }; /** - * Creates a plain object from a ListRegionNotificationEndpointsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionOperationsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @static - * @param {google.cloud.compute.v1.ListRegionNotificationEndpointsRequest} message ListRegionNotificationEndpointsRequest + * @param {google.cloud.compute.v1.ListRegionOperationsRequest} message ListRegionOperationsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionNotificationEndpointsRequest.toObject = function toObject(message, options) { + ListRegionOperationsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -273508,58 +276017,58 @@ }; /** - * Converts this ListRegionNotificationEndpointsRequest to JSON. + * Converts this ListRegionOperationsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @instance * @returns {Object.} JSON object */ - ListRegionNotificationEndpointsRequest.prototype.toJSON = function toJSON() { + ListRegionOperationsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionNotificationEndpointsRequest + * Gets the default type url for ListRegionOperationsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionNotificationEndpointsRequest + * @memberof google.cloud.compute.v1.ListRegionOperationsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionNotificationEndpointsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionOperationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionNotificationEndpointsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionOperationsRequest"; }; - return ListRegionNotificationEndpointsRequest; + return ListRegionOperationsRequest; })(); - v1.ListRegionOperationsRequest = (function() { + v1.ListRegionSecurityPoliciesRequest = (function() { /** - * Properties of a ListRegionOperationsRequest. + * Properties of a ListRegionSecurityPoliciesRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionOperationsRequest - * @property {string|null} [filter] ListRegionOperationsRequest filter - * @property {number|null} [maxResults] ListRegionOperationsRequest maxResults - * @property {string|null} [orderBy] ListRegionOperationsRequest orderBy - * @property {string|null} [pageToken] ListRegionOperationsRequest pageToken - * @property {string|null} [project] ListRegionOperationsRequest project - * @property {string|null} [region] ListRegionOperationsRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionOperationsRequest returnPartialSuccess + * @interface IListRegionSecurityPoliciesRequest + * @property {string|null} [filter] ListRegionSecurityPoliciesRequest filter + * @property {number|null} [maxResults] ListRegionSecurityPoliciesRequest maxResults + * @property {string|null} [orderBy] ListRegionSecurityPoliciesRequest orderBy + * @property {string|null} [pageToken] ListRegionSecurityPoliciesRequest pageToken + * @property {string|null} [project] ListRegionSecurityPoliciesRequest project + * @property {string|null} [region] ListRegionSecurityPoliciesRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionSecurityPoliciesRequest returnPartialSuccess */ /** - * Constructs a new ListRegionOperationsRequest. + * Constructs a new ListRegionSecurityPoliciesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionOperationsRequest. - * @implements IListRegionOperationsRequest + * @classdesc Represents a ListRegionSecurityPoliciesRequest. + * @implements IListRegionSecurityPoliciesRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionOperationsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionSecurityPoliciesRequest=} [properties] Properties to set */ - function ListRegionOperationsRequest(properties) { + function ListRegionSecurityPoliciesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -273567,141 +276076,141 @@ } /** - * ListRegionOperationsRequest filter. + * ListRegionSecurityPoliciesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @instance */ - ListRegionOperationsRequest.prototype.filter = null; + ListRegionSecurityPoliciesRequest.prototype.filter = null; /** - * ListRegionOperationsRequest maxResults. + * ListRegionSecurityPoliciesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @instance */ - ListRegionOperationsRequest.prototype.maxResults = null; + ListRegionSecurityPoliciesRequest.prototype.maxResults = null; /** - * ListRegionOperationsRequest orderBy. + * ListRegionSecurityPoliciesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @instance */ - ListRegionOperationsRequest.prototype.orderBy = null; + ListRegionSecurityPoliciesRequest.prototype.orderBy = null; /** - * ListRegionOperationsRequest pageToken. + * ListRegionSecurityPoliciesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @instance */ - ListRegionOperationsRequest.prototype.pageToken = null; + ListRegionSecurityPoliciesRequest.prototype.pageToken = null; /** - * ListRegionOperationsRequest project. + * ListRegionSecurityPoliciesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @instance */ - ListRegionOperationsRequest.prototype.project = ""; + ListRegionSecurityPoliciesRequest.prototype.project = ""; /** - * ListRegionOperationsRequest region. + * ListRegionSecurityPoliciesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @instance */ - ListRegionOperationsRequest.prototype.region = ""; + ListRegionSecurityPoliciesRequest.prototype.region = ""; /** - * ListRegionOperationsRequest returnPartialSuccess. + * ListRegionSecurityPoliciesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @instance */ - ListRegionOperationsRequest.prototype.returnPartialSuccess = null; + ListRegionSecurityPoliciesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * ListRegionOperationsRequest _filter. + * ListRegionSecurityPoliciesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @instance */ - Object.defineProperty(ListRegionOperationsRequest.prototype, "_filter", { + Object.defineProperty(ListRegionSecurityPoliciesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionOperationsRequest _maxResults. + * ListRegionSecurityPoliciesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @instance */ - Object.defineProperty(ListRegionOperationsRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionSecurityPoliciesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionOperationsRequest _orderBy. + * ListRegionSecurityPoliciesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @instance */ - Object.defineProperty(ListRegionOperationsRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionSecurityPoliciesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionOperationsRequest _pageToken. + * ListRegionSecurityPoliciesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @instance */ - Object.defineProperty(ListRegionOperationsRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionSecurityPoliciesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionOperationsRequest _returnPartialSuccess. + * ListRegionSecurityPoliciesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @instance */ - Object.defineProperty(ListRegionOperationsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionSecurityPoliciesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionOperationsRequest instance using the specified properties. + * Creates a new ListRegionSecurityPoliciesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @static - * @param {google.cloud.compute.v1.IListRegionOperationsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionOperationsRequest} ListRegionOperationsRequest instance + * @param {google.cloud.compute.v1.IListRegionSecurityPoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionSecurityPoliciesRequest} ListRegionSecurityPoliciesRequest instance */ - ListRegionOperationsRequest.create = function create(properties) { - return new ListRegionOperationsRequest(properties); + ListRegionSecurityPoliciesRequest.create = function create(properties) { + return new ListRegionSecurityPoliciesRequest(properties); }; /** - * Encodes the specified ListRegionOperationsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionOperationsRequest.verify|verify} messages. + * Encodes the specified ListRegionSecurityPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionSecurityPoliciesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @static - * @param {google.cloud.compute.v1.IListRegionOperationsRequest} message ListRegionOperationsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionSecurityPoliciesRequest} message ListRegionSecurityPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionOperationsRequest.encode = function encode(message, writer) { + ListRegionSecurityPoliciesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -273722,33 +276231,33 @@ }; /** - * Encodes the specified ListRegionOperationsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionOperationsRequest.verify|verify} messages. + * Encodes the specified ListRegionSecurityPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionSecurityPoliciesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @static - * @param {google.cloud.compute.v1.IListRegionOperationsRequest} message ListRegionOperationsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionSecurityPoliciesRequest} message ListRegionSecurityPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionOperationsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionSecurityPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionOperationsRequest message from the specified reader or buffer. + * Decodes a ListRegionSecurityPoliciesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionOperationsRequest} ListRegionOperationsRequest + * @returns {google.cloud.compute.v1.ListRegionSecurityPoliciesRequest} ListRegionSecurityPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionOperationsRequest.decode = function decode(reader, length) { + ListRegionSecurityPoliciesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionOperationsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionSecurityPoliciesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -273789,30 +276298,30 @@ }; /** - * Decodes a ListRegionOperationsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionSecurityPoliciesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionOperationsRequest} ListRegionOperationsRequest + * @returns {google.cloud.compute.v1.ListRegionSecurityPoliciesRequest} ListRegionSecurityPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionOperationsRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionSecurityPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionOperationsRequest message. + * Verifies a ListRegionSecurityPoliciesRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionOperationsRequest.verify = function verify(message) { + ListRegionSecurityPoliciesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -273851,17 +276360,17 @@ }; /** - * Creates a ListRegionOperationsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionSecurityPoliciesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionOperationsRequest} ListRegionOperationsRequest + * @returns {google.cloud.compute.v1.ListRegionSecurityPoliciesRequest} ListRegionSecurityPoliciesRequest */ - ListRegionOperationsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionOperationsRequest) + ListRegionSecurityPoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionSecurityPoliciesRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionOperationsRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionSecurityPoliciesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -273880,15 +276389,15 @@ }; /** - * Creates a plain object from a ListRegionOperationsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionSecurityPoliciesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @static - * @param {google.cloud.compute.v1.ListRegionOperationsRequest} message ListRegionOperationsRequest + * @param {google.cloud.compute.v1.ListRegionSecurityPoliciesRequest} message ListRegionSecurityPoliciesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionOperationsRequest.toObject = function toObject(message, options) { + ListRegionSecurityPoliciesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -273929,58 +276438,58 @@ }; /** - * Converts this ListRegionOperationsRequest to JSON. + * Converts this ListRegionSecurityPoliciesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @instance * @returns {Object.} JSON object */ - ListRegionOperationsRequest.prototype.toJSON = function toJSON() { + ListRegionSecurityPoliciesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionOperationsRequest + * Gets the default type url for ListRegionSecurityPoliciesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionOperationsRequest + * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionOperationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionSecurityPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionOperationsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionSecurityPoliciesRequest"; }; - return ListRegionOperationsRequest; + return ListRegionSecurityPoliciesRequest; })(); - v1.ListRegionSecurityPoliciesRequest = (function() { + v1.ListRegionSslCertificatesRequest = (function() { /** - * Properties of a ListRegionSecurityPoliciesRequest. + * Properties of a ListRegionSslCertificatesRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionSecurityPoliciesRequest - * @property {string|null} [filter] ListRegionSecurityPoliciesRequest filter - * @property {number|null} [maxResults] ListRegionSecurityPoliciesRequest maxResults - * @property {string|null} [orderBy] ListRegionSecurityPoliciesRequest orderBy - * @property {string|null} [pageToken] ListRegionSecurityPoliciesRequest pageToken - * @property {string|null} [project] ListRegionSecurityPoliciesRequest project - * @property {string|null} [region] ListRegionSecurityPoliciesRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionSecurityPoliciesRequest returnPartialSuccess + * @interface IListRegionSslCertificatesRequest + * @property {string|null} [filter] ListRegionSslCertificatesRequest filter + * @property {number|null} [maxResults] ListRegionSslCertificatesRequest maxResults + * @property {string|null} [orderBy] ListRegionSslCertificatesRequest orderBy + * @property {string|null} [pageToken] ListRegionSslCertificatesRequest pageToken + * @property {string|null} [project] ListRegionSslCertificatesRequest project + * @property {string|null} [region] ListRegionSslCertificatesRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionSslCertificatesRequest returnPartialSuccess */ /** - * Constructs a new ListRegionSecurityPoliciesRequest. + * Constructs a new ListRegionSslCertificatesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionSecurityPoliciesRequest. - * @implements IListRegionSecurityPoliciesRequest + * @classdesc Represents a ListRegionSslCertificatesRequest. + * @implements IListRegionSslCertificatesRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionSecurityPoliciesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionSslCertificatesRequest=} [properties] Properties to set */ - function ListRegionSecurityPoliciesRequest(properties) { + function ListRegionSslCertificatesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -273988,141 +276497,141 @@ } /** - * ListRegionSecurityPoliciesRequest filter. + * ListRegionSslCertificatesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @instance */ - ListRegionSecurityPoliciesRequest.prototype.filter = null; + ListRegionSslCertificatesRequest.prototype.filter = null; /** - * ListRegionSecurityPoliciesRequest maxResults. + * ListRegionSslCertificatesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @instance */ - ListRegionSecurityPoliciesRequest.prototype.maxResults = null; + ListRegionSslCertificatesRequest.prototype.maxResults = null; /** - * ListRegionSecurityPoliciesRequest orderBy. + * ListRegionSslCertificatesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @instance */ - ListRegionSecurityPoliciesRequest.prototype.orderBy = null; + ListRegionSslCertificatesRequest.prototype.orderBy = null; /** - * ListRegionSecurityPoliciesRequest pageToken. + * ListRegionSslCertificatesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @instance */ - ListRegionSecurityPoliciesRequest.prototype.pageToken = null; + ListRegionSslCertificatesRequest.prototype.pageToken = null; /** - * ListRegionSecurityPoliciesRequest project. + * ListRegionSslCertificatesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @instance */ - ListRegionSecurityPoliciesRequest.prototype.project = ""; + ListRegionSslCertificatesRequest.prototype.project = ""; /** - * ListRegionSecurityPoliciesRequest region. + * ListRegionSslCertificatesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @instance */ - ListRegionSecurityPoliciesRequest.prototype.region = ""; + ListRegionSslCertificatesRequest.prototype.region = ""; /** - * ListRegionSecurityPoliciesRequest returnPartialSuccess. + * ListRegionSslCertificatesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @instance */ - ListRegionSecurityPoliciesRequest.prototype.returnPartialSuccess = null; + ListRegionSslCertificatesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * ListRegionSecurityPoliciesRequest _filter. + * ListRegionSslCertificatesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @instance */ - Object.defineProperty(ListRegionSecurityPoliciesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionSslCertificatesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionSecurityPoliciesRequest _maxResults. + * ListRegionSslCertificatesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @instance */ - Object.defineProperty(ListRegionSecurityPoliciesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionSslCertificatesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionSecurityPoliciesRequest _orderBy. + * ListRegionSslCertificatesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @instance */ - Object.defineProperty(ListRegionSecurityPoliciesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionSslCertificatesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionSecurityPoliciesRequest _pageToken. + * ListRegionSslCertificatesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @instance */ - Object.defineProperty(ListRegionSecurityPoliciesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionSslCertificatesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionSecurityPoliciesRequest _returnPartialSuccess. + * ListRegionSslCertificatesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @instance */ - Object.defineProperty(ListRegionSecurityPoliciesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionSslCertificatesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionSecurityPoliciesRequest instance using the specified properties. + * Creates a new ListRegionSslCertificatesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @static - * @param {google.cloud.compute.v1.IListRegionSecurityPoliciesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionSecurityPoliciesRequest} ListRegionSecurityPoliciesRequest instance + * @param {google.cloud.compute.v1.IListRegionSslCertificatesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionSslCertificatesRequest} ListRegionSslCertificatesRequest instance */ - ListRegionSecurityPoliciesRequest.create = function create(properties) { - return new ListRegionSecurityPoliciesRequest(properties); + ListRegionSslCertificatesRequest.create = function create(properties) { + return new ListRegionSslCertificatesRequest(properties); }; /** - * Encodes the specified ListRegionSecurityPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionSecurityPoliciesRequest.verify|verify} messages. + * Encodes the specified ListRegionSslCertificatesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionSslCertificatesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @static - * @param {google.cloud.compute.v1.IListRegionSecurityPoliciesRequest} message ListRegionSecurityPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionSslCertificatesRequest} message ListRegionSslCertificatesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionSecurityPoliciesRequest.encode = function encode(message, writer) { + ListRegionSslCertificatesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -274143,33 +276652,33 @@ }; /** - * Encodes the specified ListRegionSecurityPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionSecurityPoliciesRequest.verify|verify} messages. + * Encodes the specified ListRegionSslCertificatesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionSslCertificatesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @static - * @param {google.cloud.compute.v1.IListRegionSecurityPoliciesRequest} message ListRegionSecurityPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionSslCertificatesRequest} message ListRegionSslCertificatesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionSecurityPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionSslCertificatesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionSecurityPoliciesRequest message from the specified reader or buffer. + * Decodes a ListRegionSslCertificatesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionSecurityPoliciesRequest} ListRegionSecurityPoliciesRequest + * @returns {google.cloud.compute.v1.ListRegionSslCertificatesRequest} ListRegionSslCertificatesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionSecurityPoliciesRequest.decode = function decode(reader, length) { + ListRegionSslCertificatesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionSecurityPoliciesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionSslCertificatesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -274210,30 +276719,30 @@ }; /** - * Decodes a ListRegionSecurityPoliciesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionSslCertificatesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionSecurityPoliciesRequest} ListRegionSecurityPoliciesRequest + * @returns {google.cloud.compute.v1.ListRegionSslCertificatesRequest} ListRegionSslCertificatesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionSecurityPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionSslCertificatesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionSecurityPoliciesRequest message. + * Verifies a ListRegionSslCertificatesRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionSecurityPoliciesRequest.verify = function verify(message) { + ListRegionSslCertificatesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -274272,17 +276781,17 @@ }; /** - * Creates a ListRegionSecurityPoliciesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionSslCertificatesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionSecurityPoliciesRequest} ListRegionSecurityPoliciesRequest + * @returns {google.cloud.compute.v1.ListRegionSslCertificatesRequest} ListRegionSslCertificatesRequest */ - ListRegionSecurityPoliciesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionSecurityPoliciesRequest) + ListRegionSslCertificatesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionSslCertificatesRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionSecurityPoliciesRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionSslCertificatesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -274301,15 +276810,15 @@ }; /** - * Creates a plain object from a ListRegionSecurityPoliciesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionSslCertificatesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @static - * @param {google.cloud.compute.v1.ListRegionSecurityPoliciesRequest} message ListRegionSecurityPoliciesRequest + * @param {google.cloud.compute.v1.ListRegionSslCertificatesRequest} message ListRegionSslCertificatesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionSecurityPoliciesRequest.toObject = function toObject(message, options) { + ListRegionSslCertificatesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -274350,58 +276859,58 @@ }; /** - * Converts this ListRegionSecurityPoliciesRequest to JSON. + * Converts this ListRegionSslCertificatesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @instance * @returns {Object.} JSON object */ - ListRegionSecurityPoliciesRequest.prototype.toJSON = function toJSON() { + ListRegionSslCertificatesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionSecurityPoliciesRequest + * Gets the default type url for ListRegionSslCertificatesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionSecurityPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionSslCertificatesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionSecurityPoliciesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionSslCertificatesRequest"; }; - return ListRegionSecurityPoliciesRequest; + return ListRegionSslCertificatesRequest; })(); - v1.ListRegionSslCertificatesRequest = (function() { + v1.ListRegionSslPoliciesRequest = (function() { /** - * Properties of a ListRegionSslCertificatesRequest. + * Properties of a ListRegionSslPoliciesRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionSslCertificatesRequest - * @property {string|null} [filter] ListRegionSslCertificatesRequest filter - * @property {number|null} [maxResults] ListRegionSslCertificatesRequest maxResults - * @property {string|null} [orderBy] ListRegionSslCertificatesRequest orderBy - * @property {string|null} [pageToken] ListRegionSslCertificatesRequest pageToken - * @property {string|null} [project] ListRegionSslCertificatesRequest project - * @property {string|null} [region] ListRegionSslCertificatesRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionSslCertificatesRequest returnPartialSuccess + * @interface IListRegionSslPoliciesRequest + * @property {string|null} [filter] ListRegionSslPoliciesRequest filter + * @property {number|null} [maxResults] ListRegionSslPoliciesRequest maxResults + * @property {string|null} [orderBy] ListRegionSslPoliciesRequest orderBy + * @property {string|null} [pageToken] ListRegionSslPoliciesRequest pageToken + * @property {string|null} [project] ListRegionSslPoliciesRequest project + * @property {string|null} [region] ListRegionSslPoliciesRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionSslPoliciesRequest returnPartialSuccess */ /** - * Constructs a new ListRegionSslCertificatesRequest. + * Constructs a new ListRegionSslPoliciesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionSslCertificatesRequest. - * @implements IListRegionSslCertificatesRequest + * @classdesc Represents a ListRegionSslPoliciesRequest. + * @implements IListRegionSslPoliciesRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionSslCertificatesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionSslPoliciesRequest=} [properties] Properties to set */ - function ListRegionSslCertificatesRequest(properties) { + function ListRegionSslPoliciesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -274409,141 +276918,141 @@ } /** - * ListRegionSslCertificatesRequest filter. + * ListRegionSslPoliciesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @instance */ - ListRegionSslCertificatesRequest.prototype.filter = null; + ListRegionSslPoliciesRequest.prototype.filter = null; /** - * ListRegionSslCertificatesRequest maxResults. + * ListRegionSslPoliciesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @instance */ - ListRegionSslCertificatesRequest.prototype.maxResults = null; + ListRegionSslPoliciesRequest.prototype.maxResults = null; /** - * ListRegionSslCertificatesRequest orderBy. + * ListRegionSslPoliciesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @instance */ - ListRegionSslCertificatesRequest.prototype.orderBy = null; + ListRegionSslPoliciesRequest.prototype.orderBy = null; /** - * ListRegionSslCertificatesRequest pageToken. + * ListRegionSslPoliciesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @instance */ - ListRegionSslCertificatesRequest.prototype.pageToken = null; + ListRegionSslPoliciesRequest.prototype.pageToken = null; /** - * ListRegionSslCertificatesRequest project. + * ListRegionSslPoliciesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @instance */ - ListRegionSslCertificatesRequest.prototype.project = ""; + ListRegionSslPoliciesRequest.prototype.project = ""; /** - * ListRegionSslCertificatesRequest region. + * ListRegionSslPoliciesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @instance */ - ListRegionSslCertificatesRequest.prototype.region = ""; + ListRegionSslPoliciesRequest.prototype.region = ""; /** - * ListRegionSslCertificatesRequest returnPartialSuccess. + * ListRegionSslPoliciesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @instance */ - ListRegionSslCertificatesRequest.prototype.returnPartialSuccess = null; + ListRegionSslPoliciesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * ListRegionSslCertificatesRequest _filter. + * ListRegionSslPoliciesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @instance */ - Object.defineProperty(ListRegionSslCertificatesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionSslPoliciesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionSslCertificatesRequest _maxResults. + * ListRegionSslPoliciesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @instance */ - Object.defineProperty(ListRegionSslCertificatesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionSslPoliciesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionSslCertificatesRequest _orderBy. + * ListRegionSslPoliciesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @instance */ - Object.defineProperty(ListRegionSslCertificatesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionSslPoliciesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionSslCertificatesRequest _pageToken. + * ListRegionSslPoliciesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @instance */ - Object.defineProperty(ListRegionSslCertificatesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionSslPoliciesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionSslCertificatesRequest _returnPartialSuccess. + * ListRegionSslPoliciesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @instance */ - Object.defineProperty(ListRegionSslCertificatesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionSslPoliciesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionSslCertificatesRequest instance using the specified properties. + * Creates a new ListRegionSslPoliciesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @static - * @param {google.cloud.compute.v1.IListRegionSslCertificatesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionSslCertificatesRequest} ListRegionSslCertificatesRequest instance + * @param {google.cloud.compute.v1.IListRegionSslPoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionSslPoliciesRequest} ListRegionSslPoliciesRequest instance */ - ListRegionSslCertificatesRequest.create = function create(properties) { - return new ListRegionSslCertificatesRequest(properties); + ListRegionSslPoliciesRequest.create = function create(properties) { + return new ListRegionSslPoliciesRequest(properties); }; /** - * Encodes the specified ListRegionSslCertificatesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionSslCertificatesRequest.verify|verify} messages. + * Encodes the specified ListRegionSslPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionSslPoliciesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @static - * @param {google.cloud.compute.v1.IListRegionSslCertificatesRequest} message ListRegionSslCertificatesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionSslPoliciesRequest} message ListRegionSslPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionSslCertificatesRequest.encode = function encode(message, writer) { + ListRegionSslPoliciesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -274564,33 +277073,33 @@ }; /** - * Encodes the specified ListRegionSslCertificatesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionSslCertificatesRequest.verify|verify} messages. + * Encodes the specified ListRegionSslPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionSslPoliciesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @static - * @param {google.cloud.compute.v1.IListRegionSslCertificatesRequest} message ListRegionSslCertificatesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionSslPoliciesRequest} message ListRegionSslPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionSslCertificatesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionSslPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionSslCertificatesRequest message from the specified reader or buffer. + * Decodes a ListRegionSslPoliciesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionSslCertificatesRequest} ListRegionSslCertificatesRequest + * @returns {google.cloud.compute.v1.ListRegionSslPoliciesRequest} ListRegionSslPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionSslCertificatesRequest.decode = function decode(reader, length) { + ListRegionSslPoliciesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionSslCertificatesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionSslPoliciesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -274631,30 +277140,30 @@ }; /** - * Decodes a ListRegionSslCertificatesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionSslPoliciesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionSslCertificatesRequest} ListRegionSslCertificatesRequest + * @returns {google.cloud.compute.v1.ListRegionSslPoliciesRequest} ListRegionSslPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionSslCertificatesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionSslPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionSslCertificatesRequest message. + * Verifies a ListRegionSslPoliciesRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionSslCertificatesRequest.verify = function verify(message) { + ListRegionSslPoliciesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -274693,17 +277202,17 @@ }; /** - * Creates a ListRegionSslCertificatesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionSslPoliciesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionSslCertificatesRequest} ListRegionSslCertificatesRequest + * @returns {google.cloud.compute.v1.ListRegionSslPoliciesRequest} ListRegionSslPoliciesRequest */ - ListRegionSslCertificatesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionSslCertificatesRequest) + ListRegionSslPoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionSslPoliciesRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionSslCertificatesRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionSslPoliciesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -274722,15 +277231,15 @@ }; /** - * Creates a plain object from a ListRegionSslCertificatesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionSslPoliciesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @static - * @param {google.cloud.compute.v1.ListRegionSslCertificatesRequest} message ListRegionSslCertificatesRequest + * @param {google.cloud.compute.v1.ListRegionSslPoliciesRequest} message ListRegionSslPoliciesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionSslCertificatesRequest.toObject = function toObject(message, options) { + ListRegionSslPoliciesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -274771,58 +277280,58 @@ }; /** - * Converts this ListRegionSslCertificatesRequest to JSON. + * Converts this ListRegionSslPoliciesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @instance * @returns {Object.} JSON object */ - ListRegionSslCertificatesRequest.prototype.toJSON = function toJSON() { + ListRegionSslPoliciesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionSslCertificatesRequest + * Gets the default type url for ListRegionSslPoliciesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionSslCertificatesRequest + * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionSslCertificatesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionSslPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionSslCertificatesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionSslPoliciesRequest"; }; - return ListRegionSslCertificatesRequest; + return ListRegionSslPoliciesRequest; })(); - v1.ListRegionSslPoliciesRequest = (function() { + v1.ListRegionTargetHttpProxiesRequest = (function() { /** - * Properties of a ListRegionSslPoliciesRequest. + * Properties of a ListRegionTargetHttpProxiesRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionSslPoliciesRequest - * @property {string|null} [filter] ListRegionSslPoliciesRequest filter - * @property {number|null} [maxResults] ListRegionSslPoliciesRequest maxResults - * @property {string|null} [orderBy] ListRegionSslPoliciesRequest orderBy - * @property {string|null} [pageToken] ListRegionSslPoliciesRequest pageToken - * @property {string|null} [project] ListRegionSslPoliciesRequest project - * @property {string|null} [region] ListRegionSslPoliciesRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionSslPoliciesRequest returnPartialSuccess + * @interface IListRegionTargetHttpProxiesRequest + * @property {string|null} [filter] ListRegionTargetHttpProxiesRequest filter + * @property {number|null} [maxResults] ListRegionTargetHttpProxiesRequest maxResults + * @property {string|null} [orderBy] ListRegionTargetHttpProxiesRequest orderBy + * @property {string|null} [pageToken] ListRegionTargetHttpProxiesRequest pageToken + * @property {string|null} [project] ListRegionTargetHttpProxiesRequest project + * @property {string|null} [region] ListRegionTargetHttpProxiesRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionTargetHttpProxiesRequest returnPartialSuccess */ /** - * Constructs a new ListRegionSslPoliciesRequest. + * Constructs a new ListRegionTargetHttpProxiesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionSslPoliciesRequest. - * @implements IListRegionSslPoliciesRequest + * @classdesc Represents a ListRegionTargetHttpProxiesRequest. + * @implements IListRegionTargetHttpProxiesRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionSslPoliciesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionTargetHttpProxiesRequest=} [properties] Properties to set */ - function ListRegionSslPoliciesRequest(properties) { + function ListRegionTargetHttpProxiesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -274830,141 +277339,141 @@ } /** - * ListRegionSslPoliciesRequest filter. + * ListRegionTargetHttpProxiesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @instance */ - ListRegionSslPoliciesRequest.prototype.filter = null; + ListRegionTargetHttpProxiesRequest.prototype.filter = null; /** - * ListRegionSslPoliciesRequest maxResults. + * ListRegionTargetHttpProxiesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @instance */ - ListRegionSslPoliciesRequest.prototype.maxResults = null; + ListRegionTargetHttpProxiesRequest.prototype.maxResults = null; /** - * ListRegionSslPoliciesRequest orderBy. + * ListRegionTargetHttpProxiesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @instance */ - ListRegionSslPoliciesRequest.prototype.orderBy = null; + ListRegionTargetHttpProxiesRequest.prototype.orderBy = null; /** - * ListRegionSslPoliciesRequest pageToken. + * ListRegionTargetHttpProxiesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @instance */ - ListRegionSslPoliciesRequest.prototype.pageToken = null; + ListRegionTargetHttpProxiesRequest.prototype.pageToken = null; /** - * ListRegionSslPoliciesRequest project. + * ListRegionTargetHttpProxiesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @instance */ - ListRegionSslPoliciesRequest.prototype.project = ""; + ListRegionTargetHttpProxiesRequest.prototype.project = ""; /** - * ListRegionSslPoliciesRequest region. + * ListRegionTargetHttpProxiesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @instance */ - ListRegionSslPoliciesRequest.prototype.region = ""; + ListRegionTargetHttpProxiesRequest.prototype.region = ""; /** - * ListRegionSslPoliciesRequest returnPartialSuccess. + * ListRegionTargetHttpProxiesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @instance */ - ListRegionSslPoliciesRequest.prototype.returnPartialSuccess = null; + ListRegionTargetHttpProxiesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * ListRegionSslPoliciesRequest _filter. + * ListRegionTargetHttpProxiesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @instance */ - Object.defineProperty(ListRegionSslPoliciesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionTargetHttpProxiesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionSslPoliciesRequest _maxResults. + * ListRegionTargetHttpProxiesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @instance */ - Object.defineProperty(ListRegionSslPoliciesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionTargetHttpProxiesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionSslPoliciesRequest _orderBy. + * ListRegionTargetHttpProxiesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @instance */ - Object.defineProperty(ListRegionSslPoliciesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionTargetHttpProxiesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionSslPoliciesRequest _pageToken. + * ListRegionTargetHttpProxiesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @instance */ - Object.defineProperty(ListRegionSslPoliciesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionTargetHttpProxiesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionSslPoliciesRequest _returnPartialSuccess. + * ListRegionTargetHttpProxiesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @instance */ - Object.defineProperty(ListRegionSslPoliciesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionTargetHttpProxiesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionSslPoliciesRequest instance using the specified properties. + * Creates a new ListRegionTargetHttpProxiesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @static - * @param {google.cloud.compute.v1.IListRegionSslPoliciesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionSslPoliciesRequest} ListRegionSslPoliciesRequest instance + * @param {google.cloud.compute.v1.IListRegionTargetHttpProxiesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest} ListRegionTargetHttpProxiesRequest instance */ - ListRegionSslPoliciesRequest.create = function create(properties) { - return new ListRegionSslPoliciesRequest(properties); + ListRegionTargetHttpProxiesRequest.create = function create(properties) { + return new ListRegionTargetHttpProxiesRequest(properties); }; /** - * Encodes the specified ListRegionSslPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionSslPoliciesRequest.verify|verify} messages. + * Encodes the specified ListRegionTargetHttpProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @static - * @param {google.cloud.compute.v1.IListRegionSslPoliciesRequest} message ListRegionSslPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionTargetHttpProxiesRequest} message ListRegionTargetHttpProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionSslPoliciesRequest.encode = function encode(message, writer) { + ListRegionTargetHttpProxiesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -274985,33 +277494,33 @@ }; /** - * Encodes the specified ListRegionSslPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionSslPoliciesRequest.verify|verify} messages. + * Encodes the specified ListRegionTargetHttpProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @static - * @param {google.cloud.compute.v1.IListRegionSslPoliciesRequest} message ListRegionSslPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionTargetHttpProxiesRequest} message ListRegionTargetHttpProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionSslPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionTargetHttpProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionSslPoliciesRequest message from the specified reader or buffer. + * Decodes a ListRegionTargetHttpProxiesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionSslPoliciesRequest} ListRegionSslPoliciesRequest + * @returns {google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest} ListRegionTargetHttpProxiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionSslPoliciesRequest.decode = function decode(reader, length) { + ListRegionTargetHttpProxiesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionSslPoliciesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -275052,30 +277561,30 @@ }; /** - * Decodes a ListRegionSslPoliciesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionTargetHttpProxiesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionSslPoliciesRequest} ListRegionSslPoliciesRequest + * @returns {google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest} ListRegionTargetHttpProxiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionSslPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionTargetHttpProxiesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionSslPoliciesRequest message. + * Verifies a ListRegionTargetHttpProxiesRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionSslPoliciesRequest.verify = function verify(message) { + ListRegionTargetHttpProxiesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -275114,17 +277623,17 @@ }; /** - * Creates a ListRegionSslPoliciesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionTargetHttpProxiesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionSslPoliciesRequest} ListRegionSslPoliciesRequest + * @returns {google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest} ListRegionTargetHttpProxiesRequest */ - ListRegionSslPoliciesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionSslPoliciesRequest) + ListRegionTargetHttpProxiesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionSslPoliciesRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -275143,15 +277652,15 @@ }; /** - * Creates a plain object from a ListRegionSslPoliciesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionTargetHttpProxiesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @static - * @param {google.cloud.compute.v1.ListRegionSslPoliciesRequest} message ListRegionSslPoliciesRequest + * @param {google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest} message ListRegionTargetHttpProxiesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionSslPoliciesRequest.toObject = function toObject(message, options) { + ListRegionTargetHttpProxiesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -275192,58 +277701,58 @@ }; /** - * Converts this ListRegionSslPoliciesRequest to JSON. + * Converts this ListRegionTargetHttpProxiesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @instance * @returns {Object.} JSON object */ - ListRegionSslPoliciesRequest.prototype.toJSON = function toJSON() { + ListRegionTargetHttpProxiesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionSslPoliciesRequest + * Gets the default type url for ListRegionTargetHttpProxiesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionSslPoliciesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionSslPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionTargetHttpProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionSslPoliciesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest"; }; - return ListRegionSslPoliciesRequest; + return ListRegionTargetHttpProxiesRequest; })(); - v1.ListRegionTargetHttpProxiesRequest = (function() { + v1.ListRegionTargetHttpsProxiesRequest = (function() { /** - * Properties of a ListRegionTargetHttpProxiesRequest. + * Properties of a ListRegionTargetHttpsProxiesRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionTargetHttpProxiesRequest - * @property {string|null} [filter] ListRegionTargetHttpProxiesRequest filter - * @property {number|null} [maxResults] ListRegionTargetHttpProxiesRequest maxResults - * @property {string|null} [orderBy] ListRegionTargetHttpProxiesRequest orderBy - * @property {string|null} [pageToken] ListRegionTargetHttpProxiesRequest pageToken - * @property {string|null} [project] ListRegionTargetHttpProxiesRequest project - * @property {string|null} [region] ListRegionTargetHttpProxiesRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionTargetHttpProxiesRequest returnPartialSuccess + * @interface IListRegionTargetHttpsProxiesRequest + * @property {string|null} [filter] ListRegionTargetHttpsProxiesRequest filter + * @property {number|null} [maxResults] ListRegionTargetHttpsProxiesRequest maxResults + * @property {string|null} [orderBy] ListRegionTargetHttpsProxiesRequest orderBy + * @property {string|null} [pageToken] ListRegionTargetHttpsProxiesRequest pageToken + * @property {string|null} [project] ListRegionTargetHttpsProxiesRequest project + * @property {string|null} [region] ListRegionTargetHttpsProxiesRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionTargetHttpsProxiesRequest returnPartialSuccess */ /** - * Constructs a new ListRegionTargetHttpProxiesRequest. + * Constructs a new ListRegionTargetHttpsProxiesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionTargetHttpProxiesRequest. - * @implements IListRegionTargetHttpProxiesRequest + * @classdesc Represents a ListRegionTargetHttpsProxiesRequest. + * @implements IListRegionTargetHttpsProxiesRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionTargetHttpProxiesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionTargetHttpsProxiesRequest=} [properties] Properties to set */ - function ListRegionTargetHttpProxiesRequest(properties) { + function ListRegionTargetHttpsProxiesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -275251,141 +277760,141 @@ } /** - * ListRegionTargetHttpProxiesRequest filter. + * ListRegionTargetHttpsProxiesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @instance */ - ListRegionTargetHttpProxiesRequest.prototype.filter = null; + ListRegionTargetHttpsProxiesRequest.prototype.filter = null; /** - * ListRegionTargetHttpProxiesRequest maxResults. + * ListRegionTargetHttpsProxiesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @instance */ - ListRegionTargetHttpProxiesRequest.prototype.maxResults = null; + ListRegionTargetHttpsProxiesRequest.prototype.maxResults = null; /** - * ListRegionTargetHttpProxiesRequest orderBy. + * ListRegionTargetHttpsProxiesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @instance */ - ListRegionTargetHttpProxiesRequest.prototype.orderBy = null; + ListRegionTargetHttpsProxiesRequest.prototype.orderBy = null; /** - * ListRegionTargetHttpProxiesRequest pageToken. + * ListRegionTargetHttpsProxiesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @instance */ - ListRegionTargetHttpProxiesRequest.prototype.pageToken = null; + ListRegionTargetHttpsProxiesRequest.prototype.pageToken = null; /** - * ListRegionTargetHttpProxiesRequest project. + * ListRegionTargetHttpsProxiesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @instance */ - ListRegionTargetHttpProxiesRequest.prototype.project = ""; + ListRegionTargetHttpsProxiesRequest.prototype.project = ""; /** - * ListRegionTargetHttpProxiesRequest region. + * ListRegionTargetHttpsProxiesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @instance */ - ListRegionTargetHttpProxiesRequest.prototype.region = ""; + ListRegionTargetHttpsProxiesRequest.prototype.region = ""; /** - * ListRegionTargetHttpProxiesRequest returnPartialSuccess. + * ListRegionTargetHttpsProxiesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @instance */ - ListRegionTargetHttpProxiesRequest.prototype.returnPartialSuccess = null; + ListRegionTargetHttpsProxiesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * ListRegionTargetHttpProxiesRequest _filter. + * ListRegionTargetHttpsProxiesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @instance */ - Object.defineProperty(ListRegionTargetHttpProxiesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionTargetHttpsProxiesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionTargetHttpProxiesRequest _maxResults. + * ListRegionTargetHttpsProxiesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @instance */ - Object.defineProperty(ListRegionTargetHttpProxiesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionTargetHttpsProxiesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionTargetHttpProxiesRequest _orderBy. + * ListRegionTargetHttpsProxiesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @instance */ - Object.defineProperty(ListRegionTargetHttpProxiesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionTargetHttpsProxiesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionTargetHttpProxiesRequest _pageToken. + * ListRegionTargetHttpsProxiesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @instance */ - Object.defineProperty(ListRegionTargetHttpProxiesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionTargetHttpsProxiesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionTargetHttpProxiesRequest _returnPartialSuccess. + * ListRegionTargetHttpsProxiesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @instance */ - Object.defineProperty(ListRegionTargetHttpProxiesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionTargetHttpsProxiesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionTargetHttpProxiesRequest instance using the specified properties. + * Creates a new ListRegionTargetHttpsProxiesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @static - * @param {google.cloud.compute.v1.IListRegionTargetHttpProxiesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest} ListRegionTargetHttpProxiesRequest instance + * @param {google.cloud.compute.v1.IListRegionTargetHttpsProxiesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest} ListRegionTargetHttpsProxiesRequest instance */ - ListRegionTargetHttpProxiesRequest.create = function create(properties) { - return new ListRegionTargetHttpProxiesRequest(properties); + ListRegionTargetHttpsProxiesRequest.create = function create(properties) { + return new ListRegionTargetHttpsProxiesRequest(properties); }; /** - * Encodes the specified ListRegionTargetHttpProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest.verify|verify} messages. + * Encodes the specified ListRegionTargetHttpsProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @static - * @param {google.cloud.compute.v1.IListRegionTargetHttpProxiesRequest} message ListRegionTargetHttpProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionTargetHttpsProxiesRequest} message ListRegionTargetHttpsProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionTargetHttpProxiesRequest.encode = function encode(message, writer) { + ListRegionTargetHttpsProxiesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -275406,33 +277915,33 @@ }; /** - * Encodes the specified ListRegionTargetHttpProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest.verify|verify} messages. + * Encodes the specified ListRegionTargetHttpsProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @static - * @param {google.cloud.compute.v1.IListRegionTargetHttpProxiesRequest} message ListRegionTargetHttpProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionTargetHttpsProxiesRequest} message ListRegionTargetHttpsProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionTargetHttpProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionTargetHttpsProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionTargetHttpProxiesRequest message from the specified reader or buffer. + * Decodes a ListRegionTargetHttpsProxiesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest} ListRegionTargetHttpProxiesRequest + * @returns {google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest} ListRegionTargetHttpsProxiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionTargetHttpProxiesRequest.decode = function decode(reader, length) { + ListRegionTargetHttpsProxiesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -275473,30 +277982,30 @@ }; /** - * Decodes a ListRegionTargetHttpProxiesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionTargetHttpsProxiesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest} ListRegionTargetHttpProxiesRequest + * @returns {google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest} ListRegionTargetHttpsProxiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionTargetHttpProxiesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionTargetHttpsProxiesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionTargetHttpProxiesRequest message. + * Verifies a ListRegionTargetHttpsProxiesRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionTargetHttpProxiesRequest.verify = function verify(message) { + ListRegionTargetHttpsProxiesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -275535,17 +278044,17 @@ }; /** - * Creates a ListRegionTargetHttpProxiesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionTargetHttpsProxiesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest} ListRegionTargetHttpProxiesRequest + * @returns {google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest} ListRegionTargetHttpsProxiesRequest */ - ListRegionTargetHttpProxiesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest) + ListRegionTargetHttpsProxiesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -275564,15 +278073,15 @@ }; /** - * Creates a plain object from a ListRegionTargetHttpProxiesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionTargetHttpsProxiesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @static - * @param {google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest} message ListRegionTargetHttpProxiesRequest + * @param {google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest} message ListRegionTargetHttpsProxiesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionTargetHttpProxiesRequest.toObject = function toObject(message, options) { + ListRegionTargetHttpsProxiesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -275613,58 +278122,58 @@ }; /** - * Converts this ListRegionTargetHttpProxiesRequest to JSON. + * Converts this ListRegionTargetHttpsProxiesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @instance * @returns {Object.} JSON object */ - ListRegionTargetHttpProxiesRequest.prototype.toJSON = function toJSON() { + ListRegionTargetHttpsProxiesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionTargetHttpProxiesRequest + * Gets the default type url for ListRegionTargetHttpsProxiesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionTargetHttpProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionTargetHttpsProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest"; }; - return ListRegionTargetHttpProxiesRequest; + return ListRegionTargetHttpsProxiesRequest; })(); - v1.ListRegionTargetHttpsProxiesRequest = (function() { + v1.ListRegionTargetTcpProxiesRequest = (function() { /** - * Properties of a ListRegionTargetHttpsProxiesRequest. + * Properties of a ListRegionTargetTcpProxiesRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionTargetHttpsProxiesRequest - * @property {string|null} [filter] ListRegionTargetHttpsProxiesRequest filter - * @property {number|null} [maxResults] ListRegionTargetHttpsProxiesRequest maxResults - * @property {string|null} [orderBy] ListRegionTargetHttpsProxiesRequest orderBy - * @property {string|null} [pageToken] ListRegionTargetHttpsProxiesRequest pageToken - * @property {string|null} [project] ListRegionTargetHttpsProxiesRequest project - * @property {string|null} [region] ListRegionTargetHttpsProxiesRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionTargetHttpsProxiesRequest returnPartialSuccess + * @interface IListRegionTargetTcpProxiesRequest + * @property {string|null} [filter] ListRegionTargetTcpProxiesRequest filter + * @property {number|null} [maxResults] ListRegionTargetTcpProxiesRequest maxResults + * @property {string|null} [orderBy] ListRegionTargetTcpProxiesRequest orderBy + * @property {string|null} [pageToken] ListRegionTargetTcpProxiesRequest pageToken + * @property {string|null} [project] ListRegionTargetTcpProxiesRequest project + * @property {string|null} [region] ListRegionTargetTcpProxiesRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionTargetTcpProxiesRequest returnPartialSuccess */ /** - * Constructs a new ListRegionTargetHttpsProxiesRequest. + * Constructs a new ListRegionTargetTcpProxiesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionTargetHttpsProxiesRequest. - * @implements IListRegionTargetHttpsProxiesRequest + * @classdesc Represents a ListRegionTargetTcpProxiesRequest. + * @implements IListRegionTargetTcpProxiesRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionTargetHttpsProxiesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionTargetTcpProxiesRequest=} [properties] Properties to set */ - function ListRegionTargetHttpsProxiesRequest(properties) { + function ListRegionTargetTcpProxiesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -275672,141 +278181,141 @@ } /** - * ListRegionTargetHttpsProxiesRequest filter. + * ListRegionTargetTcpProxiesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @instance */ - ListRegionTargetHttpsProxiesRequest.prototype.filter = null; + ListRegionTargetTcpProxiesRequest.prototype.filter = null; /** - * ListRegionTargetHttpsProxiesRequest maxResults. + * ListRegionTargetTcpProxiesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @instance */ - ListRegionTargetHttpsProxiesRequest.prototype.maxResults = null; + ListRegionTargetTcpProxiesRequest.prototype.maxResults = null; /** - * ListRegionTargetHttpsProxiesRequest orderBy. + * ListRegionTargetTcpProxiesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @instance */ - ListRegionTargetHttpsProxiesRequest.prototype.orderBy = null; + ListRegionTargetTcpProxiesRequest.prototype.orderBy = null; /** - * ListRegionTargetHttpsProxiesRequest pageToken. + * ListRegionTargetTcpProxiesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @instance */ - ListRegionTargetHttpsProxiesRequest.prototype.pageToken = null; + ListRegionTargetTcpProxiesRequest.prototype.pageToken = null; /** - * ListRegionTargetHttpsProxiesRequest project. + * ListRegionTargetTcpProxiesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @instance */ - ListRegionTargetHttpsProxiesRequest.prototype.project = ""; + ListRegionTargetTcpProxiesRequest.prototype.project = ""; /** - * ListRegionTargetHttpsProxiesRequest region. + * ListRegionTargetTcpProxiesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @instance */ - ListRegionTargetHttpsProxiesRequest.prototype.region = ""; + ListRegionTargetTcpProxiesRequest.prototype.region = ""; /** - * ListRegionTargetHttpsProxiesRequest returnPartialSuccess. + * ListRegionTargetTcpProxiesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @instance */ - ListRegionTargetHttpsProxiesRequest.prototype.returnPartialSuccess = null; + ListRegionTargetTcpProxiesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * ListRegionTargetHttpsProxiesRequest _filter. + * ListRegionTargetTcpProxiesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @instance */ - Object.defineProperty(ListRegionTargetHttpsProxiesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionTargetTcpProxiesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionTargetHttpsProxiesRequest _maxResults. + * ListRegionTargetTcpProxiesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @instance */ - Object.defineProperty(ListRegionTargetHttpsProxiesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionTargetTcpProxiesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionTargetHttpsProxiesRequest _orderBy. + * ListRegionTargetTcpProxiesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @instance */ - Object.defineProperty(ListRegionTargetHttpsProxiesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionTargetTcpProxiesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionTargetHttpsProxiesRequest _pageToken. + * ListRegionTargetTcpProxiesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @instance */ - Object.defineProperty(ListRegionTargetHttpsProxiesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionTargetTcpProxiesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionTargetHttpsProxiesRequest _returnPartialSuccess. + * ListRegionTargetTcpProxiesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @instance */ - Object.defineProperty(ListRegionTargetHttpsProxiesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionTargetTcpProxiesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionTargetHttpsProxiesRequest instance using the specified properties. + * Creates a new ListRegionTargetTcpProxiesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @static - * @param {google.cloud.compute.v1.IListRegionTargetHttpsProxiesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest} ListRegionTargetHttpsProxiesRequest instance + * @param {google.cloud.compute.v1.IListRegionTargetTcpProxiesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest} ListRegionTargetTcpProxiesRequest instance */ - ListRegionTargetHttpsProxiesRequest.create = function create(properties) { - return new ListRegionTargetHttpsProxiesRequest(properties); + ListRegionTargetTcpProxiesRequest.create = function create(properties) { + return new ListRegionTargetTcpProxiesRequest(properties); }; /** - * Encodes the specified ListRegionTargetHttpsProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest.verify|verify} messages. + * Encodes the specified ListRegionTargetTcpProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @static - * @param {google.cloud.compute.v1.IListRegionTargetHttpsProxiesRequest} message ListRegionTargetHttpsProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionTargetTcpProxiesRequest} message ListRegionTargetTcpProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionTargetHttpsProxiesRequest.encode = function encode(message, writer) { + ListRegionTargetTcpProxiesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -275827,33 +278336,33 @@ }; /** - * Encodes the specified ListRegionTargetHttpsProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest.verify|verify} messages. + * Encodes the specified ListRegionTargetTcpProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @static - * @param {google.cloud.compute.v1.IListRegionTargetHttpsProxiesRequest} message ListRegionTargetHttpsProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionTargetTcpProxiesRequest} message ListRegionTargetTcpProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionTargetHttpsProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionTargetTcpProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionTargetHttpsProxiesRequest message from the specified reader or buffer. + * Decodes a ListRegionTargetTcpProxiesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest} ListRegionTargetHttpsProxiesRequest + * @returns {google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest} ListRegionTargetTcpProxiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionTargetHttpsProxiesRequest.decode = function decode(reader, length) { + ListRegionTargetTcpProxiesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -275894,30 +278403,30 @@ }; /** - * Decodes a ListRegionTargetHttpsProxiesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionTargetTcpProxiesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest} ListRegionTargetHttpsProxiesRequest + * @returns {google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest} ListRegionTargetTcpProxiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionTargetHttpsProxiesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionTargetTcpProxiesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionTargetHttpsProxiesRequest message. + * Verifies a ListRegionTargetTcpProxiesRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionTargetHttpsProxiesRequest.verify = function verify(message) { + ListRegionTargetTcpProxiesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -275956,17 +278465,17 @@ }; /** - * Creates a ListRegionTargetHttpsProxiesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionTargetTcpProxiesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest} ListRegionTargetHttpsProxiesRequest + * @returns {google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest} ListRegionTargetTcpProxiesRequest */ - ListRegionTargetHttpsProxiesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest) + ListRegionTargetTcpProxiesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -275985,15 +278494,15 @@ }; /** - * Creates a plain object from a ListRegionTargetHttpsProxiesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionTargetTcpProxiesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @static - * @param {google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest} message ListRegionTargetHttpsProxiesRequest + * @param {google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest} message ListRegionTargetTcpProxiesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionTargetHttpsProxiesRequest.toObject = function toObject(message, options) { + ListRegionTargetTcpProxiesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -276034,58 +278543,58 @@ }; /** - * Converts this ListRegionTargetHttpsProxiesRequest to JSON. + * Converts this ListRegionTargetTcpProxiesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @instance * @returns {Object.} JSON object */ - ListRegionTargetHttpsProxiesRequest.prototype.toJSON = function toJSON() { + ListRegionTargetTcpProxiesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionTargetHttpsProxiesRequest + * Gets the default type url for ListRegionTargetTcpProxiesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionTargetHttpsProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionTargetTcpProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest"; }; - return ListRegionTargetHttpsProxiesRequest; + return ListRegionTargetTcpProxiesRequest; })(); - v1.ListRegionTargetTcpProxiesRequest = (function() { + v1.ListRegionUrlMapsRequest = (function() { /** - * Properties of a ListRegionTargetTcpProxiesRequest. + * Properties of a ListRegionUrlMapsRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionTargetTcpProxiesRequest - * @property {string|null} [filter] ListRegionTargetTcpProxiesRequest filter - * @property {number|null} [maxResults] ListRegionTargetTcpProxiesRequest maxResults - * @property {string|null} [orderBy] ListRegionTargetTcpProxiesRequest orderBy - * @property {string|null} [pageToken] ListRegionTargetTcpProxiesRequest pageToken - * @property {string|null} [project] ListRegionTargetTcpProxiesRequest project - * @property {string|null} [region] ListRegionTargetTcpProxiesRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionTargetTcpProxiesRequest returnPartialSuccess + * @interface IListRegionUrlMapsRequest + * @property {string|null} [filter] ListRegionUrlMapsRequest filter + * @property {number|null} [maxResults] ListRegionUrlMapsRequest maxResults + * @property {string|null} [orderBy] ListRegionUrlMapsRequest orderBy + * @property {string|null} [pageToken] ListRegionUrlMapsRequest pageToken + * @property {string|null} [project] ListRegionUrlMapsRequest project + * @property {string|null} [region] ListRegionUrlMapsRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionUrlMapsRequest returnPartialSuccess */ /** - * Constructs a new ListRegionTargetTcpProxiesRequest. + * Constructs a new ListRegionUrlMapsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionTargetTcpProxiesRequest. - * @implements IListRegionTargetTcpProxiesRequest + * @classdesc Represents a ListRegionUrlMapsRequest. + * @implements IListRegionUrlMapsRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionTargetTcpProxiesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionUrlMapsRequest=} [properties] Properties to set */ - function ListRegionTargetTcpProxiesRequest(properties) { + function ListRegionUrlMapsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -276093,141 +278602,141 @@ } /** - * ListRegionTargetTcpProxiesRequest filter. + * ListRegionUrlMapsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @instance */ - ListRegionTargetTcpProxiesRequest.prototype.filter = null; + ListRegionUrlMapsRequest.prototype.filter = null; /** - * ListRegionTargetTcpProxiesRequest maxResults. + * ListRegionUrlMapsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @instance */ - ListRegionTargetTcpProxiesRequest.prototype.maxResults = null; + ListRegionUrlMapsRequest.prototype.maxResults = null; /** - * ListRegionTargetTcpProxiesRequest orderBy. + * ListRegionUrlMapsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @instance */ - ListRegionTargetTcpProxiesRequest.prototype.orderBy = null; + ListRegionUrlMapsRequest.prototype.orderBy = null; /** - * ListRegionTargetTcpProxiesRequest pageToken. + * ListRegionUrlMapsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @instance */ - ListRegionTargetTcpProxiesRequest.prototype.pageToken = null; + ListRegionUrlMapsRequest.prototype.pageToken = null; /** - * ListRegionTargetTcpProxiesRequest project. + * ListRegionUrlMapsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @instance */ - ListRegionTargetTcpProxiesRequest.prototype.project = ""; + ListRegionUrlMapsRequest.prototype.project = ""; /** - * ListRegionTargetTcpProxiesRequest region. + * ListRegionUrlMapsRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @instance */ - ListRegionTargetTcpProxiesRequest.prototype.region = ""; + ListRegionUrlMapsRequest.prototype.region = ""; /** - * ListRegionTargetTcpProxiesRequest returnPartialSuccess. + * ListRegionUrlMapsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @instance */ - ListRegionTargetTcpProxiesRequest.prototype.returnPartialSuccess = null; + ListRegionUrlMapsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * ListRegionTargetTcpProxiesRequest _filter. + * ListRegionUrlMapsRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @instance */ - Object.defineProperty(ListRegionTargetTcpProxiesRequest.prototype, "_filter", { + Object.defineProperty(ListRegionUrlMapsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionTargetTcpProxiesRequest _maxResults. + * ListRegionUrlMapsRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @instance */ - Object.defineProperty(ListRegionTargetTcpProxiesRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionUrlMapsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionTargetTcpProxiesRequest _orderBy. + * ListRegionUrlMapsRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @instance */ - Object.defineProperty(ListRegionTargetTcpProxiesRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionUrlMapsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionTargetTcpProxiesRequest _pageToken. + * ListRegionUrlMapsRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @instance */ - Object.defineProperty(ListRegionTargetTcpProxiesRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionUrlMapsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionTargetTcpProxiesRequest _returnPartialSuccess. + * ListRegionUrlMapsRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @instance */ - Object.defineProperty(ListRegionTargetTcpProxiesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionUrlMapsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionTargetTcpProxiesRequest instance using the specified properties. + * Creates a new ListRegionUrlMapsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @static - * @param {google.cloud.compute.v1.IListRegionTargetTcpProxiesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest} ListRegionTargetTcpProxiesRequest instance + * @param {google.cloud.compute.v1.IListRegionUrlMapsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionUrlMapsRequest} ListRegionUrlMapsRequest instance */ - ListRegionTargetTcpProxiesRequest.create = function create(properties) { - return new ListRegionTargetTcpProxiesRequest(properties); + ListRegionUrlMapsRequest.create = function create(properties) { + return new ListRegionUrlMapsRequest(properties); }; /** - * Encodes the specified ListRegionTargetTcpProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest.verify|verify} messages. + * Encodes the specified ListRegionUrlMapsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionUrlMapsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @static - * @param {google.cloud.compute.v1.IListRegionTargetTcpProxiesRequest} message ListRegionTargetTcpProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionUrlMapsRequest} message ListRegionUrlMapsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionTargetTcpProxiesRequest.encode = function encode(message, writer) { + ListRegionUrlMapsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -276248,33 +278757,33 @@ }; /** - * Encodes the specified ListRegionTargetTcpProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest.verify|verify} messages. + * Encodes the specified ListRegionUrlMapsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionUrlMapsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @static - * @param {google.cloud.compute.v1.IListRegionTargetTcpProxiesRequest} message ListRegionTargetTcpProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionUrlMapsRequest} message ListRegionUrlMapsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionTargetTcpProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionUrlMapsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionTargetTcpProxiesRequest message from the specified reader or buffer. + * Decodes a ListRegionUrlMapsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest} ListRegionTargetTcpProxiesRequest + * @returns {google.cloud.compute.v1.ListRegionUrlMapsRequest} ListRegionUrlMapsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionTargetTcpProxiesRequest.decode = function decode(reader, length) { + ListRegionUrlMapsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionUrlMapsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -276315,30 +278824,30 @@ }; /** - * Decodes a ListRegionTargetTcpProxiesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionUrlMapsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest} ListRegionTargetTcpProxiesRequest + * @returns {google.cloud.compute.v1.ListRegionUrlMapsRequest} ListRegionUrlMapsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionTargetTcpProxiesRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionUrlMapsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionTargetTcpProxiesRequest message. + * Verifies a ListRegionUrlMapsRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionTargetTcpProxiesRequest.verify = function verify(message) { + ListRegionUrlMapsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -276377,17 +278886,17 @@ }; /** - * Creates a ListRegionTargetTcpProxiesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionUrlMapsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest} ListRegionTargetTcpProxiesRequest + * @returns {google.cloud.compute.v1.ListRegionUrlMapsRequest} ListRegionUrlMapsRequest */ - ListRegionTargetTcpProxiesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest) + ListRegionUrlMapsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionUrlMapsRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionUrlMapsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -276406,15 +278915,15 @@ }; /** - * Creates a plain object from a ListRegionTargetTcpProxiesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionUrlMapsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @static - * @param {google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest} message ListRegionTargetTcpProxiesRequest + * @param {google.cloud.compute.v1.ListRegionUrlMapsRequest} message ListRegionUrlMapsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionTargetTcpProxiesRequest.toObject = function toObject(message, options) { + ListRegionUrlMapsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -276455,58 +278964,58 @@ }; /** - * Converts this ListRegionTargetTcpProxiesRequest to JSON. + * Converts this ListRegionUrlMapsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @instance * @returns {Object.} JSON object */ - ListRegionTargetTcpProxiesRequest.prototype.toJSON = function toJSON() { + ListRegionUrlMapsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionTargetTcpProxiesRequest + * Gets the default type url for ListRegionUrlMapsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionTargetTcpProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionUrlMapsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionTargetTcpProxiesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionUrlMapsRequest"; }; - return ListRegionTargetTcpProxiesRequest; + return ListRegionUrlMapsRequest; })(); - v1.ListRegionUrlMapsRequest = (function() { + v1.ListRegionZonesRequest = (function() { /** - * Properties of a ListRegionUrlMapsRequest. + * Properties of a ListRegionZonesRequest. * @memberof google.cloud.compute.v1 - * @interface IListRegionUrlMapsRequest - * @property {string|null} [filter] ListRegionUrlMapsRequest filter - * @property {number|null} [maxResults] ListRegionUrlMapsRequest maxResults - * @property {string|null} [orderBy] ListRegionUrlMapsRequest orderBy - * @property {string|null} [pageToken] ListRegionUrlMapsRequest pageToken - * @property {string|null} [project] ListRegionUrlMapsRequest project - * @property {string|null} [region] ListRegionUrlMapsRequest region - * @property {boolean|null} [returnPartialSuccess] ListRegionUrlMapsRequest returnPartialSuccess + * @interface IListRegionZonesRequest + * @property {string|null} [filter] ListRegionZonesRequest filter + * @property {number|null} [maxResults] ListRegionZonesRequest maxResults + * @property {string|null} [orderBy] ListRegionZonesRequest orderBy + * @property {string|null} [pageToken] ListRegionZonesRequest pageToken + * @property {string|null} [project] ListRegionZonesRequest project + * @property {string|null} [region] ListRegionZonesRequest region + * @property {boolean|null} [returnPartialSuccess] ListRegionZonesRequest returnPartialSuccess */ /** - * Constructs a new ListRegionUrlMapsRequest. + * Constructs a new ListRegionZonesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListRegionUrlMapsRequest. - * @implements IListRegionUrlMapsRequest + * @classdesc Represents a ListRegionZonesRequest. + * @implements IListRegionZonesRequest * @constructor - * @param {google.cloud.compute.v1.IListRegionUrlMapsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListRegionZonesRequest=} [properties] Properties to set */ - function ListRegionUrlMapsRequest(properties) { + function ListRegionZonesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -276514,141 +279023,141 @@ } /** - * ListRegionUrlMapsRequest filter. + * ListRegionZonesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionZonesRequest * @instance */ - ListRegionUrlMapsRequest.prototype.filter = null; + ListRegionZonesRequest.prototype.filter = null; /** - * ListRegionUrlMapsRequest maxResults. + * ListRegionZonesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionZonesRequest * @instance */ - ListRegionUrlMapsRequest.prototype.maxResults = null; + ListRegionZonesRequest.prototype.maxResults = null; /** - * ListRegionUrlMapsRequest orderBy. + * ListRegionZonesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionZonesRequest * @instance */ - ListRegionUrlMapsRequest.prototype.orderBy = null; + ListRegionZonesRequest.prototype.orderBy = null; /** - * ListRegionUrlMapsRequest pageToken. + * ListRegionZonesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionZonesRequest * @instance */ - ListRegionUrlMapsRequest.prototype.pageToken = null; + ListRegionZonesRequest.prototype.pageToken = null; /** - * ListRegionUrlMapsRequest project. + * ListRegionZonesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionZonesRequest * @instance */ - ListRegionUrlMapsRequest.prototype.project = ""; + ListRegionZonesRequest.prototype.project = ""; /** - * ListRegionUrlMapsRequest region. + * ListRegionZonesRequest region. * @member {string} region - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionZonesRequest * @instance */ - ListRegionUrlMapsRequest.prototype.region = ""; + ListRegionZonesRequest.prototype.region = ""; /** - * ListRegionUrlMapsRequest returnPartialSuccess. + * ListRegionZonesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionZonesRequest * @instance */ - ListRegionUrlMapsRequest.prototype.returnPartialSuccess = null; + ListRegionZonesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * ListRegionUrlMapsRequest _filter. + * ListRegionZonesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionZonesRequest * @instance */ - Object.defineProperty(ListRegionUrlMapsRequest.prototype, "_filter", { + Object.defineProperty(ListRegionZonesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionUrlMapsRequest _maxResults. + * ListRegionZonesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionZonesRequest * @instance */ - Object.defineProperty(ListRegionUrlMapsRequest.prototype, "_maxResults", { + Object.defineProperty(ListRegionZonesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionUrlMapsRequest _orderBy. + * ListRegionZonesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionZonesRequest * @instance */ - Object.defineProperty(ListRegionUrlMapsRequest.prototype, "_orderBy", { + Object.defineProperty(ListRegionZonesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionUrlMapsRequest _pageToken. + * ListRegionZonesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionZonesRequest * @instance */ - Object.defineProperty(ListRegionUrlMapsRequest.prototype, "_pageToken", { + Object.defineProperty(ListRegionZonesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListRegionUrlMapsRequest _returnPartialSuccess. + * ListRegionZonesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionZonesRequest * @instance */ - Object.defineProperty(ListRegionUrlMapsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListRegionZonesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListRegionUrlMapsRequest instance using the specified properties. + * Creates a new ListRegionZonesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionZonesRequest * @static - * @param {google.cloud.compute.v1.IListRegionUrlMapsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListRegionUrlMapsRequest} ListRegionUrlMapsRequest instance + * @param {google.cloud.compute.v1.IListRegionZonesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListRegionZonesRequest} ListRegionZonesRequest instance */ - ListRegionUrlMapsRequest.create = function create(properties) { - return new ListRegionUrlMapsRequest(properties); + ListRegionZonesRequest.create = function create(properties) { + return new ListRegionZonesRequest(properties); }; /** - * Encodes the specified ListRegionUrlMapsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionUrlMapsRequest.verify|verify} messages. + * Encodes the specified ListRegionZonesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListRegionZonesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionZonesRequest * @static - * @param {google.cloud.compute.v1.IListRegionUrlMapsRequest} message ListRegionUrlMapsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionZonesRequest} message ListRegionZonesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionUrlMapsRequest.encode = function encode(message, writer) { + ListRegionZonesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -276669,33 +279178,33 @@ }; /** - * Encodes the specified ListRegionUrlMapsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionUrlMapsRequest.verify|verify} messages. + * Encodes the specified ListRegionZonesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListRegionZonesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionZonesRequest * @static - * @param {google.cloud.compute.v1.IListRegionUrlMapsRequest} message ListRegionUrlMapsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListRegionZonesRequest} message ListRegionZonesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListRegionUrlMapsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListRegionZonesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListRegionUrlMapsRequest message from the specified reader or buffer. + * Decodes a ListRegionZonesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionZonesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.ListRegionUrlMapsRequest} ListRegionUrlMapsRequest + * @returns {google.cloud.compute.v1.ListRegionZonesRequest} ListRegionZonesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionUrlMapsRequest.decode = function decode(reader, length) { + ListRegionZonesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionUrlMapsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListRegionZonesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -276736,30 +279245,30 @@ }; /** - * Decodes a ListRegionUrlMapsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListRegionZonesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionZonesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.ListRegionUrlMapsRequest} ListRegionUrlMapsRequest + * @returns {google.cloud.compute.v1.ListRegionZonesRequest} ListRegionZonesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListRegionUrlMapsRequest.decodeDelimited = function decodeDelimited(reader) { + ListRegionZonesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListRegionUrlMapsRequest message. + * Verifies a ListRegionZonesRequest message. * @function verify - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionZonesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListRegionUrlMapsRequest.verify = function verify(message) { + ListRegionZonesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -276798,17 +279307,17 @@ }; /** - * Creates a ListRegionUrlMapsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListRegionZonesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionZonesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.ListRegionUrlMapsRequest} ListRegionUrlMapsRequest + * @returns {google.cloud.compute.v1.ListRegionZonesRequest} ListRegionZonesRequest */ - ListRegionUrlMapsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.ListRegionUrlMapsRequest) + ListRegionZonesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListRegionZonesRequest) return object; - var message = new $root.google.cloud.compute.v1.ListRegionUrlMapsRequest(); + var message = new $root.google.cloud.compute.v1.ListRegionZonesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.maxResults != null) @@ -276827,15 +279336,15 @@ }; /** - * Creates a plain object from a ListRegionUrlMapsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListRegionZonesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionZonesRequest * @static - * @param {google.cloud.compute.v1.ListRegionUrlMapsRequest} message ListRegionUrlMapsRequest + * @param {google.cloud.compute.v1.ListRegionZonesRequest} message ListRegionZonesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListRegionUrlMapsRequest.toObject = function toObject(message, options) { + ListRegionZonesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -276876,32 +279385,32 @@ }; /** - * Converts this ListRegionUrlMapsRequest to JSON. + * Converts this ListRegionZonesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionZonesRequest * @instance * @returns {Object.} JSON object */ - ListRegionUrlMapsRequest.prototype.toJSON = function toJSON() { + ListRegionZonesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListRegionUrlMapsRequest + * Gets the default type url for ListRegionZonesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.ListRegionUrlMapsRequest + * @memberof google.cloud.compute.v1.ListRegionZonesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListRegionUrlMapsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListRegionZonesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionUrlMapsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.ListRegionZonesRequest"; }; - return ListRegionUrlMapsRequest; + return ListRegionZonesRequest; })(); v1.ListRegionsRequest = (function() { @@ -291114,6 +293623,7 @@ * @property {string|null} [kind] MachineImage kind * @property {google.cloud.compute.v1.ICustomerEncryptionKey|null} [machineImageEncryptionKey] MachineImage machineImageEncryptionKey * @property {string|null} [name] MachineImage name + * @property {boolean|null} [satisfiesPzi] MachineImage satisfiesPzi * @property {boolean|null} [satisfiesPzs] MachineImage satisfiesPzs * @property {Array.|null} [savedDisks] MachineImage savedDisks * @property {string|null} [selfLink] MachineImage selfLink @@ -291207,6 +293717,14 @@ */ MachineImage.prototype.name = null; + /** + * MachineImage satisfiesPzi. + * @member {boolean|null|undefined} satisfiesPzi + * @memberof google.cloud.compute.v1.MachineImage + * @instance + */ + MachineImage.prototype.satisfiesPzi = null; + /** * MachineImage satisfiesPzs. * @member {boolean|null|undefined} satisfiesPzs @@ -291370,6 +293888,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * MachineImage _satisfiesPzi. + * @member {"satisfiesPzi"|undefined} _satisfiesPzi + * @memberof google.cloud.compute.v1.MachineImage + * @instance + */ + Object.defineProperty(MachineImage.prototype, "_satisfiesPzi", { + get: $util.oneOfGetter($oneOfFields = ["satisfiesPzi"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * MachineImage _satisfiesPzs. * @member {"satisfiesPzs"|undefined} _satisfiesPzs @@ -291493,6 +294022,8 @@ writer.uint32(/* id 456214797, wireType 2 =*/3649718378).string(message.selfLink); if (message.sourceInstanceProperties != null && Object.hasOwnProperty.call(message, "sourceInstanceProperties")) $root.google.cloud.compute.v1.SourceInstanceProperties.encode(message.sourceInstanceProperties, writer.uint32(/* id 475195641, wireType 2 =*/3801565130).fork()).ldelim(); + if (message.satisfiesPzi != null && Object.hasOwnProperty.call(message, "satisfiesPzi")) + writer.uint32(/* id 480964257, wireType 0 =*/3847714056).bool(message.satisfiesPzi); if (message.satisfiesPzs != null && Object.hasOwnProperty.call(message, "satisfiesPzs")) writer.uint32(/* id 480964267, wireType 0 =*/3847714136).bool(message.satisfiesPzs); if (message.machineImageEncryptionKey != null && Object.hasOwnProperty.call(message, "machineImageEncryptionKey")) @@ -291563,6 +294094,10 @@ message.name = reader.string(); break; } + case 480964257: { + message.satisfiesPzi = reader.bool(); + break; + } case 480964267: { message.satisfiesPzs = reader.bool(); break; @@ -291687,6 +294222,11 @@ if (!$util.isString(message.name)) return "name: string expected"; } + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) { + properties._satisfiesPzi = 1; + if (typeof message.satisfiesPzi !== "boolean") + return "satisfiesPzi: boolean expected"; + } if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) { properties._satisfiesPzs = 1; if (typeof message.satisfiesPzs !== "boolean") @@ -291789,6 +294329,8 @@ } if (object.name != null) message.name = String(object.name); + if (object.satisfiesPzi != null) + message.satisfiesPzi = Boolean(object.satisfiesPzi); if (object.satisfiesPzs != null) message.satisfiesPzs = Boolean(object.satisfiesPzs); if (object.savedDisks) { @@ -291940,6 +294482,11 @@ if (options.oneofs) object._sourceInstanceProperties = "sourceInstanceProperties"; } + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) { + object.satisfiesPzi = message.satisfiesPzi; + if (options.oneofs) + object._satisfiesPzi = "satisfiesPzi"; + } if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) { object.satisfiesPzs = message.satisfiesPzs; if (options.oneofs) @@ -347105,6 +349652,298 @@ return PerInstanceConfig; })(); + v1.PerformMaintenanceInstanceRequest = (function() { + + /** + * Properties of a PerformMaintenanceInstanceRequest. + * @memberof google.cloud.compute.v1 + * @interface IPerformMaintenanceInstanceRequest + * @property {string|null} [instance] PerformMaintenanceInstanceRequest instance + * @property {string|null} [project] PerformMaintenanceInstanceRequest project + * @property {string|null} [requestId] PerformMaintenanceInstanceRequest requestId + * @property {string|null} [zone] PerformMaintenanceInstanceRequest zone + */ + + /** + * Constructs a new PerformMaintenanceInstanceRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a PerformMaintenanceInstanceRequest. + * @implements IPerformMaintenanceInstanceRequest + * @constructor + * @param {google.cloud.compute.v1.IPerformMaintenanceInstanceRequest=} [properties] Properties to set + */ + function PerformMaintenanceInstanceRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * PerformMaintenanceInstanceRequest instance. + * @member {string} instance + * @memberof google.cloud.compute.v1.PerformMaintenanceInstanceRequest + * @instance + */ + PerformMaintenanceInstanceRequest.prototype.instance = ""; + + /** + * PerformMaintenanceInstanceRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.PerformMaintenanceInstanceRequest + * @instance + */ + PerformMaintenanceInstanceRequest.prototype.project = ""; + + /** + * PerformMaintenanceInstanceRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1.PerformMaintenanceInstanceRequest + * @instance + */ + PerformMaintenanceInstanceRequest.prototype.requestId = null; + + /** + * PerformMaintenanceInstanceRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1.PerformMaintenanceInstanceRequest + * @instance + */ + PerformMaintenanceInstanceRequest.prototype.zone = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * PerformMaintenanceInstanceRequest _requestId. + * @member {"requestId"|undefined} _requestId + * @memberof google.cloud.compute.v1.PerformMaintenanceInstanceRequest + * @instance + */ + Object.defineProperty(PerformMaintenanceInstanceRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new PerformMaintenanceInstanceRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.PerformMaintenanceInstanceRequest + * @static + * @param {google.cloud.compute.v1.IPerformMaintenanceInstanceRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.PerformMaintenanceInstanceRequest} PerformMaintenanceInstanceRequest instance + */ + PerformMaintenanceInstanceRequest.create = function create(properties) { + return new PerformMaintenanceInstanceRequest(properties); + }; + + /** + * Encodes the specified PerformMaintenanceInstanceRequest message. Does not implicitly {@link google.cloud.compute.v1.PerformMaintenanceInstanceRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.PerformMaintenanceInstanceRequest + * @static + * @param {google.cloud.compute.v1.IPerformMaintenanceInstanceRequest} message PerformMaintenanceInstanceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PerformMaintenanceInstanceRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + writer.uint32(/* id 3744684, wireType 2 =*/29957474).string(message.zone); + if (message.instance != null && Object.hasOwnProperty.call(message, "instance")) + writer.uint32(/* id 18257045, wireType 2 =*/146056362).string(message.instance); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + return writer; + }; + + /** + * Encodes the specified PerformMaintenanceInstanceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.PerformMaintenanceInstanceRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.PerformMaintenanceInstanceRequest + * @static + * @param {google.cloud.compute.v1.IPerformMaintenanceInstanceRequest} message PerformMaintenanceInstanceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PerformMaintenanceInstanceRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PerformMaintenanceInstanceRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.PerformMaintenanceInstanceRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.PerformMaintenanceInstanceRequest} PerformMaintenanceInstanceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PerformMaintenanceInstanceRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.PerformMaintenanceInstanceRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 18257045: { + message.instance = reader.string(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 37109963: { + message.requestId = reader.string(); + break; + } + case 3744684: { + message.zone = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PerformMaintenanceInstanceRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.PerformMaintenanceInstanceRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.PerformMaintenanceInstanceRequest} PerformMaintenanceInstanceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PerformMaintenanceInstanceRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PerformMaintenanceInstanceRequest message. + * @function verify + * @memberof google.cloud.compute.v1.PerformMaintenanceInstanceRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PerformMaintenanceInstanceRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.instance != null && message.hasOwnProperty("instance")) + if (!$util.isString(message.instance)) + return "instance: string expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) { + properties._requestId = 1; + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + } + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; + return null; + }; + + /** + * Creates a PerformMaintenanceInstanceRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.PerformMaintenanceInstanceRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.PerformMaintenanceInstanceRequest} PerformMaintenanceInstanceRequest + */ + PerformMaintenanceInstanceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.PerformMaintenanceInstanceRequest) + return object; + var message = new $root.google.cloud.compute.v1.PerformMaintenanceInstanceRequest(); + if (object.instance != null) + message.instance = String(object.instance); + if (object.project != null) + message.project = String(object.project); + if (object.requestId != null) + message.requestId = String(object.requestId); + if (object.zone != null) + message.zone = String(object.zone); + return message; + }; + + /** + * Creates a plain object from a PerformMaintenanceInstanceRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.PerformMaintenanceInstanceRequest + * @static + * @param {google.cloud.compute.v1.PerformMaintenanceInstanceRequest} message PerformMaintenanceInstanceRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PerformMaintenanceInstanceRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.zone = ""; + object.instance = ""; + object.project = ""; + } + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; + if (message.instance != null && message.hasOwnProperty("instance")) + object.instance = message.instance; + if (message.requestId != null && message.hasOwnProperty("requestId")) { + object.requestId = message.requestId; + if (options.oneofs) + object._requestId = "requestId"; + } + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + return object; + }; + + /** + * Converts this PerformMaintenanceInstanceRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.PerformMaintenanceInstanceRequest + * @instance + * @returns {Object.} JSON object + */ + PerformMaintenanceInstanceRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PerformMaintenanceInstanceRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.PerformMaintenanceInstanceRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PerformMaintenanceInstanceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.PerformMaintenanceInstanceRequest"; + }; + + return PerformMaintenanceInstanceRequest; + })(); + v1.Policy = (function() { /** @@ -355732,6 +358571,7 @@ * @property {number} COMMITTED_N2_CPUS=322589603 COMMITTED_N2_CPUS value * @property {number} COMMITTED_NVIDIA_A100_80GB_GPUS=464326565 COMMITTED_NVIDIA_A100_80GB_GPUS value * @property {number} COMMITTED_NVIDIA_A100_GPUS=375799445 COMMITTED_NVIDIA_A100_GPUS value + * @property {number} COMMITTED_NVIDIA_H100_GPUS=71649180 COMMITTED_NVIDIA_H100_GPUS value * @property {number} COMMITTED_NVIDIA_K80_GPUS=3857188 COMMITTED_NVIDIA_K80_GPUS value * @property {number} COMMITTED_NVIDIA_L4_GPUS=19163645 COMMITTED_NVIDIA_L4_GPUS value * @property {number} COMMITTED_NVIDIA_P100_GPUS=107528100 COMMITTED_NVIDIA_P100_GPUS value @@ -355740,6 +358580,7 @@ * @property {number} COMMITTED_NVIDIA_V100_GPUS=219562 COMMITTED_NVIDIA_V100_GPUS value * @property {number} COMMITTED_T2A_CPUS=296378986 COMMITTED_T2A_CPUS value * @property {number} COMMITTED_T2D_CPUS=382266439 COMMITTED_T2D_CPUS value + * @property {number} COMMITTED_Z3_CPUS=263844686 COMMITTED_Z3_CPUS value * @property {number} CPUS=2075595 CPUS value * @property {number} CPUS_ALL_REGIONS=470911149 CPUS_ALL_REGIONS value * @property {number} DISKS_TOTAL_GB=353520543 DISKS_TOTAL_GB value @@ -355807,6 +358648,7 @@ * @property {number} PREEMPTIBLE_LOCAL_SSD_GB=260819336 PREEMPTIBLE_LOCAL_SSD_GB value * @property {number} PREEMPTIBLE_NVIDIA_A100_80GB_GPUS=151942410 PREEMPTIBLE_NVIDIA_A100_80GB_GPUS value * @property {number} PREEMPTIBLE_NVIDIA_A100_GPUS=68832784 PREEMPTIBLE_NVIDIA_A100_GPUS value + * @property {number} PREEMPTIBLE_NVIDIA_H100_GPUS=301553431 PREEMPTIBLE_NVIDIA_H100_GPUS value * @property {number} PREEMPTIBLE_NVIDIA_K80_GPUS=374960201 PREEMPTIBLE_NVIDIA_K80_GPUS value * @property {number} PREEMPTIBLE_NVIDIA_L4_GPUS=100408376 PREEMPTIBLE_NVIDIA_L4_GPUS value * @property {number} PREEMPTIBLE_NVIDIA_P100_GPUS=337432351 PREEMPTIBLE_NVIDIA_P100_GPUS value @@ -355816,6 +358658,9 @@ * @property {number} PREEMPTIBLE_NVIDIA_T4_GPUS=221115968 PREEMPTIBLE_NVIDIA_T4_GPUS value * @property {number} PREEMPTIBLE_NVIDIA_T4_VWS_GPUS=44497965 PREEMPTIBLE_NVIDIA_T4_VWS_GPUS value * @property {number} PREEMPTIBLE_NVIDIA_V100_GPUS=230123813 PREEMPTIBLE_NVIDIA_V100_GPUS value + * @property {number} PREEMPTIBLE_TPU_LITE_DEVICE_V5=174262523 PREEMPTIBLE_TPU_LITE_DEVICE_V5 value + * @property {number} PREEMPTIBLE_TPU_LITE_PODSLICE_V5=112281796 PREEMPTIBLE_TPU_LITE_PODSLICE_V5 value + * @property {number} PREEMPTIBLE_TPU_PODSLICE_V4=425541132 PREEMPTIBLE_TPU_PODSLICE_V4 value * @property {number} PSC_ILB_CONSUMER_FORWARDING_RULES_PER_PRODUCER_NETWORK=231164291 PSC_ILB_CONSUMER_FORWARDING_RULES_PER_PRODUCER_NETWORK value * @property {number} PSC_INTERNAL_LB_FORWARDING_RULES=169005435 PSC_INTERNAL_LB_FORWARDING_RULES value * @property {number} PUBLIC_ADVERTISED_PREFIXES=471371980 PUBLIC_ADVERTISED_PREFIXES value @@ -355853,6 +358698,9 @@ * @property {number} TARGET_SSL_PROXIES=159216235 TARGET_SSL_PROXIES value * @property {number} TARGET_TCP_PROXIES=182243136 TARGET_TCP_PROXIES value * @property {number} TARGET_VPN_GATEWAYS=75029928 TARGET_VPN_GATEWAYS value + * @property {number} TPU_LITE_DEVICE_V5=449577597 TPU_LITE_DEVICE_V5 value + * @property {number} TPU_LITE_PODSLICE_V5=12708294 TPU_LITE_PODSLICE_V5 value + * @property {number} TPU_PODSLICE_V4=214467530 TPU_PODSLICE_V4 value * @property {number} URL_MAPS=378660743 URL_MAPS value * @property {number} VPN_GATEWAYS=35620282 VPN_GATEWAYS value * @property {number} VPN_TUNNELS=104327296 VPN_TUNNELS value @@ -355885,6 +358733,7 @@ values[valuesById[322589603] = "COMMITTED_N2_CPUS"] = 322589603; values[valuesById[464326565] = "COMMITTED_NVIDIA_A100_80GB_GPUS"] = 464326565; values[valuesById[375799445] = "COMMITTED_NVIDIA_A100_GPUS"] = 375799445; + values[valuesById[71649180] = "COMMITTED_NVIDIA_H100_GPUS"] = 71649180; values[valuesById[3857188] = "COMMITTED_NVIDIA_K80_GPUS"] = 3857188; values[valuesById[19163645] = "COMMITTED_NVIDIA_L4_GPUS"] = 19163645; values[valuesById[107528100] = "COMMITTED_NVIDIA_P100_GPUS"] = 107528100; @@ -355893,6 +358742,7 @@ values[valuesById[219562] = "COMMITTED_NVIDIA_V100_GPUS"] = 219562; values[valuesById[296378986] = "COMMITTED_T2A_CPUS"] = 296378986; values[valuesById[382266439] = "COMMITTED_T2D_CPUS"] = 382266439; + values[valuesById[263844686] = "COMMITTED_Z3_CPUS"] = 263844686; values[valuesById[2075595] = "CPUS"] = 2075595; values[valuesById[470911149] = "CPUS_ALL_REGIONS"] = 470911149; values[valuesById[353520543] = "DISKS_TOTAL_GB"] = 353520543; @@ -355960,6 +358810,7 @@ values[valuesById[260819336] = "PREEMPTIBLE_LOCAL_SSD_GB"] = 260819336; values[valuesById[151942410] = "PREEMPTIBLE_NVIDIA_A100_80GB_GPUS"] = 151942410; values[valuesById[68832784] = "PREEMPTIBLE_NVIDIA_A100_GPUS"] = 68832784; + values[valuesById[301553431] = "PREEMPTIBLE_NVIDIA_H100_GPUS"] = 301553431; values[valuesById[374960201] = "PREEMPTIBLE_NVIDIA_K80_GPUS"] = 374960201; values[valuesById[100408376] = "PREEMPTIBLE_NVIDIA_L4_GPUS"] = 100408376; values[valuesById[337432351] = "PREEMPTIBLE_NVIDIA_P100_GPUS"] = 337432351; @@ -355969,6 +358820,9 @@ values[valuesById[221115968] = "PREEMPTIBLE_NVIDIA_T4_GPUS"] = 221115968; values[valuesById[44497965] = "PREEMPTIBLE_NVIDIA_T4_VWS_GPUS"] = 44497965; values[valuesById[230123813] = "PREEMPTIBLE_NVIDIA_V100_GPUS"] = 230123813; + values[valuesById[174262523] = "PREEMPTIBLE_TPU_LITE_DEVICE_V5"] = 174262523; + values[valuesById[112281796] = "PREEMPTIBLE_TPU_LITE_PODSLICE_V5"] = 112281796; + values[valuesById[425541132] = "PREEMPTIBLE_TPU_PODSLICE_V4"] = 425541132; values[valuesById[231164291] = "PSC_ILB_CONSUMER_FORWARDING_RULES_PER_PRODUCER_NETWORK"] = 231164291; values[valuesById[169005435] = "PSC_INTERNAL_LB_FORWARDING_RULES"] = 169005435; values[valuesById[471371980] = "PUBLIC_ADVERTISED_PREFIXES"] = 471371980; @@ -356006,6 +358860,9 @@ values[valuesById[159216235] = "TARGET_SSL_PROXIES"] = 159216235; values[valuesById[182243136] = "TARGET_TCP_PROXIES"] = 182243136; values[valuesById[75029928] = "TARGET_VPN_GATEWAYS"] = 75029928; + values[valuesById[449577597] = "TPU_LITE_DEVICE_V5"] = 449577597; + values[valuesById[12708294] = "TPU_LITE_PODSLICE_V5"] = 12708294; + values[valuesById[214467530] = "TPU_PODSLICE_V4"] = 214467530; values[valuesById[378660743] = "URL_MAPS"] = 378660743; values[valuesById[35620282] = "VPN_GATEWAYS"] = 35620282; values[valuesById[104327296] = "VPN_TUNNELS"] = 104327296; @@ -372861,6 +375718,7 @@ * Properties of a Reservation. * @memberof google.cloud.compute.v1 * @interface IReservation + * @property {google.cloud.compute.v1.IAllocationAggregateReservation|null} [aggregateReservation] Reservation aggregateReservation * @property {string|null} [commitment] Reservation commitment * @property {string|null} [creationTimestamp] Reservation creationTimestamp * @property {string|null} [description] Reservation description @@ -372894,6 +375752,14 @@ this[keys[i]] = properties[keys[i]]; } + /** + * Reservation aggregateReservation. + * @member {google.cloud.compute.v1.IAllocationAggregateReservation|null|undefined} aggregateReservation + * @memberof google.cloud.compute.v1.Reservation + * @instance + */ + Reservation.prototype.aggregateReservation = null; + /** * Reservation commitment. * @member {string|null|undefined} commitment @@ -373017,6 +375883,17 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; + /** + * Reservation _aggregateReservation. + * @member {"aggregateReservation"|undefined} _aggregateReservation + * @memberof google.cloud.compute.v1.Reservation + * @instance + */ + Object.defineProperty(Reservation.prototype, "_aggregateReservation", { + get: $util.oneOfGetter($oneOfFields = ["aggregateReservation"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Reservation _commitment. * @member {"commitment"|undefined} _commitment @@ -373216,6 +376093,8 @@ $root.google.cloud.compute.v1.AllocationResourceStatus.encode(message.resourceStatus, writer.uint32(/* id 249429315, wireType 2 =*/1995434522).fork()).ldelim(); if (message.shareSettings != null && Object.hasOwnProperty.call(message, "shareSettings")) $root.google.cloud.compute.v1.ShareSettings.encode(message.shareSettings, writer.uint32(/* id 266668163, wireType 2 =*/2133345306).fork()).ldelim(); + if (message.aggregateReservation != null && Object.hasOwnProperty.call(message, "aggregateReservation")) + $root.google.cloud.compute.v1.AllocationAggregateReservation.encode(message.aggregateReservation, writer.uint32(/* id 291567948, wireType 2 =*/2332543586).fork()).ldelim(); if (message.specificReservation != null && Object.hasOwnProperty.call(message, "specificReservation")) $root.google.cloud.compute.v1.AllocationSpecificSKUReservation.encode(message.specificReservation, writer.uint32(/* id 404901951, wireType 2 =*/3239215610).fork()).ldelim(); if (message.description != null && Object.hasOwnProperty.call(message, "description")) @@ -373260,6 +376139,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 291567948: { + message.aggregateReservation = $root.google.cloud.compute.v1.AllocationAggregateReservation.decode(reader, reader.uint32()); + break; + } case 482134805: { message.commitment = reader.string(); break; @@ -373375,6 +376258,14 @@ if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; + if (message.aggregateReservation != null && message.hasOwnProperty("aggregateReservation")) { + properties._aggregateReservation = 1; + { + var error = $root.google.cloud.compute.v1.AllocationAggregateReservation.verify(message.aggregateReservation); + if (error) + return "aggregateReservation." + error; + } + } if (message.commitment != null && message.hasOwnProperty("commitment")) { properties._commitment = 1; if (!$util.isString(message.commitment)) @@ -373477,6 +376368,11 @@ if (object instanceof $root.google.cloud.compute.v1.Reservation) return object; var message = new $root.google.cloud.compute.v1.Reservation(); + if (object.aggregateReservation != null) { + if (typeof object.aggregateReservation !== "object") + throw TypeError(".google.cloud.compute.v1.Reservation.aggregateReservation: object expected"); + message.aggregateReservation = $root.google.cloud.compute.v1.AllocationAggregateReservation.fromObject(object.aggregateReservation); + } if (object.commitment != null) message.commitment = String(object.commitment); if (object.creationTimestamp != null) @@ -373600,6 +376496,11 @@ if (options.oneofs) object._shareSettings = "shareSettings"; } + if (message.aggregateReservation != null && message.hasOwnProperty("aggregateReservation")) { + object.aggregateReservation = $root.google.cloud.compute.v1.AllocationAggregateReservation.toObject(message.aggregateReservation, options); + if (options.oneofs) + object._aggregateReservation = "aggregateReservation"; + } if (message.specificReservation != null && message.hasOwnProperty("specificReservation")) { object.specificReservation = $root.google.cloud.compute.v1.AllocationSpecificSKUReservation.toObject(message.specificReservation, options); if (options.oneofs) @@ -405941,6 +408842,7 @@ * @interface ISecurityPolicyRuleMatcher * @property {google.cloud.compute.v1.ISecurityPolicyRuleMatcherConfig|null} [config] SecurityPolicyRuleMatcher config * @property {google.cloud.compute.v1.IExpr|null} [expr] SecurityPolicyRuleMatcher expr + * @property {google.cloud.compute.v1.ISecurityPolicyRuleMatcherExprOptions|null} [exprOptions] SecurityPolicyRuleMatcher exprOptions * @property {string|null} [versionedExpr] SecurityPolicyRuleMatcher versionedExpr */ @@ -405975,6 +408877,14 @@ */ SecurityPolicyRuleMatcher.prototype.expr = null; + /** + * SecurityPolicyRuleMatcher exprOptions. + * @member {google.cloud.compute.v1.ISecurityPolicyRuleMatcherExprOptions|null|undefined} exprOptions + * @memberof google.cloud.compute.v1.SecurityPolicyRuleMatcher + * @instance + */ + SecurityPolicyRuleMatcher.prototype.exprOptions = null; + /** * SecurityPolicyRuleMatcher versionedExpr. * @member {string|null|undefined} versionedExpr @@ -406008,6 +408918,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * SecurityPolicyRuleMatcher _exprOptions. + * @member {"exprOptions"|undefined} _exprOptions + * @memberof google.cloud.compute.v1.SecurityPolicyRuleMatcher + * @instance + */ + Object.defineProperty(SecurityPolicyRuleMatcher.prototype, "_exprOptions", { + get: $util.oneOfGetter($oneOfFields = ["exprOptions"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * SecurityPolicyRuleMatcher _versionedExpr. * @member {"versionedExpr"|undefined} _versionedExpr @@ -406049,6 +408970,8 @@ $root.google.cloud.compute.v1.SecurityPolicyRuleMatcherConfig.encode(message.config, writer.uint32(/* id 255820610, wireType 2 =*/2046564882).fork()).ldelim(); if (message.versionedExpr != null && Object.hasOwnProperty.call(message, "versionedExpr")) writer.uint32(/* id 322286013, wireType 2 =*/2578288106).string(message.versionedExpr); + if (message.exprOptions != null && Object.hasOwnProperty.call(message, "exprOptions")) + $root.google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptions.encode(message.exprOptions, writer.uint32(/* id 486220372, wireType 2 =*/3889762978).fork()).ldelim(); return writer; }; @@ -406091,6 +409014,10 @@ message.expr = $root.google.cloud.compute.v1.Expr.decode(reader, reader.uint32()); break; } + case 486220372: { + message.exprOptions = $root.google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptions.decode(reader, reader.uint32()); + break; + } case 322286013: { message.versionedExpr = reader.string(); break; @@ -406147,6 +409074,14 @@ return "expr." + error; } } + if (message.exprOptions != null && message.hasOwnProperty("exprOptions")) { + properties._exprOptions = 1; + { + var error = $root.google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptions.verify(message.exprOptions); + if (error) + return "exprOptions." + error; + } + } if (message.versionedExpr != null && message.hasOwnProperty("versionedExpr")) { properties._versionedExpr = 1; if (!$util.isString(message.versionedExpr)) @@ -406177,6 +409112,11 @@ throw TypeError(".google.cloud.compute.v1.SecurityPolicyRuleMatcher.expr: object expected"); message.expr = $root.google.cloud.compute.v1.Expr.fromObject(object.expr); } + if (object.exprOptions != null) { + if (typeof object.exprOptions !== "object") + throw TypeError(".google.cloud.compute.v1.SecurityPolicyRuleMatcher.exprOptions: object expected"); + message.exprOptions = $root.google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptions.fromObject(object.exprOptions); + } if (object.versionedExpr != null) message.versionedExpr = String(object.versionedExpr); return message; @@ -406210,6 +409150,11 @@ if (options.oneofs) object._versionedExpr = "versionedExpr"; } + if (message.exprOptions != null && message.hasOwnProperty("exprOptions")) { + object.exprOptions = $root.google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptions.toObject(message.exprOptions, options); + if (options.oneofs) + object._exprOptions = "exprOptions"; + } return object; }; @@ -406475,6 +409420,492 @@ return SecurityPolicyRuleMatcherConfig; })(); + v1.SecurityPolicyRuleMatcherExprOptions = (function() { + + /** + * Properties of a SecurityPolicyRuleMatcherExprOptions. + * @memberof google.cloud.compute.v1 + * @interface ISecurityPolicyRuleMatcherExprOptions + * @property {google.cloud.compute.v1.ISecurityPolicyRuleMatcherExprOptionsRecaptchaOptions|null} [recaptchaOptions] SecurityPolicyRuleMatcherExprOptions recaptchaOptions + */ + + /** + * Constructs a new SecurityPolicyRuleMatcherExprOptions. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a SecurityPolicyRuleMatcherExprOptions. + * @implements ISecurityPolicyRuleMatcherExprOptions + * @constructor + * @param {google.cloud.compute.v1.ISecurityPolicyRuleMatcherExprOptions=} [properties] Properties to set + */ + function SecurityPolicyRuleMatcherExprOptions(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SecurityPolicyRuleMatcherExprOptions recaptchaOptions. + * @member {google.cloud.compute.v1.ISecurityPolicyRuleMatcherExprOptionsRecaptchaOptions|null|undefined} recaptchaOptions + * @memberof google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptions + * @instance + */ + SecurityPolicyRuleMatcherExprOptions.prototype.recaptchaOptions = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * SecurityPolicyRuleMatcherExprOptions _recaptchaOptions. + * @member {"recaptchaOptions"|undefined} _recaptchaOptions + * @memberof google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptions + * @instance + */ + Object.defineProperty(SecurityPolicyRuleMatcherExprOptions.prototype, "_recaptchaOptions", { + get: $util.oneOfGetter($oneOfFields = ["recaptchaOptions"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new SecurityPolicyRuleMatcherExprOptions instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptions + * @static + * @param {google.cloud.compute.v1.ISecurityPolicyRuleMatcherExprOptions=} [properties] Properties to set + * @returns {google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptions} SecurityPolicyRuleMatcherExprOptions instance + */ + SecurityPolicyRuleMatcherExprOptions.create = function create(properties) { + return new SecurityPolicyRuleMatcherExprOptions(properties); + }; + + /** + * Encodes the specified SecurityPolicyRuleMatcherExprOptions message. Does not implicitly {@link google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptions.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptions + * @static + * @param {google.cloud.compute.v1.ISecurityPolicyRuleMatcherExprOptions} message SecurityPolicyRuleMatcherExprOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SecurityPolicyRuleMatcherExprOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.recaptchaOptions != null && Object.hasOwnProperty.call(message, "recaptchaOptions")) + $root.google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions.encode(message.recaptchaOptions, writer.uint32(/* id 389151558, wireType 2 =*/3113212466).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified SecurityPolicyRuleMatcherExprOptions message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptions + * @static + * @param {google.cloud.compute.v1.ISecurityPolicyRuleMatcherExprOptions} message SecurityPolicyRuleMatcherExprOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SecurityPolicyRuleMatcherExprOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SecurityPolicyRuleMatcherExprOptions message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptions} SecurityPolicyRuleMatcherExprOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SecurityPolicyRuleMatcherExprOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 389151558: { + message.recaptchaOptions = $root.google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SecurityPolicyRuleMatcherExprOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptions} SecurityPolicyRuleMatcherExprOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SecurityPolicyRuleMatcherExprOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SecurityPolicyRuleMatcherExprOptions message. + * @function verify + * @memberof google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SecurityPolicyRuleMatcherExprOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.recaptchaOptions != null && message.hasOwnProperty("recaptchaOptions")) { + properties._recaptchaOptions = 1; + { + var error = $root.google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions.verify(message.recaptchaOptions); + if (error) + return "recaptchaOptions." + error; + } + } + return null; + }; + + /** + * Creates a SecurityPolicyRuleMatcherExprOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptions + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptions} SecurityPolicyRuleMatcherExprOptions + */ + SecurityPolicyRuleMatcherExprOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptions) + return object; + var message = new $root.google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptions(); + if (object.recaptchaOptions != null) { + if (typeof object.recaptchaOptions !== "object") + throw TypeError(".google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptions.recaptchaOptions: object expected"); + message.recaptchaOptions = $root.google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions.fromObject(object.recaptchaOptions); + } + return message; + }; + + /** + * Creates a plain object from a SecurityPolicyRuleMatcherExprOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptions + * @static + * @param {google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptions} message SecurityPolicyRuleMatcherExprOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SecurityPolicyRuleMatcherExprOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.recaptchaOptions != null && message.hasOwnProperty("recaptchaOptions")) { + object.recaptchaOptions = $root.google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions.toObject(message.recaptchaOptions, options); + if (options.oneofs) + object._recaptchaOptions = "recaptchaOptions"; + } + return object; + }; + + /** + * Converts this SecurityPolicyRuleMatcherExprOptions to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptions + * @instance + * @returns {Object.} JSON object + */ + SecurityPolicyRuleMatcherExprOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SecurityPolicyRuleMatcherExprOptions + * @function getTypeUrl + * @memberof google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SecurityPolicyRuleMatcherExprOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptions"; + }; + + return SecurityPolicyRuleMatcherExprOptions; + })(); + + v1.SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions = (function() { + + /** + * Properties of a SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions. + * @memberof google.cloud.compute.v1 + * @interface ISecurityPolicyRuleMatcherExprOptionsRecaptchaOptions + * @property {Array.|null} [actionTokenSiteKeys] SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions actionTokenSiteKeys + * @property {Array.|null} [sessionTokenSiteKeys] SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions sessionTokenSiteKeys + */ + + /** + * Constructs a new SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions. + * @implements ISecurityPolicyRuleMatcherExprOptionsRecaptchaOptions + * @constructor + * @param {google.cloud.compute.v1.ISecurityPolicyRuleMatcherExprOptionsRecaptchaOptions=} [properties] Properties to set + */ + function SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions(properties) { + this.actionTokenSiteKeys = []; + this.sessionTokenSiteKeys = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions actionTokenSiteKeys. + * @member {Array.} actionTokenSiteKeys + * @memberof google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions + * @instance + */ + SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions.prototype.actionTokenSiteKeys = $util.emptyArray; + + /** + * SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions sessionTokenSiteKeys. + * @member {Array.} sessionTokenSiteKeys + * @memberof google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions + * @instance + */ + SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions.prototype.sessionTokenSiteKeys = $util.emptyArray; + + /** + * Creates a new SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions + * @static + * @param {google.cloud.compute.v1.ISecurityPolicyRuleMatcherExprOptionsRecaptchaOptions=} [properties] Properties to set + * @returns {google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions} SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions instance + */ + SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions.create = function create(properties) { + return new SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions(properties); + }; + + /** + * Encodes the specified SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions message. Does not implicitly {@link google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions + * @static + * @param {google.cloud.compute.v1.ISecurityPolicyRuleMatcherExprOptionsRecaptchaOptions} message SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.actionTokenSiteKeys != null && message.actionTokenSiteKeys.length) + for (var i = 0; i < message.actionTokenSiteKeys.length; ++i) + writer.uint32(/* id 59929885, wireType 2 =*/479439082).string(message.actionTokenSiteKeys[i]); + if (message.sessionTokenSiteKeys != null && message.sessionTokenSiteKeys.length) + for (var i = 0; i < message.sessionTokenSiteKeys.length; ++i) + writer.uint32(/* id 333363581, wireType 2 =*/2666908650).string(message.sessionTokenSiteKeys[i]); + return writer; + }; + + /** + * Encodes the specified SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions + * @static + * @param {google.cloud.compute.v1.ISecurityPolicyRuleMatcherExprOptionsRecaptchaOptions} message SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions} SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 59929885: { + if (!(message.actionTokenSiteKeys && message.actionTokenSiteKeys.length)) + message.actionTokenSiteKeys = []; + message.actionTokenSiteKeys.push(reader.string()); + break; + } + case 333363581: { + if (!(message.sessionTokenSiteKeys && message.sessionTokenSiteKeys.length)) + message.sessionTokenSiteKeys = []; + message.sessionTokenSiteKeys.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions} SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions message. + * @function verify + * @memberof google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.actionTokenSiteKeys != null && message.hasOwnProperty("actionTokenSiteKeys")) { + if (!Array.isArray(message.actionTokenSiteKeys)) + return "actionTokenSiteKeys: array expected"; + for (var i = 0; i < message.actionTokenSiteKeys.length; ++i) + if (!$util.isString(message.actionTokenSiteKeys[i])) + return "actionTokenSiteKeys: string[] expected"; + } + if (message.sessionTokenSiteKeys != null && message.hasOwnProperty("sessionTokenSiteKeys")) { + if (!Array.isArray(message.sessionTokenSiteKeys)) + return "sessionTokenSiteKeys: array expected"; + for (var i = 0; i < message.sessionTokenSiteKeys.length; ++i) + if (!$util.isString(message.sessionTokenSiteKeys[i])) + return "sessionTokenSiteKeys: string[] expected"; + } + return null; + }; + + /** + * Creates a SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions} SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions + */ + SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions) + return object; + var message = new $root.google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions(); + if (object.actionTokenSiteKeys) { + if (!Array.isArray(object.actionTokenSiteKeys)) + throw TypeError(".google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions.actionTokenSiteKeys: array expected"); + message.actionTokenSiteKeys = []; + for (var i = 0; i < object.actionTokenSiteKeys.length; ++i) + message.actionTokenSiteKeys[i] = String(object.actionTokenSiteKeys[i]); + } + if (object.sessionTokenSiteKeys) { + if (!Array.isArray(object.sessionTokenSiteKeys)) + throw TypeError(".google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions.sessionTokenSiteKeys: array expected"); + message.sessionTokenSiteKeys = []; + for (var i = 0; i < object.sessionTokenSiteKeys.length; ++i) + message.sessionTokenSiteKeys[i] = String(object.sessionTokenSiteKeys[i]); + } + return message; + }; + + /** + * Creates a plain object from a SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions + * @static + * @param {google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions} message SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.actionTokenSiteKeys = []; + object.sessionTokenSiteKeys = []; + } + if (message.actionTokenSiteKeys && message.actionTokenSiteKeys.length) { + object.actionTokenSiteKeys = []; + for (var j = 0; j < message.actionTokenSiteKeys.length; ++j) + object.actionTokenSiteKeys[j] = message.actionTokenSiteKeys[j]; + } + if (message.sessionTokenSiteKeys && message.sessionTokenSiteKeys.length) { + object.sessionTokenSiteKeys = []; + for (var j = 0; j < message.sessionTokenSiteKeys.length; ++j) + object.sessionTokenSiteKeys[j] = message.sessionTokenSiteKeys[j]; + } + return object; + }; + + /** + * Converts this SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions + * @instance + * @returns {Object.} JSON object + */ + SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions + * @function getTypeUrl + * @memberof google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions"; + }; + + return SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions; + })(); + v1.SecurityPolicyRuleNetworkMatcher = (function() { /** @@ -408744,6 +412175,8 @@ * @property {number} IP=2343 IP value * @property {number} REGION_CODE=79559768 REGION_CODE value * @property {number} SNI=82254 SNI value + * @property {number} TLS_JA3_FINGERPRINT=327127933 TLS_JA3_FINGERPRINT value + * @property {number} USER_IP=34009627 USER_IP value * @property {number} XFF_IP=438707118 XFF_IP value */ SecurityPolicyRuleRateLimitOptions.EnforceOnKey = (function() { @@ -408756,6 +412189,8 @@ values[valuesById[2343] = "IP"] = 2343; values[valuesById[79559768] = "REGION_CODE"] = 79559768; values[valuesById[82254] = "SNI"] = 82254; + values[valuesById[327127933] = "TLS_JA3_FINGERPRINT"] = 327127933; + values[valuesById[34009627] = "USER_IP"] = 34009627; values[valuesById[438707118] = "XFF_IP"] = 438707118; return values; })(); @@ -409031,6 +412466,8 @@ * @property {number} IP=2343 IP value * @property {number} REGION_CODE=79559768 REGION_CODE value * @property {number} SNI=82254 SNI value + * @property {number} TLS_JA3_FINGERPRINT=327127933 TLS_JA3_FINGERPRINT value + * @property {number} USER_IP=34009627 USER_IP value * @property {number} XFF_IP=438707118 XFF_IP value */ SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig.EnforceOnKeyType = (function() { @@ -409043,6 +412480,8 @@ values[valuesById[2343] = "IP"] = 2343; values[valuesById[79559768] = "REGION_CODE"] = 79559768; values[valuesById[82254] = "SNI"] = 82254; + values[valuesById[327127933] = "TLS_JA3_FINGERPRINT"] = 327127933; + values[valuesById[34009627] = "USER_IP"] = 34009627; values[valuesById[438707118] = "XFF_IP"] = 438707118; return values; })(); @@ -442031,6 +445470,7 @@ * @property {string|null} [instance] SimulateMaintenanceEventInstanceRequest instance * @property {string|null} [project] SimulateMaintenanceEventInstanceRequest project * @property {string|null} [requestId] SimulateMaintenanceEventInstanceRequest requestId + * @property {boolean|null} [withExtendedNotifications] SimulateMaintenanceEventInstanceRequest withExtendedNotifications * @property {string|null} [zone] SimulateMaintenanceEventInstanceRequest zone */ @@ -442073,6 +445513,14 @@ */ SimulateMaintenanceEventInstanceRequest.prototype.requestId = null; + /** + * SimulateMaintenanceEventInstanceRequest withExtendedNotifications. + * @member {boolean|null|undefined} withExtendedNotifications + * @memberof google.cloud.compute.v1.SimulateMaintenanceEventInstanceRequest + * @instance + */ + SimulateMaintenanceEventInstanceRequest.prototype.withExtendedNotifications = null; + /** * SimulateMaintenanceEventInstanceRequest zone. * @member {string} zone @@ -442095,6 +445543,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * SimulateMaintenanceEventInstanceRequest _withExtendedNotifications. + * @member {"withExtendedNotifications"|undefined} _withExtendedNotifications + * @memberof google.cloud.compute.v1.SimulateMaintenanceEventInstanceRequest + * @instance + */ + Object.defineProperty(SimulateMaintenanceEventInstanceRequest.prototype, "_withExtendedNotifications", { + get: $util.oneOfGetter($oneOfFields = ["withExtendedNotifications"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new SimulateMaintenanceEventInstanceRequest instance using the specified properties. * @function create @@ -442127,6 +445586,8 @@ writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); if (message.project != null && Object.hasOwnProperty.call(message, "project")) writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.withExtendedNotifications != null && Object.hasOwnProperty.call(message, "withExtendedNotifications")) + writer.uint32(/* id 405957627, wireType 0 =*/3247661016).bool(message.withExtendedNotifications); return writer; }; @@ -442173,6 +445634,10 @@ message.requestId = reader.string(); break; } + case 405957627: { + message.withExtendedNotifications = reader.bool(); + break; + } case 3744684: { message.zone = reader.string(); break; @@ -442224,6 +445689,11 @@ if (!$util.isString(message.requestId)) return "requestId: string expected"; } + if (message.withExtendedNotifications != null && message.hasOwnProperty("withExtendedNotifications")) { + properties._withExtendedNotifications = 1; + if (typeof message.withExtendedNotifications !== "boolean") + return "withExtendedNotifications: boolean expected"; + } if (message.zone != null && message.hasOwnProperty("zone")) if (!$util.isString(message.zone)) return "zone: string expected"; @@ -442248,6 +445718,8 @@ message.project = String(object.project); if (object.requestId != null) message.requestId = String(object.requestId); + if (object.withExtendedNotifications != null) + message.withExtendedNotifications = Boolean(object.withExtendedNotifications); if (object.zone != null) message.zone = String(object.zone); return message; @@ -442282,6 +445754,11 @@ } if (message.project != null && message.hasOwnProperty("project")) object.project = message.project; + if (message.withExtendedNotifications != null && message.hasOwnProperty("withExtendedNotifications")) { + object.withExtendedNotifications = message.withExtendedNotifications; + if (options.oneofs) + object._withExtendedNotifications = "withExtendedNotifications"; + } return object; }; @@ -442648,6 +446125,7 @@ * @property {string|null} [description] Snapshot description * @property {number|Long|null} [diskSizeGb] Snapshot diskSizeGb * @property {number|Long|null} [downloadBytes] Snapshot downloadBytes + * @property {boolean|null} [enableConfidentialCompute] Snapshot enableConfidentialCompute * @property {Array.|null} [guestOsFeatures] Snapshot guestOsFeatures * @property {number|Long|null} [id] Snapshot id * @property {string|null} [kind] Snapshot kind @@ -442657,6 +446135,7 @@ * @property {Array.|null} [licenses] Snapshot licenses * @property {string|null} [locationHint] Snapshot locationHint * @property {string|null} [name] Snapshot name + * @property {boolean|null} [satisfiesPzi] Snapshot satisfiesPzi * @property {boolean|null} [satisfiesPzs] Snapshot satisfiesPzs * @property {string|null} [selfLink] Snapshot selfLink * @property {google.cloud.compute.v1.ICustomerEncryptionKey|null} [snapshotEncryptionKey] Snapshot snapshotEncryptionKey @@ -442757,6 +446236,14 @@ */ Snapshot.prototype.downloadBytes = null; + /** + * Snapshot enableConfidentialCompute. + * @member {boolean|null|undefined} enableConfidentialCompute + * @memberof google.cloud.compute.v1.Snapshot + * @instance + */ + Snapshot.prototype.enableConfidentialCompute = null; + /** * Snapshot guestOsFeatures. * @member {Array.} guestOsFeatures @@ -442829,6 +446316,14 @@ */ Snapshot.prototype.name = null; + /** + * Snapshot satisfiesPzi. + * @member {boolean|null|undefined} satisfiesPzi + * @memberof google.cloud.compute.v1.Snapshot + * @instance + */ + Snapshot.prototype.satisfiesPzi = null; + /** * Snapshot satisfiesPzs. * @member {boolean|null|undefined} satisfiesPzs @@ -443032,6 +446527,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * Snapshot _enableConfidentialCompute. + * @member {"enableConfidentialCompute"|undefined} _enableConfidentialCompute + * @memberof google.cloud.compute.v1.Snapshot + * @instance + */ + Object.defineProperty(Snapshot.prototype, "_enableConfidentialCompute", { + get: $util.oneOfGetter($oneOfFields = ["enableConfidentialCompute"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Snapshot _id. * @member {"id"|undefined} _id @@ -443087,6 +446593,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * Snapshot _satisfiesPzi. + * @member {"satisfiesPzi"|undefined} _satisfiesPzi + * @memberof google.cloud.compute.v1.Snapshot + * @instance + */ + Object.defineProperty(Snapshot.prototype, "_satisfiesPzi", { + get: $util.oneOfGetter($oneOfFields = ["satisfiesPzi"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Snapshot _satisfiesPzs. * @member {"satisfiesPzs"|undefined} _satisfiesPzs @@ -443277,6 +446794,8 @@ if (message.guestOsFeatures != null && message.guestOsFeatures.length) for (var i = 0; i < message.guestOsFeatures.length; ++i) $root.google.cloud.compute.v1.GuestOsFeature.encode(message.guestOsFeatures[i], writer.uint32(/* id 79294545, wireType 2 =*/634356362).fork()).ldelim(); + if (message.enableConfidentialCompute != null && Object.hasOwnProperty.call(message, "enableConfidentialCompute")) + writer.uint32(/* id 102135228, wireType 0 =*/817081824).bool(message.enableConfidentialCompute); if (message.snapshotType != null && Object.hasOwnProperty.call(message, "snapshotType")) writer.uint32(/* id 124349653, wireType 2 =*/994797226).string(message.snapshotType); if (message.creationSizeBytes != null && Object.hasOwnProperty.call(message, "creationSizeBytes")) @@ -443315,6 +446834,8 @@ writer.uint32(/* id 456214797, wireType 2 =*/3649718378).string(message.selfLink); if (message.autoCreated != null && Object.hasOwnProperty.call(message, "autoCreated")) writer.uint32(/* id 463922264, wireType 0 =*/3711378112).bool(message.autoCreated); + if (message.satisfiesPzi != null && Object.hasOwnProperty.call(message, "satisfiesPzi")) + writer.uint32(/* id 480964257, wireType 0 =*/3847714056).bool(message.satisfiesPzi); if (message.satisfiesPzs != null && Object.hasOwnProperty.call(message, "satisfiesPzs")) writer.uint32(/* id 480964267, wireType 0 =*/3847714136).bool(message.satisfiesPzs); if (message.storageBytesStatus != null && Object.hasOwnProperty.call(message, "storageBytesStatus")) @@ -443390,6 +446911,10 @@ message.downloadBytes = reader.int64(); break; } + case 102135228: { + message.enableConfidentialCompute = reader.bool(); + break; + } case 79294545: { if (!(message.guestOsFeatures && message.guestOsFeatures.length)) message.guestOsFeatures = []; @@ -443456,6 +446981,10 @@ message.name = reader.string(); break; } + case 480964257: { + message.satisfiesPzi = reader.bool(); + break; + } case 480964267: { message.satisfiesPzs = reader.bool(); break; @@ -443590,6 +447119,11 @@ if (!$util.isInteger(message.downloadBytes) && !(message.downloadBytes && $util.isInteger(message.downloadBytes.low) && $util.isInteger(message.downloadBytes.high))) return "downloadBytes: integer|Long expected"; } + if (message.enableConfidentialCompute != null && message.hasOwnProperty("enableConfidentialCompute")) { + properties._enableConfidentialCompute = 1; + if (typeof message.enableConfidentialCompute !== "boolean") + return "enableConfidentialCompute: boolean expected"; + } if (message.guestOsFeatures != null && message.hasOwnProperty("guestOsFeatures")) { if (!Array.isArray(message.guestOsFeatures)) return "guestOsFeatures: array expected"; @@ -443646,6 +447180,11 @@ if (!$util.isString(message.name)) return "name: string expected"; } + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) { + properties._satisfiesPzi = 1; + if (typeof message.satisfiesPzi !== "boolean") + return "satisfiesPzi: boolean expected"; + } if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) { properties._satisfiesPzs = 1; if (typeof message.satisfiesPzs !== "boolean") @@ -443776,6 +447315,8 @@ message.downloadBytes = object.downloadBytes; else if (typeof object.downloadBytes === "object") message.downloadBytes = new $util.LongBits(object.downloadBytes.low >>> 0, object.downloadBytes.high >>> 0).toNumber(); + if (object.enableConfidentialCompute != null) + message.enableConfidentialCompute = Boolean(object.enableConfidentialCompute); if (object.guestOsFeatures) { if (!Array.isArray(object.guestOsFeatures)) throw TypeError(".google.cloud.compute.v1.Snapshot.guestOsFeatures: array expected"); @@ -443831,6 +447372,8 @@ message.locationHint = String(object.locationHint); if (object.name != null) message.name = String(object.name); + if (object.satisfiesPzi != null) + message.satisfiesPzi = Boolean(object.satisfiesPzi); if (object.satisfiesPzs != null) message.satisfiesPzs = Boolean(object.satisfiesPzs); if (object.selfLink != null) @@ -443952,6 +447495,11 @@ for (var j = 0; j < message.guestOsFeatures.length; ++j) object.guestOsFeatures[j] = $root.google.cloud.compute.v1.GuestOsFeature.toObject(message.guestOsFeatures[j], options); } + if (message.enableConfidentialCompute != null && message.hasOwnProperty("enableConfidentialCompute")) { + object.enableConfidentialCompute = message.enableConfidentialCompute; + if (options.oneofs) + object._enableConfidentialCompute = "enableConfidentialCompute"; + } if (message.snapshotType != null && message.hasOwnProperty("snapshotType")) { object.snapshotType = message.snapshotType; if (options.oneofs) @@ -444054,6 +447602,11 @@ if (options.oneofs) object._autoCreated = "autoCreated"; } + if (message.satisfiesPzi != null && message.hasOwnProperty("satisfiesPzi")) { + object.satisfiesPzi = message.satisfiesPzi; + if (options.oneofs) + object._satisfiesPzi = "satisfiesPzi"; + } if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) { object.satisfiesPzs = message.satisfiesPzs; if (options.oneofs) @@ -455744,6 +459297,7 @@ * @property {string|null} [privateIpv6GoogleAccess] Subnetwork privateIpv6GoogleAccess * @property {string|null} [purpose] Subnetwork purpose * @property {string|null} [region] Subnetwork region + * @property {string|null} [reservedInternalRange] Subnetwork reservedInternalRange * @property {string|null} [role] Subnetwork role * @property {Array.|null} [secondaryIpRanges] Subnetwork secondaryIpRanges * @property {string|null} [selfLink] Subnetwork selfLink @@ -455919,6 +459473,14 @@ */ Subnetwork.prototype.region = null; + /** + * Subnetwork reservedInternalRange. + * @member {string|null|undefined} reservedInternalRange + * @memberof google.cloud.compute.v1.Subnetwork + * @instance + */ + Subnetwork.prototype.reservedInternalRange = null; + /** * Subnetwork role. * @member {string|null|undefined} role @@ -456171,6 +459733,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * Subnetwork _reservedInternalRange. + * @member {"reservedInternalRange"|undefined} _reservedInternalRange + * @memberof google.cloud.compute.v1.Subnetwork + * @instance + */ + Object.defineProperty(Subnetwork.prototype, "_reservedInternalRange", { + get: $util.oneOfGetter($oneOfFields = ["reservedInternalRange"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Subnetwork _role. * @member {"role"|undefined} _role @@ -456270,6 +459843,8 @@ writer.uint32(/* id 234678500, wireType 2 =*/1877428002).string(message.fingerprint); if (message.ipv6CidrRange != null && Object.hasOwnProperty.call(message, "ipv6CidrRange")) writer.uint32(/* id 273141258, wireType 2 =*/2185130066).string(message.ipv6CidrRange); + if (message.reservedInternalRange != null && Object.hasOwnProperty.call(message, "reservedInternalRange")) + writer.uint32(/* id 286248754, wireType 2 =*/2289990034).string(message.reservedInternalRange); if (message.purpose != null && Object.hasOwnProperty.call(message, "purpose")) writer.uint32(/* id 316407070, wireType 2 =*/2531256562).string(message.purpose); if (message.logConfig != null && Object.hasOwnProperty.call(message, "logConfig")) @@ -456398,6 +459973,10 @@ message.region = reader.string(); break; } + case 286248754: { + message.reservedInternalRange = reader.string(); + break; + } case 3506294: { message.role = reader.string(); break; @@ -456554,6 +460133,11 @@ if (!$util.isString(message.region)) return "region: string expected"; } + if (message.reservedInternalRange != null && message.hasOwnProperty("reservedInternalRange")) { + properties._reservedInternalRange = 1; + if (!$util.isString(message.reservedInternalRange)) + return "reservedInternalRange: string expected"; + } if (message.role != null && message.hasOwnProperty("role")) { properties._role = 1; if (!$util.isString(message.role)) @@ -456646,6 +460230,8 @@ message.purpose = String(object.purpose); if (object.region != null) message.region = String(object.region); + if (object.reservedInternalRange != null) + message.reservedInternalRange = String(object.reservedInternalRange); if (object.role != null) message.role = String(object.role); if (object.secondaryIpRanges) { @@ -456760,6 +460346,11 @@ if (options.oneofs) object._ipv6CidrRange = "ipv6CidrRange"; } + if (message.reservedInternalRange != null && message.hasOwnProperty("reservedInternalRange")) { + object.reservedInternalRange = message.reservedInternalRange; + if (options.oneofs) + object._reservedInternalRange = "reservedInternalRange"; + } if (message.purpose != null && message.hasOwnProperty("purpose")) { object.purpose = message.purpose; if (options.oneofs) @@ -458321,6 +461912,7 @@ * @interface ISubnetworkSecondaryRange * @property {string|null} [ipCidrRange] SubnetworkSecondaryRange ipCidrRange * @property {string|null} [rangeName] SubnetworkSecondaryRange rangeName + * @property {string|null} [reservedInternalRange] SubnetworkSecondaryRange reservedInternalRange */ /** @@ -458354,6 +461946,14 @@ */ SubnetworkSecondaryRange.prototype.rangeName = null; + /** + * SubnetworkSecondaryRange reservedInternalRange. + * @member {string|null|undefined} reservedInternalRange + * @memberof google.cloud.compute.v1.SubnetworkSecondaryRange + * @instance + */ + SubnetworkSecondaryRange.prototype.reservedInternalRange = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -458379,6 +461979,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * SubnetworkSecondaryRange _reservedInternalRange. + * @member {"reservedInternalRange"|undefined} _reservedInternalRange + * @memberof google.cloud.compute.v1.SubnetworkSecondaryRange + * @instance + */ + Object.defineProperty(SubnetworkSecondaryRange.prototype, "_reservedInternalRange", { + get: $util.oneOfGetter($oneOfFields = ["reservedInternalRange"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new SubnetworkSecondaryRange instance using the specified properties. * @function create @@ -458405,6 +462016,8 @@ writer = $Writer.create(); if (message.ipCidrRange != null && Object.hasOwnProperty.call(message, "ipCidrRange")) writer.uint32(/* id 98117322, wireType 2 =*/784938578).string(message.ipCidrRange); + if (message.reservedInternalRange != null && Object.hasOwnProperty.call(message, "reservedInternalRange")) + writer.uint32(/* id 286248754, wireType 2 =*/2289990034).string(message.reservedInternalRange); if (message.rangeName != null && Object.hasOwnProperty.call(message, "rangeName")) writer.uint32(/* id 332216397, wireType 2 =*/2657731178).string(message.rangeName); return writer; @@ -458449,6 +462062,10 @@ message.rangeName = reader.string(); break; } + case 286248754: { + message.reservedInternalRange = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -458495,6 +462112,11 @@ if (!$util.isString(message.rangeName)) return "rangeName: string expected"; } + if (message.reservedInternalRange != null && message.hasOwnProperty("reservedInternalRange")) { + properties._reservedInternalRange = 1; + if (!$util.isString(message.reservedInternalRange)) + return "reservedInternalRange: string expected"; + } return null; }; @@ -458514,6 +462136,8 @@ message.ipCidrRange = String(object.ipCidrRange); if (object.rangeName != null) message.rangeName = String(object.rangeName); + if (object.reservedInternalRange != null) + message.reservedInternalRange = String(object.reservedInternalRange); return message; }; @@ -458535,6 +462159,11 @@ if (options.oneofs) object._ipCidrRange = "ipCidrRange"; } + if (message.reservedInternalRange != null && message.hasOwnProperty("reservedInternalRange")) { + object.reservedInternalRange = message.reservedInternalRange; + if (options.oneofs) + object._reservedInternalRange = "reservedInternalRange"; + } if (message.rangeName != null && message.hasOwnProperty("rangeName")) { object.rangeName = message.rangeName; if (options.oneofs) @@ -520492,6 +524121,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.compute.v1.Instances|performMaintenance}. + * @memberof google.cloud.compute.v1.Instances + * @typedef PerformMaintenanceCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.Operation} [response] Operation + */ + + /** + * Calls PerformMaintenance. + * @function performMaintenance + * @memberof google.cloud.compute.v1.Instances + * @instance + * @param {google.cloud.compute.v1.IPerformMaintenanceInstanceRequest} request PerformMaintenanceInstanceRequest message or plain object + * @param {google.cloud.compute.v1.Instances.PerformMaintenanceCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Instances.prototype.performMaintenance = function performMaintenance(request, callback) { + return this.rpcCall(performMaintenance, $root.google.cloud.compute.v1.PerformMaintenanceInstanceRequest, $root.google.cloud.compute.v1.Operation, request, callback); + }, "name", { value: "PerformMaintenance" }); + + /** + * Calls PerformMaintenance. + * @function performMaintenance + * @memberof google.cloud.compute.v1.Instances + * @instance + * @param {google.cloud.compute.v1.IPerformMaintenanceInstanceRequest} request PerformMaintenanceInstanceRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.compute.v1.Instances|removeResourcePolicies}. * @memberof google.cloud.compute.v1.Instances @@ -532921,6 +536583,74 @@ return RegionUrlMaps; })(); + v1.RegionZones = (function() { + + /** + * Constructs a new RegionZones service. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a RegionZones + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function RegionZones(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (RegionZones.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = RegionZones; + + /** + * Creates new RegionZones service using the specified rpc implementation. + * @function create + * @memberof google.cloud.compute.v1.RegionZones + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {RegionZones} RPC service. Useful where requests and/or responses are streamed. + */ + RegionZones.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionZones|list}. + * @memberof google.cloud.compute.v1.RegionZones + * @typedef ListCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.ZoneList} [response] ZoneList + */ + + /** + * Calls List. + * @function list + * @memberof google.cloud.compute.v1.RegionZones + * @instance + * @param {google.cloud.compute.v1.IListRegionZonesRequest} request ListRegionZonesRequest message or plain object + * @param {google.cloud.compute.v1.RegionZones.ListCallback} callback Node-style callback called with the error, if any, and ZoneList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionZones.prototype.list = function list(request, callback) { + return this.rpcCall(list, $root.google.cloud.compute.v1.ListRegionZonesRequest, $root.google.cloud.compute.v1.ZoneList, request, callback); + }, "name", { value: "List" }); + + /** + * Calls List. + * @function list + * @memberof google.cloud.compute.v1.RegionZones + * @instance + * @param {google.cloud.compute.v1.IListRegionZonesRequest} request ListRegionZonesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return RegionZones; + })(); + v1.Regions = (function() { /** diff --git a/packages/google-cloud-compute/protos/protos.json b/packages/google-cloud-compute/protos/protos.json index 21a05bd700a..dd8431917f9 100644 --- a/packages/google-cloud-compute/protos/protos.json +++ b/packages/google-cloud-compute/protos/protos.json @@ -7109,6 +7109,112 @@ } } }, + "AllocationAggregateReservation": { + "oneofs": { + "_vmFamily": { + "oneof": [ + "vmFamily" + ] + }, + "_workloadType": { + "oneof": [ + "workloadType" + ] + } + }, + "fields": { + "inUseResources": { + "rule": "repeated", + "type": "AllocationAggregateReservationReservedResourceInfo", + "id": 409009107 + }, + "reservedResources": { + "rule": "repeated", + "type": "AllocationAggregateReservationReservedResourceInfo", + "id": 213217742 + }, + "vmFamily": { + "type": "string", + "id": 125017580, + "options": { + "proto3_optional": true + } + }, + "workloadType": { + "type": "string", + "id": 273432322, + "options": { + "proto3_optional": true + } + } + }, + "nested": { + "VmFamily": { + "values": { + "UNDEFINED_VM_FAMILY": 0, + "VM_FAMILY_CLOUD_TPU_LITE_DEVICE_CT5L": 108020067, + "VM_FAMILY_CLOUD_TPU_LITE_POD_SLICE_CT5LP": 18705267, + "VM_FAMILY_CLOUD_TPU_POD_SLICE_CT4P": 517384407 + } + }, + "WorkloadType": { + "values": { + "UNDEFINED_WORKLOAD_TYPE": 0, + "BATCH": 62971674, + "SERVING": 17781740, + "UNSPECIFIED": 526786327 + } + } + } + }, + "AllocationAggregateReservationReservedResourceInfo": { + "oneofs": { + "_accelerator": { + "oneof": [ + "accelerator" + ] + } + }, + "fields": { + "accelerator": { + "type": "AllocationAggregateReservationReservedResourceInfoAccelerator", + "id": 424338027, + "options": { + "proto3_optional": true + } + } + } + }, + "AllocationAggregateReservationReservedResourceInfoAccelerator": { + "oneofs": { + "_acceleratorCount": { + "oneof": [ + "acceleratorCount" + ] + }, + "_acceleratorType": { + "oneof": [ + "acceleratorType" + ] + } + }, + "fields": { + "acceleratorCount": { + "type": "int32", + "id": 504879675, + "options": { + "proto3_optional": true + } + }, + "acceleratorType": { + "type": "string", + "id": 138031246, + "options": { + "proto3_optional": true + } + } + } + }, "AllocationResourceStatus": { "oneofs": { "_specificSkuAllocation": { @@ -7936,6 +8042,11 @@ "diskType" ] }, + "_enableConfidentialCompute": { + "oneof": [ + "enableConfidentialCompute" + ] + }, "_onUpdateAction": { "oneof": [ "onUpdateAction" @@ -8008,6 +8119,13 @@ "proto3_optional": true } }, + "enableConfidentialCompute": { + "type": "bool", + "id": 102135228, + "options": { + "proto3_optional": true + } + }, "labels": { "keyType": "string", "type": "string", @@ -12122,6 +12240,11 @@ "proto3_optional": true } }, + "existingReservations": { + "rule": "repeated", + "type": "string", + "id": 493028443 + }, "id": { "type": "uint64", "id": 3355, @@ -12267,6 +12390,7 @@ "GRAPHICS_OPTIMIZED": 68500563, "MEMORY_OPTIMIZED": 281753417, "MEMORY_OPTIMIZED_M3": 276301372, + "STORAGE_OPTIMIZED_Z3": 316796085, "TYPE_UNSPECIFIED": 437714322 } } @@ -16585,6 +16709,11 @@ "diskEncryptionKey" ] }, + "_enableConfidentialCompute": { + "oneof": [ + "enableConfidentialCompute" + ] + }, "_id": { "oneof": [ "id" @@ -16655,6 +16784,11 @@ "resourceStatus" ] }, + "_satisfiesPzi": { + "oneof": [ + "satisfiesPzi" + ] + }, "_satisfiesPzs": { "oneof": [ "satisfiesPzs" @@ -16782,6 +16916,13 @@ "proto3_optional": true } }, + "enableConfidentialCompute": { + "type": "bool", + "id": 102135228, + "options": { + "proto3_optional": true + } + }, "guestOsFeatures": { "rule": "repeated", "type": "GuestOsFeature", @@ -16910,6 +17051,13 @@ "proto3_optional": true } }, + "satisfiesPzi": { + "type": "bool", + "id": 480964257, + "options": { + "proto3_optional": true + } + }, "satisfiesPzs": { "type": "bool", "id": 480964267, @@ -19335,6 +19483,16 @@ "oneof": [ "ruleTupleCount" ] + }, + "_securityProfileGroup": { + "oneof": [ + "securityProfileGroup" + ] + }, + "_tlsInspect": { + "oneof": [ + "tlsInspect" + ] } }, "fields": { @@ -19408,6 +19566,13 @@ "proto3_optional": true } }, + "securityProfileGroup": { + "type": "string", + "id": 207411626, + "options": { + "proto3_optional": true + } + }, "targetResources": { "rule": "repeated", "type": "string", @@ -19422,6 +19587,13 @@ "rule": "repeated", "type": "string", "id": 457639710 + }, + "tlsInspect": { + "type": "bool", + "id": 43425488, + "options": { + "proto3_optional": true + } } }, "nested": { @@ -24249,6 +24421,7 @@ "UNDEFINED_TYPE": 0, "FEATURE_TYPE_UNSPECIFIED": 531767259, "GVNIC": 68209305, + "IDPF": 2242641, "MULTI_IP_SUBNET": 151776719, "SECURE_BOOT": 376811194, "SEV_CAPABLE": 87083793, @@ -26268,6 +26441,11 @@ "diskSizeGb" ] }, + "_enableConfidentialCompute": { + "oneof": [ + "enableConfidentialCompute" + ] + }, "_family": { "oneof": [ "family" @@ -26303,6 +26481,11 @@ "rawDisk" ] }, + "_satisfiesPzi": { + "oneof": [ + "satisfiesPzi" + ] + }, "_satisfiesPzs": { "oneof": [ "satisfiesPzs" @@ -26417,6 +26600,13 @@ "proto3_optional": true } }, + "enableConfidentialCompute": { + "type": "bool", + "id": 102135228, + "options": { + "proto3_optional": true + } + }, "family": { "type": "string", "id": 328751972, @@ -26486,6 +26676,13 @@ "proto3_optional": true } }, + "satisfiesPzi": { + "type": "bool", + "id": 480964257, + "options": { + "proto3_optional": true + } + }, "satisfiesPzs": { "type": "bool", "id": 480964267, @@ -29722,6 +29919,11 @@ "resourceStatus" ] }, + "_satisfiesPzi": { + "oneof": [ + "satisfiesPzi" + ] + }, "_satisfiesPzs": { "oneof": [ "satisfiesPzs" @@ -29998,6 +30200,13 @@ "proto3_optional": true } }, + "satisfiesPzi": { + "type": "bool", + "id": 480964257, + "options": { + "proto3_optional": true + } + }, "satisfiesPzs": { "type": "bool", "id": 480964267, @@ -30586,6 +30795,11 @@ }, "InstanceGroupManager": { "oneofs": { + "_allInstancesConfig": { + "oneof": [ + "allInstancesConfig" + ] + }, "_baseInstanceName": { "oneof": [ "baseInstanceName" @@ -30688,6 +30902,13 @@ } }, "fields": { + "allInstancesConfig": { + "type": "InstanceGroupManagerAllInstancesConfig", + "id": 112596737, + "options": { + "proto3_optional": true + } + }, "autoHealingPolicies": { "rule": "repeated", "type": "InstanceGroupManagerAutoHealingPolicy", @@ -31097,6 +31318,24 @@ } } }, + "InstanceGroupManagerAllInstancesConfig": { + "oneofs": { + "_properties": { + "oneof": [ + "properties" + ] + } + }, + "fields": { + "properties": { + "type": "InstancePropertiesPatch", + "id": 147688755, + "options": { + "proto3_optional": true + } + } + } + }, "InstanceGroupManagerAutoHealingPolicy": { "oneofs": { "_healthCheck": { @@ -31227,6 +31466,11 @@ }, "InstanceGroupManagerStatus": { "oneofs": { + "_allInstancesConfig": { + "oneof": [ + "allInstancesConfig" + ] + }, "_autoscaler": { "oneof": [ "autoscaler" @@ -31249,6 +31493,13 @@ } }, "fields": { + "allInstancesConfig": { + "type": "InstanceGroupManagerStatusAllInstancesConfig", + "id": 112596737, + "options": { + "proto3_optional": true + } + }, "autoscaler": { "type": "string", "id": 517258967, @@ -31279,6 +31530,36 @@ } } }, + "InstanceGroupManagerStatusAllInstancesConfig": { + "oneofs": { + "_currentRevision": { + "oneof": [ + "currentRevision" + ] + }, + "_effective": { + "oneof": [ + "effective" + ] + } + }, + "fields": { + "currentRevision": { + "type": "string", + "id": 38355937, + "options": { + "proto3_optional": true + } + }, + "effective": { + "type": "bool", + "id": 141961639, + "options": { + "proto3_optional": true + } + } + } + }, "InstanceGroupManagerStatusStateful": { "oneofs": { "_hasStatefulConfig": { @@ -32492,6 +32773,20 @@ } } }, + "InstancePropertiesPatch": { + "fields": { + "labels": { + "keyType": "string", + "type": "string", + "id": 500195327 + }, + "metadata": { + "keyType": "string", + "type": "string", + "id": 86866735 + } + } + }, "InstanceReference": { "oneofs": { "_instance": { @@ -42609,6 +42904,86 @@ } } }, + "ListRegionZonesRequest": { + "oneofs": { + "_filter": { + "oneof": [ + "filter" + ] + }, + "_maxResults": { + "oneof": [ + "maxResults" + ] + }, + "_orderBy": { + "oneof": [ + "orderBy" + ] + }, + "_pageToken": { + "oneof": [ + "pageToken" + ] + }, + "_returnPartialSuccess": { + "oneof": [ + "returnPartialSuccess" + ] + } + }, + "fields": { + "filter": { + "type": "string", + "id": 336120696, + "options": { + "proto3_optional": true + } + }, + "maxResults": { + "type": "uint32", + "id": 54715419, + "options": { + "proto3_optional": true + } + }, + "orderBy": { + "type": "string", + "id": 160562920, + "options": { + "proto3_optional": true + } + }, + "pageToken": { + "type": "string", + "id": 19994697, + "options": { + "proto3_optional": true + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "returnPartialSuccess": { + "type": "bool", + "id": 517198390, + "options": { + "proto3_optional": true + } + } + } + }, "ListRegionsRequest": { "oneofs": { "_filter": { @@ -45123,6 +45498,11 @@ "name" ] }, + "_satisfiesPzi": { + "oneof": [ + "satisfiesPzi" + ] + }, "_satisfiesPzs": { "oneof": [ "satisfiesPzs" @@ -45211,6 +45591,13 @@ "proto3_optional": true } }, + "satisfiesPzi": { + "type": "bool", + "id": 480964257, + "options": { + "proto3_optional": true + } + }, "satisfiesPzs": { "type": "bool", "id": 480964267, @@ -54169,6 +54556,47 @@ } } }, + "PerformMaintenanceInstanceRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "instance": { + "type": "string", + "id": 18257045, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "project" + } + }, + "requestId": { + "type": "string", + "id": 37109963, + "options": { + "proto3_optional": true + } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "zone" + } + } + } + }, "Policy": { "oneofs": { "_etag": { @@ -55595,6 +56023,7 @@ "COMMITTED_N2_CPUS": 322589603, "COMMITTED_NVIDIA_A100_80GB_GPUS": 464326565, "COMMITTED_NVIDIA_A100_GPUS": 375799445, + "COMMITTED_NVIDIA_H100_GPUS": 71649180, "COMMITTED_NVIDIA_K80_GPUS": 3857188, "COMMITTED_NVIDIA_L4_GPUS": 19163645, "COMMITTED_NVIDIA_P100_GPUS": 107528100, @@ -55603,6 +56032,7 @@ "COMMITTED_NVIDIA_V100_GPUS": 219562, "COMMITTED_T2A_CPUS": 296378986, "COMMITTED_T2D_CPUS": 382266439, + "COMMITTED_Z3_CPUS": 263844686, "CPUS": 2075595, "CPUS_ALL_REGIONS": 470911149, "DISKS_TOTAL_GB": 353520543, @@ -55670,6 +56100,7 @@ "PREEMPTIBLE_LOCAL_SSD_GB": 260819336, "PREEMPTIBLE_NVIDIA_A100_80GB_GPUS": 151942410, "PREEMPTIBLE_NVIDIA_A100_GPUS": 68832784, + "PREEMPTIBLE_NVIDIA_H100_GPUS": 301553431, "PREEMPTIBLE_NVIDIA_K80_GPUS": 374960201, "PREEMPTIBLE_NVIDIA_L4_GPUS": 100408376, "PREEMPTIBLE_NVIDIA_P100_GPUS": 337432351, @@ -55679,6 +56110,9 @@ "PREEMPTIBLE_NVIDIA_T4_GPUS": 221115968, "PREEMPTIBLE_NVIDIA_T4_VWS_GPUS": 44497965, "PREEMPTIBLE_NVIDIA_V100_GPUS": 230123813, + "PREEMPTIBLE_TPU_LITE_DEVICE_V5": 174262523, + "PREEMPTIBLE_TPU_LITE_PODSLICE_V5": 112281796, + "PREEMPTIBLE_TPU_PODSLICE_V4": 425541132, "PSC_ILB_CONSUMER_FORWARDING_RULES_PER_PRODUCER_NETWORK": 231164291, "PSC_INTERNAL_LB_FORWARDING_RULES": 169005435, "PUBLIC_ADVERTISED_PREFIXES": 471371980, @@ -55716,6 +56150,9 @@ "TARGET_SSL_PROXIES": 159216235, "TARGET_TCP_PROXIES": 182243136, "TARGET_VPN_GATEWAYS": 75029928, + "TPU_LITE_DEVICE_V5": 449577597, + "TPU_LITE_PODSLICE_V5": 12708294, + "TPU_PODSLICE_V4": 214467530, "URL_MAPS": 378660743, "VPN_GATEWAYS": 35620282, "VPN_TUNNELS": 104327296, @@ -57834,6 +58271,11 @@ }, "Reservation": { "oneofs": { + "_aggregateReservation": { + "oneof": [ + "aggregateReservation" + ] + }, "_commitment": { "oneof": [ "commitment" @@ -57906,6 +58348,13 @@ } }, "fields": { + "aggregateReservation": { + "type": "AllocationAggregateReservation", + "id": 291567948, + "options": { + "proto3_optional": true + } + }, "commitment": { "type": "string", "id": 482134805, @@ -63234,6 +63683,11 @@ "expr" ] }, + "_exprOptions": { + "oneof": [ + "exprOptions" + ] + }, "_versionedExpr": { "oneof": [ "versionedExpr" @@ -63255,6 +63709,13 @@ "proto3_optional": true } }, + "exprOptions": { + "type": "SecurityPolicyRuleMatcherExprOptions", + "id": 486220372, + "options": { + "proto3_optional": true + } + }, "versionedExpr": { "type": "string", "id": 322286013, @@ -63281,6 +63742,38 @@ } } }, + "SecurityPolicyRuleMatcherExprOptions": { + "oneofs": { + "_recaptchaOptions": { + "oneof": [ + "recaptchaOptions" + ] + } + }, + "fields": { + "recaptchaOptions": { + "type": "SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions", + "id": 389151558, + "options": { + "proto3_optional": true + } + } + } + }, + "SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions": { + "fields": { + "actionTokenSiteKeys": { + "rule": "repeated", + "type": "string", + "id": 59929885 + }, + "sessionTokenSiteKeys": { + "rule": "repeated", + "type": "string", + "id": 333363581 + } + } + }, "SecurityPolicyRuleNetworkMatcher": { "fields": { "destIpRanges": { @@ -63559,6 +64052,8 @@ "IP": 2343, "REGION_CODE": 79559768, "SNI": 82254, + "TLS_JA3_FINGERPRINT": 327127933, + "USER_IP": 34009627, "XFF_IP": 438707118 } } @@ -63604,6 +64099,8 @@ "IP": 2343, "REGION_CODE": 79559768, "SNI": 82254, + "TLS_JA3_FINGERPRINT": 327127933, + "USER_IP": 34009627, "XFF_IP": 438707118 } } @@ -68072,6 +68569,11 @@ "oneof": [ "requestId" ] + }, + "_withExtendedNotifications": { + "oneof": [ + "withExtendedNotifications" + ] } }, "fields": { @@ -68097,6 +68599,13 @@ "proto3_optional": true } }, + "withExtendedNotifications": { + "type": "bool", + "id": 405957627, + "options": { + "proto3_optional": true + } + }, "zone": { "type": "string", "id": 3744684, @@ -68197,6 +68706,11 @@ "downloadBytes" ] }, + "_enableConfidentialCompute": { + "oneof": [ + "enableConfidentialCompute" + ] + }, "_id": { "oneof": [ "id" @@ -68222,6 +68736,11 @@ "name" ] }, + "_satisfiesPzi": { + "oneof": [ + "satisfiesPzi" + ] + }, "_satisfiesPzs": { "oneof": [ "satisfiesPzs" @@ -68345,6 +68864,13 @@ "proto3_optional": true } }, + "enableConfidentialCompute": { + "type": "bool", + "id": 102135228, + "options": { + "proto3_optional": true + } + }, "guestOsFeatures": { "rule": "repeated", "type": "GuestOsFeature", @@ -68400,6 +68926,13 @@ "proto3_optional": true } }, + "satisfiesPzi": { + "type": "bool", + "id": 480964257, + "options": { + "proto3_optional": true + } + }, "satisfiesPzs": { "type": "bool", "id": 480964267, @@ -70273,6 +70806,11 @@ "region" ] }, + "_reservedInternalRange": { + "oneof": [ + "reservedInternalRange" + ] + }, "_role": { "oneof": [ "role" @@ -70428,6 +70966,13 @@ "proto3_optional": true } }, + "reservedInternalRange": { + "type": "string", + "id": 286248754, + "options": { + "proto3_optional": true + } + }, "role": { "type": "string", "id": 3506294, @@ -70765,6 +71310,11 @@ "oneof": [ "rangeName" ] + }, + "_reservedInternalRange": { + "oneof": [ + "reservedInternalRange" + ] } }, "fields": { @@ -70781,6 +71331,13 @@ "options": { "proto3_optional": true } + }, + "reservedInternalRange": { + "type": "string", + "id": 286248754, + "options": { + "proto3_optional": true + } } } }, @@ -83429,6 +83986,28 @@ } ] }, + "PerformMaintenance": { + "requestType": "PerformMaintenanceInstanceRequest", + "responseType": "Operation", + "options": { + "(google.api.http).post": "/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/performMaintenance", + "(google.api.method_signature)": "project,zone,instance", + "(google.cloud.operation_service)": "ZoneOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/performMaintenance" + } + }, + { + "(google.api.method_signature)": "project,zone,instance" + }, + { + "(google.cloud.operation_service)": "ZoneOperations" + } + ] + }, "RemoveResourcePolicies": { "requestType": "RemoveResourcePoliciesInstanceRequest", "responseType": "Operation", @@ -90791,6 +91370,32 @@ } } }, + "RegionZones": { + "options": { + "(google.api.default_host)": "compute.googleapis.com", + "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/compute.readonly,https://www.googleapis.com/auth/compute,https://www.googleapis.com/auth/cloud-platform" + }, + "methods": { + "List": { + "requestType": "ListRegionZonesRequest", + "responseType": "ZoneList", + "options": { + "(google.api.http).get": "/compute/v1/projects/{project}/regions/{region}/zones", + "(google.api.method_signature)": "project,region" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/v1/projects/{project}/regions/{region}/zones" + } + }, + { + "(google.api.method_signature)": "project,region" + } + ] + } + } + }, "Regions": { "options": { "(google.api.default_host)": "compute.googleapis.com", diff --git a/packages/google-cloud-compute/samples/README.md b/packages/google-cloud-compute/samples/README.md index eecb9801631..fc38ac74918 100644 --- a/packages/google-cloud-compute/samples/README.md +++ b/packages/google-cloud-compute/samples/README.md @@ -223,6 +223,7 @@ * [Instances.insert](#instances.insert) * [Instances.list](#instances.list) * [Instances.list_referrers](#instances.list_referrers) + * [Instances.perform_maintenance](#instances.perform_maintenance) * [Instances.remove_resource_policies](#instances.remove_resource_policies) * [Instances.reset](#instances.reset) * [Instances.resume](#instances.resume) @@ -555,6 +556,7 @@ * [Region_url_maps.patch](#region_url_maps.patch) * [Region_url_maps.update](#region_url_maps.update) * [Region_url_maps.validate](#region_url_maps.validate) + * [Region_zones.list](#region_zones.list) * [Regions.get](#regions.get) * [Regions.list](#regions.list) * [Reservations.aggregated_list](#reservations.aggregated_list) @@ -4348,6 +4350,23 @@ __Usage:__ +### Instances.perform_maintenance + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instances.perform_maintenance.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.perform_maintenance.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-compute/samples/generated/v1/instances.perform_maintenance.js` + + +----- + + + + ### Instances.remove_resource_policies View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/instances.remove_resource_policies.js). @@ -9992,6 +10011,23 @@ __Usage:__ +### Region_zones.list + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/region_zones.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_zones.list.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-compute/samples/generated/v1/region_zones.list.js` + + +----- + + + + ### Regions.get View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/regions.get.js). diff --git a/packages/google-cloud-compute/samples/generated/v1/accelerator_types.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/accelerator_types.aggregated_list.js index 55d4bcdd0a0..d740e21cc2b 100644 --- a/packages/google-cloud-compute/samples/generated/v1/accelerator_types.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/accelerator_types.aggregated_list.js @@ -57,6 +57,7 @@ function main(project) { */ // const returnPartialSuccess = true /** + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1/addresses.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/addresses.aggregated_list.js index 35b065bfe4e..4ec6c5ac8fd 100644 --- a/packages/google-cloud-compute/samples/generated/v1/addresses.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/addresses.aggregated_list.js @@ -57,6 +57,7 @@ function main(project) { */ // const returnPartialSuccess = true /** + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1/autoscalers.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/autoscalers.aggregated_list.js index 86ece22f43a..e856c07845c 100644 --- a/packages/google-cloud-compute/samples/generated/v1/autoscalers.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/autoscalers.aggregated_list.js @@ -57,6 +57,7 @@ function main(project) { */ // const returnPartialSuccess = true /** + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1/backend_buckets.set_edge_security_policy.js b/packages/google-cloud-compute/samples/generated/v1/backend_buckets.set_edge_security_policy.js index 0dd0c8438d7..2dc7cd7d779 100644 --- a/packages/google-cloud-compute/samples/generated/v1/backend_buckets.set_edge_security_policy.js +++ b/packages/google-cloud-compute/samples/generated/v1/backend_buckets.set_edge_security_policy.js @@ -29,7 +29,7 @@ function main(backendBucket, project, securityPolicyReferenceResource) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Name of the BackendService resource to which the security policy should be set. The name should conform to RFC1035. + * Name of the BackendBucket resource to which the security policy should be set. The name should conform to RFC1035. */ // const backendBucket = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/backend_services.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/backend_services.aggregated_list.js index b800c22bcb6..ff062c9547a 100644 --- a/packages/google-cloud-compute/samples/generated/v1/backend_services.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/backend_services.aggregated_list.js @@ -57,6 +57,7 @@ function main(project) { */ // const returnPartialSuccess = true /** + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1/disk_types.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/disk_types.aggregated_list.js index 0b516769945..e9dbc5e6151 100644 --- a/packages/google-cloud-compute/samples/generated/v1/disk_types.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/disk_types.aggregated_list.js @@ -57,6 +57,7 @@ function main(project) { */ // const returnPartialSuccess = true /** + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1/disks.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/disks.aggregated_list.js index 4a243155839..3176992a029 100644 --- a/packages/google-cloud-compute/samples/generated/v1/disks.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/disks.aggregated_list.js @@ -57,6 +57,7 @@ function main(project) { */ // const returnPartialSuccess = true /** + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1/forwarding_rules.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/forwarding_rules.aggregated_list.js index 9c36cb2e80f..e25b5fb3860 100644 --- a/packages/google-cloud-compute/samples/generated/v1/forwarding_rules.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/forwarding_rules.aggregated_list.js @@ -57,6 +57,7 @@ function main(project) { */ // const returnPartialSuccess = true /** + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1/global_operations.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/global_operations.aggregated_list.js index a3fd7981f5e..000e4f29478 100644 --- a/packages/google-cloud-compute/samples/generated/v1/global_operations.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/global_operations.aggregated_list.js @@ -57,6 +57,7 @@ function main(project) { */ // const returnPartialSuccess = true /** + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1/health_checks.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/health_checks.aggregated_list.js index d80c4e984f3..7826d35f187 100644 --- a/packages/google-cloud-compute/samples/generated/v1/health_checks.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/health_checks.aggregated_list.js @@ -57,6 +57,7 @@ function main(project) { */ // const returnPartialSuccess = true /** + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1/instance_group_managers.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/instance_group_managers.aggregated_list.js index 184b7551965..00d62bddb4c 100644 --- a/packages/google-cloud-compute/samples/generated/v1/instance_group_managers.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/instance_group_managers.aggregated_list.js @@ -57,6 +57,7 @@ function main(project) { */ // const returnPartialSuccess = true /** + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1/instance_groups.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/instance_groups.aggregated_list.js index fa212c613d2..bdc881d3417 100644 --- a/packages/google-cloud-compute/samples/generated/v1/instance_groups.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/instance_groups.aggregated_list.js @@ -57,6 +57,7 @@ function main(project) { */ // const returnPartialSuccess = true /** + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1/instance_templates.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/instance_templates.aggregated_list.js index ef0ff06d231..652bf435ea6 100644 --- a/packages/google-cloud-compute/samples/generated/v1/instance_templates.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/instance_templates.aggregated_list.js @@ -57,6 +57,7 @@ function main(project) { */ // const returnPartialSuccess = true /** + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1/instances.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/instances.aggregated_list.js index f0ef3fbe76d..c3700561716 100644 --- a/packages/google-cloud-compute/samples/generated/v1/instances.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/instances.aggregated_list.js @@ -57,6 +57,7 @@ function main(project) { */ // const returnPartialSuccess = true /** + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1/instances.perform_maintenance.js b/packages/google-cloud-compute/samples/generated/v1/instances.perform_maintenance.js new file mode 100644 index 00000000000..6877a43ec39 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/instances.perform_maintenance.js @@ -0,0 +1,75 @@ +// 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(instance, project, zone) { + // [START compute_v1_generated_Instances_PerformMaintenance_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. + */ + /** + * Name of the instance scoping this request. + */ + // const instance = '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 zone for this request. + */ + // const zone = 'abc123' + + // Imports the Compute library + const {InstancesClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new InstancesClient(); + + async function callPerformMaintenance() { + // Construct request + const request = { + instance, + project, + zone, + }; + + // Run request + const response = await computeClient.performMaintenance(request); + console.log(response); + } + + callPerformMaintenance(); + // [END compute_v1_generated_Instances_PerformMaintenance_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1/instances.simulate_maintenance_event.js b/packages/google-cloud-compute/samples/generated/v1/instances.simulate_maintenance_event.js index 7d87a016ffa..2d71c7b1030 100644 --- a/packages/google-cloud-compute/samples/generated/v1/instances.simulate_maintenance_event.js +++ b/packages/google-cloud-compute/samples/generated/v1/instances.simulate_maintenance_event.js @@ -40,6 +40,10 @@ function main(instance, project, zone) { * 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' + /** + * Determines whether the customers receive notifications before migration. Only applicable to SF vms. + */ + // const withExtendedNotifications = true /** * The name of the zone for this request. */ diff --git a/packages/google-cloud-compute/samples/generated/v1/instances.stop.js b/packages/google-cloud-compute/samples/generated/v1/instances.stop.js index 8a300b10a3a..cafe6fa9132 100644 --- a/packages/google-cloud-compute/samples/generated/v1/instances.stop.js +++ b/packages/google-cloud-compute/samples/generated/v1/instances.stop.js @@ -29,7 +29,7 @@ function main(instance, project, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * If true, discard the contents of any attached localSSD partitions. Default value is false. + * This property is required if the instance has any attached Local SSD disks. If false, Local SSD data will be preserved when the instance is suspended. If true, the contents of any attached Local SSD disks will be discarded. */ // const discardLocalSsd = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/instances.suspend.js b/packages/google-cloud-compute/samples/generated/v1/instances.suspend.js index c050b545af3..2765772bbd2 100644 --- a/packages/google-cloud-compute/samples/generated/v1/instances.suspend.js +++ b/packages/google-cloud-compute/samples/generated/v1/instances.suspend.js @@ -29,7 +29,7 @@ function main(instance, project, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * If true, discard the contents of any attached localSSD partitions. Default value is false. + * This property is required if the instance has any attached Local SSD disks. If false, Local SSD data will be preserved when the instance is suspended. If true, the contents of any attached Local SSD disks will be discarded. */ // const discardLocalSsd = true /** diff --git a/packages/google-cloud-compute/samples/generated/v1/interconnect_attachments.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/interconnect_attachments.aggregated_list.js index 29c29181d25..0dabb738c6b 100644 --- a/packages/google-cloud-compute/samples/generated/v1/interconnect_attachments.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/interconnect_attachments.aggregated_list.js @@ -57,6 +57,7 @@ function main(project) { */ // const returnPartialSuccess = true /** + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1/machine_types.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/machine_types.aggregated_list.js index 315d8da6495..d326043b9db 100644 --- a/packages/google-cloud-compute/samples/generated/v1/machine_types.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/machine_types.aggregated_list.js @@ -57,6 +57,7 @@ function main(project) { */ // const returnPartialSuccess = true /** + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1/network_attachments.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/network_attachments.aggregated_list.js index 447efc622ec..09708932511 100644 --- a/packages/google-cloud-compute/samples/generated/v1/network_attachments.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/network_attachments.aggregated_list.js @@ -57,6 +57,7 @@ function main(project) { */ // const returnPartialSuccess = true /** + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1/network_edge_security_services.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/network_edge_security_services.aggregated_list.js index 8ea3e10bcc2..1d915a0e90a 100644 --- a/packages/google-cloud-compute/samples/generated/v1/network_edge_security_services.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/network_edge_security_services.aggregated_list.js @@ -57,6 +57,7 @@ function main(project) { */ // const returnPartialSuccess = true /** + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1/network_endpoint_groups.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/network_endpoint_groups.aggregated_list.js index 3ffd5592ff5..9362c8b2bb1 100644 --- a/packages/google-cloud-compute/samples/generated/v1/network_endpoint_groups.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/network_endpoint_groups.aggregated_list.js @@ -57,6 +57,7 @@ function main(project) { */ // const returnPartialSuccess = true /** + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1/node_groups.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/node_groups.aggregated_list.js index 32ce86c78eb..a626937c327 100644 --- a/packages/google-cloud-compute/samples/generated/v1/node_groups.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/node_groups.aggregated_list.js @@ -57,6 +57,7 @@ function main(project) { */ // const returnPartialSuccess = true /** + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1/node_templates.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/node_templates.aggregated_list.js index b611bdd9fef..ad190293071 100644 --- a/packages/google-cloud-compute/samples/generated/v1/node_templates.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/node_templates.aggregated_list.js @@ -57,6 +57,7 @@ function main(project) { */ // const returnPartialSuccess = true /** + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1/node_types.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/node_types.aggregated_list.js index b642a0d1aa6..0f8eb7f3141 100644 --- a/packages/google-cloud-compute/samples/generated/v1/node_types.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/node_types.aggregated_list.js @@ -57,6 +57,7 @@ function main(project) { */ // const returnPartialSuccess = true /** + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1/packet_mirrorings.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/packet_mirrorings.aggregated_list.js index cfc42301708..54fcc72dda9 100644 --- a/packages/google-cloud-compute/samples/generated/v1/packet_mirrorings.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/packet_mirrorings.aggregated_list.js @@ -57,6 +57,7 @@ function main(project) { */ // const returnPartialSuccess = true /** + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1/public_delegated_prefixes.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/public_delegated_prefixes.aggregated_list.js index 773640b81b4..a7a0cf54887 100644 --- a/packages/google-cloud-compute/samples/generated/v1/public_delegated_prefixes.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/public_delegated_prefixes.aggregated_list.js @@ -57,6 +57,7 @@ function main(project) { */ // const returnPartialSuccess = true /** + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1/region_commitments.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/region_commitments.aggregated_list.js index 2d14ce0f2c6..720847a2c55 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_commitments.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_commitments.aggregated_list.js @@ -57,6 +57,7 @@ function main(project) { */ // const returnPartialSuccess = true /** + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1/region_zones.list.js b/packages/google-cloud-compute/samples/generated/v1/region_zones.list.js new file mode 100644 index 00000000000..3c66c845c50 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_zones.list.js @@ -0,0 +1,88 @@ +// 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(project, region) { + // [START compute_v1_generated_RegionZones_List_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. + */ + /** + * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + */ + // const filter = 'abc123' + /** + * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + */ + // const maxResults = 1234 + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + // const orderBy = 'abc123' + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + */ + // const pageToken = 'abc123' + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * Region for this request. + */ + // const region = 'us-central1' + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + */ + // const returnPartialSuccess = true + + // Imports the Compute library + const {RegionZonesClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionZonesClient(); + + async function callList() { + // Construct request + const request = { + project, + region, + }; + + // Run request + const iterable = computeClient.listAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callList(); + // [END compute_v1_generated_RegionZones_List_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1/reservations.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/reservations.aggregated_list.js index 943882995ed..992f4fe8ca6 100644 --- a/packages/google-cloud-compute/samples/generated/v1/reservations.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/reservations.aggregated_list.js @@ -57,6 +57,7 @@ function main(project) { */ // const returnPartialSuccess = true /** + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1/resource_policies.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/resource_policies.aggregated_list.js index 953cb9a20fc..9c652750cea 100644 --- a/packages/google-cloud-compute/samples/generated/v1/resource_policies.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/resource_policies.aggregated_list.js @@ -57,6 +57,7 @@ function main(project) { */ // const returnPartialSuccess = true /** + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1/routers.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/routers.aggregated_list.js index 1217a2fe4cb..17d86e61501 100644 --- a/packages/google-cloud-compute/samples/generated/v1/routers.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/routers.aggregated_list.js @@ -57,6 +57,7 @@ function main(project) { */ // const returnPartialSuccess = true /** + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1/security_policies.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/security_policies.aggregated_list.js index fdfa8407bc5..eeee8dd4b45 100644 --- a/packages/google-cloud-compute/samples/generated/v1/security_policies.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/security_policies.aggregated_list.js @@ -57,6 +57,7 @@ function main(project) { */ // const returnPartialSuccess = true /** + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1/service_attachments.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/service_attachments.aggregated_list.js index b9e09b1c486..92992c2e834 100644 --- a/packages/google-cloud-compute/samples/generated/v1/service_attachments.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/service_attachments.aggregated_list.js @@ -57,6 +57,7 @@ function main(project) { */ // const returnPartialSuccess = true /** + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1/snippet_metadata_google.cloud.compute.v1.json b/packages/google-cloud-compute/samples/generated/v1/snippet_metadata_google.cloud.compute.v1.json index 96b28a0ec4b..f7bf24f4e56 100644 --- a/packages/google-cloud-compute/samples/generated/v1/snippet_metadata_google.cloud.compute.v1.json +++ b/packages/google-cloud-compute/samples/generated/v1/snippet_metadata_google.cloud.compute.v1.json @@ -22,7 +22,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 83, "type": "FULL" } ], @@ -202,7 +202,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 83, "type": "FULL" } ], @@ -598,7 +598,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 83, "type": "FULL" } ], @@ -1650,7 +1650,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 83, "type": "FULL" } ], @@ -2486,7 +2486,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 83, "type": "FULL" } ], @@ -3434,7 +3434,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 83, "type": "FULL" } ], @@ -5058,7 +5058,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 83, "type": "FULL" } ], @@ -6530,7 +6530,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 83, "type": "FULL" } ], @@ -7190,7 +7190,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 83, "type": "FULL" } ], @@ -8210,7 +8210,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 83, "type": "FULL" } ], @@ -8771,7 +8771,7 @@ "regionTag": "compute_v1_generated_InstanceGroupManagers_ListManagedInstances_async", "title": "AcceleratorTypes listManagedInstances Sample", "origin": "API_DEFINITION", - "description": " Lists all of the instances in the managed instance group. Each instance in the list has a currentAction, which indicates the action that the managed instance group is performing on the instance. For example, if the group is still creating an instance, the currentAction is CREATING. If a previous action failed, the list displays the errors for that failed action. The orderBy query parameter is not supported. The `pageToken` query parameter is supported only in the alpha and beta API and only if the group's `listManagedInstancesResults` field is set to `PAGINATED`.", + "description": " Lists all of the instances in the managed instance group. Each instance in the list has a currentAction, which indicates the action that the managed instance group is performing on the instance. For example, if the group is still creating an instance, the currentAction is CREATING. If a previous action failed, the list displays the errors for that failed action. The orderBy query parameter is not supported. The `pageToken` query parameter is supported only if the group's `listManagedInstancesResults` field is set to `PAGINATED`.", "canonical": true, "file": "instance_group_managers.list_managed_instances.js", "language": "JAVASCRIPT", @@ -9362,7 +9362,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 83, "type": "FULL" } ], @@ -9946,7 +9946,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 83, "type": "FULL" } ], @@ -10835,6 +10835,58 @@ } } }, + { + "regionTag": "compute_v1_generated_Instances_PerformMaintenance_async", + "title": "AcceleratorTypes performMaintenance Sample", + "origin": "API_DEFINITION", + "description": " Perform a manual maintenance on the instance.", + "canonical": true, + "file": "instances.perform_maintenance.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 67, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "PerformMaintenance", + "fullName": "google.cloud.compute.v1.Instances.PerformMaintenance", + "async": true, + "parameters": [ + { + "name": "instance", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.Operation", + "client": { + "shortName": "InstancesClient", + "fullName": "google.cloud.compute.v1.InstancesClient" + }, + "method": { + "shortName": "PerformMaintenance", + "fullName": "google.cloud.compute.v1.Instances.PerformMaintenance", + "service": { + "shortName": "Instances", + "fullName": "google.cloud.compute.v1.Instances" + } + } + } + }, { "regionTag": "compute_v1_generated_Instances_RemoveResourcePolicies_async", "title": "AcceleratorTypes removeResourcePolicies Sample", @@ -11838,7 +11890,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 71, "type": "FULL" } ], @@ -11859,6 +11911,10 @@ "name": "request_id", "type": "TYPE_STRING" }, + { + "name": "with_extended_notifications", + "type": "TYPE_BOOL" + }, { "name": "zone", "type": "TYPE_STRING" @@ -12458,7 +12514,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 83, "type": "FULL" } ], @@ -12870,7 +12926,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 83, "type": "FULL" } ], @@ -14650,7 +14706,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 83, "type": "FULL" } ], @@ -14830,7 +14886,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 83, "type": "FULL" } ], @@ -15326,7 +15382,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 83, "type": "FULL" } ], @@ -15614,7 +15670,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 83, "type": "FULL" } ], @@ -17586,7 +17642,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 83, "type": "FULL" } ], @@ -18322,7 +18378,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 83, "type": "FULL" } ], @@ -18762,7 +18818,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 83, "type": "FULL" } ], @@ -18942,7 +18998,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 83, "type": "FULL" } ], @@ -20310,7 +20366,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 83, "type": "FULL" } ], @@ -21738,7 +21794,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 83, "type": "FULL" } ], @@ -24227,7 +24283,7 @@ "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_ListManagedInstances_async", "title": "AcceleratorTypes listManagedInstances Sample", "origin": "API_DEFINITION", - "description": " Lists the instances in the managed instance group and instances that are scheduled to be created. The list includes any current actions that the group has scheduled for its instances. The orderBy query parameter is not supported. The `pageToken` query parameter is supported only in the alpha and beta API and only if the group's `listManagedInstancesResults` field is set to `PAGINATED`.", + "description": " Lists the instances in the managed instance group and instances that are scheduled to be created. The list includes any current actions that the group has scheduled for its instances. The orderBy query parameter is not supported. The `pageToken` query parameter is supported only if the group's `listManagedInstancesResults` field is set to `PAGINATED`.", "canonical": true, "file": "region_instance_group_managers.list_managed_instances.js", "language": "JAVASCRIPT", @@ -29423,6 +29479,70 @@ } } }, + { + "regionTag": "compute_v1_generated_RegionZones_List_async", + "title": "AcceleratorTypes list Sample", + "origin": "API_DEFINITION", + "description": " Retrieves the list of Zone resources under the specific region available to the specified project.", + "canonical": true, + "file": "region_zones.list.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 80, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "List", + "fullName": "google.cloud.compute.v1.RegionZones.List", + "async": true, + "parameters": [ + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "max_results", + "type": "TYPE_UINT32" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "return_partial_success", + "type": "TYPE_BOOL" + } + ], + "resultType": ".google.cloud.compute.v1.ZoneList", + "client": { + "shortName": "RegionZonesClient", + "fullName": "google.cloud.compute.v1.RegionZonesClient" + }, + "method": { + "shortName": "List", + "fullName": "google.cloud.compute.v1.RegionZones.List", + "service": { + "shortName": "RegionZones", + "fullName": "google.cloud.compute.v1.RegionZones" + } + } + } + }, { "regionTag": "compute_v1_generated_Reservations_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", @@ -29434,7 +29554,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 83, "type": "FULL" } ], @@ -29994,7 +30114,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 83, "type": "FULL" } ], @@ -30494,7 +30614,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 83, "type": "FULL" } ], @@ -31366,7 +31486,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 83, "type": "FULL" } ], @@ -31958,7 +32078,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 83, "type": "FULL" } ], @@ -32938,7 +33058,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 83, "type": "FULL" } ], @@ -33206,7 +33326,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 83, "type": "FULL" } ], @@ -33586,7 +33706,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 83, "type": "FULL" } ], @@ -34510,7 +34630,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 83, "type": "FULL" } ], @@ -34882,7 +35002,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 83, "type": "FULL" } ], @@ -35462,7 +35582,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 83, "type": "FULL" } ], @@ -35914,7 +36034,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 83, "type": "FULL" } ], @@ -36879,7 +36999,7 @@ "regionTag": "compute_v1_generated_TargetSslProxies_SetSslPolicy_async", "title": "AcceleratorTypes setSslPolicy Sample", "origin": "API_DEFINITION", - "description": " Sets the SSL policy for TargetSslProxy. The SSL policy specifies the server-side support for SSL features. This affects connections between clients and the SSL proxy load balancer. They do not affect the connection between the load balancer and the backends.", + "description": " Sets the SSL policy for TargetSslProxy. The SSL policy specifies the server-side support for SSL features. This affects connections between clients and the load balancer. They do not affect the connection between the load balancer and the backends.", "canonical": true, "file": "target_ssl_proxies.set_ssl_policy.js", "language": "JAVASCRIPT", @@ -36938,7 +37058,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 83, "type": "FULL" } ], @@ -37310,7 +37430,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 83, "type": "FULL" } ], @@ -37650,7 +37770,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 83, "type": "FULL" } ], @@ -38122,7 +38242,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 83, "type": "FULL" } ], @@ -38562,7 +38682,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 83, "type": "FULL" } ], diff --git a/packages/google-cloud-compute/samples/generated/v1/ssl_certificates.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/ssl_certificates.aggregated_list.js index 7875e65e5bd..b0b9a6e67f4 100644 --- a/packages/google-cloud-compute/samples/generated/v1/ssl_certificates.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/ssl_certificates.aggregated_list.js @@ -57,6 +57,7 @@ function main(project) { */ // const returnPartialSuccess = true /** + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1/ssl_policies.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/ssl_policies.aggregated_list.js index 6e800ec6f9b..46b5923a07b 100644 --- a/packages/google-cloud-compute/samples/generated/v1/ssl_policies.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/ssl_policies.aggregated_list.js @@ -57,6 +57,7 @@ function main(project) { */ // const returnPartialSuccess = true /** + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1/subnetworks.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/subnetworks.aggregated_list.js index 0a63d55f955..0e1eb571d30 100644 --- a/packages/google-cloud-compute/samples/generated/v1/subnetworks.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/subnetworks.aggregated_list.js @@ -57,6 +57,7 @@ function main(project) { */ // const returnPartialSuccess = true /** + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1/target_http_proxies.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/target_http_proxies.aggregated_list.js index 9c4012c90a3..eacfc1f0963 100644 --- a/packages/google-cloud-compute/samples/generated/v1/target_http_proxies.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/target_http_proxies.aggregated_list.js @@ -57,6 +57,7 @@ function main(project) { */ // const returnPartialSuccess = true /** + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1/target_https_proxies.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/target_https_proxies.aggregated_list.js index 9e275f67b23..ce1e9447c63 100644 --- a/packages/google-cloud-compute/samples/generated/v1/target_https_proxies.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/target_https_proxies.aggregated_list.js @@ -57,6 +57,7 @@ function main(project) { */ // const returnPartialSuccess = true /** + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1/target_instances.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/target_instances.aggregated_list.js index 8a6d80ce92a..08109cc538f 100644 --- a/packages/google-cloud-compute/samples/generated/v1/target_instances.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/target_instances.aggregated_list.js @@ -57,6 +57,7 @@ function main(project) { */ // const returnPartialSuccess = true /** + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1/target_pools.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/target_pools.aggregated_list.js index ecda48dc539..703c9c556bd 100644 --- a/packages/google-cloud-compute/samples/generated/v1/target_pools.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/target_pools.aggregated_list.js @@ -57,6 +57,7 @@ function main(project) { */ // const returnPartialSuccess = true /** + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1/target_tcp_proxies.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/target_tcp_proxies.aggregated_list.js index 4d1d29f9f30..04034898c20 100644 --- a/packages/google-cloud-compute/samples/generated/v1/target_tcp_proxies.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/target_tcp_proxies.aggregated_list.js @@ -57,6 +57,7 @@ function main(project) { */ // const returnPartialSuccess = true /** + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1/target_vpn_gateways.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/target_vpn_gateways.aggregated_list.js index e5a7d4c655b..942cd409f56 100644 --- a/packages/google-cloud-compute/samples/generated/v1/target_vpn_gateways.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/target_vpn_gateways.aggregated_list.js @@ -57,6 +57,7 @@ function main(project) { */ // const returnPartialSuccess = true /** + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1/url_maps.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/url_maps.aggregated_list.js index a10b91d038e..8c67e985b51 100644 --- a/packages/google-cloud-compute/samples/generated/v1/url_maps.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/url_maps.aggregated_list.js @@ -57,6 +57,7 @@ function main(project) { */ // const returnPartialSuccess = true /** + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1/vpn_gateways.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/vpn_gateways.aggregated_list.js index ca148b611a8..377ae91cab4 100644 --- a/packages/google-cloud-compute/samples/generated/v1/vpn_gateways.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/vpn_gateways.aggregated_list.js @@ -57,6 +57,7 @@ function main(project) { */ // const returnPartialSuccess = true /** + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/samples/generated/v1/vpn_tunnels.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/vpn_tunnels.aggregated_list.js index 71cf72fa065..17864403b38 100644 --- a/packages/google-cloud-compute/samples/generated/v1/vpn_tunnels.aggregated_list.js +++ b/packages/google-cloud-compute/samples/generated/v1/vpn_tunnels.aggregated_list.js @@ -57,6 +57,7 @@ function main(project) { */ // const returnPartialSuccess = true /** + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. */ // const serviceProjectNumber = 1234 diff --git a/packages/google-cloud-compute/src/index.ts b/packages/google-cloud-compute/src/index.ts index 20415c3926e..023a1f766a7 100644 --- a/packages/google-cloud-compute/src/index.ts +++ b/packages/google-cloud-compute/src/index.ts @@ -158,6 +158,8 @@ const RegionTargetTcpProxiesClient = v1.RegionTargetTcpProxiesClient; type RegionTargetTcpProxiesClient = v1.RegionTargetTcpProxiesClient; const RegionUrlMapsClient = v1.RegionUrlMapsClient; type RegionUrlMapsClient = v1.RegionUrlMapsClient; +const RegionZonesClient = v1.RegionZonesClient; +type RegionZonesClient = v1.RegionZonesClient; const ReservationsClient = v1.ReservationsClient; type ReservationsClient = v1.ReservationsClient; const ResourcePoliciesClient = v1.ResourcePoliciesClient; @@ -277,6 +279,7 @@ export { RegionTargetHttpsProxiesClient, RegionTargetTcpProxiesClient, RegionUrlMapsClient, + RegionZonesClient, ReservationsClient, ResourcePoliciesClient, RoutersClient, @@ -372,6 +375,7 @@ export default { RegionTargetHttpsProxiesClient, RegionTargetTcpProxiesClient, RegionUrlMapsClient, + RegionZonesClient, ReservationsClient, ResourcePoliciesClient, RoutersClient, diff --git a/packages/google-cloud-compute/src/v1/accelerator_types_client.ts b/packages/google-cloud-compute/src/v1/accelerator_types_client.ts index b557731dde1..ae869fb5fbd 100644 --- a/packages/google-cloud-compute/src/v1/accelerator_types_client.ts +++ b/packages/google-cloud-compute/src/v1/accelerator_types_client.ts @@ -491,6 +491,7 @@ export class AcceleratorTypesClient { * @param {boolean} request.returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @param {number} request.serviceProjectNumber + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/addresses_client.ts b/packages/google-cloud-compute/src/v1/addresses_client.ts index 4185e54cf7d..6fc8652496a 100644 --- a/packages/google-cloud-compute/src/v1/addresses_client.ts +++ b/packages/google-cloud-compute/src/v1/addresses_client.ts @@ -963,6 +963,7 @@ export class AddressesClient { * @param {boolean} request.returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @param {number} request.serviceProjectNumber + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/autoscalers_client.ts b/packages/google-cloud-compute/src/v1/autoscalers_client.ts index 9d49a91cbac..a7b6b8b22bd 100644 --- a/packages/google-cloud-compute/src/v1/autoscalers_client.ts +++ b/packages/google-cloud-compute/src/v1/autoscalers_client.ts @@ -977,6 +977,7 @@ export class AutoscalersClient { * @param {boolean} request.returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @param {number} request.serviceProjectNumber + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/backend_buckets_client.ts b/packages/google-cloud-compute/src/v1/backend_buckets_client.ts index 49c4ea8fa32..14a48d9f9e0 100644 --- a/packages/google-cloud-compute/src/v1/backend_buckets_client.ts +++ b/packages/google-cloud-compute/src/v1/backend_buckets_client.ts @@ -1183,7 +1183,7 @@ export class BackendBucketsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.backendBucket - * Name of the BackendService resource to which the security policy should be set. The name should conform to RFC1035. + * Name of the BackendBucket resource to which the security policy should be set. The name should conform to RFC1035. * @param {string} request.project * Project ID for this request. * @param {string} request.requestId diff --git a/packages/google-cloud-compute/src/v1/backend_services_client.ts b/packages/google-cloud-compute/src/v1/backend_services_client.ts index ee71d42a74f..a57ab4636e1 100644 --- a/packages/google-cloud-compute/src/v1/backend_services_client.ts +++ b/packages/google-cloud-compute/src/v1/backend_services_client.ts @@ -1881,6 +1881,7 @@ export class BackendServicesClient { * @param {boolean} request.returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @param {number} request.serviceProjectNumber + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/disk_types_client.ts b/packages/google-cloud-compute/src/v1/disk_types_client.ts index 9aa145ba5ed..ceefdd13602 100644 --- a/packages/google-cloud-compute/src/v1/disk_types_client.ts +++ b/packages/google-cloud-compute/src/v1/disk_types_client.ts @@ -480,6 +480,7 @@ export class DiskTypesClient { * @param {boolean} request.returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @param {number} request.serviceProjectNumber + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/disks_client.ts b/packages/google-cloud-compute/src/v1/disks_client.ts index 3bea653376b..a9c9f8f882f 100644 --- a/packages/google-cloud-compute/src/v1/disks_client.ts +++ b/packages/google-cloud-compute/src/v1/disks_client.ts @@ -2243,6 +2243,7 @@ export class DisksClient { * @param {boolean} request.returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @param {number} request.serviceProjectNumber + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/forwarding_rules_client.ts b/packages/google-cloud-compute/src/v1/forwarding_rules_client.ts index 554ebf29fd5..3be21a3df73 100644 --- a/packages/google-cloud-compute/src/v1/forwarding_rules_client.ts +++ b/packages/google-cloud-compute/src/v1/forwarding_rules_client.ts @@ -1117,6 +1117,7 @@ export class ForwardingRulesClient { * @param {boolean} request.returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @param {number} request.serviceProjectNumber + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/gapic_metadata.json b/packages/google-cloud-compute/src/v1/gapic_metadata.json index 7f1719d09ee..468c8de2ecf 100644 --- a/packages/google-cloud-compute/src/v1/gapic_metadata.json +++ b/packages/google-cloud-compute/src/v1/gapic_metadata.json @@ -2395,6 +2395,11 @@ "insert" ] }, + "PerformMaintenance": { + "methods": [ + "performMaintenance" + ] + }, "RemoveResourcePolicies": { "methods": [ "removeResourcePolicies" @@ -2641,6 +2646,11 @@ "insert" ] }, + "PerformMaintenance": { + "methods": [ + "performMaintenance" + ] + }, "RemoveResourcePolicies": { "methods": [ "removeResourcePolicies" @@ -6809,6 +6819,34 @@ } } }, + "RegionZones": { + "clients": { + "grpc": { + "libraryClient": "RegionZonesClient", + "rpcs": { + "List": { + "methods": [ + "list", + "listStream", + "listAsync" + ] + } + } + }, + "grpc-fallback": { + "libraryClient": "RegionZonesClient", + "rpcs": { + "List": { + "methods": [ + "list", + "listStream", + "listAsync" + ] + } + } + } + } + }, "Reservations": { "clients": { "grpc": { diff --git a/packages/google-cloud-compute/src/v1/global_operations_client.ts b/packages/google-cloud-compute/src/v1/global_operations_client.ts index 83fa06d5ecd..158fbb5b1d7 100644 --- a/packages/google-cloud-compute/src/v1/global_operations_client.ts +++ b/packages/google-cloud-compute/src/v1/global_operations_client.ts @@ -676,6 +676,7 @@ export class GlobalOperationsClient { * @param {boolean} request.returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @param {number} request.serviceProjectNumber + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/health_checks_client.ts b/packages/google-cloud-compute/src/v1/health_checks_client.ts index 82d00bf5e47..b68f970ae76 100644 --- a/packages/google-cloud-compute/src/v1/health_checks_client.ts +++ b/packages/google-cloud-compute/src/v1/health_checks_client.ts @@ -970,6 +970,7 @@ export class HealthChecksClient { * @param {boolean} request.returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @param {number} request.serviceProjectNumber + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/index.ts b/packages/google-cloud-compute/src/v1/index.ts index 2be4de5a244..1e672199f26 100644 --- a/packages/google-cloud-compute/src/v1/index.ts +++ b/packages/google-cloud-compute/src/v1/index.ts @@ -83,6 +83,7 @@ export {RegionTargetHttpProxiesClient} from './region_target_http_proxies_client export {RegionTargetHttpsProxiesClient} from './region_target_https_proxies_client'; export {RegionTargetTcpProxiesClient} from './region_target_tcp_proxies_client'; export {RegionUrlMapsClient} from './region_url_maps_client'; +export {RegionZonesClient} from './region_zones_client'; export {ReservationsClient} from './reservations_client'; export {ResourcePoliciesClient} from './resource_policies_client'; export {RoutersClient} from './routers_client'; diff --git a/packages/google-cloud-compute/src/v1/instance_group_managers_client.ts b/packages/google-cloud-compute/src/v1/instance_group_managers_client.ts index 5e0b2a391a6..425479ac813 100644 --- a/packages/google-cloud-compute/src/v1/instance_group_managers_client.ts +++ b/packages/google-cloud-compute/src/v1/instance_group_managers_client.ts @@ -2272,6 +2272,7 @@ export class InstanceGroupManagersClient { * @param {boolean} request.returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @param {number} request.serviceProjectNumber + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -2745,7 +2746,7 @@ export class InstanceGroupManagersClient { ) as AsyncIterable; } /** - * Lists all of the instances in the managed instance group. Each instance in the list has a currentAction, which indicates the action that the managed instance group is performing on the instance. For example, if the group is still creating an instance, the currentAction is CREATING. If a previous action failed, the list displays the errors for that failed action. The orderBy query parameter is not supported. The `pageToken` query parameter is supported only in the alpha and beta API and only if the group's `listManagedInstancesResults` field is set to `PAGINATED`. + * Lists all of the instances in the managed instance group. Each instance in the list has a currentAction, which indicates the action that the managed instance group is performing on the instance. For example, if the group is still creating an instance, the currentAction is CREATING. If a previous action failed, the list displays the errors for that failed action. The orderBy query parameter is not supported. The `pageToken` query parameter is supported only if the group's `listManagedInstancesResults` field is set to `PAGINATED`. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-compute/src/v1/instance_groups_client.ts b/packages/google-cloud-compute/src/v1/instance_groups_client.ts index 917a7bba50b..0bf93948654 100644 --- a/packages/google-cloud-compute/src/v1/instance_groups_client.ts +++ b/packages/google-cloud-compute/src/v1/instance_groups_client.ts @@ -1123,6 +1123,7 @@ export class InstanceGroupsClient { * @param {boolean} request.returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @param {number} request.serviceProjectNumber + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/instance_templates_client.ts b/packages/google-cloud-compute/src/v1/instance_templates_client.ts index af55f2e5f96..e0cc676c6da 100644 --- a/packages/google-cloud-compute/src/v1/instance_templates_client.ts +++ b/packages/google-cloud-compute/src/v1/instance_templates_client.ts @@ -1036,6 +1036,7 @@ export class InstanceTemplatesClient { * @param {boolean} request.returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @param {number} request.serviceProjectNumber + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/instances_client.ts b/packages/google-cloud-compute/src/v1/instances_client.ts index 8cf06437efd..9ec5341a328 100644 --- a/packages/google-cloud-compute/src/v1/instances_client.ts +++ b/packages/google-cloud-compute/src/v1/instances_client.ts @@ -277,6 +277,7 @@ export class InstancesClient { 'insert', 'list', 'listReferrers', + 'performMaintenance', 'removeResourcePolicies', 'reset', 'resume', @@ -2117,6 +2118,129 @@ export class InstancesClient { } ); } + /** + * Perform a manual maintenance on the instance. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.instance + * Name of the instance scoping this request. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.requestId + * 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). + * @param {string} request.zone + * The name of the zone for this request. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation } + * for more details and examples. + * This method is considered to be in beta. This means while + * stable it is still a work-in-progress and under active development, + * and might get backwards-incompatible changes at any time. + * `.promise()` is not supported yet. + * @example include:samples/generated/v1/instances.perform_maintenance.js + * region_tag:compute_v1_generated_Instances_PerformMaintenance_async + */ + performMaintenance( + request?: protos.google.cloud.compute.v1.IPerformMaintenanceInstanceRequest, + options?: CallOptions + ): Promise< + [ + LROperation, + protos.google.cloud.compute.v1.IOperation | undefined, + {} | undefined, + ] + >; + performMaintenance( + request: protos.google.cloud.compute.v1.IPerformMaintenanceInstanceRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.IPerformMaintenanceInstanceRequest + | null + | undefined, + {} | null | undefined + > + ): void; + performMaintenance( + request: protos.google.cloud.compute.v1.IPerformMaintenanceInstanceRequest, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.IPerformMaintenanceInstanceRequest + | null + | undefined, + {} | null | undefined + > + ): void; + performMaintenance( + request?: protos.google.cloud.compute.v1.IPerformMaintenanceInstanceRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.IPerformMaintenanceInstanceRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.IPerformMaintenanceInstanceRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation, + protos.google.cloud.compute.v1.IOperation | undefined, + {} | undefined, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + project: request.project ?? '', + zone: request.zone ?? '', + instance: request.instance ?? '', + }); + this.initialize(); + return this.innerApiCalls + .performMaintenance(request, options, callback) + .then( + ([response, operation, rawResponse]: [ + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IOperation, + ]) => { + return [ + { + latestResponse: response, + done: false, + name: response.id, + metadata: null, + result: {}, + }, + operation, + rawResponse, + ]; + } + ); + } /** * Removes resource policies from an instance. * @@ -4306,6 +4430,8 @@ export class InstancesClient { * Project ID for this request. * @param {string} request.requestId * 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). + * @param {boolean} request.withExtendedNotifications + * Determines whether the customers receive notifications before migration. Only applicable to SF vms. * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -4666,7 +4792,7 @@ export class InstancesClient { * @param {Object} request * The request object that will be sent. * @param {boolean} request.discardLocalSsd - * If true, discard the contents of any attached localSSD partitions. Default value is false. + * This property is required if the instance has any attached Local SSD disks. If false, Local SSD data will be preserved when the instance is suspended. If true, the contents of any attached Local SSD disks will be discarded. * @param {string} request.instance * Name of the instance resource to stop. * @param {string} request.project @@ -4785,7 +4911,7 @@ export class InstancesClient { * @param {Object} request * The request object that will be sent. * @param {boolean} request.discardLocalSsd - * If true, discard the contents of any attached localSSD partitions. Default value is false. + * This property is required if the instance has any attached Local SSD disks. If false, Local SSD data will be preserved when the instance is suspended. If true, the contents of any attached Local SSD disks will be discarded. * @param {string} request.instance * Name of the instance resource to suspend. * @param {string} request.project @@ -5653,6 +5779,7 @@ export class InstancesClient { * @param {boolean} request.returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @param {number} request.serviceProjectNumber + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/instances_client_config.json b/packages/google-cloud-compute/src/v1/instances_client_config.json index 604af750062..601f08688a0 100644 --- a/packages/google-cloud-compute/src/v1/instances_client_config.json +++ b/packages/google-cloud-compute/src/v1/instances_client_config.json @@ -92,6 +92,10 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "PerformMaintenance": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "RemoveResourcePolicies": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" diff --git a/packages/google-cloud-compute/src/v1/interconnect_attachments_client.ts b/packages/google-cloud-compute/src/v1/interconnect_attachments_client.ts index 7e78e6021f1..da15d71624e 100644 --- a/packages/google-cloud-compute/src/v1/interconnect_attachments_client.ts +++ b/packages/google-cloud-compute/src/v1/interconnect_attachments_client.ts @@ -1000,6 +1000,7 @@ export class InterconnectAttachmentsClient { * @param {boolean} request.returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @param {number} request.serviceProjectNumber + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/machine_types_client.ts b/packages/google-cloud-compute/src/v1/machine_types_client.ts index 9d1922ca9f9..0fc9484ffd8 100644 --- a/packages/google-cloud-compute/src/v1/machine_types_client.ts +++ b/packages/google-cloud-compute/src/v1/machine_types_client.ts @@ -482,6 +482,7 @@ export class MachineTypesClient { * @param {boolean} request.returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @param {number} request.serviceProjectNumber + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/network_attachments_client.ts b/packages/google-cloud-compute/src/v1/network_attachments_client.ts index 726512b29a4..96a25fa87ca 100644 --- a/packages/google-cloud-compute/src/v1/network_attachments_client.ts +++ b/packages/google-cloud-compute/src/v1/network_attachments_client.ts @@ -1180,6 +1180,7 @@ export class NetworkAttachmentsClient { * @param {boolean} request.returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @param {number} request.serviceProjectNumber + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/network_edge_security_services_client.ts b/packages/google-cloud-compute/src/v1/network_edge_security_services_client.ts index 02672af6d78..2f05514d308 100644 --- a/packages/google-cloud-compute/src/v1/network_edge_security_services_client.ts +++ b/packages/google-cloud-compute/src/v1/network_edge_security_services_client.ts @@ -872,6 +872,7 @@ export class NetworkEdgeSecurityServicesClient { * @param {boolean} request.returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @param {number} request.serviceProjectNumber + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/network_endpoint_groups_client.ts b/packages/google-cloud-compute/src/v1/network_endpoint_groups_client.ts index 298ddbe706d..4a9a591d2fa 100644 --- a/packages/google-cloud-compute/src/v1/network_endpoint_groups_client.ts +++ b/packages/google-cloud-compute/src/v1/network_endpoint_groups_client.ts @@ -1109,6 +1109,7 @@ export class NetworkEndpointGroupsClient { * @param {boolean} request.returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @param {number} request.serviceProjectNumber + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/node_groups_client.ts b/packages/google-cloud-compute/src/v1/node_groups_client.ts index 66b860eb72f..4d53515b729 100644 --- a/packages/google-cloud-compute/src/v1/node_groups_client.ts +++ b/packages/google-cloud-compute/src/v1/node_groups_client.ts @@ -1656,6 +1656,7 @@ export class NodeGroupsClient { * @param {boolean} request.returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @param {number} request.serviceProjectNumber + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/node_templates_client.ts b/packages/google-cloud-compute/src/v1/node_templates_client.ts index 51f96c98955..c326f9e5565 100644 --- a/packages/google-cloud-compute/src/v1/node_templates_client.ts +++ b/packages/google-cloud-compute/src/v1/node_templates_client.ts @@ -1048,6 +1048,7 @@ export class NodeTemplatesClient { * @param {boolean} request.returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @param {number} request.serviceProjectNumber + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/node_types_client.ts b/packages/google-cloud-compute/src/v1/node_types_client.ts index e4019ff682f..1a77e1f0e5a 100644 --- a/packages/google-cloud-compute/src/v1/node_types_client.ts +++ b/packages/google-cloud-compute/src/v1/node_types_client.ts @@ -480,6 +480,7 @@ export class NodeTypesClient { * @param {boolean} request.returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @param {number} request.serviceProjectNumber + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/packet_mirrorings_client.ts b/packages/google-cloud-compute/src/v1/packet_mirrorings_client.ts index 0f58e032f77..fc005c84ae5 100644 --- a/packages/google-cloud-compute/src/v1/packet_mirrorings_client.ts +++ b/packages/google-cloud-compute/src/v1/packet_mirrorings_client.ts @@ -970,6 +970,7 @@ export class PacketMirroringsClient { * @param {boolean} request.returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @param {number} request.serviceProjectNumber + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/public_delegated_prefixes_client.ts b/packages/google-cloud-compute/src/v1/public_delegated_prefixes_client.ts index 1962fbb92b3..2753bec1e67 100644 --- a/packages/google-cloud-compute/src/v1/public_delegated_prefixes_client.ts +++ b/packages/google-cloud-compute/src/v1/public_delegated_prefixes_client.ts @@ -1120,6 +1120,7 @@ export class PublicDelegatedPrefixesClient { * @param {boolean} request.returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @param {number} request.serviceProjectNumber + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/region_commitments_client.ts b/packages/google-cloud-compute/src/v1/region_commitments_client.ts index e31820df754..5b13ca0fb88 100644 --- a/packages/google-cloud-compute/src/v1/region_commitments_client.ts +++ b/packages/google-cloud-compute/src/v1/region_commitments_client.ts @@ -744,6 +744,7 @@ export class RegionCommitmentsClient { * @param {boolean} request.returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @param {number} request.serviceProjectNumber + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/region_instance_group_managers_client.ts b/packages/google-cloud-compute/src/v1/region_instance_group_managers_client.ts index ffb86ced87a..be28e5af053 100644 --- a/packages/google-cloud-compute/src/v1/region_instance_group_managers_client.ts +++ b/packages/google-cloud-compute/src/v1/region_instance_group_managers_client.ts @@ -2682,7 +2682,7 @@ export class RegionInstanceGroupManagersClient { ) as AsyncIterable; } /** - * Lists the instances in the managed instance group and instances that are scheduled to be created. The list includes any current actions that the group has scheduled for its instances. The orderBy query parameter is not supported. The `pageToken` query parameter is supported only in the alpha and beta API and only if the group's `listManagedInstancesResults` field is set to `PAGINATED`. + * Lists the instances in the managed instance group and instances that are scheduled to be created. The list includes any current actions that the group has scheduled for its instances. The orderBy query parameter is not supported. The `pageToken` query parameter is supported only if the group's `listManagedInstancesResults` field is set to `PAGINATED`. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-compute/src/v1/region_zones_client.ts b/packages/google-cloud-compute/src/v1/region_zones_client.ts new file mode 100644 index 00000000000..2f01467605e --- /dev/null +++ b/packages/google-cloud-compute/src/v1/region_zones_client.ts @@ -0,0 +1,590 @@ +// 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. ** + +/* global window */ +import type * as gax from 'google-gax'; +import type { + Callback, + CallOptions, + Descriptors, + ClientOptions, + PaginationCallback, + GaxCall, +} from 'google-gax'; +import {Transform} from 'stream'; +import * as protos from '../../protos/protos'; +import jsonProtos = require('../../protos/protos.json'); + +/** + * Client JSON configuration object, loaded from + * `src/v1/region_zones_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ +import * as gapicConfig from './region_zones_client_config.json'; +const version = require('../../../package.json').version; + +/** + * The RegionZones API. + * @class + * @memberof v1 + */ +export class RegionZonesClient { + private _terminated = false; + private _opts: ClientOptions; + private _providedCustomServicePath: boolean; + private _gaxModule: typeof gax | typeof gax.fallback; + private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; + private _protos: {}; + private _defaults: {[method: string]: gax.CallSettings}; + private _universeDomain: string; + private _servicePath: string; + auth: gax.GoogleAuth; + descriptors: Descriptors = { + page: {}, + stream: {}, + longrunning: {}, + batching: {}, + }; + warn: (code: string, message: string, warnType?: string) => void; + innerApiCalls: {[name: string]: Function}; + regionZonesStub?: Promise<{[name: string]: Function}>; + + /** + * Construct an instance of RegionZonesClient. + * + * @param {object} [options] - The configuration object. + * The options accepted by the constructor are described in detail + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). + * The common options are: + * @param {object} [options.credentials] - Credentials object. + * @param {string} [options.credentials.client_email] + * @param {string} [options.credentials.private_key] + * @param {string} [options.email] - Account email address. Required when + * using a .pem or .p12 keyFilename. + * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or + * .p12 key downloaded from the Google Developers Console. If you provide + * a path to a JSON file, the projectId option below is not necessary. + * NOTE: .pem and .p12 require you to specify options.email as well. + * @param {number} [options.port] - The port on which to connect to + * the remote host. + * @param {string} [options.projectId] - The project ID from the Google + * Developer's Console, e.g. 'grape-spaceship-123'. We will also check + * the environment variable GCLOUD_PROJECT for your project ID. If your + * app is running in an environment which supports + * {@link https://developers.google.com/identity/protocols/application-default-credentials Application Default Credentials}, + * your project ID will be detected automatically. + * @param {string} [options.apiEndpoint] - The domain name of the + * API remote host. + * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. + * Follows the structure of {@link gapicConfig}. + * @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new RegionZonesClient({fallback: true}, gax); + * ``` + */ + constructor( + opts?: ClientOptions, + gaxInstance?: typeof gax | typeof gax.fallback + ) { + // Ensure that options include all the required fields. + const staticMembers = this.constructor as typeof RegionZonesClient; + if ( + opts?.universe_domain && + opts?.universeDomain && + opts?.universe_domain !== opts?.universeDomain + ) { + throw new Error( + 'Please set either universe_domain or universeDomain, but not both.' + ); + } + this._universeDomain = + opts?.universeDomain ?? opts?.universe_domain ?? 'googleapis.com'; + this._servicePath = 'compute.' + this._universeDomain; + const servicePath = + opts?.servicePath || opts?.apiEndpoint || this._servicePath; + this._providedCustomServicePath = !!( + opts?.servicePath || opts?.apiEndpoint + ); + const port = opts?.port || staticMembers.port; + const clientConfig = opts?.clientConfig ?? {}; + // Implicitly enable HTTP transport for the APIs that use REST as transport (e.g. Google Cloud Compute). + if (!opts) { + opts = {fallback: true}; + } else { + opts.fallback = opts.fallback ?? true; + } + const fallback = + opts?.fallback ?? + (typeof window !== 'undefined' && typeof window?.fetch === 'function'); + opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); + + // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. + if (servicePath !== this._servicePath && !('scopes' in opts)) { + opts['scopes'] = staticMembers.scopes; + } + + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + + // Choose either gRPC or proto-over-HTTP implementation of google-gax. + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; + + // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. + this._gaxGrpc = new this._gaxModule.GrpcClient(opts); + + // Save options to use in initialize() method. + this._opts = opts; + + // Save the auth object to the client, for use by other methods. + this.auth = this._gaxGrpc.auth as gax.GoogleAuth; + + // Set defaultServicePath on the auth object. + this.auth.defaultServicePath = this._servicePath; + + // Set the default scopes in auth client if needed. + if (servicePath === this._servicePath) { + this.auth.defaultScopes = staticMembers.scopes; + } + + // Determine the client header string. + const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; + if (typeof process !== 'undefined' && 'versions' in process) { + clientHeader.push(`gl-node/${process.versions.node}`); + } else { + clientHeader.push(`gl-web/${this._gaxModule.version}`); + } + if (!opts.fallback) { + clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`); + } else { + clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`); + } + if (opts.libName && opts.libVersion) { + clientHeader.push(`${opts.libName}/${opts.libVersion}`); + } + // Load the applicable protos. + this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos); + + // Some of the methods on this service return "paged" results, + // (e.g. 50 results at a time, with tokens to get subsequent + // pages). Denote the keys used for pagination and results. + this.descriptors.page = { + list: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'items' + ), + }; + + // Put together the default options sent with requests. + this._defaults = this._gaxGrpc.constructSettings( + 'google.cloud.compute.v1.RegionZones', + gapicConfig as gax.ClientConfig, + opts.clientConfig || {}, + {'x-goog-api-client': clientHeader.join(' ')} + ); + + // Set up a dictionary of "inner API calls"; the core implementation + // of calling the API is handled in `google-gax`, with this code + // merely providing the destination and request information. + this.innerApiCalls = {}; + + // Add a warn function to the client constructor so it can be easily tested. + this.warn = this._gaxModule.warn; + } + + /** + * Initialize the client. + * Performs asynchronous operations (such as authentication) and prepares the client. + * This function will be called automatically when any class method is called for the + * first time, but if you need to initialize it before calling an actual method, + * feel free to call initialize() directly. + * + * You can await on this method if you want to make sure the client is initialized. + * + * @returns {Promise} A promise that resolves to an authenticated service stub. + */ + initialize() { + // If the client stub promise is already initialized, return immediately. + if (this.regionZonesStub) { + return this.regionZonesStub; + } + + // Put together the "service stub" for + // google.cloud.compute.v1.RegionZones. + this.regionZonesStub = this._gaxGrpc.createStub( + this._opts.fallback + ? (this._protos as protobuf.Root).lookupService( + 'google.cloud.compute.v1.RegionZones' + ) + : // eslint-disable-next-line @typescript-eslint/no-explicit-any + (this._protos as any).google.cloud.compute.v1.RegionZones, + this._opts, + this._providedCustomServicePath + ) as Promise<{[method: string]: Function}>; + + // Iterate over each of the methods that the service provides + // and create an API call method for each. + const regionZonesStubMethods = ['list']; + for (const methodName of regionZonesStubMethods) { + const callPromise = this.regionZonesStub.then( + stub => + (...args: Array<{}>) => { + if (this._terminated) { + return Promise.reject('The client has already been closed.'); + } + const func = stub[methodName]; + return func.apply(stub, args); + }, + (err: Error | null | undefined) => () => { + throw err; + } + ); + + const descriptor = this.descriptors.page[methodName] || undefined; + const apiCall = this._gaxModule.createApiCall( + callPromise, + this._defaults[methodName], + descriptor, + this._opts.fallback + ); + + this.innerApiCalls[methodName] = apiCall; + } + + return this.regionZonesStub; + } + + /** + * The DNS address for this API service. + * @deprecated Use the apiEndpoint method of the client instance. + * @returns {string} The DNS address for this service. + */ + static get servicePath() { + if ( + typeof process !== undefined && + typeof process.emitWarning === 'function' + ) { + process.emitWarning( + 'Static servicePath is deprecated, please use the instance method instead.', + 'DeprecationWarning' + ); + } + return 'compute.googleapis.com'; + } + + /** + * The DNS address for this API service - same as servicePath. + * @deprecated Use the apiEndpoint method of the client instance. + * @returns {string} The DNS address for this service. + */ + static get apiEndpoint() { + if ( + typeof process !== undefined && + typeof process.emitWarning === 'function' + ) { + process.emitWarning( + 'Static apiEndpoint is deprecated, please use the instance method instead.', + 'DeprecationWarning' + ); + } + return 'compute.googleapis.com'; + } + + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + get apiEndpoint() { + return this._servicePath; + } + + get universeDomain() { + return this._universeDomain; + } + + /** + * The port for this API service. + * @returns {number} The default port for this service. + */ + static get port() { + return 443; + } + + /** + * The scopes needed to make gRPC calls for every method defined + * in this service. + * @returns {string[]} List of default scopes. + */ + static get scopes() { + return [ + 'https://www.googleapis.com/auth/compute.readonly', + 'https://www.googleapis.com/auth/compute', + 'https://www.googleapis.com/auth/cloud-platform', + ]; + } + + getProjectId(): Promise; + getProjectId(callback: Callback): void; + /** + * Return the project ID used by this class. + * @returns {Promise} A promise that resolves to string containing the project ID. + */ + getProjectId( + callback?: Callback + ): Promise | void { + if (callback) { + this.auth.getProjectId(callback); + return; + } + return this.auth.getProjectId(); + } + + // ------------------- + // -- Service calls -- + // ------------------- + + /** + * Retrieves the list of Zone resources under the specific region available to the specified project. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * @param {number} request.maxResults + * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * Region for this request. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of {@link protos.google.cloud.compute.v1.Zone|Zone}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + list( + request?: protos.google.cloud.compute.v1.IListRegionZonesRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.compute.v1.IZone[], + protos.google.cloud.compute.v1.IListRegionZonesRequest | null, + protos.google.cloud.compute.v1.IZoneList, + ] + >; + list( + request: protos.google.cloud.compute.v1.IListRegionZonesRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.compute.v1.IListRegionZonesRequest, + protos.google.cloud.compute.v1.IZoneList | null | undefined, + protos.google.cloud.compute.v1.IZone + > + ): void; + list( + request: protos.google.cloud.compute.v1.IListRegionZonesRequest, + callback: PaginationCallback< + protos.google.cloud.compute.v1.IListRegionZonesRequest, + protos.google.cloud.compute.v1.IZoneList | null | undefined, + protos.google.cloud.compute.v1.IZone + > + ): void; + list( + request?: protos.google.cloud.compute.v1.IListRegionZonesRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.compute.v1.IListRegionZonesRequest, + protos.google.cloud.compute.v1.IZoneList | null | undefined, + protos.google.cloud.compute.v1.IZone + >, + callback?: PaginationCallback< + protos.google.cloud.compute.v1.IListRegionZonesRequest, + protos.google.cloud.compute.v1.IZoneList | null | undefined, + protos.google.cloud.compute.v1.IZone + > + ): Promise< + [ + protos.google.cloud.compute.v1.IZone[], + protos.google.cloud.compute.v1.IListRegionZonesRequest | null, + protos.google.cloud.compute.v1.IZoneList, + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + project: request.project ?? '', + region: request.region ?? '', + }); + this.initialize(); + return this.innerApiCalls.list(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * @param {number} request.maxResults + * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * Region for this request. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing {@link protos.google.cloud.compute.v1.Zone|Zone} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + */ + listStream( + request?: protos.google.cloud.compute.v1.IListRegionZonesRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + project: request.project ?? '', + region: request.region ?? '', + }); + const defaultCallSettings = this._defaults['list']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.list.createStream( + this.innerApiCalls.list as GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `list`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions. + * @param {number} request.maxResults + * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * Region for this request. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }. + * When you iterate the returned iterable, each element will be an object representing + * {@link protos.google.cloud.compute.v1.Zone|Zone}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation } + * for more details and examples. + * @example include:samples/generated/v1/region_zones.list.js + * region_tag:compute_v1_generated_RegionZones_List_async + */ + listAsync( + request?: protos.google.cloud.compute.v1.IListRegionZonesRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + project: request.project ?? '', + region: request.region ?? '', + }); + const defaultCallSettings = this._defaults['list']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.list.asyncIterate( + this.innerApiCalls['list'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + + /** + * Terminate the gRPC channel and close the client. + * + * The client will no longer be usable and all future behavior is undefined. + * @returns {Promise} A promise that resolves when the client is closed. + */ + close(): Promise { + if (this.regionZonesStub && !this._terminated) { + return this.regionZonesStub.then(stub => { + this._terminated = true; + stub.close(); + }); + } + return Promise.resolve(); + } +} diff --git a/packages/google-cloud-compute/src/v1/region_zones_client_config.json b/packages/google-cloud-compute/src/v1/region_zones_client_config.json new file mode 100644 index 00000000000..4cf5cb73c27 --- /dev/null +++ b/packages/google-cloud-compute/src/v1/region_zones_client_config.json @@ -0,0 +1,30 @@ +{ + "interfaces": { + "google.cloud.compute.v1.RegionZones": { + "retry_codes": { + "non_idempotent": [], + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 600000 + } + }, + "methods": { + "List": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/packages/google-cloud-compute/src/v1/region_zones_proto_list.json b/packages/google-cloud-compute/src/v1/region_zones_proto_list.json new file mode 100644 index 00000000000..4ad01aef24b --- /dev/null +++ b/packages/google-cloud-compute/src/v1/region_zones_proto_list.json @@ -0,0 +1,3 @@ +[ + "../../protos/google/cloud/compute/v1/compute.proto" +] diff --git a/packages/google-cloud-compute/src/v1/reservations_client.ts b/packages/google-cloud-compute/src/v1/reservations_client.ts index f8c0039c9a0..77e9ae9f251 100644 --- a/packages/google-cloud-compute/src/v1/reservations_client.ts +++ b/packages/google-cloud-compute/src/v1/reservations_client.ts @@ -1303,6 +1303,7 @@ export class ReservationsClient { * @param {boolean} request.returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @param {number} request.serviceProjectNumber + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/resource_policies_client.ts b/packages/google-cloud-compute/src/v1/resource_policies_client.ts index 175605e8bd3..9fd03c11048 100644 --- a/packages/google-cloud-compute/src/v1/resource_policies_client.ts +++ b/packages/google-cloud-compute/src/v1/resource_policies_client.ts @@ -1182,6 +1182,7 @@ export class ResourcePoliciesClient { * @param {boolean} request.returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @param {number} request.serviceProjectNumber + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/routers_client.ts b/packages/google-cloud-compute/src/v1/routers_client.ts index 4655cdb954e..0918f563bbd 100644 --- a/packages/google-cloud-compute/src/v1/routers_client.ts +++ b/packages/google-cloud-compute/src/v1/routers_client.ts @@ -1252,6 +1252,7 @@ export class RoutersClient { * @param {boolean} request.returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @param {number} request.serviceProjectNumber + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/security_policies_client.ts b/packages/google-cloud-compute/src/v1/security_policies_client.ts index 0c84e8bfa10..2df2516d080 100644 --- a/packages/google-cloud-compute/src/v1/security_policies_client.ts +++ b/packages/google-cloud-compute/src/v1/security_policies_client.ts @@ -1556,6 +1556,7 @@ export class SecurityPoliciesClient { * @param {boolean} request.returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @param {number} request.serviceProjectNumber + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/service_attachments_client.ts b/packages/google-cloud-compute/src/v1/service_attachments_client.ts index f4447ddcb6f..32d36318cfe 100644 --- a/packages/google-cloud-compute/src/v1/service_attachments_client.ts +++ b/packages/google-cloud-compute/src/v1/service_attachments_client.ts @@ -1180,6 +1180,7 @@ export class ServiceAttachmentsClient { * @param {boolean} request.returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @param {number} request.serviceProjectNumber + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/ssl_certificates_client.ts b/packages/google-cloud-compute/src/v1/ssl_certificates_client.ts index dd21a5a4bab..285d914092d 100644 --- a/packages/google-cloud-compute/src/v1/ssl_certificates_client.ts +++ b/packages/google-cloud-compute/src/v1/ssl_certificates_client.ts @@ -730,6 +730,7 @@ export class SslCertificatesClient { * @param {boolean} request.returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @param {number} request.serviceProjectNumber + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/ssl_policies_client.ts b/packages/google-cloud-compute/src/v1/ssl_policies_client.ts index e86092daae0..6fabe438c7f 100644 --- a/packages/google-cloud-compute/src/v1/ssl_policies_client.ts +++ b/packages/google-cloud-compute/src/v1/ssl_policies_client.ts @@ -936,6 +936,7 @@ export class SslPoliciesClient { * @param {boolean} request.returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @param {number} request.serviceProjectNumber + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/subnetworks_client.ts b/packages/google-cloud-compute/src/v1/subnetworks_client.ts index 13f46764a18..c37befabb19 100644 --- a/packages/google-cloud-compute/src/v1/subnetworks_client.ts +++ b/packages/google-cloud-compute/src/v1/subnetworks_client.ts @@ -1416,6 +1416,7 @@ export class SubnetworksClient { * @param {boolean} request.returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @param {number} request.serviceProjectNumber + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/target_http_proxies_client.ts b/packages/google-cloud-compute/src/v1/target_http_proxies_client.ts index f6a88728c0d..42a30b4474c 100644 --- a/packages/google-cloud-compute/src/v1/target_http_proxies_client.ts +++ b/packages/google-cloud-compute/src/v1/target_http_proxies_client.ts @@ -976,6 +976,7 @@ export class TargetHttpProxiesClient { * @param {boolean} request.returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @param {number} request.serviceProjectNumber + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/target_https_proxies_client.ts b/packages/google-cloud-compute/src/v1/target_https_proxies_client.ts index d2e3146f2c2..7dd63fcac93 100644 --- a/packages/google-cloud-compute/src/v1/target_https_proxies_client.ts +++ b/packages/google-cloud-compute/src/v1/target_https_proxies_client.ts @@ -1468,6 +1468,7 @@ export class TargetHttpsProxiesClient { * @param {boolean} request.returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @param {number} request.serviceProjectNumber + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/target_instances_client.ts b/packages/google-cloud-compute/src/v1/target_instances_client.ts index 3508da0c76e..400dcd08893 100644 --- a/packages/google-cloud-compute/src/v1/target_instances_client.ts +++ b/packages/google-cloud-compute/src/v1/target_instances_client.ts @@ -865,6 +865,7 @@ export class TargetInstancesClient { * @param {boolean} request.returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @param {number} request.serviceProjectNumber + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/target_pools_client.ts b/packages/google-cloud-compute/src/v1/target_pools_client.ts index 88b5b03b0ea..75d0fc0177e 100644 --- a/packages/google-cloud-compute/src/v1/target_pools_client.ts +++ b/packages/google-cloud-compute/src/v1/target_pools_client.ts @@ -1590,6 +1590,7 @@ export class TargetPoolsClient { * @param {boolean} request.returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @param {number} request.serviceProjectNumber + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/target_ssl_proxies_client.ts b/packages/google-cloud-compute/src/v1/target_ssl_proxies_client.ts index f43f54e4ebe..aa6dca304f2 100644 --- a/packages/google-cloud-compute/src/v1/target_ssl_proxies_client.ts +++ b/packages/google-cloud-compute/src/v1/target_ssl_proxies_client.ts @@ -1196,7 +1196,7 @@ export class TargetSslProxiesClient { ); } /** - * Sets the SSL policy for TargetSslProxy. The SSL policy specifies the server-side support for SSL features. This affects connections between clients and the SSL proxy load balancer. They do not affect the connection between the load balancer and the backends. + * Sets the SSL policy for TargetSslProxy. The SSL policy specifies the server-side support for SSL features. This affects connections between clients and the load balancer. They do not affect the connection between the load balancer and the backends. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-compute/src/v1/target_tcp_proxies_client.ts b/packages/google-cloud-compute/src/v1/target_tcp_proxies_client.ts index ba179fca223..03772b2220e 100644 --- a/packages/google-cloud-compute/src/v1/target_tcp_proxies_client.ts +++ b/packages/google-cloud-compute/src/v1/target_tcp_proxies_client.ts @@ -976,6 +976,7 @@ export class TargetTcpProxiesClient { * @param {boolean} request.returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @param {number} request.serviceProjectNumber + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/target_vpn_gateways_client.ts b/packages/google-cloud-compute/src/v1/target_vpn_gateways_client.ts index a4f318c22eb..2c4696aa90e 100644 --- a/packages/google-cloud-compute/src/v1/target_vpn_gateways_client.ts +++ b/packages/google-cloud-compute/src/v1/target_vpn_gateways_client.ts @@ -865,6 +865,7 @@ export class TargetVpnGatewaysClient { * @param {boolean} request.returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @param {number} request.serviceProjectNumber + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/url_maps_client.ts b/packages/google-cloud-compute/src/v1/url_maps_client.ts index efdf050011a..3c418904f4b 100644 --- a/packages/google-cloud-compute/src/v1/url_maps_client.ts +++ b/packages/google-cloud-compute/src/v1/url_maps_client.ts @@ -1155,6 +1155,7 @@ export class UrlMapsClient { * @param {boolean} request.returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @param {number} request.serviceProjectNumber + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/vpn_gateways_client.ts b/packages/google-cloud-compute/src/v1/vpn_gateways_client.ts index f15b6780167..bb416780686 100644 --- a/packages/google-cloud-compute/src/v1/vpn_gateways_client.ts +++ b/packages/google-cloud-compute/src/v1/vpn_gateways_client.ts @@ -1061,6 +1061,7 @@ export class VpnGatewaysClient { * @param {boolean} request.returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @param {number} request.serviceProjectNumber + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/src/v1/vpn_tunnels_client.ts b/packages/google-cloud-compute/src/v1/vpn_tunnels_client.ts index 9709d28cbf4..bfaa13193f2 100644 --- a/packages/google-cloud-compute/src/v1/vpn_tunnels_client.ts +++ b/packages/google-cloud-compute/src/v1/vpn_tunnels_client.ts @@ -847,6 +847,7 @@ export class VpnTunnelsClient { * @param {boolean} request.returnPartialSuccess * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. * @param {number} request.serviceProjectNumber + * The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} diff --git a/packages/google-cloud-compute/system-test/fixtures/sample/src/index.js b/packages/google-cloud-compute/system-test/fixtures/sample/src/index.js index 2bca2dfb6b2..2679f0c9034 100644 --- a/packages/google-cloud-compute/system-test/fixtures/sample/src/index.js +++ b/packages/google-cloud-compute/system-test/fixtures/sample/src/index.js @@ -106,6 +106,7 @@ function main() { const regionTargetTcpProxiesClient = new compute.RegionTargetTcpProxiesClient(); const regionUrlMapsClient = new compute.RegionUrlMapsClient(); + const regionZonesClient = new compute.RegionZonesClient(); const reservationsClient = new compute.ReservationsClient(); const resourcePoliciesClient = new compute.ResourcePoliciesClient(); const routersClient = new compute.RoutersClient(); diff --git a/packages/google-cloud-compute/system-test/fixtures/sample/src/index.ts b/packages/google-cloud-compute/system-test/fixtures/sample/src/index.ts index e0095d24f23..ee0a1a8be10 100644 --- a/packages/google-cloud-compute/system-test/fixtures/sample/src/index.ts +++ b/packages/google-cloud-compute/system-test/fixtures/sample/src/index.ts @@ -84,6 +84,7 @@ import { RegionTargetHttpsProxiesClient, RegionTargetTcpProxiesClient, RegionUrlMapsClient, + RegionZonesClient, ReservationsClient, ResourcePoliciesClient, RoutersClient, @@ -366,6 +367,9 @@ function doStuffWithRegionTargetTcpProxiesClient( function doStuffWithRegionUrlMapsClient(client: RegionUrlMapsClient) { client.close(); } +function doStuffWithRegionZonesClient(client: RegionZonesClient) { + client.close(); +} function doStuffWithReservationsClient(client: ReservationsClient) { client.close(); } @@ -671,6 +675,9 @@ function main() { const regionUrlMapsClient = new RegionUrlMapsClient(); doStuffWithRegionUrlMapsClient(regionUrlMapsClient); // check that the client instance can be created + const regionZonesClient = new RegionZonesClient(); + doStuffWithRegionZonesClient(regionZonesClient); + // check that the client instance can be created const reservationsClient = new ReservationsClient(); doStuffWithReservationsClient(reservationsClient); // check that the client instance can be created diff --git a/packages/google-cloud-compute/test/gapic_instances_v1.ts b/packages/google-cloud-compute/test/gapic_instances_v1.ts index a698db53bf8..8609890df4d 100644 --- a/packages/google-cloud-compute/test/gapic_instances_v1.ts +++ b/packages/google-cloud-compute/test/gapic_instances_v1.ts @@ -2799,6 +2799,177 @@ describe('v1.InstancesClient', () => { }); }); + describe('performMaintenance', () => { + it('invokes performMaintenance without error', async () => { + const client = new instancesModule.v1.InstancesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.PerformMaintenanceInstanceRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.PerformMaintenanceInstanceRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.PerformMaintenanceInstanceRequest', + ['zone'] + ); + request.zone = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.PerformMaintenanceInstanceRequest', + ['instance'] + ); + request.instance = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1}&zone=${defaultValue2}&instance=${defaultValue3}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.performMaintenance = + stubSimpleCall(expectedResponse); + const [response] = await client.performMaintenance(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + const actualRequest = ( + client.innerApiCalls.performMaintenance as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.performMaintenance as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes performMaintenance without error using callback', async () => { + const client = new instancesModule.v1.InstancesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.PerformMaintenanceInstanceRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.PerformMaintenanceInstanceRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.PerformMaintenanceInstanceRequest', + ['zone'] + ); + request.zone = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.PerformMaintenanceInstanceRequest', + ['instance'] + ); + request.instance = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1}&zone=${defaultValue2}&instance=${defaultValue3}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.performMaintenance = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.performMaintenance( + request, + ( + err?: Error | null, + result?: protos.google.cloud.compute.v1.IOperation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.performMaintenance as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.performMaintenance as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes performMaintenance with error', async () => { + const client = new instancesModule.v1.InstancesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.PerformMaintenanceInstanceRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.PerformMaintenanceInstanceRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.PerformMaintenanceInstanceRequest', + ['zone'] + ); + request.zone = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.PerformMaintenanceInstanceRequest', + ['instance'] + ); + request.instance = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1}&zone=${defaultValue2}&instance=${defaultValue3}`; + const expectedError = new Error('expected'); + client.innerApiCalls.performMaintenance = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.performMaintenance(request), expectedError); + const actualRequest = ( + client.innerApiCalls.performMaintenance as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.performMaintenance as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes performMaintenance with closed client', async () => { + const client = new instancesModule.v1.InstancesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.PerformMaintenanceInstanceRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.PerformMaintenanceInstanceRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.PerformMaintenanceInstanceRequest', + ['zone'] + ); + request.zone = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.PerformMaintenanceInstanceRequest', + ['instance'] + ); + request.instance = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.performMaintenance(request), expectedError); + }); + }); + describe('removeResourcePolicies', () => { it('invokes removeResourcePolicies without error', async () => { const client = new instancesModule.v1.InstancesClient({ diff --git a/packages/google-cloud-compute/test/gapic_region_zones_v1.ts b/packages/google-cloud-compute/test/gapic_region_zones_v1.ts new file mode 100644 index 00000000000..d053ac3d412 --- /dev/null +++ b/packages/google-cloud-compute/test/gapic_region_zones_v1.ts @@ -0,0 +1,611 @@ +// 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. ** + +import * as protos from '../protos/protos'; +import * as assert from 'assert'; +import * as sinon from 'sinon'; +import {SinonStub} from 'sinon'; +import {describe, it, beforeEach, afterEach} from 'mocha'; +import * as regionzonesModule from '../src'; + +import {PassThrough} from 'stream'; + +import {GoogleAuth, protobuf} from 'google-gax'; + +// Dynamically loaded proto JSON is needed to get the type information +// to fill in default values for request objects +const root = protobuf.Root.fromJSON( + require('../protos/protos.json') +).resolveAll(); + +// eslint-disable-next-line @typescript-eslint/no-unused-vars +function getTypeDefaultValue(typeName: string, fields: string[]) { + let type = root.lookupType(typeName) as protobuf.Type; + for (const field of fields.slice(0, -1)) { + type = type.fields[field]?.resolvedType as protobuf.Type; + } + return type.fields[fields[fields.length - 1]]?.defaultValue; +} + +function generateSampleMessage(instance: T) { + const filledObject = ( + instance.constructor as typeof protobuf.Message + ).toObject(instance as protobuf.Message, {defaults: true}); + return (instance.constructor as typeof protobuf.Message).fromObject( + filledObject + ) as T; +} + +function stubSimpleCall(response?: ResponseType, error?: Error) { + return error + ? sinon.stub().rejects(error) + : sinon.stub().resolves([response]); +} + +function stubSimpleCallWithCallback( + response?: ResponseType, + error?: Error +) { + return error + ? sinon.stub().callsArgWith(2, error) + : sinon.stub().callsArgWith(2, null, response); +} + +function stubPageStreamingCall( + responses?: ResponseType[], + error?: Error +) { + const pagingStub = sinon.stub(); + if (responses) { + for (let i = 0; i < responses.length; ++i) { + pagingStub.onCall(i).callsArgWith(2, null, responses[i]); + } + } + const transformStub = error + ? sinon.stub().callsArgWith(2, error) + : pagingStub; + const mockStream = new PassThrough({ + objectMode: true, + transform: transformStub, + }); + // trigger as many responses as needed + if (responses) { + for (let i = 0; i < responses.length; ++i) { + setImmediate(() => { + mockStream.write({}); + }); + } + setImmediate(() => { + mockStream.end(); + }); + } else { + setImmediate(() => { + mockStream.write({}); + }); + setImmediate(() => { + mockStream.end(); + }); + } + return sinon.stub().returns(mockStream); +} + +function stubAsyncIterationCall( + responses?: ResponseType[], + error?: Error +) { + let counter = 0; + const asyncIterable = { + [Symbol.asyncIterator]() { + return { + async next() { + if (error) { + return Promise.reject(error); + } + if (counter >= responses!.length) { + return Promise.resolve({done: true, value: undefined}); + } + return Promise.resolve({done: false, value: responses![counter++]}); + }, + }; + }, + }; + return sinon.stub().returns(asyncIterable); +} + +describe('v1.RegionZonesClient', () => { + let googleAuth: GoogleAuth; + beforeEach(() => { + googleAuth = { + getClient: sinon.stub().resolves({ + getRequestHeaders: sinon + .stub() + .resolves({Authorization: 'Bearer SOME_TOKEN'}), + }), + } as unknown as GoogleAuth; + }); + afterEach(() => { + sinon.restore(); + }); + describe('Common methods', () => { + it('has apiEndpoint', () => { + const client = new regionzonesModule.v1.RegionZonesClient(); + const apiEndpoint = client.apiEndpoint; + assert.strictEqual(apiEndpoint, 'compute.googleapis.com'); + }); + + it('has universeDomain', () => { + const client = new regionzonesModule.v1.RegionZonesClient(); + const universeDomain = client.universeDomain; + assert.strictEqual(universeDomain, 'googleapis.com'); + }); + + if ( + typeof process !== 'undefined' && + typeof process.emitWarning === 'function' + ) { + it('throws DeprecationWarning if static servicePath is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const servicePath = regionzonesModule.v1.RegionZonesClient.servicePath; + assert.strictEqual(servicePath, 'compute.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + + it('throws DeprecationWarning if static apiEndpoint is used', () => { + const stub = sinon.stub(process, 'emitWarning'); + const apiEndpoint = regionzonesModule.v1.RegionZonesClient.apiEndpoint; + assert.strictEqual(apiEndpoint, 'compute.googleapis.com'); + assert(stub.called); + stub.restore(); + }); + } + it('sets apiEndpoint according to universe domain camelCase', () => { + const client = new regionzonesModule.v1.RegionZonesClient({ + universeDomain: 'example.com', + }); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'compute.example.com'); + }); + + it('sets apiEndpoint according to universe domain snakeCase', () => { + const client = new regionzonesModule.v1.RegionZonesClient({ + universe_domain: 'example.com', + }); + const servicePath = client.apiEndpoint; + assert.strictEqual(servicePath, 'compute.example.com'); + }); + it('does not allow setting both universeDomain and universe_domain', () => { + assert.throws(() => { + new regionzonesModule.v1.RegionZonesClient({ + universe_domain: 'example.com', + universeDomain: 'example.net', + }); + }); + }); + + it('has port', () => { + const port = regionzonesModule.v1.RegionZonesClient.port; + assert(port); + assert(typeof port === 'number'); + }); + + it('should create a client with no option', () => { + const client = new regionzonesModule.v1.RegionZonesClient(); + assert(client); + }); + + it('should create a client with gRPC fallback', () => { + const client = new regionzonesModule.v1.RegionZonesClient({ + fallback: true, + }); + assert(client); + }); + + it('has initialize method and supports deferred initialization', async () => { + const client = new regionzonesModule.v1.RegionZonesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionZonesStub, undefined); + await client.initialize(); + assert(client.regionZonesStub); + }); + + it('has close method for the initialized client', done => { + const client = new regionzonesModule.v1.RegionZonesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.regionZonesStub); + client.close().then(() => { + done(); + }); + }); + + it('has close method for the non-initialized client', done => { + const client = new regionzonesModule.v1.RegionZonesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.regionZonesStub, undefined); + client.close().then(() => { + done(); + }); + }); + + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new regionzonesModule.v1.RegionZonesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); + }); + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new regionzonesModule.v1.RegionZonesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); + }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); + }); + }); + + describe('list', () => { + it('invokes list without error', async () => { + const client = new regionzonesModule.v1.RegionZonesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionZonesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListRegionZonesRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListRegionZonesRequest', + ['region'] + ); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1.Zone()), + generateSampleMessage(new protos.google.cloud.compute.v1.Zone()), + generateSampleMessage(new protos.google.cloud.compute.v1.Zone()), + ]; + client.innerApiCalls.list = stubSimpleCall(expectedResponse); + const [response] = await client.list(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.list as SinonStub).getCall(0) + .args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.list as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes list without error using callback', async () => { + const client = new regionzonesModule.v1.RegionZonesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionZonesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListRegionZonesRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListRegionZonesRequest', + ['region'] + ); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1.Zone()), + generateSampleMessage(new protos.google.cloud.compute.v1.Zone()), + generateSampleMessage(new protos.google.cloud.compute.v1.Zone()), + ]; + client.innerApiCalls.list = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.list( + request, + ( + err?: Error | null, + result?: protos.google.cloud.compute.v1.IZone[] | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.list as SinonStub).getCall(0) + .args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.list as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes list with error', async () => { + const client = new regionzonesModule.v1.RegionZonesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionZonesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListRegionZonesRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListRegionZonesRequest', + ['region'] + ); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}`; + const expectedError = new Error('expected'); + client.innerApiCalls.list = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.list(request), expectedError); + const actualRequest = (client.innerApiCalls.list as SinonStub).getCall(0) + .args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.list as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listStream without error', async () => { + const client = new regionzonesModule.v1.RegionZonesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionZonesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListRegionZonesRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListRegionZonesRequest', + ['region'] + ); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1.Zone()), + generateSampleMessage(new protos.google.cloud.compute.v1.Zone()), + generateSampleMessage(new protos.google.cloud.compute.v1.Zone()), + ]; + client.descriptors.page.list.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.compute.v1.Zone[] = []; + stream.on('data', (response: protos.google.cloud.compute.v1.Zone) => { + responses.push(response); + }); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.list.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.list, request) + ); + assert( + (client.descriptors.page.list.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes listStream with error', async () => { + const client = new regionzonesModule.v1.RegionZonesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionZonesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListRegionZonesRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListRegionZonesRequest', + ['region'] + ); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}`; + const expectedError = new Error('expected'); + client.descriptors.page.list.createStream = stubPageStreamingCall( + undefined, + expectedError + ); + const stream = client.listStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.compute.v1.Zone[] = []; + stream.on('data', (response: protos.google.cloud.compute.v1.Zone) => { + responses.push(response); + }); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.list.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.list, request) + ); + assert( + (client.descriptors.page.list.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with list without error', async () => { + const client = new regionzonesModule.v1.RegionZonesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionZonesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListRegionZonesRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListRegionZonesRequest', + ['region'] + ); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}`; + const expectedResponse = [ + generateSampleMessage(new protos.google.cloud.compute.v1.Zone()), + generateSampleMessage(new protos.google.cloud.compute.v1.Zone()), + generateSampleMessage(new protos.google.cloud.compute.v1.Zone()), + ]; + client.descriptors.page.list.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.compute.v1.IZone[] = []; + const iterable = client.listAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + (client.descriptors.page.list.asyncIterate as SinonStub).getCall(0) + .args[1], + request + ); + assert( + (client.descriptors.page.list.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with list with error', async () => { + const client = new regionzonesModule.v1.RegionZonesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListRegionZonesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListRegionZonesRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListRegionZonesRequest', + ['region'] + ); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}`; + const expectedError = new Error('expected'); + client.descriptors.page.list.asyncIterate = stubAsyncIterationCall( + undefined, + expectedError + ); + const iterable = client.listAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.compute.v1.IZone[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + (client.descriptors.page.list.asyncIterate as SinonStub).getCall(0) + .args[1], + request + ); + assert( + (client.descriptors.page.list.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); +});