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 8f563114db3..a6b46343f81 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 @@ -14,7 +14,7 @@ // Generated by the disco-to-proto3-converter. DO NOT EDIT! // Source Discovery file: compute.v1.json -// Source file revision: 20230610 +// Source file revision: 20230701 // API name: compute // API version: v1 @@ -3235,7 +3235,7 @@ message BackendService { // The URL of the network to which this backend service belongs. This field can only be specified when the load balancing scheme is set to INTERNAL. optional string network = 232872494; - // Settings controlling the eviction of unhealthy hosts from the load balancing pool for the backend service. If not set, this feature is considered disabled. This field is applicable to either: - A regional backend service with the service_protocol set to HTTP, HTTPS, HTTP2, or GRPC, and load_balancing_scheme set to INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED. + // 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. @@ -7637,7 +7637,7 @@ message ForwardingRule { // This field can only be used: - If IPProtocol is one of TCP, UDP, or SCTP. - By internal TCP/UDP load balancers, backend service-based 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 ports, port_range, and allPorts fields are mutually exclusive. 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 the field is set to TRUE, clients can access ILB from all regions. Otherwise only allows access from clients in the same region as the internal load balancer. + // 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. 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. @@ -12458,6 +12458,9 @@ message InstanceGroupManager { // [Output Only] The URL of the Instance Group resource. optional string instance_group = 81095253; + // The repair policy for this managed instance group. + optional InstanceGroupManagerInstanceLifecyclePolicy instance_lifecycle_policy = 447961617; + // The URL of the instance template that is specified for this managed instance group. The group uses this template to create all new instances in the managed instance group. The templates for existing instances in the group do not change unless you run recreateInstances, run applyUpdatesToInstances, or set the group's updatePolicy.type to PROACTIVE. optional string instance_template = 309248228; @@ -12581,6 +12584,25 @@ message InstanceGroupManagerAutoHealingPolicy { } +// +message InstanceGroupManagerInstanceLifecyclePolicy { + // A bit indicating whether to forcefully apply the group's latest configuration when repairing a VM. Valid options are: - NO (default): If configuration updates are available, they are not forcefully applied during repair. Instead, configuration updates are applied according to the group's update policy. - YES: If configuration updates are available, they are applied during repair. + enum ForceUpdateOnRepair { + // A value indicating that the enum field is not set. + UNDEFINED_FORCE_UPDATE_ON_REPAIR = 0; + + NO = 2497; + + YES = 87751; + + } + + // A bit indicating whether to forcefully apply the group's latest configuration when repairing a VM. Valid options are: - NO (default): If configuration updates are available, they are not forcefully applied during repair. Instead, configuration updates are applied according to the group's update policy. - YES: If configuration updates are available, they are applied during repair. + // Check the ForceUpdateOnRepair enum for the list of possible values. + optional string force_update_on_repair = 356302027; + +} + // [Output Only] A list of managed instance groups. message InstanceGroupManagerList { // [Output Only] Unique identifier for the resource; defined by the server. @@ -14038,7 +14060,7 @@ message InterconnectCircuitInfo { } -// Diagnostics information about interconnect, contains detailed and current technical information about Google's side of the connection. +// Diagnostics information about the Interconnect connection, which contains detailed and current technical information about Google's side of the connection. message InterconnectDiagnostics { // The aggregation type of the bundle interface. enum BundleAggregationType { @@ -19709,37 +19731,37 @@ message OperationsScopedList { // Settings controlling the eviction of unhealthy hosts from the load balancing pool for the backend service. message OutlierDetection { - // The base time that a host is ejected for. The real ejection time is equal to the base ejection time multiplied by the number of times the host has been ejected. Defaults to 30000ms or 30s. + // The base time that a backend endpoint is ejected for. Defaults to 30000ms or 30s. After a backend endpoint is returned back to the load balancing pool, it can be ejected again in another ejection analysis. Thus, the total ejection time is equal to the base ejection time multiplied by the number of times the backend endpoint has been ejected. Defaults to 30000ms or 30s. optional Duration base_ejection_time = 80997255; - // Number of errors before a host is ejected from the connection pool. When the backend host is accessed over HTTP, a 5xx return code qualifies as an error. Defaults to 5. 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. + // Number of consecutive errors before a backend endpoint is ejected from the load balancing pool. When the backend endpoint is accessed over HTTP, a 5xx return code qualifies as an error. Defaults to 5. optional int32 consecutive_errors = 387193248; - // The number of consecutive gateway failures (502, 503, 504 status or connection errors that are mapped to one of those status codes) before a consecutive gateway failure ejection occurs. Defaults to 3. 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. + // The number of consecutive gateway failures (502, 503, 504 status or connection errors that are mapped to one of those status codes) before a consecutive gateway failure ejection occurs. Defaults to 3. optional int32 consecutive_gateway_failure = 417504250; - // The percentage chance that a host will be actually ejected when an outlier status is detected through consecutive 5xx. This setting can be used to disable ejection or to ramp it up slowly. Defaults to 0. 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. + // The percentage chance that a backend endpoint will be ejected when an outlier status is detected through consecutive 5xx. This setting can be used to disable ejection or to ramp it up slowly. Defaults to 0. optional int32 enforcing_consecutive_errors = 213133760; - // The percentage chance that a host will be actually ejected when an outlier status is detected through consecutive gateway failures. This setting can be used to disable ejection or to ramp it up slowly. Defaults to 100. 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. + // The percentage chance that a backend endpoint will be ejected when an outlier status is detected through consecutive gateway failures. This setting can be used to disable ejection or to ramp it up slowly. Defaults to 100. optional int32 enforcing_consecutive_gateway_failure = 394440666; - // The percentage chance that a host will be actually ejected when an outlier status is detected through success rate statistics. This setting can be used to disable ejection or to ramp it up slowly. Defaults to 100. + // The percentage chance that a backend endpoint will be ejected when an outlier status is detected through success rate statistics. This setting can be used to disable ejection or to ramp it up slowly. Defaults to 100. Not supported when the backend service uses Serverless NEG. optional int32 enforcing_success_rate = 194508732; - // Time interval between ejection analysis sweeps. This can result in both new ejections as well as hosts being returned to service. Defaults to 1 second. + // Time interval between ejection analysis sweeps. This can result in both new ejections and backend endpoints being returned to service. The interval is equal to the number of seconds as defined in outlierDetection.interval.seconds plus the number of nanoseconds as defined in outlierDetection.interval.nanos. Defaults to 1 second. optional Duration interval = 33547461; - // Maximum percentage of hosts in the load balancing pool for the backend service that can be ejected. Defaults to 50%. + // Maximum percentage of backend endpoints in the load balancing pool for the backend service that can be ejected if the ejection conditions are met. Defaults to 50%. optional int32 max_ejection_percent = 18436888; - // The number of hosts in a cluster that must have enough request volume to detect success rate outliers. If the number of hosts is less than this setting, outlier detection via success rate statistics is not performed for any host in the cluster. Defaults to 5. + // The number of backend endpoints in the load balancing pool that must have enough request volume to detect success rate outliers. If the number of backend endpoints is fewer than this setting, outlier detection via success rate statistics is not performed for any backend endpoint in the load balancing pool. Defaults to 5. Not supported when the backend service uses Serverless NEG. optional int32 success_rate_minimum_hosts = 525766903; - // The minimum number of total requests that must be collected in one interval (as defined by the interval duration above) to include this host in success rate based outlier detection. If the volume is lower than this setting, outlier detection via success rate statistics is not performed for that host. Defaults to 100. + // The minimum number of total requests that must be collected in one interval (as defined by the interval duration above) to include this backend endpoint in success rate based outlier detection. If the volume is lower than this setting, outlier detection via success rate statistics is not performed for that backend endpoint. Defaults to 100. Not supported when the backend service uses Serverless NEG. optional int32 success_rate_request_volume = 281425357; - // This factor is used to determine the ejection threshold for success rate outlier ejection. The ejection threshold is the difference between the mean success rate, and the product of this factor and the standard deviation of the mean success rate: mean - (stdev * success_rate_stdev_factor). This factor is divided by a thousand to get a double. That is, if the desired factor is 1.9, the runtime value should be 1900. Defaults to 1900. + // This factor is used to determine the ejection threshold for success rate outlier ejection. The ejection threshold is the difference between the mean success rate, and the product of this factor and the standard deviation of the mean success rate: mean - (stdev * successRateStdevFactor). This factor is divided by a thousand to get a double. That is, if the desired factor is 1.9, the runtime value should be 1900. Defaults to 1900. Not supported when the backend service uses Serverless NEG. optional int32 success_rate_stdev_factor = 174735773; } @@ -21481,7 +21503,7 @@ message PublicDelegatedPrefix { // [Output Only] The unique identifier for the resource type. The server generates this identifier. optional uint64 id = 3355; - // The IPv4 address range, in CIDR format, represented by this public delegated prefix. + // The IP address range, in CIDR format, represented by this public delegated prefix. optional string ip_cidr_range = 98117322; // If true, the prefix will be live migrated. @@ -21577,7 +21599,7 @@ message PublicDelegatedPrefixPublicDelegatedSubPrefix { // An optional description of this resource. Provide this property when you create the resource. optional string description = 422937596; - // The IPv4 address range, in CIDR format, represented by this sub public delegated prefix. + // The IP address range, in CIDR format, represented by this sub public delegated prefix. optional string ip_cidr_range = 98117322; // Whether the sub prefix is delegated to create Address resources in the delegatee project. @@ -23589,6 +23611,9 @@ message Route { // The URL to a gateway that should handle matching packets. You can only specify the internet gateway using a full or partial valid URL: projects/ project/global/gateways/default-internet-gateway optional string next_hop_gateway = 377175298; + // [Output Only] The full resource name of the Network Connectivity Center hub that will handle matching packets. + optional string next_hop_hub = 198679219; + // The URL to a forwarding rule of type loadBalancingScheme=INTERNAL that should handle matching packets or the IP address of the forwarding Rule. For example, the following are all valid URLs: - 10.128.0.56 - https://www.googleapis.com/compute/v1/projects/project/regions/region /forwardingRules/forwardingRule - regions/region/forwardingRules/forwardingRule optional string next_hop_ilb = 198679901; @@ -24023,6 +24048,25 @@ message RouterMd5AuthenticationKey { // Represents a Nat resource. It enables the VMs within the specified subnetworks to access Internet without external IP addresses. It specifies a list of subnetworks (and the ranges within) that want to use NAT. Customers can also provide the external IPs that would be used for NAT. GCP would auto-allocate ephemeral IPs if no external IPs are provided. message RouterNat { + // The network tier to use when automatically reserving IP addresses. Must be one of: PREMIUM, STANDARD. If not specified, PREMIUM tier will be used. + enum AutoNetworkTier { + // A value indicating that the enum field is not set. + UNDEFINED_AUTO_NETWORK_TIER = 0; + + // Public internet quality with fixed bandwidth. + FIXED_STANDARD = 310464328; + + // High quality, Google-grade network tier, support for all networking products. + PREMIUM = 399530551; + + // Public internet quality, only limited support for other networking products. + STANDARD = 484642493; + + // (Output only) Temporary tier for FIXED_STANDARD when fixed standard tier is expired or not configured. + STANDARD_OVERRIDES_FIXED_STANDARD = 465847234; + + } + // enum EndpointTypes { // A value indicating that the enum field is not set. @@ -24065,6 +24109,10 @@ message RouterNat { } + // The network tier to use when automatically reserving IP addresses. Must be one of: PREMIUM, STANDARD. If not specified, PREMIUM tier will be used. + // Check the AutoNetworkTier enum for the list of possible values. + optional string auto_network_tier = 269770211; + // A list of URLs of the IP resources to be drained. These IPs must be valid static external IPs that have been assigned to the NAT. These IPs should be used for updating/patching a NAT only. repeated string drain_nat_ips = 504078535; @@ -28620,6 +28668,9 @@ message TargetHttpProxy { // 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 TargetHttpProxy. An up-to-date fingerprint must be provided in order to patch/update the TargetHttpProxy; otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the TargetHttpProxy. optional string fingerprint = 234678500; + // Specifies how long to keep a connection open, after completing a response, while there is no matching traffic (in seconds). If an HTTP keep-alive is not specified, a default value (610 seconds) will be used. For Global external HTTP(S) load balancer, the minimum allowed value is 5 seconds and the maximum allowed value is 1200 seconds. For Global external HTTP(S) load balancer (classic), this option is not available publicly. + optional int32 http_keep_alive_timeout_sec = 447326046; + // [Output Only] The unique identifier for the resource. This identifier is defined by the server. optional uint64 id = 3355; @@ -28768,6 +28819,9 @@ message TargetHttpsProxy { // 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 TargetHttpsProxy. An up-to-date fingerprint must be provided in order to patch the TargetHttpsProxy; otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the TargetHttpsProxy. optional string fingerprint = 234678500; + // Specifies how long to keep a connection open, after completing a response, while there is no matching traffic (in seconds). If an HTTP keep-alive is not specified, a default value (610 seconds) will be used. For Global external HTTP(S) load balancer, the minimum allowed value is 5 seconds and the maximum allowed value is 1200 seconds. For Global external HTTP(S) load balancer (classic), this option is not available publicly. + optional int32 http_keep_alive_timeout_sec = 447326046; + // [Output Only] The unique identifier for the resource. This identifier is defined by the server. optional uint64 id = 3355; @@ -35438,7 +35492,7 @@ service Projects { option (google.cloud.operation_service) = "GlobalOperations"; } - // Moves an instance and its attached persistent disks from one zone to another. *Note*: Moving VMs or disks by using this method might cause unexpected behavior. For more information, see the [known issue](/compute/docs/troubleshooting/known-issues#moving_vms_or_disks_using_the_moveinstance_api_or_the_causes_unexpected_behavior). + // Moves an instance and its attached persistent disks from one zone to another. *Note*: Moving VMs or disks by using this method might cause unexpected behavior. For more information, see the [known issue](/compute/docs/troubleshooting/known-issues#moving_vms_or_disks_using_the_moveinstance_api_or_the_causes_unexpected_behavior). [Deprecated] This method is deprecated. See [moving instance across zones](/compute/docs/instances/moving-instance-across-zones) instead. rpc MoveInstance(MoveInstanceProjectRequest) returns (Operation) { option (google.api.http) = { body: "instance_move_request_resource" diff --git a/packages/google-cloud-compute/protos/protos.d.ts b/packages/google-cloud-compute/protos/protos.d.ts index 27ceeb572f9..a3d90fd6597 100644 --- a/packages/google-cloud-compute/protos/protos.d.ts +++ b/packages/google-cloud-compute/protos/protos.d.ts @@ -71624,6 +71624,9 @@ export namespace google { /** InstanceGroupManager instanceGroup */ instanceGroup?: (string|null); + /** InstanceGroupManager instanceLifecyclePolicy */ + instanceLifecyclePolicy?: (google.cloud.compute.v1.IInstanceGroupManagerInstanceLifecyclePolicy|null); + /** InstanceGroupManager instanceTemplate */ instanceTemplate?: (string|null); @@ -71703,6 +71706,9 @@ export namespace google { /** InstanceGroupManager instanceGroup. */ public instanceGroup?: (string|null); + /** InstanceGroupManager instanceLifecyclePolicy. */ + public instanceLifecyclePolicy?: (google.cloud.compute.v1.IInstanceGroupManagerInstanceLifecyclePolicy|null); + /** InstanceGroupManager instanceTemplate. */ public instanceTemplate?: (string|null); @@ -71769,6 +71775,9 @@ export namespace google { /** InstanceGroupManager _instanceGroup. */ public _instanceGroup?: "instanceGroup"; + /** InstanceGroupManager _instanceLifecyclePolicy. */ + public _instanceLifecyclePolicy?: "instanceLifecyclePolicy"; + /** InstanceGroupManager _instanceTemplate. */ public _instanceTemplate?: "instanceTemplate"; @@ -72355,6 +72364,116 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an InstanceGroupManagerInstanceLifecyclePolicy. */ + interface IInstanceGroupManagerInstanceLifecyclePolicy { + + /** InstanceGroupManagerInstanceLifecyclePolicy forceUpdateOnRepair */ + forceUpdateOnRepair?: (string|null); + } + + /** Represents an InstanceGroupManagerInstanceLifecyclePolicy. */ + class InstanceGroupManagerInstanceLifecyclePolicy implements IInstanceGroupManagerInstanceLifecyclePolicy { + + /** + * Constructs a new InstanceGroupManagerInstanceLifecyclePolicy. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IInstanceGroupManagerInstanceLifecyclePolicy); + + /** InstanceGroupManagerInstanceLifecyclePolicy forceUpdateOnRepair. */ + public forceUpdateOnRepair?: (string|null); + + /** InstanceGroupManagerInstanceLifecyclePolicy _forceUpdateOnRepair. */ + public _forceUpdateOnRepair?: "forceUpdateOnRepair"; + + /** + * Creates a new InstanceGroupManagerInstanceLifecyclePolicy instance using the specified properties. + * @param [properties] Properties to set + * @returns InstanceGroupManagerInstanceLifecyclePolicy instance + */ + public static create(properties?: google.cloud.compute.v1.IInstanceGroupManagerInstanceLifecyclePolicy): google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy; + + /** + * Encodes the specified InstanceGroupManagerInstanceLifecyclePolicy message. Does not implicitly {@link google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy.verify|verify} messages. + * @param message InstanceGroupManagerInstanceLifecyclePolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IInstanceGroupManagerInstanceLifecyclePolicy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InstanceGroupManagerInstanceLifecyclePolicy message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy.verify|verify} messages. + * @param message InstanceGroupManagerInstanceLifecyclePolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IInstanceGroupManagerInstanceLifecyclePolicy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InstanceGroupManagerInstanceLifecyclePolicy message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InstanceGroupManagerInstanceLifecyclePolicy + * @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.InstanceGroupManagerInstanceLifecyclePolicy; + + /** + * Decodes an InstanceGroupManagerInstanceLifecyclePolicy message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InstanceGroupManagerInstanceLifecyclePolicy + * @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.InstanceGroupManagerInstanceLifecyclePolicy; + + /** + * Verifies an InstanceGroupManagerInstanceLifecyclePolicy 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 InstanceGroupManagerInstanceLifecyclePolicy message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InstanceGroupManagerInstanceLifecyclePolicy + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy; + + /** + * Creates a plain object from an InstanceGroupManagerInstanceLifecyclePolicy message. Also converts values to other types if specified. + * @param message InstanceGroupManagerInstanceLifecyclePolicy + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InstanceGroupManagerInstanceLifecyclePolicy to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InstanceGroupManagerInstanceLifecyclePolicy + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace InstanceGroupManagerInstanceLifecyclePolicy { + + /** ForceUpdateOnRepair enum. */ + enum ForceUpdateOnRepair { + UNDEFINED_FORCE_UPDATE_ON_REPAIR = 0, + NO = 2497, + YES = 87751 + } + } + /** Properties of an InstanceGroupManagerList. */ interface IInstanceGroupManagerList { @@ -132751,6 +132870,9 @@ export namespace google { /** Route nextHopGateway */ nextHopGateway?: (string|null); + /** Route nextHopHub */ + nextHopHub?: (string|null); + /** Route nextHopIlb */ nextHopIlb?: (string|null); @@ -132824,6 +132946,9 @@ export namespace google { /** Route nextHopGateway. */ public nextHopGateway?: (string|null); + /** Route nextHopHub. */ + public nextHopHub?: (string|null); + /** Route nextHopIlb. */ public nextHopIlb?: (string|null); @@ -132884,6 +133009,9 @@ export namespace google { /** Route _nextHopGateway. */ public _nextHopGateway?: "nextHopGateway"; + /** Route _nextHopHub. */ + public _nextHopHub?: "nextHopHub"; + /** Route _nextHopIlb. */ public _nextHopIlb?: "nextHopIlb"; @@ -134829,6 +134957,9 @@ export namespace google { /** Properties of a RouterNat. */ interface IRouterNat { + /** RouterNat autoNetworkTier */ + autoNetworkTier?: (string|null); + /** RouterNat drainNatIps */ drainNatIps?: (string[]|null); @@ -134893,6 +135024,9 @@ export namespace google { */ constructor(properties?: google.cloud.compute.v1.IRouterNat); + /** RouterNat autoNetworkTier. */ + public autoNetworkTier?: (string|null); + /** RouterNat drainNatIps. */ public drainNatIps: string[]; @@ -134947,6 +135081,9 @@ export namespace google { /** RouterNat udpIdleTimeoutSec. */ public udpIdleTimeoutSec?: (number|null); + /** RouterNat _autoNetworkTier. */ + public _autoNetworkTier?: "autoNetworkTier"; + /** RouterNat _enableDynamicPortAllocation. */ public _enableDynamicPortAllocation?: "enableDynamicPortAllocation"; @@ -135066,6 +135203,15 @@ export namespace google { namespace RouterNat { + /** AutoNetworkTier enum. */ + enum AutoNetworkTier { + UNDEFINED_AUTO_NETWORK_TIER = 0, + FIXED_STANDARD = 310464328, + PREMIUM = 399530551, + STANDARD = 484642493, + STANDARD_OVERRIDES_FIXED_STANDARD = 465847234 + } + /** EndpointTypes enum. */ enum EndpointTypes { UNDEFINED_ENDPOINT_TYPES = 0, @@ -159349,6 +159495,9 @@ export namespace google { /** TargetHttpProxy fingerprint */ fingerprint?: (string|null); + /** TargetHttpProxy httpKeepAliveTimeoutSec */ + httpKeepAliveTimeoutSec?: (number|null); + /** TargetHttpProxy id */ id?: (number|Long|string|null); @@ -159389,6 +159538,9 @@ export namespace google { /** TargetHttpProxy fingerprint. */ public fingerprint?: (string|null); + /** TargetHttpProxy httpKeepAliveTimeoutSec. */ + public httpKeepAliveTimeoutSec?: (number|null); + /** TargetHttpProxy id. */ public id?: (number|Long|string|null); @@ -159419,6 +159571,9 @@ export namespace google { /** TargetHttpProxy _fingerprint. */ public _fingerprint?: "fingerprint"; + /** TargetHttpProxy _httpKeepAliveTimeoutSec. */ + public _httpKeepAliveTimeoutSec?: "httpKeepAliveTimeoutSec"; + /** TargetHttpProxy _id. */ public _id?: "id"; @@ -160231,6 +160386,9 @@ export namespace google { /** TargetHttpsProxy fingerprint */ fingerprint?: (string|null); + /** TargetHttpsProxy httpKeepAliveTimeoutSec */ + httpKeepAliveTimeoutSec?: (number|null); + /** TargetHttpsProxy id */ id?: (number|Long|string|null); @@ -160289,6 +160447,9 @@ export namespace google { /** TargetHttpsProxy fingerprint. */ public fingerprint?: (string|null); + /** TargetHttpsProxy httpKeepAliveTimeoutSec. */ + public httpKeepAliveTimeoutSec?: (number|null); + /** TargetHttpsProxy id. */ public id?: (number|Long|string|null); @@ -160337,6 +160498,9 @@ export namespace google { /** TargetHttpsProxy _fingerprint. */ public _fingerprint?: "fingerprint"; + /** TargetHttpsProxy _httpKeepAliveTimeoutSec. */ + public _httpKeepAliveTimeoutSec?: "httpKeepAliveTimeoutSec"; + /** TargetHttpsProxy _id. */ public _id?: "id"; diff --git a/packages/google-cloud-compute/protos/protos.js b/packages/google-cloud-compute/protos/protos.js index b38b95de21a..a0b926f86f9 100644 --- a/packages/google-cloud-compute/protos/protos.js +++ b/packages/google-cloud-compute/protos/protos.js @@ -190075,6 +190075,7 @@ * @property {string|null} [fingerprint] InstanceGroupManager fingerprint * @property {number|Long|null} [id] InstanceGroupManager id * @property {string|null} [instanceGroup] InstanceGroupManager instanceGroup + * @property {google.cloud.compute.v1.IInstanceGroupManagerInstanceLifecyclePolicy|null} [instanceLifecyclePolicy] InstanceGroupManager instanceLifecyclePolicy * @property {string|null} [instanceTemplate] InstanceGroupManager instanceTemplate * @property {string|null} [kind] InstanceGroupManager kind * @property {string|null} [listManagedInstancesResults] InstanceGroupManager listManagedInstancesResults @@ -190182,6 +190183,14 @@ */ InstanceGroupManager.prototype.instanceGroup = null; + /** + * InstanceGroupManager instanceLifecyclePolicy. + * @member {google.cloud.compute.v1.IInstanceGroupManagerInstanceLifecyclePolicy|null|undefined} instanceLifecyclePolicy + * @memberof google.cloud.compute.v1.InstanceGroupManager + * @instance + */ + InstanceGroupManager.prototype.instanceLifecyclePolicy = null; + /** * InstanceGroupManager instanceTemplate. * @member {string|null|undefined} instanceTemplate @@ -190385,6 +190394,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * InstanceGroupManager _instanceLifecyclePolicy. + * @member {"instanceLifecyclePolicy"|undefined} _instanceLifecyclePolicy + * @memberof google.cloud.compute.v1.InstanceGroupManager + * @instance + */ + Object.defineProperty(InstanceGroupManager.prototype, "_instanceLifecyclePolicy", { + get: $util.oneOfGetter($oneOfFields = ["instanceLifecyclePolicy"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * InstanceGroupManager _instanceTemplate. * @member {"instanceTemplate"|undefined} _instanceTemplate @@ -190573,6 +190593,8 @@ if (message.namedPorts != null && message.namedPorts.length) for (var i = 0; i < message.namedPorts.length; ++i) $root.google.cloud.compute.v1.NamedPort.encode(message.namedPorts[i], writer.uint32(/* id 427598732, wireType 2 =*/3420789858).fork()).ldelim(); + if (message.instanceLifecyclePolicy != null && Object.hasOwnProperty.call(message, "instanceLifecyclePolicy")) + $root.google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy.encode(message.instanceLifecyclePolicy, writer.uint32(/* id 447961617, wireType 2 =*/3583692938).fork()).ldelim(); if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) writer.uint32(/* id 456214797, wireType 2 =*/3649718378).string(message.selfLink); if (message.autoHealingPolicies != null && message.autoHealingPolicies.length) @@ -190652,6 +190674,10 @@ message.instanceGroup = reader.string(); break; } + case 447961617: { + message.instanceLifecyclePolicy = $root.google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy.decode(reader, reader.uint32()); + break; + } case 309248228: { message.instanceTemplate = reader.string(); break; @@ -190805,6 +190831,14 @@ if (!$util.isString(message.instanceGroup)) return "instanceGroup: string expected"; } + if (message.instanceLifecyclePolicy != null && message.hasOwnProperty("instanceLifecyclePolicy")) { + properties._instanceLifecyclePolicy = 1; + { + var error = $root.google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy.verify(message.instanceLifecyclePolicy); + if (error) + return "instanceLifecyclePolicy." + error; + } + } if (message.instanceTemplate != null && message.hasOwnProperty("instanceTemplate")) { properties._instanceTemplate = 1; if (!$util.isString(message.instanceTemplate)) @@ -190948,6 +190982,11 @@ message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber(true); if (object.instanceGroup != null) message.instanceGroup = String(object.instanceGroup); + if (object.instanceLifecyclePolicy != null) { + if (typeof object.instanceLifecyclePolicy !== "object") + throw TypeError(".google.cloud.compute.v1.InstanceGroupManager.instanceLifecyclePolicy: object expected"); + message.instanceLifecyclePolicy = $root.google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy.fromObject(object.instanceLifecyclePolicy); + } if (object.instanceTemplate != null) message.instanceTemplate = String(object.instanceTemplate); if (object.kind != null) @@ -191131,6 +191170,11 @@ for (var j = 0; j < message.namedPorts.length; ++j) object.namedPorts[j] = $root.google.cloud.compute.v1.NamedPort.toObject(message.namedPorts[j], options); } + if (message.instanceLifecyclePolicy != null && message.hasOwnProperty("instanceLifecyclePolicy")) { + object.instanceLifecyclePolicy = $root.google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy.toObject(message.instanceLifecyclePolicy, options); + if (options.oneofs) + object._instanceLifecyclePolicy = "instanceLifecyclePolicy"; + } if (message.selfLink != null && message.hasOwnProperty("selfLink")) { object.selfLink = message.selfLink; if (options.oneofs) @@ -192615,6 +192659,243 @@ return InstanceGroupManagerAutoHealingPolicy; })(); + v1.InstanceGroupManagerInstanceLifecyclePolicy = (function() { + + /** + * Properties of an InstanceGroupManagerInstanceLifecyclePolicy. + * @memberof google.cloud.compute.v1 + * @interface IInstanceGroupManagerInstanceLifecyclePolicy + * @property {string|null} [forceUpdateOnRepair] InstanceGroupManagerInstanceLifecyclePolicy forceUpdateOnRepair + */ + + /** + * Constructs a new InstanceGroupManagerInstanceLifecyclePolicy. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an InstanceGroupManagerInstanceLifecyclePolicy. + * @implements IInstanceGroupManagerInstanceLifecyclePolicy + * @constructor + * @param {google.cloud.compute.v1.IInstanceGroupManagerInstanceLifecyclePolicy=} [properties] Properties to set + */ + function InstanceGroupManagerInstanceLifecyclePolicy(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]]; + } + + /** + * InstanceGroupManagerInstanceLifecyclePolicy forceUpdateOnRepair. + * @member {string|null|undefined} forceUpdateOnRepair + * @memberof google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy + * @instance + */ + InstanceGroupManagerInstanceLifecyclePolicy.prototype.forceUpdateOnRepair = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * InstanceGroupManagerInstanceLifecyclePolicy _forceUpdateOnRepair. + * @member {"forceUpdateOnRepair"|undefined} _forceUpdateOnRepair + * @memberof google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy + * @instance + */ + Object.defineProperty(InstanceGroupManagerInstanceLifecyclePolicy.prototype, "_forceUpdateOnRepair", { + get: $util.oneOfGetter($oneOfFields = ["forceUpdateOnRepair"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InstanceGroupManagerInstanceLifecyclePolicy instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy + * @static + * @param {google.cloud.compute.v1.IInstanceGroupManagerInstanceLifecyclePolicy=} [properties] Properties to set + * @returns {google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy} InstanceGroupManagerInstanceLifecyclePolicy instance + */ + InstanceGroupManagerInstanceLifecyclePolicy.create = function create(properties) { + return new InstanceGroupManagerInstanceLifecyclePolicy(properties); + }; + + /** + * Encodes the specified InstanceGroupManagerInstanceLifecyclePolicy message. Does not implicitly {@link google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy + * @static + * @param {google.cloud.compute.v1.IInstanceGroupManagerInstanceLifecyclePolicy} message InstanceGroupManagerInstanceLifecyclePolicy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstanceGroupManagerInstanceLifecyclePolicy.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.forceUpdateOnRepair != null && Object.hasOwnProperty.call(message, "forceUpdateOnRepair")) + writer.uint32(/* id 356302027, wireType 2 =*/2850416218).string(message.forceUpdateOnRepair); + return writer; + }; + + /** + * Encodes the specified InstanceGroupManagerInstanceLifecyclePolicy message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy + * @static + * @param {google.cloud.compute.v1.IInstanceGroupManagerInstanceLifecyclePolicy} message InstanceGroupManagerInstanceLifecyclePolicy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InstanceGroupManagerInstanceLifecyclePolicy.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InstanceGroupManagerInstanceLifecyclePolicy message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy + * @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.InstanceGroupManagerInstanceLifecyclePolicy} InstanceGroupManagerInstanceLifecyclePolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstanceGroupManagerInstanceLifecyclePolicy.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.InstanceGroupManagerInstanceLifecyclePolicy(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 356302027: { + message.forceUpdateOnRepair = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InstanceGroupManagerInstanceLifecyclePolicy message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy} InstanceGroupManagerInstanceLifecyclePolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InstanceGroupManagerInstanceLifecyclePolicy.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InstanceGroupManagerInstanceLifecyclePolicy message. + * @function verify + * @memberof google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InstanceGroupManagerInstanceLifecyclePolicy.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.forceUpdateOnRepair != null && message.hasOwnProperty("forceUpdateOnRepair")) { + properties._forceUpdateOnRepair = 1; + if (!$util.isString(message.forceUpdateOnRepair)) + return "forceUpdateOnRepair: string expected"; + } + return null; + }; + + /** + * Creates an InstanceGroupManagerInstanceLifecyclePolicy message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy} InstanceGroupManagerInstanceLifecyclePolicy + */ + InstanceGroupManagerInstanceLifecyclePolicy.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy) + return object; + var message = new $root.google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy(); + if (object.forceUpdateOnRepair != null) + message.forceUpdateOnRepair = String(object.forceUpdateOnRepair); + return message; + }; + + /** + * Creates a plain object from an InstanceGroupManagerInstanceLifecyclePolicy message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy + * @static + * @param {google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy} message InstanceGroupManagerInstanceLifecyclePolicy + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InstanceGroupManagerInstanceLifecyclePolicy.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.forceUpdateOnRepair != null && message.hasOwnProperty("forceUpdateOnRepair")) { + object.forceUpdateOnRepair = message.forceUpdateOnRepair; + if (options.oneofs) + object._forceUpdateOnRepair = "forceUpdateOnRepair"; + } + return object; + }; + + /** + * Converts this InstanceGroupManagerInstanceLifecyclePolicy to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy + * @instance + * @returns {Object.} JSON object + */ + InstanceGroupManagerInstanceLifecyclePolicy.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InstanceGroupManagerInstanceLifecyclePolicy + * @function getTypeUrl + * @memberof google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InstanceGroupManagerInstanceLifecyclePolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy"; + }; + + /** + * ForceUpdateOnRepair enum. + * @name google.cloud.compute.v1.InstanceGroupManagerInstanceLifecyclePolicy.ForceUpdateOnRepair + * @enum {number} + * @property {number} UNDEFINED_FORCE_UPDATE_ON_REPAIR=0 UNDEFINED_FORCE_UPDATE_ON_REPAIR value + * @property {number} NO=2497 NO value + * @property {number} YES=87751 YES value + */ + InstanceGroupManagerInstanceLifecyclePolicy.ForceUpdateOnRepair = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_FORCE_UPDATE_ON_REPAIR"] = 0; + values[valuesById[2497] = "NO"] = 2497; + values[valuesById[87751] = "YES"] = 87751; + return values; + })(); + + return InstanceGroupManagerInstanceLifecyclePolicy; + })(); + v1.InstanceGroupManagerList = (function() { /** @@ -359638,6 +359919,7 @@ * @property {string|null} [name] Route name * @property {string|null} [network] Route network * @property {string|null} [nextHopGateway] Route nextHopGateway + * @property {string|null} [nextHopHub] Route nextHopHub * @property {string|null} [nextHopIlb] Route nextHopIlb * @property {string|null} [nextHopInstance] Route nextHopInstance * @property {string|null} [nextHopIp] Route nextHopIp @@ -359742,6 +360024,14 @@ */ Route.prototype.nextHopGateway = null; + /** + * Route nextHopHub. + * @member {string|null|undefined} nextHopHub + * @memberof google.cloud.compute.v1.Route + * @instance + */ + Route.prototype.nextHopHub = null; + /** * Route nextHopIlb. * @member {string|null|undefined} nextHopIlb @@ -359929,6 +360219,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * Route _nextHopHub. + * @member {"nextHopHub"|undefined} _nextHopHub + * @memberof google.cloud.compute.v1.Route + * @instance + */ + Object.defineProperty(Route.prototype, "_nextHopHub", { + get: $util.oneOfGetter($oneOfFields = ["nextHopHub"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Route _nextHopIlb. * @member {"nextHopIlb"|undefined} _nextHopIlb @@ -360079,6 +360380,8 @@ if (message.asPaths != null && message.asPaths.length) for (var i = 0; i < message.asPaths.length; ++i) $root.google.cloud.compute.v1.RouteAsPath.encode(message.asPaths[i], writer.uint32(/* id 137568929, wireType 2 =*/1100551434).fork()).ldelim(); + if (message.nextHopHub != null && Object.hasOwnProperty.call(message, "nextHopHub")) + writer.uint32(/* id 198679219, wireType 2 =*/1589433754).string(message.nextHopHub); if (message.nextHopIlb != null && Object.hasOwnProperty.call(message, "nextHopIlb")) writer.uint32(/* id 198679901, wireType 2 =*/1589439210).string(message.nextHopIlb); if (message.network != null && Object.hasOwnProperty.call(message, "network")) @@ -360180,6 +360483,10 @@ message.nextHopGateway = reader.string(); break; } + case 198679219: { + message.nextHopHub = reader.string(); + break; + } case 198679901: { message.nextHopIlb = reader.string(); break; @@ -360317,6 +360624,11 @@ if (!$util.isString(message.nextHopGateway)) return "nextHopGateway: string expected"; } + if (message.nextHopHub != null && message.hasOwnProperty("nextHopHub")) { + properties._nextHopHub = 1; + if (!$util.isString(message.nextHopHub)) + return "nextHopHub: string expected"; + } if (message.nextHopIlb != null && message.hasOwnProperty("nextHopIlb")) { properties._nextHopIlb = 1; if (!$util.isString(message.nextHopIlb)) @@ -360431,6 +360743,8 @@ message.network = String(object.network); if (object.nextHopGateway != null) message.nextHopGateway = String(object.nextHopGateway); + if (object.nextHopHub != null) + message.nextHopHub = String(object.nextHopHub); if (object.nextHopIlb != null) message.nextHopIlb = String(object.nextHopIlb); if (object.nextHopInstance != null) @@ -360527,6 +360841,11 @@ for (var j = 0; j < message.asPaths.length; ++j) object.asPaths[j] = $root.google.cloud.compute.v1.RouteAsPath.toObject(message.asPaths[j], options); } + if (message.nextHopHub != null && message.hasOwnProperty("nextHopHub")) { + object.nextHopHub = message.nextHopHub; + if (options.oneofs) + object._nextHopHub = "nextHopHub"; + } if (message.nextHopIlb != null && message.hasOwnProperty("nextHopIlb")) { object.nextHopIlb = message.nextHopIlb; if (options.oneofs) @@ -366049,6 +366368,7 @@ * Properties of a RouterNat. * @memberof google.cloud.compute.v1 * @interface IRouterNat + * @property {string|null} [autoNetworkTier] RouterNat autoNetworkTier * @property {Array.|null} [drainNatIps] RouterNat drainNatIps * @property {boolean|null} [enableDynamicPortAllocation] RouterNat enableDynamicPortAllocation * @property {boolean|null} [enableEndpointIndependentMapping] RouterNat enableEndpointIndependentMapping @@ -366089,6 +366409,14 @@ this[keys[i]] = properties[keys[i]]; } + /** + * RouterNat autoNetworkTier. + * @member {string|null|undefined} autoNetworkTier + * @memberof google.cloud.compute.v1.RouterNat + * @instance + */ + RouterNat.prototype.autoNetworkTier = null; + /** * RouterNat drainNatIps. * @member {Array.} drainNatIps @@ -366236,6 +366564,17 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; + /** + * RouterNat _autoNetworkTier. + * @member {"autoNetworkTier"|undefined} _autoNetworkTier + * @memberof google.cloud.compute.v1.RouterNat + * @instance + */ + Object.defineProperty(RouterNat.prototype, "_autoNetworkTier", { + get: $util.oneOfGetter($oneOfFields = ["autoNetworkTier"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * RouterNat _enableDynamicPortAllocation. * @member {"enableDynamicPortAllocation"|undefined} _enableDynamicPortAllocation @@ -366427,6 +366766,8 @@ writer.uint32(/* id 252213211, wireType 2 =*/2017705690).string(message.sourceSubnetworkIpRangesToNat); if (message.enableEndpointIndependentMapping != null && Object.hasOwnProperty.call(message, "enableEndpointIndependentMapping")) writer.uint32(/* id 259441819, wireType 0 =*/2075534552).bool(message.enableEndpointIndependentMapping); + if (message.autoNetworkTier != null && Object.hasOwnProperty.call(message, "autoNetworkTier")) + writer.uint32(/* id 269770211, wireType 2 =*/2158161690).string(message.autoNetworkTier); if (message.logConfig != null && Object.hasOwnProperty.call(message, "logConfig")) $root.google.cloud.compute.v1.RouterNatLogConfig.encode(message.logConfig, writer.uint32(/* id 351299741, wireType 2 =*/2810397930).fork()).ldelim(); if (message.subnetworks != null && message.subnetworks.length) @@ -366478,6 +366819,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 269770211: { + message.autoNetworkTier = reader.string(); + break; + } case 504078535: { if (!(message.drainNatIps && message.drainNatIps.length)) message.drainNatIps = []; @@ -366596,6 +366941,11 @@ if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; + if (message.autoNetworkTier != null && message.hasOwnProperty("autoNetworkTier")) { + properties._autoNetworkTier = 1; + if (!$util.isString(message.autoNetworkTier)) + return "autoNetworkTier: string expected"; + } if (message.drainNatIps != null && message.hasOwnProperty("drainNatIps")) { if (!Array.isArray(message.drainNatIps)) return "drainNatIps: array expected"; @@ -366718,6 +367068,8 @@ if (object instanceof $root.google.cloud.compute.v1.RouterNat) return object; var message = new $root.google.cloud.compute.v1.RouterNat(); + if (object.autoNetworkTier != null) + message.autoNetworkTier = String(object.autoNetworkTier); if (object.drainNatIps) { if (!Array.isArray(object.drainNatIps)) throw TypeError(".google.cloud.compute.v1.RouterNat.drainNatIps: array expected"); @@ -366866,6 +367218,11 @@ if (options.oneofs) object._enableEndpointIndependentMapping = "enableEndpointIndependentMapping"; } + if (message.autoNetworkTier != null && message.hasOwnProperty("autoNetworkTier")) { + object.autoNetworkTier = message.autoNetworkTier; + if (options.oneofs) + object._autoNetworkTier = "autoNetworkTier"; + } if (message.logConfig != null && message.hasOwnProperty("logConfig")) { object.logConfig = $root.google.cloud.compute.v1.RouterNatLogConfig.toObject(message.logConfig, options); if (options.oneofs) @@ -366930,6 +367287,26 @@ return typeUrlPrefix + "/google.cloud.compute.v1.RouterNat"; }; + /** + * AutoNetworkTier enum. + * @name google.cloud.compute.v1.RouterNat.AutoNetworkTier + * @enum {number} + * @property {number} UNDEFINED_AUTO_NETWORK_TIER=0 UNDEFINED_AUTO_NETWORK_TIER value + * @property {number} FIXED_STANDARD=310464328 FIXED_STANDARD value + * @property {number} PREMIUM=399530551 PREMIUM value + * @property {number} STANDARD=484642493 STANDARD value + * @property {number} STANDARD_OVERRIDES_FIXED_STANDARD=465847234 STANDARD_OVERRIDES_FIXED_STANDARD value + */ + RouterNat.AutoNetworkTier = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_AUTO_NETWORK_TIER"] = 0; + values[valuesById[310464328] = "FIXED_STANDARD"] = 310464328; + values[valuesById[399530551] = "PREMIUM"] = 399530551; + values[valuesById[484642493] = "STANDARD"] = 484642493; + values[valuesById[465847234] = "STANDARD_OVERRIDES_FIXED_STANDARD"] = 465847234; + return values; + })(); + /** * EndpointTypes enum. * @name google.cloud.compute.v1.RouterNat.EndpointTypes @@ -431659,6 +432036,7 @@ * @property {string|null} [creationTimestamp] TargetHttpProxy creationTimestamp * @property {string|null} [description] TargetHttpProxy description * @property {string|null} [fingerprint] TargetHttpProxy fingerprint + * @property {number|null} [httpKeepAliveTimeoutSec] TargetHttpProxy httpKeepAliveTimeoutSec * @property {number|Long|null} [id] TargetHttpProxy id * @property {string|null} [kind] TargetHttpProxy kind * @property {string|null} [name] TargetHttpProxy name @@ -431707,6 +432085,14 @@ */ TargetHttpProxy.prototype.fingerprint = null; + /** + * TargetHttpProxy httpKeepAliveTimeoutSec. + * @member {number|null|undefined} httpKeepAliveTimeoutSec + * @memberof google.cloud.compute.v1.TargetHttpProxy + * @instance + */ + TargetHttpProxy.prototype.httpKeepAliveTimeoutSec = null; + /** * TargetHttpProxy id. * @member {number|Long|null|undefined} id @@ -431799,6 +432185,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * TargetHttpProxy _httpKeepAliveTimeoutSec. + * @member {"httpKeepAliveTimeoutSec"|undefined} _httpKeepAliveTimeoutSec + * @memberof google.cloud.compute.v1.TargetHttpProxy + * @instance + */ + Object.defineProperty(TargetHttpProxy.prototype, "_httpKeepAliveTimeoutSec", { + get: $util.oneOfGetter($oneOfFields = ["httpKeepAliveTimeoutSec"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * TargetHttpProxy _id. * @member {"id"|undefined} _id @@ -431918,6 +432315,8 @@ writer.uint32(/* id 367020684, wireType 2 =*/2936165474).string(message.urlMap); if (message.description != null && Object.hasOwnProperty.call(message, "description")) writer.uint32(/* id 422937596, wireType 2 =*/3383500770).string(message.description); + if (message.httpKeepAliveTimeoutSec != null && Object.hasOwnProperty.call(message, "httpKeepAliveTimeoutSec")) + writer.uint32(/* id 447326046, wireType 0 =*/3578608368).int32(message.httpKeepAliveTimeoutSec); if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) writer.uint32(/* id 456214797, wireType 2 =*/3649718378).string(message.selfLink); return writer; @@ -431966,6 +432365,10 @@ message.fingerprint = reader.string(); break; } + case 447326046: { + message.httpKeepAliveTimeoutSec = reader.int32(); + break; + } case 3355: { message.id = reader.uint64(); break; @@ -432045,6 +432448,11 @@ if (!$util.isString(message.fingerprint)) return "fingerprint: string expected"; } + if (message.httpKeepAliveTimeoutSec != null && message.hasOwnProperty("httpKeepAliveTimeoutSec")) { + properties._httpKeepAliveTimeoutSec = 1; + if (!$util.isInteger(message.httpKeepAliveTimeoutSec)) + return "httpKeepAliveTimeoutSec: integer 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))) @@ -432101,6 +432509,8 @@ message.description = String(object.description); if (object.fingerprint != null) message.fingerprint = String(object.fingerprint); + if (object.httpKeepAliveTimeoutSec != null) + message.httpKeepAliveTimeoutSec = object.httpKeepAliveTimeoutSec | 0; if (object.id != null) if ($util.Long) (message.id = $util.Long.fromValue(object.id)).unsigned = true; @@ -432186,6 +432596,11 @@ if (options.oneofs) object._description = "description"; } + if (message.httpKeepAliveTimeoutSec != null && message.hasOwnProperty("httpKeepAliveTimeoutSec")) { + object.httpKeepAliveTimeoutSec = message.httpKeepAliveTimeoutSec; + if (options.oneofs) + object._httpKeepAliveTimeoutSec = "httpKeepAliveTimeoutSec"; + } if (message.selfLink != null && message.hasOwnProperty("selfLink")) { object.selfLink = message.selfLink; if (options.oneofs) @@ -434050,6 +434465,7 @@ * @property {string|null} [creationTimestamp] TargetHttpsProxy creationTimestamp * @property {string|null} [description] TargetHttpsProxy description * @property {string|null} [fingerprint] TargetHttpsProxy fingerprint + * @property {number|null} [httpKeepAliveTimeoutSec] TargetHttpsProxy httpKeepAliveTimeoutSec * @property {number|Long|null} [id] TargetHttpsProxy id * @property {string|null} [kind] TargetHttpsProxy kind * @property {string|null} [name] TargetHttpsProxy name @@ -434119,6 +434535,14 @@ */ TargetHttpsProxy.prototype.fingerprint = null; + /** + * TargetHttpsProxy httpKeepAliveTimeoutSec. + * @member {number|null|undefined} httpKeepAliveTimeoutSec + * @memberof google.cloud.compute.v1.TargetHttpsProxy + * @instance + */ + TargetHttpsProxy.prototype.httpKeepAliveTimeoutSec = null; + /** * TargetHttpsProxy id. * @member {number|Long|null|undefined} id @@ -434265,6 +434689,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * TargetHttpsProxy _httpKeepAliveTimeoutSec. + * @member {"httpKeepAliveTimeoutSec"|undefined} _httpKeepAliveTimeoutSec + * @memberof google.cloud.compute.v1.TargetHttpsProxy + * @instance + */ + Object.defineProperty(TargetHttpsProxy.prototype, "_httpKeepAliveTimeoutSec", { + get: $util.oneOfGetter($oneOfFields = ["httpKeepAliveTimeoutSec"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * TargetHttpsProxy _id. * @member {"id"|undefined} _id @@ -434428,6 +434863,8 @@ writer.uint32(/* id 367020684, wireType 2 =*/2936165474).string(message.urlMap); if (message.description != null && Object.hasOwnProperty.call(message, "description")) writer.uint32(/* id 422937596, wireType 2 =*/3383500770).string(message.description); + if (message.httpKeepAliveTimeoutSec != null && Object.hasOwnProperty.call(message, "httpKeepAliveTimeoutSec")) + writer.uint32(/* id 447326046, wireType 0 =*/3578608368).int32(message.httpKeepAliveTimeoutSec); if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) writer.uint32(/* id 456214797, wireType 2 =*/3649718378).string(message.selfLink); if (message.quicOverride != null && Object.hasOwnProperty.call(message, "quicOverride")) @@ -434486,6 +434923,10 @@ message.fingerprint = reader.string(); break; } + case 447326046: { + message.httpKeepAliveTimeoutSec = reader.int32(); + break; + } case 3355: { message.id = reader.uint64(); break; @@ -434593,6 +435034,11 @@ if (!$util.isString(message.fingerprint)) return "fingerprint: string expected"; } + if (message.httpKeepAliveTimeoutSec != null && message.hasOwnProperty("httpKeepAliveTimeoutSec")) { + properties._httpKeepAliveTimeoutSec = 1; + if (!$util.isInteger(message.httpKeepAliveTimeoutSec)) + return "httpKeepAliveTimeoutSec: integer 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))) @@ -434675,6 +435121,8 @@ message.description = String(object.description); if (object.fingerprint != null) message.fingerprint = String(object.fingerprint); + if (object.httpKeepAliveTimeoutSec != null) + message.httpKeepAliveTimeoutSec = object.httpKeepAliveTimeoutSec | 0; if (object.id != null) if ($util.Long) (message.id = $util.Long.fromValue(object.id)).unsigned = true; @@ -434800,6 +435248,11 @@ if (options.oneofs) object._description = "description"; } + if (message.httpKeepAliveTimeoutSec != null && message.hasOwnProperty("httpKeepAliveTimeoutSec")) { + object.httpKeepAliveTimeoutSec = message.httpKeepAliveTimeoutSec; + if (options.oneofs) + object._httpKeepAliveTimeoutSec = "httpKeepAliveTimeoutSec"; + } if (message.selfLink != null && message.hasOwnProperty("selfLink")) { object.selfLink = message.selfLink; if (options.oneofs) diff --git a/packages/google-cloud-compute/protos/protos.json b/packages/google-cloud-compute/protos/protos.json index b53e77dfd08..e89684a2d95 100644 --- a/packages/google-cloud-compute/protos/protos.json +++ b/packages/google-cloud-compute/protos/protos.json @@ -28509,6 +28509,11 @@ "instanceGroup" ] }, + "_instanceLifecyclePolicy": { + "oneof": [ + "instanceLifecyclePolicy" + ] + }, "_instanceTemplate": { "oneof": [ "instanceTemplate" @@ -28627,6 +28632,13 @@ "proto3_optional": true } }, + "instanceLifecyclePolicy": { + "type": "InstanceGroupManagerInstanceLifecyclePolicy", + "id": 447961617, + "options": { + "proto3_optional": true + } + }, "instanceTemplate": { "type": "string", "id": 309248228, @@ -28998,6 +29010,33 @@ } } }, + "InstanceGroupManagerInstanceLifecyclePolicy": { + "oneofs": { + "_forceUpdateOnRepair": { + "oneof": [ + "forceUpdateOnRepair" + ] + } + }, + "fields": { + "forceUpdateOnRepair": { + "type": "string", + "id": 356302027, + "options": { + "proto3_optional": true + } + } + }, + "nested": { + "ForceUpdateOnRepair": { + "values": { + "UNDEFINED_FORCE_UPDATE_ON_REPAIR": 0, + "NO": 2497, + "YES": 87751 + } + } + } + }, "InstanceGroupManagerList": { "oneofs": { "_id": { @@ -56252,6 +56291,11 @@ "nextHopGateway" ] }, + "_nextHopHub": { + "oneof": [ + "nextHopHub" + ] + }, "_nextHopIlb": { "oneof": [ "nextHopIlb" @@ -56365,6 +56409,13 @@ "proto3_optional": true } }, + "nextHopHub": { + "type": "string", + "id": 198679219, + "options": { + "proto3_optional": true + } + }, "nextHopIlb": { "type": "string", "id": 198679901, @@ -57429,6 +57480,11 @@ }, "RouterNat": { "oneofs": { + "_autoNetworkTier": { + "oneof": [ + "autoNetworkTier" + ] + }, "_enableDynamicPortAllocation": { "oneof": [ "enableDynamicPortAllocation" @@ -57496,6 +57552,13 @@ } }, "fields": { + "autoNetworkTier": { + "type": "string", + "id": 269770211, + "options": { + "proto3_optional": true + } + }, "drainNatIps": { "rule": "repeated", "type": "string", @@ -57614,6 +57677,15 @@ } }, "nested": { + "AutoNetworkTier": { + "values": { + "UNDEFINED_AUTO_NETWORK_TIER": 0, + "FIXED_STANDARD": 310464328, + "PREMIUM": 399530551, + "STANDARD": 484642493, + "STANDARD_OVERRIDES_FIXED_STANDARD": 465847234 + } + }, "EndpointTypes": { "values": { "UNDEFINED_ENDPOINT_TYPES": 0, @@ -67191,6 +67263,11 @@ "fingerprint" ] }, + "_httpKeepAliveTimeoutSec": { + "oneof": [ + "httpKeepAliveTimeoutSec" + ] + }, "_id": { "oneof": [ "id" @@ -67249,6 +67326,13 @@ "proto3_optional": true } }, + "httpKeepAliveTimeoutSec": { + "type": "int32", + "id": 447326046, + "options": { + "proto3_optional": true + } + }, "id": { "type": "uint64", "id": 3355, @@ -67540,6 +67624,11 @@ "fingerprint" ] }, + "_httpKeepAliveTimeoutSec": { + "oneof": [ + "httpKeepAliveTimeoutSec" + ] + }, "_id": { "oneof": [ "id" @@ -67627,6 +67716,13 @@ "proto3_optional": true } }, + "httpKeepAliveTimeoutSec": { + "type": "int32", + "id": 447326046, + "options": { + "proto3_optional": true + } + }, "id": { "type": "uint64", "id": 3355, 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 6d6c82b0ea3..131bf0a52c3 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 @@ -19267,7 +19267,7 @@ "regionTag": "compute_v1_generated_Projects_MoveInstance_async", "title": "AcceleratorTypes moveInstance Sample", "origin": "API_DEFINITION", - "description": " Moves an instance and its attached persistent disks from one zone to another. *Note*: Moving VMs or disks by using this method might cause unexpected behavior. For more information, see the [known issue](/compute/docs/troubleshooting/known-issues#moving_vms_or_disks_using_the_moveinstance_api_or_the_causes_unexpected_behavior).", + "description": " Moves an instance and its attached persistent disks from one zone to another. *Note*: Moving VMs or disks by using this method might cause unexpected behavior. For more information, see the [known issue](/compute/docs/troubleshooting/known-issues#moving_vms_or_disks_using_the_moveinstance_api_or_the_causes_unexpected_behavior). [Deprecated] This method is deprecated. See [moving instance across zones](/compute/docs/instances/moving-instance-across-zones) instead.", "canonical": true, "file": "projects.move_instance.js", "language": "JAVASCRIPT", diff --git a/packages/google-cloud-compute/src/v1/projects_client.ts b/packages/google-cloud-compute/src/v1/projects_client.ts index 08b4318e548..c071d348447 100644 --- a/packages/google-cloud-compute/src/v1/projects_client.ts +++ b/packages/google-cloud-compute/src/v1/projects_client.ts @@ -1104,7 +1104,7 @@ export class ProjectsClient { ); } /** - * Moves an instance and its attached persistent disks from one zone to another. *Note*: Moving VMs or disks by using this method might cause unexpected behavior. For more information, see the [known issue](/compute/docs/troubleshooting/known-issues#moving_vms_or_disks_using_the_moveinstance_api_or_the_causes_unexpected_behavior). + * Moves an instance and its attached persistent disks from one zone to another. *Note*: Moving VMs or disks by using this method might cause unexpected behavior. For more information, see the [known issue](/compute/docs/troubleshooting/known-issues#moving_vms_or_disks_using_the_moveinstance_api_or_the_causes_unexpected_behavior). [Deprecated] This method is deprecated. See [moving instance across zones](/compute/docs/instances/moving-instance-across-zones) instead. * * @param {Object} request * The request object that will be sent.