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 dc4c200b201..7f11b2ee8df 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 2021 Google LLC +// Copyright 2022 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: 20211004 +// Source file revision: 20220112 // API name: compute // API version: v1 @@ -206,12 +206,18 @@ message AccessConfig { // A value indicating that the enum field is not set. UNDEFINED_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; + } // The type of configuration. The default and only option is ONE_TO_ONE_NAT. @@ -225,10 +231,10 @@ message AccessConfig { } - // [Output Only] The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. The field is output only, an IPv6 address from a subnetwork associated with the instance will be allocated dynamically. + // The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. The field is output only, an IPv6 address from a subnetwork associated with the instance will be allocated dynamically. optional string external_ipv6 = 532703707; - // [Output Only] The prefix length of the external IPv6 range. + // The prefix length of the external IPv6 range. optional int32 external_ipv6_prefix_length = 425672143; // [Output Only] Type of the resource. Always compute#accessConfig for access configs. @@ -244,10 +250,10 @@ message AccessConfig { // Check the NetworkTier enum for the list of possible values. optional string network_tier = 517397843; - // The DNS domain name for the public PTR record. You can set this field only if the `setPublicPtr` field is enabled. + // The DNS domain name for the public PTR record. You can set this field only if the `setPublicPtr` field is enabled in accessConfig. If this field is unspecified in ipv6AccessConfig, a default PTR record will be createc for first IP in associated external IPv6 range. optional string public_ptr_domain_name = 316599167; - // Specifies whether a public DNS 'PTR' record should be created to map the external IP address of the instance to a DNS domain name. + // Specifies whether a public DNS 'PTR' record should be created to map the external IP address of the instance to a DNS domain name. This field is not used in ipv6AccessConfig. A default PTR record will be created if the VM has external IPv6 range associated. optional bool set_public_ptr = 523870229; // The type of configuration. The default and only option is ONE_TO_ONE_NAT. @@ -596,15 +602,21 @@ message Address { // A value indicating that the enum field is not set. UNDEFINED_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; + } - // The purpose of this resource, which can be one of the following values: - GCE_ENDPOINT for addresses that are used by VM instances, alias IP ranges, load balancers, and similar resources. - DNS_RESOLVER for a DNS resolver address in a subnetwork for a Cloud DNS inbound forwarder IP addresses (regional internal IP address in a subnet of a VPC network) - VPC_PEERING for global internal IP addresses used for private services access allocated ranges. - NAT_AUTO for the regional external IP addresses used by Cloud NAT when allocating addresses using . - IPSEC_INTERCONNECT for addresses created from a private IP range that are reserved for a VLAN attachment in an *IPsec-encrypted Cloud Interconnect* configuration. These addresses are regional resources. Not currently available publicly. - `SHARED_LOADBALANCER_VIP` for an internal IP address that is assigned to multiple internal forwarding rules. - `PRIVATE_SERVICE_CONNECT` for a private network address that is used to configure Private Service Connect. Only global internal addresses can use this purpose. + // The purpose of this resource, which can be one of the following values: - GCE_ENDPOINT for addresses that are used by VM instances, alias IP ranges, load balancers, and similar resources. - DNS_RESOLVER for a DNS resolver address in a subnetwork for a Cloud DNS inbound forwarder IP addresses (regional internal IP address in a subnet of a VPC network) - VPC_PEERING for global internal IP addresses used for private services access allocated ranges. - NAT_AUTO for the regional external IP addresses used by Cloud NAT when allocating addresses using automatic NAT IP address allocation. - IPSEC_INTERCONNECT for addresses created from a private IP range that are reserved for a VLAN attachment in an *IPsec-encrypted Cloud Interconnect* configuration. These addresses are regional resources. Not currently available publicly. - `SHARED_LOADBALANCER_VIP` for an internal IP address that is assigned to multiple internal forwarding rules. - `PRIVATE_SERVICE_CONNECT` for a private network address that is used to configure Private Service Connect. Only global internal addresses can use this purpose. enum Purpose { // A value indicating that the enum field is not set. UNDEFINED_PURPOSE = 0; @@ -615,7 +627,7 @@ message Address { // VM internal/alias IP, Internal LB service IP, etc. GCE_ENDPOINT = 230515243; - // A regional internal IP address range reserved for the VLAN attachment that is used in IPsec-encrypted Cloud Interconnect. This regional internal IP address range must not overlap with any IP address range of subnet/route in the VPC network and its peering networks. After the VLAN attachment is created with the reserved IP address range, when creating a new VPN gateway, its interface IP address is allocated from the associated VLAN attachment’s IP address range. + // A regional internal IP address range reserved for the VLAN attachment that is used in IPsec-encrypted Cloud Interconnect. This regional internal IP address range must not overlap with any IP address range of subnet/route in the VPC network and its peering networks. After the VLAN attachment is created with the reserved IP address range, when creating a new VPN gateway, its interface IP address is allocated from the associated VLAN attachment���s IP address range. IPSEC_INTERCONNECT = 340437251; // External IP automatically reserved for Cloud NAT. @@ -684,7 +696,7 @@ message Address { // The prefix length if the resource represents an IP range. optional int32 prefix_length = 453565747; - // The purpose of this resource, which can be one of the following values: - GCE_ENDPOINT for addresses that are used by VM instances, alias IP ranges, load balancers, and similar resources. - DNS_RESOLVER for a DNS resolver address in a subnetwork for a Cloud DNS inbound forwarder IP addresses (regional internal IP address in a subnet of a VPC network) - VPC_PEERING for global internal IP addresses used for private services access allocated ranges. - NAT_AUTO for the regional external IP addresses used by Cloud NAT when allocating addresses using . - IPSEC_INTERCONNECT for addresses created from a private IP range that are reserved for a VLAN attachment in an *IPsec-encrypted Cloud Interconnect* configuration. These addresses are regional resources. Not currently available publicly. - `SHARED_LOADBALANCER_VIP` for an internal IP address that is assigned to multiple internal forwarding rules. - `PRIVATE_SERVICE_CONNECT` for a private network address that is used to configure Private Service Connect. Only global internal addresses can use this purpose. + // The purpose of this resource, which can be one of the following values: - GCE_ENDPOINT for addresses that are used by VM instances, alias IP ranges, load balancers, and similar resources. - DNS_RESOLVER for a DNS resolver address in a subnetwork for a Cloud DNS inbound forwarder IP addresses (regional internal IP address in a subnet of a VPC network) - VPC_PEERING for global internal IP addresses used for private services access allocated ranges. - NAT_AUTO for the regional external IP addresses used by Cloud NAT when allocating addresses using automatic NAT IP address allocation. - IPSEC_INTERCONNECT for addresses created from a private IP range that are reserved for a VLAN attachment in an *IPsec-encrypted Cloud Interconnect* configuration. These addresses are regional resources. Not currently available publicly. - `SHARED_LOADBALANCER_VIP` for an internal IP address that is assigned to multiple internal forwarding rules. - `PRIVATE_SERVICE_CONNECT` for a private network address that is used to configure Private Service Connect. Only global internal addresses can use this purpose. // Check the Purpose enum for the list of possible values. optional string purpose = 316407070; @@ -768,6 +780,9 @@ message AdvancedMachineFeatures { // Whether to enable nested virtualization or not (default is false). optional bool enable_nested_virtualization = 16639365; + // Whether to enable UEFI networking for instance creation. + optional bool enable_uefi_networking = 334485668; + // The number of threads per physical core. To disable simultaneous multithreading (SMT) set this to 1. If unset, the maximum number of threads supported per core by the underlying processor is assumed. optional int32 threads_per_core = 352611671; @@ -775,7 +790,7 @@ message AdvancedMachineFeatures { // A request message for AcceleratorTypes.AggregatedList. See the method description for details. message AggregatedListAcceleratorTypesRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` optional string filter = 336120696; // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. @@ -800,7 +815,7 @@ message AggregatedListAcceleratorTypesRequest { // A request message for Addresses.AggregatedList. See the method description for details. message AggregatedListAddressesRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` optional string filter = 336120696; // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. @@ -825,7 +840,7 @@ message AggregatedListAddressesRequest { // A request message for Autoscalers.AggregatedList. See the method description for details. message AggregatedListAutoscalersRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` optional string filter = 336120696; // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. @@ -850,7 +865,7 @@ message AggregatedListAutoscalersRequest { // A request message for BackendServices.AggregatedList. See the method description for details. message AggregatedListBackendServicesRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` optional string filter = 336120696; // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. @@ -875,7 +890,7 @@ message AggregatedListBackendServicesRequest { // A request message for DiskTypes.AggregatedList. See the method description for details. message AggregatedListDiskTypesRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` optional string filter = 336120696; // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. @@ -900,7 +915,7 @@ message AggregatedListDiskTypesRequest { // A request message for Disks.AggregatedList. See the method description for details. message AggregatedListDisksRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` optional string filter = 336120696; // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. @@ -925,7 +940,7 @@ message AggregatedListDisksRequest { // A request message for ForwardingRules.AggregatedList. See the method description for details. message AggregatedListForwardingRulesRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` optional string filter = 336120696; // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. @@ -950,7 +965,7 @@ message AggregatedListForwardingRulesRequest { // A request message for GlobalOperations.AggregatedList. See the method description for details. message AggregatedListGlobalOperationsRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` optional string filter = 336120696; // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. @@ -975,7 +990,7 @@ message AggregatedListGlobalOperationsRequest { // A request message for HealthChecks.AggregatedList. See the method description for details. message AggregatedListHealthChecksRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` optional string filter = 336120696; // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. @@ -1000,7 +1015,7 @@ message AggregatedListHealthChecksRequest { // A request message for InstanceGroupManagers.AggregatedList. See the method description for details. message AggregatedListInstanceGroupManagersRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` optional string filter = 336120696; // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. @@ -1025,7 +1040,7 @@ message AggregatedListInstanceGroupManagersRequest { // A request message for InstanceGroups.AggregatedList. See the method description for details. message AggregatedListInstanceGroupsRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` optional string filter = 336120696; // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. @@ -1050,7 +1065,7 @@ message AggregatedListInstanceGroupsRequest { // A request message for Instances.AggregatedList. See the method description for details. message AggregatedListInstancesRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` optional string filter = 336120696; // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. @@ -1075,7 +1090,7 @@ message AggregatedListInstancesRequest { // A request message for InterconnectAttachments.AggregatedList. See the method description for details. message AggregatedListInterconnectAttachmentsRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` optional string filter = 336120696; // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. @@ -1100,7 +1115,7 @@ message AggregatedListInterconnectAttachmentsRequest { // A request message for MachineTypes.AggregatedList. See the method description for details. message AggregatedListMachineTypesRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` optional string filter = 336120696; // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. @@ -1125,7 +1140,7 @@ message AggregatedListMachineTypesRequest { // A request message for NetworkEndpointGroups.AggregatedList. See the method description for details. message AggregatedListNetworkEndpointGroupsRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` optional string filter = 336120696; // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. @@ -1150,7 +1165,7 @@ message AggregatedListNetworkEndpointGroupsRequest { // A request message for NodeGroups.AggregatedList. See the method description for details. message AggregatedListNodeGroupsRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` optional string filter = 336120696; // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. @@ -1175,7 +1190,7 @@ message AggregatedListNodeGroupsRequest { // A request message for NodeTemplates.AggregatedList. See the method description for details. message AggregatedListNodeTemplatesRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` optional string filter = 336120696; // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. @@ -1200,7 +1215,7 @@ message AggregatedListNodeTemplatesRequest { // A request message for NodeTypes.AggregatedList. See the method description for details. message AggregatedListNodeTypesRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` optional string filter = 336120696; // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. @@ -1225,7 +1240,7 @@ message AggregatedListNodeTypesRequest { // A request message for PacketMirrorings.AggregatedList. See the method description for details. message AggregatedListPacketMirroringsRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` optional string filter = 336120696; // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. @@ -1250,7 +1265,7 @@ message AggregatedListPacketMirroringsRequest { // A request message for PublicDelegatedPrefixes.AggregatedList. See the method description for details. message AggregatedListPublicDelegatedPrefixesRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` optional string filter = 336120696; // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. @@ -1275,7 +1290,7 @@ message AggregatedListPublicDelegatedPrefixesRequest { // A request message for RegionCommitments.AggregatedList. See the method description for details. message AggregatedListRegionCommitmentsRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` optional string filter = 336120696; // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. @@ -1300,7 +1315,7 @@ message AggregatedListRegionCommitmentsRequest { // A request message for Reservations.AggregatedList. See the method description for details. message AggregatedListReservationsRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` optional string filter = 336120696; // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. @@ -1325,7 +1340,7 @@ message AggregatedListReservationsRequest { // A request message for ResourcePolicies.AggregatedList. See the method description for details. message AggregatedListResourcePoliciesRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` optional string filter = 336120696; // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. @@ -1350,7 +1365,7 @@ message AggregatedListResourcePoliciesRequest { // A request message for Routers.AggregatedList. See the method description for details. message AggregatedListRoutersRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` optional string filter = 336120696; // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. @@ -1375,7 +1390,7 @@ message AggregatedListRoutersRequest { // A request message for ServiceAttachments.AggregatedList. See the method description for details. message AggregatedListServiceAttachmentsRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` optional string filter = 336120696; // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. @@ -1400,7 +1415,7 @@ message AggregatedListServiceAttachmentsRequest { // A request message for SslCertificates.AggregatedList. See the method description for details. message AggregatedListSslCertificatesRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` optional string filter = 336120696; // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. @@ -1425,7 +1440,7 @@ message AggregatedListSslCertificatesRequest { // A request message for Subnetworks.AggregatedList. See the method description for details. message AggregatedListSubnetworksRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` optional string filter = 336120696; // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. @@ -1450,7 +1465,7 @@ message AggregatedListSubnetworksRequest { // A request message for TargetHttpProxies.AggregatedList. See the method description for details. message AggregatedListTargetHttpProxiesRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` optional string filter = 336120696; // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. @@ -1475,7 +1490,7 @@ message AggregatedListTargetHttpProxiesRequest { // A request message for TargetHttpsProxies.AggregatedList. See the method description for details. message AggregatedListTargetHttpsProxiesRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` optional string filter = 336120696; // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. @@ -1500,7 +1515,7 @@ message AggregatedListTargetHttpsProxiesRequest { // A request message for TargetInstances.AggregatedList. See the method description for details. message AggregatedListTargetInstancesRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` optional string filter = 336120696; // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. @@ -1525,7 +1540,7 @@ message AggregatedListTargetInstancesRequest { // A request message for TargetPools.AggregatedList. See the method description for details. message AggregatedListTargetPoolsRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` optional string filter = 336120696; // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. @@ -1550,7 +1565,7 @@ message AggregatedListTargetPoolsRequest { // A request message for TargetVpnGateways.AggregatedList. See the method description for details. message AggregatedListTargetVpnGatewaysRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` optional string filter = 336120696; // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. @@ -1575,7 +1590,7 @@ message AggregatedListTargetVpnGatewaysRequest { // A request message for UrlMaps.AggregatedList. See the method description for details. message AggregatedListUrlMapsRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` optional string filter = 336120696; // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. @@ -1600,7 +1615,7 @@ message AggregatedListUrlMapsRequest { // A request message for VpnGateways.AggregatedList. See the method description for details. message AggregatedListVpnGatewaysRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` optional string filter = 336120696; // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. @@ -1625,7 +1640,7 @@ message AggregatedListVpnGatewaysRequest { // A request message for VpnTunnels.AggregatedList. See the method description for details. message AggregatedListVpnTunnelsRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` optional string filter = 336120696; // Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. @@ -1916,7 +1931,7 @@ message AttachedDisk { // [Output Only] shielded vm initial state stored on disk optional InitialStateConfig shielded_instance_initial_state = 192356867; - // Specifies a valid partial or full URL to an existing Persistent Disk resource. When creating a new instance, one of initializeParams.sourceImage or initializeParams.sourceSnapshot or disks.source is required except for local SSD. If desired, you can also attach existing non-root persistent disks using this property. This field is only applicable for persistent disks. Note that for InstanceTemplate, specify the disk name, not the URL for the disk. + // Specifies a valid partial or full URL to an existing Persistent Disk resource. When creating a new instance, one of initializeParams.sourceImage or initializeParams.sourceSnapshot or disks.source is required except for local SSD. If desired, you can also attach existing non-root persistent disks using this property. This field is only applicable for persistent disks. Note that for InstanceTemplate, specify the disk name for zonal disk, and the URL for regional disk. optional string source = 177235995; // Specifies the type of the disk, either SCRATCH or PERSISTENT. If not specified, the default is PERSISTENT. @@ -1958,6 +1973,9 @@ message AttachedDiskInitializeParams { // 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; + // A list of publicly visible licenses. Reserved for Google's use. + repeated string licenses = 337642578; + // Specifies which action to take on instance update with this disk. Default is to use the existing disk. // Check the OnUpdateAction enum for the list of possible values. optional string on_update_action = 202451980; @@ -2402,7 +2420,7 @@ message AutoscalingPolicyScalingSchedule { // The start timestamps of time intervals when this scaling schedule is to provide a scaling signal. This field uses the extended cron format (with an optional year field). The expression can describe a single timestamp if the optional year is set, in which case the scaling schedule runs once. The schedule is interpreted with respect to time_zone. This field is required. Note: These timestamps only describe when autoscaler starts providing the scaling signal. The VMs need additional time to become serving. optional string schedule = 375820951; - // The time zone to use when interpreting the schedule. The value of this field must be a time zone name from the tz database: http://en.wikipedia.org/wiki/Tz_database. This field is assigned a default value of “UTC” if left empty. + // The time zone to use when interpreting the schedule. The value of this field must be a time zone name from the tz database: http://en.wikipedia.org/wiki/Tz_database. This field is assigned a default value of ���UTC��� if left empty. optional string time_zone = 36848094; } @@ -2481,6 +2499,9 @@ message BackendBucket { // An optional textual description of the resource; provided by the client when the resource is created. optional string description = 422937596; + // [Output Only] The resource URL for the edge security policy associated with this backend bucket. + optional string edge_security_policy = 41036943; + // If true, enable Cloud CDN for this BackendBucket. optional bool enable_cdn = 282942321; @@ -2521,11 +2542,14 @@ message BackendBucketCdnPolicy { // Bypass the cache when the specified request headers are matched - e.g. Pragma or Authorization headers. Up to 5 headers can be specified. The cache is bypassed for all cdnPolicy.cacheMode settings. repeated BackendBucketCdnPolicyBypassCacheOnRequestHeader bypass_cache_on_request_headers = 486203082; + // The CacheKeyPolicy for this CdnPolicy. + optional BackendBucketCdnPolicyCacheKeyPolicy cache_key_policy = 159263727; + // Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached. // Check the CacheMode enum for the list of possible values. optional string cache_mode = 28877888; - // Specifies a separate client (e.g. browser client) maximum TTL. This is used to clamp the max-age (or Expires) value sent to the client. With FORCE_CACHE_ALL, the lesser of client_ttl and default_ttl is used for the response max-age directive, along with a "public" directive. For cacheable content in CACHE_ALL_STATIC mode, client_ttl clamps the max-age from the origin (if specified), or else sets the response max-age directive to the lesser of the client_ttl and default_ttl, and also ensures a "public" cache-control directive is present. If a client TTL is not specified, a default value (1 hour) will be used. The maximum allowed value is 86400s (1 day). + // Specifies a separate client (e.g. browser client) maximum TTL. This is used to clamp the max-age (or Expires) value sent to the client. With FORCE_CACHE_ALL, the lesser of client_ttl and default_ttl is used for the response max-age directive, along with a "public" directive. For cacheable content in CACHE_ALL_STATIC mode, client_ttl clamps the max-age from the origin (if specified), or else sets the response max-age directive to the lesser of the client_ttl and default_ttl, and also ensures a "public" cache-control directive is present. If a client TTL is not specified, a default value (1 hour) will be used. The maximum allowed value is 31,622,400s (1 year). optional int32 client_ttl = 29034360; // Specifies the default TTL for cached content served by this origin for responses that do not have an existing valid TTL (max-age or s-max-age). Setting a TTL of "0" means "always revalidate". The value of defaultTTL cannot be set to a value greater than that of maxTTL, but can be equal. When the cacheMode is set to FORCE_CACHE_ALL, the defaultTTL will overwrite the TTL set in all responses. The maximum allowed value is 31,622,400s (1 year), noting that infrequently accessed objects may be evicted from the cache before the defined TTL. @@ -2561,6 +2585,16 @@ message BackendBucketCdnPolicyBypassCacheOnRequestHeader { } +// Message containing what to include in the cache key for a request for Cloud CDN. +message BackendBucketCdnPolicyCacheKeyPolicy { + // Allows HTTP request headers (by name) to be used in the cache key. + repeated string include_http_headers = 2489606; + + // Names of query string parameters to include in cache keys. All other parameters will be excluded. '&' and '=' will be percent encoded and not treated as delimiters. + repeated string query_string_whitelist = 52456496; + +} + // Specify CDN TTLs for response error codes. message BackendBucketCdnPolicyNegativeCachingPolicy { // The HTTP status code to define a TTL against. Only HTTP status codes 300, 301, 302, 307, 308, 404, 405, 410, 421, 451 and 501 are can be specified as values, and you cannot specify a status code more than once. @@ -2603,6 +2637,9 @@ message BackendService { // Signifies that this will be used for external HTTP(S), SSL Proxy, TCP Proxy, or Network Load Balancing EXTERNAL = 35607499; + // Signifies that this will be used for External Managed HTTP(S) Load Balancing. + EXTERNAL_MANAGED = 512006923; + // Signifies that this will be used for Internal TCP/UDP Load Balancing. INTERNAL = 279295677; @@ -2616,7 +2653,7 @@ message BackendService { } - // The load balancing algorithm used within the scope of the locality. The possible values are: - ROUND_ROBIN: This is a simple policy in which each healthy backend is selected in round robin order. This is the default. - LEAST_REQUEST: An O(1) algorithm which selects two random healthy hosts and picks the host which has fewer active requests. - RING_HASH: The ring/modulo hash load balancer implements consistent hashing to backends. The algorithm has the property that the addition/removal of a host from a set of N hosts only affects 1/N of the requests. - RANDOM: The load balancer selects a random healthy host. - ORIGINAL_DESTINATION: Backend host is selected based on the client connection metadata, i.e., connections are opened to the same address as the destination address of the incoming connection before the connection was redirected to the load balancer. - MAGLEV: used as a drop in replacement for the ring hash load balancer. Maglev is not as stable as ring hash but has faster table lookup build times and host selection times. For more information about Maglev, see https://ai.google/research/pubs/pub44824 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. If sessionAffinity is not NONE, and this field is not set to MAGLEV or RING_HASH, session affinity settings will not take effect. Only the default ROUND_ROBIN policy is 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 load balancing algorithm used within the scope of the locality. The possible values are: - ROUND_ROBIN: This is a simple policy in which each healthy backend is selected in round robin order. This is the default. - LEAST_REQUEST: An O(1) algorithm which selects two random healthy hosts and picks the host which has fewer active requests. - RING_HASH: The ring/modulo hash load balancer implements consistent hashing to backends. The algorithm has the property that the addition/removal of a host from a set of N hosts only affects 1/N of the requests. - RANDOM: The load balancer selects a random healthy host. - ORIGINAL_DESTINATION: Backend host is selected based on the client connection metadata, i.e., connections are opened to the same address as the destination address of the incoming connection before the connection was redirected to the load balancer. - MAGLEV: used as a drop in replacement for the ring hash load balancer. Maglev is not as stable as ring hash but has faster table lookup build times and host selection times. For more information about Maglev, see https://ai.google/research/pubs/pub44824 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. If sessionAffinity is not NONE, and this field is not set to MAGLEV or RING_HASH, session affinity settings will not take effect. Only ROUND_ROBIN and RING_HASH are 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. enum LocalityLbPolicy { // A value indicating that the enum field is not set. UNDEFINED_LOCALITY_LB_POLICY = 0; @@ -2667,9 +2704,12 @@ message BackendService { // UDP. UDP = 83873; + // If a Backend Service has UNSPECIFIED as its protocol, it can be used with any L3/L4 Forwarding Rules. + UNSPECIFIED = 526786327; + } - // Type of session affinity to use. The default is NONE. For a detailed description of session affinity options, see: [Session affinity](https://cloud.google.com/load-balancing/docs/backend-service#session_affinity). 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. + // Type of session affinity to use. The default is NONE. Only NONE and HEADER_FIELD are 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. For more details, see: [Session Affinity](https://cloud.google.com/load-balancing/docs/backend-service#session_affinity). enum SessionAffinity { // A value indicating that the enum field is not set. UNDEFINED_SESSION_AFFINITY = 0; @@ -2713,7 +2753,10 @@ message BackendService { optional ConnectionDraining connection_draining = 461096747; - // 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. 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. + // Connection Tracking configuration for this BackendService. Connection tracking policy settings are only available for Network Load Balancing and Internal TCP/UDP Load Balancing. + 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. optional ConsistentHashLoadBalancerSettings consistent_hash = 905883; // [Output Only] Creation timestamp in RFC3339 text format. @@ -2728,10 +2771,13 @@ message BackendService { // An optional description of this resource. Provide this property when you create the resource. optional string description = 422937596; + // [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. 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](/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 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). 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. @@ -2753,7 +2799,7 @@ message BackendService { // Check the LoadBalancingScheme enum for the list of possible values. optional string load_balancing_scheme = 363890244; - // The load balancing algorithm used within the scope of the locality. The possible values are: - ROUND_ROBIN: This is a simple policy in which each healthy backend is selected in round robin order. This is the default. - LEAST_REQUEST: An O(1) algorithm which selects two random healthy hosts and picks the host which has fewer active requests. - RING_HASH: The ring/modulo hash load balancer implements consistent hashing to backends. The algorithm has the property that the addition/removal of a host from a set of N hosts only affects 1/N of the requests. - RANDOM: The load balancer selects a random healthy host. - ORIGINAL_DESTINATION: Backend host is selected based on the client connection metadata, i.e., connections are opened to the same address as the destination address of the incoming connection before the connection was redirected to the load balancer. - MAGLEV: used as a drop in replacement for the ring hash load balancer. Maglev is not as stable as ring hash but has faster table lookup build times and host selection times. For more information about Maglev, see https://ai.google/research/pubs/pub44824 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. If sessionAffinity is not NONE, and this field is not set to MAGLEV or RING_HASH, session affinity settings will not take effect. Only the default ROUND_ROBIN policy is 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 load balancing algorithm used within the scope of the locality. The possible values are: - ROUND_ROBIN: This is a simple policy in which each healthy backend is selected in round robin order. This is the default. - LEAST_REQUEST: An O(1) algorithm which selects two random healthy hosts and picks the host which has fewer active requests. - RING_HASH: The ring/modulo hash load balancer implements consistent hashing to backends. The algorithm has the property that the addition/removal of a host from a set of N hosts only affects 1/N of the requests. - RANDOM: The load balancer selects a random healthy host. - ORIGINAL_DESTINATION: Backend host is selected based on the client connection metadata, i.e., connections are opened to the same address as the destination address of the incoming connection before the connection was redirected to the load balancer. - MAGLEV: used as a drop in replacement for the ring hash load balancer. Maglev is not as stable as ring hash but has faster table lookup build times and host selection times. For more information about Maglev, see https://ai.google/research/pubs/pub44824 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. If sessionAffinity is not NONE, and this field is not set to MAGLEV or RING_HASH, session affinity settings will not take effect. Only ROUND_ROBIN and RING_HASH are 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. // Check the LocalityLbPolicy enum for the list of possible values. optional string locality_lb_policy = 131431487; @@ -2788,13 +2834,13 @@ message BackendService { // [Output Only] The resource URL for the security policy associated with this backend service. optional string security_policy = 171082513; - // This field specifies the security policy that applies to this backend service. 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. + // This field specifies the security settings that apply to this backend service. This field is applicable to a global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED. optional SecuritySettings security_settings = 478649922; // [Output Only] Server-defined URL for the resource. optional string self_link = 456214797; - // Type of session affinity to use. The default is NONE. For a detailed description of session affinity options, see: [Session affinity](https://cloud.google.com/load-balancing/docs/backend-service#session_affinity). 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. + // Type of session affinity to use. The default is NONE. Only NONE and HEADER_FIELD are 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. For more details, see: [Session Affinity](https://cloud.google.com/load-balancing/docs/backend-service#session_affinity). // Check the SessionAffinity enum for the list of possible values. optional string session_affinity = 463888561; @@ -2860,7 +2906,7 @@ message BackendServiceCdnPolicy { // Check the CacheMode enum for the list of possible values. optional string cache_mode = 28877888; - // Specifies a separate client (e.g. browser client) maximum TTL. This is used to clamp the max-age (or Expires) value sent to the client. With FORCE_CACHE_ALL, the lesser of client_ttl and default_ttl is used for the response max-age directive, along with a "public" directive. For cacheable content in CACHE_ALL_STATIC mode, client_ttl clamps the max-age from the origin (if specified), or else sets the response max-age directive to the lesser of the client_ttl and default_ttl, and also ensures a "public" cache-control directive is present. If a client TTL is not specified, a default value (1 hour) will be used. The maximum allowed value is 86400s (1 day). + // Specifies a separate client (e.g. browser client) maximum TTL. This is used to clamp the max-age (or Expires) value sent to the client. With FORCE_CACHE_ALL, the lesser of client_ttl and default_ttl is used for the response max-age directive, along with a "public" directive. For cacheable content in CACHE_ALL_STATIC mode, client_ttl clamps the max-age from the origin (if specified), or else sets the response max-age directive to the lesser of the client_ttl and default_ttl, and also ensures a "public" cache-control directive is present. If a client TTL is not specified, a default value (1 hour) will be used. The maximum allowed value is 31,622,400s (1 year). optional int32 client_ttl = 29034360; // Specifies the default TTL for cached content served by this origin for responses that do not have an existing valid TTL (max-age or s-max-age). Setting a TTL of "0" means "always revalidate". The value of defaultTTL cannot be set to a value greater than that of maxTTL, but can be equal. When the cacheMode is set to FORCE_CACHE_ALL, the defaultTTL will overwrite the TTL set in all responses. The maximum allowed value is 31,622,400s (1 year), noting that infrequently accessed objects may be evicted from the cache before the defined TTL. @@ -2906,15 +2952,56 @@ message BackendServiceCdnPolicyNegativeCachingPolicy { } -// 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](/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). +// Connection Tracking configuration for this BackendService. +message BackendServiceConnectionTrackingPolicy { + // Specifies connection persistence when backends are unhealthy. The default value is DEFAULT_FOR_PROTOCOL. If set to DEFAULT_FOR_PROTOCOL, the existing connections persist on unhealthy backends only for connection-oriented protocols (TCP and SCTP) and only if the Tracking Mode is PER_CONNECTION (default tracking mode) or the Session Affinity is configured for 5-tuple. They do not persist for UDP. If set to NEVER_PERSIST, after a backend becomes unhealthy, the existing connections on the unhealthy backend are never persisted on the unhealthy backend. They are always diverted to newly selected healthy backends (unless all backends are unhealthy). If set to ALWAYS_PERSIST, existing connections always persist on unhealthy backends regardless of protocol and session affinity. It is generally not recommended to use this mode overriding the default. For more details, see [Connection Persistence for Network Load Balancing](https://cloud.google.com/load-balancing/docs/network/networklb-backend-service#connection-persistence) and [Connection Persistence for Internal TCP/UDP Load Balancing](https://cloud.google.com/load-balancing/docs/internal#connection-persistence). + enum ConnectionPersistenceOnUnhealthyBackends { + // A value indicating that the enum field is not set. + UNDEFINED_CONNECTION_PERSISTENCE_ON_UNHEALTHY_BACKENDS = 0; + + ALWAYS_PERSIST = 38400900; + + DEFAULT_FOR_PROTOCOL = 145265356; + + NEVER_PERSIST = 138646241; + + } + + // 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). + enum TrackingMode { + // A value indicating that the enum field is not set. + UNDEFINED_TRACKING_MODE = 0; + + INVALID_TRACKING_MODE = 49234371; + + PER_CONNECTION = 85162848; + + PER_SESSION = 182099252; + + } + + // Specifies connection persistence when backends are unhealthy. The default value is DEFAULT_FOR_PROTOCOL. If set to DEFAULT_FOR_PROTOCOL, the existing connections persist on unhealthy backends only for connection-oriented protocols (TCP and SCTP) and only if the Tracking Mode is PER_CONNECTION (default tracking mode) or the Session Affinity is configured for 5-tuple. They do not persist for UDP. If set to NEVER_PERSIST, after a backend becomes unhealthy, the existing connections on the unhealthy backend are never persisted on the unhealthy backend. They are always diverted to newly selected healthy backends (unless all backends are unhealthy). If set to ALWAYS_PERSIST, existing connections always persist on unhealthy backends regardless of protocol and session affinity. It is generally not recommended to use this mode overriding the default. For more details, see [Connection Persistence for Network Load Balancing](https://cloud.google.com/load-balancing/docs/network/networklb-backend-service#connection-persistence) and [Connection Persistence for Internal TCP/UDP Load Balancing](https://cloud.google.com/load-balancing/docs/internal#connection-persistence). + // Check the ConnectionPersistenceOnUnhealthyBackends enum for the list of possible values. + optional string connection_persistence_on_unhealthy_backends = 152439033; + + // 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. + 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). + // Check the TrackingMode enum for the list of possible values. + optional string tracking_mode = 127757867; + +} + +// 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). 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](/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 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. 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](/network/networklb-failover-overview). + // 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). optional float failover_ratio = 212667006; } @@ -2996,18 +3083,226 @@ message BackendServicesScopedList { } -// Associates `members` with a `role`. +// +message BfdPacket { + // The diagnostic code specifies the local system's reason for the last change in session state. This allows remote systems to determine the reason that the previous session failed, for example. These diagnostic codes are specified in section 4.1 of RFC5880 + enum Diagnostic { + // A value indicating that the enum field is not set. + UNDEFINED_DIAGNOSTIC = 0; + + ADMINISTRATIVELY_DOWN = 121685798; + + CONCATENATED_PATH_DOWN = 26186892; + + CONTROL_DETECTION_TIME_EXPIRED = 135478383; + + DIAGNOSTIC_UNSPECIFIED = 58720895; + + ECHO_FUNCTION_FAILED = 220687466; + + FORWARDING_PLANE_RESET = 19715882; + + NEIGHBOR_SIGNALED_SESSION_DOWN = 374226742; + + NO_DIAGNOSTIC = 222503141; + + PATH_DOWN = 290605180; + + REVERSE_CONCATENATED_PATH_DOWN = 479337129; + + } + + // The current BFD session state as seen by the transmitting system. These states are specified in section 4.1 of RFC5880 + enum State { + // A value indicating that the enum field is not set. + UNDEFINED_STATE = 0; + + ADMIN_DOWN = 128544690; + + DOWN = 2104482; + + INIT = 2252048; + + STATE_UNSPECIFIED = 470755401; + + UP = 2715; + + } + + // The Authentication Present bit of the BFD packet. This is specified in section 4.1 of RFC5880 + optional bool authentication_present = 105974260; + + // The Control Plane Independent bit of the BFD packet. This is specified in section 4.1 of RFC5880 + optional bool control_plane_independent = 62363573; + + // The demand bit of the BFD packet. This is specified in section 4.1 of RFC5880 + optional bool demand = 275180107; + + // The diagnostic code specifies the local system's reason for the last change in session state. This allows remote systems to determine the reason that the previous session failed, for example. These diagnostic codes are specified in section 4.1 of RFC5880 + // Check the Diagnostic enum for the list of possible values. + optional string diagnostic = 62708647; + + // The Final bit of the BFD packet. This is specified in section 4.1 of RFC5880 + optional bool final = 97436022; + + // The length of the BFD Control packet in bytes. This is specified in section 4.1 of RFC5880 + optional uint32 length = 504249062; + + // The Required Min Echo RX Interval value in the BFD packet. This is specified in section 4.1 of RFC5880 + optional uint32 min_echo_rx_interval_ms = 97286868; + + // The Required Min RX Interval value in the BFD packet. This is specified in section 4.1 of RFC5880 + optional uint32 min_rx_interval_ms = 463399028; + + // The Desired Min TX Interval value in the BFD packet. This is specified in section 4.1 of RFC5880 + optional uint32 min_tx_interval_ms = 526023602; + + // The detection time multiplier of the BFD packet. This is specified in section 4.1 of RFC5880 + optional uint32 multiplier = 191331777; + + // The multipoint bit of the BFD packet. This is specified in section 4.1 of RFC5880 + optional bool multipoint = 191421431; + + // The My Discriminator value in the BFD packet. This is specified in section 4.1 of RFC5880 + optional uint32 my_discriminator = 76663113; + + // The Poll bit of the BFD packet. This is specified in section 4.1 of RFC5880 + optional bool poll = 3446719; + + // The current BFD session state as seen by the transmitting system. These states are specified in section 4.1 of RFC5880 + // Check the State enum for the list of possible values. + optional string state = 109757585; + + // The version number of the BFD protocol, as specified in section 4.1 of RFC5880. + optional uint32 version = 351608024; + + // The Your Discriminator value in the BFD packet. This is specified in section 4.1 of RFC5880 + optional uint32 your_discriminator = 515634064; + +} + +// Next free: 15 +message BfdStatus { + // The BFD session initialization mode for this BGP peer. If set to ACTIVE, the Cloud Router will initiate the BFD session for this BGP peer. If set to PASSIVE, the Cloud Router will wait for the peer router to initiate the BFD session for this BGP peer. If set to DISABLED, BFD is disabled for this BGP peer. + enum BfdSessionInitializationMode { + // A value indicating that the enum field is not set. + UNDEFINED_BFD_SESSION_INITIALIZATION_MODE = 0; + + ACTIVE = 314733318; + + DISABLED = 516696700; + + PASSIVE = 462813959; + + } + + // The diagnostic code specifies the local system's reason for the last change in session state. This allows remote systems to determine the reason that the previous session failed, for example. These diagnostic codes are specified in section 4.1 of RFC5880 + enum LocalDiagnostic { + // A value indicating that the enum field is not set. + UNDEFINED_LOCAL_DIAGNOSTIC = 0; + + ADMINISTRATIVELY_DOWN = 121685798; + + CONCATENATED_PATH_DOWN = 26186892; + + CONTROL_DETECTION_TIME_EXPIRED = 135478383; + + DIAGNOSTIC_UNSPECIFIED = 58720895; + + ECHO_FUNCTION_FAILED = 220687466; + + FORWARDING_PLANE_RESET = 19715882; + + NEIGHBOR_SIGNALED_SESSION_DOWN = 374226742; + + NO_DIAGNOSTIC = 222503141; + + PATH_DOWN = 290605180; + + REVERSE_CONCATENATED_PATH_DOWN = 479337129; + + } + + // The current BFD session state as seen by the transmitting system. These states are specified in section 4.1 of RFC5880 + enum LocalState { + // A value indicating that the enum field is not set. + UNDEFINED_LOCAL_STATE = 0; + + ADMIN_DOWN = 128544690; + + DOWN = 2104482; + + INIT = 2252048; + + STATE_UNSPECIFIED = 470755401; + + UP = 2715; + + } + + // The BFD session initialization mode for this BGP peer. If set to ACTIVE, the Cloud Router will initiate the BFD session for this BGP peer. If set to PASSIVE, the Cloud Router will wait for the peer router to initiate the BFD session for this BGP peer. If set to DISABLED, BFD is disabled for this BGP peer. + // Check the BfdSessionInitializationMode enum for the list of possible values. + optional string bfd_session_initialization_mode = 218156954; + + // Unix timestamp of the most recent config update. + optional int64 config_update_timestamp_micros = 457195569; + + // Control packet counts for the current BFD session. + optional BfdStatusPacketCounts control_packet_counts = 132573561; + + // Inter-packet time interval statistics for control packets. + repeated PacketIntervals control_packet_intervals = 500806649; + + // The diagnostic code specifies the local system's reason for the last change in session state. This allows remote systems to determine the reason that the previous session failed, for example. These diagnostic codes are specified in section 4.1 of RFC5880 + // Check the LocalDiagnostic enum for the list of possible values. + optional string local_diagnostic = 463737083; + + // The current BFD session state as seen by the transmitting system. These states are specified in section 4.1 of RFC5880 + // Check the LocalState enum for the list of possible values. + optional string local_state = 149195453; + + // Negotiated transmit interval for control packets. + optional uint32 negotiated_local_control_tx_interval_ms = 21768340; + + // The most recent Rx control packet for this BFD session. + optional BfdPacket rx_packet = 505069729; + + // The most recent Tx control packet for this BFD session. + optional BfdPacket tx_packet = 111386275; + + // Session uptime in milliseconds. Value will be 0 if session is not up. + optional int64 uptime_ms = 125398365; + +} + +// +message BfdStatusPacketCounts { + // Number of packets received since the beginning of the current BFD session. + optional uint32 num_rx = 39375263; + + // Number of packets received that were rejected because of errors since the beginning of the current BFD session. + optional uint32 num_rx_rejected = 281007902; + + // Number of packets received that were successfully processed since the beginning of the current BFD session. + optional uint32 num_rx_successful = 455361850; + + // Number of packets transmitted since the beginning of the current BFD session. + optional uint32 num_tx = 39375325; + +} + +// Associates `members`, or principals, with a `role`. message Binding { // This is deprecated and has no effect. Do not use. optional string binding_id = 441088277; - // 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 members 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). + // 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 identities requesting access for a Cloud Platform 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. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@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. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. + // Specifies the principals requesting access for a Cloud Platform 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. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@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. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. repeated string members = 412010777; - // Role that is assigned to `members`. 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`. optional string role = 3506294; } @@ -3102,6 +3397,12 @@ message CacheKeyPolicy { // If true, requests to different hosts will be cached separately. optional bool include_host = 486867679; + // Allows HTTP request headers (by name) to be used in the cache key. + repeated string include_http_headers = 2489606; + + // Allows HTTP cookies (by name) to be used in the cache key. The name=value pair will be used in the cache key Cloud CDN generates. + repeated string include_named_cookies = 87316530; + // If true, http and https requests will be cached separately. optional bool include_protocol = 303507535; @@ -3200,6 +3501,8 @@ message Commitment { COMPUTE_OPTIMIZED = 158349023; + COMPUTE_OPTIMIZED_C2D = 383246453; + GENERAL_PURPOSE = 299793543; GENERAL_PURPOSE_E2 = 301911877; @@ -3208,12 +3511,17 @@ message Commitment { GENERAL_PURPOSE_N2D = 232471400; + GENERAL_PURPOSE_T2D = 232477166; + MEMORY_OPTIMIZED = 281753417; TYPE_UNSPECIFIED = 437714322; } + // Specifies whether to enable automatic renewal for the commitment. The default value is false if not specified. The field can be updated until the day of the commitment expiration at 12:00am PST. If the field is set to true, the commitment will be automatically renewed for either one or three years according to the terms of the existing commitment. + optional bool auto_renew = 495520765; + // The category of the commitment. Category MACHINE specifies commitments composed of machine resources such as VCPU or MEMORY, listed in resources. Category LICENSE specifies commitments composed of software licenses, listed in licenseResources. Note that only MACHINE commitments should have a Type specified. // Check the Category enum for the list of possible values. optional string category = 50511102; @@ -3363,7 +3671,7 @@ message ConnectionDraining { // This message defines settings for a consistent hash style load balancer. message ConsistentHashLoadBalancerSettings { - // Hash is based on HTTP Cookie. This field describes a HTTP cookie that will be used as the hash key for the consistent hash load balancer. If the cookie is not present, it will be generated. This field is applicable if the sessionAffinity is set to HTTP_COOKIE. + // Hash is based on HTTP Cookie. This field describes a HTTP cookie that will be used as the hash key for the consistent hash load balancer. If the cookie is not present, it will be generated. This field is applicable if the sessionAffinity is set to HTTP_COOKIE. 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 ConsistentHashLoadBalancerSettingsHttpCookie http_cookie = 6673915; // The hash based on the value of the specified header field. This field is applicable if the sessionAffinity is set to HEADER_FIELD. @@ -3387,9 +3695,9 @@ message ConsistentHashLoadBalancerSettingsHttpCookie { } -// The specification for allowing client side cross-origin requests. Please see W3C Recommendation for Cross Origin Resource Sharing +// The specification for allowing client-side cross-origin requests. For more information about the W3C recommendation for cross-origin resource sharing (CORS), see Fetch API Living Standard. message CorsPolicy { - // In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This translates to the Access-Control-Allow-Credentials header. Default is false. + // In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This field translates to the Access-Control-Allow-Credentials header. Default is false. optional bool allow_credentials = 481263366; // Specifies the content for the Access-Control-Allow-Headers header. @@ -3398,19 +3706,19 @@ message CorsPolicy { // Specifies the content for the Access-Control-Allow-Methods header. repeated string allow_methods = 205405372; - // Specifies the regualar expression patterns that match allowed origins. For regular expression grammar please see github.com/google/re2/wiki/Syntax An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes. + // Specifies a regular expression that matches allowed origins. For more information about the regular expression syntax, see Syntax. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes. repeated string allow_origin_regexes = 215385810; - // Specifies the list of origins that will be allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes. + // Specifies the list of origins that is allowed to do CORS requests. An origin is allowed if it matches either an item in allowOrigins or an item in allowOriginRegexes. repeated string allow_origins = 194914071; - // If true, specifies the CORS policy is disabled. The default value of false, which indicates that the CORS policy is in effect. + // If true, the setting specifies the CORS policy is disabled. The default value of false, which indicates that the CORS policy is in effect. optional bool disabled = 270940796; // Specifies the content for the Access-Control-Expose-Headers header. repeated string expose_headers = 247604747; - // Specifies how long results of a preflight request can be cached in seconds. This translates to the Access-Control-Max-Age header. + // Specifies how long results of a preflight request can be cached in seconds. This field translates to the Access-Control-Max-Age header. optional int32 max_age = 307559332; } @@ -3834,7 +4142,7 @@ message DeleteGlobalPublicDelegatedPrefixeRequest { // Name of the PublicDelegatedPrefix resource to delete. string public_delegated_prefix = 204238440 [(google.api.field_behavior) = REQUIRED]; - // 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). end_interface: MixerMutationRequestBuilder + // 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; } @@ -4057,6 +4365,22 @@ message DeleteLicenseRequest { } +// A request message for MachineImages.Delete. See the method description for details. +message DeleteMachineImageRequest { + // The name of the machine image to delete. + string machine_image = 69189475 [(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; + +} + // A request message for NetworkEndpointGroups.Delete. See the method description for details. message DeleteNetworkEndpointGroupRequest { // The name of the network endpoint group to delete. It should comply with RFC1035. @@ -4241,7 +4565,7 @@ message DeletePublicAdvertisedPrefixeRequest { // Name of the PublicAdvertisedPrefix resource to delete. string public_advertised_prefix = 101874590 [(google.api.field_behavior) = REQUIRED]; - // 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). end_interface: MixerMutationRequestBuilder + // 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; } @@ -4263,7 +4587,7 @@ message DeletePublicDelegatedPrefixeRequest { (google.cloud.operation_request_field) = "region" ]; - // 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). end_interface: MixerMutationRequestBuilder + // 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; } @@ -4439,7 +4763,7 @@ message DeleteRegionNotificationEndpointRequest { (google.cloud.operation_request_field) = "region" ]; - // 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). end_interface: MixerMutationRequestBuilder + // 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; } @@ -4475,7 +4799,7 @@ message DeleteRegionSslCertificateRequest { (google.cloud.operation_request_field) = "region" ]; - // 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). end_interface: MixerMutationRequestBuilder + // 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; // Name of the SslCertificate resource to delete. @@ -4519,7 +4843,7 @@ message DeleteRegionTargetHttpsProxyRequest { (google.cloud.operation_request_field) = "region" ]; - // 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). end_interface: MixerMutationRequestBuilder + // 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; // Name of the TargetHttpsProxy resource to delete. @@ -4661,7 +4985,7 @@ message DeleteServiceAttachmentRequest { (google.cloud.operation_request_field) = "region" ]; - // 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). end_interface: MixerMutationRequestBuilder + // 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; // Name of the ServiceAttachment resource to delete. @@ -4731,7 +5055,7 @@ message DeleteSslCertificateRequest { (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). end_interface: MixerMutationRequestBuilder + // 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; // Name of the SslCertificate resource to delete. @@ -4785,7 +5109,7 @@ message DeleteTargetGrpcProxyRequest { (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). end_interface: MixerMutationRequestBuilder + // 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; // Name of the TargetGrpcProxy resource to delete. @@ -5878,7 +6202,7 @@ message Firewall { // This field denotes the logging options for a particular firewall rule. If logging is enabled, logs will be exported to Cloud Logging. optional FirewallLogConfig log_config = 351299741; - // 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])?. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit. + // 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])?`. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit. optional string name = 3373707; // URL of the network resource for this firewall rule. If not specified when creating a firewall rule, the default network is used: global/networks/default If you choose to specify this field, you can specify the network as a full or partial URL. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/myproject/global/networks/my-network - projects/myproject/global/networks/my-network - global/networks/default @@ -6143,6 +6467,8 @@ message ForwardingRule { ICMP = 2241597; + L3_DEFAULT = 48151369; + SCTP = 2539724; TCP = 82881; @@ -6171,6 +6497,8 @@ message ForwardingRule { EXTERNAL = 35607499; + EXTERNAL_MANAGED = 512006923; + INTERNAL = 279295677; INTERNAL_MANAGED = 37350397; @@ -6186,12 +6514,18 @@ message ForwardingRule { // A value indicating that the enum field is not set. UNDEFINED_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; + } // @@ -6295,7 +6629,7 @@ message ForwardingRule { // [Output Only] Server-defined URL for the resource. optional string self_link = 456214797; - // Service Directory resources to register this forwarding rule with. Currently, only supports a single Service Directory resource. It is only supported for internal load balancing. + // 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. @@ -6820,6 +7154,19 @@ message GetIamPolicyLicenseRequest { } +// A request message for MachineImages.GetIamPolicy. See the method description for details. +message GetIamPolicyMachineImageRequest { + // Requested IAM Policy version. + optional int32 options_requested_policy_version = 499220029; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Name or id of the resource for this request. + string resource = 195806222 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for NodeGroups.GetIamPolicy. See the method description for details. message GetIamPolicyNodeGroupRequest { // Requested IAM Policy version. @@ -7070,6 +7417,16 @@ message GetLicenseRequest { } +// A request message for MachineImages.Get. See the method description for details. +message GetMachineImageRequest { + // The name of the machine image. + string machine_image = 69189475 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for MachineTypes.Get. See the method description for details. message GetMachineTypeRequest { // Name of the machine type to return. @@ -7085,7 +7442,7 @@ message GetMachineTypeRequest { // A request message for Routers.GetNatMappingInfo. See the method description for details. message GetNatMappingInfoRoutersRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -7780,7 +8137,7 @@ message GetXpnHostProjectRequest { // A request message for Projects.GetXpnResources. See the method description for details. message GetXpnResourcesProjectsRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -7919,7 +8276,7 @@ message GuestAttributesValue { // Guest OS features. message GuestOsFeature { - // The ID of a supported feature. Read Enabling guest operating system features to see a list of available options. + // 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 - SECURE_BOOT - GVNIC - SEV_CAPABLE - SUSPEND_RESUME_COMPATIBLE For more information, see Enabling guest operating system features. enum Type { // A value indicating that the enum field is not set. UNDEFINED_TYPE = 0; @@ -7942,7 +8299,7 @@ message GuestOsFeature { } - // The ID of a supported feature. Read Enabling guest operating system features to see a list of available options. + // 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 - SECURE_BOOT - GVNIC - SEV_CAPABLE - SUSPEND_RESUME_COMPATIBLE For more information, see Enabling guest operating system features. // Check the Type enum for the list of possible values. optional string type = 3575610; @@ -8112,7 +8469,7 @@ message HTTPSHealthCheck { // Represents a Health Check resource. Google Compute Engine has two Health Check resources: * [Global](/compute/docs/reference/rest/v1/healthChecks) * [Regional](/compute/docs/reference/rest/v1/regionHealthChecks) Internal HTTP(S) load balancers must use regional health checks (`compute.v1.regionHealthChecks`). Traffic Director must use global health checks (`compute.v1.HealthChecks`). Internal TCP/UDP load balancers can use either regional or global health checks (`compute.v1.regionHealthChecks` or `compute.v1.HealthChecks`). External HTTP(S), TCP proxy, and SSL proxy load balancers as well as managed instance group auto-healing must use global health checks (`compute.v1.HealthChecks`). Backend service-based network load balancers must use regional health checks (`compute.v1.regionHealthChecks`). Target pool-based network load balancers must use legacy HTTP health checks (`compute.v1.httpHealthChecks`). For more information, see Health checks overview. message HealthCheck { - // Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS or HTTP2. If not specified, the default is TCP. Exactly one of the protocol-specific health check field must be specified, which must match type field. + // Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS or HTTP2. Exactly one of the protocol-specific health check field must be specified, which must match type field. enum Type { // A value indicating that the enum field is not set. UNDEFINED_TYPE = 0; @@ -8178,7 +8535,7 @@ message HealthCheck { // How long (in seconds) to wait before claiming failure. The default value is 5 seconds. It is invalid for timeoutSec to have greater value than checkIntervalSec. optional int32 timeout_sec = 79994995; - // Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS or HTTP2. If not specified, the default is TCP. Exactly one of the protocol-specific health check field must be specified, which must match type field. + // Specifies the type of the healthCheck, either TCP, SSL, HTTP, HTTPS or HTTP2. Exactly one of the protocol-specific health check field must be specified, which must match type field. // Check the Type enum for the list of possible values. optional string type = 3575610; @@ -8441,7 +8798,7 @@ message HostRule { // An optional description of this resource. Provide this property when you create the resource. optional string description = 422937596; - // The list of host patterns to match. They must be valid hostnames with optional port numbers in the format host:port. * matches any string of ([a-z0-9-.]*). In that case, * must be the first character and must be followed in the pattern by either - or .. * based matching is not supported when the URL map is bound to target gRPC proxy that has validateForProxyless field set to true. + // The list of host patterns to match. They must be valid hostnames with optional port numbers in the format host:port. * matches any string of ([a-z0-9-.]*). In that case, * must be the first character and must be followed in the pattern by either - or .. * based matching is not supported when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true. repeated string hosts = 99467211; // The name of the PathMatcher to use to match the path portion of the URL if the hostRule matches the URL's host portion. @@ -8451,25 +8808,25 @@ message HostRule { // Specification for how requests are aborted as part of fault injection. message HttpFaultAbort { - // The HTTP status code used to abort the request. The value must be between 200 and 599 inclusive. For gRPC protocol, the gRPC status code is mapped to HTTP status code according to this mapping table. HTTP status 200 is mapped to gRPC status UNKNOWN. Injecting an OK status is currently not supported by Traffic Director. + // The HTTP status code used to abort the request. The value must be from 200 to 599 inclusive. For gRPC protocol, the gRPC status code is mapped to HTTP status code according to this mapping table. HTTP status 200 is mapped to gRPC status UNKNOWN. Injecting an OK status is currently not supported by Traffic Director. optional uint32 http_status = 468949897; - // The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection. The value must be between 0.0 and 100.0 inclusive. + // The percentage of traffic for connections, operations, or requests that is aborted as part of fault injection. The value must be from 0.0 to 100.0 inclusive. optional double percentage = 151909018; } -// Specifies the delay introduced by Loadbalancer before forwarding the request to the backend service as part of fault injection. +// Specifies the delay introduced by the load balancer before forwarding the request to the backend service as part of fault injection. message HttpFaultDelay { // Specifies the value of the fixed delay interval. optional Duration fixed_delay = 317037816; - // The percentage of traffic (connections/operations/requests) on which delay will be introduced as part of fault injection. The value must be between 0.0 and 100.0 inclusive. + // The percentage of traffic for connections, operations, or requests for which a delay is introduced as part of fault injection. The value must be from 0.0 to 100.0 inclusive. optional double percentage = 151909018; } -// The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure. As part of fault injection, when clients send requests to a backend service, delays can be introduced by Loadbalancer on a percentage of requests before sending those request to the backend service. Similarly requests from clients can be aborted by the Loadbalancer for a percentage of requests. +// The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure. As part of fault injection, when clients send requests to a backend service, delays can be introduced by the load balancer on a percentage of requests before sending those request to the backend service. Similarly requests from clients can be aborted by the load balancer for a percentage of requests. message HttpFaultInjection { // The specification for how client requests are aborted as part of fault injection. optional HttpFaultAbort abort = 92611376; @@ -8481,16 +8838,16 @@ message HttpFaultInjection { // The request and response header transformations that take effect before the request is passed along to the selected backendService. message HttpHeaderAction { - // Headers to add to a matching request prior to forwarding the request to the backendService. + // Headers to add to a matching request before forwarding the request to the backendService. repeated HttpHeaderOption request_headers_to_add = 72111974; - // A list of header names for headers that need to be removed from the request prior to forwarding the request to the backendService. + // A list of header names for headers that need to be removed from the request before forwarding the request to the backendService. repeated string request_headers_to_remove = 218425247; - // Headers to add the response prior to sending the response back to the client. + // Headers to add the response before sending the response back to the client. repeated HttpHeaderOption response_headers_to_add = 32136052; - // A list of header names for headers that need to be removed from the response prior to sending the response back to the client. + // A list of header names for headers that need to be removed from the response before sending the response back to the client. repeated string response_headers_to_remove = 75415761; } @@ -8500,10 +8857,10 @@ message HttpHeaderMatch { // The value should exactly match contents of exactMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. optional string exact_match = 457641093; - // The name of the HTTP header to match. For matching against the HTTP request's authority, use a headerMatch with the header name ":authority". For matching a request's method, use the headerName ":method". When the URL map is bound to target gRPC proxy that has validateForProxyless field set to true, only non-binary user-specified custom metadata and the `content-type` header are supported. The following transport-level headers cannot be used in header matching rules: `:authority`, `:method`, `:path`, `:scheme`, `user-agent`, `accept-encoding`, `content-encoding`, `grpc-accept-encoding`, `grpc-encoding`, `grpc-previous-rpc-attempts`, `grpc-tags-bin`, `grpc-timeout` and `grpc-trace-bin. + // The name of the HTTP header to match. For matching against the HTTP request's authority, use a headerMatch with the header name ":authority". For matching a request's method, use the headerName ":method". When the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true, only non-binary user-specified custom metadata and the `content-type` header are supported. The following transport-level headers cannot be used in header matching rules: `:authority`, `:method`, `:path`, `:scheme`, `user-agent`, `accept-encoding`, `content-encoding`, `grpc-accept-encoding`, `grpc-encoding`, `grpc-previous-rpc-attempts`, `grpc-tags-bin`, `grpc-timeout` and `grpc-trace-bin`. optional string header_name = 110223613; - // If set to false, the headerMatch is considered a match if the match criteria above are met. If set to true, the headerMatch is considered a match if the match criteria above are NOT met. The default setting is false. + // If set to false, the headerMatch is considered a match if the preceding match criteria are met. If set to true, the headerMatch is considered a match if the preceding match criteria are NOT met. The default setting is false. optional bool invert_match = 501130268; // The value of the header must start with the contents of prefixMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. @@ -8512,10 +8869,10 @@ message HttpHeaderMatch { // A header with the contents of headerName must exist. The match takes place whether or not the request's header has a value. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. optional bool present_match = 67435841; - // The header value must be an integer and its value must be in the range specified in rangeMatch. If the header does not contain an integer, number or is empty, the match fails. For example for a range [-5, 0] - -3 will match. - 0 will not match. - 0.25 will not match. - -3someString will not match. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. Note that rangeMatch is not supported for Loadbalancers that have their loadBalancingScheme set to EXTERNAL. + // The header value must be an integer and its value must be in the range specified in rangeMatch. If the header does not contain an integer, number or is empty, the match fails. For example for a range [-5, 0] - -3 will match. - 0 will not match. - 0.25 will not match. - -3someString will not match. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. rangeMatch is not supported for load balancers that have loadBalancingScheme set to EXTERNAL. optional Int64RangeMatch range_match = 97244227; - // The value of the header must match the regular expression specified in regexMatch. For regular expression grammar, please see: github.com/google/re2/wiki/Syntax For matching against a port specified in the HTTP request, use a headerMatch with headerName set to PORT and a regular expression that satisfies the RFC2616 Host header's port specifier. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. Note that regexMatch only applies to Loadbalancers that have their loadBalancingScheme set to INTERNAL_SELF_MANAGED. + // The value of the header must match the regular expression specified in regexMatch. For more information about regular expression syntax, see Syntax. For matching against a port specified in the HTTP request, use a headerMatch with headerName set to PORT and a regular expression that satisfies the RFC2616 Host header's port specifier. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. regexMatch only applies to load balancers that have loadBalancingScheme set to INTERNAL_SELF_MANAGED. optional string regex_match = 107387853; // The value of the header must end with the contents of suffixMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. @@ -8531,30 +8888,30 @@ message HttpHeaderOption { // The value of the header to add. optional string header_value = 203094335; - // If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header. The default value is false. + // If false, headerValue is appended to any values that already exist for the header. If true, headerValue is set for the header, discarding any values that were set for that header. The default value is false. optional bool replace = 20755124; } // HttpRouteRuleMatch criteria for a request's query parameter. message HttpQueryParameterMatch { - // The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch. Only one of presentMatch, exactMatch or regexMatch must be set. + // The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch. Only one of presentMatch, exactMatch, or regexMatch must be set. optional string exact_match = 457641093; // The name of the query parameter to match. The query parameter must exist in the request, in the absence of which the request match fails. optional string name = 3373707; - // Specifies that the queryParameterMatch matches if the request contains the query parameter, irrespective of whether the parameter has a value or not. Only one of presentMatch, exactMatch or regexMatch must be set. + // Specifies that the queryParameterMatch matches if the request contains the query parameter, irrespective of whether the parameter has a value or not. Only one of presentMatch, exactMatch, or regexMatch must be set. optional bool present_match = 67435841; - // The queryParameterMatch matches if the value of the parameter matches the regular expression specified by regexMatch. For the regular expression grammar, please see github.com/google/re2/wiki/Syntax Only one of presentMatch, exactMatch or regexMatch must be set. Note that regexMatch only applies when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED. + // The queryParameterMatch matches if the value of the parameter matches the regular expression specified by regexMatch. For more information about regular expression syntax, see Syntax. Only one of presentMatch, exactMatch, or regexMatch must be set. regexMatch only applies when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED. optional string regex_match = 107387853; } // Specifies settings for an HTTP redirect. message HttpRedirectAction { - // The HTTP Status code to use for this RedirectAction. Supported values are: - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301. - FOUND, which corresponds to 302. - SEE_OTHER which corresponds to 303. - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method will be retained. - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method will be retained. + // The HTTP Status code to use for this RedirectAction. Supported values are: - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301. - FOUND, which corresponds to 302. - SEE_OTHER which corresponds to 303. - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method is retained. - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method is retained. enum RedirectResponseCode { // A value indicating that the enum field is not set. UNDEFINED_REDIRECT_RESPONSE_CODE = 0; @@ -8576,23 +8933,23 @@ message HttpRedirectAction { } - // The host that will be used in the redirect response instead of the one that was supplied in the request. The value must be between 1 and 255 characters. + // The host that is used in the redirect response instead of the one that was supplied in the request. The value must be from 1 to 255 characters. optional string host_redirect = 107417747; - // If set to true, the URL scheme in the redirected request is set to https. If set to false, the URL scheme of the redirected request will remain the same as that of the request. This must only be set for UrlMaps used in TargetHttpProxys. Setting this true for TargetHttpsProxy is not permitted. The default is set to false. + // If set to true, the URL scheme in the redirected request is set to HTTPS. If set to false, the URL scheme of the redirected request remains the same as that of the request. This must only be set for URL maps used in TargetHttpProxys. Setting this true for TargetHttpsProxy is not permitted. The default is set to false. optional bool https_redirect = 170260656; - // The path that will be used in the redirect response instead of the one that was supplied in the request. pathRedirect cannot be supplied together with prefixRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters. + // The path that is used in the redirect response instead of the one that was supplied in the request. pathRedirect cannot be supplied together with prefixRedirect. Supply one alone or neither. If neither is supplied, the path of the original request is used for the redirect. The value must be from 1 to 1024 characters. optional string path_redirect = 272342710; - // The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before redirecting the request. prefixRedirect cannot be supplied together with pathRedirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect. The value must be between 1 and 1024 characters. + // The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before redirecting the request. prefixRedirect cannot be supplied together with pathRedirect. Supply one alone or neither. If neither is supplied, the path of the original request is used for the redirect. The value must be from 1 to 1024 characters. optional string prefix_redirect = 446184169; - // The HTTP Status code to use for this RedirectAction. Supported values are: - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301. - FOUND, which corresponds to 302. - SEE_OTHER which corresponds to 303. - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method will be retained. - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method will be retained. + // The HTTP Status code to use for this RedirectAction. Supported values are: - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301. - FOUND, which corresponds to 302. - SEE_OTHER which corresponds to 303. - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method is retained. - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method is retained. // Check the RedirectResponseCode enum for the list of possible values. optional string redirect_response_code = 436710408; - // If set to true, any accompanying query portion of the original URL is removed prior to redirecting the request. If set to false, the query portion of the original URL is retained. The default is set to false. + // If set to true, any accompanying query portion of the original URL is removed before redirecting the request. If set to false, the query portion of the original URL is retained. The default is set to false. optional bool strip_query = 52284641; } @@ -8602,88 +8959,88 @@ message HttpRetryPolicy { // Specifies the allowed number retries. This number must be > 0. If not specified, defaults to 1. optional uint32 num_retries = 251680141; - // Specifies a non-zero timeout per retry attempt. If not specified, will use the timeout set in HttpRouteAction. If timeout in HttpRouteAction is not set, will use the largest timeout among all backend services associated with the route. + // Specifies a non-zero timeout per retry attempt. If not specified, will use the timeout set in the HttpRouteAction field. If timeout in the HttpRouteAction field is not set, this field uses the largest timeout among all backend services associated with the route. Not supported when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true. optional Duration per_try_timeout = 280041147; - // Specifies one or more conditions when this retry policy applies. Valid values are: - 5xx: Retry will be attempted if the instance or endpoint responds with any 5xx response code, or if the instance or endpoint does not respond at all, example: disconnects, reset, read timeout, connection failure, and refused streams. - gateway-error: Similar to 5xx, but only applies to response codes 502, 503 or 504. - - connect-failure: A retry will be attempted on failures connecting to the instance or endpoint, for example due to connection timeouts. - retriable-4xx: A retry will be attempted if the instance or endpoint responds with a retriable 4xx response code. Currently the only retriable error supported is 409. - refused-stream: A retry will be attempted if the instance or endpoint resets the stream with a REFUSED_STREAM error code. This reset type indicates that it is safe to retry. - cancelled: A retry will be attempted if the gRPC status code in the response header is set to cancelled. - deadline-exceeded: A retry will be attempted if the gRPC status code in the response header is set to deadline-exceeded. - internal: A retry will be attempted if the gRPC status code in the response header is set to internal. - resource-exhausted: A retry will be attempted if the gRPC status code in the response header is set to resource-exhausted. - unavailable: A retry will be attempted if the gRPC status code in the response header is set to unavailable. + // Specifies one or more conditions when this retry policy applies. Valid values are: - 5xx: retry is attempted if the instance or endpoint responds with any 5xx response code, or if the instance or endpoint does not respond at all. For example, disconnects, reset, read timeout, connection failure, and refused streams. - gateway-error: Similar to 5xx, but only applies to response codes 502, 503 or 504. - connect-failure: a retry is attempted on failures connecting to the instance or endpoint. For example, connection timeouts. - retriable-4xx: a retry is attempted if the instance or endpoint responds with a 4xx response code. The only error that you can retry is error code 409. - refused-stream: a retry is attempted if the instance or endpoint resets the stream with a REFUSED_STREAM error code. This reset type indicates that it is safe to retry. - cancelled: a retry is attempted if the gRPC status code in the response header is set to cancelled. - deadline-exceeded: a retry is attempted if the gRPC status code in the response header is set to deadline-exceeded. - internal: a retry is attempted if the gRPC status code in the response header is set to internal. - resource-exhausted: a retry is attempted if the gRPC status code in the response header is set to resource-exhausted. - unavailable: a retry is attempted if the gRPC status code in the response header is set to unavailable. Only the following codes are supported when the URL map is bound to target gRPC proxy that has validateForProxyless field set to true. - cancelled - deadline-exceeded - internal - resource-exhausted - unavailable repeated string retry_conditions = 28815535; } // message HttpRouteAction { - // The specification for allowing client side cross-origin requests. Please see W3C Recommendation for Cross Origin Resource Sharing Not supported when the URL map is bound to target gRPC proxy. + // The specification for allowing client-side cross-origin requests. For more information about the W3C recommendation for cross-origin resource sharing (CORS), see Fetch API Living Standard. Not supported when the URL map is bound to a target gRPC proxy. optional CorsPolicy cors_policy = 398943748; - // The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure. As part of fault injection, when clients send requests to a backend service, delays can be introduced by Loadbalancer on a percentage of requests before sending those request to the backend service. Similarly requests from clients can be aborted by the Loadbalancer for a percentage of requests. For the requests impacted by fault injection, timeout and retry_policy will be ignored by clients that are configured with a fault_injection_policy. + // The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure. As part of fault injection, when clients send requests to a backend service, delays can be introduced by a load balancer on a percentage of requests before sending those requests to the backend service. Similarly requests from clients can be aborted by the load balancer for a percentage of requests. For the requests impacted by fault injection, timeout and retry_policy is ignored by clients that are configured with a fault_injection_policy. optional HttpFaultInjection fault_injection_policy = 412781079; - // Specifies the maximum duration (timeout) for streams on the selected route. Unlike the timeout field where the timeout duration starts from the time the request has been fully processed (i.e. end-of-stream), the duration in this field is computed from the beginning of the stream until the response has been completely processed, including all retries. A stream that does not complete in this duration is closed. If not specified, will use the largest maxStreamDuration among all backend services associated with the route. This field is only allowed if the Url map is used with backend services with loadBalancingScheme set to INTERNAL_SELF_MANAGED. + // Specifies the maximum duration (timeout) for streams on the selected route. Unlike the timeout field where the timeout duration starts from the time the request has been fully processed (known as *end-of-stream*), the duration in this field is computed from the beginning of the stream until the response has been processed, including all retries. A stream that does not complete in this duration is closed. If not specified, this field uses the maximum maxStreamDuration value among all backend services associated with the route. This field is only allowed if the Url map is used with backend services with loadBalancingScheme set to INTERNAL_SELF_MANAGED. optional Duration max_stream_duration = 61428376; - // Specifies the policy on how requests intended for the route's backends are shadowed to a separate mirrored backend service. Loadbalancer does not wait for responses from the shadow service. Prior to sending traffic to the shadow service, the host / authority header is suffixed with -shadow. Not supported when the URL map is bound to target gRPC proxy that has validateForProxyless field set to true. + // Specifies the policy on how requests intended for the route's backends are shadowed to a separate mirrored backend service. The load balancer does not wait for responses from the shadow service. Before sending traffic to the shadow service, the host / authority header is suffixed with -shadow. Not supported when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true. optional RequestMirrorPolicy request_mirror_policy = 220196866; - // Specifies the retry policy associated with this route. Not supported when the URL map is bound to target gRPC proxy that has validateForProxyless field set to true. + // Specifies the retry policy associated with this route. optional HttpRetryPolicy retry_policy = 56799913; - // Specifies the timeout for the selected route. Timeout is computed from the time the request has been fully processed (i.e. end-of-stream) up until the response has been completely processed. Timeout includes all retries. If not specified, will use the largest timeout among all backend services associated with the route. Not supported when the URL map is bound to target gRPC proxy that has validateForProxyless field set to true. + // Specifies the timeout for the selected route. Timeout is computed from the time the request has been fully processed (known as *end-of-stream*) up until the response has been processed. Timeout includes all retries. If not specified, this field uses the largest timeout among all backend services associated with the route. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true. optional Duration timeout = 296701281; - // The spec to modify the URL of the request, prior to forwarding the request to the matched service. urlRewrite is the only action supported in UrlMaps for external HTTP(S) load balancers. Not supported when the URL map is bound to target gRPC proxy that has validateForProxyless field set to true. + // The spec to modify the URL of the request, before forwarding the request to the matched service. urlRewrite is the only action supported in UrlMaps for external HTTP(S) load balancers. Not supported when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true. optional UrlRewrite url_rewrite = 273333948; - // A list of weighted backend services to send traffic to when a route match occurs. The weights determine the fraction of traffic that flows to their corresponding backend service. If all traffic needs to go to a single backend service, there must be one weightedBackendService with weight set to a non-zero number. Once a backendService is identified and before forwarding the request to the backend service, advanced routing actions such as URL rewrites and header transformations are applied depending on additional settings specified in this HttpRouteAction. + // A list of weighted backend services to send traffic to when a route match occurs. The weights determine the fraction of traffic that flows to their corresponding backend service. If all traffic needs to go to a single backend service, there must be one weightedBackendService with weight set to a non-zero number. After a backend service is identified and before forwarding the request to the backend service, advanced routing actions such as URL rewrites and header transformations are applied depending on additional settings specified in this HttpRouteAction. repeated WeightedBackendService weighted_backend_services = 337028049; } -// An HttpRouteRule specifies how to match an HTTP request and the corresponding routing action that load balancing proxies will perform. +// The HttpRouteRule setting specifies how to match an HTTP request and the corresponding routing action that load balancing proxies perform. message HttpRouteRule { // The short description conveying the intent of this routeRule. The description can have a maximum length of 1024 characters. optional string description = 422937596; - // Specifies changes to request and response headers that need to take effect for the selected backendService. The headerAction specified here are applied before the matching pathMatchers[].headerAction and after pathMatchers[].routeRules[].routeAction.weightedBackendService.backendServiceWeightAction[].headerAction Note that headerAction is not supported for Loadbalancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to target gRPC proxy that has validateForProxyless field set to true. + // Specifies changes to request and response headers that need to take effect for the selected backendService. The headerAction value specified here is applied before the matching pathMatchers[].headerAction and after pathMatchers[].routeRules[].routeAction.weightedBackendService.backendServiceWeightAction[].headerAction HeaderAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true. optional HttpHeaderAction header_action = 328077352; // The list of criteria for matching attributes of a request to this routeRule. This list has OR semantics: the request matches this routeRule when any of the matchRules are satisfied. However predicates within a given matchRule have AND semantics. All predicates within a matchRule must match for the request to match the rule. repeated HttpRouteRuleMatch match_rules = 376200701; - // For routeRules within a given pathMatcher, priority determines the order in which load balancer will interpret routeRules. RouteRules are evaluated in order of priority, from the lowest to highest number. The priority of a rule decreases as its number increases (1, 2, 3, N+1). The first rule that matches the request is applied. You cannot configure two or more routeRules with the same priority. Priority for each rule must be set to a number between 0 and 2147483647 inclusive. Priority numbers can have gaps, which enable you to add or remove rules in the future without affecting the rest of the rules. For example, 1, 2, 3, 4, 5, 9, 12, 16 is a valid series of priority numbers to which you could add rules numbered from 6 to 8, 10 to 11, and 13 to 15 in the future without any impact on existing rules. + // For routeRules within a given pathMatcher, priority determines the order in which a load balancer interprets routeRules. RouteRules are evaluated in order of priority, from the lowest to highest number. The priority of a rule decreases as its number increases (1, 2, 3, N+1). The first rule that matches the request is applied. You cannot configure two or more routeRules with the same priority. Priority for each rule must be set to a number from 0 to 2147483647 inclusive. Priority numbers can have gaps, which enable you to add or remove rules in the future without affecting the rest of the rules. For example, 1, 2, 3, 4, 5, 9, 12, 16 is a valid series of priority numbers to which you could add rules numbered from 6 to 8, 10 to 11, and 13 to 15 in the future without any impact on existing rules. optional int32 priority = 445151652; - // In response to a matching matchRule, the load balancer performs advanced routing actions like URL rewrites, header transformations, etc. prior to forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of urlRedirect, service or routeAction.weightedBackendService must be set. UrlMaps for external HTTP(S) load balancers support only the urlRewrite action within a routeRule's routeAction. + // In response to a matching matchRule, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of urlRedirect, service or routeAction.weightedBackendService must be set. UrlMaps for external HTTP(S) load balancers support only the urlRewrite action within a route rule's routeAction. optional HttpRouteAction route_action = 424563948; - // The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is additionally specified, advanced routing actions like URL Rewrites, etc. take effect prior to sending the request to the backend. However, if service is specified, routeAction cannot contain any weightedBackendService s. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of urlRedirect, service or routeAction.weightedBackendService must be set. + // The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if service is specified, routeAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of urlRedirect, service or routeAction.weightedBackendService must be set. optional string service = 373540533; - // When this rule is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Not supported when the URL map is bound to target gRPC proxy. + // When this rule is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Not supported when the URL map is bound to a target gRPC proxy. optional HttpRedirectAction url_redirect = 405147820; } // HttpRouteRuleMatch specifies a set of criteria for matching requests to an HttpRouteRule. All specified criteria must be satisfied for a match to occur. message HttpRouteRuleMatch { - // For satisfying the matchRule condition, the path of the request must exactly match the value specified in fullPathMatch after removing any query parameters and anchor that may be part of the original URL. fullPathMatch must be between 1 and 1024 characters. Only one of prefixMatch, fullPathMatch or regexMatch must be specified. + // For satisfying the matchRule condition, the path of the request must exactly match the value specified in fullPathMatch after removing any query parameters and anchor that may be part of the original URL. fullPathMatch must be from 1 to 1024 characters. Only one of prefixMatch, fullPathMatch or regexMatch must be specified. optional string full_path_match = 214598875; // Specifies a list of header match criteria, all of which must match corresponding headers in the request. repeated HttpHeaderMatch header_matches = 361903489; - // Specifies that prefixMatch and fullPathMatch matches are case sensitive. The default value is false. ignoreCase must not be used with regexMatch. Not supported when the URL map is bound to target gRPC proxy. + // Specifies that prefixMatch and fullPathMatch matches are case sensitive. The default value is false. ignoreCase must not be used with regexMatch. Not supported when the URL map is bound to a target gRPC proxy. optional bool ignore_case = 464324989; - // Opaque filter criteria used by Loadbalancer to restrict routing configuration to a limited set of xDS compliant clients. In their xDS requests to Loadbalancer, xDS clients present node metadata. When there is a match, the relevant routing configuration is made available to those proxies. For each metadataFilter in this list, if its filterMatchCriteria is set to MATCH_ANY, at least one of the filterLabels must match the corresponding label provided in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with corresponding labels provided in the metadata. If multiple metadataFilters are specified, all of them need to be satisfied in order to be considered a match. metadataFilters specified here will be applied after those specified in ForwardingRule that refers to the UrlMap this HttpRouteRuleMatch belongs to. metadataFilters only applies to Loadbalancers that have their loadBalancingScheme set to INTERNAL_SELF_MANAGED. Not supported when the URL map is bound to target gRPC proxy that has validateForProxyless field set to true. + // Opaque filter criteria used by the load balancer to restrict routing configuration to a limited set of xDS compliant clients. In their xDS requests to the load balancer, xDS clients present node metadata. When there is a match, the relevant routing configuration is made available to those proxies. For each metadataFilter in this list, if its filterMatchCriteria is set to MATCH_ANY, at least one of the filterLabels must match the corresponding label provided in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with corresponding labels provided in the metadata. If multiple metadata filters are specified, all of them need to be satisfied in order to be considered a match. metadataFilters specified here is applied after those specified in ForwardingRule that refers to the UrlMap this HttpRouteRuleMatch belongs to. metadataFilters only applies to load balancers that have loadBalancingScheme set to INTERNAL_SELF_MANAGED. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true. repeated MetadataFilter metadata_filters = 464725739; - // For satisfying the matchRule condition, the request's path must begin with the specified prefixMatch. prefixMatch must begin with a /. The value must be between 1 and 1024 characters. Only one of prefixMatch, fullPathMatch or regexMatch must be specified. + // For satisfying the matchRule condition, the request's path must begin with the specified prefixMatch. prefixMatch must begin with a /. The value must be from 1 to 1024 characters. Only one of prefixMatch, fullPathMatch or regexMatch must be specified. optional string prefix_match = 257898968; - // Specifies a list of query parameter match criteria, all of which must match corresponding query parameters in the request. Not supported when the URL map is bound to target gRPC proxy. + // Specifies a list of query parameter match criteria, all of which must match corresponding query parameters in the request. Not supported when the URL map is bound to a target gRPC proxy. repeated HttpQueryParameterMatch query_parameter_matches = 286231270; - // For satisfying the matchRule condition, the path of the request must satisfy the regular expression specified in regexMatch after removing any query parameters and anchor supplied with the original URL. For regular expression grammar please see github.com/google/re2/wiki/Syntax Only one of prefixMatch, fullPathMatch or regexMatch must be specified. Note that regexMatch only applies to Loadbalancers that have their loadBalancingScheme set to INTERNAL_SELF_MANAGED. + // For satisfying the matchRule condition, the path of the request must satisfy the regular expression specified in regexMatch after removing any query parameters and anchor supplied with the original URL. For more information about regular expression syntax, see Syntax. Only one of prefixMatch, fullPathMatch or regexMatch must be specified. regexMatch only applies to load balancers that have loadBalancingScheme set to INTERNAL_SELF_MANAGED. optional string regex_match = 107387853; } @@ -8736,7 +9093,7 @@ message Image { // The name of the image family to which this image belongs. You can create disks by specifying 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; - // 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. + // A list of features to enable on the guest operating system. Applicable only for bootable images. To see a list of available options, see the guestOSfeatures[].type parameter. repeated GuestOsFeature guest_os_features = 79294545; // [Output Only] The unique identifier for the resource. This identifier is defined by the server. @@ -8983,10 +9340,7 @@ message InsertFirewallPolicyRequest { FirewallPolicy firewall_policy_resource = 495049532 [(google.api.field_behavior) = REQUIRED]; // Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if the parent is a folder or "organizations/[ORGANIZATION_ID]" if the parent is an organization. - string parent_id = 459714768 [ - (google.api.field_behavior) = REQUIRED, - (google.cloud.operation_request_field) = "parent_id" - ]; + optional string parent_id = 459714768 [(google.cloud.operation_request_field) = "parent_id"]; // 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; @@ -9090,7 +9444,7 @@ message InsertGlobalPublicDelegatedPrefixeRequest { // The body resource for this request PublicDelegatedPrefix public_delegated_prefix_resource = 47594501 [(google.api.field_behavior) = REQUIRED]; - // 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). end_interface: MixerMutationRequestBuilder + // 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; } @@ -9191,6 +9545,9 @@ message InsertInstanceRequest { // Specifies instance template to create the instance. This field is optional. It can be a full or partial URL. For example, the following are all valid URLs to an instance template: - https://www.googleapis.com/compute/v1/projects/project /global/instanceTemplates/instanceTemplate - projects/project/global/instanceTemplates/instanceTemplate - global/instanceTemplates/instanceTemplate optional string source_instance_template = 332423616; + // Specifies the machine image to use to create the instance. This field is optional. It can be a full or partial URL. For example, the following are all valid URLs to a machine image: - https://www.googleapis.com/compute/v1/projects/project/global/global /machineImages/machineImage - projects/project/global/global/machineImages/machineImage - global/machineImages/machineImage + optional string source_machine_image = 21769791; + // The name of the zone for this request. string zone = 3744684 [ (google.api.field_behavior) = REQUIRED, @@ -9272,6 +9629,25 @@ message InsertLicenseRequest { } +// A request message for MachineImages.Insert. See the method description for details. +message InsertMachineImageRequest { + // The body resource for this request + MachineImage machine_image_resource = 60740970 [(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; + + // Required. Source instance that is used to create the machine image from. + optional string source_instance = 396315705; + +} + // A request message for NetworkEndpointGroups.Insert. See the method description for details. message InsertNetworkEndpointGroupRequest { // The body resource for this request @@ -9390,7 +9766,7 @@ message InsertPublicAdvertisedPrefixeRequest { // The body resource for this request PublicAdvertisedPrefix public_advertised_prefix_resource = 233614223 [(google.api.field_behavior) = REQUIRED]; - // 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). end_interface: MixerMutationRequestBuilder + // 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; } @@ -9412,7 +9788,7 @@ message InsertPublicDelegatedPrefixeRequest { (google.cloud.operation_request_field) = "region" ]; - // 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). end_interface: MixerMutationRequestBuilder + // 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; } @@ -9613,7 +9989,7 @@ message InsertRegionNotificationEndpointRequest { (google.cloud.operation_request_field) = "region" ]; - // 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). end_interface: MixerMutationRequestBuilder + // 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; } @@ -9632,7 +10008,7 @@ message InsertRegionSslCertificateRequest { (google.cloud.operation_request_field) = "region" ]; - // 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). end_interface: MixerMutationRequestBuilder + // 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 body resource for this request @@ -9676,7 +10052,7 @@ message InsertRegionTargetHttpsProxyRequest { (google.cloud.operation_request_field) = "region" ]; - // 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). end_interface: MixerMutationRequestBuilder + // 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 body resource for this request @@ -9818,7 +10194,7 @@ message InsertServiceAttachmentRequest { (google.cloud.operation_request_field) = "region" ]; - // 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). end_interface: MixerMutationRequestBuilder + // 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 body resource for this request @@ -9826,6 +10202,22 @@ message InsertServiceAttachmentRequest { } +// A request message for Snapshots.Insert. See the method description for details. +message InsertSnapshotRequest { + // 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 body resource for this request + Snapshot snapshot_resource = 481319977 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for SslCertificates.Insert. See the method description for details. message InsertSslCertificateRequest { // Project ID for this request. @@ -9834,7 +10226,7 @@ message InsertSslCertificateRequest { (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). end_interface: MixerMutationRequestBuilder + // 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 body resource for this request @@ -9888,7 +10280,7 @@ message InsertTargetGrpcProxyRequest { (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). end_interface: MixerMutationRequestBuilder + // 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 body resource for this request @@ -10212,6 +10604,8 @@ message Instance { // An array of network configurations for this instance. These specify how interfaces are configured to interact with other network services, such as connecting to the internet. Multiple interfaces are supported per instance. repeated NetworkInterface network_interfaces = 52735243; + optional NetworkPerformanceConfig network_performance_config = 398330850; + // The private IPv6 google access type for the VM. If not specified, use INHERIT_FROM_SUBNETWORK as default. // Check the PrivateIpv6GoogleAccess enum for the list of possible values. optional string private_ipv6_google_access = 48277006; @@ -10238,6 +10632,12 @@ message Instance { optional ShieldedInstanceIntegrityPolicy shielded_instance_integrity_policy = 163696919; + // Source machine image + optional string source_machine_image = 21769791; + + // Source machine image encryption key when creating an instance from a machine image. + optional CustomerEncryptionKey source_machine_image_encryption_key = 192839075; + // [Output Only] Whether a VM has been restricted for start because Compute Engine has detected suspicious activity. optional bool start_restricted = 123693144; @@ -10467,6 +10867,18 @@ message InstanceGroupManagerActionsSummary { // [Output Only] The number of instances in the managed instance group that are scheduled to be restarted or are currently being restarted. optional int32 restarting = 372312947; + // [Output Only] The number of instances in the managed instance group that are scheduled to be resumed or are currently being resumed. + optional int32 resuming = 201100714; + + // [Output Only] The number of instances in the managed instance group that are scheduled to be started or are currently being started. + optional int32 starting = 243064896; + + // [Output Only] The number of instances in the managed instance group that are scheduled to be stopped or are currently being stopped. + optional int32 stopping = 105035892; + + // [Output Only] The number of instances in the managed instance group that are scheduled to be suspended or are currently being suspended. + optional int32 suspending = 29113894; + // [Output Only] The number of instances in the managed instance group that are being verified. See the managedInstances[].currentAction property in the listManagedInstances method documentation. optional int32 verifying = 451612873; @@ -10583,6 +10995,9 @@ message InstanceGroupManagerUpdatePolicy { // Minimal action to be taken on an instance. You can specify either RESTART to restart existing instances or REPLACE to delete and create new instances from the target template. If you specify a RESTART, the Updater will attempt to perform that action only. However, if the Updater determines that the minimal action you specify is not enough to perform the update, it might perform a more disruptive action. optional string minimal_action = 270567060; + // Most disruptive action that is allowed to be taken on an instance. You can specify either NONE to forbid any actions, REFRESH to allow actions that do not need instance restart, RESTART to allow actions that can be applied without instance replacing or REPLACE to allow all possible actions. If the Updater determines that the minimal update action needed is more disruptive than most disruptive allowed action you specify it will not perform the update at all. + optional string most_disruptive_allowed_action = 66103053; + // What action should be used to replace instances. See minimal_action.REPLACE optional string replacement_method = 505931694; @@ -10613,7 +11028,7 @@ message InstanceGroupManagersAbandonInstancesRequest { // InstanceGroupManagers.applyUpdatesToInstances message InstanceGroupManagersApplyUpdatesRequest { - // Flag to update all instances instead of specified list of “instances”. If the flag is set to true then the instances may not be specified in the request. + // Flag to update all instances instead of specified list of ���instances���. If the flag is set to true then the instances may not be specified in the request. optional bool all_instances = 403676512; // The list of URLs of one or more instances for which you want to apply updates. Each URL can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. @@ -10897,6 +11312,18 @@ message InstanceManagedByIgmErrorInstanceActionDetails { // The managed instance group is restarting this instance. RESTARTING = 320534387; + // The managed instance group is resuming this instance. + RESUMING = 446856618; + + // The managed instance group is starting this instance. + STARTING = 488820800; + + // The managed instance group is stopping this instance. + STOPPING = 350791796; + + // The managed instance group is suspending this instance. + SUSPENDING = 514206246; + // The managed instance group is verifying this already created instance. Verification happens every time the instance is (re)created or restarted and consists of: 1. Waiting until health check specified as part of this managed instance group's autohealing policy reports HEALTHY. Note: Applies only if autohealing policy has a health check specified 2. Waiting for addition verification steps performed as post-instance creation (subject to future extensions). VERIFYING = 16982185; @@ -10936,7 +11363,7 @@ message InstanceMoveRequest { // message InstanceProperties { - // The private IPv6 google access type for VMs. If not specified, use INHERIT_FROM_SUBNETWORK as default. + // The private IPv6 google access type for VMs. If not specified, use INHERIT_FROM_SUBNETWORK as default. Note that for MachineImage, this is not supported yet. enum PrivateIpv6GoogleAccess { // A value indicating that the enum field is not set. UNDEFINED_PRIVATE_IPV6_GOOGLE_ACCESS = 0; @@ -10952,13 +11379,13 @@ message InstanceProperties { } - // Controls for advanced machine-related behavior features. + // Controls for advanced machine-related behavior features. Note that for MachineImage, this is not supported yet. optional AdvancedMachineFeatures advanced_machine_features = 409646002; // Enables instances created based on these properties to send packets with source IP addresses other than their own and receive packets with destination IP addresses other than their own. If these instances will be used as an IP gateway or it will be set as the next-hop in a Route resource, specify true. If unsure, leave this set to false. See the Enable IP forwarding documentation for more information. optional bool can_ip_forward = 467731324; - // Specifies the Confidential Instance options. + // Specifies the Confidential Instance options. Note that for MachineImage, this is not supported yet. optional ConfidentialInstanceConfig confidential_instance_config = 490637685; // An optional text description for the instances that are created from these properties. @@ -10985,14 +11412,20 @@ message InstanceProperties { // An array of network access configurations for this interface. repeated NetworkInterface network_interfaces = 52735243; - // The private IPv6 google access type for VMs. If not specified, use INHERIT_FROM_SUBNETWORK as default. + // Note that for MachineImage, this is not supported yet. + optional NetworkPerformanceConfig network_performance_config = 398330850; + + // The private IPv6 google access type for VMs. If not specified, use INHERIT_FROM_SUBNETWORK as default. Note that for MachineImage, this is not supported yet. // Check the PrivateIpv6GoogleAccess enum for the list of possible values. optional string private_ipv6_google_access = 48277006; - // Specifies the reservations that instances can consume from. + // Specifies the reservations that instances can consume from. Note that for MachineImage, this is not supported yet. optional ReservationAffinity reservation_affinity = 157850683; - // Resource policies (names, not ULRs) applied to instances created from these properties. + // Resource manager tags to be bound to the instance. Tag keys and values have the same definition as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values are in the format `tagValues/456`. The field is ignored (both PUT & PATCH) when empty. + map resource_manager_tags = 377671164; + + // Resource policies (names, not URLs) applied to instances created from these properties. Note that for MachineImage, this is not supported yet. repeated string resource_policies = 22220385; // Specifies the scheduling options for the instances that are created from these properties. @@ -11001,6 +11434,7 @@ message InstanceProperties { // A list of service accounts with specified scopes. Access tokens for these service accounts are available to the instances that are created from these properties. Use metadata queries to obtain the access tokens for these instances. repeated ServiceAccount service_accounts = 277537328; + // Note that for MachineImage, this is not supported yet. optional ShieldedInstanceConfig shielded_instance_config = 12862901; // A list of tags to apply to the instances that are created from these properties. The tags identify valid sources or targets for network firewalls. The setTags method can modify this list of tags. Each tag within the list must comply with RFC1035. @@ -11457,8 +11891,21 @@ message InterconnectAttachment { } - // [Output Only] The current state of this attachment's functionality. Enum values ACTIVE and UNPROVISIONED are shared by DEDICATED/PRIVATE, PARTNER, and PARTNER_PROVIDER interconnect attachments, while enum values PENDING_PARTNER, PARTNER_REQUEST_RECEIVED, and PENDING_CUSTOMER are used for only PARTNER and PARTNER_PROVIDER interconnect attachments. This state can take one of the following values: - ACTIVE: The attachment has been turned up and is ready to use. - UNPROVISIONED: The attachment is not ready to use yet, because turnup is not complete. - PENDING_PARTNER: A newly-created PARTNER attachment that has not yet been configured on the Partner side. - PARTNER_REQUEST_RECEIVED: A PARTNER attachment is in the process of provisioning after a PARTNER_PROVIDER attachment was created that references it. - PENDING_CUSTOMER: A PARTNER or PARTNER_PROVIDER attachment that is waiting for a customer to activate it. - DEFUNCT: The attachment was deleted externally and is no longer functional. This could be because the associated Interconnect was removed, or because the other side of a Partner attachment was deleted. - enum State { + // The stack type for this interconnect attachment to identify whether the IPv6 feature is enabled or not. If not specified, IPV4_ONLY will be used. This field can be both set at interconnect attachments creation and update interconnect attachment operations. + enum StackType { + // A value indicating that the enum field is not set. + UNDEFINED_STACK_TYPE = 0; + + // The interconnect attachment can have both IPv4 and IPv6 addresses. + IPV4_IPV6 = 22197249; + + // The interconnect attachment will only be assigned IPv4 addresses. + IPV4_ONLY = 22373798; + + } + + // [Output Only] The current state of this attachment's functionality. Enum values ACTIVE and UNPROVISIONED are shared by DEDICATED/PRIVATE, PARTNER, and PARTNER_PROVIDER interconnect attachments, while enum values PENDING_PARTNER, PARTNER_REQUEST_RECEIVED, and PENDING_CUSTOMER are used for only PARTNER and PARTNER_PROVIDER interconnect attachments. This state can take one of the following values: - ACTIVE: The attachment has been turned up and is ready to use. - UNPROVISIONED: The attachment is not ready to use yet, because turnup is not complete. - PENDING_PARTNER: A newly-created PARTNER attachment that has not yet been configured on the Partner side. - PARTNER_REQUEST_RECEIVED: A PARTNER attachment is in the process of provisioning after a PARTNER_PROVIDER attachment was created that references it. - PENDING_CUSTOMER: A PARTNER or PARTNER_PROVIDER attachment that is waiting for a customer to activate it. - DEFUNCT: The attachment was deleted externally and is no longer functional. This could be because the associated Interconnect was removed, or because the other side of a Partner attachment was deleted. + enum State { // A value indicating that the enum field is not set. UNDEFINED_STATE = 0; @@ -11507,19 +11954,34 @@ message InterconnectAttachment { // Check the Bandwidth enum for the list of possible values. optional string bandwidth = 181715121; + // Up to 16 candidate prefixes that control the allocation of cloudRouterIpv6Address and customerRouterIpv6Address for this attachment. Each prefix must be in the Global Unique Address (GUA) space. It is highly recommended that it be in a range owned by the requestor. A GUA in a range owned by Google will cause the request to fail. Google will select an available prefix from the supplied candidates or fail the request. If not supplied, a /125 from a Google-owned GUA block will be selected. + repeated string candidate_ipv6_subnets = 70682522; + // Up to 16 candidate prefixes that can be used to restrict the allocation of cloudRouterIpAddress and customerRouterIpAddress for this attachment. All prefixes must be within link-local address space (169.254.0.0/16) and must be /29 or shorter (/28, /27, etc). Google will attempt to select an unused /29 from the supplied candidate prefix(es). The request will fail if all possible /29s are in use on Google's edge. If not supplied, Google will randomly select an unused /29 from all of link-local space. repeated string candidate_subnets = 237842938; // [Output Only] IPv4 address + prefix length to be configured on Cloud Router Interface for this interconnect attachment. optional string cloud_router_ip_address = 287392776; + // [Output Only] IPv6 address + prefix length to be configured on Cloud Router Interface for this interconnect attachment. + optional string cloud_router_ipv6_address = 451922376; + + // If supplied, the interface id (index within the subnet) to be used for the cloud router address. The id must be in the range of 1 to 6. If a subnet mask is supplied, it must be /125, and the subnet should either be 0 or match the selected subnet. + optional string cloud_router_ipv6_interface_id = 521282701; + // [Output Only] Creation timestamp in RFC3339 text format. optional string creation_timestamp = 30525366; // [Output Only] IPv4 address + prefix length to be configured on the customer router subinterface for this interconnect attachment. optional string customer_router_ip_address = 332475761; - // [Output Only] Dataplane version for this InterconnectAttachment. + // [Output Only] IPv6 address + prefix length to be configured on the customer router subinterface for this interconnect attachment. + optional string customer_router_ipv6_address = 290127089; + + // If supplied, the interface id (index within the subnet) to be used for the customer router address. The id must be in the range of 1 to 6. If a subnet mask is supplied, it must be /125, and the subnet should either be 0 or match the selected subnet. + optional string customer_router_ipv6_interface_id = 380994308; + + // [Output only for types PARTNER and DEDICATED. Not present for PARTNER_PROVIDER.] Dataplane version for this InterconnectAttachment. This field is only present for Dataplane version 2 and higher. Absence of this field in the API output indicates that the Dataplane is version 1. optional int32 dataplane_version = 34920075; // An optional description of this resource. @@ -11582,6 +12044,10 @@ message InterconnectAttachment { // [Output Only] Server-defined URL for the resource. optional string self_link = 456214797; + // The stack type for this interconnect attachment to identify whether the IPv6 feature is enabled or not. If not specified, IPV4_ONLY will be used. This field can be both set at interconnect attachments creation and update interconnect attachment operations. + // Check the StackType enum for the list of possible values. + optional string stack_type = 425908881; + // [Output Only] The current state of this attachment's functionality. Enum values ACTIVE and UNPROVISIONED are shared by DEDICATED/PRIVATE, PARTNER, and PARTNER_PROVIDER interconnect attachments, while enum values PENDING_PARTNER, PARTNER_REQUEST_RECEIVED, and PENDING_CUSTOMER are used for only PARTNER and PARTNER_PROVIDER interconnect attachments. This state can take one of the following values: - ACTIVE: The attachment has been turned up and is ready to use. - UNPROVISIONED: The attachment is not ready to use yet, because turnup is not complete. - PENDING_PARTNER: A newly-created PARTNER attachment that has not yet been configured on the Partner side. - PARTNER_REQUEST_RECEIVED: A PARTNER attachment is in the process of provisioning after a PARTNER_PROVIDER attachment was created that references it. - PENDING_CUSTOMER: A PARTNER or PARTNER_PROVIDER attachment that is waiting for a customer to activate it. - DEFUNCT: The attachment was deleted externally and is no longer functional. This could be because the associated Interconnect was removed, or because the other side of a Partner attachment was deleted. // Check the State enum for the list of possible values. optional string state = 109757585; @@ -12220,7 +12686,7 @@ message LicensesListResponse { // A request message for AcceleratorTypes.List. See the method description for details. message ListAcceleratorTypesRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -12245,7 +12711,7 @@ message ListAcceleratorTypesRequest { // A request message for Addresses.List. See the method description for details. message ListAddressesRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -12277,7 +12743,7 @@ message ListAssociationsFirewallPolicyRequest { // A request message for Autoscalers.List. See the method description for details. message ListAutoscalersRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -12302,7 +12768,7 @@ message ListAutoscalersRequest { // A request message for SslPolicies.ListAvailableFeatures. See the method description for details. message ListAvailableFeaturesSslPoliciesRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -12324,7 +12790,7 @@ message ListAvailableFeaturesSslPoliciesRequest { // A request message for BackendBuckets.List. See the method description for details. message ListBackendBucketsRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -12346,7 +12812,7 @@ message ListBackendBucketsRequest { // A request message for BackendServices.List. See the method description for details. message ListBackendServicesRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -12368,7 +12834,7 @@ message ListBackendServicesRequest { // A request message for DiskTypes.List. See the method description for details. message ListDiskTypesRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -12393,7 +12859,7 @@ message ListDiskTypesRequest { // A request message for Disks.List. See the method description for details. message ListDisksRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -12418,7 +12884,7 @@ message ListDisksRequest { // A request message for InstanceGroupManagers.ListErrors. See the method description for details. message ListErrorsInstanceGroupManagersRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` optional string filter = 336120696; // The name of the managed instance group. It must be a string that meets the requirements in RFC1035, or an unsigned long integer: must match regexp pattern: (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. @@ -12446,7 +12912,7 @@ message ListErrorsInstanceGroupManagersRequest { // A request message for RegionInstanceGroupManagers.ListErrors. See the method description for details. message ListErrorsRegionInstanceGroupManagersRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` optional string filter = 336120696; // The name of the managed instance group. It must be a string that meets the requirements in RFC1035, or an unsigned long integer: must match regexp pattern: (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. @@ -12474,7 +12940,7 @@ message ListErrorsRegionInstanceGroupManagersRequest { // A request message for ExternalVpnGateways.List. See the method description for details. message ListExternalVpnGatewaysRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -12496,7 +12962,7 @@ message ListExternalVpnGatewaysRequest { // A request message for FirewallPolicies.List. See the method description for details. message ListFirewallPoliciesRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -12518,7 +12984,7 @@ message ListFirewallPoliciesRequest { // A request message for Firewalls.List. See the method description for details. message ListFirewallsRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -12540,7 +13006,7 @@ message ListFirewallsRequest { // A request message for ForwardingRules.List. See the method description for details. message ListForwardingRulesRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -12565,7 +13031,7 @@ message ListForwardingRulesRequest { // A request message for GlobalAddresses.List. See the method description for details. message ListGlobalAddressesRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -12587,7 +13053,7 @@ message ListGlobalAddressesRequest { // A request message for GlobalForwardingRules.List. See the method description for details. message ListGlobalForwardingRulesRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -12609,7 +13075,7 @@ message ListGlobalForwardingRulesRequest { // A request message for GlobalNetworkEndpointGroups.List. See the method description for details. message ListGlobalNetworkEndpointGroupsRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -12631,7 +13097,7 @@ message ListGlobalNetworkEndpointGroupsRequest { // A request message for GlobalOperations.List. See the method description for details. message ListGlobalOperationsRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -12653,7 +13119,7 @@ message ListGlobalOperationsRequest { // A request message for GlobalOrganizationOperations.List. See the method description for details. message ListGlobalOrganizationOperationsRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -12675,7 +13141,7 @@ message ListGlobalOrganizationOperationsRequest { // A request message for GlobalPublicDelegatedPrefixes.List. See the method description for details. message ListGlobalPublicDelegatedPrefixesRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -12697,7 +13163,7 @@ message ListGlobalPublicDelegatedPrefixesRequest { // A request message for HealthChecks.List. See the method description for details. message ListHealthChecksRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -12719,7 +13185,7 @@ message ListHealthChecksRequest { // A request message for Images.List. See the method description for details. message ListImagesRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -12741,7 +13207,7 @@ message ListImagesRequest { // A request message for InstanceGroupManagers.List. See the method description for details. message ListInstanceGroupManagersRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -12766,7 +13232,7 @@ message ListInstanceGroupManagersRequest { // A request message for InstanceGroups.List. See the method description for details. message ListInstanceGroupsRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -12791,7 +13257,7 @@ message ListInstanceGroupsRequest { // A request message for InstanceTemplates.List. See the method description for details. message ListInstanceTemplatesRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -12813,7 +13279,7 @@ message ListInstanceTemplatesRequest { // A request message for InstanceGroups.ListInstances. See the method description for details. message ListInstancesInstanceGroupsRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` optional string filter = 336120696; // The name of the instance group from which you want to generate a list of included instances. @@ -12844,7 +13310,7 @@ message ListInstancesInstanceGroupsRequest { // A request message for RegionInstanceGroups.ListInstances. See the method description for details. message ListInstancesRegionInstanceGroupsRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` optional string filter = 336120696; // Name of the regional instance group for which we want to list the instances. @@ -12875,7 +13341,7 @@ message ListInstancesRegionInstanceGroupsRequest { // A request message for Instances.List. See the method description for details. message ListInstancesRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -12900,7 +13366,7 @@ message ListInstancesRequest { // A request message for InterconnectAttachments.List. See the method description for details. message ListInterconnectAttachmentsRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -12925,7 +13391,7 @@ message ListInterconnectAttachmentsRequest { // A request message for InterconnectLocations.List. See the method description for details. message ListInterconnectLocationsRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -12947,7 +13413,7 @@ message ListInterconnectLocationsRequest { // A request message for Interconnects.List. See the method description for details. message ListInterconnectsRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -12969,7 +13435,29 @@ message ListInterconnectsRequest { // A request message for Licenses.List. See the method description for details. message ListLicensesRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` + 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]; + + // 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 MachineImages.List. See the method description for details. +message ListMachineImagesRequest { + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -12991,7 +13479,7 @@ message ListLicensesRequest { // A request message for MachineTypes.List. See the method description for details. message ListMachineTypesRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -13016,7 +13504,7 @@ message ListMachineTypesRequest { // A request message for InstanceGroupManagers.ListManagedInstances. See the method description for details. message ListManagedInstancesInstanceGroupManagersRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` optional string filter = 336120696; // The name of the managed instance group. @@ -13044,7 +13532,7 @@ message ListManagedInstancesInstanceGroupManagersRequest { // A request message for RegionInstanceGroupManagers.ListManagedInstances. See the method description for details. message ListManagedInstancesRegionInstanceGroupManagersRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` optional string filter = 336120696; // The name of the managed instance group. @@ -13072,7 +13560,7 @@ message ListManagedInstancesRegionInstanceGroupManagersRequest { // A request message for NetworkEndpointGroups.List. See the method description for details. message ListNetworkEndpointGroupsRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -13097,7 +13585,7 @@ message ListNetworkEndpointGroupsRequest { // A request message for GlobalNetworkEndpointGroups.ListNetworkEndpoints. See the method description for details. message ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -13122,7 +13610,7 @@ message ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest { // A request message for NetworkEndpointGroups.ListNetworkEndpoints. See the method description for details. message ListNetworkEndpointsNetworkEndpointGroupsRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -13153,7 +13641,7 @@ message ListNetworkEndpointsNetworkEndpointGroupsRequest { // A request message for Networks.List. See the method description for details. message ListNetworksRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -13175,7 +13663,7 @@ message ListNetworksRequest { // A request message for NodeGroups.List. See the method description for details. message ListNodeGroupsRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -13200,7 +13688,7 @@ message ListNodeGroupsRequest { // A request message for NodeTemplates.List. See the method description for details. message ListNodeTemplatesRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -13225,7 +13713,7 @@ message ListNodeTemplatesRequest { // A request message for NodeTypes.List. See the method description for details. message ListNodeTypesRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -13250,7 +13738,7 @@ message ListNodeTypesRequest { // A request message for NodeGroups.ListNodes. See the method description for details. message ListNodesNodeGroupsRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -13278,7 +13766,7 @@ message ListNodesNodeGroupsRequest { // A request message for PacketMirrorings.List. See the method description for details. message ListPacketMirroringsRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -13320,7 +13808,7 @@ message ListPeeringRoutesNetworksRequest { // Check the Direction enum for the list of possible values. optional string direction = 111150975; - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -13351,7 +13839,7 @@ message ListPeeringRoutesNetworksRequest { // A request message for InstanceGroupManagers.ListPerInstanceConfigs. See the method description for details. message ListPerInstanceConfigsInstanceGroupManagersRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` optional string filter = 336120696; // The name of the managed instance group. It should conform to RFC1035. @@ -13379,7 +13867,7 @@ message ListPerInstanceConfigsInstanceGroupManagersRequest { // A request message for RegionInstanceGroupManagers.ListPerInstanceConfigs. See the method description for details. message ListPerInstanceConfigsRegionInstanceGroupManagersRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` optional string filter = 336120696; // The name of the managed instance group. It should conform to RFC1035. @@ -13407,7 +13895,7 @@ message ListPerInstanceConfigsRegionInstanceGroupManagersRequest { // A request message for SecurityPolicies.ListPreconfiguredExpressionSets. See the method description for details. message ListPreconfiguredExpressionSetsSecurityPoliciesRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -13429,7 +13917,7 @@ message ListPreconfiguredExpressionSetsSecurityPoliciesRequest { // A request message for PublicAdvertisedPrefixes.List. See the method description for details. message ListPublicAdvertisedPrefixesRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -13451,7 +13939,7 @@ message ListPublicAdvertisedPrefixesRequest { // A request message for PublicDelegatedPrefixes.List. See the method description for details. message ListPublicDelegatedPrefixesRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -13476,7 +13964,7 @@ message ListPublicDelegatedPrefixesRequest { // A request message for Instances.ListReferrers. See the method description for details. message ListReferrersInstancesRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` optional string filter = 336120696; // Name of the target instance scoping this request, or '-' if the request should span over all instances in the container. @@ -13504,7 +13992,7 @@ message ListReferrersInstancesRequest { // A request message for RegionAutoscalers.List. See the method description for details. message ListRegionAutoscalersRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -13529,7 +14017,7 @@ message ListRegionAutoscalersRequest { // A request message for RegionBackendServices.List. See the method description for details. message ListRegionBackendServicesRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -13554,7 +14042,7 @@ message ListRegionBackendServicesRequest { // A request message for RegionCommitments.List. See the method description for details. message ListRegionCommitmentsRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -13579,7 +14067,7 @@ message ListRegionCommitmentsRequest { // A request message for RegionDiskTypes.List. See the method description for details. message ListRegionDiskTypesRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -13604,7 +14092,7 @@ message ListRegionDiskTypesRequest { // A request message for RegionDisks.List. See the method description for details. message ListRegionDisksRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -13629,7 +14117,7 @@ message ListRegionDisksRequest { // A request message for RegionHealthCheckServices.List. See the method description for details. message ListRegionHealthCheckServicesRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -13654,7 +14142,7 @@ message ListRegionHealthCheckServicesRequest { // A request message for RegionHealthChecks.List. See the method description for details. message ListRegionHealthChecksRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -13679,7 +14167,7 @@ message ListRegionHealthChecksRequest { // A request message for RegionInstanceGroupManagers.List. See the method description for details. message ListRegionInstanceGroupManagersRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -13704,7 +14192,7 @@ message ListRegionInstanceGroupManagersRequest { // A request message for RegionInstanceGroups.List. See the method description for details. message ListRegionInstanceGroupsRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -13729,7 +14217,7 @@ message ListRegionInstanceGroupsRequest { // A request message for RegionNetworkEndpointGroups.List. See the method description for details. message ListRegionNetworkEndpointGroupsRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -13754,7 +14242,7 @@ message ListRegionNetworkEndpointGroupsRequest { // A request message for RegionNotificationEndpoints.List. See the method description for details. message ListRegionNotificationEndpointsRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -13779,7 +14267,7 @@ message ListRegionNotificationEndpointsRequest { // A request message for RegionOperations.List. See the method description for details. message ListRegionOperationsRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -13804,7 +14292,7 @@ message ListRegionOperationsRequest { // A request message for RegionSslCertificates.List. See the method description for details. message ListRegionSslCertificatesRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -13829,7 +14317,7 @@ message ListRegionSslCertificatesRequest { // A request message for RegionTargetHttpProxies.List. See the method description for details. message ListRegionTargetHttpProxiesRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -13854,7 +14342,7 @@ message ListRegionTargetHttpProxiesRequest { // A request message for RegionTargetHttpsProxies.List. See the method description for details. message ListRegionTargetHttpsProxiesRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -13879,7 +14367,7 @@ message ListRegionTargetHttpsProxiesRequest { // A request message for RegionUrlMaps.List. See the method description for details. message ListRegionUrlMapsRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -13904,7 +14392,7 @@ message ListRegionUrlMapsRequest { // A request message for Regions.List. See the method description for details. message ListRegionsRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -13926,7 +14414,7 @@ message ListRegionsRequest { // A request message for Reservations.List. See the method description for details. message ListReservationsRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -13951,7 +14439,7 @@ message ListReservationsRequest { // A request message for ResourcePolicies.List. See the method description for details. message ListResourcePoliciesRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -13976,7 +14464,7 @@ message ListResourcePoliciesRequest { // A request message for Routers.List. See the method description for details. message ListRoutersRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -14001,7 +14489,7 @@ message ListRoutersRequest { // A request message for Routes.List. See the method description for details. message ListRoutesRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -14023,7 +14511,7 @@ message ListRoutesRequest { // A request message for SecurityPolicies.List. See the method description for details. message ListSecurityPoliciesRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -14045,7 +14533,7 @@ message ListSecurityPoliciesRequest { // A request message for ServiceAttachments.List. See the method description for details. message ListServiceAttachmentsRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -14070,7 +14558,7 @@ message ListServiceAttachmentsRequest { // A request message for Snapshots.List. See the method description for details. message ListSnapshotsRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -14092,7 +14580,7 @@ message ListSnapshotsRequest { // A request message for SslCertificates.List. See the method description for details. message ListSslCertificatesRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -14114,7 +14602,7 @@ message ListSslCertificatesRequest { // A request message for SslPolicies.List. See the method description for details. message ListSslPoliciesRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -14136,7 +14624,7 @@ message ListSslPoliciesRequest { // A request message for Subnetworks.List. See the method description for details. message ListSubnetworksRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -14161,7 +14649,7 @@ message ListSubnetworksRequest { // A request message for TargetGrpcProxies.List. See the method description for details. message ListTargetGrpcProxiesRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -14183,7 +14671,7 @@ message ListTargetGrpcProxiesRequest { // A request message for TargetHttpProxies.List. See the method description for details. message ListTargetHttpProxiesRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -14205,7 +14693,7 @@ message ListTargetHttpProxiesRequest { // A request message for TargetHttpsProxies.List. See the method description for details. message ListTargetHttpsProxiesRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -14227,7 +14715,7 @@ message ListTargetHttpsProxiesRequest { // A request message for TargetInstances.List. See the method description for details. message ListTargetInstancesRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -14252,7 +14740,7 @@ message ListTargetInstancesRequest { // A request message for TargetPools.List. See the method description for details. message ListTargetPoolsRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -14277,7 +14765,7 @@ message ListTargetPoolsRequest { // A request message for TargetSslProxies.List. See the method description for details. message ListTargetSslProxiesRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -14299,7 +14787,7 @@ message ListTargetSslProxiesRequest { // A request message for TargetTcpProxies.List. See the method description for details. message ListTargetTcpProxiesRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -14321,7 +14809,7 @@ message ListTargetTcpProxiesRequest { // A request message for TargetVpnGateways.List. See the method description for details. message ListTargetVpnGatewaysRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -14346,7 +14834,7 @@ message ListTargetVpnGatewaysRequest { // A request message for UrlMaps.List. See the method description for details. message ListUrlMapsRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -14368,7 +14856,7 @@ message ListUrlMapsRequest { // A request message for Subnetworks.ListUsable. See the method description for details. message ListUsableSubnetworksRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -14390,7 +14878,7 @@ message ListUsableSubnetworksRequest { // A request message for VpnGateways.List. See the method description for details. message ListVpnGatewaysRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -14415,7 +14903,7 @@ message ListVpnGatewaysRequest { // A request message for VpnTunnels.List. See the method description for details. message ListVpnTunnelsRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -14440,7 +14928,7 @@ message ListVpnTunnelsRequest { // A request message for Projects.ListXpnHosts. See the method description for details. message ListXpnHostsProjectsRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -14465,7 +14953,7 @@ message ListXpnHostsProjectsRequest { // A request message for ZoneOperations.List. See the method description for details. message ListZoneOperationsRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -14490,7 +14978,7 @@ message ListZoneOperationsRequest { // A request message for Zones.List. See the method description for details. message ListZonesRequest { - // A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + // A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` 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`) @@ -14532,7 +15020,7 @@ message LocationPolicy { // message LocationPolicyLocation { - // Preference for a given location: ALLOW or DENY. + // Preference for a given location. enum Preference { // A value indicating that the enum field is not set. UNDEFINED_PREFERENCE = 0; @@ -14548,7 +15036,7 @@ message LocationPolicyLocation { } - // Preference for a given location: ALLOW or DENY. + // Preference for a given location. // Check the Preference enum for the list of possible values. optional string preference = 150781147; @@ -14638,6 +15126,101 @@ message LogConfigDataAccessOptions { } +// Represents a machine image resource. A machine image is a Compute Engine resource that stores all the configuration, metadata, permissions, and data from one or more disks required to create a Virtual machine (VM) instance. For more information, see Machine images. +message MachineImage { + // [Output Only] The status of the machine image. One of the following values: INVALID, CREATING, READY, DELETING, and UPLOADING. + enum Status { + // A value indicating that the enum field is not set. + UNDEFINED_STATUS = 0; + + CREATING = 455564985; + + DELETING = 528602024; + + INVALID = 530283991; + + READY = 77848963; + + UPLOADING = 267603489; + + } + + // [Output Only] The creation timestamp for this machine image in RFC3339 text format. + optional string creation_timestamp = 30525366; + + // An optional description of this resource. Provide this property when you create the resource. + optional string description = 422937596; + + // [Input Only] Whether to attempt an application consistent machine image by informing the OS to prepare for the snapshot process. Currently only supported on Windows instances using the Volume Shadow Copy Service (VSS). + optional bool guest_flush = 385550813; + + // [Output Only] A unique identifier for this machine image. The server defines this identifier. + optional uint64 id = 3355; + + // [Output Only] Properties of source instance + optional InstanceProperties instance_properties = 215355165; + + // [Output Only] The resource type, which is always compute#machineImage for machine image. + optional string kind = 3292052; + + // Encrypts the machine image using a customer-supplied encryption key. After you encrypt a machine image using a customer-supplied key, you must provide the same key if you use the machine image later. For example, you must provide the encryption key when you create an instance from the encrypted machine image in a future request. Customer-supplied encryption keys do not protect access to metadata of the machine image. If you do not provide an encryption key when creating the machine image, then the machine image will be encrypted using an automatically generated key and you do not need to provide a key to use the machine image later. + optional CustomerEncryptionKey machine_image_encryption_key = 528089087; + + // 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_pzs = 480964267; + + // An array of Machine Image specific properties for disks attached to the source instance + repeated SavedDisk saved_disks = 397424318; + + // [Output Only] The URL for this machine image. The server defines this URL. + optional string self_link = 456214797; + + // [Input Only] The customer-supplied encryption key of the disks attached to the source instance. Required if the source disk is protected by a customer-supplied encryption key. + repeated SourceDiskEncryptionKey source_disk_encryption_keys = 370408498; + + // The source instance used to create the machine image. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /instances/instance - projects/project/zones/zone/instances/instance + optional string source_instance = 396315705; + + // [Output Only] DEPRECATED: Please use instance_properties instead for source instance related properties. New properties will not be added to this field. + optional SourceInstanceProperties source_instance_properties = 475195641; + + // [Output Only] The status of the machine image. One of the following values: INVALID, CREATING, READY, DELETING, and UPLOADING. + // Check the Status enum for the list of possible values. + optional string status = 181260274; + + // The regional or multi-regional Cloud Storage bucket location where the machine image is stored. + repeated string storage_locations = 328005274; + + // [Output Only] Total size of the storage used by the machine image. + optional int64 total_storage_bytes = 81855468; + +} + +// A list of machine images. +message MachineImageList { + // [Output Only] Unique identifier for the resource; defined by the server. + optional string id = 3355; + + // A list of MachineImage resources. + repeated MachineImage items = 100526016; + + // [Output Only] The resource type, which is always compute#machineImagesListResponse for machine image lists. + optional string kind = 3292052; + + // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + optional string next_page_token = 79797525; + + // [Output Only] Server-defined URL for this resource. + optional string self_link = 456214797; + + // [Output Only] Informational warning message. + optional Warning warning = 50704284; + +} + // Represents a Machine Type resource. You can use specific machine types for your VM instances based on performance and pricing requirements. For more information, read Machine Types. message MachineType { // [Output Only] A list of accelerator configurations assigned to this machine type. @@ -14834,7 +15417,6 @@ message ManagedInstance { repeated ManagedInstanceInstanceHealth instance_health = 382667078; // [Output Only] The status of the instance. This field is empty when the instance does not exist. - // Check the InstanceStatus enum for the list of possible values. optional string instance_status = 174577372; // [Output Only] Information about the last attempt to create or delete the instance. @@ -14914,9 +15496,9 @@ message Metadata { } -// Opaque filter criteria used by loadbalancers to restrict routing configuration to a limited set of loadbalancing proxies. Proxies and sidecars involved in loadbalancing would typically present metadata to the loadbalancers which need to match criteria specified here. If a match takes place, the relevant configuration is made available to those proxies. For each metadataFilter in this list, if its filterMatchCriteria is set to MATCH_ANY, at least one of the filterLabels must match the corresponding label provided in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with corresponding labels provided in the metadata. An example for using metadataFilters would be: if loadbalancing involves Envoys, they will only receive routing configuration when values in metadataFilters match values supplied in of their XDS requests to loadbalancers. +// Opaque filter criteria used by load balancers to restrict routing configuration to a limited set of load balancing proxies. Proxies and sidecars involved in load balancing would typically present metadata to the load balancers that need to match criteria specified here. If a match takes place, the relevant configuration is made available to those proxies. For each metadataFilter in this list, if its filterMatchCriteria is set to MATCH_ANY, at least one of the filterLabels must match the corresponding label provided in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with corresponding labels provided in the metadata. An example for using metadataFilters would be: if load balancing involves Envoys, they receive routing configuration when values in metadataFilters match values supplied in of their XDS requests to loadbalancers. message MetadataFilter { - // Specifies how individual filterLabel matches within the list of filterLabels contribute towards the overall metadataFilter match. Supported values are: - MATCH_ANY: At least one of the filterLabels must have a matching label in the provided metadata. - MATCH_ALL: All filterLabels must have matching labels in the provided metadata. + // Specifies how individual filter label matches within the list of filterLabels and contributes toward the overall metadataFilter match. Supported values are: - MATCH_ANY: at least one of the filterLabels must have a matching label in the provided metadata. - MATCH_ALL: all filterLabels must have matching labels in the provided metadata. enum FilterMatchCriteria { // A value indicating that the enum field is not set. UNDEFINED_FILTER_MATCH_CRITERIA = 0; @@ -14935,13 +15517,13 @@ message MetadataFilter { // The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria This list must not be empty and can have at the most 64 entries. repeated MetadataFilterLabelMatch filter_labels = 307903142; - // Specifies how individual filterLabel matches within the list of filterLabels contribute towards the overall metadataFilter match. Supported values are: - MATCH_ANY: At least one of the filterLabels must have a matching label in the provided metadata. - MATCH_ALL: All filterLabels must have matching labels in the provided metadata. + // Specifies how individual filter label matches within the list of filterLabels and contributes toward the overall metadataFilter match. Supported values are: - MATCH_ANY: at least one of the filterLabels must have a matching label in the provided metadata. - MATCH_ALL: all filterLabels must have matching labels in the provided metadata. // Check the FilterMatchCriteria enum for the list of possible values. optional string filter_match_criteria = 239970368; } -// MetadataFilter label name value pairs that are expected to match corresponding labels presented as metadata to the loadbalancer. +// MetadataFilter label name value pairs that are expected to match corresponding labels presented as metadata to the load balancer. message MetadataFilterLabelMatch { // Name of metadata label. The name can have a maximum length of 1024 characters and must be at least 1 character long. optional string name = 3373707; @@ -14973,10 +15555,7 @@ message MoveFirewallPolicyRequest { string firewall_policy = 498173265 [(google.api.field_behavior) = REQUIRED]; // The new parent of the firewall policy. - string parent_id = 459714768 [ - (google.api.field_behavior) = REQUIRED, - (google.cloud.operation_request_field) = "parent_id" - ]; + optional string parent_id = 459714768 [(google.cloud.operation_request_field) = "parent_id"]; // 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; @@ -15093,6 +15672,9 @@ message NetworkEndpointGroup { // The network endpoint is represented by an IP address and port. The endpoint belongs to a VM or pod running in a customer's on-premises. NON_GCP_PRIVATE_IP_PORT = 336447968; + // The network endpoint is either public Google APIs or services exposed by other GCP Project with a Service Attachment. The connection is set up by private service connect + PRIVATE_SERVICE_CONNECT = 48134724; + // The network endpoint is handled by specified serverless infrastructure. SERVERLESS = 270492508; @@ -15135,6 +15717,9 @@ message NetworkEndpointGroup { // Check the NetworkEndpointType enum for the list of possible values. optional string network_endpoint_type = 118301523; + // The target service url used to set up private service connection to a Google API. 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. optional string region = 138946292; @@ -15371,7 +15956,7 @@ message NetworkInterface { // Check the Ipv6AccessType enum for the list of possible values. optional string ipv6_access_type = 504658653; - // [Output Only] An IPv6 internal network address for this network interface. + // An IPv6 internal network address for this network interface. optional string ipv6_address = 341563804; // [Output Only] Type of the resource. Always compute#networkInterface for network interfaces. @@ -15380,7 +15965,7 @@ message NetworkInterface { // [Output Only] The name of the network interface, which is generated by the server. For network devices, these are eth0, eth1, etc. optional string name = 3373707; - // URL of the network resource for this instance. When creating an instance, if neither the network nor the subnetwork is specified, the default network global/networks/default is used; if the network is not specified but the subnetwork is specified, the network is inferred. If you specify this property, you can specify the network as a full or partial URL. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/project/global/networks/ network - projects/project/global/networks/network - global/networks/default + // URL of the VPC network resource for this instance. When creating an instance, if neither the network nor the subnetwork is specified, the default network global/networks/default is used. If the selected project doesn't have the default network, you must specify a network or subnet. If the network is not specified but the subnetwork is specified, the network is inferred. If you specify this property, you can specify the network as a full or partial URL. For example, the following are all valid URLs: - https://www.googleapis.com/compute/v1/projects/project/global/networks/ network - projects/project/global/networks/network - global/networks/default optional string network = 232872494; // An IPv4 internal IP address to assign to the instance for this network interface. If not specified by the user, an unused internal IP is assigned by the system. @@ -15445,13 +16030,13 @@ message NetworkPeering { // Indicates whether full mesh connectivity is created and managed automatically between peered networks. Currently this field should always be true since Google Compute Engine will automatically create and manage subnetwork routes between two networks when peering state is ACTIVE. optional bool exchange_subnet_routes = 26322256; - // Whether to export the custom routes to peer network. + // Whether to export the custom routes to peer network. The default value is false. optional bool export_custom_routes = 60281485; // Whether subnet routes with public IP range are exported. The default value is true, all subnet routes are exported. IPv4 special-use ranges are always exported to peers and are not controlled by this field. optional bool export_subnet_routes_with_public_ip = 97940834; - // Whether to import the custom routes from peer network. + // Whether to import the custom routes from peer network. The default value is false. optional bool import_custom_routes = 197982398; // Whether subnet routes with public IP range are imported. The default value is false. IPv4 special-use ranges are always imported from peers and are not controlled by this field. @@ -15475,6 +16060,25 @@ message NetworkPeering { } +// +message NetworkPerformanceConfig { + // + enum TotalEgressBandwidthTier { + // A value indicating that the enum field is not set. + UNDEFINED_TOTAL_EGRESS_BANDWIDTH_TIER = 0; + + DEFAULT = 115302945; + + TIER_1 = 326919444; + + } + + // + // Check the TotalEgressBandwidthTier enum for the list of possible values. + optional string total_egress_bandwidth_tier = 130109439; + +} + // A routing configuration attached to a network resource. The message includes the list of routers associated with the network, and a flag indicating the type of routing behavior to enforce network-wide. message NetworkRoutingConfig { // The network-wide routing mode to use. If set to REGIONAL, this network's Cloud Routers will only advertise routes with subnets of this network in the same region as the router. If set to GLOBAL, this network's Cloud Routers will advertise routes with all subnets of this network, across regions. @@ -16356,6 +16960,64 @@ message OutlierDetection { } +// Next free: 7 +message PacketIntervals { + // From how long ago in the past these intervals were observed. + enum Duration { + // A value indicating that the enum field is not set. + UNDEFINED_DURATION = 0; + + DURATION_UNSPECIFIED = 529071340; + + HOUR = 2223588; + + // From BfdSession object creation time. + MAX = 76100; + + MINUTE = 126786068; + + } + + // The type of packets for which inter-packet intervals were computed. + enum Type { + // A value indicating that the enum field is not set. + UNDEFINED_TYPE = 0; + + // Only applies to Echo packets. This shows the intervals between sending and receiving the same packet. + LOOPBACK = 356174219; + + // Intervals between received packets. + RECEIVE = 189660867; + + // Intervals between transmitted packets. + TRANSMIT = 452903600; + + TYPE_UNSPECIFIED = 437714322; + + } + + // Average observed inter-packet interval in milliseconds. + optional int64 avg_ms = 204811827; + + // From how long ago in the past these intervals were observed. + // Check the Duration enum for the list of possible values. + optional string duration = 155471252; + + // Maximum observed inter-packet interval in milliseconds. + optional int64 max_ms = 529474145; + + // Minimum observed inter-packet interval in milliseconds. + optional int64 min_ms = 536564403; + + // Number of inter-packet intervals from which these statistics were derived. + optional int64 num_intervals = 186329813; + + // The type of packets for which inter-packet intervals were computed. + // Check the Type enum for the list of possible values. + optional string type = 3575610; + +} + // Represents a Packet Mirroring resource. Packet Mirroring clones the traffic of specified instances in your Virtual Private Cloud (VPC) network and forwards it to a collector destination, such as an instance group of an internal TCP/UDP load balancer, for analysis or examination. For more information about setting up Packet Mirroring, see Using Packet Mirroring. message PacketMirroring { // Indicates whether or not this packet mirroring takes effect. If set to FALSE, this packet mirroring policy will not be enforced on the network. The default is TRUE. @@ -16704,7 +17366,7 @@ message PatchGlobalPublicDelegatedPrefixeRequest { // The body resource for this request PublicDelegatedPrefix public_delegated_prefix_resource = 47594501 [(google.api.field_behavior) = REQUIRED]; - // 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). end_interface: MixerMutationRequestBuilder + // 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; } @@ -16949,7 +17611,7 @@ message PatchPublicAdvertisedPrefixeRequest { // The body resource for this request PublicAdvertisedPrefix public_advertised_prefix_resource = 233614223 [(google.api.field_behavior) = REQUIRED]; - // 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). end_interface: MixerMutationRequestBuilder + // 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; } @@ -16974,7 +17636,7 @@ message PatchPublicDelegatedPrefixeRequest { (google.cloud.operation_request_field) = "region" ]; - // 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). end_interface: MixerMutationRequestBuilder + // 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; } @@ -17222,7 +17884,7 @@ message PatchServiceAttachmentRequest { (google.cloud.operation_request_field) = "region" ]; - // 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). end_interface: MixerMutationRequestBuilder + // 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 resource id of the ServiceAttachment to patch. It should conform to RFC1035 resource name or be a string form on an unsigned long number. @@ -17288,7 +17950,7 @@ message PatchTargetGrpcProxyRequest { (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). end_interface: MixerMutationRequestBuilder + // 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; // Name of the TargetGrpcProxy resource to patch. @@ -17307,7 +17969,7 @@ message PatchTargetHttpProxyRequest { (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). end_interface: MixerMutationRequestBuilder + // 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; // Name of the TargetHttpProxy resource to patch. @@ -17326,7 +17988,7 @@ message PatchTargetHttpsProxyRequest { (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). end_interface: MixerMutationRequestBuilder + // 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; // Name of the TargetHttpsProxy resource to patch. @@ -17356,21 +18018,21 @@ message PatchUrlMapRequest { } -// A matcher for the path portion of the URL. The BackendService from the longest-matched rule will serve the URL. If no rule was matched, the default service will be used. +// A matcher for the path portion of the URL. The BackendService from the longest-matched rule will serve the URL. If no rule was matched, the default service is used. message PathMatcher { - // defaultRouteAction takes effect when none of the pathRules or routeRules match. The load balancer performs advanced routing actions like URL rewrites, header transformations, etc. prior to forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. Only one of defaultRouteAction or defaultUrlRedirect must be set. UrlMaps for external HTTP(S) load balancers support only the urlRewrite action within a pathMatcher's defaultRouteAction. + // defaultRouteAction takes effect when none of the pathRules or routeRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. Only one of defaultRouteAction or defaultUrlRedirect must be set. UrlMaps for external HTTP(S) load balancers support only the urlRewrite action within a path matcher's defaultRouteAction. optional HttpRouteAction default_route_action = 378919466; - // The full or partial URL to the BackendService resource. This will be used if none of the pathRules or routeRules defined by this PathMatcher are matched. For example, the following are all valid URLs to a BackendService resource: - https://www.googleapis.com/compute/v1/projects/project /global/backendServices/backendService - compute/v1/projects/project/global/backendServices/backendService - global/backendServices/backendService If defaultRouteAction is additionally specified, advanced routing actions like URL Rewrites, etc. take effect prior to sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any weightedBackendServices. Conversely, if defaultRouteAction specifies any weightedBackendServices, defaultService must not be specified. Only one of defaultService, defaultUrlRedirect or defaultRouteAction.weightedBackendService must be set. Authorization requires one or more of the following Google IAM permissions on the specified resource default_service: - compute.backendBuckets.use - compute.backendServices.use + // The full or partial URL to the BackendService resource. This URL is used if none of the pathRules or routeRules defined by this PathMatcher are matched. For example, the following are all valid URLs to a BackendService resource: - https://www.googleapis.com/compute/v1/projects/project /global/backendServices/backendService - compute/v1/projects/project/global/backendServices/backendService - global/backendServices/backendService If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any weightedBackendServices. Conversely, if defaultRouteAction specifies any weightedBackendServices, defaultService must not be specified. Only one of defaultService, defaultUrlRedirect , or defaultRouteAction.weightedBackendService must be set. Authorization requires one or more of the following Google IAM permissions on the specified resource default_service: - compute.backendBuckets.use - compute.backendServices.use optional string default_service = 370242231; - // When none of the specified pathRules or routeRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Not supported when the URL map is bound to target gRPC proxy. + // When none of the specified pathRules or routeRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Not supported when the URL map is bound to a target gRPC proxy. optional HttpRedirectAction default_url_redirect = 359503338; // An optional description of this resource. Provide this property when you create the resource. optional string description = 422937596; - // Specifies changes to request and response headers that need to take effect for the selected backendService. HeaderAction specified here are applied after the matching HttpRouteRule HeaderAction and before the HeaderAction in the UrlMap Note that headerAction is not supported for Loadbalancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to target gRPC proxy that has validateForProxyless field set to true. + // Specifies changes to request and response headers that need to take effect for the selected backend service. HeaderAction specified here are applied after the matching HttpRouteRule HeaderAction and before the HeaderAction in the UrlMap HeaderAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true. optional HttpHeaderAction header_action = 328077352; // The name to which this PathMatcher is referred by the HostRule. @@ -17389,13 +18051,13 @@ message PathRule { // The list of path patterns to match. Each must start with / and the only place a * is allowed is at the end following a /. The string fed to the path matcher does not include any text after the first ? or #, and those chars are not allowed here. repeated string paths = 106438894; - // In response to a matching path, the load balancer performs advanced routing actions like URL rewrites, header transformations, etc. prior to forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of routeAction or urlRedirect must be set. UrlMaps for external HTTP(S) load balancers support only the urlRewrite action within a pathRule's routeAction. + // In response to a matching path, the load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If routeAction specifies any weightedBackendServices, service must not be set. Conversely if service is set, routeAction cannot contain any weightedBackendServices. Only one of routeAction or urlRedirect must be set. URL maps for external HTTP(S) load balancers support only the urlRewrite action within a path rule's routeAction. optional HttpRouteAction route_action = 424563948; - // The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is additionally specified, advanced routing actions like URL Rewrites, etc. take effect prior to sending the request to the backend. However, if service is specified, routeAction cannot contain any weightedBackendService s. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of urlRedirect, service or routeAction.weightedBackendService must be set. + // The full or partial URL of the backend service resource to which traffic is directed if this rule is matched. If routeAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if service is specified, routeAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of urlRedirect, service or routeAction.weightedBackendService must be set. optional string service = 373540533; - // When a path pattern is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Not supported when the URL map is bound to target gRPC proxy. + // When a path pattern is matched, the request is redirected to a URL specified by urlRedirect. If urlRedirect is specified, service or routeAction must not be set. Not supported when the URL map is bound to a target gRPC proxy. optional HttpRedirectAction url_redirect = 405147820; } @@ -17442,12 +18104,12 @@ message PerInstanceConfig { } -// 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` to a single `role`. Members 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/). +// 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. repeated AuditConfig audit_configs = 328080653; - // Associates a list of `members` to a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one member. + // Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:alice@example.com`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`. repeated Binding bindings = 403251854; // `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. @@ -17543,12 +18205,18 @@ message Project { // A value indicating that the enum field is not set. UNDEFINED_DEFAULT_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; + } // [Output Only] The role this project has in a shared VPC configuration. Currently, only projects with the host role, which is specified by the value HOST, are differentiated. @@ -17646,12 +18314,18 @@ message ProjectsSetDefaultNetworkTierRequest { // A value indicating that the enum field is not set. UNDEFINED_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; + } // Default network tier to be set. @@ -17662,23 +18336,30 @@ message ProjectsSetDefaultNetworkTierRequest { // A public advertised prefix represents an aggregated IP prefix or netblock which customers bring to cloud. The IP prefix is a single unit of route advertisement and is announced globally to the internet. message PublicAdvertisedPrefix { - // The status of the public advertised prefix. + // The status of the public advertised prefix. Possible values include: - `INITIAL`: RPKI validation is complete. - `PTR_CONFIGURED`: User has configured the PTR. - `VALIDATED`: Reverse DNS lookup is successful. - `REVERSE_DNS_LOOKUP_FAILED`: Reverse DNS lookup failed. - `PREFIX_CONFIGURATION_IN_PROGRESS`: The prefix is being configured. - `PREFIX_CONFIGURATION_COMPLETE`: The prefix is fully configured. - `PREFIX_REMOVAL_IN_PROGRESS`: The prefix is being removed. enum Status { // A value indicating that the enum field is not set. UNDEFINED_STATUS = 0; + // RPKI validation is complete. INITIAL = 518841124; + // The prefix is fully configured. PREFIX_CONFIGURATION_COMPLETE = 480889551; + // The prefix is being configured. PREFIX_CONFIGURATION_IN_PROGRESS = 378550961; + // The prefix is being removed. PREFIX_REMOVAL_IN_PROGRESS = 284375783; + // User has configured the PTR. PTR_CONFIGURED = 513497167; + // Reverse DNS lookup failed. REVERSE_DNS_LOOKUP_FAILED = 295755183; + // Reverse DNS lookup is successful. VALIDATED = 66197998; } @@ -17716,7 +18397,7 @@ message PublicAdvertisedPrefix { // [Output Only] The shared secret to be used for reverse DNS verification. optional string shared_secret = 381932490; - // The status of the public advertised prefix. + // The status of the public advertised prefix. Possible values include: - `INITIAL`: RPKI validation is complete. - `PTR_CONFIGURED`: User has configured the PTR. - `VALIDATED`: Reverse DNS lookup is successful. - `REVERSE_DNS_LOOKUP_FAILED`: Reverse DNS lookup failed. - `PREFIX_CONFIGURATION_IN_PROGRESS`: The prefix is being configured. - `PREFIX_CONFIGURATION_COMPLETE`: The prefix is fully configured. - `PREFIX_REMOVAL_IN_PROGRESS`: The prefix is being removed. // Check the Status enum for the list of possible values. optional string status = 181260274; @@ -17765,17 +18446,21 @@ message PublicAdvertisedPrefixPublicDelegatedPrefix { // A PublicDelegatedPrefix resource represents an IP block within a PublicAdvertisedPrefix that is configured within a single cloud scope (global or region). IPs in the block can be allocated to resources within that scope. Public delegated prefixes may be further broken up into smaller IP blocks in the same scope as the parent block. message PublicDelegatedPrefix { - // [Output Only] The status of the public delegated prefix. + // [Output Only] The status of the public delegated prefix, which can be one of following values: - `INITIALIZING` The public delegated prefix is being initialized and addresses cannot be created yet. - `READY_TO_ANNOUNCE` The public delegated prefix is a live migration prefix and is active. - `ANNOUNCED` The public delegated prefix is active. - `DELETING` The public delegated prefix is being deprovsioned. enum Status { // A value indicating that the enum field is not set. UNDEFINED_STATUS = 0; + // The public delegated prefix is active. ANNOUNCED = 365103355; + // The public delegated prefix is being deprovsioned. DELETING = 528602024; + // The public delegated prefix is being initialized and addresses cannot be created yet. INITIALIZING = 306588749; + // The public delegated prefix is currently withdrawn but ready to be announced. READY_TO_ANNOUNCE = 64641265; } @@ -17816,7 +18501,7 @@ message PublicDelegatedPrefix { // [Output Only] Server-defined URL for the resource. optional string self_link = 456214797; - // [Output Only] The status of the public delegated prefix. + // [Output Only] The status of the public delegated prefix, which can be one of following values: - `INITIALIZING` The public delegated prefix is being initialized and addresses cannot be created yet. - `READY_TO_ANNOUNCE` The public delegated prefix is a live migration prefix and is active. - `ANNOUNCED` The public delegated prefix is active. - `DELETING` The public delegated prefix is being deprovsioned. // Check the Status enum for the list of possible values. optional string status = 181260274; @@ -17957,6 +18642,8 @@ message Quota { COMMITTED_LOCAL_SSD_TOTAL_GB = 308393480; + COMMITTED_M3_CPUS = 585985; + COMMITTED_MEMORY_OPTIMIZED_CPUS = 489057886; COMMITTED_N2A_CPUS = 40064304; @@ -17977,6 +18664,8 @@ message Quota { COMMITTED_NVIDIA_V100_GPUS = 219562; + COMMITTED_T2A_CPUS = 296378986; + COMMITTED_T2D_CPUS = 382266439; // Guest CPUs @@ -17998,6 +18687,8 @@ message Quota { FORWARDING_RULES = 432668949; + GLOBAL_EXTERNAL_MANAGED_FORWARDING_RULES = 327611949; + GLOBAL_INTERNAL_ADDRESSES = 42738332; GPUS_ALL_REGIONS = 39387177; @@ -18040,6 +18731,8 @@ message Quota { M2_CPUS = 65832517; + M3_CPUS = 94461668; + MACHINE_IMAGES = 446986640; N2A_CPUS = 265855917; @@ -18147,6 +18840,8 @@ message Quota { SUBNETWORKS = 421330469; + T2A_CPUS = 522170599; + T2D_CPUS = 71187140; TARGET_HTTPS_PROXIES = 219522506; @@ -18465,7 +19160,7 @@ message RegionInstanceGroupManagersAbandonInstancesRequest { // RegionInstanceGroupManagers.applyUpdatesToInstances message RegionInstanceGroupManagersApplyUpdatesRequest { - // Flag to update all instances instead of specified list of “instances”. If the flag is set to true then the instances may not be specified in the request. + // Flag to update all instances instead of specified list of ���instances���. If the flag is set to true then the instances may not be specified in the request. optional bool all_instances = 403676512; // The list of URLs of one or more instances for which you want to apply updates. Each URL can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. @@ -18879,7 +19574,7 @@ message RemoveRuleSecurityPolicyRequest { } -// A policy that specifies how requests intended for the route's backends are shadowed to a separate mirrored backend service. Loadbalancer does not wait for responses from the shadow service. Prior to sending traffic to the shadow service, the host / authority header is suffixed with -shadow. +// A policy that specifies how requests intended for the route's backends are shadowed to a separate mirrored backend service. The load balancer doesn't wait for responses from the shadow service. Before sending traffic to the shadow service, the host or authority header is suffixed with -shadow. message RequestMirrorPolicy { // The full or partial URL to the BackendService resource being mirrored to. optional string backend_service = 306946058; @@ -18933,6 +19628,9 @@ message Reservation { // [Output Only] Server-defined fully-qualified URL for this resource. optional string self_link = 456214797; + // Share-settings for shared-reservation + optional ShareSettings share_settings = 266668163; + // Reservation for instances with specific machine shapes. optional AllocationSpecificSKUReservation specific_reservation = 404901951; @@ -19551,6 +20249,28 @@ message ResourcePolicyWeeklyCycleDayOfWeek { } +// A request message for Instances.Resume. See the method description for details. +message ResumeInstanceRequest { + // Name of the instance resource to resume. + 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" + ]; + +} + // Represents a Route resource. A route defines a path from VM instances in the VPC network to a specific destination. This destination can be inside or outside the VPC network. For more information, read the Routes overview. message Route { // [Output Only] The type of this route, which can be one of the following values: - 'TRANSIT' for a transit route that this router learned from another Cloud Router and will readvertise to one of its BGP peers - 'SUBNET' for a route from a subnet of the VPC - 'BGP' for a route learned from a BGP peer of this router - 'STATIC' for a static route @@ -19867,12 +20587,18 @@ message RouterBgpPeer { // Check the Enable enum for the list of possible values. optional string enable = 311764355; + // Enable IPv6 traffic over BGP Peer. If not specified, it is disabled by default. + optional bool enable_ipv6 = 181467939; + // Name of the interface the BGP peer is associated with. optional string interface_name = 437854673; // IP address of the interface inside Google Cloud Platform. Only IPv4 is supported. optional string ip_address = 406272220; + // IPv6 address of the interface inside Google Cloud Platform. + optional string ipv6_nexthop_address = 27968211; + // [Output Only] The resource that configures and manages this BGP peer. - MANAGED_BY_USER is the default value and can be managed by you or other users - MANAGED_BY_ATTACHMENT is a BGP peer that is configured and managed by Cloud Interconnect, specifically by an InterconnectAttachment of type PARTNER. Google automatically creates, updates, and deletes this type of BGP peer when the PARTNER InterconnectAttachment is created, updated, or deleted. // Check the ManagementType enum for the list of possible values. optional string management_type = 173703606; @@ -19886,6 +20612,9 @@ message RouterBgpPeer { // IP address of the BGP interface outside Google Cloud Platform. Only IPv4 is supported. optional string peer_ip_address = 207735769; + // IPv6 address of the BGP interface outside Google Cloud Platform. + optional string peer_ipv6_nexthop_address = 491486608; + // URI of the VM instance that is used as third-party router appliances such as Next Gen Firewalls, Virtual Routers, or Router Appliances. The VM instance must be located in zones contained in the same region as this Cloud Router. The VM instance is the peer side of the BGP session. optional string router_appliance_instance = 468312989; @@ -20019,6 +20748,9 @@ message RouterNat { // 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; + // Enable Dynamic Port Allocation. If not specified, it is disabled by default. If set to true, - Dynamic Port Allocation will be enabled on this NAT config. - enableEndpointIndependentMapping cannot be set to true. - If minPorts is set, minPortsPerVm must be set to a power of two greater than or equal to 32. If minPortsPerVm is not set, a minimum of 32 ports will be allocated to a VM from this NAT config. + optional bool enable_dynamic_port_allocation = 532106402; + optional bool enable_endpoint_independent_mapping = 259441819; // Timeout (in seconds) for ICMP connections. Defaults to 30s if not set. @@ -20027,6 +20759,9 @@ message RouterNat { // Configure logging on this NAT. optional RouterNatLogConfig log_config = 351299741; + // Maximum number of ports allocated to a VM from this NAT config when Dynamic Port Allocation is enabled. If Dynamic Port Allocation is not enabled, this field has no effect. If Dynamic Port Allocation is enabled, and this field is set, it must be set to a power of two greater than minPortsPerVm, or 64 if minPortsPerVm is not set. If Dynamic Port Allocation is enabled and this field is not set, a maximum of 65536 ports will be allocated to a VM from this NAT config. + optional int32 max_ports_per_vm = 250062049; + // Minimum number of ports allocated to a VM from this NAT config. If not set, a default number of ports is allocated to a VM. This is rounded up to the nearest power of 2. For example, if the value of this field is 50, at least 64 ports are allocated to a VM. optional int32 min_ports_per_vm = 186193587; @@ -20099,7 +20834,7 @@ message RouterNatRule { // An optional description of this rule. optional string description = 422937596; - // CEL expression that specifies the match condition that egress traffic from a VM is evaluated against. If it evaluates to true, the corresponding `action` is enforced. The following examples are valid match expressions for public NAT: "inIpRange(destination.ip, '1.1.0.0/16') || inIpRange(destination.ip, '2.2.0.0/16')" "destination.ip == '1.1.0.1' || destination.ip == '8.8.8.8'" The following example is a valid match expression for private NAT: "nexthop.hub == '/projects/my-project/global/hub/hub-1'" + // CEL expression that specifies the match condition that egress traffic from a VM is evaluated against. If it evaluates to true, the corresponding `action` is enforced. The following examples are valid match expressions for public NAT: "inIpRange(destination.ip, '1.1.0.0/16') || inIpRange(destination.ip, '2.2.0.0/16')" "destination.ip == '1.1.0.1' || destination.ip == '8.8.8.8'" The following example is a valid match expression for private NAT: "nexthop.hub == 'https://networkconnectivity.googleapis.com/v1alpha1/projects/my-project/global/hub/hub-1'" optional string match = 103668165; // An integer uniquely identifying a rule in the list. The rule number must be a positive value between 0 and 65000, and must be unique among rules within a NAT. @@ -20182,6 +20917,8 @@ message RouterStatusBgpPeerStatus { // Routes that were advertised to the remote BGP peer repeated Route advertised_routes = 333393068; + optional BfdStatus bfd_status = 395631729; + // IP address of the local BGP interface. optional string ip_address = 406272220; @@ -20393,6 +21130,136 @@ message SSLHealthCheck { } +// DEPRECATED: Please use compute#savedDisk instead. An instance-attached disk resource. +message SavedAttachedDisk { + // Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. + enum Interface { + // A value indicating that the enum field is not set. + UNDEFINED_INTERFACE = 0; + + NVME = 2408800; + + SCSI = 2539686; + + } + + // The mode in which this disk is attached to the source instance, either READ_WRITE or READ_ONLY. + enum Mode { + // A value indicating that the enum field is not set. + UNDEFINED_MODE = 0; + + // Attaches this disk in read-only mode. Multiple virtual machines can use a disk in read-only mode at a time. + READ_ONLY = 91950261; + + // *[Default]* Attaches this disk in read-write mode. Only one virtual machine at a time can be attached to a disk in read-write mode. + READ_WRITE = 173607894; + + } + + // [Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date. + enum StorageBytesStatus { + // A value indicating that the enum field is not set. + UNDEFINED_STORAGE_BYTES_STATUS = 0; + + UPDATING = 494614342; + + UP_TO_DATE = 101306702; + + } + + // Specifies the type of the attached disk, either SCRATCH or PERSISTENT. + enum Type { + // A value indicating that the enum field is not set. + UNDEFINED_TYPE = 0; + + PERSISTENT = 460683927; + + SCRATCH = 496778970; + + } + + // Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance). + optional bool auto_delete = 464761403; + + // Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem. + optional bool boot = 3029746; + + // Specifies the name of the disk attached to the source instance. + optional string device_name = 67541716; + + // The encryption key for the disk. + optional CustomerEncryptionKey disk_encryption_key = 271660677; + + // The size of the disk in base-2 GB. + optional int64 disk_size_gb = 316263735; + + // [Output Only] URL of the disk type resource. For example: projects/project /zones/zone/diskTypes/pd-standard or pd-ssd + optional string disk_type = 93009052; + + // 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; + + // Specifies zero-based index of the disk that is attached to the source instance. + optional int32 index = 100346066; + + // Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. + // Check the Interface enum for the list of possible values. + optional string interface = 502623545; + + // [Output Only] Type of the resource. Always compute#attachedDisk for attached disks. + optional string kind = 3292052; + + // [Output Only] Any valid publicly visible licenses. + repeated string licenses = 337642578; + + // The mode in which this disk is attached to the source instance, either READ_WRITE or READ_ONLY. + // Check the Mode enum for the list of possible values. + optional string mode = 3357091; + + // Specifies a URL of the disk attached to the source instance. + optional string source = 177235995; + + // [Output Only] A size of the storage used by the disk's snapshot by this machine image. + optional int64 storage_bytes = 424631719; + + // [Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date. + // Check the StorageBytesStatus enum for the list of possible values. + optional string storage_bytes_status = 490739082; + + // Specifies the type of the attached disk, either SCRATCH or PERSISTENT. + // Check the Type enum for the list of possible values. + optional string type = 3575610; + +} + +// An instance-attached disk resource. +message SavedDisk { + // [Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date. + enum StorageBytesStatus { + // A value indicating that the enum field is not set. + UNDEFINED_STORAGE_BYTES_STATUS = 0; + + UPDATING = 494614342; + + UP_TO_DATE = 101306702; + + } + + // [Output Only] Type of the resource. Always compute#savedDisk for attached disks. + optional string kind = 3292052; + + // Specifies a URL of the disk attached to the source instance. + optional string source_disk = 451753793; + + // [Output Only] Size of the individual disk snapshot used by this machine image. + optional int64 storage_bytes = 424631719; + + // [Output Only] An indicator whether storageBytes is in a stable state or it is being adjusted as a result of shared storage reallocation. This status can either be UPDATING, meaning the size of the snapshot is being updated, or UP_TO_DATE, meaning the size of the snapshot is up-to-date. + // Check the StorageBytesStatus enum for the list of possible values. + optional string storage_bytes_status = 490739082; + +} + // message ScalingScheduleStatus { // [Output Only] The current state of a scaling schedule. @@ -20428,7 +21295,23 @@ message ScalingScheduleStatus { // Sets the scheduling options for an Instance. NextID: 21 message Scheduling { - // Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. For preemptible instances, the default and only possible behavior is TERMINATE. For more information, see Setting Instance Scheduling Options. + // Specifies the termination action for the instance. + enum InstanceTerminationAction { + // A value indicating that the enum field is not set. + UNDEFINED_INSTANCE_TERMINATION_ACTION = 0; + + // Delete the VM. + DELETE = 402225579; + + // Default value. This value is unused. + INSTANCE_TERMINATION_ACTION_UNSPECIFIED = 92954803; + + // Stop the VM without storing in-memory content. default action. + STOP = 2555906; + + } + + // Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. For preemptible instances, the default and only possible behavior is TERMINATE. For more information, see Set VM availability policies. enum OnHostMaintenance { // A value indicating that the enum field is not set. UNDEFINED_ON_HOST_MAINTENANCE = 0; @@ -20441,9 +21324,26 @@ message Scheduling { } + // Specifies the provisioning model of the instance. + enum ProvisioningModel { + // A value indicating that the enum field is not set. + UNDEFINED_PROVISIONING_MODEL = 0; + + // Heavily discounted, no guaranteed runtime. + SPOT = 2552066; + + // Standard provisioning with user controlled runtime, no discounts. + STANDARD = 484642493; + + } + // Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user). You can only set the automatic restart option for standard instances. Preemptible instances cannot be automatically restarted. By default, this is set to true so an instance is automatically restarted if it is terminated by Compute Engine. optional bool automatic_restart = 350821371; + // Specifies the termination action for the instance. + // Check the InstanceTerminationAction enum for the list of possible values. + optional string instance_termination_action = 107380667; + // An opaque location hint used to place the instance close to other resources. This field is for use by internal tools that use the public API. optional string location_hint = 350519505; @@ -20453,13 +21353,17 @@ message Scheduling { // A set of node affinity and anti-affinity configurations. Refer to Configuring node affinity for more information. Overrides reservationAffinity. repeated SchedulingNodeAffinity node_affinities = 461799971; - // Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. For preemptible instances, the default and only possible behavior is TERMINATE. For more information, see Setting Instance Scheduling Options. + // Defines the maintenance behavior for this instance. For standard instances, the default behavior is MIGRATE. For preemptible instances, the default and only possible behavior is TERMINATE. For more information, see Set VM availability policies. // Check the OnHostMaintenance enum for the list of possible values. optional string on_host_maintenance = 64616796; // Defines whether the instance is preemptible. This can only be set during instance creation or while the instance is stopped and therefore, in a `TERMINATED` state. See Instance Life Cycle for more information on the possible instance states. optional bool preemptible = 324203169; + // Specifies the provisioning model of the instance. + // Check the ProvisioningModel enum for the list of possible values. + optional string provisioning_model = 494423; + } // Node Affinity: the configuration of desired nodes onto which this Instance could be scheduled. @@ -20522,6 +21426,17 @@ message SecurityPoliciesWafConfig { // Represents a Google Cloud Armor security policy resource. Only external backend services that use load balancers can reference a security policy. For more information, see Google Cloud Armor security policy overview. message SecurityPolicy { + // The type indicates the intended use of the security policy. CLOUD_ARMOR - Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. CLOUD_ARMOR_EDGE - Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. + enum Type { + // A value indicating that the enum field is not set. + UNDEFINED_TYPE = 0; + + CLOUD_ARMOR = 260640373; + + CLOUD_ARMOR_EDGE = 250728775; + + } + optional SecurityPolicyAdaptiveProtectionConfig adaptive_protection_config = 150240735; optional SecurityPolicyAdvancedOptionsConfig advanced_options_config = 449276352; @@ -20544,12 +21459,18 @@ message SecurityPolicy { // 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; + optional SecurityPolicyRecaptchaOptionsConfig recaptcha_options_config = 519006811; + // A list of rules that belong to this policy. There must always be a default rule (rule with priority 2147483647 and match "*"). If no rules are provided when creating a security policy, a default rule with action "allow" will be added. repeated SecurityPolicyRule rules = 108873975; // [Output Only] Server-defined URL for the resource. optional string self_link = 456214797; + // The type indicates the intended use of the security policy. CLOUD_ARMOR - Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. CLOUD_ARMOR_EDGE - Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. + // Check the Type enum for the list of possible values. + optional string type = 3575610; + } // Configuration options for Cloud Armor Adaptive Protection (CAAP). @@ -20634,6 +21555,13 @@ message SecurityPolicyList { } +// +message SecurityPolicyRecaptchaOptionsConfig { + // An optional field to supply a reCAPTCHA site key to be used for all the rules using the redirect action with the type of GOOGLE_RECAPTCHA under the security policy. The specified site key needs to be created from the reCAPTCHA API. The user is responsible for the validity of the specified site key. If not specified, a Google-managed site key is used. + optional string redirect_site_key = 447677034; + +} + // message SecurityPolicyReference { optional string security_policy = 171082513; @@ -20642,12 +21570,15 @@ message SecurityPolicyReference { // Represents a rule that describes one or more match conditions along with the action to be taken when traffic matches this condition (allow or deny). message SecurityPolicyRule { - // The Action to perform when the client connection triggers the rule. Can currently be either "allow" or "deny()" where valid values for status are 403, 404, and 502. + // The Action to perform when the rule is matched. The following are the valid actions: - allow: allow access to target. - deny(): deny access to target, returns the HTTP response code specified (valid values are 403, 404, and 502). - rate_based_ban: limit client traffic to the configured threshold and ban the client if the traffic exceeds the threshold. Configure parameters for this action in RateLimitOptions. Requires rate_limit_options to be set. - redirect: redirect to a different target. This can either be an internal reCAPTCHA redirect, or an external URL-based redirect via a 302 response. Parameters for this action can be configured via redirectOptions. - throttle: limit client traffic to the configured threshold. Configure parameters for this action in rateLimitOptions. Requires rate_limit_options to be set for this. optional string action = 187661878; // An optional description of this resource. Provide this property when you create the resource. optional string description = 422937596; + // Optional, additional actions that are performed on headers. + optional SecurityPolicyRuleHttpHeaderAction header_action = 328077352; + // [Output only] Type of the resource. Always compute#securityPolicyRule for security policy rules optional string kind = 3292052; @@ -20660,6 +21591,29 @@ message SecurityPolicyRule { // An integer indicating the priority of a rule in the list. The priority must be a positive value between 0 and 2147483647. Rules are evaluated from highest to lowest priority where 0 is the highest priority and 2147483647 is the lowest priority. optional int32 priority = 445151652; + // Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions. + optional SecurityPolicyRuleRateLimitOptions rate_limit_options = 67544315; + + // Parameters defining the redirect action. Cannot be specified for any other actions. + optional SecurityPolicyRuleRedirectOptions redirect_options = 163285307; + +} + +// +message SecurityPolicyRuleHttpHeaderAction { + // The list of request headers to add or overwrite if they're already present. + repeated SecurityPolicyRuleHttpHeaderActionHttpHeaderOption request_headers_to_adds = 87987661; + +} + +// +message SecurityPolicyRuleHttpHeaderActionHttpHeaderOption { + // The name of the header to set. + optional string header_name = 110223613; + + // The value to set the named header to. + optional string header_value = 203094335; + } // Represents a match condition that incoming traffic is evaluated against. Exactly one field must be specified. @@ -20693,6 +21647,84 @@ message SecurityPolicyRuleMatcherConfig { } +// +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 this field 'enforce_on_key' 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 "enforce_on_key_name". 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 type defaults to ALL. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforce_on_key_name". 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. + enum EnforceOnKey { + // A value indicating that the enum field is not set. + UNDEFINED_ENFORCE_ON_KEY = 0; + + ALL = 64897; + + HTTP_COOKIE = 494981627; + + HTTP_HEADER = 91597348; + + IP = 2343; + + XFF_IP = 438707118; + + } + + // Can only be specified if the action for the rule is "rate_based_ban". If specified, determines the time (in seconds) the traffic will continue to be banned by the rate limit after the rate falls below the threshold. + optional int32 ban_duration_sec = 42896726; + + // Can only be specified if the action for the rule is "rate_based_ban". If specified, the key will be banned for the configured 'ban_duration_sec' when the number of requests that exceed the 'rate_limit_threshold' also exceed this 'ban_threshold'. + optional SecurityPolicyRuleRateLimitOptionsThreshold ban_threshold = 501208123; + + // 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 this field 'enforce_on_key' 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 "enforce_on_key_name". 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 type defaults to ALL. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforce_on_key_name". 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. + // Check the EnforceOnKey enum for the list of possible values. + optional string enforce_on_key = 416648956; + + // 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; + + // Action to take for requests that are above the configured rate limit threshold, to either deny with a specified HTTP response code, or redirect to a different endpoint. Valid options are "deny()" where valid values for status are 403, 404, 429, and 502, and "redirect" where the redirect parameters come from exceed_redirect_options below. + optional string exceed_action = 167159073; + + // Parameters defining the redirect action that is used as the exceed action. Cannot be specified if the exceed action is not redirect. + optional SecurityPolicyRuleRedirectOptions exceed_redirect_options = 473646694; + + // Threshold at which to begin ratelimiting. + optional SecurityPolicyRuleRateLimitOptionsThreshold rate_limit_threshold = 315875208; + +} + +// +message SecurityPolicyRuleRateLimitOptionsThreshold { + // Number of HTTP(S) requests for calculating the threshold. + optional int32 count = 94851343; + + // Interval over which the threshold is computed. + optional int32 interval_sec = 41084375; + +} + +// +message SecurityPolicyRuleRedirectOptions { + // Type of the redirect action. + enum Type { + // A value indicating that the enum field is not set. + UNDEFINED_TYPE = 0; + + EXTERNAL_302 = 395733761; + + GOOGLE_RECAPTCHA = 518803009; + + } + + // Target for the redirect action. This is required if the type is EXTERNAL_302 and cannot be specified for GOOGLE_RECAPTCHA. + optional string target = 192835985; + + // Type of the redirect action. + // Check the Type enum for the list of possible values. + optional string type = 3575610; + +} + // The authentication and authorization settings for a BackendService. message SecuritySettings { // Optional. A URL referring to a networksecurity.ClientTlsPolicy resource that describes how clients should authenticate with this service's backends. clientTlsPolicy only applies to a global BackendService with the loadBalancingScheme set to INTERNAL_SELF_MANAGED. If left blank, communications are not encrypted. Note: This field currently has no impact. @@ -20806,6 +21838,9 @@ message ServiceAttachment { // An optional description of this resource. Provide this property when you create the resource. optional string description = 422937596; + // If specified, the domain name will be used during the integration between the PSC connected endpoints and the Cloud DNS. For example, this is a valid domain name: "p.mycompany.com.". Current max number of domain names supported is 1. + repeated string domain_names = 6450189; + // If true, enable the proxy protocol which is for supplying client TCP/IP address data in TCP connections that traverse proxies on their way to destination servers. optional bool enable_proxy_protocol = 363791237; @@ -21086,11 +22121,49 @@ message SetDiskAutoDeleteInstanceRequest { // 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" - ]; + // The name of the zone for this request. + string zone = 3744684 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "zone" + ]; + +} + +// 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. + string backend_bucket = 91714037 [(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 body resource for this request + SecurityPolicyReference security_policy_reference_resource = 204135024 [(google.api.field_behavior) = REQUIRED]; + +} + +// A request message for BackendServices.SetEdgeSecurityPolicy. See the method description for details. +message SetEdgeSecurityPolicyBackendServiceRequest { + // Name of the BackendService resource to which the edge security policy should be set. The name should conform to RFC1035. + string backend_service = 306946058 [(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 body resource for this request + SecurityPolicyReference security_policy_reference_resource = 204135024 [(google.api.field_behavior) = REQUIRED]; } @@ -21175,6 +22248,19 @@ message SetIamPolicyLicenseRequest { } +// A request message for MachineImages.SetIamPolicy. See the method description for details. +message SetIamPolicyMachineImageRequest { + // The body resource for this request + GlobalSetPolicyRequest global_set_policy_request_resource = 337048498 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Name or id of the resource for this request. + string resource = 195806222 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for NodeGroups.SetIamPolicy. See the method description for details. message SetIamPolicyNodeGroupRequest { // Project ID for this request. @@ -21907,7 +22993,7 @@ message SetSslCertificatesRegionTargetHttpsProxyRequest { // The body resource for this request RegionTargetHttpsProxiesSetSslCertificatesRequest region_target_https_proxies_set_ssl_certificates_request_resource = 390693383 [(google.api.field_behavior) = REQUIRED]; - // 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). end_interface: MixerMutationRequestBuilder + // 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; // Name of the TargetHttpsProxy resource to set an SslCertificates resource for. @@ -22149,7 +23235,7 @@ message SetUrlMapRegionTargetHttpsProxyRequest { (google.cloud.operation_request_field) = "region" ]; - // 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). end_interface: MixerMutationRequestBuilder + // 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; // Name of the TargetHttpsProxy to set a URL map for. @@ -22214,6 +23300,40 @@ message SetUsageExportBucketProjectRequest { } +// The share setting for reservations and sole tenancy node groups. +message ShareSettings { + // Type of sharing for this shared-reservation + enum ShareType { + // A value indicating that the enum field is not set. + UNDEFINED_SHARE_TYPE = 0; + + // Default value. + LOCAL = 72607563; + + // Default value. This value is unused. + SHARE_TYPE_UNSPECIFIED = 494771730; + + // Shared-reservation is open to specific projects + SPECIFIC_PROJECTS = 347838695; + + } + + // A map of project id and project config. This is only valid when share_type's value is SPECIFIC_PROJECTS. + map project_map = 134212406; + + // Type of sharing for this shared-reservation + // Check the ShareType enum for the list of possible values. + optional string share_type = 359533466; + +} + +// Config for each project in the share settings. +message ShareSettingsProjectConfig { + // The project ID, should be same as the key of this project config in the parent map. + optional string project_id = 177513473; + +} + // A set of Shielded Instance options. message ShieldedInstanceConfig { // Defines whether the instance has integrity monitoring enabled. Enabled by default. @@ -22419,6 +23539,16 @@ message SnapshotList { } +// +message SourceDiskEncryptionKey { + // The customer-supplied encryption key of the source disk. Required if the source disk is protected by a customer-supplied encryption key. + optional CustomerEncryptionKey disk_encryption_key = 271660677; + + // URL of the disk attached to the source instance. This can be a full or valid partial URL. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - projects/project/zones/zone/disks/disk - zones/zone/disks/disk + optional string source_disk = 451753793; + +} + // A specification of the parameters to use when creating the instance template from a source instance. message SourceInstanceParams { // Attached disks configuration. If not provided, defaults are applied: For boot disk and any other R/W disks, new custom images will be created from each disk. For read-only disks, they will be attached in read-only mode. Local SSD disks will be created as blank volumes. @@ -22426,6 +23556,49 @@ message SourceInstanceParams { } +// DEPRECATED: Please use compute#instanceProperties instead. New properties will not be added to this field. +message SourceInstanceProperties { + // Enables instances created based on this machine image to send packets with source IP addresses other than their own and receive packets with destination IP addresses other than their own. If these instances will be used as an IP gateway or it will be set as the next-hop in a Route resource, specify true. If unsure, leave this set to false. See the Enable IP forwarding documentation for more information. + optional bool can_ip_forward = 467731324; + + // Whether the instance created from this machine image should be protected against deletion. + optional bool deletion_protection = 458014698; + + // An optional text description for the instances that are created from this machine image. + optional string description = 422937596; + + // An array of disks that are associated with the instances that are created from this machine image. + repeated SavedAttachedDisk disks = 95594102; + + // A list of guest accelerator cards' type and count to use for instances created from this machine image. + repeated AcceleratorConfig guest_accelerators = 463595119; + + // Labels to apply to instances that are created from this machine image. + map labels = 500195327; + + // The machine type to use for instances that are created from this machine image. + optional string machine_type = 227711026; + + // The metadata key/value pairs to assign to instances that are created from this machine image. These pairs can consist of custom metadata or predefined keys. See Project and instance metadata for more information. + optional Metadata metadata = 86866735; + + // Minimum cpu/platform to be used by instances created from this machine image. The instance may be scheduled on the specified or newer cpu/platform. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: "Intel Haswell" or minCpuPlatform: "Intel Sandy Bridge". For more information, read Specifying a Minimum CPU Platform. + optional string min_cpu_platform = 242912759; + + // An array of network access configurations for this interface. + repeated NetworkInterface network_interfaces = 52735243; + + // Specifies the scheduling options for the instances that are created from this machine image. + optional Scheduling scheduling = 386688404; + + // A list of service accounts with specified scopes. Access tokens for these service accounts are available to the instances that are created from this machine image. Use metadata queries to obtain the access tokens for these instances. + repeated ServiceAccount service_accounts = 277537328; + + // A list of tags to apply to the instances that are created from this machine image. The tags identify valid sources or targets for network firewalls. The setTags method can modify this list of tags. Each tag within the list must comply with RFC1035. + optional Tags tags = 3552281; + +} + // Represents an SSL Certificate resource. Google Compute Engine has two SSL Certificate resources: * [Global](/compute/docs/reference/rest/v1/sslCertificates) * [Regional](/compute/docs/reference/rest/v1/regionSslCertificates) The sslCertificates are used by: - external HTTPS load balancers - SSL proxy load balancers The regionSslCertificates are used by internal HTTPS load balancers. Optionally, certificate file contents that you upload can contain a set of up to five PEM-encoded certificates. The API call creates an object (sslCertificate) that holds this data. You can use SSL keys and certificates to secure connections to a load balancer. For more information, read Creating and using SSL certificates, SSL certificates quotas and limits, and Troubleshooting SSL certificates. message SslCertificate { // (Optional) Specifies the type of SSL certificate, either "SELF_MANAGED" or "MANAGED". If not specified, the certificate is self-managed and the fields certificate and private_key are used. @@ -22854,6 +24027,9 @@ message Subnetwork { // Subnetworks created for Private Service Connect in the producer network. PRIVATE_SERVICE_CONNECT = 48134724; + // Subnetwork used for Regional Internal/External HTTP(S) Load Balancing. + REGIONAL_MANAGED_PROXY = 153049966; + } // The role of subnetwork. Currently, this field is only used when purpose = INTERNAL_HTTPS_LOAD_BALANCER. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Internal HTTP(S) Load Balancing. 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. @@ -22903,7 +24079,7 @@ message Subnetwork { // An optional description of this resource. Provide this property when you create the resource. This field can be set only at resource creation time. optional string description = 422937596; - // Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is to disable flow logging. This field isn't supported with the purpose field set to INTERNAL_HTTPS_LOAD_BALANCER. + // Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is determined by the org policy, if there is no org policy specified, then it will default to disabled. This field isn't supported with the purpose field set to INTERNAL_HTTPS_LOAD_BALANCER. optional bool enable_flow_logs = 151544420; // [Output Only] The range of external IPv6 addresses that are owned by this subnetwork. @@ -22925,7 +24101,7 @@ message Subnetwork { // Check the Ipv6AccessType enum for the list of possible values. optional string ipv6_access_type = 504658653; - // [Output Only] The range of internal IPv6 addresses that are owned by this subnetwork. + // [Output Only] The range of internal IPv6 addresses that are owned by this subnetwork. Note this will be for private google access only eventually. optional string ipv6_cidr_range = 273141258; // [Output Only] Type of the resource. Always compute#subnetwork for Subnetwork resources. @@ -23059,13 +24235,13 @@ message SubnetworkLogConfig { // Check the AggregationInterval enum for the list of possible values. optional string aggregation_interval = 174919042; - // Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is to disable flow logging. + // Whether to enable flow logging for this subnetwork. If this field is not explicitly set, it will not appear in get listings. If not set the default behavior is determined by the org policy, if there is no org policy specified, then it will default to disabled. optional bool enable = 311764355; // Can only be specified if VPC flow logs for this subnetwork is enabled. Export filter used to define which VPC flow logs should be logged. optional string filter_expr = 183374428; - // Can only be specified if VPC flow logging for this subnetwork is enabled. The value of the field must be in [0, 1]. Set the sampling rate of VPC flow logs within the subnetwork where 1.0 means all collected logs are reported and 0.0 means no logs are reported. Default is 0.5, which means half of all collected logs are reported. + // Can only be specified if VPC flow logging for this subnetwork is enabled. The value of the field must be in [0, 1]. Set the sampling rate of VPC flow logs within the subnetwork where 1.0 means all collected logs are reported and 0.0 means no logs are reported. Default is 0.5 unless otherwise specified by the org policy, which means half of all collected logs are reported. optional float flow_sampling = 530150360; // Can only be specified if VPC flow logs for this subnetwork is enabled. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default is EXCLUDE_ALL_METADATA. @@ -23131,6 +24307,28 @@ message Subsetting { } +// A request message for Instances.Suspend. See the method description for details. +message SuspendInstanceRequest { + // Name of the instance resource to suspend. + 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" + ]; + +} + // A request message for Networks.SwitchToCustomMode. See the method description for details. message SwitchToCustomModeNetworkRequest { // Name of the network to be updated. @@ -24084,7 +25282,7 @@ message TargetVpnGatewaysScopedList { // message TestFailure { - // The actual output URL evaluated by load balancer containing the scheme, host, path and query parameters. + // The actual output URL evaluated by a load balancer containing the scheme, host, path and query parameters. optional string actual_output_url = 287075458; // Actual HTTP status code for rule with `urlRedirect` calculated by load balancer @@ -24093,7 +25291,7 @@ message TestFailure { // BackendService or BackendBucket returned by load balancer. optional string actual_service = 440379652; - // The expected output URL evaluated by load balancer containing the scheme, host, path and query parameters. + // The expected output URL evaluated by a load balancer containing the scheme, host, path and query parameters. optional string expected_output_url = 433967384; // Expected HTTP status code for rule with `urlRedirect` calculated by load balancer @@ -24220,6 +25418,19 @@ message TestIamPermissionsLicenseRequest { } +// A request message for MachineImages.TestIamPermissions. See the method description for details. +message TestIamPermissionsMachineImageRequest { + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Name or id of the resource for this request. + string resource = 195806222 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + TestPermissionsRequest test_permissions_request_resource = 439214758 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for NetworkEndpointGroups.TestIamPermissions. See the method description for details. message TestIamPermissionsNetworkEndpointGroupRequest { // Project ID for this request. @@ -24747,6 +25958,36 @@ message UpdateRegionBackendServiceRequest { } +// A request message for RegionCommitments.Update. See the method description for details. +message UpdateRegionCommitmentRequest { + // Name of the commitment for which auto renew is being updated. + string commitment = 482134805 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + Commitment commitment_resource = 244240888 [(google.api.field_behavior) = REQUIRED]; + + optional string paths = 106438894; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // Name of the region for this request. + string region = 138946292 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "region" + ]; + + // 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; + + // update_mask indicates fields to be updated as part of this request. + optional string update_mask = 500079778; + +} + // A request message for RegionHealthChecks.Update. See the method description for details. message UpdateRegionHealthCheckRequest { // Name of the HealthCheck resource to update. @@ -24797,6 +26038,36 @@ message UpdateRegionUrlMapRequest { } +// A request message for Reservations.Update. See the method description for details. +message UpdateReservationRequest { + optional string paths = 106438894; + + // 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; + + // Name of the reservation to update. + string reservation = 47530956 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + Reservation reservation_resource = 285030177 [(google.api.field_behavior) = REQUIRED]; + + // Update_mask indicates fields to be updated as part of this request. + optional string update_mask = 500079778; + + // Name of the zone for this request. + string zone = 3744684 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "zone" + ]; + +} + // A request message for Routers.Update. See the method description for details. message UpdateRouterRequest { // Project ID for this request. @@ -24866,30 +26137,30 @@ message UpdateUrlMapRequest { } -// Represents a URL Map resource. Google Compute Engine has two URL Map resources: * [Global](/compute/docs/reference/rest/v1/urlMaps) * [Regional](/compute/docs/reference/rest/v1/regionUrlMaps) A URL map resource is a component of certain types of GCP load balancers and Traffic Director. * urlMaps are used by external HTTP(S) load balancers and Traffic Director. * regionUrlMaps are used by internal HTTP(S) load balancers. For a list of supported URL map features by load balancer type, see the Load balancing features: Routing and traffic management table. For a list of supported URL map features for Traffic Director, see the Traffic Director features: Routing and traffic management table. This resource defines mappings from host names and URL paths to either a backend service or a backend bucket. To use the global urlMaps resource, the backend service must have a loadBalancingScheme of either EXTERNAL or INTERNAL_SELF_MANAGED. To use the regionUrlMaps resource, the backend service must have a loadBalancingScheme of INTERNAL_MANAGED. For more information, read URL Map Concepts. +// Represents a URL Map resource. Compute Engine has two URL Map resources: * [Global](/compute/docs/reference/rest/v1/urlMaps) * [Regional](/compute/docs/reference/rest/v1/regionUrlMaps) A URL map resource is a component of certain types of cloud load balancers and Traffic Director: * urlMaps are used by external HTTP(S) load balancers and Traffic Director. * regionUrlMaps are used by internal HTTP(S) load balancers. For a list of supported URL map features by the load balancer type, see the Load balancing features: Routing and traffic management table. For a list of supported URL map features for Traffic Director, see the Traffic Director features: Routing and traffic management table. This resource defines mappings from hostnames and URL paths to either a backend service or a backend bucket. To use the global urlMaps resource, the backend service must have a loadBalancingScheme of either EXTERNAL or INTERNAL_SELF_MANAGED. To use the regionUrlMaps resource, the backend service must have a loadBalancingScheme of INTERNAL_MANAGED. For more information, read URL Map Concepts. message UrlMap { // [Output Only] Creation timestamp in RFC3339 text format. optional string creation_timestamp = 30525366; - // defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions like URL rewrites, header transformations, etc. prior to forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. Only one of defaultRouteAction or defaultUrlRedirect must be set. UrlMaps for external HTTP(S) load balancers support only the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to target gRPC proxy that has validateForProxyless field set to true. + // defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. Only one of defaultRouteAction or defaultUrlRedirect must be set. UrlMaps for external HTTP(S) load balancers support only the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true. optional HttpRouteAction default_route_action = 378919466; - // The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is additionally specified, advanced routing actions like URL Rewrites, etc. take effect prior to sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of defaultService, defaultUrlRedirect or defaultRouteAction.weightedBackendService must be set. defaultService has no effect when the URL map is bound to target gRPC proxy that has validateForProxyless field set to true. + // The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is also specified, advanced routing actions, such as URL rewrites, take effect before sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of defaultService, defaultUrlRedirect , or defaultRouteAction.weightedBackendService must be set. defaultService has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true. optional string default_service = 370242231; - // When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Not supported when the URL map is bound to target gRPC proxy. + // When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Not supported when the URL map is bound to a target gRPC proxy. optional HttpRedirectAction default_url_redirect = 359503338; // An optional description of this resource. Provide this property when you create the resource. optional string description = 422937596; - // 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 UrlMap. An up-to-date fingerprint must be provided in order to update the UrlMap, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a UrlMap. + // Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field is ignored when inserting a UrlMap. An up-to-date fingerprint must be provided in order to update the UrlMap, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a UrlMap. optional string fingerprint = 234678500; - // Specifies changes to request and response headers that need to take effect for the selected backendService. The headerAction specified here take effect after headerAction specified under pathMatcher. Note that headerAction is not supported for Loadbalancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to target gRPC proxy that has validateForProxyless field set to true. + // Specifies changes to request and response headers that need to take effect for the selected backendService. The headerAction specified here take effect after headerAction specified under pathMatcher. headerAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true. optional HttpHeaderAction header_action = 328077352; - // The list of HostRules to use against the URL. + // The list of host rules to use against the URL. repeated HostRule host_rules = 311804832; // [Output Only] The unique identifier for the resource. This identifier is defined by the server. @@ -24910,7 +26181,7 @@ message UrlMap { // [Output Only] Server-defined URL for the resource. optional string self_link = 456214797; - // The list of expected URL mapping tests. Request to update this UrlMap will succeed only if all of the test cases pass. You can specify a maximum of 100 tests per UrlMap. Not supported when the URL map is bound to target gRPC proxy that has validateForProxyless field set to true. + // The list of expected URL mapping tests. Request to update the UrlMap succeeds only if all test cases pass. You can specify a maximum of 100 tests per UrlMap. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true. repeated UrlMapTest tests = 110251553; } @@ -24948,7 +26219,7 @@ message UrlMapTest { // Description of this test case. optional string description = 422937596; - // The expected output URL evaluated by load balancer containing the scheme, host, path and query parameters. For rules that forward requests to backends, the test passes only when expectedOutputUrl matches the request forwarded by load balancer to backends. For rules with urlRewrite, the test verifies that the forwarded request matches hostRewrite and pathPrefixRewrite in the urlRewrite action. When service is specified, expectedOutputUrl`s scheme is ignored. For rules with urlRedirect, the test passes only if expectedOutputUrl matches the URL in the load balancer's redirect response. If urlRedirect specifies https_redirect, the test passes only if the scheme in expectedOutputUrl is also set to https. If urlRedirect specifies strip_query, the test passes only if expectedOutputUrl does not contain any query parameters. expectedOutputUrl is optional when service is specified. + // The expected output URL evaluated by the load balancer containing the scheme, host, path and query parameters. For rules that forward requests to backends, the test passes only when expectedOutputUrl matches the request forwarded by the load balancer to backends. For rules with urlRewrite, the test verifies that the forwarded request matches hostRewrite and pathPrefixRewrite in the urlRewrite action. When service is specified, expectedOutputUrl`s scheme is ignored. For rules with urlRedirect, the test passes only if expectedOutputUrl matches the URL in the load balancer's redirect response. If urlRedirect specifies https_redirect, the test passes only if the scheme in expectedOutputUrl is also set to HTTPS. If urlRedirect specifies strip_query, the test passes only if expectedOutputUrl does not contain any query parameters. expectedOutputUrl is optional when service is specified. optional string expected_output_url = 433967384; // For rules with urlRedirect, the test passes only if expectedRedirectResponseCode matches the HTTP status code in load balancer's redirect response. expectedRedirectResponseCode cannot be set when service is set. @@ -24963,7 +26234,7 @@ message UrlMapTest { // Path portion of the URL. optional string path = 3433509; - // Expected BackendService or BackendBucket resource the given URL should be mapped to. service cannot be set if expectedRedirectResponseCode is set. + // Expected BackendService or BackendBucket resource the given URL should be mapped to. The service field cannot be set if expectedRedirectResponseCode is set. optional string service = 373540533; } @@ -25042,10 +26313,10 @@ message UrlMapsValidateResponse { // The spec for modifying the path before sending the request to the matched backend service. message UrlRewrite { - // Prior to forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite. The value must be between 1 and 255 characters. + // Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite. The value must be from 1 to 255 characters. optional string host_rewrite = 159819253; - // Prior to forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite. The value must be between 1 and 1024 characters. + // Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite. The value must be from 1 to 1024 characters. optional string path_prefix_rewrite = 41186361; } @@ -25192,6 +26463,19 @@ message VmEndpointNatMappingsList { // Represents a HA VPN gateway. HA VPN is a high-availability (HA) Cloud VPN solution that lets you securely connect your on-premises network to your Google Cloud Virtual Private Cloud network through an IPsec VPN connection in a single region. For more information about Cloud HA VPN solutions, see Cloud VPN topologies . message VpnGateway { + // The stack type for this VPN gateway to identify the IP protocols that are enabled. If not specified, IPV4_ONLY will be used. + enum StackType { + // A value indicating that the enum field is not set. + UNDEFINED_STACK_TYPE = 0; + + // Enable VPN gateway with both IPv4 and IPv6 protocols. + IPV4_IPV6 = 22197249; + + // Enable VPN gateway with only IPv4 protocol. + IPV4_ONLY = 22373798; + + } + // [Output Only] Creation timestamp in RFC3339 text format. optional string creation_timestamp = 30525366; @@ -25222,6 +26506,10 @@ message VpnGateway { // [Output Only] Server-defined URL for the resource. optional string self_link = 456214797; + // The stack type for this VPN gateway to identify the IP protocols that are enabled. If not specified, IPV4_ONLY will be used. + // Check the StackType enum for the list of possible values. + optional string stack_type = 425908881; + // The list of VPN interfaces associated with this VPN gateway. repeated VpnGatewayVpnGatewayInterface vpn_interfaces = 91842181; @@ -25795,15 +27083,15 @@ message Warnings { } -// In contrast to a single BackendService in HttpRouteAction to which all matching traffic is directed to, WeightedBackendService allows traffic to be split across multiple BackendServices. The volume of traffic for each BackendService is proportional to the weight specified in each WeightedBackendService +// In contrast to a single BackendService in HttpRouteAction to which all matching traffic is directed to, WeightedBackendService allows traffic to be split across multiple backend services. The volume of traffic for each backend service is proportional to the weight specified in each WeightedBackendService message WeightedBackendService { - // The full or partial URL to the default BackendService resource. Before forwarding the request to backendService, the loadbalancer applies any relevant headerActions specified as part of this backendServiceWeight. + // The full or partial URL to the default BackendService resource. Before forwarding the request to backendService, the load balancer applies any relevant headerActions specified as part of this backendServiceWeight. optional string backend_service = 306946058; - // Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. Note that headerAction is not supported for Loadbalancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to target gRPC proxy that has validateForProxyless field set to true. + // Specifies changes to request and response headers that need to take effect for the selected backendService. headerAction specified here take effect before headerAction in the enclosing HttpRouteRule, PathMatcher and UrlMap. headerAction is not supported for load balancers that have their loadBalancingScheme set to EXTERNAL. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true. optional HttpHeaderAction header_action = 328077352; - // Specifies the fraction of traffic sent to backendService, computed as weight / (sum of all weightedBackendService weights in routeAction) . The selection of a backend service is determined only for new traffic. Once a user's request has been directed to a backendService, subsequent requests will be sent to the same backendService as determined by the BackendService's session affinity policy. The value must be between 0 and 1000 + // Specifies the fraction of traffic sent to a backend service, computed as weight / (sum of all weightedBackendService weights in routeAction) . The selection of a backend service is determined only for new traffic. Once a user's request has been directed to a backend service, subsequent requests are sent to the same backend service as determined by the backend service's session affinity policy. The value must be from 0 to 1000. optional uint32 weight = 282149496; } @@ -26186,6 +27474,16 @@ service BackendBuckets { option (google.cloud.operation_service) = "GlobalOperations"; } + // Sets the edge security policy for the specified backend bucket. + rpc SetEdgeSecurityPolicy(SetEdgeSecurityPolicyBackendBucketRequest) returns (Operation) { + option (google.api.http) = { + body: "security_policy_reference_resource" + post: "/compute/v1/projects/{project}/global/backendBuckets/{backend_bucket}/setEdgeSecurityPolicy" + }; + option (google.api.method_signature) = "project,backend_bucket,security_policy_reference_resource"; + option (google.cloud.operation_service) = "GlobalOperations"; + } + // Updates the specified BackendBucket resource with the data included in the request. rpc Update(UpdateBackendBucketRequest) returns (Operation) { option (google.api.http) = { @@ -26288,6 +27586,16 @@ service BackendServices { option (google.cloud.operation_service) = "GlobalOperations"; } + // Sets the edge security policy for the specified backend service. + rpc SetEdgeSecurityPolicy(SetEdgeSecurityPolicyBackendServiceRequest) returns (Operation) { + option (google.api.http) = { + body: "security_policy_reference_resource" + post: "/compute/v1/projects/{project}/global/backendServices/{backend_service}/setEdgeSecurityPolicy" + }; + option (google.api.method_signature) = "project,backend_service,security_policy_reference_resource"; + option (google.cloud.operation_service) = "GlobalOperations"; + } + // Sets the Google Cloud Armor security policy for the specified backend service. For more information, see Google Cloud Armor Overview rpc SetSecurityPolicy(SetSecurityPolicyBackendServiceRequest) returns (Operation) { option (google.api.http) = { @@ -26373,7 +27681,7 @@ service Disks { option (google.api.method_signature) = "project"; } - // Creates a snapshot of a specified persistent disk. + // Creates a snapshot of a specified persistent disk. For regular snapshot creation, consider using snapshots.insert instead, as that method supports more features, such as creating snapshots in a project different from the source disk project. rpc CreateSnapshot(CreateSnapshotDiskRequest) returns (Operation) { option (google.api.http) = { body: "snapshot_resource" @@ -27954,6 +29262,15 @@ service Instances { option (google.cloud.operation_service) = "ZoneOperations"; } + // Resumes an instance that was suspended using the instances().suspend method. + rpc Resume(ResumeInstanceRequest) returns (Operation) { + option (google.api.http) = { + post: "/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/resume" + }; + option (google.api.method_signature) = "project,zone,instance"; + option (google.cloud.operation_service) = "ZoneOperations"; + } + // Sends diagnostic interrupt to the instance. rpc SendDiagnosticInterrupt(SendDiagnosticInterruptInstanceRequest) returns (SendDiagnosticInterruptInstanceResponse) { option (google.api.http) = { @@ -28039,7 +29356,7 @@ service Instances { option (google.cloud.operation_service) = "ZoneOperations"; } - // Sets an instance's scheduling options. You can only call this method on a stopped instance, that is, a VM instance that is in a `TERMINATED` state. See Instance Life Cycle for more information on the possible instance states. + // Sets an instance's scheduling options. You can only call this method on a stopped instance, that is, a VM instance that is in a `TERMINATED` state. See Instance Life Cycle for more information on the possible instance states. For more information about setting scheduling options for a VM, see Set VM availability policies. rpc SetScheduling(SetSchedulingInstanceRequest) returns (Operation) { option (google.api.http) = { body: "scheduling_resource" @@ -28079,7 +29396,7 @@ service Instances { option (google.cloud.operation_service) = "ZoneOperations"; } - // Simulates a maintenance event on the instance. + // Simulates a host maintenance event on a VM. For more information, see Simulate a host maintenance event. rpc SimulateMaintenanceEvent(SimulateMaintenanceEventInstanceRequest) returns (Operation) { option (google.api.http) = { post: "/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/simulateMaintenanceEvent" @@ -28116,6 +29433,15 @@ service Instances { option (google.cloud.operation_service) = "ZoneOperations"; } + // This method suspends a running instance, saving its state to persistent storage, and allows you to resume the instance at a later time. Suspended instances have no compute costs (cores or RAM), and incur only storage charges for the saved VM memory and localSSD data. Any charged resources the virtual machine was using, such as persistent disks and static IP addresses, will continue to be charged while the instance is suspended. For more information, see Suspending and resuming an instance. + rpc Suspend(SuspendInstanceRequest) returns (Operation) { + option (google.api.http) = { + post: "/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/suspend" + }; + option (google.api.method_signature) = "project,zone,instance"; + option (google.cloud.operation_service) = "ZoneOperations"; + } + // Returns permissions that a caller has on the specified resource. rpc TestIamPermissions(TestIamPermissionsInstanceRequest) returns (TestPermissionsResponse) { option (google.api.http) = { @@ -28434,6 +29760,78 @@ service Licenses { } +// The MachineImages API. +service MachineImages { + option (google.api.default_host) = + "compute.googleapis.com"; + + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/compute," + "https://www.googleapis.com/auth/cloud-platform"; + + // Deletes the specified machine image. Deleting a machine image is permanent and cannot be undone. + rpc Delete(DeleteMachineImageRequest) returns (Operation) { + option (google.api.http) = { + delete: "/compute/v1/projects/{project}/global/machineImages/{machine_image}" + }; + option (google.api.method_signature) = "project,machine_image"; + option (google.cloud.operation_service) = "GlobalOperations"; + } + + // Returns the specified machine image. Gets a list of available machine images by making a list() request. + rpc Get(GetMachineImageRequest) returns (MachineImage) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/global/machineImages/{machine_image}" + }; + option (google.api.method_signature) = "project,machine_image"; + } + + // Gets the access control policy for a resource. May be empty if no such policy or resource exists. + rpc GetIamPolicy(GetIamPolicyMachineImageRequest) returns (Policy) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/global/machineImages/{resource}/getIamPolicy" + }; + option (google.api.method_signature) = "project,resource"; + } + + // Creates a machine image in the specified project using the data that is included in the request. If you are creating a new machine image to update an existing instance, your new machine image should use the same network or, if applicable, the same subnetwork as the original instance. + rpc Insert(InsertMachineImageRequest) returns (Operation) { + option (google.api.http) = { + body: "machine_image_resource" + post: "/compute/v1/projects/{project}/global/machineImages" + }; + option (google.api.method_signature) = "project,machine_image_resource"; + option (google.cloud.operation_service) = "GlobalOperations"; + } + + // Retrieves a list of machine images that are contained within the specified project. + rpc List(ListMachineImagesRequest) returns (MachineImageList) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/global/machineImages" + }; + option (google.api.method_signature) = "project"; + } + + // Sets the access control policy on the specified resource. Replaces any existing policy. + rpc SetIamPolicy(SetIamPolicyMachineImageRequest) returns (Policy) { + option (google.api.http) = { + body: "global_set_policy_request_resource" + post: "/compute/v1/projects/{project}/global/machineImages/{resource}/setIamPolicy" + }; + option (google.api.method_signature) = "project,resource,global_set_policy_request_resource"; + } + + // Returns permissions that a caller has on the specified resource. + rpc TestIamPermissions(TestIamPermissionsMachineImageRequest) returns (TestPermissionsResponse) { + option (google.api.http) = { + body: "test_permissions_request_resource" + post: "/compute/v1/projects/{project}/global/machineImages/{resource}/testIamPermissions" + }; + option (google.api.method_signature) = "project,resource,test_permissions_request_resource"; + } + +} + // The MachineTypes API. service MachineTypes { option (google.api.default_host) = @@ -29037,7 +30435,7 @@ service Projects { option (google.cloud.operation_service) = "GlobalOperations"; } - // Returns the specified Project resource. + // Returns the specified Project resource. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the `quotas` field). To exclude one or more fields, set your request's `fields` query parameter to only include the fields you need. For example, to only include the `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request. rpc Get(GetProjectRequest) returns (Project) { option (google.api.http) = { get: "/compute/v1/projects/{project}" @@ -29080,7 +30478,7 @@ service Projects { option (google.cloud.operation_service) = "GlobalOperations"; } - // Moves an instance and its attached persistent disks from one zone to another. + // 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). rpc MoveInstance(MoveInstanceProjectRequest) returns (Operation) { option (google.api.http) = { body: "instance_move_request_resource" @@ -29426,6 +30824,16 @@ service RegionCommitments { option (google.api.method_signature) = "project,region"; } + // Updates the specified commitment with the data included in the request. Update is performed only on selected fields included as part of update-mask. Only the following fields can be modified: auto_renew. + rpc Update(UpdateRegionCommitmentRequest) returns (Operation) { + option (google.api.http) = { + body: "commitment_resource" + patch: "/compute/v1/projects/{project}/regions/{region}/commitments/{commitment}" + }; + option (google.api.method_signature) = "project,region,commitment,commitment_resource"; + option (google.cloud.operation_service) = "RegionOperations"; + } + } // The RegionDiskTypes API. @@ -29475,7 +30883,7 @@ service RegionDisks { option (google.cloud.operation_service) = "RegionOperations"; } - // Creates a snapshot of this regional disk. + // Creates a snapshot of a specified persistent disk. For regular snapshot creation, consider using snapshots.insert instead, as that method supports more features, such as creating snapshots in a project different from the source disk project. rpc CreateSnapshot(CreateSnapshotRegionDiskRequest) returns (Operation) { option (google.api.http) = { body: "snapshot_resource" @@ -30345,7 +31753,7 @@ service Regions { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Returns the specified Region resource. Gets a list of available regions by making a list() request. + // Returns the specified Region resource. Gets a list of available regions by making a list() request. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the `quotas` field). To exclude one or more fields, set your request's `fields` query parameter to only include the fields you need. For example, to only include the `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request. rpc Get(GetRegionRequest) returns (Region) { option (google.api.http) = { get: "/compute/v1/projects/{project}/regions/{region}" @@ -30353,7 +31761,7 @@ service Regions { option (google.api.method_signature) = "project,region"; } - // Retrieves the list of region resources available to the specified project. + // Retrieves the list of region resources available to the specified project. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the `items.quotas` field). To exclude one or more fields, set your request's `fields` query parameter to only include the fields you need. For example, to only include the `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request. rpc List(ListRegionsRequest) returns (RegionList) { option (google.api.http) = { get: "/compute/v1/projects/{project}/regions" @@ -30451,6 +31859,16 @@ service Reservations { option (google.api.method_signature) = "project,zone,resource,test_permissions_request_resource"; } + // Update share settings of the reservation. + rpc Update(UpdateReservationRequest) returns (Operation) { + option (google.api.http) = { + body: "reservation_resource" + patch: "/compute/v1/projects/{project}/zones/{zone}/reservations/{reservation}" + }; + option (google.api.method_signature) = "project,zone,reservation,reservation_resource"; + option (google.cloud.operation_service) = "ZoneOperations"; + } + } // The ResourcePolicies API. @@ -30903,6 +32321,16 @@ service Snapshots { option (google.api.method_signature) = "project,resource"; } + // Creates a snapshot in the specified project using the data included in the request. For regular snapshot creation, consider using this method instead of disks.createSnapshot, as this method supports more features, such as creating snapshots in a project different from the source disk project. + rpc Insert(InsertSnapshotRequest) returns (Operation) { + option (google.api.http) = { + body: "snapshot_resource" + post: "/compute/v1/projects/{project}/global/snapshots" + }; + option (google.api.method_signature) = "project,snapshot_resource"; + option (google.cloud.operation_service) = "GlobalOperations"; + } + // Retrieves the list of Snapshot resources contained within the specified project. rpc List(ListSnapshotsRequest) returns (SnapshotList) { option (google.api.http) = { diff --git a/packages/google-cloud-compute/protos/protos.d.ts b/packages/google-cloud-compute/protos/protos.d.ts index 01f62392f32..c80b10d9b63 100644 --- a/packages/google-cloud-compute/protos/protos.d.ts +++ b/packages/google-cloud-compute/protos/protos.d.ts @@ -1174,8 +1174,10 @@ export namespace google { /** NetworkTier enum. */ enum NetworkTier { UNDEFINED_NETWORK_TIER = 0, + FIXED_STANDARD = 310464328, PREMIUM = 399530551, - STANDARD = 484642493 + STANDARD = 484642493, + STANDARD_OVERRIDES_FIXED_STANDARD = 465847234 } /** Type enum. */ @@ -3037,8 +3039,10 @@ export namespace google { /** NetworkTier enum. */ enum NetworkTier { UNDEFINED_NETWORK_TIER = 0, + FIXED_STANDARD = 310464328, PREMIUM = 399530551, - STANDARD = 484642493 + STANDARD = 484642493, + STANDARD_OVERRIDES_FIXED_STANDARD = 465847234 } /** Purpose enum. */ @@ -3443,6 +3447,9 @@ export namespace google { /** AdvancedMachineFeatures enableNestedVirtualization */ enableNestedVirtualization?: (boolean|null); + /** AdvancedMachineFeatures enableUefiNetworking */ + enableUefiNetworking?: (boolean|null); + /** AdvancedMachineFeatures threadsPerCore */ threadsPerCore?: (number|null); } @@ -3459,12 +3466,18 @@ export namespace google { /** AdvancedMachineFeatures enableNestedVirtualization. */ public enableNestedVirtualization?: (boolean|null); + /** AdvancedMachineFeatures enableUefiNetworking. */ + public enableUefiNetworking?: (boolean|null); + /** AdvancedMachineFeatures threadsPerCore. */ public threadsPerCore?: (number|null); /** AdvancedMachineFeatures _enableNestedVirtualization. */ public _enableNestedVirtualization?: "enableNestedVirtualization"; + /** AdvancedMachineFeatures _enableUefiNetworking. */ + public _enableUefiNetworking?: "enableUefiNetworking"; + /** AdvancedMachineFeatures _threadsPerCore. */ public _threadsPerCore?: "threadsPerCore"; @@ -9951,6 +9964,9 @@ export namespace google { /** AttachedDiskInitializeParams labels */ labels?: ({ [k: string]: string }|null); + /** AttachedDiskInitializeParams licenses */ + licenses?: (string[]|null); + /** AttachedDiskInitializeParams onUpdateAction */ onUpdateAction?: (string|null); @@ -9997,6 +10013,9 @@ export namespace google { /** AttachedDiskInitializeParams labels. */ public labels: { [k: string]: string }; + /** AttachedDiskInitializeParams licenses. */ + public licenses: string[]; + /** AttachedDiskInitializeParams onUpdateAction. */ public onUpdateAction?: (string|null); @@ -12159,6 +12178,9 @@ export namespace google { /** BackendBucket description */ description?: (string|null); + /** BackendBucket edgeSecurityPolicy */ + edgeSecurityPolicy?: (string|null); + /** BackendBucket enableCdn */ enableCdn?: (boolean|null); @@ -12199,6 +12221,9 @@ export namespace google { /** BackendBucket description. */ public description?: (string|null); + /** BackendBucket edgeSecurityPolicy. */ + public edgeSecurityPolicy?: (string|null); + /** BackendBucket enableCdn. */ public enableCdn?: (boolean|null); @@ -12226,6 +12251,9 @@ export namespace google { /** BackendBucket _description. */ public _description?: "description"; + /** BackendBucket _edgeSecurityPolicy. */ + public _edgeSecurityPolicy?: "edgeSecurityPolicy"; + /** BackendBucket _enableCdn. */ public _enableCdn?: "enableCdn"; @@ -12318,6 +12346,9 @@ export namespace google { /** BackendBucketCdnPolicy bypassCacheOnRequestHeaders */ bypassCacheOnRequestHeaders?: (google.cloud.compute.v1.IBackendBucketCdnPolicyBypassCacheOnRequestHeader[]|null); + /** BackendBucketCdnPolicy cacheKeyPolicy */ + cacheKeyPolicy?: (google.cloud.compute.v1.IBackendBucketCdnPolicyCacheKeyPolicy|null); + /** BackendBucketCdnPolicy cacheMode */ cacheMode?: (string|null); @@ -12361,6 +12392,9 @@ export namespace google { /** BackendBucketCdnPolicy bypassCacheOnRequestHeaders. */ public bypassCacheOnRequestHeaders: google.cloud.compute.v1.IBackendBucketCdnPolicyBypassCacheOnRequestHeader[]; + /** BackendBucketCdnPolicy cacheKeyPolicy. */ + public cacheKeyPolicy?: (google.cloud.compute.v1.IBackendBucketCdnPolicyCacheKeyPolicy|null); + /** BackendBucketCdnPolicy cacheMode. */ public cacheMode?: (string|null); @@ -12391,6 +12425,9 @@ export namespace google { /** BackendBucketCdnPolicy signedUrlKeyNames. */ public signedUrlKeyNames: string[]; + /** BackendBucketCdnPolicy _cacheKeyPolicy. */ + public _cacheKeyPolicy?: "cacheKeyPolicy"; + /** BackendBucketCdnPolicy _cacheMode. */ public _cacheMode?: "cacheMode"; @@ -12591,6 +12628,102 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** Properties of a BackendBucketCdnPolicyCacheKeyPolicy. */ + interface IBackendBucketCdnPolicyCacheKeyPolicy { + + /** BackendBucketCdnPolicyCacheKeyPolicy includeHttpHeaders */ + includeHttpHeaders?: (string[]|null); + + /** BackendBucketCdnPolicyCacheKeyPolicy queryStringWhitelist */ + queryStringWhitelist?: (string[]|null); + } + + /** Represents a BackendBucketCdnPolicyCacheKeyPolicy. */ + class BackendBucketCdnPolicyCacheKeyPolicy implements IBackendBucketCdnPolicyCacheKeyPolicy { + + /** + * Constructs a new BackendBucketCdnPolicyCacheKeyPolicy. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IBackendBucketCdnPolicyCacheKeyPolicy); + + /** BackendBucketCdnPolicyCacheKeyPolicy includeHttpHeaders. */ + public includeHttpHeaders: string[]; + + /** BackendBucketCdnPolicyCacheKeyPolicy queryStringWhitelist. */ + public queryStringWhitelist: string[]; + + /** + * Creates a new BackendBucketCdnPolicyCacheKeyPolicy instance using the specified properties. + * @param [properties] Properties to set + * @returns BackendBucketCdnPolicyCacheKeyPolicy instance + */ + public static create(properties?: google.cloud.compute.v1.IBackendBucketCdnPolicyCacheKeyPolicy): google.cloud.compute.v1.BackendBucketCdnPolicyCacheKeyPolicy; + + /** + * Encodes the specified BackendBucketCdnPolicyCacheKeyPolicy message. Does not implicitly {@link google.cloud.compute.v1.BackendBucketCdnPolicyCacheKeyPolicy.verify|verify} messages. + * @param message BackendBucketCdnPolicyCacheKeyPolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IBackendBucketCdnPolicyCacheKeyPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BackendBucketCdnPolicyCacheKeyPolicy message, length delimited. Does not implicitly {@link google.cloud.compute.v1.BackendBucketCdnPolicyCacheKeyPolicy.verify|verify} messages. + * @param message BackendBucketCdnPolicyCacheKeyPolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IBackendBucketCdnPolicyCacheKeyPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BackendBucketCdnPolicyCacheKeyPolicy message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BackendBucketCdnPolicyCacheKeyPolicy + * @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.BackendBucketCdnPolicyCacheKeyPolicy; + + /** + * Decodes a BackendBucketCdnPolicyCacheKeyPolicy message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BackendBucketCdnPolicyCacheKeyPolicy + * @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.BackendBucketCdnPolicyCacheKeyPolicy; + + /** + * Verifies a BackendBucketCdnPolicyCacheKeyPolicy 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 BackendBucketCdnPolicyCacheKeyPolicy message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BackendBucketCdnPolicyCacheKeyPolicy + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.BackendBucketCdnPolicyCacheKeyPolicy; + + /** + * Creates a plain object from a BackendBucketCdnPolicyCacheKeyPolicy message. Also converts values to other types if specified. + * @param message BackendBucketCdnPolicyCacheKeyPolicy + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.BackendBucketCdnPolicyCacheKeyPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BackendBucketCdnPolicyCacheKeyPolicy to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of a BackendBucketCdnPolicyNegativeCachingPolicy. */ interface IBackendBucketCdnPolicyNegativeCachingPolicy { @@ -12846,6 +12979,9 @@ export namespace google { /** BackendService connectionDraining */ connectionDraining?: (google.cloud.compute.v1.IConnectionDraining|null); + /** BackendService connectionTrackingPolicy */ + connectionTrackingPolicy?: (google.cloud.compute.v1.IBackendServiceConnectionTrackingPolicy|null); + /** BackendService consistentHash */ consistentHash?: (google.cloud.compute.v1.IConsistentHashLoadBalancerSettings|null); @@ -12861,6 +12997,9 @@ export namespace google { /** BackendService description */ description?: (string|null); + /** BackendService edgeSecurityPolicy */ + edgeSecurityPolicy?: (string|null); + /** BackendService enableCDN */ enableCDN?: (boolean|null); @@ -12958,6 +13097,9 @@ export namespace google { /** BackendService connectionDraining. */ public connectionDraining?: (google.cloud.compute.v1.IConnectionDraining|null); + /** BackendService connectionTrackingPolicy. */ + public connectionTrackingPolicy?: (google.cloud.compute.v1.IBackendServiceConnectionTrackingPolicy|null); + /** BackendService consistentHash. */ public consistentHash?: (google.cloud.compute.v1.IConsistentHashLoadBalancerSettings|null); @@ -12973,6 +13115,9 @@ export namespace google { /** BackendService description. */ public description?: (string|null); + /** BackendService edgeSecurityPolicy. */ + public edgeSecurityPolicy?: (string|null); + /** BackendService enableCDN. */ public enableCDN?: (boolean|null); @@ -13057,6 +13202,9 @@ export namespace google { /** BackendService _connectionDraining. */ public _connectionDraining?: "connectionDraining"; + /** BackendService _connectionTrackingPolicy. */ + public _connectionTrackingPolicy?: "connectionTrackingPolicy"; + /** BackendService _consistentHash. */ public _consistentHash?: "consistentHash"; @@ -13066,6 +13214,9 @@ export namespace google { /** BackendService _description. */ public _description?: "description"; + /** BackendService _edgeSecurityPolicy. */ + public _edgeSecurityPolicy?: "edgeSecurityPolicy"; + /** BackendService _enableCDN. */ public _enableCDN?: "enableCDN"; @@ -13212,6 +13363,7 @@ export namespace google { enum LoadBalancingScheme { UNDEFINED_LOAD_BALANCING_SCHEME = 0, EXTERNAL = 35607499, + EXTERNAL_MANAGED = 512006923, INTERNAL = 279295677, INTERNAL_MANAGED = 37350397, INTERNAL_SELF_MANAGED = 236211150, @@ -13239,7 +13391,8 @@ export namespace google { HTTPS = 69079243, SSL = 82412, TCP = 82881, - UDP = 83873 + UDP = 83873, + UNSPECIFIED = 526786327 } /** SessionAffinity enum. */ @@ -13787,6 +13940,136 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** Properties of a BackendServiceConnectionTrackingPolicy. */ + interface IBackendServiceConnectionTrackingPolicy { + + /** BackendServiceConnectionTrackingPolicy connectionPersistenceOnUnhealthyBackends */ + connectionPersistenceOnUnhealthyBackends?: (string|null); + + /** BackendServiceConnectionTrackingPolicy idleTimeoutSec */ + idleTimeoutSec?: (number|null); + + /** BackendServiceConnectionTrackingPolicy trackingMode */ + trackingMode?: (string|null); + } + + /** Represents a BackendServiceConnectionTrackingPolicy. */ + class BackendServiceConnectionTrackingPolicy implements IBackendServiceConnectionTrackingPolicy { + + /** + * Constructs a new BackendServiceConnectionTrackingPolicy. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IBackendServiceConnectionTrackingPolicy); + + /** BackendServiceConnectionTrackingPolicy connectionPersistenceOnUnhealthyBackends. */ + public connectionPersistenceOnUnhealthyBackends?: (string|null); + + /** BackendServiceConnectionTrackingPolicy idleTimeoutSec. */ + public idleTimeoutSec?: (number|null); + + /** BackendServiceConnectionTrackingPolicy trackingMode. */ + public trackingMode?: (string|null); + + /** BackendServiceConnectionTrackingPolicy _connectionPersistenceOnUnhealthyBackends. */ + public _connectionPersistenceOnUnhealthyBackends?: "connectionPersistenceOnUnhealthyBackends"; + + /** BackendServiceConnectionTrackingPolicy _idleTimeoutSec. */ + public _idleTimeoutSec?: "idleTimeoutSec"; + + /** BackendServiceConnectionTrackingPolicy _trackingMode. */ + public _trackingMode?: "trackingMode"; + + /** + * Creates a new BackendServiceConnectionTrackingPolicy instance using the specified properties. + * @param [properties] Properties to set + * @returns BackendServiceConnectionTrackingPolicy instance + */ + public static create(properties?: google.cloud.compute.v1.IBackendServiceConnectionTrackingPolicy): google.cloud.compute.v1.BackendServiceConnectionTrackingPolicy; + + /** + * Encodes the specified BackendServiceConnectionTrackingPolicy message. Does not implicitly {@link google.cloud.compute.v1.BackendServiceConnectionTrackingPolicy.verify|verify} messages. + * @param message BackendServiceConnectionTrackingPolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IBackendServiceConnectionTrackingPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BackendServiceConnectionTrackingPolicy message, length delimited. Does not implicitly {@link google.cloud.compute.v1.BackendServiceConnectionTrackingPolicy.verify|verify} messages. + * @param message BackendServiceConnectionTrackingPolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IBackendServiceConnectionTrackingPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BackendServiceConnectionTrackingPolicy message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BackendServiceConnectionTrackingPolicy + * @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.BackendServiceConnectionTrackingPolicy; + + /** + * Decodes a BackendServiceConnectionTrackingPolicy message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BackendServiceConnectionTrackingPolicy + * @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.BackendServiceConnectionTrackingPolicy; + + /** + * Verifies a BackendServiceConnectionTrackingPolicy 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 BackendServiceConnectionTrackingPolicy message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BackendServiceConnectionTrackingPolicy + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.BackendServiceConnectionTrackingPolicy; + + /** + * Creates a plain object from a BackendServiceConnectionTrackingPolicy message. Also converts values to other types if specified. + * @param message BackendServiceConnectionTrackingPolicy + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.BackendServiceConnectionTrackingPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BackendServiceConnectionTrackingPolicy to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace BackendServiceConnectionTrackingPolicy { + + /** ConnectionPersistenceOnUnhealthyBackends enum. */ + enum ConnectionPersistenceOnUnhealthyBackends { + UNDEFINED_CONNECTION_PERSISTENCE_ON_UNHEALTHY_BACKENDS = 0, + ALWAYS_PERSIST = 38400900, + DEFAULT_FOR_PROTOCOL = 145265356, + NEVER_PERSIST = 138646241 + } + + /** TrackingMode enum. */ + enum TrackingMode { + UNDEFINED_TRACKING_MODE = 0, + INVALID_TRACKING_MODE = 49234371, + PER_CONNECTION = 85162848, + PER_SESSION = 182099252 + } + } + /** Properties of a BackendServiceFailoverPolicy. */ interface IBackendServiceFailoverPolicy { @@ -14552,6 +14835,589 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** Properties of a BfdPacket. */ + interface IBfdPacket { + + /** BfdPacket authenticationPresent */ + authenticationPresent?: (boolean|null); + + /** BfdPacket controlPlaneIndependent */ + controlPlaneIndependent?: (boolean|null); + + /** BfdPacket demand */ + demand?: (boolean|null); + + /** BfdPacket diagnostic */ + diagnostic?: (string|null); + + /** BfdPacket final */ + final?: (boolean|null); + + /** BfdPacket length */ + length?: (number|null); + + /** BfdPacket minEchoRxIntervalMs */ + minEchoRxIntervalMs?: (number|null); + + /** BfdPacket minRxIntervalMs */ + minRxIntervalMs?: (number|null); + + /** BfdPacket minTxIntervalMs */ + minTxIntervalMs?: (number|null); + + /** BfdPacket multiplier */ + multiplier?: (number|null); + + /** BfdPacket multipoint */ + multipoint?: (boolean|null); + + /** BfdPacket myDiscriminator */ + myDiscriminator?: (number|null); + + /** BfdPacket poll */ + poll?: (boolean|null); + + /** BfdPacket state */ + state?: (string|null); + + /** BfdPacket version */ + version?: (number|null); + + /** BfdPacket yourDiscriminator */ + yourDiscriminator?: (number|null); + } + + /** Represents a BfdPacket. */ + class BfdPacket implements IBfdPacket { + + /** + * Constructs a new BfdPacket. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IBfdPacket); + + /** BfdPacket authenticationPresent. */ + public authenticationPresent?: (boolean|null); + + /** BfdPacket controlPlaneIndependent. */ + public controlPlaneIndependent?: (boolean|null); + + /** BfdPacket demand. */ + public demand?: (boolean|null); + + /** BfdPacket diagnostic. */ + public diagnostic?: (string|null); + + /** BfdPacket final. */ + public final?: (boolean|null); + + /** BfdPacket length. */ + public length?: (number|null); + + /** BfdPacket minEchoRxIntervalMs. */ + public minEchoRxIntervalMs?: (number|null); + + /** BfdPacket minRxIntervalMs. */ + public minRxIntervalMs?: (number|null); + + /** BfdPacket minTxIntervalMs. */ + public minTxIntervalMs?: (number|null); + + /** BfdPacket multiplier. */ + public multiplier?: (number|null); + + /** BfdPacket multipoint. */ + public multipoint?: (boolean|null); + + /** BfdPacket myDiscriminator. */ + public myDiscriminator?: (number|null); + + /** BfdPacket poll. */ + public poll?: (boolean|null); + + /** BfdPacket state. */ + public state?: (string|null); + + /** BfdPacket version. */ + public version?: (number|null); + + /** BfdPacket yourDiscriminator. */ + public yourDiscriminator?: (number|null); + + /** BfdPacket _authenticationPresent. */ + public _authenticationPresent?: "authenticationPresent"; + + /** BfdPacket _controlPlaneIndependent. */ + public _controlPlaneIndependent?: "controlPlaneIndependent"; + + /** BfdPacket _demand. */ + public _demand?: "demand"; + + /** BfdPacket _diagnostic. */ + public _diagnostic?: "diagnostic"; + + /** BfdPacket _final. */ + public _final?: "final"; + + /** BfdPacket _length. */ + public _length?: "length"; + + /** BfdPacket _minEchoRxIntervalMs. */ + public _minEchoRxIntervalMs?: "minEchoRxIntervalMs"; + + /** BfdPacket _minRxIntervalMs. */ + public _minRxIntervalMs?: "minRxIntervalMs"; + + /** BfdPacket _minTxIntervalMs. */ + public _minTxIntervalMs?: "minTxIntervalMs"; + + /** BfdPacket _multiplier. */ + public _multiplier?: "multiplier"; + + /** BfdPacket _multipoint. */ + public _multipoint?: "multipoint"; + + /** BfdPacket _myDiscriminator. */ + public _myDiscriminator?: "myDiscriminator"; + + /** BfdPacket _poll. */ + public _poll?: "poll"; + + /** BfdPacket _state. */ + public _state?: "state"; + + /** BfdPacket _version. */ + public _version?: "version"; + + /** BfdPacket _yourDiscriminator. */ + public _yourDiscriminator?: "yourDiscriminator"; + + /** + * Creates a new BfdPacket instance using the specified properties. + * @param [properties] Properties to set + * @returns BfdPacket instance + */ + public static create(properties?: google.cloud.compute.v1.IBfdPacket): google.cloud.compute.v1.BfdPacket; + + /** + * Encodes the specified BfdPacket message. Does not implicitly {@link google.cloud.compute.v1.BfdPacket.verify|verify} messages. + * @param message BfdPacket message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IBfdPacket, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BfdPacket message, length delimited. Does not implicitly {@link google.cloud.compute.v1.BfdPacket.verify|verify} messages. + * @param message BfdPacket message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IBfdPacket, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BfdPacket message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BfdPacket + * @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.BfdPacket; + + /** + * Decodes a BfdPacket message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BfdPacket + * @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.BfdPacket; + + /** + * Verifies a BfdPacket 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 BfdPacket message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BfdPacket + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.BfdPacket; + + /** + * Creates a plain object from a BfdPacket message. Also converts values to other types if specified. + * @param message BfdPacket + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.BfdPacket, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BfdPacket to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace BfdPacket { + + /** Diagnostic enum. */ + enum Diagnostic { + UNDEFINED_DIAGNOSTIC = 0, + ADMINISTRATIVELY_DOWN = 121685798, + CONCATENATED_PATH_DOWN = 26186892, + CONTROL_DETECTION_TIME_EXPIRED = 135478383, + DIAGNOSTIC_UNSPECIFIED = 58720895, + ECHO_FUNCTION_FAILED = 220687466, + FORWARDING_PLANE_RESET = 19715882, + NEIGHBOR_SIGNALED_SESSION_DOWN = 374226742, + NO_DIAGNOSTIC = 222503141, + PATH_DOWN = 290605180, + REVERSE_CONCATENATED_PATH_DOWN = 479337129 + } + + /** State enum. */ + enum State { + UNDEFINED_STATE = 0, + ADMIN_DOWN = 128544690, + DOWN = 2104482, + INIT = 2252048, + STATE_UNSPECIFIED = 470755401, + UP = 2715 + } + } + + /** Properties of a BfdStatus. */ + interface IBfdStatus { + + /** BfdStatus bfdSessionInitializationMode */ + bfdSessionInitializationMode?: (string|null); + + /** BfdStatus configUpdateTimestampMicros */ + configUpdateTimestampMicros?: (number|Long|string|null); + + /** BfdStatus controlPacketCounts */ + controlPacketCounts?: (google.cloud.compute.v1.IBfdStatusPacketCounts|null); + + /** BfdStatus controlPacketIntervals */ + controlPacketIntervals?: (google.cloud.compute.v1.IPacketIntervals[]|null); + + /** BfdStatus localDiagnostic */ + localDiagnostic?: (string|null); + + /** BfdStatus localState */ + localState?: (string|null); + + /** BfdStatus negotiatedLocalControlTxIntervalMs */ + negotiatedLocalControlTxIntervalMs?: (number|null); + + /** BfdStatus rxPacket */ + rxPacket?: (google.cloud.compute.v1.IBfdPacket|null); + + /** BfdStatus txPacket */ + txPacket?: (google.cloud.compute.v1.IBfdPacket|null); + + /** BfdStatus uptimeMs */ + uptimeMs?: (number|Long|string|null); + } + + /** Represents a BfdStatus. */ + class BfdStatus implements IBfdStatus { + + /** + * Constructs a new BfdStatus. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IBfdStatus); + + /** BfdStatus bfdSessionInitializationMode. */ + public bfdSessionInitializationMode?: (string|null); + + /** BfdStatus configUpdateTimestampMicros. */ + public configUpdateTimestampMicros?: (number|Long|string|null); + + /** BfdStatus controlPacketCounts. */ + public controlPacketCounts?: (google.cloud.compute.v1.IBfdStatusPacketCounts|null); + + /** BfdStatus controlPacketIntervals. */ + public controlPacketIntervals: google.cloud.compute.v1.IPacketIntervals[]; + + /** BfdStatus localDiagnostic. */ + public localDiagnostic?: (string|null); + + /** BfdStatus localState. */ + public localState?: (string|null); + + /** BfdStatus negotiatedLocalControlTxIntervalMs. */ + public negotiatedLocalControlTxIntervalMs?: (number|null); + + /** BfdStatus rxPacket. */ + public rxPacket?: (google.cloud.compute.v1.IBfdPacket|null); + + /** BfdStatus txPacket. */ + public txPacket?: (google.cloud.compute.v1.IBfdPacket|null); + + /** BfdStatus uptimeMs. */ + public uptimeMs?: (number|Long|string|null); + + /** BfdStatus _bfdSessionInitializationMode. */ + public _bfdSessionInitializationMode?: "bfdSessionInitializationMode"; + + /** BfdStatus _configUpdateTimestampMicros. */ + public _configUpdateTimestampMicros?: "configUpdateTimestampMicros"; + + /** BfdStatus _controlPacketCounts. */ + public _controlPacketCounts?: "controlPacketCounts"; + + /** BfdStatus _localDiagnostic. */ + public _localDiagnostic?: "localDiagnostic"; + + /** BfdStatus _localState. */ + public _localState?: "localState"; + + /** BfdStatus _negotiatedLocalControlTxIntervalMs. */ + public _negotiatedLocalControlTxIntervalMs?: "negotiatedLocalControlTxIntervalMs"; + + /** BfdStatus _rxPacket. */ + public _rxPacket?: "rxPacket"; + + /** BfdStatus _txPacket. */ + public _txPacket?: "txPacket"; + + /** BfdStatus _uptimeMs. */ + public _uptimeMs?: "uptimeMs"; + + /** + * Creates a new BfdStatus instance using the specified properties. + * @param [properties] Properties to set + * @returns BfdStatus instance + */ + public static create(properties?: google.cloud.compute.v1.IBfdStatus): google.cloud.compute.v1.BfdStatus; + + /** + * Encodes the specified BfdStatus message. Does not implicitly {@link google.cloud.compute.v1.BfdStatus.verify|verify} messages. + * @param message BfdStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IBfdStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BfdStatus message, length delimited. Does not implicitly {@link google.cloud.compute.v1.BfdStatus.verify|verify} messages. + * @param message BfdStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IBfdStatus, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BfdStatus message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BfdStatus + * @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.BfdStatus; + + /** + * Decodes a BfdStatus message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BfdStatus + * @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.BfdStatus; + + /** + * Verifies a BfdStatus 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 BfdStatus message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BfdStatus + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.BfdStatus; + + /** + * Creates a plain object from a BfdStatus message. Also converts values to other types if specified. + * @param message BfdStatus + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.BfdStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BfdStatus to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace BfdStatus { + + /** BfdSessionInitializationMode enum. */ + enum BfdSessionInitializationMode { + UNDEFINED_BFD_SESSION_INITIALIZATION_MODE = 0, + ACTIVE = 314733318, + DISABLED = 516696700, + PASSIVE = 462813959 + } + + /** LocalDiagnostic enum. */ + enum LocalDiagnostic { + UNDEFINED_LOCAL_DIAGNOSTIC = 0, + ADMINISTRATIVELY_DOWN = 121685798, + CONCATENATED_PATH_DOWN = 26186892, + CONTROL_DETECTION_TIME_EXPIRED = 135478383, + DIAGNOSTIC_UNSPECIFIED = 58720895, + ECHO_FUNCTION_FAILED = 220687466, + FORWARDING_PLANE_RESET = 19715882, + NEIGHBOR_SIGNALED_SESSION_DOWN = 374226742, + NO_DIAGNOSTIC = 222503141, + PATH_DOWN = 290605180, + REVERSE_CONCATENATED_PATH_DOWN = 479337129 + } + + /** LocalState enum. */ + enum LocalState { + UNDEFINED_LOCAL_STATE = 0, + ADMIN_DOWN = 128544690, + DOWN = 2104482, + INIT = 2252048, + STATE_UNSPECIFIED = 470755401, + UP = 2715 + } + } + + /** Properties of a BfdStatusPacketCounts. */ + interface IBfdStatusPacketCounts { + + /** BfdStatusPacketCounts numRx */ + numRx?: (number|null); + + /** BfdStatusPacketCounts numRxRejected */ + numRxRejected?: (number|null); + + /** BfdStatusPacketCounts numRxSuccessful */ + numRxSuccessful?: (number|null); + + /** BfdStatusPacketCounts numTx */ + numTx?: (number|null); + } + + /** Represents a BfdStatusPacketCounts. */ + class BfdStatusPacketCounts implements IBfdStatusPacketCounts { + + /** + * Constructs a new BfdStatusPacketCounts. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IBfdStatusPacketCounts); + + /** BfdStatusPacketCounts numRx. */ + public numRx?: (number|null); + + /** BfdStatusPacketCounts numRxRejected. */ + public numRxRejected?: (number|null); + + /** BfdStatusPacketCounts numRxSuccessful. */ + public numRxSuccessful?: (number|null); + + /** BfdStatusPacketCounts numTx. */ + public numTx?: (number|null); + + /** BfdStatusPacketCounts _numRx. */ + public _numRx?: "numRx"; + + /** BfdStatusPacketCounts _numRxRejected. */ + public _numRxRejected?: "numRxRejected"; + + /** BfdStatusPacketCounts _numRxSuccessful. */ + public _numRxSuccessful?: "numRxSuccessful"; + + /** BfdStatusPacketCounts _numTx. */ + public _numTx?: "numTx"; + + /** + * Creates a new BfdStatusPacketCounts instance using the specified properties. + * @param [properties] Properties to set + * @returns BfdStatusPacketCounts instance + */ + public static create(properties?: google.cloud.compute.v1.IBfdStatusPacketCounts): google.cloud.compute.v1.BfdStatusPacketCounts; + + /** + * Encodes the specified BfdStatusPacketCounts message. Does not implicitly {@link google.cloud.compute.v1.BfdStatusPacketCounts.verify|verify} messages. + * @param message BfdStatusPacketCounts message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IBfdStatusPacketCounts, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BfdStatusPacketCounts message, length delimited. Does not implicitly {@link google.cloud.compute.v1.BfdStatusPacketCounts.verify|verify} messages. + * @param message BfdStatusPacketCounts message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IBfdStatusPacketCounts, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BfdStatusPacketCounts message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BfdStatusPacketCounts + * @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.BfdStatusPacketCounts; + + /** + * Decodes a BfdStatusPacketCounts message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BfdStatusPacketCounts + * @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.BfdStatusPacketCounts; + + /** + * Verifies a BfdStatusPacketCounts 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 BfdStatusPacketCounts message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BfdStatusPacketCounts + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.BfdStatusPacketCounts; + + /** + * Creates a plain object from a BfdStatusPacketCounts message. Also converts values to other types if specified. + * @param message BfdStatusPacketCounts + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.BfdStatusPacketCounts, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BfdStatusPacketCounts to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of a Binding. */ interface IBinding { @@ -15236,6 +16102,12 @@ export namespace google { /** CacheKeyPolicy includeHost */ includeHost?: (boolean|null); + /** CacheKeyPolicy includeHttpHeaders */ + includeHttpHeaders?: (string[]|null); + + /** CacheKeyPolicy includeNamedCookies */ + includeNamedCookies?: (string[]|null); + /** CacheKeyPolicy includeProtocol */ includeProtocol?: (boolean|null); @@ -15261,6 +16133,12 @@ export namespace google { /** CacheKeyPolicy includeHost. */ public includeHost?: (boolean|null); + /** CacheKeyPolicy includeHttpHeaders. */ + public includeHttpHeaders: string[]; + + /** CacheKeyPolicy includeNamedCookies. */ + public includeNamedCookies: string[]; + /** CacheKeyPolicy includeProtocol. */ public includeProtocol?: (boolean|null); @@ -15593,6 +16471,9 @@ export namespace google { /** Properties of a Commitment. */ interface ICommitment { + /** Commitment autoRenew */ + autoRenew?: (boolean|null); + /** Commitment category */ category?: (string|null); @@ -15654,6 +16535,9 @@ export namespace google { */ constructor(properties?: google.cloud.compute.v1.ICommitment); + /** Commitment autoRenew. */ + public autoRenew?: (boolean|null); + /** Commitment category. */ public category?: (string|null); @@ -15705,6 +16589,9 @@ export namespace google { /** Commitment type. */ public type?: (string|null); + /** Commitment _autoRenew. */ + public _autoRenew?: "autoRenew"; + /** Commitment _category. */ public _category?: "category"; @@ -15853,10 +16740,12 @@ export namespace google { UNDEFINED_TYPE = 0, ACCELERATOR_OPTIMIZED = 280848403, COMPUTE_OPTIMIZED = 158349023, + COMPUTE_OPTIMIZED_C2D = 383246453, GENERAL_PURPOSE = 299793543, GENERAL_PURPOSE_E2 = 301911877, GENERAL_PURPOSE_N2 = 301912156, GENERAL_PURPOSE_N2D = 232471400, + GENERAL_PURPOSE_T2D = 232477166, MEMORY_OPTIMIZED = 281753417, TYPE_UNSPECIFIED = 437714322 } @@ -20794,6 +21683,111 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** Properties of a DeleteMachineImageRequest. */ + interface IDeleteMachineImageRequest { + + /** DeleteMachineImageRequest machineImage */ + machineImage?: (string|null); + + /** DeleteMachineImageRequest project */ + project?: (string|null); + + /** DeleteMachineImageRequest requestId */ + requestId?: (string|null); + } + + /** Represents a DeleteMachineImageRequest. */ + class DeleteMachineImageRequest implements IDeleteMachineImageRequest { + + /** + * Constructs a new DeleteMachineImageRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IDeleteMachineImageRequest); + + /** DeleteMachineImageRequest machineImage. */ + public machineImage: string; + + /** DeleteMachineImageRequest project. */ + public project: string; + + /** DeleteMachineImageRequest requestId. */ + public requestId?: (string|null); + + /** DeleteMachineImageRequest _requestId. */ + public _requestId?: "requestId"; + + /** + * Creates a new DeleteMachineImageRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteMachineImageRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IDeleteMachineImageRequest): google.cloud.compute.v1.DeleteMachineImageRequest; + + /** + * Encodes the specified DeleteMachineImageRequest message. Does not implicitly {@link google.cloud.compute.v1.DeleteMachineImageRequest.verify|verify} messages. + * @param message DeleteMachineImageRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IDeleteMachineImageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteMachineImageRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.DeleteMachineImageRequest.verify|verify} messages. + * @param message DeleteMachineImageRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IDeleteMachineImageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteMachineImageRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteMachineImageRequest + * @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.DeleteMachineImageRequest; + + /** + * Decodes a DeleteMachineImageRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteMachineImageRequest + * @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.DeleteMachineImageRequest; + + /** + * Verifies a DeleteMachineImageRequest 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 DeleteMachineImageRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteMachineImageRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.DeleteMachineImageRequest; + + /** + * Creates a plain object from a DeleteMachineImageRequest message. Also converts values to other types if specified. + * @param message DeleteMachineImageRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.DeleteMachineImageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteMachineImageRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of a DeleteNetworkEndpointGroupRequest. */ interface IDeleteNetworkEndpointGroupRequest { @@ -32574,6 +33568,7 @@ export namespace google { AH = 2087, ESP = 68962, ICMP = 2241597, + L3_DEFAULT = 48151369, SCTP = 2539724, TCP = 82881, UDP = 83873 @@ -32591,6 +33586,7 @@ export namespace google { enum LoadBalancingScheme { UNDEFINED_LOAD_BALANCING_SCHEME = 0, EXTERNAL = 35607499, + EXTERNAL_MANAGED = 512006923, INTERNAL = 279295677, INTERNAL_MANAGED = 37350397, INTERNAL_SELF_MANAGED = 236211150, @@ -32600,8 +33596,10 @@ export namespace google { /** NetworkTier enum. */ enum NetworkTier { UNDEFINED_NETWORK_TIER = 0, + FIXED_STANDARD = 310464328, PREMIUM = 399530551, - STANDARD = 484642493 + STANDARD = 484642493, + STANDARD_OVERRIDES_FIXED_STANDARD = 465847234 } /** PscConnectionStatus enum. */ @@ -36655,6 +37653,111 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** Properties of a GetIamPolicyMachineImageRequest. */ + interface IGetIamPolicyMachineImageRequest { + + /** GetIamPolicyMachineImageRequest optionsRequestedPolicyVersion */ + optionsRequestedPolicyVersion?: (number|null); + + /** GetIamPolicyMachineImageRequest project */ + project?: (string|null); + + /** GetIamPolicyMachineImageRequest resource */ + resource?: (string|null); + } + + /** Represents a GetIamPolicyMachineImageRequest. */ + class GetIamPolicyMachineImageRequest implements IGetIamPolicyMachineImageRequest { + + /** + * Constructs a new GetIamPolicyMachineImageRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IGetIamPolicyMachineImageRequest); + + /** GetIamPolicyMachineImageRequest optionsRequestedPolicyVersion. */ + public optionsRequestedPolicyVersion?: (number|null); + + /** GetIamPolicyMachineImageRequest project. */ + public project: string; + + /** GetIamPolicyMachineImageRequest resource. */ + public resource: string; + + /** GetIamPolicyMachineImageRequest _optionsRequestedPolicyVersion. */ + public _optionsRequestedPolicyVersion?: "optionsRequestedPolicyVersion"; + + /** + * Creates a new GetIamPolicyMachineImageRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetIamPolicyMachineImageRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IGetIamPolicyMachineImageRequest): google.cloud.compute.v1.GetIamPolicyMachineImageRequest; + + /** + * Encodes the specified GetIamPolicyMachineImageRequest message. Does not implicitly {@link google.cloud.compute.v1.GetIamPolicyMachineImageRequest.verify|verify} messages. + * @param message GetIamPolicyMachineImageRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IGetIamPolicyMachineImageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetIamPolicyMachineImageRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.GetIamPolicyMachineImageRequest.verify|verify} messages. + * @param message GetIamPolicyMachineImageRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IGetIamPolicyMachineImageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetIamPolicyMachineImageRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetIamPolicyMachineImageRequest + * @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.GetIamPolicyMachineImageRequest; + + /** + * Decodes a GetIamPolicyMachineImageRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetIamPolicyMachineImageRequest + * @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.GetIamPolicyMachineImageRequest; + + /** + * Verifies a GetIamPolicyMachineImageRequest 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 GetIamPolicyMachineImageRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetIamPolicyMachineImageRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.GetIamPolicyMachineImageRequest; + + /** + * Creates a plain object from a GetIamPolicyMachineImageRequest message. Also converts values to other types if specified. + * @param message GetIamPolicyMachineImageRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.GetIamPolicyMachineImageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetIamPolicyMachineImageRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of a GetIamPolicyNodeGroupRequest. */ interface IGetIamPolicyNodeGroupRequest { @@ -38623,6 +39726,102 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** Properties of a GetMachineImageRequest. */ + interface IGetMachineImageRequest { + + /** GetMachineImageRequest machineImage */ + machineImage?: (string|null); + + /** GetMachineImageRequest project */ + project?: (string|null); + } + + /** Represents a GetMachineImageRequest. */ + class GetMachineImageRequest implements IGetMachineImageRequest { + + /** + * Constructs a new GetMachineImageRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IGetMachineImageRequest); + + /** GetMachineImageRequest machineImage. */ + public machineImage: string; + + /** GetMachineImageRequest project. */ + public project: string; + + /** + * Creates a new GetMachineImageRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetMachineImageRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IGetMachineImageRequest): google.cloud.compute.v1.GetMachineImageRequest; + + /** + * Encodes the specified GetMachineImageRequest message. Does not implicitly {@link google.cloud.compute.v1.GetMachineImageRequest.verify|verify} messages. + * @param message GetMachineImageRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IGetMachineImageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetMachineImageRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.GetMachineImageRequest.verify|verify} messages. + * @param message GetMachineImageRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IGetMachineImageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetMachineImageRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetMachineImageRequest + * @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.GetMachineImageRequest; + + /** + * Decodes a GetMachineImageRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetMachineImageRequest + * @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.GetMachineImageRequest; + + /** + * Verifies a GetMachineImageRequest 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 GetMachineImageRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetMachineImageRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.GetMachineImageRequest; + + /** + * Creates a plain object from a GetMachineImageRequest message. Also converts values to other types if specified. + * @param message GetMachineImageRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.GetMachineImageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetMachineImageRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of a GetMachineTypeRequest. */ interface IGetMachineTypeRequest { @@ -50728,11 +51927,14 @@ export namespace google { public firewallPolicyResource?: (google.cloud.compute.v1.IFirewallPolicy|null); /** InsertFirewallPolicyRequest parentId. */ - public parentId: string; + public parentId?: (string|null); /** InsertFirewallPolicyRequest requestId. */ public requestId?: (string|null); + /** InsertFirewallPolicyRequest _parentId. */ + public _parentId?: "parentId"; + /** InsertFirewallPolicyRequest _requestId. */ public _requestId?: "requestId"; @@ -51899,6 +53101,9 @@ export namespace google { /** InsertInstanceRequest sourceInstanceTemplate */ sourceInstanceTemplate?: (string|null); + /** InsertInstanceRequest sourceMachineImage */ + sourceMachineImage?: (string|null); + /** InsertInstanceRequest zone */ zone?: (string|null); } @@ -51924,6 +53129,9 @@ export namespace google { /** InsertInstanceRequest sourceInstanceTemplate. */ public sourceInstanceTemplate?: (string|null); + /** InsertInstanceRequest sourceMachineImage. */ + public sourceMachineImage?: (string|null); + /** InsertInstanceRequest zone. */ public zone: string; @@ -51933,6 +53141,9 @@ export namespace google { /** InsertInstanceRequest _sourceInstanceTemplate. */ public _sourceInstanceTemplate?: "sourceInstanceTemplate"; + /** InsertInstanceRequest _sourceMachineImage. */ + public _sourceMachineImage?: "sourceMachineImage"; + /** * Creates a new InsertInstanceRequest instance using the specified properties. * @param [properties] Properties to set @@ -52439,6 +53650,120 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** Properties of an InsertMachineImageRequest. */ + interface IInsertMachineImageRequest { + + /** InsertMachineImageRequest machineImageResource */ + machineImageResource?: (google.cloud.compute.v1.IMachineImage|null); + + /** InsertMachineImageRequest project */ + project?: (string|null); + + /** InsertMachineImageRequest requestId */ + requestId?: (string|null); + + /** InsertMachineImageRequest sourceInstance */ + sourceInstance?: (string|null); + } + + /** Represents an InsertMachineImageRequest. */ + class InsertMachineImageRequest implements IInsertMachineImageRequest { + + /** + * Constructs a new InsertMachineImageRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IInsertMachineImageRequest); + + /** InsertMachineImageRequest machineImageResource. */ + public machineImageResource?: (google.cloud.compute.v1.IMachineImage|null); + + /** InsertMachineImageRequest project. */ + public project: string; + + /** InsertMachineImageRequest requestId. */ + public requestId?: (string|null); + + /** InsertMachineImageRequest sourceInstance. */ + public sourceInstance?: (string|null); + + /** InsertMachineImageRequest _requestId. */ + public _requestId?: "requestId"; + + /** InsertMachineImageRequest _sourceInstance. */ + public _sourceInstance?: "sourceInstance"; + + /** + * Creates a new InsertMachineImageRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns InsertMachineImageRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IInsertMachineImageRequest): google.cloud.compute.v1.InsertMachineImageRequest; + + /** + * Encodes the specified InsertMachineImageRequest message. Does not implicitly {@link google.cloud.compute.v1.InsertMachineImageRequest.verify|verify} messages. + * @param message InsertMachineImageRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IInsertMachineImageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InsertMachineImageRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InsertMachineImageRequest.verify|verify} messages. + * @param message InsertMachineImageRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IInsertMachineImageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InsertMachineImageRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InsertMachineImageRequest + * @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.InsertMachineImageRequest; + + /** + * Decodes an InsertMachineImageRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InsertMachineImageRequest + * @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.InsertMachineImageRequest; + + /** + * Verifies an InsertMachineImageRequest 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 InsertMachineImageRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InsertMachineImageRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.InsertMachineImageRequest; + + /** + * Creates a plain object from an InsertMachineImageRequest message. Also converts values to other types if specified. + * @param message InsertMachineImageRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.InsertMachineImageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InsertMachineImageRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of an InsertNetworkEndpointGroupRequest. */ interface IInsertNetworkEndpointGroupRequest { @@ -55316,6 +56641,111 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** Properties of an InsertSnapshotRequest. */ + interface IInsertSnapshotRequest { + + /** InsertSnapshotRequest project */ + project?: (string|null); + + /** InsertSnapshotRequest requestId */ + requestId?: (string|null); + + /** InsertSnapshotRequest snapshotResource */ + snapshotResource?: (google.cloud.compute.v1.ISnapshot|null); + } + + /** Represents an InsertSnapshotRequest. */ + class InsertSnapshotRequest implements IInsertSnapshotRequest { + + /** + * Constructs a new InsertSnapshotRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IInsertSnapshotRequest); + + /** InsertSnapshotRequest project. */ + public project: string; + + /** InsertSnapshotRequest requestId. */ + public requestId?: (string|null); + + /** InsertSnapshotRequest snapshotResource. */ + public snapshotResource?: (google.cloud.compute.v1.ISnapshot|null); + + /** InsertSnapshotRequest _requestId. */ + public _requestId?: "requestId"; + + /** + * Creates a new InsertSnapshotRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns InsertSnapshotRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IInsertSnapshotRequest): google.cloud.compute.v1.InsertSnapshotRequest; + + /** + * Encodes the specified InsertSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1.InsertSnapshotRequest.verify|verify} messages. + * @param message InsertSnapshotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IInsertSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InsertSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InsertSnapshotRequest.verify|verify} messages. + * @param message InsertSnapshotRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IInsertSnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InsertSnapshotRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InsertSnapshotRequest + * @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.InsertSnapshotRequest; + + /** + * Decodes an InsertSnapshotRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InsertSnapshotRequest + * @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.InsertSnapshotRequest; + + /** + * Verifies an InsertSnapshotRequest 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 InsertSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InsertSnapshotRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.InsertSnapshotRequest; + + /** + * Creates a plain object from an InsertSnapshotRequest message. Also converts values to other types if specified. + * @param message InsertSnapshotRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.InsertSnapshotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InsertSnapshotRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of an InsertSslCertificateRequest. */ interface IInsertSslCertificateRequest { @@ -56897,6 +58327,9 @@ export namespace google { /** Instance networkInterfaces */ networkInterfaces?: (google.cloud.compute.v1.INetworkInterface[]|null); + /** Instance networkPerformanceConfig */ + networkPerformanceConfig?: (google.cloud.compute.v1.INetworkPerformanceConfig|null); + /** Instance privateIpv6GoogleAccess */ privateIpv6GoogleAccess?: (string|null); @@ -56924,6 +58357,12 @@ export namespace google { /** Instance shieldedInstanceIntegrityPolicy */ shieldedInstanceIntegrityPolicy?: (google.cloud.compute.v1.IShieldedInstanceIntegrityPolicy|null); + /** Instance sourceMachineImage */ + sourceMachineImage?: (string|null); + + /** Instance sourceMachineImageEncryptionKey */ + sourceMachineImageEncryptionKey?: (google.cloud.compute.v1.ICustomerEncryptionKey|null); + /** Instance startRestricted */ startRestricted?: (boolean|null); @@ -57021,6 +58460,9 @@ export namespace google { /** Instance networkInterfaces. */ public networkInterfaces: google.cloud.compute.v1.INetworkInterface[]; + /** Instance networkPerformanceConfig. */ + public networkPerformanceConfig?: (google.cloud.compute.v1.INetworkPerformanceConfig|null); + /** Instance privateIpv6GoogleAccess. */ public privateIpv6GoogleAccess?: (string|null); @@ -57048,6 +58490,12 @@ export namespace google { /** Instance shieldedInstanceIntegrityPolicy. */ public shieldedInstanceIntegrityPolicy?: (google.cloud.compute.v1.IShieldedInstanceIntegrityPolicy|null); + /** Instance sourceMachineImage. */ + public sourceMachineImage?: (string|null); + + /** Instance sourceMachineImageEncryptionKey. */ + public sourceMachineImageEncryptionKey?: (google.cloud.compute.v1.ICustomerEncryptionKey|null); + /** Instance startRestricted. */ public startRestricted?: (boolean|null); @@ -57123,6 +58571,9 @@ export namespace google { /** Instance _name. */ public _name?: "name"; + /** Instance _networkPerformanceConfig. */ + public _networkPerformanceConfig?: "networkPerformanceConfig"; + /** Instance _privateIpv6GoogleAccess. */ public _privateIpv6GoogleAccess?: "privateIpv6GoogleAccess"; @@ -57144,6 +58595,12 @@ export namespace google { /** Instance _shieldedInstanceIntegrityPolicy. */ public _shieldedInstanceIntegrityPolicy?: "shieldedInstanceIntegrityPolicy"; + /** Instance _sourceMachineImage. */ + public _sourceMachineImage?: "sourceMachineImage"; + + /** Instance _sourceMachineImageEncryptionKey. */ + public _sourceMachineImageEncryptionKey?: "sourceMachineImageEncryptionKey"; + /** Instance _startRestricted. */ public _startRestricted?: "startRestricted"; @@ -58168,6 +59625,18 @@ export namespace google { /** InstanceGroupManagerActionsSummary restarting */ restarting?: (number|null); + /** InstanceGroupManagerActionsSummary resuming */ + resuming?: (number|null); + + /** InstanceGroupManagerActionsSummary starting */ + starting?: (number|null); + + /** InstanceGroupManagerActionsSummary stopping */ + stopping?: (number|null); + + /** InstanceGroupManagerActionsSummary suspending */ + suspending?: (number|null); + /** InstanceGroupManagerActionsSummary verifying */ verifying?: (number|null); } @@ -58205,6 +59674,18 @@ export namespace google { /** InstanceGroupManagerActionsSummary restarting. */ public restarting?: (number|null); + /** InstanceGroupManagerActionsSummary resuming. */ + public resuming?: (number|null); + + /** InstanceGroupManagerActionsSummary starting. */ + public starting?: (number|null); + + /** InstanceGroupManagerActionsSummary stopping. */ + public stopping?: (number|null); + + /** InstanceGroupManagerActionsSummary suspending. */ + public suspending?: (number|null); + /** InstanceGroupManagerActionsSummary verifying. */ public verifying?: (number|null); @@ -58232,6 +59713,18 @@ export namespace google { /** InstanceGroupManagerActionsSummary _restarting. */ public _restarting?: "restarting"; + /** InstanceGroupManagerActionsSummary _resuming. */ + public _resuming?: "resuming"; + + /** InstanceGroupManagerActionsSummary _starting. */ + public _starting?: "starting"; + + /** InstanceGroupManagerActionsSummary _stopping. */ + public _stopping?: "stopping"; + + /** InstanceGroupManagerActionsSummary _suspending. */ + public _suspending?: "suspending"; + /** InstanceGroupManagerActionsSummary _verifying. */ public _verifying?: "verifying"; @@ -59107,6 +60600,9 @@ export namespace google { /** InstanceGroupManagerUpdatePolicy minimalAction */ minimalAction?: (string|null); + /** InstanceGroupManagerUpdatePolicy mostDisruptiveAllowedAction */ + mostDisruptiveAllowedAction?: (string|null); + /** InstanceGroupManagerUpdatePolicy replacementMethod */ replacementMethod?: (string|null); @@ -59135,6 +60631,9 @@ export namespace google { /** InstanceGroupManagerUpdatePolicy minimalAction. */ public minimalAction?: (string|null); + /** InstanceGroupManagerUpdatePolicy mostDisruptiveAllowedAction. */ + public mostDisruptiveAllowedAction?: (string|null); + /** InstanceGroupManagerUpdatePolicy replacementMethod. */ public replacementMethod?: (string|null); @@ -59153,6 +60652,9 @@ export namespace google { /** InstanceGroupManagerUpdatePolicy _minimalAction. */ public _minimalAction?: "minimalAction"; + /** InstanceGroupManagerUpdatePolicy _mostDisruptiveAllowedAction. */ + public _mostDisruptiveAllowedAction?: "mostDisruptiveAllowedAction"; + /** InstanceGroupManagerUpdatePolicy _replacementMethod. */ public _replacementMethod?: "replacementMethod"; @@ -61815,6 +63317,10 @@ export namespace google { RECREATING = 287278572, REFRESHING = 163266343, RESTARTING = 320534387, + RESUMING = 446856618, + STARTING = 488820800, + STOPPING = 350791796, + SUSPENDING = 514206246, VERIFYING = 16982185 } } @@ -62059,12 +63565,18 @@ export namespace google { /** InstanceProperties networkInterfaces */ networkInterfaces?: (google.cloud.compute.v1.INetworkInterface[]|null); + /** InstanceProperties networkPerformanceConfig */ + networkPerformanceConfig?: (google.cloud.compute.v1.INetworkPerformanceConfig|null); + /** InstanceProperties privateIpv6GoogleAccess */ privateIpv6GoogleAccess?: (string|null); /** InstanceProperties reservationAffinity */ reservationAffinity?: (google.cloud.compute.v1.IReservationAffinity|null); + /** InstanceProperties resourceManagerTags */ + resourceManagerTags?: ({ [k: string]: string }|null); + /** InstanceProperties resourcePolicies */ resourcePolicies?: (string[]|null); @@ -62123,12 +63635,18 @@ export namespace google { /** InstanceProperties networkInterfaces. */ public networkInterfaces: google.cloud.compute.v1.INetworkInterface[]; + /** InstanceProperties networkPerformanceConfig. */ + public networkPerformanceConfig?: (google.cloud.compute.v1.INetworkPerformanceConfig|null); + /** InstanceProperties privateIpv6GoogleAccess. */ public privateIpv6GoogleAccess?: (string|null); /** InstanceProperties reservationAffinity. */ public reservationAffinity?: (google.cloud.compute.v1.IReservationAffinity|null); + /** InstanceProperties resourceManagerTags. */ + public resourceManagerTags: { [k: string]: string }; + /** InstanceProperties resourcePolicies. */ public resourcePolicies: string[]; @@ -62165,6 +63683,9 @@ export namespace google { /** InstanceProperties _minCpuPlatform. */ public _minCpuPlatform?: "minCpuPlatform"; + /** InstanceProperties _networkPerformanceConfig. */ + public _networkPerformanceConfig?: "networkPerformanceConfig"; + /** InstanceProperties _privateIpv6GoogleAccess. */ public _privateIpv6GoogleAccess?: "privateIpv6GoogleAccess"; @@ -64281,18 +65802,33 @@ export namespace google { /** InterconnectAttachment bandwidth */ bandwidth?: (string|null); + /** InterconnectAttachment candidateIpv6Subnets */ + candidateIpv6Subnets?: (string[]|null); + /** InterconnectAttachment candidateSubnets */ candidateSubnets?: (string[]|null); /** InterconnectAttachment cloudRouterIpAddress */ cloudRouterIpAddress?: (string|null); + /** InterconnectAttachment cloudRouterIpv6Address */ + cloudRouterIpv6Address?: (string|null); + + /** InterconnectAttachment cloudRouterIpv6InterfaceId */ + cloudRouterIpv6InterfaceId?: (string|null); + /** InterconnectAttachment creationTimestamp */ creationTimestamp?: (string|null); /** InterconnectAttachment customerRouterIpAddress */ customerRouterIpAddress?: (string|null); + /** InterconnectAttachment customerRouterIpv6Address */ + customerRouterIpv6Address?: (string|null); + + /** InterconnectAttachment customerRouterIpv6InterfaceId */ + customerRouterIpv6InterfaceId?: (string|null); + /** InterconnectAttachment dataplaneVersion */ dataplaneVersion?: (number|null); @@ -64353,6 +65889,9 @@ export namespace google { /** InterconnectAttachment selfLink */ selfLink?: (string|null); + /** InterconnectAttachment stackType */ + stackType?: (string|null); + /** InterconnectAttachment state */ state?: (string|null); @@ -64378,18 +65917,33 @@ export namespace google { /** InterconnectAttachment bandwidth. */ public bandwidth?: (string|null); + /** InterconnectAttachment candidateIpv6Subnets. */ + public candidateIpv6Subnets: string[]; + /** InterconnectAttachment candidateSubnets. */ public candidateSubnets: string[]; /** InterconnectAttachment cloudRouterIpAddress. */ public cloudRouterIpAddress?: (string|null); + /** InterconnectAttachment cloudRouterIpv6Address. */ + public cloudRouterIpv6Address?: (string|null); + + /** InterconnectAttachment cloudRouterIpv6InterfaceId. */ + public cloudRouterIpv6InterfaceId?: (string|null); + /** InterconnectAttachment creationTimestamp. */ public creationTimestamp?: (string|null); /** InterconnectAttachment customerRouterIpAddress. */ public customerRouterIpAddress?: (string|null); + /** InterconnectAttachment customerRouterIpv6Address. */ + public customerRouterIpv6Address?: (string|null); + + /** InterconnectAttachment customerRouterIpv6InterfaceId. */ + public customerRouterIpv6InterfaceId?: (string|null); + /** InterconnectAttachment dataplaneVersion. */ public dataplaneVersion?: (number|null); @@ -64450,6 +66004,9 @@ export namespace google { /** InterconnectAttachment selfLink. */ public selfLink?: (string|null); + /** InterconnectAttachment stackType. */ + public stackType?: (string|null); + /** InterconnectAttachment state. */ public state?: (string|null); @@ -64468,12 +66025,24 @@ export namespace google { /** InterconnectAttachment _cloudRouterIpAddress. */ public _cloudRouterIpAddress?: "cloudRouterIpAddress"; + /** InterconnectAttachment _cloudRouterIpv6Address. */ + public _cloudRouterIpv6Address?: "cloudRouterIpv6Address"; + + /** InterconnectAttachment _cloudRouterIpv6InterfaceId. */ + public _cloudRouterIpv6InterfaceId?: "cloudRouterIpv6InterfaceId"; + /** InterconnectAttachment _creationTimestamp. */ public _creationTimestamp?: "creationTimestamp"; /** InterconnectAttachment _customerRouterIpAddress. */ public _customerRouterIpAddress?: "customerRouterIpAddress"; + /** InterconnectAttachment _customerRouterIpv6Address. */ + public _customerRouterIpv6Address?: "customerRouterIpv6Address"; + + /** InterconnectAttachment _customerRouterIpv6InterfaceId. */ + public _customerRouterIpv6InterfaceId?: "customerRouterIpv6InterfaceId"; + /** InterconnectAttachment _dataplaneVersion. */ public _dataplaneVersion?: "dataplaneVersion"; @@ -64531,6 +66100,9 @@ export namespace google { /** InterconnectAttachment _selfLink. */ public _selfLink?: "selfLink"; + /** InterconnectAttachment _stackType. */ + public _stackType?: "stackType"; + /** InterconnectAttachment _state. */ public _state?: "state"; @@ -64652,6 +66224,13 @@ export namespace google { OS_UNPROVISIONED = 239771840 } + /** StackType enum. */ + enum StackType { + UNDEFINED_STACK_TYPE = 0, + IPV4_IPV6 = 22197249, + IPV4_ONLY = 22373798 + } + /** State enum. */ enum State { UNDEFINED_STATE = 0, @@ -72401,6 +73980,141 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** Properties of a ListMachineImagesRequest. */ + interface IListMachineImagesRequest { + + /** ListMachineImagesRequest filter */ + filter?: (string|null); + + /** ListMachineImagesRequest maxResults */ + maxResults?: (number|null); + + /** ListMachineImagesRequest orderBy */ + orderBy?: (string|null); + + /** ListMachineImagesRequest pageToken */ + pageToken?: (string|null); + + /** ListMachineImagesRequest project */ + project?: (string|null); + + /** ListMachineImagesRequest returnPartialSuccess */ + returnPartialSuccess?: (boolean|null); + } + + /** Represents a ListMachineImagesRequest. */ + class ListMachineImagesRequest implements IListMachineImagesRequest { + + /** + * Constructs a new ListMachineImagesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IListMachineImagesRequest); + + /** ListMachineImagesRequest filter. */ + public filter?: (string|null); + + /** ListMachineImagesRequest maxResults. */ + public maxResults?: (number|null); + + /** ListMachineImagesRequest orderBy. */ + public orderBy?: (string|null); + + /** ListMachineImagesRequest pageToken. */ + public pageToken?: (string|null); + + /** ListMachineImagesRequest project. */ + public project: string; + + /** ListMachineImagesRequest returnPartialSuccess. */ + public returnPartialSuccess?: (boolean|null); + + /** ListMachineImagesRequest _filter. */ + public _filter?: "filter"; + + /** ListMachineImagesRequest _maxResults. */ + public _maxResults?: "maxResults"; + + /** ListMachineImagesRequest _orderBy. */ + public _orderBy?: "orderBy"; + + /** ListMachineImagesRequest _pageToken. */ + public _pageToken?: "pageToken"; + + /** ListMachineImagesRequest _returnPartialSuccess. */ + public _returnPartialSuccess?: "returnPartialSuccess"; + + /** + * Creates a new ListMachineImagesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListMachineImagesRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IListMachineImagesRequest): google.cloud.compute.v1.ListMachineImagesRequest; + + /** + * Encodes the specified ListMachineImagesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListMachineImagesRequest.verify|verify} messages. + * @param message ListMachineImagesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IListMachineImagesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListMachineImagesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListMachineImagesRequest.verify|verify} messages. + * @param message ListMachineImagesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IListMachineImagesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListMachineImagesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListMachineImagesRequest + * @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.ListMachineImagesRequest; + + /** + * Decodes a ListMachineImagesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListMachineImagesRequest + * @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.ListMachineImagesRequest; + + /** + * Verifies a ListMachineImagesRequest 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 ListMachineImagesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListMachineImagesRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.ListMachineImagesRequest; + + /** + * Creates a plain object from a ListMachineImagesRequest message. Also converts values to other types if specified. + * @param message ListMachineImagesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.ListMachineImagesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListMachineImagesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of a ListMachineTypesRequest. */ interface IListMachineTypesRequest { @@ -81827,6 +83541,382 @@ export namespace google { } } + /** Properties of a MachineImage. */ + interface IMachineImage { + + /** MachineImage creationTimestamp */ + creationTimestamp?: (string|null); + + /** MachineImage description */ + description?: (string|null); + + /** MachineImage guestFlush */ + guestFlush?: (boolean|null); + + /** MachineImage id */ + id?: (number|Long|string|null); + + /** MachineImage instanceProperties */ + instanceProperties?: (google.cloud.compute.v1.IInstanceProperties|null); + + /** MachineImage kind */ + kind?: (string|null); + + /** MachineImage machineImageEncryptionKey */ + machineImageEncryptionKey?: (google.cloud.compute.v1.ICustomerEncryptionKey|null); + + /** MachineImage name */ + name?: (string|null); + + /** MachineImage satisfiesPzs */ + satisfiesPzs?: (boolean|null); + + /** MachineImage savedDisks */ + savedDisks?: (google.cloud.compute.v1.ISavedDisk[]|null); + + /** MachineImage selfLink */ + selfLink?: (string|null); + + /** MachineImage sourceDiskEncryptionKeys */ + sourceDiskEncryptionKeys?: (google.cloud.compute.v1.ISourceDiskEncryptionKey[]|null); + + /** MachineImage sourceInstance */ + sourceInstance?: (string|null); + + /** MachineImage sourceInstanceProperties */ + sourceInstanceProperties?: (google.cloud.compute.v1.ISourceInstanceProperties|null); + + /** MachineImage status */ + status?: (string|null); + + /** MachineImage storageLocations */ + storageLocations?: (string[]|null); + + /** MachineImage totalStorageBytes */ + totalStorageBytes?: (number|Long|string|null); + } + + /** Represents a MachineImage. */ + class MachineImage implements IMachineImage { + + /** + * Constructs a new MachineImage. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IMachineImage); + + /** MachineImage creationTimestamp. */ + public creationTimestamp?: (string|null); + + /** MachineImage description. */ + public description?: (string|null); + + /** MachineImage guestFlush. */ + public guestFlush?: (boolean|null); + + /** MachineImage id. */ + public id?: (number|Long|string|null); + + /** MachineImage instanceProperties. */ + public instanceProperties?: (google.cloud.compute.v1.IInstanceProperties|null); + + /** MachineImage kind. */ + public kind?: (string|null); + + /** MachineImage machineImageEncryptionKey. */ + public machineImageEncryptionKey?: (google.cloud.compute.v1.ICustomerEncryptionKey|null); + + /** MachineImage name. */ + public name?: (string|null); + + /** MachineImage satisfiesPzs. */ + public satisfiesPzs?: (boolean|null); + + /** MachineImage savedDisks. */ + public savedDisks: google.cloud.compute.v1.ISavedDisk[]; + + /** MachineImage selfLink. */ + public selfLink?: (string|null); + + /** MachineImage sourceDiskEncryptionKeys. */ + public sourceDiskEncryptionKeys: google.cloud.compute.v1.ISourceDiskEncryptionKey[]; + + /** MachineImage sourceInstance. */ + public sourceInstance?: (string|null); + + /** MachineImage sourceInstanceProperties. */ + public sourceInstanceProperties?: (google.cloud.compute.v1.ISourceInstanceProperties|null); + + /** MachineImage status. */ + public status?: (string|null); + + /** MachineImage storageLocations. */ + public storageLocations: string[]; + + /** MachineImage totalStorageBytes. */ + public totalStorageBytes?: (number|Long|string|null); + + /** MachineImage _creationTimestamp. */ + public _creationTimestamp?: "creationTimestamp"; + + /** MachineImage _description. */ + public _description?: "description"; + + /** MachineImage _guestFlush. */ + public _guestFlush?: "guestFlush"; + + /** MachineImage _id. */ + public _id?: "id"; + + /** MachineImage _instanceProperties. */ + public _instanceProperties?: "instanceProperties"; + + /** MachineImage _kind. */ + public _kind?: "kind"; + + /** MachineImage _machineImageEncryptionKey. */ + public _machineImageEncryptionKey?: "machineImageEncryptionKey"; + + /** MachineImage _name. */ + public _name?: "name"; + + /** MachineImage _satisfiesPzs. */ + public _satisfiesPzs?: "satisfiesPzs"; + + /** MachineImage _selfLink. */ + public _selfLink?: "selfLink"; + + /** MachineImage _sourceInstance. */ + public _sourceInstance?: "sourceInstance"; + + /** MachineImage _sourceInstanceProperties. */ + public _sourceInstanceProperties?: "sourceInstanceProperties"; + + /** MachineImage _status. */ + public _status?: "status"; + + /** MachineImage _totalStorageBytes. */ + public _totalStorageBytes?: "totalStorageBytes"; + + /** + * Creates a new MachineImage instance using the specified properties. + * @param [properties] Properties to set + * @returns MachineImage instance + */ + public static create(properties?: google.cloud.compute.v1.IMachineImage): google.cloud.compute.v1.MachineImage; + + /** + * Encodes the specified MachineImage message. Does not implicitly {@link google.cloud.compute.v1.MachineImage.verify|verify} messages. + * @param message MachineImage message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IMachineImage, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MachineImage message, length delimited. Does not implicitly {@link google.cloud.compute.v1.MachineImage.verify|verify} messages. + * @param message MachineImage message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IMachineImage, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MachineImage message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MachineImage + * @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.MachineImage; + + /** + * Decodes a MachineImage message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MachineImage + * @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.MachineImage; + + /** + * Verifies a MachineImage 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 MachineImage message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MachineImage + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.MachineImage; + + /** + * Creates a plain object from a MachineImage message. Also converts values to other types if specified. + * @param message MachineImage + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.MachineImage, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MachineImage to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace MachineImage { + + /** Status enum. */ + enum Status { + UNDEFINED_STATUS = 0, + CREATING = 455564985, + DELETING = 528602024, + INVALID = 530283991, + READY = 77848963, + UPLOADING = 267603489 + } + } + + /** Properties of a MachineImageList. */ + interface IMachineImageList { + + /** MachineImageList id */ + id?: (string|null); + + /** MachineImageList items */ + items?: (google.cloud.compute.v1.IMachineImage[]|null); + + /** MachineImageList kind */ + kind?: (string|null); + + /** MachineImageList nextPageToken */ + nextPageToken?: (string|null); + + /** MachineImageList selfLink */ + selfLink?: (string|null); + + /** MachineImageList warning */ + warning?: (google.cloud.compute.v1.IWarning|null); + } + + /** Represents a MachineImageList. */ + class MachineImageList implements IMachineImageList { + + /** + * Constructs a new MachineImageList. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IMachineImageList); + + /** MachineImageList id. */ + public id?: (string|null); + + /** MachineImageList items. */ + public items: google.cloud.compute.v1.IMachineImage[]; + + /** MachineImageList kind. */ + public kind?: (string|null); + + /** MachineImageList nextPageToken. */ + public nextPageToken?: (string|null); + + /** MachineImageList selfLink. */ + public selfLink?: (string|null); + + /** MachineImageList warning. */ + public warning?: (google.cloud.compute.v1.IWarning|null); + + /** MachineImageList _id. */ + public _id?: "id"; + + /** MachineImageList _kind. */ + public _kind?: "kind"; + + /** MachineImageList _nextPageToken. */ + public _nextPageToken?: "nextPageToken"; + + /** MachineImageList _selfLink. */ + public _selfLink?: "selfLink"; + + /** MachineImageList _warning. */ + public _warning?: "warning"; + + /** + * Creates a new MachineImageList instance using the specified properties. + * @param [properties] Properties to set + * @returns MachineImageList instance + */ + public static create(properties?: google.cloud.compute.v1.IMachineImageList): google.cloud.compute.v1.MachineImageList; + + /** + * Encodes the specified MachineImageList message. Does not implicitly {@link google.cloud.compute.v1.MachineImageList.verify|verify} messages. + * @param message MachineImageList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IMachineImageList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MachineImageList message, length delimited. Does not implicitly {@link google.cloud.compute.v1.MachineImageList.verify|verify} messages. + * @param message MachineImageList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IMachineImageList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MachineImageList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MachineImageList + * @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.MachineImageList; + + /** + * Decodes a MachineImageList message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MachineImageList + * @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.MachineImageList; + + /** + * Verifies a MachineImageList 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 MachineImageList message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MachineImageList + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.MachineImageList; + + /** + * Creates a plain object from a MachineImageList message. Also converts values to other types if specified. + * @param message MachineImageList + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.MachineImageList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MachineImageList to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of a MachineType. */ interface IMachineType { @@ -83379,11 +85469,14 @@ export namespace google { public firewallPolicy: string; /** MoveFirewallPolicyRequest parentId. */ - public parentId: string; + public parentId?: (string|null); /** MoveFirewallPolicyRequest requestId. */ public requestId?: (string|null); + /** MoveFirewallPolicyRequest _parentId. */ + public _parentId?: "parentId"; + /** MoveFirewallPolicyRequest _requestId. */ public _requestId?: "requestId"; @@ -84025,6 +86118,9 @@ export namespace google { /** NetworkEndpointGroup networkEndpointType */ networkEndpointType?: (string|null); + /** NetworkEndpointGroup pscTargetService */ + pscTargetService?: (string|null); + /** NetworkEndpointGroup region */ region?: (string|null); @@ -84086,6 +86182,9 @@ export namespace google { /** NetworkEndpointGroup networkEndpointType. */ public networkEndpointType?: (string|null); + /** NetworkEndpointGroup pscTargetService. */ + public pscTargetService?: (string|null); + /** NetworkEndpointGroup region. */ public region?: (string|null); @@ -84134,6 +86233,9 @@ export namespace google { /** NetworkEndpointGroup _networkEndpointType. */ public _networkEndpointType?: "networkEndpointType"; + /** NetworkEndpointGroup _pscTargetService. */ + public _pscTargetService?: "pscTargetService"; + /** NetworkEndpointGroup _region. */ public _region?: "region"; @@ -84230,6 +86332,7 @@ export namespace google { INTERNET_FQDN_PORT = 404154477, INTERNET_IP_PORT = 477719963, NON_GCP_PRIVATE_IP_PORT = 336447968, + PRIVATE_SERVICE_CONNECT = 48134724, SERVERLESS = 270492508 } } @@ -85996,6 +88099,109 @@ export namespace google { } } + /** Properties of a NetworkPerformanceConfig. */ + interface INetworkPerformanceConfig { + + /** NetworkPerformanceConfig totalEgressBandwidthTier */ + totalEgressBandwidthTier?: (string|null); + } + + /** Represents a NetworkPerformanceConfig. */ + class NetworkPerformanceConfig implements INetworkPerformanceConfig { + + /** + * Constructs a new NetworkPerformanceConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.INetworkPerformanceConfig); + + /** NetworkPerformanceConfig totalEgressBandwidthTier. */ + public totalEgressBandwidthTier?: (string|null); + + /** NetworkPerformanceConfig _totalEgressBandwidthTier. */ + public _totalEgressBandwidthTier?: "totalEgressBandwidthTier"; + + /** + * Creates a new NetworkPerformanceConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns NetworkPerformanceConfig instance + */ + public static create(properties?: google.cloud.compute.v1.INetworkPerformanceConfig): google.cloud.compute.v1.NetworkPerformanceConfig; + + /** + * Encodes the specified NetworkPerformanceConfig message. Does not implicitly {@link google.cloud.compute.v1.NetworkPerformanceConfig.verify|verify} messages. + * @param message NetworkPerformanceConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.INetworkPerformanceConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NetworkPerformanceConfig message, length delimited. Does not implicitly {@link google.cloud.compute.v1.NetworkPerformanceConfig.verify|verify} messages. + * @param message NetworkPerformanceConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.INetworkPerformanceConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NetworkPerformanceConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NetworkPerformanceConfig + * @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.NetworkPerformanceConfig; + + /** + * Decodes a NetworkPerformanceConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NetworkPerformanceConfig + * @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.NetworkPerformanceConfig; + + /** + * Verifies a NetworkPerformanceConfig 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 NetworkPerformanceConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NetworkPerformanceConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.NetworkPerformanceConfig; + + /** + * Creates a plain object from a NetworkPerformanceConfig message. Also converts values to other types if specified. + * @param message NetworkPerformanceConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.NetworkPerformanceConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NetworkPerformanceConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace NetworkPerformanceConfig { + + /** TotalEgressBandwidthTier enum. */ + enum TotalEgressBandwidthTier { + UNDEFINED_TOTAL_EGRESS_BANDWIDTH_TIER = 0, + DEFAULT = 115302945, + TIER_1 = 326919444 + } + } + /** Properties of a NetworkRoutingConfig. */ interface INetworkRoutingConfig { @@ -90653,6 +92859,165 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** Properties of a PacketIntervals. */ + interface IPacketIntervals { + + /** PacketIntervals avgMs */ + avgMs?: (number|Long|string|null); + + /** PacketIntervals duration */ + duration?: (string|null); + + /** PacketIntervals maxMs */ + maxMs?: (number|Long|string|null); + + /** PacketIntervals minMs */ + minMs?: (number|Long|string|null); + + /** PacketIntervals numIntervals */ + numIntervals?: (number|Long|string|null); + + /** PacketIntervals type */ + type?: (string|null); + } + + /** Represents a PacketIntervals. */ + class PacketIntervals implements IPacketIntervals { + + /** + * Constructs a new PacketIntervals. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IPacketIntervals); + + /** PacketIntervals avgMs. */ + public avgMs?: (number|Long|string|null); + + /** PacketIntervals duration. */ + public duration?: (string|null); + + /** PacketIntervals maxMs. */ + public maxMs?: (number|Long|string|null); + + /** PacketIntervals minMs. */ + public minMs?: (number|Long|string|null); + + /** PacketIntervals numIntervals. */ + public numIntervals?: (number|Long|string|null); + + /** PacketIntervals type. */ + public type?: (string|null); + + /** PacketIntervals _avgMs. */ + public _avgMs?: "avgMs"; + + /** PacketIntervals _duration. */ + public _duration?: "duration"; + + /** PacketIntervals _maxMs. */ + public _maxMs?: "maxMs"; + + /** PacketIntervals _minMs. */ + public _minMs?: "minMs"; + + /** PacketIntervals _numIntervals. */ + public _numIntervals?: "numIntervals"; + + /** PacketIntervals _type. */ + public _type?: "type"; + + /** + * Creates a new PacketIntervals instance using the specified properties. + * @param [properties] Properties to set + * @returns PacketIntervals instance + */ + public static create(properties?: google.cloud.compute.v1.IPacketIntervals): google.cloud.compute.v1.PacketIntervals; + + /** + * Encodes the specified PacketIntervals message. Does not implicitly {@link google.cloud.compute.v1.PacketIntervals.verify|verify} messages. + * @param message PacketIntervals message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IPacketIntervals, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PacketIntervals message, length delimited. Does not implicitly {@link google.cloud.compute.v1.PacketIntervals.verify|verify} messages. + * @param message PacketIntervals message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IPacketIntervals, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PacketIntervals message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PacketIntervals + * @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.PacketIntervals; + + /** + * Decodes a PacketIntervals message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PacketIntervals + * @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.PacketIntervals; + + /** + * Verifies a PacketIntervals 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 PacketIntervals message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PacketIntervals + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.PacketIntervals; + + /** + * Creates a plain object from a PacketIntervals message. Also converts values to other types if specified. + * @param message PacketIntervals + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.PacketIntervals, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PacketIntervals to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace PacketIntervals { + + /** Duration enum. */ + enum Duration { + UNDEFINED_DURATION = 0, + DURATION_UNSPECIFIED = 529071340, + HOUR = 2223588, + MAX = 76100, + MINUTE = 126786068 + } + + /** Type enum. */ + enum Type { + UNDEFINED_TYPE = 0, + LOOPBACK = 356174219, + RECEIVE = 189660867, + TRANSMIT = 452903600, + TYPE_UNSPECIFIED = 437714322 + } + } + /** Properties of a PacketMirroring. */ interface IPacketMirroring { @@ -97244,8 +99609,10 @@ export namespace google { /** DefaultNetworkTier enum. */ enum DefaultNetworkTier { UNDEFINED_DEFAULT_NETWORK_TIER = 0, + FIXED_STANDARD = 310464328, PREMIUM = 399530551, - STANDARD = 484642493 + STANDARD = 484642493, + STANDARD_OVERRIDES_FIXED_STANDARD = 465847234 } /** XpnProjectStatus enum. */ @@ -97741,8 +100108,10 @@ export namespace google { /** NetworkTier enum. */ enum NetworkTier { UNDEFINED_NETWORK_TIER = 0, + FIXED_STANDARD = 310464328, PREMIUM = 399530551, - STANDARD = 484642493 + STANDARD = 484642493, + STANDARD_OVERRIDES_FIXED_STANDARD = 465847234 } } @@ -99098,6 +101467,7 @@ export namespace google { COMMITTED_E2_CPUS = 388120154, COMMITTED_LICENSES = 357606869, COMMITTED_LOCAL_SSD_TOTAL_GB = 308393480, + COMMITTED_M3_CPUS = 585985, COMMITTED_MEMORY_OPTIMIZED_CPUS = 489057886, COMMITTED_N2A_CPUS = 40064304, COMMITTED_N2D_CPUS = 125951757, @@ -99108,6 +101478,7 @@ export namespace google { COMMITTED_NVIDIA_P4_GPUS = 347952897, COMMITTED_NVIDIA_T4_GPUS = 139871237, COMMITTED_NVIDIA_V100_GPUS = 219562, + COMMITTED_T2A_CPUS = 296378986, COMMITTED_T2D_CPUS = 382266439, CPUS = 2075595, CPUS_ALL_REGIONS = 470911149, @@ -99118,6 +101489,7 @@ export namespace google { EXTERNAL_VPN_GATEWAYS = 272457134, FIREWALLS = 374485843, FORWARDING_RULES = 432668949, + GLOBAL_EXTERNAL_MANAGED_FORWARDING_RULES = 327611949, GLOBAL_INTERNAL_ADDRESSES = 42738332, GPUS_ALL_REGIONS = 39387177, HEALTH_CHECKS = 289347502, @@ -99139,6 +101511,7 @@ export namespace google { LOCAL_SSD_TOTAL_GB = 330878021, M1_CPUS = 37203366, M2_CPUS = 65832517, + M3_CPUS = 94461668, MACHINE_IMAGES = 446986640, N2A_CPUS = 265855917, N2D_CPUS = 351743370, @@ -99192,6 +101565,7 @@ export namespace google { STATIC_ADDRESSES = 93624049, STATIC_BYOIP_ADDRESSES = 275809649, SUBNETWORKS = 421330469, + T2A_CPUS = 522170599, T2D_CPUS = 71187140, TARGET_HTTPS_PROXIES = 219522506, TARGET_HTTP_PROXIES = 164117155, @@ -104060,6 +106434,9 @@ export namespace google { /** Reservation selfLink */ selfLink?: (string|null); + /** Reservation shareSettings */ + shareSettings?: (google.cloud.compute.v1.IShareSettings|null); + /** Reservation specificReservation */ specificReservation?: (google.cloud.compute.v1.IAllocationSpecificSKUReservation|null); @@ -104106,6 +106483,9 @@ export namespace google { /** Reservation selfLink. */ public selfLink?: (string|null); + /** Reservation shareSettings. */ + public shareSettings?: (google.cloud.compute.v1.IShareSettings|null); + /** Reservation specificReservation. */ public specificReservation?: (google.cloud.compute.v1.IAllocationSpecificSKUReservation|null); @@ -104142,6 +106522,9 @@ export namespace google { /** Reservation _selfLink. */ public _selfLink?: "selfLink"; + /** Reservation _shareSettings. */ + public _shareSettings?: "shareSettings"; + /** Reservation _specificReservation. */ public _specificReservation?: "specificReservation"; @@ -107763,6 +110146,117 @@ export namespace google { } } + /** Properties of a ResumeInstanceRequest. */ + interface IResumeInstanceRequest { + + /** ResumeInstanceRequest instance */ + instance?: (string|null); + + /** ResumeInstanceRequest project */ + project?: (string|null); + + /** ResumeInstanceRequest requestId */ + requestId?: (string|null); + + /** ResumeInstanceRequest zone */ + zone?: (string|null); + } + + /** Represents a ResumeInstanceRequest. */ + class ResumeInstanceRequest implements IResumeInstanceRequest { + + /** + * Constructs a new ResumeInstanceRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IResumeInstanceRequest); + + /** ResumeInstanceRequest instance. */ + public instance: string; + + /** ResumeInstanceRequest project. */ + public project: string; + + /** ResumeInstanceRequest requestId. */ + public requestId?: (string|null); + + /** ResumeInstanceRequest zone. */ + public zone: string; + + /** ResumeInstanceRequest _requestId. */ + public _requestId?: "requestId"; + + /** + * Creates a new ResumeInstanceRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ResumeInstanceRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IResumeInstanceRequest): google.cloud.compute.v1.ResumeInstanceRequest; + + /** + * Encodes the specified ResumeInstanceRequest message. Does not implicitly {@link google.cloud.compute.v1.ResumeInstanceRequest.verify|verify} messages. + * @param message ResumeInstanceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IResumeInstanceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ResumeInstanceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ResumeInstanceRequest.verify|verify} messages. + * @param message ResumeInstanceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IResumeInstanceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ResumeInstanceRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ResumeInstanceRequest + * @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.ResumeInstanceRequest; + + /** + * Decodes a ResumeInstanceRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ResumeInstanceRequest + * @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.ResumeInstanceRequest; + + /** + * Verifies a ResumeInstanceRequest 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 ResumeInstanceRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ResumeInstanceRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.ResumeInstanceRequest; + + /** + * Creates a plain object from a ResumeInstanceRequest message. Also converts values to other types if specified. + * @param message ResumeInstanceRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.ResumeInstanceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ResumeInstanceRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of a Route. */ interface IRoute { @@ -108871,12 +111365,18 @@ export namespace google { /** RouterBgpPeer enable */ enable?: (string|null); + /** RouterBgpPeer enableIpv6 */ + enableIpv6?: (boolean|null); + /** RouterBgpPeer interfaceName */ interfaceName?: (string|null); /** RouterBgpPeer ipAddress */ ipAddress?: (string|null); + /** RouterBgpPeer ipv6NexthopAddress */ + ipv6NexthopAddress?: (string|null); + /** RouterBgpPeer managementType */ managementType?: (string|null); @@ -108889,6 +111389,9 @@ export namespace google { /** RouterBgpPeer peerIpAddress */ peerIpAddress?: (string|null); + /** RouterBgpPeer peerIpv6NexthopAddress */ + peerIpv6NexthopAddress?: (string|null); + /** RouterBgpPeer routerApplianceInstance */ routerApplianceInstance?: (string|null); } @@ -108920,12 +111423,18 @@ export namespace google { /** RouterBgpPeer enable. */ public enable?: (string|null); + /** RouterBgpPeer enableIpv6. */ + public enableIpv6?: (boolean|null); + /** RouterBgpPeer interfaceName. */ public interfaceName?: (string|null); /** RouterBgpPeer ipAddress. */ public ipAddress?: (string|null); + /** RouterBgpPeer ipv6NexthopAddress. */ + public ipv6NexthopAddress?: (string|null); + /** RouterBgpPeer managementType. */ public managementType?: (string|null); @@ -108938,6 +111447,9 @@ export namespace google { /** RouterBgpPeer peerIpAddress. */ public peerIpAddress?: (string|null); + /** RouterBgpPeer peerIpv6NexthopAddress. */ + public peerIpv6NexthopAddress?: (string|null); + /** RouterBgpPeer routerApplianceInstance. */ public routerApplianceInstance?: (string|null); @@ -108953,12 +111465,18 @@ export namespace google { /** RouterBgpPeer _enable. */ public _enable?: "enable"; + /** RouterBgpPeer _enableIpv6. */ + public _enableIpv6?: "enableIpv6"; + /** RouterBgpPeer _interfaceName. */ public _interfaceName?: "interfaceName"; /** RouterBgpPeer _ipAddress. */ public _ipAddress?: "ipAddress"; + /** RouterBgpPeer _ipv6NexthopAddress. */ + public _ipv6NexthopAddress?: "ipv6NexthopAddress"; + /** RouterBgpPeer _managementType. */ public _managementType?: "managementType"; @@ -108971,6 +111489,9 @@ export namespace google { /** RouterBgpPeer _peerIpAddress. */ public _peerIpAddress?: "peerIpAddress"; + /** RouterBgpPeer _peerIpv6NexthopAddress. */ + public _peerIpv6NexthopAddress?: "peerIpv6NexthopAddress"; + /** RouterBgpPeer _routerApplianceInstance. */ public _routerApplianceInstance?: "routerApplianceInstance"; @@ -109513,6 +112034,9 @@ export namespace google { /** RouterNat drainNatIps */ drainNatIps?: (string[]|null); + /** RouterNat enableDynamicPortAllocation */ + enableDynamicPortAllocation?: (boolean|null); + /** RouterNat enableEndpointIndependentMapping */ enableEndpointIndependentMapping?: (boolean|null); @@ -109522,6 +112046,9 @@ export namespace google { /** RouterNat logConfig */ logConfig?: (google.cloud.compute.v1.IRouterNatLogConfig|null); + /** RouterNat maxPortsPerVm */ + maxPortsPerVm?: (number|null); + /** RouterNat minPortsPerVm */ minPortsPerVm?: (number|null); @@ -109568,6 +112095,9 @@ export namespace google { /** RouterNat drainNatIps. */ public drainNatIps: string[]; + /** RouterNat enableDynamicPortAllocation. */ + public enableDynamicPortAllocation?: (boolean|null); + /** RouterNat enableEndpointIndependentMapping. */ public enableEndpointIndependentMapping?: (boolean|null); @@ -109577,6 +112107,9 @@ export namespace google { /** RouterNat logConfig. */ public logConfig?: (google.cloud.compute.v1.IRouterNatLogConfig|null); + /** RouterNat maxPortsPerVm. */ + public maxPortsPerVm?: (number|null); + /** RouterNat minPortsPerVm. */ public minPortsPerVm?: (number|null); @@ -109610,6 +112143,9 @@ export namespace google { /** RouterNat udpIdleTimeoutSec. */ public udpIdleTimeoutSec?: (number|null); + /** RouterNat _enableDynamicPortAllocation. */ + public _enableDynamicPortAllocation?: "enableDynamicPortAllocation"; + /** RouterNat _enableEndpointIndependentMapping. */ public _enableEndpointIndependentMapping?: "enableEndpointIndependentMapping"; @@ -109619,6 +112155,9 @@ export namespace google { /** RouterNat _logConfig. */ public _logConfig?: "logConfig"; + /** RouterNat _maxPortsPerVm. */ + public _maxPortsPerVm?: "maxPortsPerVm"; + /** RouterNat _minPortsPerVm. */ public _minPortsPerVm?: "minPortsPerVm"; @@ -110300,6 +112839,9 @@ export namespace google { /** RouterStatusBgpPeerStatus advertisedRoutes */ advertisedRoutes?: (google.cloud.compute.v1.IRoute[]|null); + /** RouterStatusBgpPeerStatus bfdStatus */ + bfdStatus?: (google.cloud.compute.v1.IBfdStatus|null); + /** RouterStatusBgpPeerStatus ipAddress */ ipAddress?: (string|null); @@ -110343,6 +112885,9 @@ export namespace google { /** RouterStatusBgpPeerStatus advertisedRoutes. */ public advertisedRoutes: google.cloud.compute.v1.IRoute[]; + /** RouterStatusBgpPeerStatus bfdStatus. */ + public bfdStatus?: (google.cloud.compute.v1.IBfdStatus|null); + /** RouterStatusBgpPeerStatus ipAddress. */ public ipAddress?: (string|null); @@ -110373,6 +112918,9 @@ export namespace google { /** RouterStatusBgpPeerStatus uptimeSeconds. */ public uptimeSeconds?: (string|null); + /** RouterStatusBgpPeerStatus _bfdStatus. */ + public _bfdStatus?: "bfdStatus"; + /** RouterStatusBgpPeerStatus _ipAddress. */ public _ipAddress?: "ipAddress"; @@ -111351,6 +113899,389 @@ export namespace google { } } + /** Properties of a SavedAttachedDisk. */ + interface ISavedAttachedDisk { + + /** SavedAttachedDisk autoDelete */ + autoDelete?: (boolean|null); + + /** SavedAttachedDisk boot */ + boot?: (boolean|null); + + /** SavedAttachedDisk deviceName */ + deviceName?: (string|null); + + /** SavedAttachedDisk diskEncryptionKey */ + diskEncryptionKey?: (google.cloud.compute.v1.ICustomerEncryptionKey|null); + + /** SavedAttachedDisk diskSizeGb */ + diskSizeGb?: (number|Long|string|null); + + /** SavedAttachedDisk diskType */ + diskType?: (string|null); + + /** SavedAttachedDisk guestOsFeatures */ + guestOsFeatures?: (google.cloud.compute.v1.IGuestOsFeature[]|null); + + /** SavedAttachedDisk index */ + index?: (number|null); + + /** SavedAttachedDisk interface */ + "interface"?: (string|null); + + /** SavedAttachedDisk kind */ + kind?: (string|null); + + /** SavedAttachedDisk licenses */ + licenses?: (string[]|null); + + /** SavedAttachedDisk mode */ + mode?: (string|null); + + /** SavedAttachedDisk source */ + source?: (string|null); + + /** SavedAttachedDisk storageBytes */ + storageBytes?: (number|Long|string|null); + + /** SavedAttachedDisk storageBytesStatus */ + storageBytesStatus?: (string|null); + + /** SavedAttachedDisk type */ + type?: (string|null); + } + + /** Represents a SavedAttachedDisk. */ + class SavedAttachedDisk implements ISavedAttachedDisk { + + /** + * Constructs a new SavedAttachedDisk. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ISavedAttachedDisk); + + /** SavedAttachedDisk autoDelete. */ + public autoDelete?: (boolean|null); + + /** SavedAttachedDisk boot. */ + public boot?: (boolean|null); + + /** SavedAttachedDisk deviceName. */ + public deviceName?: (string|null); + + /** SavedAttachedDisk diskEncryptionKey. */ + public diskEncryptionKey?: (google.cloud.compute.v1.ICustomerEncryptionKey|null); + + /** SavedAttachedDisk diskSizeGb. */ + public diskSizeGb?: (number|Long|string|null); + + /** SavedAttachedDisk diskType. */ + public diskType?: (string|null); + + /** SavedAttachedDisk guestOsFeatures. */ + public guestOsFeatures: google.cloud.compute.v1.IGuestOsFeature[]; + + /** SavedAttachedDisk index. */ + public index?: (number|null); + + /** SavedAttachedDisk interface. */ + public interface?: (string|null); + + /** SavedAttachedDisk kind. */ + public kind?: (string|null); + + /** SavedAttachedDisk licenses. */ + public licenses: string[]; + + /** SavedAttachedDisk mode. */ + public mode?: (string|null); + + /** SavedAttachedDisk source. */ + public source?: (string|null); + + /** SavedAttachedDisk storageBytes. */ + public storageBytes?: (number|Long|string|null); + + /** SavedAttachedDisk storageBytesStatus. */ + public storageBytesStatus?: (string|null); + + /** SavedAttachedDisk type. */ + public type?: (string|null); + + /** SavedAttachedDisk _autoDelete. */ + public _autoDelete?: "autoDelete"; + + /** SavedAttachedDisk _boot. */ + public _boot?: "boot"; + + /** SavedAttachedDisk _deviceName. */ + public _deviceName?: "deviceName"; + + /** SavedAttachedDisk _diskEncryptionKey. */ + public _diskEncryptionKey?: "diskEncryptionKey"; + + /** SavedAttachedDisk _diskSizeGb. */ + public _diskSizeGb?: "diskSizeGb"; + + /** SavedAttachedDisk _diskType. */ + public _diskType?: "diskType"; + + /** SavedAttachedDisk _index. */ + public _index?: "index"; + + /** SavedAttachedDisk _interface. */ + public _interface?: "interface"; + + /** SavedAttachedDisk _kind. */ + public _kind?: "kind"; + + /** SavedAttachedDisk _mode. */ + public _mode?: "mode"; + + /** SavedAttachedDisk _source. */ + public _source?: "source"; + + /** SavedAttachedDisk _storageBytes. */ + public _storageBytes?: "storageBytes"; + + /** SavedAttachedDisk _storageBytesStatus. */ + public _storageBytesStatus?: "storageBytesStatus"; + + /** SavedAttachedDisk _type. */ + public _type?: "type"; + + /** + * Creates a new SavedAttachedDisk instance using the specified properties. + * @param [properties] Properties to set + * @returns SavedAttachedDisk instance + */ + public static create(properties?: google.cloud.compute.v1.ISavedAttachedDisk): google.cloud.compute.v1.SavedAttachedDisk; + + /** + * Encodes the specified SavedAttachedDisk message. Does not implicitly {@link google.cloud.compute.v1.SavedAttachedDisk.verify|verify} messages. + * @param message SavedAttachedDisk message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ISavedAttachedDisk, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SavedAttachedDisk message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SavedAttachedDisk.verify|verify} messages. + * @param message SavedAttachedDisk message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ISavedAttachedDisk, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SavedAttachedDisk message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SavedAttachedDisk + * @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.SavedAttachedDisk; + + /** + * Decodes a SavedAttachedDisk message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SavedAttachedDisk + * @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.SavedAttachedDisk; + + /** + * Verifies a SavedAttachedDisk 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 SavedAttachedDisk message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SavedAttachedDisk + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.SavedAttachedDisk; + + /** + * Creates a plain object from a SavedAttachedDisk message. Also converts values to other types if specified. + * @param message SavedAttachedDisk + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.SavedAttachedDisk, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SavedAttachedDisk to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace SavedAttachedDisk { + + /** Interface enum. */ + enum Interface { + UNDEFINED_INTERFACE = 0, + NVME = 2408800, + SCSI = 2539686 + } + + /** Mode enum. */ + enum Mode { + UNDEFINED_MODE = 0, + READ_ONLY = 91950261, + READ_WRITE = 173607894 + } + + /** StorageBytesStatus enum. */ + enum StorageBytesStatus { + UNDEFINED_STORAGE_BYTES_STATUS = 0, + UPDATING = 494614342, + UP_TO_DATE = 101306702 + } + + /** Type enum. */ + enum Type { + UNDEFINED_TYPE = 0, + PERSISTENT = 460683927, + SCRATCH = 496778970 + } + } + + /** Properties of a SavedDisk. */ + interface ISavedDisk { + + /** SavedDisk kind */ + kind?: (string|null); + + /** SavedDisk sourceDisk */ + sourceDisk?: (string|null); + + /** SavedDisk storageBytes */ + storageBytes?: (number|Long|string|null); + + /** SavedDisk storageBytesStatus */ + storageBytesStatus?: (string|null); + } + + /** Represents a SavedDisk. */ + class SavedDisk implements ISavedDisk { + + /** + * Constructs a new SavedDisk. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ISavedDisk); + + /** SavedDisk kind. */ + public kind?: (string|null); + + /** SavedDisk sourceDisk. */ + public sourceDisk?: (string|null); + + /** SavedDisk storageBytes. */ + public storageBytes?: (number|Long|string|null); + + /** SavedDisk storageBytesStatus. */ + public storageBytesStatus?: (string|null); + + /** SavedDisk _kind. */ + public _kind?: "kind"; + + /** SavedDisk _sourceDisk. */ + public _sourceDisk?: "sourceDisk"; + + /** SavedDisk _storageBytes. */ + public _storageBytes?: "storageBytes"; + + /** SavedDisk _storageBytesStatus. */ + public _storageBytesStatus?: "storageBytesStatus"; + + /** + * Creates a new SavedDisk instance using the specified properties. + * @param [properties] Properties to set + * @returns SavedDisk instance + */ + public static create(properties?: google.cloud.compute.v1.ISavedDisk): google.cloud.compute.v1.SavedDisk; + + /** + * Encodes the specified SavedDisk message. Does not implicitly {@link google.cloud.compute.v1.SavedDisk.verify|verify} messages. + * @param message SavedDisk message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ISavedDisk, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SavedDisk message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SavedDisk.verify|verify} messages. + * @param message SavedDisk message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ISavedDisk, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SavedDisk message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SavedDisk + * @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.SavedDisk; + + /** + * Decodes a SavedDisk message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SavedDisk + * @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.SavedDisk; + + /** + * Verifies a SavedDisk 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 SavedDisk message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SavedDisk + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.SavedDisk; + + /** + * Creates a plain object from a SavedDisk message. Also converts values to other types if specified. + * @param message SavedDisk + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.SavedDisk, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SavedDisk to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace SavedDisk { + + /** StorageBytesStatus enum. */ + enum StorageBytesStatus { + UNDEFINED_STORAGE_BYTES_STATUS = 0, + UPDATING = 494614342, + UP_TO_DATE = 101306702 + } + } + /** Properties of a ScalingScheduleStatus. */ interface IScalingScheduleStatus { @@ -111480,6 +114411,9 @@ export namespace google { /** Scheduling automaticRestart */ automaticRestart?: (boolean|null); + /** Scheduling instanceTerminationAction */ + instanceTerminationAction?: (string|null); + /** Scheduling locationHint */ locationHint?: (string|null); @@ -111494,6 +114428,9 @@ export namespace google { /** Scheduling preemptible */ preemptible?: (boolean|null); + + /** Scheduling provisioningModel */ + provisioningModel?: (string|null); } /** Represents a Scheduling. */ @@ -111508,6 +114445,9 @@ export namespace google { /** Scheduling automaticRestart. */ public automaticRestart?: (boolean|null); + /** Scheduling instanceTerminationAction. */ + public instanceTerminationAction?: (string|null); + /** Scheduling locationHint. */ public locationHint?: (string|null); @@ -111523,9 +114463,15 @@ export namespace google { /** Scheduling preemptible. */ public preemptible?: (boolean|null); + /** Scheduling provisioningModel. */ + public provisioningModel?: (string|null); + /** Scheduling _automaticRestart. */ public _automaticRestart?: "automaticRestart"; + /** Scheduling _instanceTerminationAction. */ + public _instanceTerminationAction?: "instanceTerminationAction"; + /** Scheduling _locationHint. */ public _locationHint?: "locationHint"; @@ -111538,6 +114484,9 @@ export namespace google { /** Scheduling _preemptible. */ public _preemptible?: "preemptible"; + /** Scheduling _provisioningModel. */ + public _provisioningModel?: "provisioningModel"; + /** * Creates a new Scheduling instance using the specified properties. * @param [properties] Properties to set @@ -111611,12 +114560,27 @@ export namespace google { namespace Scheduling { + /** InstanceTerminationAction enum. */ + enum InstanceTerminationAction { + UNDEFINED_INSTANCE_TERMINATION_ACTION = 0, + DELETE = 402225579, + INSTANCE_TERMINATION_ACTION_UNSPECIFIED = 92954803, + STOP = 2555906 + } + /** OnHostMaintenance enum. */ enum OnHostMaintenance { UNDEFINED_ON_HOST_MAINTENANCE = 0, MIGRATE = 165699979, TERMINATE = 527617601 } + + /** ProvisioningModel enum. */ + enum ProvisioningModel { + UNDEFINED_PROVISIONING_MODEL = 0, + SPOT = 2552066, + STANDARD = 484642493 + } } /** Properties of a SchedulingNodeAffinity. */ @@ -112146,11 +115110,17 @@ export namespace google { /** SecurityPolicy name */ name?: (string|null); + /** SecurityPolicy recaptchaOptionsConfig */ + recaptchaOptionsConfig?: (google.cloud.compute.v1.ISecurityPolicyRecaptchaOptionsConfig|null); + /** SecurityPolicy rules */ rules?: (google.cloud.compute.v1.ISecurityPolicyRule[]|null); /** SecurityPolicy selfLink */ selfLink?: (string|null); + + /** SecurityPolicy type */ + type?: (string|null); } /** Represents a SecurityPolicy. */ @@ -112186,12 +115156,18 @@ export namespace google { /** SecurityPolicy name. */ public name?: (string|null); + /** SecurityPolicy recaptchaOptionsConfig. */ + public recaptchaOptionsConfig?: (google.cloud.compute.v1.ISecurityPolicyRecaptchaOptionsConfig|null); + /** SecurityPolicy rules. */ public rules: google.cloud.compute.v1.ISecurityPolicyRule[]; /** SecurityPolicy selfLink. */ public selfLink?: (string|null); + /** SecurityPolicy type. */ + public type?: (string|null); + /** SecurityPolicy _adaptiveProtectionConfig. */ public _adaptiveProtectionConfig?: "adaptiveProtectionConfig"; @@ -112216,9 +115192,15 @@ export namespace google { /** SecurityPolicy _name. */ public _name?: "name"; + /** SecurityPolicy _recaptchaOptionsConfig. */ + public _recaptchaOptionsConfig?: "recaptchaOptionsConfig"; + /** SecurityPolicy _selfLink. */ public _selfLink?: "selfLink"; + /** SecurityPolicy _type. */ + public _type?: "type"; + /** * Creates a new SecurityPolicy instance using the specified properties. * @param [properties] Properties to set @@ -112290,6 +115272,16 @@ export namespace google { public toJSON(): { [k: string]: any }; } + namespace SecurityPolicy { + + /** Type enum. */ + enum Type { + UNDEFINED_TYPE = 0, + CLOUD_ARMOR = 260640373, + CLOUD_ARMOR_EDGE = 250728775 + } + } + /** Properties of a SecurityPolicyAdaptiveProtectionConfig. */ interface ISecurityPolicyAdaptiveProtectionConfig { @@ -112740,6 +115732,99 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** Properties of a SecurityPolicyRecaptchaOptionsConfig. */ + interface ISecurityPolicyRecaptchaOptionsConfig { + + /** SecurityPolicyRecaptchaOptionsConfig redirectSiteKey */ + redirectSiteKey?: (string|null); + } + + /** Represents a SecurityPolicyRecaptchaOptionsConfig. */ + class SecurityPolicyRecaptchaOptionsConfig implements ISecurityPolicyRecaptchaOptionsConfig { + + /** + * Constructs a new SecurityPolicyRecaptchaOptionsConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ISecurityPolicyRecaptchaOptionsConfig); + + /** SecurityPolicyRecaptchaOptionsConfig redirectSiteKey. */ + public redirectSiteKey?: (string|null); + + /** SecurityPolicyRecaptchaOptionsConfig _redirectSiteKey. */ + public _redirectSiteKey?: "redirectSiteKey"; + + /** + * Creates a new SecurityPolicyRecaptchaOptionsConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns SecurityPolicyRecaptchaOptionsConfig instance + */ + public static create(properties?: google.cloud.compute.v1.ISecurityPolicyRecaptchaOptionsConfig): google.cloud.compute.v1.SecurityPolicyRecaptchaOptionsConfig; + + /** + * Encodes the specified SecurityPolicyRecaptchaOptionsConfig message. Does not implicitly {@link google.cloud.compute.v1.SecurityPolicyRecaptchaOptionsConfig.verify|verify} messages. + * @param message SecurityPolicyRecaptchaOptionsConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ISecurityPolicyRecaptchaOptionsConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SecurityPolicyRecaptchaOptionsConfig message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SecurityPolicyRecaptchaOptionsConfig.verify|verify} messages. + * @param message SecurityPolicyRecaptchaOptionsConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ISecurityPolicyRecaptchaOptionsConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SecurityPolicyRecaptchaOptionsConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SecurityPolicyRecaptchaOptionsConfig + * @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.SecurityPolicyRecaptchaOptionsConfig; + + /** + * Decodes a SecurityPolicyRecaptchaOptionsConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SecurityPolicyRecaptchaOptionsConfig + * @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.SecurityPolicyRecaptchaOptionsConfig; + + /** + * Verifies a SecurityPolicyRecaptchaOptionsConfig 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 SecurityPolicyRecaptchaOptionsConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SecurityPolicyRecaptchaOptionsConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.SecurityPolicyRecaptchaOptionsConfig; + + /** + * Creates a plain object from a SecurityPolicyRecaptchaOptionsConfig message. Also converts values to other types if specified. + * @param message SecurityPolicyRecaptchaOptionsConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.SecurityPolicyRecaptchaOptionsConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SecurityPolicyRecaptchaOptionsConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of a SecurityPolicyReference. */ interface ISecurityPolicyReference { @@ -112842,6 +115927,9 @@ export namespace google { /** SecurityPolicyRule description */ description?: (string|null); + /** SecurityPolicyRule headerAction */ + headerAction?: (google.cloud.compute.v1.ISecurityPolicyRuleHttpHeaderAction|null); + /** SecurityPolicyRule kind */ kind?: (string|null); @@ -112853,6 +115941,12 @@ export namespace google { /** SecurityPolicyRule priority */ priority?: (number|null); + + /** SecurityPolicyRule rateLimitOptions */ + rateLimitOptions?: (google.cloud.compute.v1.ISecurityPolicyRuleRateLimitOptions|null); + + /** SecurityPolicyRule redirectOptions */ + redirectOptions?: (google.cloud.compute.v1.ISecurityPolicyRuleRedirectOptions|null); } /** Represents a SecurityPolicyRule. */ @@ -112870,6 +115964,9 @@ export namespace google { /** SecurityPolicyRule description. */ public description?: (string|null); + /** SecurityPolicyRule headerAction. */ + public headerAction?: (google.cloud.compute.v1.ISecurityPolicyRuleHttpHeaderAction|null); + /** SecurityPolicyRule kind. */ public kind?: (string|null); @@ -112882,12 +115979,21 @@ export namespace google { /** SecurityPolicyRule priority. */ public priority?: (number|null); + /** SecurityPolicyRule rateLimitOptions. */ + public rateLimitOptions?: (google.cloud.compute.v1.ISecurityPolicyRuleRateLimitOptions|null); + + /** SecurityPolicyRule redirectOptions. */ + public redirectOptions?: (google.cloud.compute.v1.ISecurityPolicyRuleRedirectOptions|null); + /** SecurityPolicyRule _action. */ public _action?: "action"; /** SecurityPolicyRule _description. */ public _description?: "description"; + /** SecurityPolicyRule _headerAction. */ + public _headerAction?: "headerAction"; + /** SecurityPolicyRule _kind. */ public _kind?: "kind"; @@ -112900,6 +116006,12 @@ export namespace google { /** SecurityPolicyRule _priority. */ public _priority?: "priority"; + /** SecurityPolicyRule _rateLimitOptions. */ + public _rateLimitOptions?: "rateLimitOptions"; + + /** SecurityPolicyRule _redirectOptions. */ + public _redirectOptions?: "redirectOptions"; + /** * Creates a new SecurityPolicyRule instance using the specified properties. * @param [properties] Properties to set @@ -112971,6 +116083,198 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** Properties of a SecurityPolicyRuleHttpHeaderAction. */ + interface ISecurityPolicyRuleHttpHeaderAction { + + /** SecurityPolicyRuleHttpHeaderAction requestHeadersToAdds */ + requestHeadersToAdds?: (google.cloud.compute.v1.ISecurityPolicyRuleHttpHeaderActionHttpHeaderOption[]|null); + } + + /** Represents a SecurityPolicyRuleHttpHeaderAction. */ + class SecurityPolicyRuleHttpHeaderAction implements ISecurityPolicyRuleHttpHeaderAction { + + /** + * Constructs a new SecurityPolicyRuleHttpHeaderAction. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ISecurityPolicyRuleHttpHeaderAction); + + /** SecurityPolicyRuleHttpHeaderAction requestHeadersToAdds. */ + public requestHeadersToAdds: google.cloud.compute.v1.ISecurityPolicyRuleHttpHeaderActionHttpHeaderOption[]; + + /** + * Creates a new SecurityPolicyRuleHttpHeaderAction instance using the specified properties. + * @param [properties] Properties to set + * @returns SecurityPolicyRuleHttpHeaderAction instance + */ + public static create(properties?: google.cloud.compute.v1.ISecurityPolicyRuleHttpHeaderAction): google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderAction; + + /** + * Encodes the specified SecurityPolicyRuleHttpHeaderAction message. Does not implicitly {@link google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderAction.verify|verify} messages. + * @param message SecurityPolicyRuleHttpHeaderAction message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ISecurityPolicyRuleHttpHeaderAction, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SecurityPolicyRuleHttpHeaderAction message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderAction.verify|verify} messages. + * @param message SecurityPolicyRuleHttpHeaderAction message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ISecurityPolicyRuleHttpHeaderAction, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SecurityPolicyRuleHttpHeaderAction message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SecurityPolicyRuleHttpHeaderAction + * @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.SecurityPolicyRuleHttpHeaderAction; + + /** + * Decodes a SecurityPolicyRuleHttpHeaderAction message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SecurityPolicyRuleHttpHeaderAction + * @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.SecurityPolicyRuleHttpHeaderAction; + + /** + * Verifies a SecurityPolicyRuleHttpHeaderAction 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 SecurityPolicyRuleHttpHeaderAction message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SecurityPolicyRuleHttpHeaderAction + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderAction; + + /** + * Creates a plain object from a SecurityPolicyRuleHttpHeaderAction message. Also converts values to other types if specified. + * @param message SecurityPolicyRuleHttpHeaderAction + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderAction, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SecurityPolicyRuleHttpHeaderAction to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a SecurityPolicyRuleHttpHeaderActionHttpHeaderOption. */ + interface ISecurityPolicyRuleHttpHeaderActionHttpHeaderOption { + + /** SecurityPolicyRuleHttpHeaderActionHttpHeaderOption headerName */ + headerName?: (string|null); + + /** SecurityPolicyRuleHttpHeaderActionHttpHeaderOption headerValue */ + headerValue?: (string|null); + } + + /** Represents a SecurityPolicyRuleHttpHeaderActionHttpHeaderOption. */ + class SecurityPolicyRuleHttpHeaderActionHttpHeaderOption implements ISecurityPolicyRuleHttpHeaderActionHttpHeaderOption { + + /** + * Constructs a new SecurityPolicyRuleHttpHeaderActionHttpHeaderOption. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ISecurityPolicyRuleHttpHeaderActionHttpHeaderOption); + + /** SecurityPolicyRuleHttpHeaderActionHttpHeaderOption headerName. */ + public headerName?: (string|null); + + /** SecurityPolicyRuleHttpHeaderActionHttpHeaderOption headerValue. */ + public headerValue?: (string|null); + + /** SecurityPolicyRuleHttpHeaderActionHttpHeaderOption _headerName. */ + public _headerName?: "headerName"; + + /** SecurityPolicyRuleHttpHeaderActionHttpHeaderOption _headerValue. */ + public _headerValue?: "headerValue"; + + /** + * Creates a new SecurityPolicyRuleHttpHeaderActionHttpHeaderOption instance using the specified properties. + * @param [properties] Properties to set + * @returns SecurityPolicyRuleHttpHeaderActionHttpHeaderOption instance + */ + public static create(properties?: google.cloud.compute.v1.ISecurityPolicyRuleHttpHeaderActionHttpHeaderOption): google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderActionHttpHeaderOption; + + /** + * Encodes the specified SecurityPolicyRuleHttpHeaderActionHttpHeaderOption message. Does not implicitly {@link google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.verify|verify} messages. + * @param message SecurityPolicyRuleHttpHeaderActionHttpHeaderOption message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ISecurityPolicyRuleHttpHeaderActionHttpHeaderOption, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SecurityPolicyRuleHttpHeaderActionHttpHeaderOption message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.verify|verify} messages. + * @param message SecurityPolicyRuleHttpHeaderActionHttpHeaderOption message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ISecurityPolicyRuleHttpHeaderActionHttpHeaderOption, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SecurityPolicyRuleHttpHeaderActionHttpHeaderOption message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SecurityPolicyRuleHttpHeaderActionHttpHeaderOption + * @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.SecurityPolicyRuleHttpHeaderActionHttpHeaderOption; + + /** + * Decodes a SecurityPolicyRuleHttpHeaderActionHttpHeaderOption message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SecurityPolicyRuleHttpHeaderActionHttpHeaderOption + * @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.SecurityPolicyRuleHttpHeaderActionHttpHeaderOption; + + /** + * Verifies a SecurityPolicyRuleHttpHeaderActionHttpHeaderOption 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 SecurityPolicyRuleHttpHeaderActionHttpHeaderOption message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SecurityPolicyRuleHttpHeaderActionHttpHeaderOption + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderActionHttpHeaderOption; + + /** + * Creates a plain object from a SecurityPolicyRuleHttpHeaderActionHttpHeaderOption message. Also converts values to other types if specified. + * @param message SecurityPolicyRuleHttpHeaderActionHttpHeaderOption + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderActionHttpHeaderOption, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SecurityPolicyRuleHttpHeaderActionHttpHeaderOption to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of a SecurityPolicyRuleMatcher. */ interface ISecurityPolicyRuleMatcher { @@ -113181,6 +116485,389 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** Properties of a SecurityPolicyRuleRateLimitOptions. */ + interface ISecurityPolicyRuleRateLimitOptions { + + /** SecurityPolicyRuleRateLimitOptions banDurationSec */ + banDurationSec?: (number|null); + + /** SecurityPolicyRuleRateLimitOptions banThreshold */ + banThreshold?: (google.cloud.compute.v1.ISecurityPolicyRuleRateLimitOptionsThreshold|null); + + /** SecurityPolicyRuleRateLimitOptions conformAction */ + conformAction?: (string|null); + + /** SecurityPolicyRuleRateLimitOptions enforceOnKey */ + enforceOnKey?: (string|null); + + /** SecurityPolicyRuleRateLimitOptions enforceOnKeyName */ + enforceOnKeyName?: (string|null); + + /** SecurityPolicyRuleRateLimitOptions exceedAction */ + exceedAction?: (string|null); + + /** SecurityPolicyRuleRateLimitOptions exceedRedirectOptions */ + exceedRedirectOptions?: (google.cloud.compute.v1.ISecurityPolicyRuleRedirectOptions|null); + + /** SecurityPolicyRuleRateLimitOptions rateLimitThreshold */ + rateLimitThreshold?: (google.cloud.compute.v1.ISecurityPolicyRuleRateLimitOptionsThreshold|null); + } + + /** Represents a SecurityPolicyRuleRateLimitOptions. */ + class SecurityPolicyRuleRateLimitOptions implements ISecurityPolicyRuleRateLimitOptions { + + /** + * Constructs a new SecurityPolicyRuleRateLimitOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ISecurityPolicyRuleRateLimitOptions); + + /** SecurityPolicyRuleRateLimitOptions banDurationSec. */ + public banDurationSec?: (number|null); + + /** SecurityPolicyRuleRateLimitOptions banThreshold. */ + public banThreshold?: (google.cloud.compute.v1.ISecurityPolicyRuleRateLimitOptionsThreshold|null); + + /** SecurityPolicyRuleRateLimitOptions conformAction. */ + public conformAction?: (string|null); + + /** SecurityPolicyRuleRateLimitOptions enforceOnKey. */ + public enforceOnKey?: (string|null); + + /** SecurityPolicyRuleRateLimitOptions enforceOnKeyName. */ + public enforceOnKeyName?: (string|null); + + /** SecurityPolicyRuleRateLimitOptions exceedAction. */ + public exceedAction?: (string|null); + + /** SecurityPolicyRuleRateLimitOptions exceedRedirectOptions. */ + public exceedRedirectOptions?: (google.cloud.compute.v1.ISecurityPolicyRuleRedirectOptions|null); + + /** SecurityPolicyRuleRateLimitOptions rateLimitThreshold. */ + public rateLimitThreshold?: (google.cloud.compute.v1.ISecurityPolicyRuleRateLimitOptionsThreshold|null); + + /** SecurityPolicyRuleRateLimitOptions _banDurationSec. */ + public _banDurationSec?: "banDurationSec"; + + /** SecurityPolicyRuleRateLimitOptions _banThreshold. */ + public _banThreshold?: "banThreshold"; + + /** SecurityPolicyRuleRateLimitOptions _conformAction. */ + public _conformAction?: "conformAction"; + + /** SecurityPolicyRuleRateLimitOptions _enforceOnKey. */ + public _enforceOnKey?: "enforceOnKey"; + + /** SecurityPolicyRuleRateLimitOptions _enforceOnKeyName. */ + public _enforceOnKeyName?: "enforceOnKeyName"; + + /** SecurityPolicyRuleRateLimitOptions _exceedAction. */ + public _exceedAction?: "exceedAction"; + + /** SecurityPolicyRuleRateLimitOptions _exceedRedirectOptions. */ + public _exceedRedirectOptions?: "exceedRedirectOptions"; + + /** SecurityPolicyRuleRateLimitOptions _rateLimitThreshold. */ + public _rateLimitThreshold?: "rateLimitThreshold"; + + /** + * Creates a new SecurityPolicyRuleRateLimitOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns SecurityPolicyRuleRateLimitOptions instance + */ + public static create(properties?: google.cloud.compute.v1.ISecurityPolicyRuleRateLimitOptions): google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions; + + /** + * Encodes the specified SecurityPolicyRuleRateLimitOptions message. Does not implicitly {@link google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions.verify|verify} messages. + * @param message SecurityPolicyRuleRateLimitOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ISecurityPolicyRuleRateLimitOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SecurityPolicyRuleRateLimitOptions message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions.verify|verify} messages. + * @param message SecurityPolicyRuleRateLimitOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ISecurityPolicyRuleRateLimitOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SecurityPolicyRuleRateLimitOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SecurityPolicyRuleRateLimitOptions + * @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.SecurityPolicyRuleRateLimitOptions; + + /** + * Decodes a SecurityPolicyRuleRateLimitOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SecurityPolicyRuleRateLimitOptions + * @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.SecurityPolicyRuleRateLimitOptions; + + /** + * Verifies a SecurityPolicyRuleRateLimitOptions 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 SecurityPolicyRuleRateLimitOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SecurityPolicyRuleRateLimitOptions + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions; + + /** + * Creates a plain object from a SecurityPolicyRuleRateLimitOptions message. Also converts values to other types if specified. + * @param message SecurityPolicyRuleRateLimitOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SecurityPolicyRuleRateLimitOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace SecurityPolicyRuleRateLimitOptions { + + /** EnforceOnKey enum. */ + enum EnforceOnKey { + UNDEFINED_ENFORCE_ON_KEY = 0, + ALL = 64897, + HTTP_COOKIE = 494981627, + HTTP_HEADER = 91597348, + IP = 2343, + XFF_IP = 438707118 + } + } + + /** Properties of a SecurityPolicyRuleRateLimitOptionsThreshold. */ + interface ISecurityPolicyRuleRateLimitOptionsThreshold { + + /** SecurityPolicyRuleRateLimitOptionsThreshold count */ + count?: (number|null); + + /** SecurityPolicyRuleRateLimitOptionsThreshold intervalSec */ + intervalSec?: (number|null); + } + + /** Represents a SecurityPolicyRuleRateLimitOptionsThreshold. */ + class SecurityPolicyRuleRateLimitOptionsThreshold implements ISecurityPolicyRuleRateLimitOptionsThreshold { + + /** + * Constructs a new SecurityPolicyRuleRateLimitOptionsThreshold. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ISecurityPolicyRuleRateLimitOptionsThreshold); + + /** SecurityPolicyRuleRateLimitOptionsThreshold count. */ + public count?: (number|null); + + /** SecurityPolicyRuleRateLimitOptionsThreshold intervalSec. */ + public intervalSec?: (number|null); + + /** SecurityPolicyRuleRateLimitOptionsThreshold _count. */ + public _count?: "count"; + + /** SecurityPolicyRuleRateLimitOptionsThreshold _intervalSec. */ + public _intervalSec?: "intervalSec"; + + /** + * Creates a new SecurityPolicyRuleRateLimitOptionsThreshold instance using the specified properties. + * @param [properties] Properties to set + * @returns SecurityPolicyRuleRateLimitOptionsThreshold instance + */ + public static create(properties?: google.cloud.compute.v1.ISecurityPolicyRuleRateLimitOptionsThreshold): google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold; + + /** + * Encodes the specified SecurityPolicyRuleRateLimitOptionsThreshold message. Does not implicitly {@link google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold.verify|verify} messages. + * @param message SecurityPolicyRuleRateLimitOptionsThreshold message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ISecurityPolicyRuleRateLimitOptionsThreshold, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SecurityPolicyRuleRateLimitOptionsThreshold message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold.verify|verify} messages. + * @param message SecurityPolicyRuleRateLimitOptionsThreshold message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ISecurityPolicyRuleRateLimitOptionsThreshold, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SecurityPolicyRuleRateLimitOptionsThreshold message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SecurityPolicyRuleRateLimitOptionsThreshold + * @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.SecurityPolicyRuleRateLimitOptionsThreshold; + + /** + * Decodes a SecurityPolicyRuleRateLimitOptionsThreshold message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SecurityPolicyRuleRateLimitOptionsThreshold + * @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.SecurityPolicyRuleRateLimitOptionsThreshold; + + /** + * Verifies a SecurityPolicyRuleRateLimitOptionsThreshold 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 SecurityPolicyRuleRateLimitOptionsThreshold message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SecurityPolicyRuleRateLimitOptionsThreshold + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold; + + /** + * Creates a plain object from a SecurityPolicyRuleRateLimitOptionsThreshold message. Also converts values to other types if specified. + * @param message SecurityPolicyRuleRateLimitOptionsThreshold + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SecurityPolicyRuleRateLimitOptionsThreshold to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a SecurityPolicyRuleRedirectOptions. */ + interface ISecurityPolicyRuleRedirectOptions { + + /** SecurityPolicyRuleRedirectOptions target */ + target?: (string|null); + + /** SecurityPolicyRuleRedirectOptions type */ + type?: (string|null); + } + + /** Represents a SecurityPolicyRuleRedirectOptions. */ + class SecurityPolicyRuleRedirectOptions implements ISecurityPolicyRuleRedirectOptions { + + /** + * Constructs a new SecurityPolicyRuleRedirectOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ISecurityPolicyRuleRedirectOptions); + + /** SecurityPolicyRuleRedirectOptions target. */ + public target?: (string|null); + + /** SecurityPolicyRuleRedirectOptions type. */ + public type?: (string|null); + + /** SecurityPolicyRuleRedirectOptions _target. */ + public _target?: "target"; + + /** SecurityPolicyRuleRedirectOptions _type. */ + public _type?: "type"; + + /** + * Creates a new SecurityPolicyRuleRedirectOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns SecurityPolicyRuleRedirectOptions instance + */ + public static create(properties?: google.cloud.compute.v1.ISecurityPolicyRuleRedirectOptions): google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions; + + /** + * Encodes the specified SecurityPolicyRuleRedirectOptions message. Does not implicitly {@link google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions.verify|verify} messages. + * @param message SecurityPolicyRuleRedirectOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ISecurityPolicyRuleRedirectOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SecurityPolicyRuleRedirectOptions message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions.verify|verify} messages. + * @param message SecurityPolicyRuleRedirectOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ISecurityPolicyRuleRedirectOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SecurityPolicyRuleRedirectOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SecurityPolicyRuleRedirectOptions + * @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.SecurityPolicyRuleRedirectOptions; + + /** + * Decodes a SecurityPolicyRuleRedirectOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SecurityPolicyRuleRedirectOptions + * @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.SecurityPolicyRuleRedirectOptions; + + /** + * Verifies a SecurityPolicyRuleRedirectOptions 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 SecurityPolicyRuleRedirectOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SecurityPolicyRuleRedirectOptions + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions; + + /** + * Creates a plain object from a SecurityPolicyRuleRedirectOptions message. Also converts values to other types if specified. + * @param message SecurityPolicyRuleRedirectOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SecurityPolicyRuleRedirectOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace SecurityPolicyRuleRedirectOptions { + + /** Type enum. */ + enum Type { + UNDEFINED_TYPE = 0, + EXTERNAL_302 = 395733761, + GOOGLE_RECAPTCHA = 518803009 + } + } + /** Properties of a SecuritySettings. */ interface ISecuritySettings { @@ -113819,6 +117506,9 @@ export namespace google { /** ServiceAttachment description */ description?: (string|null); + /** ServiceAttachment domainNames */ + domainNames?: (string[]|null); + /** ServiceAttachment enableProxyProtocol */ enableProxyProtocol?: (boolean|null); @@ -113880,6 +117570,9 @@ export namespace google { /** ServiceAttachment description. */ public description?: (string|null); + /** ServiceAttachment domainNames. */ + public domainNames: string[]; + /** ServiceAttachment enableProxyProtocol. */ public enableProxyProtocol?: (boolean|null); @@ -115436,6 +119129,228 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** Properties of a SetEdgeSecurityPolicyBackendBucketRequest. */ + interface ISetEdgeSecurityPolicyBackendBucketRequest { + + /** SetEdgeSecurityPolicyBackendBucketRequest backendBucket */ + backendBucket?: (string|null); + + /** SetEdgeSecurityPolicyBackendBucketRequest project */ + project?: (string|null); + + /** SetEdgeSecurityPolicyBackendBucketRequest requestId */ + requestId?: (string|null); + + /** SetEdgeSecurityPolicyBackendBucketRequest securityPolicyReferenceResource */ + securityPolicyReferenceResource?: (google.cloud.compute.v1.ISecurityPolicyReference|null); + } + + /** Represents a SetEdgeSecurityPolicyBackendBucketRequest. */ + class SetEdgeSecurityPolicyBackendBucketRequest implements ISetEdgeSecurityPolicyBackendBucketRequest { + + /** + * Constructs a new SetEdgeSecurityPolicyBackendBucketRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ISetEdgeSecurityPolicyBackendBucketRequest); + + /** SetEdgeSecurityPolicyBackendBucketRequest backendBucket. */ + public backendBucket: string; + + /** SetEdgeSecurityPolicyBackendBucketRequest project. */ + public project: string; + + /** SetEdgeSecurityPolicyBackendBucketRequest requestId. */ + public requestId?: (string|null); + + /** SetEdgeSecurityPolicyBackendBucketRequest securityPolicyReferenceResource. */ + public securityPolicyReferenceResource?: (google.cloud.compute.v1.ISecurityPolicyReference|null); + + /** SetEdgeSecurityPolicyBackendBucketRequest _requestId. */ + public _requestId?: "requestId"; + + /** + * Creates a new SetEdgeSecurityPolicyBackendBucketRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SetEdgeSecurityPolicyBackendBucketRequest instance + */ + public static create(properties?: google.cloud.compute.v1.ISetEdgeSecurityPolicyBackendBucketRequest): google.cloud.compute.v1.SetEdgeSecurityPolicyBackendBucketRequest; + + /** + * Encodes the specified SetEdgeSecurityPolicyBackendBucketRequest message. Does not implicitly {@link google.cloud.compute.v1.SetEdgeSecurityPolicyBackendBucketRequest.verify|verify} messages. + * @param message SetEdgeSecurityPolicyBackendBucketRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ISetEdgeSecurityPolicyBackendBucketRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SetEdgeSecurityPolicyBackendBucketRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SetEdgeSecurityPolicyBackendBucketRequest.verify|verify} messages. + * @param message SetEdgeSecurityPolicyBackendBucketRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ISetEdgeSecurityPolicyBackendBucketRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SetEdgeSecurityPolicyBackendBucketRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SetEdgeSecurityPolicyBackendBucketRequest + * @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.SetEdgeSecurityPolicyBackendBucketRequest; + + /** + * Decodes a SetEdgeSecurityPolicyBackendBucketRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SetEdgeSecurityPolicyBackendBucketRequest + * @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.SetEdgeSecurityPolicyBackendBucketRequest; + + /** + * Verifies a SetEdgeSecurityPolicyBackendBucketRequest 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 SetEdgeSecurityPolicyBackendBucketRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetEdgeSecurityPolicyBackendBucketRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.SetEdgeSecurityPolicyBackendBucketRequest; + + /** + * Creates a plain object from a SetEdgeSecurityPolicyBackendBucketRequest message. Also converts values to other types if specified. + * @param message SetEdgeSecurityPolicyBackendBucketRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.SetEdgeSecurityPolicyBackendBucketRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetEdgeSecurityPolicyBackendBucketRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a SetEdgeSecurityPolicyBackendServiceRequest. */ + interface ISetEdgeSecurityPolicyBackendServiceRequest { + + /** SetEdgeSecurityPolicyBackendServiceRequest backendService */ + backendService?: (string|null); + + /** SetEdgeSecurityPolicyBackendServiceRequest project */ + project?: (string|null); + + /** SetEdgeSecurityPolicyBackendServiceRequest requestId */ + requestId?: (string|null); + + /** SetEdgeSecurityPolicyBackendServiceRequest securityPolicyReferenceResource */ + securityPolicyReferenceResource?: (google.cloud.compute.v1.ISecurityPolicyReference|null); + } + + /** Represents a SetEdgeSecurityPolicyBackendServiceRequest. */ + class SetEdgeSecurityPolicyBackendServiceRequest implements ISetEdgeSecurityPolicyBackendServiceRequest { + + /** + * Constructs a new SetEdgeSecurityPolicyBackendServiceRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ISetEdgeSecurityPolicyBackendServiceRequest); + + /** SetEdgeSecurityPolicyBackendServiceRequest backendService. */ + public backendService: string; + + /** SetEdgeSecurityPolicyBackendServiceRequest project. */ + public project: string; + + /** SetEdgeSecurityPolicyBackendServiceRequest requestId. */ + public requestId?: (string|null); + + /** SetEdgeSecurityPolicyBackendServiceRequest securityPolicyReferenceResource. */ + public securityPolicyReferenceResource?: (google.cloud.compute.v1.ISecurityPolicyReference|null); + + /** SetEdgeSecurityPolicyBackendServiceRequest _requestId. */ + public _requestId?: "requestId"; + + /** + * Creates a new SetEdgeSecurityPolicyBackendServiceRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SetEdgeSecurityPolicyBackendServiceRequest instance + */ + public static create(properties?: google.cloud.compute.v1.ISetEdgeSecurityPolicyBackendServiceRequest): google.cloud.compute.v1.SetEdgeSecurityPolicyBackendServiceRequest; + + /** + * Encodes the specified SetEdgeSecurityPolicyBackendServiceRequest message. Does not implicitly {@link google.cloud.compute.v1.SetEdgeSecurityPolicyBackendServiceRequest.verify|verify} messages. + * @param message SetEdgeSecurityPolicyBackendServiceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ISetEdgeSecurityPolicyBackendServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SetEdgeSecurityPolicyBackendServiceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SetEdgeSecurityPolicyBackendServiceRequest.verify|verify} messages. + * @param message SetEdgeSecurityPolicyBackendServiceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ISetEdgeSecurityPolicyBackendServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SetEdgeSecurityPolicyBackendServiceRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SetEdgeSecurityPolicyBackendServiceRequest + * @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.SetEdgeSecurityPolicyBackendServiceRequest; + + /** + * Decodes a SetEdgeSecurityPolicyBackendServiceRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SetEdgeSecurityPolicyBackendServiceRequest + * @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.SetEdgeSecurityPolicyBackendServiceRequest; + + /** + * Verifies a SetEdgeSecurityPolicyBackendServiceRequest 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 SetEdgeSecurityPolicyBackendServiceRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetEdgeSecurityPolicyBackendServiceRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.SetEdgeSecurityPolicyBackendServiceRequest; + + /** + * Creates a plain object from a SetEdgeSecurityPolicyBackendServiceRequest message. Also converts values to other types if specified. + * @param message SetEdgeSecurityPolicyBackendServiceRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.SetEdgeSecurityPolicyBackendServiceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetEdgeSecurityPolicyBackendServiceRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of a SetIamPolicyDiskRequest. */ interface ISetIamPolicyDiskRequest { @@ -116054,6 +119969,108 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** Properties of a SetIamPolicyMachineImageRequest. */ + interface ISetIamPolicyMachineImageRequest { + + /** SetIamPolicyMachineImageRequest globalSetPolicyRequestResource */ + globalSetPolicyRequestResource?: (google.cloud.compute.v1.IGlobalSetPolicyRequest|null); + + /** SetIamPolicyMachineImageRequest project */ + project?: (string|null); + + /** SetIamPolicyMachineImageRequest resource */ + resource?: (string|null); + } + + /** Represents a SetIamPolicyMachineImageRequest. */ + class SetIamPolicyMachineImageRequest implements ISetIamPolicyMachineImageRequest { + + /** + * Constructs a new SetIamPolicyMachineImageRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ISetIamPolicyMachineImageRequest); + + /** SetIamPolicyMachineImageRequest globalSetPolicyRequestResource. */ + public globalSetPolicyRequestResource?: (google.cloud.compute.v1.IGlobalSetPolicyRequest|null); + + /** SetIamPolicyMachineImageRequest project. */ + public project: string; + + /** SetIamPolicyMachineImageRequest resource. */ + public resource: string; + + /** + * Creates a new SetIamPolicyMachineImageRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SetIamPolicyMachineImageRequest instance + */ + public static create(properties?: google.cloud.compute.v1.ISetIamPolicyMachineImageRequest): google.cloud.compute.v1.SetIamPolicyMachineImageRequest; + + /** + * Encodes the specified SetIamPolicyMachineImageRequest message. Does not implicitly {@link google.cloud.compute.v1.SetIamPolicyMachineImageRequest.verify|verify} messages. + * @param message SetIamPolicyMachineImageRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ISetIamPolicyMachineImageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SetIamPolicyMachineImageRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SetIamPolicyMachineImageRequest.verify|verify} messages. + * @param message SetIamPolicyMachineImageRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ISetIamPolicyMachineImageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SetIamPolicyMachineImageRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SetIamPolicyMachineImageRequest + * @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.SetIamPolicyMachineImageRequest; + + /** + * Decodes a SetIamPolicyMachineImageRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SetIamPolicyMachineImageRequest + * @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.SetIamPolicyMachineImageRequest; + + /** + * Verifies a SetIamPolicyMachineImageRequest 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 SetIamPolicyMachineImageRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetIamPolicyMachineImageRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.SetIamPolicyMachineImageRequest; + + /** + * Creates a plain object from a SetIamPolicyMachineImageRequest message. Also converts values to other types if specified. + * @param message SetIamPolicyMachineImageRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.SetIamPolicyMachineImageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetIamPolicyMachineImageRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of a SetIamPolicyNodeGroupRequest. */ interface ISetIamPolicyNodeGroupRequest { @@ -121571,6 +125588,209 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** Properties of a ShareSettings. */ + interface IShareSettings { + + /** ShareSettings projectMap */ + projectMap?: ({ [k: string]: google.cloud.compute.v1.IShareSettingsProjectConfig }|null); + + /** ShareSettings shareType */ + shareType?: (string|null); + } + + /** Represents a ShareSettings. */ + class ShareSettings implements IShareSettings { + + /** + * Constructs a new ShareSettings. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IShareSettings); + + /** ShareSettings projectMap. */ + public projectMap: { [k: string]: google.cloud.compute.v1.IShareSettingsProjectConfig }; + + /** ShareSettings shareType. */ + public shareType?: (string|null); + + /** ShareSettings _shareType. */ + public _shareType?: "shareType"; + + /** + * Creates a new ShareSettings instance using the specified properties. + * @param [properties] Properties to set + * @returns ShareSettings instance + */ + public static create(properties?: google.cloud.compute.v1.IShareSettings): google.cloud.compute.v1.ShareSettings; + + /** + * Encodes the specified ShareSettings message. Does not implicitly {@link google.cloud.compute.v1.ShareSettings.verify|verify} messages. + * @param message ShareSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IShareSettings, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ShareSettings message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ShareSettings.verify|verify} messages. + * @param message ShareSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IShareSettings, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ShareSettings message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ShareSettings + * @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.ShareSettings; + + /** + * Decodes a ShareSettings message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ShareSettings + * @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.ShareSettings; + + /** + * Verifies a ShareSettings 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 ShareSettings message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ShareSettings + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.ShareSettings; + + /** + * Creates a plain object from a ShareSettings message. Also converts values to other types if specified. + * @param message ShareSettings + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.ShareSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ShareSettings to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace ShareSettings { + + /** ShareType enum. */ + enum ShareType { + UNDEFINED_SHARE_TYPE = 0, + LOCAL = 72607563, + SHARE_TYPE_UNSPECIFIED = 494771730, + SPECIFIC_PROJECTS = 347838695 + } + } + + /** Properties of a ShareSettingsProjectConfig. */ + interface IShareSettingsProjectConfig { + + /** ShareSettingsProjectConfig projectId */ + projectId?: (string|null); + } + + /** Represents a ShareSettingsProjectConfig. */ + class ShareSettingsProjectConfig implements IShareSettingsProjectConfig { + + /** + * Constructs a new ShareSettingsProjectConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IShareSettingsProjectConfig); + + /** ShareSettingsProjectConfig projectId. */ + public projectId?: (string|null); + + /** ShareSettingsProjectConfig _projectId. */ + public _projectId?: "projectId"; + + /** + * Creates a new ShareSettingsProjectConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns ShareSettingsProjectConfig instance + */ + public static create(properties?: google.cloud.compute.v1.IShareSettingsProjectConfig): google.cloud.compute.v1.ShareSettingsProjectConfig; + + /** + * Encodes the specified ShareSettingsProjectConfig message. Does not implicitly {@link google.cloud.compute.v1.ShareSettingsProjectConfig.verify|verify} messages. + * @param message ShareSettingsProjectConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IShareSettingsProjectConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ShareSettingsProjectConfig message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ShareSettingsProjectConfig.verify|verify} messages. + * @param message ShareSettingsProjectConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IShareSettingsProjectConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ShareSettingsProjectConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ShareSettingsProjectConfig + * @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.ShareSettingsProjectConfig; + + /** + * Decodes a ShareSettingsProjectConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ShareSettingsProjectConfig + * @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.ShareSettingsProjectConfig; + + /** + * Verifies a ShareSettingsProjectConfig 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 ShareSettingsProjectConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ShareSettingsProjectConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.ShareSettingsProjectConfig; + + /** + * Creates a plain object from a ShareSettingsProjectConfig message. Also converts values to other types if specified. + * @param message ShareSettingsProjectConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.ShareSettingsProjectConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ShareSettingsProjectConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of a ShieldedInstanceConfig. */ interface IShieldedInstanceConfig { @@ -122635,6 +126855,108 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** Properties of a SourceDiskEncryptionKey. */ + interface ISourceDiskEncryptionKey { + + /** SourceDiskEncryptionKey diskEncryptionKey */ + diskEncryptionKey?: (google.cloud.compute.v1.ICustomerEncryptionKey|null); + + /** SourceDiskEncryptionKey sourceDisk */ + sourceDisk?: (string|null); + } + + /** Represents a SourceDiskEncryptionKey. */ + class SourceDiskEncryptionKey implements ISourceDiskEncryptionKey { + + /** + * Constructs a new SourceDiskEncryptionKey. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ISourceDiskEncryptionKey); + + /** SourceDiskEncryptionKey diskEncryptionKey. */ + public diskEncryptionKey?: (google.cloud.compute.v1.ICustomerEncryptionKey|null); + + /** SourceDiskEncryptionKey sourceDisk. */ + public sourceDisk?: (string|null); + + /** SourceDiskEncryptionKey _diskEncryptionKey. */ + public _diskEncryptionKey?: "diskEncryptionKey"; + + /** SourceDiskEncryptionKey _sourceDisk. */ + public _sourceDisk?: "sourceDisk"; + + /** + * Creates a new SourceDiskEncryptionKey instance using the specified properties. + * @param [properties] Properties to set + * @returns SourceDiskEncryptionKey instance + */ + public static create(properties?: google.cloud.compute.v1.ISourceDiskEncryptionKey): google.cloud.compute.v1.SourceDiskEncryptionKey; + + /** + * Encodes the specified SourceDiskEncryptionKey message. Does not implicitly {@link google.cloud.compute.v1.SourceDiskEncryptionKey.verify|verify} messages. + * @param message SourceDiskEncryptionKey message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ISourceDiskEncryptionKey, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SourceDiskEncryptionKey message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SourceDiskEncryptionKey.verify|verify} messages. + * @param message SourceDiskEncryptionKey message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ISourceDiskEncryptionKey, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SourceDiskEncryptionKey message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SourceDiskEncryptionKey + * @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.SourceDiskEncryptionKey; + + /** + * Decodes a SourceDiskEncryptionKey message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SourceDiskEncryptionKey + * @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.SourceDiskEncryptionKey; + + /** + * Verifies a SourceDiskEncryptionKey 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 SourceDiskEncryptionKey message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SourceDiskEncryptionKey + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.SourceDiskEncryptionKey; + + /** + * Creates a plain object from a SourceDiskEncryptionKey message. Also converts values to other types if specified. + * @param message SourceDiskEncryptionKey + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.SourceDiskEncryptionKey, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SourceDiskEncryptionKey to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of a SourceInstanceParams. */ interface ISourceInstanceParams { @@ -122725,6 +127047,192 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** Properties of a SourceInstanceProperties. */ + interface ISourceInstanceProperties { + + /** SourceInstanceProperties canIpForward */ + canIpForward?: (boolean|null); + + /** SourceInstanceProperties deletionProtection */ + deletionProtection?: (boolean|null); + + /** SourceInstanceProperties description */ + description?: (string|null); + + /** SourceInstanceProperties disks */ + disks?: (google.cloud.compute.v1.ISavedAttachedDisk[]|null); + + /** SourceInstanceProperties guestAccelerators */ + guestAccelerators?: (google.cloud.compute.v1.IAcceleratorConfig[]|null); + + /** SourceInstanceProperties labels */ + labels?: ({ [k: string]: string }|null); + + /** SourceInstanceProperties machineType */ + machineType?: (string|null); + + /** SourceInstanceProperties metadata */ + metadata?: (google.cloud.compute.v1.IMetadata|null); + + /** SourceInstanceProperties minCpuPlatform */ + minCpuPlatform?: (string|null); + + /** SourceInstanceProperties networkInterfaces */ + networkInterfaces?: (google.cloud.compute.v1.INetworkInterface[]|null); + + /** SourceInstanceProperties scheduling */ + scheduling?: (google.cloud.compute.v1.IScheduling|null); + + /** SourceInstanceProperties serviceAccounts */ + serviceAccounts?: (google.cloud.compute.v1.IServiceAccount[]|null); + + /** SourceInstanceProperties tags */ + tags?: (google.cloud.compute.v1.ITags|null); + } + + /** Represents a SourceInstanceProperties. */ + class SourceInstanceProperties implements ISourceInstanceProperties { + + /** + * Constructs a new SourceInstanceProperties. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ISourceInstanceProperties); + + /** SourceInstanceProperties canIpForward. */ + public canIpForward?: (boolean|null); + + /** SourceInstanceProperties deletionProtection. */ + public deletionProtection?: (boolean|null); + + /** SourceInstanceProperties description. */ + public description?: (string|null); + + /** SourceInstanceProperties disks. */ + public disks: google.cloud.compute.v1.ISavedAttachedDisk[]; + + /** SourceInstanceProperties guestAccelerators. */ + public guestAccelerators: google.cloud.compute.v1.IAcceleratorConfig[]; + + /** SourceInstanceProperties labels. */ + public labels: { [k: string]: string }; + + /** SourceInstanceProperties machineType. */ + public machineType?: (string|null); + + /** SourceInstanceProperties metadata. */ + public metadata?: (google.cloud.compute.v1.IMetadata|null); + + /** SourceInstanceProperties minCpuPlatform. */ + public minCpuPlatform?: (string|null); + + /** SourceInstanceProperties networkInterfaces. */ + public networkInterfaces: google.cloud.compute.v1.INetworkInterface[]; + + /** SourceInstanceProperties scheduling. */ + public scheduling?: (google.cloud.compute.v1.IScheduling|null); + + /** SourceInstanceProperties serviceAccounts. */ + public serviceAccounts: google.cloud.compute.v1.IServiceAccount[]; + + /** SourceInstanceProperties tags. */ + public tags?: (google.cloud.compute.v1.ITags|null); + + /** SourceInstanceProperties _canIpForward. */ + public _canIpForward?: "canIpForward"; + + /** SourceInstanceProperties _deletionProtection. */ + public _deletionProtection?: "deletionProtection"; + + /** SourceInstanceProperties _description. */ + public _description?: "description"; + + /** SourceInstanceProperties _machineType. */ + public _machineType?: "machineType"; + + /** SourceInstanceProperties _metadata. */ + public _metadata?: "metadata"; + + /** SourceInstanceProperties _minCpuPlatform. */ + public _minCpuPlatform?: "minCpuPlatform"; + + /** SourceInstanceProperties _scheduling. */ + public _scheduling?: "scheduling"; + + /** SourceInstanceProperties _tags. */ + public _tags?: "tags"; + + /** + * Creates a new SourceInstanceProperties instance using the specified properties. + * @param [properties] Properties to set + * @returns SourceInstanceProperties instance + */ + public static create(properties?: google.cloud.compute.v1.ISourceInstanceProperties): google.cloud.compute.v1.SourceInstanceProperties; + + /** + * Encodes the specified SourceInstanceProperties message. Does not implicitly {@link google.cloud.compute.v1.SourceInstanceProperties.verify|verify} messages. + * @param message SourceInstanceProperties message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ISourceInstanceProperties, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SourceInstanceProperties message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SourceInstanceProperties.verify|verify} messages. + * @param message SourceInstanceProperties message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ISourceInstanceProperties, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SourceInstanceProperties message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SourceInstanceProperties + * @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.SourceInstanceProperties; + + /** + * Decodes a SourceInstanceProperties message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SourceInstanceProperties + * @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.SourceInstanceProperties; + + /** + * Verifies a SourceInstanceProperties 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 SourceInstanceProperties message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SourceInstanceProperties + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.SourceInstanceProperties; + + /** + * Creates a plain object from a SourceInstanceProperties message. Also converts values to other types if specified. + * @param message SourceInstanceProperties + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.SourceInstanceProperties, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SourceInstanceProperties to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of a SslCertificate. */ interface ISslCertificate { @@ -124996,7 +129504,8 @@ export namespace google { INTERNAL_HTTPS_LOAD_BALANCER = 248748889, PRIVATE = 403485027, PRIVATE_RFC_1918 = 254902107, - PRIVATE_SERVICE_CONNECT = 48134724 + PRIVATE_SERVICE_CONNECT = 48134724, + REGIONAL_MANAGED_PROXY = 153049966 } /** Role enum. */ @@ -125945,6 +130454,117 @@ export namespace google { } } + /** Properties of a SuspendInstanceRequest. */ + interface ISuspendInstanceRequest { + + /** SuspendInstanceRequest instance */ + instance?: (string|null); + + /** SuspendInstanceRequest project */ + project?: (string|null); + + /** SuspendInstanceRequest requestId */ + requestId?: (string|null); + + /** SuspendInstanceRequest zone */ + zone?: (string|null); + } + + /** Represents a SuspendInstanceRequest. */ + class SuspendInstanceRequest implements ISuspendInstanceRequest { + + /** + * Constructs a new SuspendInstanceRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ISuspendInstanceRequest); + + /** SuspendInstanceRequest instance. */ + public instance: string; + + /** SuspendInstanceRequest project. */ + public project: string; + + /** SuspendInstanceRequest requestId. */ + public requestId?: (string|null); + + /** SuspendInstanceRequest zone. */ + public zone: string; + + /** SuspendInstanceRequest _requestId. */ + public _requestId?: "requestId"; + + /** + * Creates a new SuspendInstanceRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SuspendInstanceRequest instance + */ + public static create(properties?: google.cloud.compute.v1.ISuspendInstanceRequest): google.cloud.compute.v1.SuspendInstanceRequest; + + /** + * Encodes the specified SuspendInstanceRequest message. Does not implicitly {@link google.cloud.compute.v1.SuspendInstanceRequest.verify|verify} messages. + * @param message SuspendInstanceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ISuspendInstanceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SuspendInstanceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SuspendInstanceRequest.verify|verify} messages. + * @param message SuspendInstanceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ISuspendInstanceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SuspendInstanceRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SuspendInstanceRequest + * @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.SuspendInstanceRequest; + + /** + * Decodes a SuspendInstanceRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SuspendInstanceRequest + * @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.SuspendInstanceRequest; + + /** + * Verifies a SuspendInstanceRequest 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 SuspendInstanceRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SuspendInstanceRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.SuspendInstanceRequest; + + /** + * Creates a plain object from a SuspendInstanceRequest message. Also converts values to other types if specified. + * @param message SuspendInstanceRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.SuspendInstanceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SuspendInstanceRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of a SwitchToCustomModeNetworkRequest. */ interface ISwitchToCustomModeNetworkRequest { @@ -132293,6 +136913,108 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** Properties of a TestIamPermissionsMachineImageRequest. */ + interface ITestIamPermissionsMachineImageRequest { + + /** TestIamPermissionsMachineImageRequest project */ + project?: (string|null); + + /** TestIamPermissionsMachineImageRequest resource */ + resource?: (string|null); + + /** TestIamPermissionsMachineImageRequest testPermissionsRequestResource */ + testPermissionsRequestResource?: (google.cloud.compute.v1.ITestPermissionsRequest|null); + } + + /** Represents a TestIamPermissionsMachineImageRequest. */ + class TestIamPermissionsMachineImageRequest implements ITestIamPermissionsMachineImageRequest { + + /** + * Constructs a new TestIamPermissionsMachineImageRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ITestIamPermissionsMachineImageRequest); + + /** TestIamPermissionsMachineImageRequest project. */ + public project: string; + + /** TestIamPermissionsMachineImageRequest resource. */ + public resource: string; + + /** TestIamPermissionsMachineImageRequest testPermissionsRequestResource. */ + public testPermissionsRequestResource?: (google.cloud.compute.v1.ITestPermissionsRequest|null); + + /** + * Creates a new TestIamPermissionsMachineImageRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns TestIamPermissionsMachineImageRequest instance + */ + public static create(properties?: google.cloud.compute.v1.ITestIamPermissionsMachineImageRequest): google.cloud.compute.v1.TestIamPermissionsMachineImageRequest; + + /** + * Encodes the specified TestIamPermissionsMachineImageRequest message. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsMachineImageRequest.verify|verify} messages. + * @param message TestIamPermissionsMachineImageRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ITestIamPermissionsMachineImageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TestIamPermissionsMachineImageRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsMachineImageRequest.verify|verify} messages. + * @param message TestIamPermissionsMachineImageRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ITestIamPermissionsMachineImageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TestIamPermissionsMachineImageRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TestIamPermissionsMachineImageRequest + * @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.TestIamPermissionsMachineImageRequest; + + /** + * Decodes a TestIamPermissionsMachineImageRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TestIamPermissionsMachineImageRequest + * @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.TestIamPermissionsMachineImageRequest; + + /** + * Verifies a TestIamPermissionsMachineImageRequest 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 TestIamPermissionsMachineImageRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TestIamPermissionsMachineImageRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.TestIamPermissionsMachineImageRequest; + + /** + * Creates a plain object from a TestIamPermissionsMachineImageRequest message. Also converts values to other types if specified. + * @param message TestIamPermissionsMachineImageRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.TestIamPermissionsMachineImageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TestIamPermissionsMachineImageRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of a TestIamPermissionsNetworkEndpointGroupRequest. */ interface ITestIamPermissionsNetworkEndpointGroupRequest { @@ -135401,6 +140123,141 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** Properties of an UpdateRegionCommitmentRequest. */ + interface IUpdateRegionCommitmentRequest { + + /** UpdateRegionCommitmentRequest commitment */ + commitment?: (string|null); + + /** UpdateRegionCommitmentRequest commitmentResource */ + commitmentResource?: (google.cloud.compute.v1.ICommitment|null); + + /** UpdateRegionCommitmentRequest paths */ + paths?: (string|null); + + /** UpdateRegionCommitmentRequest project */ + project?: (string|null); + + /** UpdateRegionCommitmentRequest region */ + region?: (string|null); + + /** UpdateRegionCommitmentRequest requestId */ + requestId?: (string|null); + + /** UpdateRegionCommitmentRequest updateMask */ + updateMask?: (string|null); + } + + /** Represents an UpdateRegionCommitmentRequest. */ + class UpdateRegionCommitmentRequest implements IUpdateRegionCommitmentRequest { + + /** + * Constructs a new UpdateRegionCommitmentRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IUpdateRegionCommitmentRequest); + + /** UpdateRegionCommitmentRequest commitment. */ + public commitment: string; + + /** UpdateRegionCommitmentRequest commitmentResource. */ + public commitmentResource?: (google.cloud.compute.v1.ICommitment|null); + + /** UpdateRegionCommitmentRequest paths. */ + public paths?: (string|null); + + /** UpdateRegionCommitmentRequest project. */ + public project: string; + + /** UpdateRegionCommitmentRequest region. */ + public region: string; + + /** UpdateRegionCommitmentRequest requestId. */ + public requestId?: (string|null); + + /** UpdateRegionCommitmentRequest updateMask. */ + public updateMask?: (string|null); + + /** UpdateRegionCommitmentRequest _paths. */ + public _paths?: "paths"; + + /** UpdateRegionCommitmentRequest _requestId. */ + public _requestId?: "requestId"; + + /** UpdateRegionCommitmentRequest _updateMask. */ + public _updateMask?: "updateMask"; + + /** + * Creates a new UpdateRegionCommitmentRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateRegionCommitmentRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IUpdateRegionCommitmentRequest): google.cloud.compute.v1.UpdateRegionCommitmentRequest; + + /** + * Encodes the specified UpdateRegionCommitmentRequest message. Does not implicitly {@link google.cloud.compute.v1.UpdateRegionCommitmentRequest.verify|verify} messages. + * @param message UpdateRegionCommitmentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IUpdateRegionCommitmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateRegionCommitmentRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.UpdateRegionCommitmentRequest.verify|verify} messages. + * @param message UpdateRegionCommitmentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IUpdateRegionCommitmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateRegionCommitmentRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateRegionCommitmentRequest + * @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.UpdateRegionCommitmentRequest; + + /** + * Decodes an UpdateRegionCommitmentRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateRegionCommitmentRequest + * @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.UpdateRegionCommitmentRequest; + + /** + * Verifies an UpdateRegionCommitmentRequest 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 UpdateRegionCommitmentRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateRegionCommitmentRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.UpdateRegionCommitmentRequest; + + /** + * Creates a plain object from an UpdateRegionCommitmentRequest message. Also converts values to other types if specified. + * @param message UpdateRegionCommitmentRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.UpdateRegionCommitmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateRegionCommitmentRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of an UpdateRegionHealthCheckRequest. */ interface IUpdateRegionHealthCheckRequest { @@ -135635,6 +140492,141 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** Properties of an UpdateReservationRequest. */ + interface IUpdateReservationRequest { + + /** UpdateReservationRequest paths */ + paths?: (string|null); + + /** UpdateReservationRequest project */ + project?: (string|null); + + /** UpdateReservationRequest requestId */ + requestId?: (string|null); + + /** UpdateReservationRequest reservation */ + reservation?: (string|null); + + /** UpdateReservationRequest reservationResource */ + reservationResource?: (google.cloud.compute.v1.IReservation|null); + + /** UpdateReservationRequest updateMask */ + updateMask?: (string|null); + + /** UpdateReservationRequest zone */ + zone?: (string|null); + } + + /** Represents an UpdateReservationRequest. */ + class UpdateReservationRequest implements IUpdateReservationRequest { + + /** + * Constructs a new UpdateReservationRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IUpdateReservationRequest); + + /** UpdateReservationRequest paths. */ + public paths?: (string|null); + + /** UpdateReservationRequest project. */ + public project: string; + + /** UpdateReservationRequest requestId. */ + public requestId?: (string|null); + + /** UpdateReservationRequest reservation. */ + public reservation: string; + + /** UpdateReservationRequest reservationResource. */ + public reservationResource?: (google.cloud.compute.v1.IReservation|null); + + /** UpdateReservationRequest updateMask. */ + public updateMask?: (string|null); + + /** UpdateReservationRequest zone. */ + public zone: string; + + /** UpdateReservationRequest _paths. */ + public _paths?: "paths"; + + /** UpdateReservationRequest _requestId. */ + public _requestId?: "requestId"; + + /** UpdateReservationRequest _updateMask. */ + public _updateMask?: "updateMask"; + + /** + * Creates a new UpdateReservationRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateReservationRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IUpdateReservationRequest): google.cloud.compute.v1.UpdateReservationRequest; + + /** + * Encodes the specified UpdateReservationRequest message. Does not implicitly {@link google.cloud.compute.v1.UpdateReservationRequest.verify|verify} messages. + * @param message UpdateReservationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IUpdateReservationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateReservationRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.UpdateReservationRequest.verify|verify} messages. + * @param message UpdateReservationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IUpdateReservationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateReservationRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateReservationRequest + * @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.UpdateReservationRequest; + + /** + * Decodes an UpdateReservationRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateReservationRequest + * @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.UpdateReservationRequest; + + /** + * Verifies an UpdateReservationRequest 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 UpdateReservationRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateReservationRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.UpdateReservationRequest; + + /** + * Creates a plain object from an UpdateReservationRequest message. Also converts values to other types if specified. + * @param message UpdateReservationRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.UpdateReservationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateReservationRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of an UpdateRouterRequest. */ interface IUpdateRouterRequest { @@ -138371,6 +143363,9 @@ export namespace google { /** VpnGateway selfLink */ selfLink?: (string|null); + /** VpnGateway stackType */ + stackType?: (string|null); + /** VpnGateway vpnInterfaces */ vpnInterfaces?: (google.cloud.compute.v1.IVpnGatewayVpnGatewayInterface[]|null); } @@ -138414,6 +143409,9 @@ export namespace google { /** VpnGateway selfLink. */ public selfLink?: (string|null); + /** VpnGateway stackType. */ + public stackType?: (string|null); + /** VpnGateway vpnInterfaces. */ public vpnInterfaces: google.cloud.compute.v1.IVpnGatewayVpnGatewayInterface[]; @@ -138444,6 +143442,9 @@ export namespace google { /** VpnGateway _selfLink. */ public _selfLink?: "selfLink"; + /** VpnGateway _stackType. */ + public _stackType?: "stackType"; + /** * Creates a new VpnGateway instance using the specified properties. * @param [properties] Properties to set @@ -138515,6 +143516,16 @@ export namespace google { public toJSON(): { [k: string]: any }; } + namespace VpnGateway { + + /** StackType enum. */ + enum StackType { + UNDEFINED_STACK_TYPE = 0, + IPV4_IPV6 = 22197249, + IPV4_ONLY = 22373798 + } + } + /** Properties of a VpnGatewayAggregatedList. */ interface IVpnGatewayAggregatedList { @@ -142377,6 +147388,20 @@ export namespace google { */ public patch(request: google.cloud.compute.v1.IPatchBackendBucketRequest): Promise; + /** + * Calls SetEdgeSecurityPolicy. + * @param request SetEdgeSecurityPolicyBackendBucketRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public setEdgeSecurityPolicy(request: google.cloud.compute.v1.ISetEdgeSecurityPolicyBackendBucketRequest, callback: google.cloud.compute.v1.BackendBuckets.SetEdgeSecurityPolicyCallback): void; + + /** + * Calls SetEdgeSecurityPolicy. + * @param request SetEdgeSecurityPolicyBackendBucketRequest message or plain object + * @returns Promise + */ + public setEdgeSecurityPolicy(request: google.cloud.compute.v1.ISetEdgeSecurityPolicyBackendBucketRequest): Promise; + /** * Calls Update. * @param request UpdateBackendBucketRequest message or plain object @@ -142443,6 +147468,13 @@ export namespace google { */ type PatchCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; + /** + * Callback as used by {@link google.cloud.compute.v1.BackendBuckets#setEdgeSecurityPolicy}. + * @param error Error, if any + * @param [response] Operation + */ + type SetEdgeSecurityPolicyCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; + /** * Callback as used by {@link google.cloud.compute.v1.BackendBuckets#update}. * @param error Error, if any @@ -142597,6 +147629,20 @@ export namespace google { */ public patch(request: google.cloud.compute.v1.IPatchBackendServiceRequest): Promise; + /** + * Calls SetEdgeSecurityPolicy. + * @param request SetEdgeSecurityPolicyBackendServiceRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public setEdgeSecurityPolicy(request: google.cloud.compute.v1.ISetEdgeSecurityPolicyBackendServiceRequest, callback: google.cloud.compute.v1.BackendServices.SetEdgeSecurityPolicyCallback): void; + + /** + * Calls SetEdgeSecurityPolicy. + * @param request SetEdgeSecurityPolicyBackendServiceRequest message or plain object + * @returns Promise + */ + public setEdgeSecurityPolicy(request: google.cloud.compute.v1.ISetEdgeSecurityPolicyBackendServiceRequest): Promise; + /** * Calls SetSecurityPolicy. * @param request SetSecurityPolicyBackendServiceRequest message or plain object @@ -142691,6 +147737,13 @@ export namespace google { */ type PatchCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; + /** + * Callback as used by {@link google.cloud.compute.v1.BackendServices#setEdgeSecurityPolicy}. + * @param error Error, if any + * @param [response] Operation + */ + type SetEdgeSecurityPolicyCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; + /** * Callback as used by {@link google.cloud.compute.v1.BackendServices#setSecurityPolicy}. * @param error Error, if any @@ -146378,6 +151431,20 @@ export namespace google { */ public reset(request: google.cloud.compute.v1.IResetInstanceRequest): Promise; + /** + * Calls Resume. + * @param request ResumeInstanceRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public resume(request: google.cloud.compute.v1.IResumeInstanceRequest, callback: google.cloud.compute.v1.Instances.ResumeCallback): void; + + /** + * Calls Resume. + * @param request ResumeInstanceRequest message or plain object + * @returns Promise + */ + public resume(request: google.cloud.compute.v1.IResumeInstanceRequest): Promise; + /** * Calls SendDiagnosticInterrupt. * @param request SendDiagnosticInterruptInstanceRequest message or plain object @@ -146616,6 +151683,20 @@ export namespace google { */ public stop(request: google.cloud.compute.v1.IStopInstanceRequest): Promise; + /** + * Calls Suspend. + * @param request SuspendInstanceRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public suspend(request: google.cloud.compute.v1.ISuspendInstanceRequest, callback: google.cloud.compute.v1.Instances.SuspendCallback): void; + + /** + * Calls Suspend. + * @param request SuspendInstanceRequest message or plain object + * @returns Promise + */ + public suspend(request: google.cloud.compute.v1.ISuspendInstanceRequest): Promise; + /** * Calls TestIamPermissions. * @param request TestIamPermissionsInstanceRequest message or plain object @@ -146843,6 +151924,13 @@ export namespace google { */ type ResetCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; + /** + * Callback as used by {@link google.cloud.compute.v1.Instances#resume}. + * @param error Error, if any + * @param [response] Operation + */ + type ResumeCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; + /** * Callback as used by {@link google.cloud.compute.v1.Instances#sendDiagnosticInterrupt}. * @param error Error, if any @@ -146962,6 +152050,13 @@ export namespace google { */ type StopCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; + /** + * Callback as used by {@link google.cloud.compute.v1.Instances#suspend}. + * @param error Error, if any + * @param [response] Operation + */ + type SuspendCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; + /** * Callback as used by {@link google.cloud.compute.v1.Instances#testIamPermissions}. * @param error Error, if any @@ -147608,6 +152703,177 @@ export namespace google { type TestIamPermissionsCallback = (error: (Error|null), response?: google.cloud.compute.v1.TestPermissionsResponse) => void; } + /** Represents a MachineImages */ + class MachineImages extends $protobuf.rpc.Service { + + /** + * Constructs a new MachineImages 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 MachineImages 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): MachineImages; + + /** + * Calls Delete. + * @param request DeleteMachineImageRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public delete(request: google.cloud.compute.v1.IDeleteMachineImageRequest, callback: google.cloud.compute.v1.MachineImages.DeleteCallback): void; + + /** + * Calls Delete. + * @param request DeleteMachineImageRequest message or plain object + * @returns Promise + */ + public delete(request: google.cloud.compute.v1.IDeleteMachineImageRequest): Promise; + + /** + * Calls Get. + * @param request GetMachineImageRequest message or plain object + * @param callback Node-style callback called with the error, if any, and MachineImage + */ + public get(request: google.cloud.compute.v1.IGetMachineImageRequest, callback: google.cloud.compute.v1.MachineImages.GetCallback): void; + + /** + * Calls Get. + * @param request GetMachineImageRequest message or plain object + * @returns Promise + */ + public get(request: google.cloud.compute.v1.IGetMachineImageRequest): Promise; + + /** + * Calls GetIamPolicy. + * @param request GetIamPolicyMachineImageRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Policy + */ + public getIamPolicy(request: google.cloud.compute.v1.IGetIamPolicyMachineImageRequest, callback: google.cloud.compute.v1.MachineImages.GetIamPolicyCallback): void; + + /** + * Calls GetIamPolicy. + * @param request GetIamPolicyMachineImageRequest message or plain object + * @returns Promise + */ + public getIamPolicy(request: google.cloud.compute.v1.IGetIamPolicyMachineImageRequest): Promise; + + /** + * Calls Insert. + * @param request InsertMachineImageRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public insert(request: google.cloud.compute.v1.IInsertMachineImageRequest, callback: google.cloud.compute.v1.MachineImages.InsertCallback): void; + + /** + * Calls Insert. + * @param request InsertMachineImageRequest message or plain object + * @returns Promise + */ + public insert(request: google.cloud.compute.v1.IInsertMachineImageRequest): Promise; + + /** + * Calls List. + * @param request ListMachineImagesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and MachineImageList + */ + public list(request: google.cloud.compute.v1.IListMachineImagesRequest, callback: google.cloud.compute.v1.MachineImages.ListCallback): void; + + /** + * Calls List. + * @param request ListMachineImagesRequest message or plain object + * @returns Promise + */ + public list(request: google.cloud.compute.v1.IListMachineImagesRequest): Promise; + + /** + * Calls SetIamPolicy. + * @param request SetIamPolicyMachineImageRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Policy + */ + public setIamPolicy(request: google.cloud.compute.v1.ISetIamPolicyMachineImageRequest, callback: google.cloud.compute.v1.MachineImages.SetIamPolicyCallback): void; + + /** + * Calls SetIamPolicy. + * @param request SetIamPolicyMachineImageRequest message or plain object + * @returns Promise + */ + public setIamPolicy(request: google.cloud.compute.v1.ISetIamPolicyMachineImageRequest): Promise; + + /** + * Calls TestIamPermissions. + * @param request TestIamPermissionsMachineImageRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TestPermissionsResponse + */ + public testIamPermissions(request: google.cloud.compute.v1.ITestIamPermissionsMachineImageRequest, callback: google.cloud.compute.v1.MachineImages.TestIamPermissionsCallback): void; + + /** + * Calls TestIamPermissions. + * @param request TestIamPermissionsMachineImageRequest message or plain object + * @returns Promise + */ + public testIamPermissions(request: google.cloud.compute.v1.ITestIamPermissionsMachineImageRequest): Promise; + } + + namespace MachineImages { + + /** + * Callback as used by {@link google.cloud.compute.v1.MachineImages#delete_}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.MachineImages#get}. + * @param error Error, if any + * @param [response] MachineImage + */ + type GetCallback = (error: (Error|null), response?: google.cloud.compute.v1.MachineImage) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.MachineImages#getIamPolicy}. + * @param error Error, if any + * @param [response] Policy + */ + type GetIamPolicyCallback = (error: (Error|null), response?: google.cloud.compute.v1.Policy) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.MachineImages#insert}. + * @param error Error, if any + * @param [response] Operation + */ + type InsertCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.MachineImages#list}. + * @param error Error, if any + * @param [response] MachineImageList + */ + type ListCallback = (error: (Error|null), response?: google.cloud.compute.v1.MachineImageList) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.MachineImages#setIamPolicy}. + * @param error Error, if any + * @param [response] Policy + */ + type SetIamPolicyCallback = (error: (Error|null), response?: google.cloud.compute.v1.Policy) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.MachineImages#testIamPermissions}. + * @param error Error, if any + * @param [response] TestPermissionsResponse + */ + type TestIamPermissionsCallback = (error: (Error|null), response?: google.cloud.compute.v1.TestPermissionsResponse) => void; + } + /** Represents a MachineTypes */ class MachineTypes extends $protobuf.rpc.Service { @@ -149882,6 +155148,20 @@ export namespace google { * @returns Promise */ public list(request: google.cloud.compute.v1.IListRegionCommitmentsRequest): Promise; + + /** + * Calls Update. + * @param request UpdateRegionCommitmentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public update(request: google.cloud.compute.v1.IUpdateRegionCommitmentRequest, callback: google.cloud.compute.v1.RegionCommitments.UpdateCallback): void; + + /** + * Calls Update. + * @param request UpdateRegionCommitmentRequest message or plain object + * @returns Promise + */ + public update(request: google.cloud.compute.v1.IUpdateRegionCommitmentRequest): Promise; } namespace RegionCommitments { @@ -149913,6 +155193,13 @@ export namespace google { * @param [response] CommitmentList */ type ListCallback = (error: (Error|null), response?: google.cloud.compute.v1.CommitmentList) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.RegionCommitments#update}. + * @param error Error, if any + * @param [response] Operation + */ + type UpdateCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; } /** Represents a RegionDiskTypes */ @@ -152205,6 +157492,20 @@ export namespace google { * @returns Promise */ public testIamPermissions(request: google.cloud.compute.v1.ITestIamPermissionsReservationRequest): Promise; + + /** + * Calls Update. + * @param request UpdateReservationRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public update(request: google.cloud.compute.v1.IUpdateReservationRequest, callback: google.cloud.compute.v1.Reservations.UpdateCallback): void; + + /** + * Calls Update. + * @param request UpdateReservationRequest message or plain object + * @returns Promise + */ + public update(request: google.cloud.compute.v1.IUpdateReservationRequest): Promise; } namespace Reservations { @@ -152271,6 +157572,13 @@ export namespace google { * @param [response] TestPermissionsResponse */ type TestIamPermissionsCallback = (error: (Error|null), response?: google.cloud.compute.v1.TestPermissionsResponse) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.Reservations#update}. + * @param error Error, if any + * @param [response] Operation + */ + type UpdateCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; } /** Represents a ResourcePolicies */ @@ -153316,6 +158624,20 @@ export namespace google { */ public getIamPolicy(request: google.cloud.compute.v1.IGetIamPolicySnapshotRequest): Promise; + /** + * Calls Insert. + * @param request InsertSnapshotRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public insert(request: google.cloud.compute.v1.IInsertSnapshotRequest, callback: google.cloud.compute.v1.Snapshots.InsertCallback): void; + + /** + * Calls Insert. + * @param request InsertSnapshotRequest message or plain object + * @returns Promise + */ + public insert(request: google.cloud.compute.v1.IInsertSnapshotRequest): Promise; + /** * Calls List. * @param request ListSnapshotsRequest message or plain object @@ -153396,6 +158718,13 @@ export namespace google { */ type GetIamPolicyCallback = (error: (Error|null), response?: google.cloud.compute.v1.Policy) => void; + /** + * Callback as used by {@link google.cloud.compute.v1.Snapshots#insert}. + * @param error Error, if any + * @param [response] Operation + */ + type InsertCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; + /** * Callback as used by {@link google.cloud.compute.v1.Snapshots#list}. * @param error Error, if any diff --git a/packages/google-cloud-compute/protos/protos.js b/packages/google-cloud-compute/protos/protos.js index 08e8d637b72..3494476f124 100644 --- a/packages/google-cloud-compute/protos/protos.js +++ b/packages/google-cloud-compute/protos/protos.js @@ -3291,14 +3291,18 @@ * @name google.cloud.compute.v1.AccessConfig.NetworkTier * @enum {number} * @property {number} UNDEFINED_NETWORK_TIER=0 UNDEFINED_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 */ AccessConfig.NetworkTier = (function() { var valuesById = {}, values = Object.create(valuesById); values[valuesById[0] = "UNDEFINED_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; })(); @@ -8210,14 +8214,18 @@ * @name google.cloud.compute.v1.Address.NetworkTier * @enum {number} * @property {number} UNDEFINED_NETWORK_TIER=0 UNDEFINED_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 */ Address.NetworkTier = (function() { var valuesById = {}, values = Object.create(valuesById); values[valuesById[0] = "UNDEFINED_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; })(); @@ -9396,6 +9404,7 @@ * @memberof google.cloud.compute.v1 * @interface IAdvancedMachineFeatures * @property {boolean|null} [enableNestedVirtualization] AdvancedMachineFeatures enableNestedVirtualization + * @property {boolean|null} [enableUefiNetworking] AdvancedMachineFeatures enableUefiNetworking * @property {number|null} [threadsPerCore] AdvancedMachineFeatures threadsPerCore */ @@ -9422,6 +9431,14 @@ */ AdvancedMachineFeatures.prototype.enableNestedVirtualization = null; + /** + * AdvancedMachineFeatures enableUefiNetworking. + * @member {boolean|null|undefined} enableUefiNetworking + * @memberof google.cloud.compute.v1.AdvancedMachineFeatures + * @instance + */ + AdvancedMachineFeatures.prototype.enableUefiNetworking = null; + /** * AdvancedMachineFeatures threadsPerCore. * @member {number|null|undefined} threadsPerCore @@ -9444,6 +9461,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * AdvancedMachineFeatures _enableUefiNetworking. + * @member {"enableUefiNetworking"|undefined} _enableUefiNetworking + * @memberof google.cloud.compute.v1.AdvancedMachineFeatures + * @instance + */ + Object.defineProperty(AdvancedMachineFeatures.prototype, "_enableUefiNetworking", { + get: $util.oneOfGetter($oneOfFields = ["enableUefiNetworking"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * AdvancedMachineFeatures _threadsPerCore. * @member {"threadsPerCore"|undefined} _threadsPerCore @@ -9481,6 +9509,8 @@ writer = $Writer.create(); if (message.enableNestedVirtualization != null && Object.hasOwnProperty.call(message, "enableNestedVirtualization")) writer.uint32(/* id 16639365, wireType 0 =*/133114920).bool(message.enableNestedVirtualization); + if (message.enableUefiNetworking != null && Object.hasOwnProperty.call(message, "enableUefiNetworking")) + writer.uint32(/* id 334485668, wireType 0 =*/2675885344).bool(message.enableUefiNetworking); if (message.threadsPerCore != null && Object.hasOwnProperty.call(message, "threadsPerCore")) writer.uint32(/* id 352611671, wireType 0 =*/2820893368).int32(message.threadsPerCore); return writer; @@ -9520,6 +9550,9 @@ case 16639365: message.enableNestedVirtualization = reader.bool(); break; + case 334485668: + message.enableUefiNetworking = reader.bool(); + break; case 352611671: message.threadsPerCore = reader.int32(); break; @@ -9564,6 +9597,11 @@ if (typeof message.enableNestedVirtualization !== "boolean") return "enableNestedVirtualization: boolean expected"; } + if (message.enableUefiNetworking != null && message.hasOwnProperty("enableUefiNetworking")) { + properties._enableUefiNetworking = 1; + if (typeof message.enableUefiNetworking !== "boolean") + return "enableUefiNetworking: boolean expected"; + } if (message.threadsPerCore != null && message.hasOwnProperty("threadsPerCore")) { properties._threadsPerCore = 1; if (!$util.isInteger(message.threadsPerCore)) @@ -9586,6 +9624,8 @@ var message = new $root.google.cloud.compute.v1.AdvancedMachineFeatures(); if (object.enableNestedVirtualization != null) message.enableNestedVirtualization = Boolean(object.enableNestedVirtualization); + if (object.enableUefiNetworking != null) + message.enableUefiNetworking = Boolean(object.enableUefiNetworking); if (object.threadsPerCore != null) message.threadsPerCore = object.threadsPerCore | 0; return message; @@ -9609,6 +9649,11 @@ if (options.oneofs) object._enableNestedVirtualization = "enableNestedVirtualization"; } + if (message.enableUefiNetworking != null && message.hasOwnProperty("enableUefiNetworking")) { + object.enableUefiNetworking = message.enableUefiNetworking; + if (options.oneofs) + object._enableUefiNetworking = "enableUefiNetworking"; + } if (message.threadsPerCore != null && message.hasOwnProperty("threadsPerCore")) { object.threadsPerCore = message.threadsPerCore; if (options.oneofs) @@ -27764,6 +27809,7 @@ * @property {number|Long|null} [diskSizeGb] AttachedDiskInitializeParams diskSizeGb * @property {string|null} [diskType] AttachedDiskInitializeParams diskType * @property {Object.|null} [labels] AttachedDiskInitializeParams labels + * @property {Array.|null} [licenses] AttachedDiskInitializeParams licenses * @property {string|null} [onUpdateAction] AttachedDiskInitializeParams onUpdateAction * @property {number|Long|null} [provisionedIops] AttachedDiskInitializeParams provisionedIops * @property {Array.|null} [resourcePolicies] AttachedDiskInitializeParams resourcePolicies @@ -27783,6 +27829,7 @@ */ function AttachedDiskInitializeParams(properties) { this.labels = {}; + this.licenses = []; this.resourcePolicies = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) @@ -27830,6 +27877,14 @@ */ AttachedDiskInitializeParams.prototype.labels = $util.emptyObject; + /** + * AttachedDiskInitializeParams licenses. + * @member {Array.} licenses + * @memberof google.cloud.compute.v1.AttachedDiskInitializeParams + * @instance + */ + AttachedDiskInitializeParams.prototype.licenses = $util.emptyArray; + /** * AttachedDiskInitializeParams onUpdateAction. * @member {string|null|undefined} onUpdateAction @@ -28042,6 +28097,9 @@ $root.google.cloud.compute.v1.CustomerEncryptionKey.encode(message.sourceSnapshotEncryptionKey, writer.uint32(/* id 303679322, wireType 2 =*/2429434578).fork()).ldelim(); if (message.diskSizeGb != null && Object.hasOwnProperty.call(message, "diskSizeGb")) writer.uint32(/* id 316263735, wireType 0 =*/2530109880).int64(message.diskSizeGb); + if (message.licenses != null && message.licenses.length) + for (var i = 0; i < message.licenses.length; ++i) + writer.uint32(/* id 337642578, wireType 2 =*/2701140626).string(message.licenses[i]); if (message.sourceImageEncryptionKey != null && Object.hasOwnProperty.call(message, "sourceImageEncryptionKey")) $root.google.cloud.compute.v1.CustomerEncryptionKey.encode(message.sourceImageEncryptionKey, writer.uint32(/* id 381503659, wireType 2 =*/3052029274).fork()).ldelim(); if (message.description != null && Object.hasOwnProperty.call(message, "description")) @@ -28117,6 +28175,11 @@ } message.labels[key] = value; break; + case 337642578: + if (!(message.licenses && message.licenses.length)) + message.licenses = []; + message.licenses.push(reader.string()); + break; case 202451980: message.onUpdateAction = reader.string(); break; @@ -28204,6 +28267,13 @@ if (!$util.isString(message.labels[key[i]])) return "labels: string{k:string} expected"; } + if (message.licenses != null && message.hasOwnProperty("licenses")) { + if (!Array.isArray(message.licenses)) + return "licenses: array expected"; + for (var i = 0; i < message.licenses.length; ++i) + if (!$util.isString(message.licenses[i])) + return "licenses: string[] expected"; + } if (message.onUpdateAction != null && message.hasOwnProperty("onUpdateAction")) { properties._onUpdateAction = 1; if (!$util.isString(message.onUpdateAction)) @@ -28284,6 +28354,13 @@ for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) message.labels[keys[i]] = String(object.labels[keys[i]]); } + if (object.licenses) { + if (!Array.isArray(object.licenses)) + throw TypeError(".google.cloud.compute.v1.AttachedDiskInitializeParams.licenses: array expected"); + message.licenses = []; + for (var i = 0; i < object.licenses.length; ++i) + message.licenses[i] = String(object.licenses[i]); + } if (object.onUpdateAction != null) message.onUpdateAction = String(object.onUpdateAction); if (object.provisionedIops != null) @@ -28332,8 +28409,10 @@ if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) + if (options.arrays || options.defaults) { object.resourcePolicies = []; + object.licenses = []; + } if (options.objects || options.defaults) object.labels = {}; if (message.resourcePolicies && message.resourcePolicies.length) { @@ -28387,6 +28466,11 @@ if (options.oneofs) object._diskSizeGb = "diskSizeGb"; } + if (message.licenses && message.licenses.length) { + object.licenses = []; + for (var j = 0; j < message.licenses.length; ++j) + object.licenses[j] = message.licenses[j]; + } if (message.sourceImageEncryptionKey != null && message.hasOwnProperty("sourceImageEncryptionKey")) { object.sourceImageEncryptionKey = $root.google.cloud.compute.v1.CustomerEncryptionKey.toObject(message.sourceImageEncryptionKey, options); if (options.oneofs) @@ -34113,6 +34197,7 @@ * @property {string|null} [creationTimestamp] BackendBucket creationTimestamp * @property {Array.|null} [customResponseHeaders] BackendBucket customResponseHeaders * @property {string|null} [description] BackendBucket description + * @property {string|null} [edgeSecurityPolicy] BackendBucket edgeSecurityPolicy * @property {boolean|null} [enableCdn] BackendBucket enableCdn * @property {number|Long|null} [id] BackendBucket id * @property {string|null} [kind] BackendBucket kind @@ -34176,6 +34261,14 @@ */ BackendBucket.prototype.description = null; + /** + * BackendBucket edgeSecurityPolicy. + * @member {string|null|undefined} edgeSecurityPolicy + * @memberof google.cloud.compute.v1.BackendBucket + * @instance + */ + BackendBucket.prototype.edgeSecurityPolicy = null; + /** * BackendBucket enableCdn. * @member {boolean|null|undefined} enableCdn @@ -34263,6 +34356,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * BackendBucket _edgeSecurityPolicy. + * @member {"edgeSecurityPolicy"|undefined} _edgeSecurityPolicy + * @memberof google.cloud.compute.v1.BackendBucket + * @instance + */ + Object.defineProperty(BackendBucket.prototype, "_edgeSecurityPolicy", { + get: $util.oneOfGetter($oneOfFields = ["edgeSecurityPolicy"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * BackendBucket _enableCdn. * @member {"enableCdn"|undefined} _enableCdn @@ -34350,6 +34454,8 @@ writer.uint32(/* id 3373707, wireType 2 =*/26989658).string(message.name); if (message.creationTimestamp != null && Object.hasOwnProperty.call(message, "creationTimestamp")) writer.uint32(/* id 30525366, wireType 2 =*/244202930).string(message.creationTimestamp); + if (message.edgeSecurityPolicy != null && Object.hasOwnProperty.call(message, "edgeSecurityPolicy")) + writer.uint32(/* id 41036943, wireType 2 =*/328295546).string(message.edgeSecurityPolicy); if (message.cdnPolicy != null && Object.hasOwnProperty.call(message, "cdnPolicy")) $root.google.cloud.compute.v1.BackendBucketCdnPolicy.encode(message.cdnPolicy, writer.uint32(/* id 213976452, wireType 2 =*/1711811618).fork()).ldelim(); if (message.enableCdn != null && Object.hasOwnProperty.call(message, "enableCdn")) @@ -34414,6 +34520,9 @@ case 422937596: message.description = reader.string(); break; + case 41036943: + message.edgeSecurityPolicy = reader.string(); + break; case 282942321: message.enableCdn = reader.bool(); break; @@ -34495,6 +34604,11 @@ if (!$util.isString(message.description)) return "description: string expected"; } + if (message.edgeSecurityPolicy != null && message.hasOwnProperty("edgeSecurityPolicy")) { + properties._edgeSecurityPolicy = 1; + if (!$util.isString(message.edgeSecurityPolicy)) + return "edgeSecurityPolicy: string expected"; + } if (message.enableCdn != null && message.hasOwnProperty("enableCdn")) { properties._enableCdn = 1; if (typeof message.enableCdn !== "boolean") @@ -34553,6 +34667,8 @@ } if (object.description != null) message.description = String(object.description); + if (object.edgeSecurityPolicy != null) + message.edgeSecurityPolicy = String(object.edgeSecurityPolicy); if (object.enableCdn != null) message.enableCdn = Boolean(object.enableCdn); if (object.id != null) @@ -34611,6 +34727,11 @@ if (options.oneofs) object._creationTimestamp = "creationTimestamp"; } + if (message.edgeSecurityPolicy != null && message.hasOwnProperty("edgeSecurityPolicy")) { + object.edgeSecurityPolicy = message.edgeSecurityPolicy; + if (options.oneofs) + object._edgeSecurityPolicy = "edgeSecurityPolicy"; + } if (message.cdnPolicy != null && message.hasOwnProperty("cdnPolicy")) { object.cdnPolicy = $root.google.cloud.compute.v1.BackendBucketCdnPolicy.toObject(message.cdnPolicy, options); if (options.oneofs) @@ -34665,6 +34786,7 @@ * @memberof google.cloud.compute.v1 * @interface IBackendBucketCdnPolicy * @property {Array.|null} [bypassCacheOnRequestHeaders] BackendBucketCdnPolicy bypassCacheOnRequestHeaders + * @property {google.cloud.compute.v1.IBackendBucketCdnPolicyCacheKeyPolicy|null} [cacheKeyPolicy] BackendBucketCdnPolicy cacheKeyPolicy * @property {string|null} [cacheMode] BackendBucketCdnPolicy cacheMode * @property {number|null} [clientTtl] BackendBucketCdnPolicy clientTtl * @property {number|null} [defaultTtl] BackendBucketCdnPolicy defaultTtl @@ -34703,6 +34825,14 @@ */ BackendBucketCdnPolicy.prototype.bypassCacheOnRequestHeaders = $util.emptyArray; + /** + * BackendBucketCdnPolicy cacheKeyPolicy. + * @member {google.cloud.compute.v1.IBackendBucketCdnPolicyCacheKeyPolicy|null|undefined} cacheKeyPolicy + * @memberof google.cloud.compute.v1.BackendBucketCdnPolicy + * @instance + */ + BackendBucketCdnPolicy.prototype.cacheKeyPolicy = null; + /** * BackendBucketCdnPolicy cacheMode. * @member {string|null|undefined} cacheMode @@ -34786,6 +34916,17 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; + /** + * BackendBucketCdnPolicy _cacheKeyPolicy. + * @member {"cacheKeyPolicy"|undefined} _cacheKeyPolicy + * @memberof google.cloud.compute.v1.BackendBucketCdnPolicy + * @instance + */ + Object.defineProperty(BackendBucketCdnPolicy.prototype, "_cacheKeyPolicy", { + get: $util.oneOfGetter($oneOfFields = ["cacheKeyPolicy"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * BackendBucketCdnPolicy _cacheMode. * @member {"cacheMode"|undefined} _cacheMode @@ -34907,6 +35048,8 @@ if (message.negativeCachingPolicy != null && message.negativeCachingPolicy.length) for (var i = 0; i < message.negativeCachingPolicy.length; ++i) $root.google.cloud.compute.v1.BackendBucketCdnPolicyNegativeCachingPolicy.encode(message.negativeCachingPolicy[i], writer.uint32(/* id 155359996, wireType 2 =*/1242879970).fork()).ldelim(); + if (message.cacheKeyPolicy != null && Object.hasOwnProperty.call(message, "cacheKeyPolicy")) + $root.google.cloud.compute.v1.BackendBucketCdnPolicyCacheKeyPolicy.encode(message.cacheKeyPolicy, writer.uint32(/* id 159263727, wireType 2 =*/1274109818).fork()).ldelim(); if (message.serveWhileStale != null && Object.hasOwnProperty.call(message, "serveWhileStale")) writer.uint32(/* id 236682203, wireType 0 =*/1893457624).int32(message.serveWhileStale); if (message.signedUrlCacheMaxAgeSec != null && Object.hasOwnProperty.call(message, "signedUrlCacheMaxAgeSec")) @@ -34962,6 +35105,9 @@ message.bypassCacheOnRequestHeaders = []; message.bypassCacheOnRequestHeaders.push($root.google.cloud.compute.v1.BackendBucketCdnPolicyBypassCacheOnRequestHeader.decode(reader, reader.uint32())); break; + case 159263727: + message.cacheKeyPolicy = $root.google.cloud.compute.v1.BackendBucketCdnPolicyCacheKeyPolicy.decode(reader, reader.uint32()); + break; case 28877888: message.cacheMode = reader.string(); break; @@ -35041,6 +35187,14 @@ return "bypassCacheOnRequestHeaders." + error; } } + if (message.cacheKeyPolicy != null && message.hasOwnProperty("cacheKeyPolicy")) { + properties._cacheKeyPolicy = 1; + { + var error = $root.google.cloud.compute.v1.BackendBucketCdnPolicyCacheKeyPolicy.verify(message.cacheKeyPolicy); + if (error) + return "cacheKeyPolicy." + error; + } + } if (message.cacheMode != null && message.hasOwnProperty("cacheMode")) { properties._cacheMode = 1; if (!$util.isString(message.cacheMode)) @@ -35122,6 +35276,11 @@ message.bypassCacheOnRequestHeaders[i] = $root.google.cloud.compute.v1.BackendBucketCdnPolicyBypassCacheOnRequestHeader.fromObject(object.bypassCacheOnRequestHeaders[i]); } } + if (object.cacheKeyPolicy != null) { + if (typeof object.cacheKeyPolicy !== "object") + throw TypeError(".google.cloud.compute.v1.BackendBucketCdnPolicy.cacheKeyPolicy: object expected"); + message.cacheKeyPolicy = $root.google.cloud.compute.v1.BackendBucketCdnPolicyCacheKeyPolicy.fromObject(object.cacheKeyPolicy); + } if (object.cacheMode != null) message.cacheMode = String(object.cacheMode); if (object.clientTtl != null) @@ -35203,6 +35362,11 @@ for (var j = 0; j < message.negativeCachingPolicy.length; ++j) object.negativeCachingPolicy[j] = $root.google.cloud.compute.v1.BackendBucketCdnPolicyNegativeCachingPolicy.toObject(message.negativeCachingPolicy[j], options); } + if (message.cacheKeyPolicy != null && message.hasOwnProperty("cacheKeyPolicy")) { + object.cacheKeyPolicy = $root.google.cloud.compute.v1.BackendBucketCdnPolicyCacheKeyPolicy.toObject(message.cacheKeyPolicy, options); + if (options.oneofs) + object._cacheKeyPolicy = "cacheKeyPolicy"; + } if (message.serveWhileStale != null && message.hasOwnProperty("serveWhileStale")) { object.serveWhileStale = message.serveWhileStale; if (options.oneofs) @@ -35483,6 +35647,248 @@ return BackendBucketCdnPolicyBypassCacheOnRequestHeader; })(); + v1.BackendBucketCdnPolicyCacheKeyPolicy = (function() { + + /** + * Properties of a BackendBucketCdnPolicyCacheKeyPolicy. + * @memberof google.cloud.compute.v1 + * @interface IBackendBucketCdnPolicyCacheKeyPolicy + * @property {Array.|null} [includeHttpHeaders] BackendBucketCdnPolicyCacheKeyPolicy includeHttpHeaders + * @property {Array.|null} [queryStringWhitelist] BackendBucketCdnPolicyCacheKeyPolicy queryStringWhitelist + */ + + /** + * Constructs a new BackendBucketCdnPolicyCacheKeyPolicy. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a BackendBucketCdnPolicyCacheKeyPolicy. + * @implements IBackendBucketCdnPolicyCacheKeyPolicy + * @constructor + * @param {google.cloud.compute.v1.IBackendBucketCdnPolicyCacheKeyPolicy=} [properties] Properties to set + */ + function BackendBucketCdnPolicyCacheKeyPolicy(properties) { + this.includeHttpHeaders = []; + this.queryStringWhitelist = []; + 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]]; + } + + /** + * BackendBucketCdnPolicyCacheKeyPolicy includeHttpHeaders. + * @member {Array.} includeHttpHeaders + * @memberof google.cloud.compute.v1.BackendBucketCdnPolicyCacheKeyPolicy + * @instance + */ + BackendBucketCdnPolicyCacheKeyPolicy.prototype.includeHttpHeaders = $util.emptyArray; + + /** + * BackendBucketCdnPolicyCacheKeyPolicy queryStringWhitelist. + * @member {Array.} queryStringWhitelist + * @memberof google.cloud.compute.v1.BackendBucketCdnPolicyCacheKeyPolicy + * @instance + */ + BackendBucketCdnPolicyCacheKeyPolicy.prototype.queryStringWhitelist = $util.emptyArray; + + /** + * Creates a new BackendBucketCdnPolicyCacheKeyPolicy instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.BackendBucketCdnPolicyCacheKeyPolicy + * @static + * @param {google.cloud.compute.v1.IBackendBucketCdnPolicyCacheKeyPolicy=} [properties] Properties to set + * @returns {google.cloud.compute.v1.BackendBucketCdnPolicyCacheKeyPolicy} BackendBucketCdnPolicyCacheKeyPolicy instance + */ + BackendBucketCdnPolicyCacheKeyPolicy.create = function create(properties) { + return new BackendBucketCdnPolicyCacheKeyPolicy(properties); + }; + + /** + * Encodes the specified BackendBucketCdnPolicyCacheKeyPolicy message. Does not implicitly {@link google.cloud.compute.v1.BackendBucketCdnPolicyCacheKeyPolicy.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.BackendBucketCdnPolicyCacheKeyPolicy + * @static + * @param {google.cloud.compute.v1.IBackendBucketCdnPolicyCacheKeyPolicy} message BackendBucketCdnPolicyCacheKeyPolicy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BackendBucketCdnPolicyCacheKeyPolicy.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.includeHttpHeaders != null && message.includeHttpHeaders.length) + for (var i = 0; i < message.includeHttpHeaders.length; ++i) + writer.uint32(/* id 2489606, wireType 2 =*/19916850).string(message.includeHttpHeaders[i]); + if (message.queryStringWhitelist != null && message.queryStringWhitelist.length) + for (var i = 0; i < message.queryStringWhitelist.length; ++i) + writer.uint32(/* id 52456496, wireType 2 =*/419651970).string(message.queryStringWhitelist[i]); + return writer; + }; + + /** + * Encodes the specified BackendBucketCdnPolicyCacheKeyPolicy message, length delimited. Does not implicitly {@link google.cloud.compute.v1.BackendBucketCdnPolicyCacheKeyPolicy.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.BackendBucketCdnPolicyCacheKeyPolicy + * @static + * @param {google.cloud.compute.v1.IBackendBucketCdnPolicyCacheKeyPolicy} message BackendBucketCdnPolicyCacheKeyPolicy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BackendBucketCdnPolicyCacheKeyPolicy.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BackendBucketCdnPolicyCacheKeyPolicy message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.BackendBucketCdnPolicyCacheKeyPolicy + * @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.BackendBucketCdnPolicyCacheKeyPolicy} BackendBucketCdnPolicyCacheKeyPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BackendBucketCdnPolicyCacheKeyPolicy.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.BackendBucketCdnPolicyCacheKeyPolicy(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2489606: + if (!(message.includeHttpHeaders && message.includeHttpHeaders.length)) + message.includeHttpHeaders = []; + message.includeHttpHeaders.push(reader.string()); + break; + case 52456496: + if (!(message.queryStringWhitelist && message.queryStringWhitelist.length)) + message.queryStringWhitelist = []; + message.queryStringWhitelist.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BackendBucketCdnPolicyCacheKeyPolicy message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.BackendBucketCdnPolicyCacheKeyPolicy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.BackendBucketCdnPolicyCacheKeyPolicy} BackendBucketCdnPolicyCacheKeyPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BackendBucketCdnPolicyCacheKeyPolicy.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BackendBucketCdnPolicyCacheKeyPolicy message. + * @function verify + * @memberof google.cloud.compute.v1.BackendBucketCdnPolicyCacheKeyPolicy + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BackendBucketCdnPolicyCacheKeyPolicy.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.includeHttpHeaders != null && message.hasOwnProperty("includeHttpHeaders")) { + if (!Array.isArray(message.includeHttpHeaders)) + return "includeHttpHeaders: array expected"; + for (var i = 0; i < message.includeHttpHeaders.length; ++i) + if (!$util.isString(message.includeHttpHeaders[i])) + return "includeHttpHeaders: string[] expected"; + } + if (message.queryStringWhitelist != null && message.hasOwnProperty("queryStringWhitelist")) { + if (!Array.isArray(message.queryStringWhitelist)) + return "queryStringWhitelist: array expected"; + for (var i = 0; i < message.queryStringWhitelist.length; ++i) + if (!$util.isString(message.queryStringWhitelist[i])) + return "queryStringWhitelist: string[] expected"; + } + return null; + }; + + /** + * Creates a BackendBucketCdnPolicyCacheKeyPolicy message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.BackendBucketCdnPolicyCacheKeyPolicy + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.BackendBucketCdnPolicyCacheKeyPolicy} BackendBucketCdnPolicyCacheKeyPolicy + */ + BackendBucketCdnPolicyCacheKeyPolicy.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.BackendBucketCdnPolicyCacheKeyPolicy) + return object; + var message = new $root.google.cloud.compute.v1.BackendBucketCdnPolicyCacheKeyPolicy(); + if (object.includeHttpHeaders) { + if (!Array.isArray(object.includeHttpHeaders)) + throw TypeError(".google.cloud.compute.v1.BackendBucketCdnPolicyCacheKeyPolicy.includeHttpHeaders: array expected"); + message.includeHttpHeaders = []; + for (var i = 0; i < object.includeHttpHeaders.length; ++i) + message.includeHttpHeaders[i] = String(object.includeHttpHeaders[i]); + } + if (object.queryStringWhitelist) { + if (!Array.isArray(object.queryStringWhitelist)) + throw TypeError(".google.cloud.compute.v1.BackendBucketCdnPolicyCacheKeyPolicy.queryStringWhitelist: array expected"); + message.queryStringWhitelist = []; + for (var i = 0; i < object.queryStringWhitelist.length; ++i) + message.queryStringWhitelist[i] = String(object.queryStringWhitelist[i]); + } + return message; + }; + + /** + * Creates a plain object from a BackendBucketCdnPolicyCacheKeyPolicy message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.BackendBucketCdnPolicyCacheKeyPolicy + * @static + * @param {google.cloud.compute.v1.BackendBucketCdnPolicyCacheKeyPolicy} message BackendBucketCdnPolicyCacheKeyPolicy + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BackendBucketCdnPolicyCacheKeyPolicy.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.includeHttpHeaders = []; + object.queryStringWhitelist = []; + } + if (message.includeHttpHeaders && message.includeHttpHeaders.length) { + object.includeHttpHeaders = []; + for (var j = 0; j < message.includeHttpHeaders.length; ++j) + object.includeHttpHeaders[j] = message.includeHttpHeaders[j]; + } + if (message.queryStringWhitelist && message.queryStringWhitelist.length) { + object.queryStringWhitelist = []; + for (var j = 0; j < message.queryStringWhitelist.length; ++j) + object.queryStringWhitelist[j] = message.queryStringWhitelist[j]; + } + return object; + }; + + /** + * Converts this BackendBucketCdnPolicyCacheKeyPolicy to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.BackendBucketCdnPolicyCacheKeyPolicy + * @instance + * @returns {Object.} JSON object + */ + BackendBucketCdnPolicyCacheKeyPolicy.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return BackendBucketCdnPolicyCacheKeyPolicy; + })(); + v1.BackendBucketCdnPolicyNegativeCachingPolicy = (function() { /** @@ -36139,11 +36545,13 @@ * @property {google.cloud.compute.v1.IBackendServiceCdnPolicy|null} [cdnPolicy] BackendService cdnPolicy * @property {google.cloud.compute.v1.ICircuitBreakers|null} [circuitBreakers] BackendService circuitBreakers * @property {google.cloud.compute.v1.IConnectionDraining|null} [connectionDraining] BackendService connectionDraining + * @property {google.cloud.compute.v1.IBackendServiceConnectionTrackingPolicy|null} [connectionTrackingPolicy] BackendService connectionTrackingPolicy * @property {google.cloud.compute.v1.IConsistentHashLoadBalancerSettings|null} [consistentHash] BackendService consistentHash * @property {string|null} [creationTimestamp] BackendService creationTimestamp * @property {Array.|null} [customRequestHeaders] BackendService customRequestHeaders * @property {Array.|null} [customResponseHeaders] BackendService customResponseHeaders * @property {string|null} [description] BackendService description + * @property {string|null} [edgeSecurityPolicy] BackendService edgeSecurityPolicy * @property {boolean|null} [enableCDN] BackendService enableCDN * @property {google.cloud.compute.v1.IBackendServiceFailoverPolicy|null} [failoverPolicy] BackendService failoverPolicy * @property {string|null} [fingerprint] BackendService fingerprint @@ -36229,6 +36637,14 @@ */ BackendService.prototype.connectionDraining = null; + /** + * BackendService connectionTrackingPolicy. + * @member {google.cloud.compute.v1.IBackendServiceConnectionTrackingPolicy|null|undefined} connectionTrackingPolicy + * @memberof google.cloud.compute.v1.BackendService + * @instance + */ + BackendService.prototype.connectionTrackingPolicy = null; + /** * BackendService consistentHash. * @member {google.cloud.compute.v1.IConsistentHashLoadBalancerSettings|null|undefined} consistentHash @@ -36269,6 +36685,14 @@ */ BackendService.prototype.description = null; + /** + * BackendService edgeSecurityPolicy. + * @member {string|null|undefined} edgeSecurityPolicy + * @memberof google.cloud.compute.v1.BackendService + * @instance + */ + BackendService.prototype.edgeSecurityPolicy = null; + /** * BackendService enableCDN. * @member {boolean|null|undefined} enableCDN @@ -36508,6 +36932,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * BackendService _connectionTrackingPolicy. + * @member {"connectionTrackingPolicy"|undefined} _connectionTrackingPolicy + * @memberof google.cloud.compute.v1.BackendService + * @instance + */ + Object.defineProperty(BackendService.prototype, "_connectionTrackingPolicy", { + get: $util.oneOfGetter($oneOfFields = ["connectionTrackingPolicy"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * BackendService _consistentHash. * @member {"consistentHash"|undefined} _consistentHash @@ -36541,6 +36976,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * BackendService _edgeSecurityPolicy. + * @member {"edgeSecurityPolicy"|undefined} _edgeSecurityPolicy + * @memberof google.cloud.compute.v1.BackendService + * @instance + */ + Object.defineProperty(BackendService.prototype, "_edgeSecurityPolicy", { + get: $util.oneOfGetter($oneOfFields = ["edgeSecurityPolicy"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * BackendService _enableCDN. * @member {"enableCDN"|undefined} _enableCDN @@ -36835,6 +37281,8 @@ writer.uint32(/* id 27977992, wireType 2 =*/223823938).string(message.customRequestHeaders[i]); if (message.creationTimestamp != null && Object.hasOwnProperty.call(message, "creationTimestamp")) writer.uint32(/* id 30525366, wireType 2 =*/244202930).string(message.creationTimestamp); + if (message.edgeSecurityPolicy != null && Object.hasOwnProperty.call(message, "edgeSecurityPolicy")) + writer.uint32(/* id 41036943, wireType 2 =*/328295546).string(message.edgeSecurityPolicy); if (message.portName != null && Object.hasOwnProperty.call(message, "portName")) writer.uint32(/* id 41534345, wireType 2 =*/332274762).string(message.portName); if (message.maxStreamDuration != null && Object.hasOwnProperty.call(message, "maxStreamDuration")) @@ -36849,6 +37297,8 @@ writer.uint32(/* id 131431487, wireType 2 =*/1051451898).string(message.localityLbPolicy); if (message.region != null && Object.hasOwnProperty.call(message, "region")) writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.connectionTrackingPolicy != null && Object.hasOwnProperty.call(message, "connectionTrackingPolicy")) + $root.google.cloud.compute.v1.BackendServiceConnectionTrackingPolicy.encode(message.connectionTrackingPolicy, writer.uint32(/* id 143994969, wireType 2 =*/1151959754).fork()).ldelim(); if (message.securityPolicy != null && Object.hasOwnProperty.call(message, "securityPolicy")) writer.uint32(/* id 171082513, wireType 2 =*/1368660106).string(message.securityPolicy); if (message.cdnPolicy != null && Object.hasOwnProperty.call(message, "cdnPolicy")) @@ -36941,6 +37391,9 @@ case 461096747: message.connectionDraining = $root.google.cloud.compute.v1.ConnectionDraining.decode(reader, reader.uint32()); break; + case 143994969: + message.connectionTrackingPolicy = $root.google.cloud.compute.v1.BackendServiceConnectionTrackingPolicy.decode(reader, reader.uint32()); + break; case 905883: message.consistentHash = $root.google.cloud.compute.v1.ConsistentHashLoadBalancerSettings.decode(reader, reader.uint32()); break; @@ -36960,6 +37413,9 @@ case 422937596: message.description = reader.string(); break; + case 41036943: + message.edgeSecurityPolicy = reader.string(); + break; case 250733499: message.enableCDN = reader.bool(); break; @@ -37108,6 +37564,14 @@ return "connectionDraining." + error; } } + if (message.connectionTrackingPolicy != null && message.hasOwnProperty("connectionTrackingPolicy")) { + properties._connectionTrackingPolicy = 1; + { + var error = $root.google.cloud.compute.v1.BackendServiceConnectionTrackingPolicy.verify(message.connectionTrackingPolicy); + if (error) + return "connectionTrackingPolicy." + error; + } + } if (message.consistentHash != null && message.hasOwnProperty("consistentHash")) { properties._consistentHash = 1; { @@ -37140,6 +37604,11 @@ if (!$util.isString(message.description)) return "description: string expected"; } + if (message.edgeSecurityPolicy != null && message.hasOwnProperty("edgeSecurityPolicy")) { + properties._edgeSecurityPolicy = 1; + if (!$util.isString(message.edgeSecurityPolicy)) + return "edgeSecurityPolicy: string expected"; + } if (message.enableCDN != null && message.hasOwnProperty("enableCDN")) { properties._enableCDN = 1; if (typeof message.enableCDN !== "boolean") @@ -37325,6 +37794,11 @@ throw TypeError(".google.cloud.compute.v1.BackendService.connectionDraining: object expected"); message.connectionDraining = $root.google.cloud.compute.v1.ConnectionDraining.fromObject(object.connectionDraining); } + if (object.connectionTrackingPolicy != null) { + if (typeof object.connectionTrackingPolicy !== "object") + throw TypeError(".google.cloud.compute.v1.BackendService.connectionTrackingPolicy: object expected"); + message.connectionTrackingPolicy = $root.google.cloud.compute.v1.BackendServiceConnectionTrackingPolicy.fromObject(object.connectionTrackingPolicy); + } if (object.consistentHash != null) { if (typeof object.consistentHash !== "object") throw TypeError(".google.cloud.compute.v1.BackendService.consistentHash: object expected"); @@ -37348,6 +37822,8 @@ } if (object.description != null) message.description = String(object.description); + if (object.edgeSecurityPolicy != null) + message.edgeSecurityPolicy = String(object.edgeSecurityPolicy); if (object.enableCDN != null) message.enableCDN = Boolean(object.enableCDN); if (object.failoverPolicy != null) { @@ -37494,6 +37970,11 @@ if (options.oneofs) object._creationTimestamp = "creationTimestamp"; } + if (message.edgeSecurityPolicy != null && message.hasOwnProperty("edgeSecurityPolicy")) { + object.edgeSecurityPolicy = message.edgeSecurityPolicy; + if (options.oneofs) + object._edgeSecurityPolicy = "edgeSecurityPolicy"; + } if (message.portName != null && message.hasOwnProperty("portName")) { object.portName = message.portName; if (options.oneofs) @@ -37529,6 +38010,11 @@ if (options.oneofs) object._region = "region"; } + if (message.connectionTrackingPolicy != null && message.hasOwnProperty("connectionTrackingPolicy")) { + object.connectionTrackingPolicy = $root.google.cloud.compute.v1.BackendServiceConnectionTrackingPolicy.toObject(message.connectionTrackingPolicy, options); + if (options.oneofs) + object._connectionTrackingPolicy = "connectionTrackingPolicy"; + } if (message.securityPolicy != null && message.hasOwnProperty("securityPolicy")) { object.securityPolicy = message.securityPolicy; if (options.oneofs) @@ -37644,6 +38130,7 @@ * @enum {number} * @property {number} UNDEFINED_LOAD_BALANCING_SCHEME=0 UNDEFINED_LOAD_BALANCING_SCHEME value * @property {number} EXTERNAL=35607499 EXTERNAL value + * @property {number} EXTERNAL_MANAGED=512006923 EXTERNAL_MANAGED value * @property {number} INTERNAL=279295677 INTERNAL value * @property {number} INTERNAL_MANAGED=37350397 INTERNAL_MANAGED value * @property {number} INTERNAL_SELF_MANAGED=236211150 INTERNAL_SELF_MANAGED value @@ -37653,6 +38140,7 @@ var valuesById = {}, values = Object.create(valuesById); values[valuesById[0] = "UNDEFINED_LOAD_BALANCING_SCHEME"] = 0; values[valuesById[35607499] = "EXTERNAL"] = 35607499; + values[valuesById[512006923] = "EXTERNAL_MANAGED"] = 512006923; values[valuesById[279295677] = "INTERNAL"] = 279295677; values[valuesById[37350397] = "INTERNAL_MANAGED"] = 37350397; values[valuesById[236211150] = "INTERNAL_SELF_MANAGED"] = 236211150; @@ -37698,6 +38186,7 @@ * @property {number} SSL=82412 SSL value * @property {number} TCP=82881 TCP value * @property {number} UDP=83873 UDP value + * @property {number} UNSPECIFIED=526786327 UNSPECIFIED value */ BackendService.Protocol = (function() { var valuesById = {}, values = Object.create(valuesById); @@ -37709,6 +38198,7 @@ values[valuesById[82412] = "SSL"] = 82412; values[valuesById[82881] = "TCP"] = 82881; values[valuesById[83873] = "UDP"] = 83873; + values[valuesById[526786327] = "UNSPECIFIED"] = 526786327; return values; })(); @@ -39316,6 +39806,321 @@ return BackendServiceCdnPolicyNegativeCachingPolicy; })(); + v1.BackendServiceConnectionTrackingPolicy = (function() { + + /** + * Properties of a BackendServiceConnectionTrackingPolicy. + * @memberof google.cloud.compute.v1 + * @interface IBackendServiceConnectionTrackingPolicy + * @property {string|null} [connectionPersistenceOnUnhealthyBackends] BackendServiceConnectionTrackingPolicy connectionPersistenceOnUnhealthyBackends + * @property {number|null} [idleTimeoutSec] BackendServiceConnectionTrackingPolicy idleTimeoutSec + * @property {string|null} [trackingMode] BackendServiceConnectionTrackingPolicy trackingMode + */ + + /** + * Constructs a new BackendServiceConnectionTrackingPolicy. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a BackendServiceConnectionTrackingPolicy. + * @implements IBackendServiceConnectionTrackingPolicy + * @constructor + * @param {google.cloud.compute.v1.IBackendServiceConnectionTrackingPolicy=} [properties] Properties to set + */ + function BackendServiceConnectionTrackingPolicy(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]]; + } + + /** + * BackendServiceConnectionTrackingPolicy connectionPersistenceOnUnhealthyBackends. + * @member {string|null|undefined} connectionPersistenceOnUnhealthyBackends + * @memberof google.cloud.compute.v1.BackendServiceConnectionTrackingPolicy + * @instance + */ + BackendServiceConnectionTrackingPolicy.prototype.connectionPersistenceOnUnhealthyBackends = null; + + /** + * BackendServiceConnectionTrackingPolicy idleTimeoutSec. + * @member {number|null|undefined} idleTimeoutSec + * @memberof google.cloud.compute.v1.BackendServiceConnectionTrackingPolicy + * @instance + */ + BackendServiceConnectionTrackingPolicy.prototype.idleTimeoutSec = null; + + /** + * BackendServiceConnectionTrackingPolicy trackingMode. + * @member {string|null|undefined} trackingMode + * @memberof google.cloud.compute.v1.BackendServiceConnectionTrackingPolicy + * @instance + */ + BackendServiceConnectionTrackingPolicy.prototype.trackingMode = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * BackendServiceConnectionTrackingPolicy _connectionPersistenceOnUnhealthyBackends. + * @member {"connectionPersistenceOnUnhealthyBackends"|undefined} _connectionPersistenceOnUnhealthyBackends + * @memberof google.cloud.compute.v1.BackendServiceConnectionTrackingPolicy + * @instance + */ + Object.defineProperty(BackendServiceConnectionTrackingPolicy.prototype, "_connectionPersistenceOnUnhealthyBackends", { + get: $util.oneOfGetter($oneOfFields = ["connectionPersistenceOnUnhealthyBackends"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * BackendServiceConnectionTrackingPolicy _idleTimeoutSec. + * @member {"idleTimeoutSec"|undefined} _idleTimeoutSec + * @memberof google.cloud.compute.v1.BackendServiceConnectionTrackingPolicy + * @instance + */ + Object.defineProperty(BackendServiceConnectionTrackingPolicy.prototype, "_idleTimeoutSec", { + get: $util.oneOfGetter($oneOfFields = ["idleTimeoutSec"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * BackendServiceConnectionTrackingPolicy _trackingMode. + * @member {"trackingMode"|undefined} _trackingMode + * @memberof google.cloud.compute.v1.BackendServiceConnectionTrackingPolicy + * @instance + */ + Object.defineProperty(BackendServiceConnectionTrackingPolicy.prototype, "_trackingMode", { + get: $util.oneOfGetter($oneOfFields = ["trackingMode"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new BackendServiceConnectionTrackingPolicy instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.BackendServiceConnectionTrackingPolicy + * @static + * @param {google.cloud.compute.v1.IBackendServiceConnectionTrackingPolicy=} [properties] Properties to set + * @returns {google.cloud.compute.v1.BackendServiceConnectionTrackingPolicy} BackendServiceConnectionTrackingPolicy instance + */ + BackendServiceConnectionTrackingPolicy.create = function create(properties) { + return new BackendServiceConnectionTrackingPolicy(properties); + }; + + /** + * Encodes the specified BackendServiceConnectionTrackingPolicy message. Does not implicitly {@link google.cloud.compute.v1.BackendServiceConnectionTrackingPolicy.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.BackendServiceConnectionTrackingPolicy + * @static + * @param {google.cloud.compute.v1.IBackendServiceConnectionTrackingPolicy} message BackendServiceConnectionTrackingPolicy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BackendServiceConnectionTrackingPolicy.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.idleTimeoutSec != null && Object.hasOwnProperty.call(message, "idleTimeoutSec")) + writer.uint32(/* id 24977544, wireType 0 =*/199820352).int32(message.idleTimeoutSec); + if (message.trackingMode != null && Object.hasOwnProperty.call(message, "trackingMode")) + writer.uint32(/* id 127757867, wireType 2 =*/1022062938).string(message.trackingMode); + if (message.connectionPersistenceOnUnhealthyBackends != null && Object.hasOwnProperty.call(message, "connectionPersistenceOnUnhealthyBackends")) + writer.uint32(/* id 152439033, wireType 2 =*/1219512266).string(message.connectionPersistenceOnUnhealthyBackends); + return writer; + }; + + /** + * Encodes the specified BackendServiceConnectionTrackingPolicy message, length delimited. Does not implicitly {@link google.cloud.compute.v1.BackendServiceConnectionTrackingPolicy.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.BackendServiceConnectionTrackingPolicy + * @static + * @param {google.cloud.compute.v1.IBackendServiceConnectionTrackingPolicy} message BackendServiceConnectionTrackingPolicy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BackendServiceConnectionTrackingPolicy.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BackendServiceConnectionTrackingPolicy message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.BackendServiceConnectionTrackingPolicy + * @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.BackendServiceConnectionTrackingPolicy} BackendServiceConnectionTrackingPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BackendServiceConnectionTrackingPolicy.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.BackendServiceConnectionTrackingPolicy(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 152439033: + message.connectionPersistenceOnUnhealthyBackends = reader.string(); + break; + case 24977544: + message.idleTimeoutSec = reader.int32(); + break; + case 127757867: + message.trackingMode = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BackendServiceConnectionTrackingPolicy message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.BackendServiceConnectionTrackingPolicy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.BackendServiceConnectionTrackingPolicy} BackendServiceConnectionTrackingPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BackendServiceConnectionTrackingPolicy.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BackendServiceConnectionTrackingPolicy message. + * @function verify + * @memberof google.cloud.compute.v1.BackendServiceConnectionTrackingPolicy + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BackendServiceConnectionTrackingPolicy.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.connectionPersistenceOnUnhealthyBackends != null && message.hasOwnProperty("connectionPersistenceOnUnhealthyBackends")) { + properties._connectionPersistenceOnUnhealthyBackends = 1; + if (!$util.isString(message.connectionPersistenceOnUnhealthyBackends)) + return "connectionPersistenceOnUnhealthyBackends: string expected"; + } + if (message.idleTimeoutSec != null && message.hasOwnProperty("idleTimeoutSec")) { + properties._idleTimeoutSec = 1; + if (!$util.isInteger(message.idleTimeoutSec)) + return "idleTimeoutSec: integer expected"; + } + if (message.trackingMode != null && message.hasOwnProperty("trackingMode")) { + properties._trackingMode = 1; + if (!$util.isString(message.trackingMode)) + return "trackingMode: string expected"; + } + return null; + }; + + /** + * Creates a BackendServiceConnectionTrackingPolicy message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.BackendServiceConnectionTrackingPolicy + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.BackendServiceConnectionTrackingPolicy} BackendServiceConnectionTrackingPolicy + */ + BackendServiceConnectionTrackingPolicy.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.BackendServiceConnectionTrackingPolicy) + return object; + var message = new $root.google.cloud.compute.v1.BackendServiceConnectionTrackingPolicy(); + if (object.connectionPersistenceOnUnhealthyBackends != null) + message.connectionPersistenceOnUnhealthyBackends = String(object.connectionPersistenceOnUnhealthyBackends); + if (object.idleTimeoutSec != null) + message.idleTimeoutSec = object.idleTimeoutSec | 0; + if (object.trackingMode != null) + message.trackingMode = String(object.trackingMode); + return message; + }; + + /** + * Creates a plain object from a BackendServiceConnectionTrackingPolicy message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.BackendServiceConnectionTrackingPolicy + * @static + * @param {google.cloud.compute.v1.BackendServiceConnectionTrackingPolicy} message BackendServiceConnectionTrackingPolicy + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BackendServiceConnectionTrackingPolicy.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.idleTimeoutSec != null && message.hasOwnProperty("idleTimeoutSec")) { + object.idleTimeoutSec = message.idleTimeoutSec; + if (options.oneofs) + object._idleTimeoutSec = "idleTimeoutSec"; + } + if (message.trackingMode != null && message.hasOwnProperty("trackingMode")) { + object.trackingMode = message.trackingMode; + if (options.oneofs) + object._trackingMode = "trackingMode"; + } + if (message.connectionPersistenceOnUnhealthyBackends != null && message.hasOwnProperty("connectionPersistenceOnUnhealthyBackends")) { + object.connectionPersistenceOnUnhealthyBackends = message.connectionPersistenceOnUnhealthyBackends; + if (options.oneofs) + object._connectionPersistenceOnUnhealthyBackends = "connectionPersistenceOnUnhealthyBackends"; + } + return object; + }; + + /** + * Converts this BackendServiceConnectionTrackingPolicy to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.BackendServiceConnectionTrackingPolicy + * @instance + * @returns {Object.} JSON object + */ + BackendServiceConnectionTrackingPolicy.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * ConnectionPersistenceOnUnhealthyBackends enum. + * @name google.cloud.compute.v1.BackendServiceConnectionTrackingPolicy.ConnectionPersistenceOnUnhealthyBackends + * @enum {number} + * @property {number} UNDEFINED_CONNECTION_PERSISTENCE_ON_UNHEALTHY_BACKENDS=0 UNDEFINED_CONNECTION_PERSISTENCE_ON_UNHEALTHY_BACKENDS value + * @property {number} ALWAYS_PERSIST=38400900 ALWAYS_PERSIST value + * @property {number} DEFAULT_FOR_PROTOCOL=145265356 DEFAULT_FOR_PROTOCOL value + * @property {number} NEVER_PERSIST=138646241 NEVER_PERSIST value + */ + BackendServiceConnectionTrackingPolicy.ConnectionPersistenceOnUnhealthyBackends = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_CONNECTION_PERSISTENCE_ON_UNHEALTHY_BACKENDS"] = 0; + values[valuesById[38400900] = "ALWAYS_PERSIST"] = 38400900; + values[valuesById[145265356] = "DEFAULT_FOR_PROTOCOL"] = 145265356; + values[valuesById[138646241] = "NEVER_PERSIST"] = 138646241; + return values; + })(); + + /** + * TrackingMode enum. + * @name google.cloud.compute.v1.BackendServiceConnectionTrackingPolicy.TrackingMode + * @enum {number} + * @property {number} UNDEFINED_TRACKING_MODE=0 UNDEFINED_TRACKING_MODE value + * @property {number} INVALID_TRACKING_MODE=49234371 INVALID_TRACKING_MODE value + * @property {number} PER_CONNECTION=85162848 PER_CONNECTION value + * @property {number} PER_SESSION=182099252 PER_SESSION value + */ + BackendServiceConnectionTrackingPolicy.TrackingMode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_TRACKING_MODE"] = 0; + values[valuesById[49234371] = "INVALID_TRACKING_MODE"] = 49234371; + values[valuesById[85162848] = "PER_CONNECTION"] = 85162848; + values[valuesById[182099252] = "PER_SESSION"] = 182099252; + return values; + })(); + + return BackendServiceConnectionTrackingPolicy; + })(); + v1.BackendServiceFailoverPolicy = (function() { /** @@ -41323,28 +42128,39 @@ return BackendServicesScopedList; })(); - v1.Binding = (function() { + v1.BfdPacket = (function() { /** - * Properties of a Binding. + * Properties of a BfdPacket. * @memberof google.cloud.compute.v1 - * @interface IBinding - * @property {string|null} [bindingId] Binding bindingId - * @property {google.cloud.compute.v1.IExpr|null} [condition] Binding condition - * @property {Array.|null} [members] Binding members - * @property {string|null} [role] Binding role + * @interface IBfdPacket + * @property {boolean|null} [authenticationPresent] BfdPacket authenticationPresent + * @property {boolean|null} [controlPlaneIndependent] BfdPacket controlPlaneIndependent + * @property {boolean|null} [demand] BfdPacket demand + * @property {string|null} [diagnostic] BfdPacket diagnostic + * @property {boolean|null} [final] BfdPacket final + * @property {number|null} [length] BfdPacket length + * @property {number|null} [minEchoRxIntervalMs] BfdPacket minEchoRxIntervalMs + * @property {number|null} [minRxIntervalMs] BfdPacket minRxIntervalMs + * @property {number|null} [minTxIntervalMs] BfdPacket minTxIntervalMs + * @property {number|null} [multiplier] BfdPacket multiplier + * @property {boolean|null} [multipoint] BfdPacket multipoint + * @property {number|null} [myDiscriminator] BfdPacket myDiscriminator + * @property {boolean|null} [poll] BfdPacket poll + * @property {string|null} [state] BfdPacket state + * @property {number|null} [version] BfdPacket version + * @property {number|null} [yourDiscriminator] BfdPacket yourDiscriminator */ /** - * Constructs a new Binding. + * Constructs a new BfdPacket. * @memberof google.cloud.compute.v1 - * @classdesc Represents a Binding. - * @implements IBinding + * @classdesc Represents a BfdPacket. + * @implements IBfdPacket * @constructor - * @param {google.cloud.compute.v1.IBinding=} [properties] Properties to set + * @param {google.cloud.compute.v1.IBfdPacket=} [properties] Properties to set */ - function Binding(properties) { - this.members = []; + function BfdPacket(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -41352,153 +42168,449 @@ } /** - * Binding bindingId. - * @member {string|null|undefined} bindingId - * @memberof google.cloud.compute.v1.Binding + * BfdPacket authenticationPresent. + * @member {boolean|null|undefined} authenticationPresent + * @memberof google.cloud.compute.v1.BfdPacket * @instance */ - Binding.prototype.bindingId = null; + BfdPacket.prototype.authenticationPresent = null; /** - * Binding condition. - * @member {google.cloud.compute.v1.IExpr|null|undefined} condition - * @memberof google.cloud.compute.v1.Binding + * BfdPacket controlPlaneIndependent. + * @member {boolean|null|undefined} controlPlaneIndependent + * @memberof google.cloud.compute.v1.BfdPacket * @instance */ - Binding.prototype.condition = null; + BfdPacket.prototype.controlPlaneIndependent = null; /** - * Binding members. - * @member {Array.} members - * @memberof google.cloud.compute.v1.Binding + * BfdPacket demand. + * @member {boolean|null|undefined} demand + * @memberof google.cloud.compute.v1.BfdPacket * @instance */ - Binding.prototype.members = $util.emptyArray; + BfdPacket.prototype.demand = null; /** - * Binding role. - * @member {string|null|undefined} role - * @memberof google.cloud.compute.v1.Binding + * BfdPacket diagnostic. + * @member {string|null|undefined} diagnostic + * @memberof google.cloud.compute.v1.BfdPacket * @instance */ - Binding.prototype.role = null; + BfdPacket.prototype.diagnostic = null; + + /** + * BfdPacket final. + * @member {boolean|null|undefined} final + * @memberof google.cloud.compute.v1.BfdPacket + * @instance + */ + BfdPacket.prototype.final = null; + + /** + * BfdPacket length. + * @member {number|null|undefined} length + * @memberof google.cloud.compute.v1.BfdPacket + * @instance + */ + BfdPacket.prototype.length = null; + + /** + * BfdPacket minEchoRxIntervalMs. + * @member {number|null|undefined} minEchoRxIntervalMs + * @memberof google.cloud.compute.v1.BfdPacket + * @instance + */ + BfdPacket.prototype.minEchoRxIntervalMs = null; + + /** + * BfdPacket minRxIntervalMs. + * @member {number|null|undefined} minRxIntervalMs + * @memberof google.cloud.compute.v1.BfdPacket + * @instance + */ + BfdPacket.prototype.minRxIntervalMs = null; + + /** + * BfdPacket minTxIntervalMs. + * @member {number|null|undefined} minTxIntervalMs + * @memberof google.cloud.compute.v1.BfdPacket + * @instance + */ + BfdPacket.prototype.minTxIntervalMs = null; + + /** + * BfdPacket multiplier. + * @member {number|null|undefined} multiplier + * @memberof google.cloud.compute.v1.BfdPacket + * @instance + */ + BfdPacket.prototype.multiplier = null; + + /** + * BfdPacket multipoint. + * @member {boolean|null|undefined} multipoint + * @memberof google.cloud.compute.v1.BfdPacket + * @instance + */ + BfdPacket.prototype.multipoint = null; + + /** + * BfdPacket myDiscriminator. + * @member {number|null|undefined} myDiscriminator + * @memberof google.cloud.compute.v1.BfdPacket + * @instance + */ + BfdPacket.prototype.myDiscriminator = null; + + /** + * BfdPacket poll. + * @member {boolean|null|undefined} poll + * @memberof google.cloud.compute.v1.BfdPacket + * @instance + */ + BfdPacket.prototype.poll = null; + + /** + * BfdPacket state. + * @member {string|null|undefined} state + * @memberof google.cloud.compute.v1.BfdPacket + * @instance + */ + BfdPacket.prototype.state = null; + + /** + * BfdPacket version. + * @member {number|null|undefined} version + * @memberof google.cloud.compute.v1.BfdPacket + * @instance + */ + BfdPacket.prototype.version = null; + + /** + * BfdPacket yourDiscriminator. + * @member {number|null|undefined} yourDiscriminator + * @memberof google.cloud.compute.v1.BfdPacket + * @instance + */ + BfdPacket.prototype.yourDiscriminator = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * Binding _bindingId. - * @member {"bindingId"|undefined} _bindingId - * @memberof google.cloud.compute.v1.Binding + * BfdPacket _authenticationPresent. + * @member {"authenticationPresent"|undefined} _authenticationPresent + * @memberof google.cloud.compute.v1.BfdPacket * @instance */ - Object.defineProperty(Binding.prototype, "_bindingId", { - get: $util.oneOfGetter($oneOfFields = ["bindingId"]), + Object.defineProperty(BfdPacket.prototype, "_authenticationPresent", { + get: $util.oneOfGetter($oneOfFields = ["authenticationPresent"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Binding _condition. - * @member {"condition"|undefined} _condition - * @memberof google.cloud.compute.v1.Binding + * BfdPacket _controlPlaneIndependent. + * @member {"controlPlaneIndependent"|undefined} _controlPlaneIndependent + * @memberof google.cloud.compute.v1.BfdPacket * @instance */ - Object.defineProperty(Binding.prototype, "_condition", { - get: $util.oneOfGetter($oneOfFields = ["condition"]), + Object.defineProperty(BfdPacket.prototype, "_controlPlaneIndependent", { + get: $util.oneOfGetter($oneOfFields = ["controlPlaneIndependent"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Binding _role. - * @member {"role"|undefined} _role - * @memberof google.cloud.compute.v1.Binding + * BfdPacket _demand. + * @member {"demand"|undefined} _demand + * @memberof google.cloud.compute.v1.BfdPacket * @instance */ - Object.defineProperty(Binding.prototype, "_role", { - get: $util.oneOfGetter($oneOfFields = ["role"]), + Object.defineProperty(BfdPacket.prototype, "_demand", { + get: $util.oneOfGetter($oneOfFields = ["demand"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new Binding instance using the specified properties. + * BfdPacket _diagnostic. + * @member {"diagnostic"|undefined} _diagnostic + * @memberof google.cloud.compute.v1.BfdPacket + * @instance + */ + Object.defineProperty(BfdPacket.prototype, "_diagnostic", { + get: $util.oneOfGetter($oneOfFields = ["diagnostic"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * BfdPacket _final. + * @member {"final"|undefined} _final + * @memberof google.cloud.compute.v1.BfdPacket + * @instance + */ + Object.defineProperty(BfdPacket.prototype, "_final", { + get: $util.oneOfGetter($oneOfFields = ["final"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * BfdPacket _length. + * @member {"length"|undefined} _length + * @memberof google.cloud.compute.v1.BfdPacket + * @instance + */ + Object.defineProperty(BfdPacket.prototype, "_length", { + get: $util.oneOfGetter($oneOfFields = ["length"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * BfdPacket _minEchoRxIntervalMs. + * @member {"minEchoRxIntervalMs"|undefined} _minEchoRxIntervalMs + * @memberof google.cloud.compute.v1.BfdPacket + * @instance + */ + Object.defineProperty(BfdPacket.prototype, "_minEchoRxIntervalMs", { + get: $util.oneOfGetter($oneOfFields = ["minEchoRxIntervalMs"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * BfdPacket _minRxIntervalMs. + * @member {"minRxIntervalMs"|undefined} _minRxIntervalMs + * @memberof google.cloud.compute.v1.BfdPacket + * @instance + */ + Object.defineProperty(BfdPacket.prototype, "_minRxIntervalMs", { + get: $util.oneOfGetter($oneOfFields = ["minRxIntervalMs"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * BfdPacket _minTxIntervalMs. + * @member {"minTxIntervalMs"|undefined} _minTxIntervalMs + * @memberof google.cloud.compute.v1.BfdPacket + * @instance + */ + Object.defineProperty(BfdPacket.prototype, "_minTxIntervalMs", { + get: $util.oneOfGetter($oneOfFields = ["minTxIntervalMs"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * BfdPacket _multiplier. + * @member {"multiplier"|undefined} _multiplier + * @memberof google.cloud.compute.v1.BfdPacket + * @instance + */ + Object.defineProperty(BfdPacket.prototype, "_multiplier", { + get: $util.oneOfGetter($oneOfFields = ["multiplier"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * BfdPacket _multipoint. + * @member {"multipoint"|undefined} _multipoint + * @memberof google.cloud.compute.v1.BfdPacket + * @instance + */ + Object.defineProperty(BfdPacket.prototype, "_multipoint", { + get: $util.oneOfGetter($oneOfFields = ["multipoint"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * BfdPacket _myDiscriminator. + * @member {"myDiscriminator"|undefined} _myDiscriminator + * @memberof google.cloud.compute.v1.BfdPacket + * @instance + */ + Object.defineProperty(BfdPacket.prototype, "_myDiscriminator", { + get: $util.oneOfGetter($oneOfFields = ["myDiscriminator"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * BfdPacket _poll. + * @member {"poll"|undefined} _poll + * @memberof google.cloud.compute.v1.BfdPacket + * @instance + */ + Object.defineProperty(BfdPacket.prototype, "_poll", { + get: $util.oneOfGetter($oneOfFields = ["poll"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * BfdPacket _state. + * @member {"state"|undefined} _state + * @memberof google.cloud.compute.v1.BfdPacket + * @instance + */ + Object.defineProperty(BfdPacket.prototype, "_state", { + get: $util.oneOfGetter($oneOfFields = ["state"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * BfdPacket _version. + * @member {"version"|undefined} _version + * @memberof google.cloud.compute.v1.BfdPacket + * @instance + */ + Object.defineProperty(BfdPacket.prototype, "_version", { + get: $util.oneOfGetter($oneOfFields = ["version"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * BfdPacket _yourDiscriminator. + * @member {"yourDiscriminator"|undefined} _yourDiscriminator + * @memberof google.cloud.compute.v1.BfdPacket + * @instance + */ + Object.defineProperty(BfdPacket.prototype, "_yourDiscriminator", { + get: $util.oneOfGetter($oneOfFields = ["yourDiscriminator"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new BfdPacket instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.Binding + * @memberof google.cloud.compute.v1.BfdPacket * @static - * @param {google.cloud.compute.v1.IBinding=} [properties] Properties to set - * @returns {google.cloud.compute.v1.Binding} Binding instance + * @param {google.cloud.compute.v1.IBfdPacket=} [properties] Properties to set + * @returns {google.cloud.compute.v1.BfdPacket} BfdPacket instance */ - Binding.create = function create(properties) { - return new Binding(properties); + BfdPacket.create = function create(properties) { + return new BfdPacket(properties); }; /** - * Encodes the specified Binding message. Does not implicitly {@link google.cloud.compute.v1.Binding.verify|verify} messages. + * Encodes the specified BfdPacket message. Does not implicitly {@link google.cloud.compute.v1.BfdPacket.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.Binding + * @memberof google.cloud.compute.v1.BfdPacket * @static - * @param {google.cloud.compute.v1.IBinding} message Binding message or plain object to encode + * @param {google.cloud.compute.v1.IBfdPacket} message BfdPacket message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Binding.encode = function encode(message, writer) { + BfdPacket.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.role != null && Object.hasOwnProperty.call(message, "role")) - writer.uint32(/* id 3506294, wireType 2 =*/28050354).string(message.role); - if (message.condition != null && Object.hasOwnProperty.call(message, "condition")) - $root.google.cloud.compute.v1.Expr.encode(message.condition, writer.uint32(/* id 212430107, wireType 2 =*/1699440858).fork()).ldelim(); - if (message.members != null && message.members.length) - for (var i = 0; i < message.members.length; ++i) - writer.uint32(/* id 412010777, wireType 2 =*/3296086218).string(message.members[i]); - if (message.bindingId != null && Object.hasOwnProperty.call(message, "bindingId")) - writer.uint32(/* id 441088277, wireType 2 =*/3528706218).string(message.bindingId); + if (message.poll != null && Object.hasOwnProperty.call(message, "poll")) + writer.uint32(/* id 3446719, wireType 0 =*/27573752).bool(message.poll); + if (message.controlPlaneIndependent != null && Object.hasOwnProperty.call(message, "controlPlaneIndependent")) + writer.uint32(/* id 62363573, wireType 0 =*/498908584).bool(message.controlPlaneIndependent); + if (message.diagnostic != null && Object.hasOwnProperty.call(message, "diagnostic")) + writer.uint32(/* id 62708647, wireType 2 =*/501669178).string(message.diagnostic); + if (message.myDiscriminator != null && Object.hasOwnProperty.call(message, "myDiscriminator")) + writer.uint32(/* id 76663113, wireType 0 =*/613304904).uint32(message.myDiscriminator); + if (message.minEchoRxIntervalMs != null && Object.hasOwnProperty.call(message, "minEchoRxIntervalMs")) + writer.uint32(/* id 97286868, wireType 0 =*/778294944).uint32(message.minEchoRxIntervalMs); + if (message.final != null && Object.hasOwnProperty.call(message, "final")) + writer.uint32(/* id 97436022, wireType 0 =*/779488176).bool(message.final); + if (message.authenticationPresent != null && Object.hasOwnProperty.call(message, "authenticationPresent")) + writer.uint32(/* id 105974260, wireType 0 =*/847794080).bool(message.authenticationPresent); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 109757585, wireType 2 =*/878060682).string(message.state); + if (message.multiplier != null && Object.hasOwnProperty.call(message, "multiplier")) + writer.uint32(/* id 191331777, wireType 0 =*/1530654216).uint32(message.multiplier); + if (message.multipoint != null && Object.hasOwnProperty.call(message, "multipoint")) + writer.uint32(/* id 191421431, wireType 0 =*/1531371448).bool(message.multipoint); + if (message.demand != null && Object.hasOwnProperty.call(message, "demand")) + writer.uint32(/* id 275180107, wireType 0 =*/2201440856).bool(message.demand); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 351608024, wireType 0 =*/2812864192).uint32(message.version); + if (message.minRxIntervalMs != null && Object.hasOwnProperty.call(message, "minRxIntervalMs")) + writer.uint32(/* id 463399028, wireType 0 =*/3707192224).uint32(message.minRxIntervalMs); + if (message.length != null && Object.hasOwnProperty.call(message, "length")) + writer.uint32(/* id 504249062, wireType 0 =*/4033992496).uint32(message.length); + if (message.yourDiscriminator != null && Object.hasOwnProperty.call(message, "yourDiscriminator")) + writer.uint32(/* id 515634064, wireType 0 =*/4125072512).uint32(message.yourDiscriminator); + if (message.minTxIntervalMs != null && Object.hasOwnProperty.call(message, "minTxIntervalMs")) + writer.uint32(/* id 526023602, wireType 0 =*/4208188816).uint32(message.minTxIntervalMs); return writer; }; /** - * Encodes the specified Binding message, length delimited. Does not implicitly {@link google.cloud.compute.v1.Binding.verify|verify} messages. + * Encodes the specified BfdPacket message, length delimited. Does not implicitly {@link google.cloud.compute.v1.BfdPacket.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.Binding + * @memberof google.cloud.compute.v1.BfdPacket * @static - * @param {google.cloud.compute.v1.IBinding} message Binding message or plain object to encode + * @param {google.cloud.compute.v1.IBfdPacket} message BfdPacket message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Binding.encodeDelimited = function encodeDelimited(message, writer) { + BfdPacket.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Binding message from the specified reader or buffer. + * Decodes a BfdPacket message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.Binding + * @memberof google.cloud.compute.v1.BfdPacket * @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.Binding} Binding + * @returns {google.cloud.compute.v1.BfdPacket} BfdPacket * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Binding.decode = function decode(reader, length) { + BfdPacket.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.Binding(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.BfdPacket(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 441088277: - message.bindingId = reader.string(); + case 105974260: + message.authenticationPresent = reader.bool(); break; - case 212430107: - message.condition = $root.google.cloud.compute.v1.Expr.decode(reader, reader.uint32()); + case 62363573: + message.controlPlaneIndependent = reader.bool(); break; - case 412010777: - if (!(message.members && message.members.length)) - message.members = []; - message.members.push(reader.string()); + case 275180107: + message.demand = reader.bool(); break; - case 3506294: - message.role = reader.string(); + case 62708647: + message.diagnostic = reader.string(); + break; + case 97436022: + message.final = reader.bool(); + break; + case 504249062: + message.length = reader.uint32(); + break; + case 97286868: + message.minEchoRxIntervalMs = reader.uint32(); + break; + case 463399028: + message.minRxIntervalMs = reader.uint32(); + break; + case 526023602: + message.minTxIntervalMs = reader.uint32(); + break; + case 191331777: + message.multiplier = reader.uint32(); + break; + case 191421431: + message.multipoint = reader.bool(); + break; + case 76663113: + message.myDiscriminator = reader.uint32(); + break; + case 3446719: + message.poll = reader.bool(); + break; + case 109757585: + message.state = reader.string(); + break; + case 351608024: + message.version = reader.uint32(); + break; + case 515634064: + message.yourDiscriminator = reader.uint32(); break; default: reader.skipType(tag & 7); @@ -41509,165 +42621,355 @@ }; /** - * Decodes a Binding message from the specified reader or buffer, length delimited. + * Decodes a BfdPacket message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.Binding + * @memberof google.cloud.compute.v1.BfdPacket * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.Binding} Binding + * @returns {google.cloud.compute.v1.BfdPacket} BfdPacket * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Binding.decodeDelimited = function decodeDelimited(reader) { + BfdPacket.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Binding message. + * Verifies a BfdPacket message. * @function verify - * @memberof google.cloud.compute.v1.Binding + * @memberof google.cloud.compute.v1.BfdPacket * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Binding.verify = function verify(message) { + BfdPacket.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; - if (message.bindingId != null && message.hasOwnProperty("bindingId")) { - properties._bindingId = 1; - if (!$util.isString(message.bindingId)) - return "bindingId: string expected"; + if (message.authenticationPresent != null && message.hasOwnProperty("authenticationPresent")) { + properties._authenticationPresent = 1; + if (typeof message.authenticationPresent !== "boolean") + return "authenticationPresent: boolean expected"; + } + if (message.controlPlaneIndependent != null && message.hasOwnProperty("controlPlaneIndependent")) { + properties._controlPlaneIndependent = 1; + if (typeof message.controlPlaneIndependent !== "boolean") + return "controlPlaneIndependent: boolean expected"; + } + if (message.demand != null && message.hasOwnProperty("demand")) { + properties._demand = 1; + if (typeof message.demand !== "boolean") + return "demand: boolean expected"; + } + if (message.diagnostic != null && message.hasOwnProperty("diagnostic")) { + properties._diagnostic = 1; + if (!$util.isString(message.diagnostic)) + return "diagnostic: string expected"; + } + if (message.final != null && message.hasOwnProperty("final")) { + properties._final = 1; + if (typeof message.final !== "boolean") + return "final: boolean expected"; + } + if (message.length != null && message.hasOwnProperty("length")) { + properties._length = 1; + if (!$util.isInteger(message.length)) + return "length: integer expected"; + } + if (message.minEchoRxIntervalMs != null && message.hasOwnProperty("minEchoRxIntervalMs")) { + properties._minEchoRxIntervalMs = 1; + if (!$util.isInteger(message.minEchoRxIntervalMs)) + return "minEchoRxIntervalMs: integer expected"; + } + if (message.minRxIntervalMs != null && message.hasOwnProperty("minRxIntervalMs")) { + properties._minRxIntervalMs = 1; + if (!$util.isInteger(message.minRxIntervalMs)) + return "minRxIntervalMs: integer expected"; + } + if (message.minTxIntervalMs != null && message.hasOwnProperty("minTxIntervalMs")) { + properties._minTxIntervalMs = 1; + if (!$util.isInteger(message.minTxIntervalMs)) + return "minTxIntervalMs: integer expected"; } - if (message.condition != null && message.hasOwnProperty("condition")) { - properties._condition = 1; - { - var error = $root.google.cloud.compute.v1.Expr.verify(message.condition); - if (error) - return "condition." + error; - } + if (message.multiplier != null && message.hasOwnProperty("multiplier")) { + properties._multiplier = 1; + if (!$util.isInteger(message.multiplier)) + return "multiplier: integer expected"; } - if (message.members != null && message.hasOwnProperty("members")) { - if (!Array.isArray(message.members)) - return "members: array expected"; - for (var i = 0; i < message.members.length; ++i) - if (!$util.isString(message.members[i])) - return "members: string[] expected"; + if (message.multipoint != null && message.hasOwnProperty("multipoint")) { + properties._multipoint = 1; + if (typeof message.multipoint !== "boolean") + return "multipoint: boolean expected"; } - if (message.role != null && message.hasOwnProperty("role")) { - properties._role = 1; - if (!$util.isString(message.role)) - return "role: string expected"; + if (message.myDiscriminator != null && message.hasOwnProperty("myDiscriminator")) { + properties._myDiscriminator = 1; + if (!$util.isInteger(message.myDiscriminator)) + return "myDiscriminator: integer expected"; + } + if (message.poll != null && message.hasOwnProperty("poll")) { + properties._poll = 1; + if (typeof message.poll !== "boolean") + return "poll: boolean expected"; + } + if (message.state != null && message.hasOwnProperty("state")) { + properties._state = 1; + if (!$util.isString(message.state)) + return "state: string expected"; + } + if (message.version != null && message.hasOwnProperty("version")) { + properties._version = 1; + if (!$util.isInteger(message.version)) + return "version: integer expected"; + } + if (message.yourDiscriminator != null && message.hasOwnProperty("yourDiscriminator")) { + properties._yourDiscriminator = 1; + if (!$util.isInteger(message.yourDiscriminator)) + return "yourDiscriminator: integer expected"; } return null; }; /** - * Creates a Binding message from a plain object. Also converts values to their respective internal types. + * Creates a BfdPacket message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.Binding + * @memberof google.cloud.compute.v1.BfdPacket * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.Binding} Binding + * @returns {google.cloud.compute.v1.BfdPacket} BfdPacket */ - Binding.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.Binding) + BfdPacket.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.BfdPacket) return object; - var message = new $root.google.cloud.compute.v1.Binding(); - if (object.bindingId != null) - message.bindingId = String(object.bindingId); - if (object.condition != null) { - if (typeof object.condition !== "object") - throw TypeError(".google.cloud.compute.v1.Binding.condition: object expected"); - message.condition = $root.google.cloud.compute.v1.Expr.fromObject(object.condition); - } - if (object.members) { - if (!Array.isArray(object.members)) - throw TypeError(".google.cloud.compute.v1.Binding.members: array expected"); - message.members = []; - for (var i = 0; i < object.members.length; ++i) - message.members[i] = String(object.members[i]); - } - if (object.role != null) - message.role = String(object.role); + var message = new $root.google.cloud.compute.v1.BfdPacket(); + if (object.authenticationPresent != null) + message.authenticationPresent = Boolean(object.authenticationPresent); + if (object.controlPlaneIndependent != null) + message.controlPlaneIndependent = Boolean(object.controlPlaneIndependent); + if (object.demand != null) + message.demand = Boolean(object.demand); + if (object.diagnostic != null) + message.diagnostic = String(object.diagnostic); + if (object.final != null) + message.final = Boolean(object.final); + if (object.length != null) + message.length = object.length >>> 0; + if (object.minEchoRxIntervalMs != null) + message.minEchoRxIntervalMs = object.minEchoRxIntervalMs >>> 0; + if (object.minRxIntervalMs != null) + message.minRxIntervalMs = object.minRxIntervalMs >>> 0; + if (object.minTxIntervalMs != null) + message.minTxIntervalMs = object.minTxIntervalMs >>> 0; + if (object.multiplier != null) + message.multiplier = object.multiplier >>> 0; + if (object.multipoint != null) + message.multipoint = Boolean(object.multipoint); + if (object.myDiscriminator != null) + message.myDiscriminator = object.myDiscriminator >>> 0; + if (object.poll != null) + message.poll = Boolean(object.poll); + if (object.state != null) + message.state = String(object.state); + if (object.version != null) + message.version = object.version >>> 0; + if (object.yourDiscriminator != null) + message.yourDiscriminator = object.yourDiscriminator >>> 0; return message; }; /** - * Creates a plain object from a Binding message. Also converts values to other types if specified. + * Creates a plain object from a BfdPacket message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.Binding + * @memberof google.cloud.compute.v1.BfdPacket * @static - * @param {google.cloud.compute.v1.Binding} message Binding + * @param {google.cloud.compute.v1.BfdPacket} message BfdPacket * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Binding.toObject = function toObject(message, options) { + BfdPacket.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.members = []; - if (message.role != null && message.hasOwnProperty("role")) { - object.role = message.role; + if (message.poll != null && message.hasOwnProperty("poll")) { + object.poll = message.poll; if (options.oneofs) - object._role = "role"; + object._poll = "poll"; } - if (message.condition != null && message.hasOwnProperty("condition")) { - object.condition = $root.google.cloud.compute.v1.Expr.toObject(message.condition, options); + if (message.controlPlaneIndependent != null && message.hasOwnProperty("controlPlaneIndependent")) { + object.controlPlaneIndependent = message.controlPlaneIndependent; if (options.oneofs) - object._condition = "condition"; + object._controlPlaneIndependent = "controlPlaneIndependent"; } - if (message.members && message.members.length) { - object.members = []; - for (var j = 0; j < message.members.length; ++j) - object.members[j] = message.members[j]; + if (message.diagnostic != null && message.hasOwnProperty("diagnostic")) { + object.diagnostic = message.diagnostic; + if (options.oneofs) + object._diagnostic = "diagnostic"; } - if (message.bindingId != null && message.hasOwnProperty("bindingId")) { - object.bindingId = message.bindingId; + if (message.myDiscriminator != null && message.hasOwnProperty("myDiscriminator")) { + object.myDiscriminator = message.myDiscriminator; if (options.oneofs) - object._bindingId = "bindingId"; + object._myDiscriminator = "myDiscriminator"; + } + if (message.minEchoRxIntervalMs != null && message.hasOwnProperty("minEchoRxIntervalMs")) { + object.minEchoRxIntervalMs = message.minEchoRxIntervalMs; + if (options.oneofs) + object._minEchoRxIntervalMs = "minEchoRxIntervalMs"; + } + if (message.final != null && message.hasOwnProperty("final")) { + object.final = message.final; + if (options.oneofs) + object._final = "final"; + } + if (message.authenticationPresent != null && message.hasOwnProperty("authenticationPresent")) { + object.authenticationPresent = message.authenticationPresent; + if (options.oneofs) + object._authenticationPresent = "authenticationPresent"; + } + if (message.state != null && message.hasOwnProperty("state")) { + object.state = message.state; + if (options.oneofs) + object._state = "state"; + } + if (message.multiplier != null && message.hasOwnProperty("multiplier")) { + object.multiplier = message.multiplier; + if (options.oneofs) + object._multiplier = "multiplier"; + } + if (message.multipoint != null && message.hasOwnProperty("multipoint")) { + object.multipoint = message.multipoint; + if (options.oneofs) + object._multipoint = "multipoint"; + } + if (message.demand != null && message.hasOwnProperty("demand")) { + object.demand = message.demand; + if (options.oneofs) + object._demand = "demand"; + } + if (message.version != null && message.hasOwnProperty("version")) { + object.version = message.version; + if (options.oneofs) + object._version = "version"; + } + if (message.minRxIntervalMs != null && message.hasOwnProperty("minRxIntervalMs")) { + object.minRxIntervalMs = message.minRxIntervalMs; + if (options.oneofs) + object._minRxIntervalMs = "minRxIntervalMs"; + } + if (message.length != null && message.hasOwnProperty("length")) { + object.length = message.length; + if (options.oneofs) + object._length = "length"; + } + if (message.yourDiscriminator != null && message.hasOwnProperty("yourDiscriminator")) { + object.yourDiscriminator = message.yourDiscriminator; + if (options.oneofs) + object._yourDiscriminator = "yourDiscriminator"; + } + if (message.minTxIntervalMs != null && message.hasOwnProperty("minTxIntervalMs")) { + object.minTxIntervalMs = message.minTxIntervalMs; + if (options.oneofs) + object._minTxIntervalMs = "minTxIntervalMs"; } return object; }; /** - * Converts this Binding to JSON. + * Converts this BfdPacket to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.Binding + * @memberof google.cloud.compute.v1.BfdPacket * @instance * @returns {Object.} JSON object */ - Binding.prototype.toJSON = function toJSON() { + BfdPacket.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Binding; + /** + * Diagnostic enum. + * @name google.cloud.compute.v1.BfdPacket.Diagnostic + * @enum {number} + * @property {number} UNDEFINED_DIAGNOSTIC=0 UNDEFINED_DIAGNOSTIC value + * @property {number} ADMINISTRATIVELY_DOWN=121685798 ADMINISTRATIVELY_DOWN value + * @property {number} CONCATENATED_PATH_DOWN=26186892 CONCATENATED_PATH_DOWN value + * @property {number} CONTROL_DETECTION_TIME_EXPIRED=135478383 CONTROL_DETECTION_TIME_EXPIRED value + * @property {number} DIAGNOSTIC_UNSPECIFIED=58720895 DIAGNOSTIC_UNSPECIFIED value + * @property {number} ECHO_FUNCTION_FAILED=220687466 ECHO_FUNCTION_FAILED value + * @property {number} FORWARDING_PLANE_RESET=19715882 FORWARDING_PLANE_RESET value + * @property {number} NEIGHBOR_SIGNALED_SESSION_DOWN=374226742 NEIGHBOR_SIGNALED_SESSION_DOWN value + * @property {number} NO_DIAGNOSTIC=222503141 NO_DIAGNOSTIC value + * @property {number} PATH_DOWN=290605180 PATH_DOWN value + * @property {number} REVERSE_CONCATENATED_PATH_DOWN=479337129 REVERSE_CONCATENATED_PATH_DOWN value + */ + BfdPacket.Diagnostic = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_DIAGNOSTIC"] = 0; + values[valuesById[121685798] = "ADMINISTRATIVELY_DOWN"] = 121685798; + values[valuesById[26186892] = "CONCATENATED_PATH_DOWN"] = 26186892; + values[valuesById[135478383] = "CONTROL_DETECTION_TIME_EXPIRED"] = 135478383; + values[valuesById[58720895] = "DIAGNOSTIC_UNSPECIFIED"] = 58720895; + values[valuesById[220687466] = "ECHO_FUNCTION_FAILED"] = 220687466; + values[valuesById[19715882] = "FORWARDING_PLANE_RESET"] = 19715882; + values[valuesById[374226742] = "NEIGHBOR_SIGNALED_SESSION_DOWN"] = 374226742; + values[valuesById[222503141] = "NO_DIAGNOSTIC"] = 222503141; + values[valuesById[290605180] = "PATH_DOWN"] = 290605180; + values[valuesById[479337129] = "REVERSE_CONCATENATED_PATH_DOWN"] = 479337129; + return values; + })(); + + /** + * State enum. + * @name google.cloud.compute.v1.BfdPacket.State + * @enum {number} + * @property {number} UNDEFINED_STATE=0 UNDEFINED_STATE value + * @property {number} ADMIN_DOWN=128544690 ADMIN_DOWN value + * @property {number} DOWN=2104482 DOWN value + * @property {number} INIT=2252048 INIT value + * @property {number} STATE_UNSPECIFIED=470755401 STATE_UNSPECIFIED value + * @property {number} UP=2715 UP value + */ + BfdPacket.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_STATE"] = 0; + values[valuesById[128544690] = "ADMIN_DOWN"] = 128544690; + values[valuesById[2104482] = "DOWN"] = 2104482; + values[valuesById[2252048] = "INIT"] = 2252048; + values[valuesById[470755401] = "STATE_UNSPECIFIED"] = 470755401; + values[valuesById[2715] = "UP"] = 2715; + return values; + })(); + + return BfdPacket; })(); - v1.BulkInsertInstanceRequest = (function() { + v1.BfdStatus = (function() { /** - * Properties of a BulkInsertInstanceRequest. + * Properties of a BfdStatus. * @memberof google.cloud.compute.v1 - * @interface IBulkInsertInstanceRequest - * @property {google.cloud.compute.v1.IBulkInsertInstanceResource|null} [bulkInsertInstanceResourceResource] BulkInsertInstanceRequest bulkInsertInstanceResourceResource - * @property {string|null} [project] BulkInsertInstanceRequest project - * @property {string|null} [requestId] BulkInsertInstanceRequest requestId - * @property {string|null} [zone] BulkInsertInstanceRequest zone + * @interface IBfdStatus + * @property {string|null} [bfdSessionInitializationMode] BfdStatus bfdSessionInitializationMode + * @property {number|Long|null} [configUpdateTimestampMicros] BfdStatus configUpdateTimestampMicros + * @property {google.cloud.compute.v1.IBfdStatusPacketCounts|null} [controlPacketCounts] BfdStatus controlPacketCounts + * @property {Array.|null} [controlPacketIntervals] BfdStatus controlPacketIntervals + * @property {string|null} [localDiagnostic] BfdStatus localDiagnostic + * @property {string|null} [localState] BfdStatus localState + * @property {number|null} [negotiatedLocalControlTxIntervalMs] BfdStatus negotiatedLocalControlTxIntervalMs + * @property {google.cloud.compute.v1.IBfdPacket|null} [rxPacket] BfdStatus rxPacket + * @property {google.cloud.compute.v1.IBfdPacket|null} [txPacket] BfdStatus txPacket + * @property {number|Long|null} [uptimeMs] BfdStatus uptimeMs */ /** - * Constructs a new BulkInsertInstanceRequest. + * Constructs a new BfdStatus. * @memberof google.cloud.compute.v1 - * @classdesc Represents a BulkInsertInstanceRequest. - * @implements IBulkInsertInstanceRequest + * @classdesc Represents a BfdStatus. + * @implements IBfdStatus * @constructor - * @param {google.cloud.compute.v1.IBulkInsertInstanceRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IBfdStatus=} [properties] Properties to set */ - function BulkInsertInstanceRequest(properties) { + function BfdStatus(properties) { + this.controlPacketIntervals = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -41675,128 +42977,297 @@ } /** - * BulkInsertInstanceRequest bulkInsertInstanceResourceResource. - * @member {google.cloud.compute.v1.IBulkInsertInstanceResource|null|undefined} bulkInsertInstanceResourceResource - * @memberof google.cloud.compute.v1.BulkInsertInstanceRequest + * BfdStatus bfdSessionInitializationMode. + * @member {string|null|undefined} bfdSessionInitializationMode + * @memberof google.cloud.compute.v1.BfdStatus * @instance */ - BulkInsertInstanceRequest.prototype.bulkInsertInstanceResourceResource = null; + BfdStatus.prototype.bfdSessionInitializationMode = null; /** - * BulkInsertInstanceRequest project. - * @member {string} project - * @memberof google.cloud.compute.v1.BulkInsertInstanceRequest + * BfdStatus configUpdateTimestampMicros. + * @member {number|Long|null|undefined} configUpdateTimestampMicros + * @memberof google.cloud.compute.v1.BfdStatus * @instance */ - BulkInsertInstanceRequest.prototype.project = ""; + BfdStatus.prototype.configUpdateTimestampMicros = null; /** - * BulkInsertInstanceRequest requestId. - * @member {string|null|undefined} requestId - * @memberof google.cloud.compute.v1.BulkInsertInstanceRequest + * BfdStatus controlPacketCounts. + * @member {google.cloud.compute.v1.IBfdStatusPacketCounts|null|undefined} controlPacketCounts + * @memberof google.cloud.compute.v1.BfdStatus * @instance */ - BulkInsertInstanceRequest.prototype.requestId = null; + BfdStatus.prototype.controlPacketCounts = null; /** - * BulkInsertInstanceRequest zone. - * @member {string} zone - * @memberof google.cloud.compute.v1.BulkInsertInstanceRequest + * BfdStatus controlPacketIntervals. + * @member {Array.} controlPacketIntervals + * @memberof google.cloud.compute.v1.BfdStatus * @instance */ - BulkInsertInstanceRequest.prototype.zone = ""; + BfdStatus.prototype.controlPacketIntervals = $util.emptyArray; + + /** + * BfdStatus localDiagnostic. + * @member {string|null|undefined} localDiagnostic + * @memberof google.cloud.compute.v1.BfdStatus + * @instance + */ + BfdStatus.prototype.localDiagnostic = null; + + /** + * BfdStatus localState. + * @member {string|null|undefined} localState + * @memberof google.cloud.compute.v1.BfdStatus + * @instance + */ + BfdStatus.prototype.localState = null; + + /** + * BfdStatus negotiatedLocalControlTxIntervalMs. + * @member {number|null|undefined} negotiatedLocalControlTxIntervalMs + * @memberof google.cloud.compute.v1.BfdStatus + * @instance + */ + BfdStatus.prototype.negotiatedLocalControlTxIntervalMs = null; + + /** + * BfdStatus rxPacket. + * @member {google.cloud.compute.v1.IBfdPacket|null|undefined} rxPacket + * @memberof google.cloud.compute.v1.BfdStatus + * @instance + */ + BfdStatus.prototype.rxPacket = null; + + /** + * BfdStatus txPacket. + * @member {google.cloud.compute.v1.IBfdPacket|null|undefined} txPacket + * @memberof google.cloud.compute.v1.BfdStatus + * @instance + */ + BfdStatus.prototype.txPacket = null; + + /** + * BfdStatus uptimeMs. + * @member {number|Long|null|undefined} uptimeMs + * @memberof google.cloud.compute.v1.BfdStatus + * @instance + */ + BfdStatus.prototype.uptimeMs = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * BulkInsertInstanceRequest _requestId. - * @member {"requestId"|undefined} _requestId - * @memberof google.cloud.compute.v1.BulkInsertInstanceRequest + * BfdStatus _bfdSessionInitializationMode. + * @member {"bfdSessionInitializationMode"|undefined} _bfdSessionInitializationMode + * @memberof google.cloud.compute.v1.BfdStatus * @instance */ - Object.defineProperty(BulkInsertInstanceRequest.prototype, "_requestId", { - get: $util.oneOfGetter($oneOfFields = ["requestId"]), + Object.defineProperty(BfdStatus.prototype, "_bfdSessionInitializationMode", { + get: $util.oneOfGetter($oneOfFields = ["bfdSessionInitializationMode"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new BulkInsertInstanceRequest instance using the specified properties. + * BfdStatus _configUpdateTimestampMicros. + * @member {"configUpdateTimestampMicros"|undefined} _configUpdateTimestampMicros + * @memberof google.cloud.compute.v1.BfdStatus + * @instance + */ + Object.defineProperty(BfdStatus.prototype, "_configUpdateTimestampMicros", { + get: $util.oneOfGetter($oneOfFields = ["configUpdateTimestampMicros"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * BfdStatus _controlPacketCounts. + * @member {"controlPacketCounts"|undefined} _controlPacketCounts + * @memberof google.cloud.compute.v1.BfdStatus + * @instance + */ + Object.defineProperty(BfdStatus.prototype, "_controlPacketCounts", { + get: $util.oneOfGetter($oneOfFields = ["controlPacketCounts"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * BfdStatus _localDiagnostic. + * @member {"localDiagnostic"|undefined} _localDiagnostic + * @memberof google.cloud.compute.v1.BfdStatus + * @instance + */ + Object.defineProperty(BfdStatus.prototype, "_localDiagnostic", { + get: $util.oneOfGetter($oneOfFields = ["localDiagnostic"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * BfdStatus _localState. + * @member {"localState"|undefined} _localState + * @memberof google.cloud.compute.v1.BfdStatus + * @instance + */ + Object.defineProperty(BfdStatus.prototype, "_localState", { + get: $util.oneOfGetter($oneOfFields = ["localState"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * BfdStatus _negotiatedLocalControlTxIntervalMs. + * @member {"negotiatedLocalControlTxIntervalMs"|undefined} _negotiatedLocalControlTxIntervalMs + * @memberof google.cloud.compute.v1.BfdStatus + * @instance + */ + Object.defineProperty(BfdStatus.prototype, "_negotiatedLocalControlTxIntervalMs", { + get: $util.oneOfGetter($oneOfFields = ["negotiatedLocalControlTxIntervalMs"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * BfdStatus _rxPacket. + * @member {"rxPacket"|undefined} _rxPacket + * @memberof google.cloud.compute.v1.BfdStatus + * @instance + */ + Object.defineProperty(BfdStatus.prototype, "_rxPacket", { + get: $util.oneOfGetter($oneOfFields = ["rxPacket"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * BfdStatus _txPacket. + * @member {"txPacket"|undefined} _txPacket + * @memberof google.cloud.compute.v1.BfdStatus + * @instance + */ + Object.defineProperty(BfdStatus.prototype, "_txPacket", { + get: $util.oneOfGetter($oneOfFields = ["txPacket"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * BfdStatus _uptimeMs. + * @member {"uptimeMs"|undefined} _uptimeMs + * @memberof google.cloud.compute.v1.BfdStatus + * @instance + */ + Object.defineProperty(BfdStatus.prototype, "_uptimeMs", { + get: $util.oneOfGetter($oneOfFields = ["uptimeMs"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new BfdStatus instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.BulkInsertInstanceRequest + * @memberof google.cloud.compute.v1.BfdStatus * @static - * @param {google.cloud.compute.v1.IBulkInsertInstanceRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.BulkInsertInstanceRequest} BulkInsertInstanceRequest instance + * @param {google.cloud.compute.v1.IBfdStatus=} [properties] Properties to set + * @returns {google.cloud.compute.v1.BfdStatus} BfdStatus instance */ - BulkInsertInstanceRequest.create = function create(properties) { - return new BulkInsertInstanceRequest(properties); + BfdStatus.create = function create(properties) { + return new BfdStatus(properties); }; /** - * Encodes the specified BulkInsertInstanceRequest message. Does not implicitly {@link google.cloud.compute.v1.BulkInsertInstanceRequest.verify|verify} messages. + * Encodes the specified BfdStatus message. Does not implicitly {@link google.cloud.compute.v1.BfdStatus.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.BulkInsertInstanceRequest + * @memberof google.cloud.compute.v1.BfdStatus * @static - * @param {google.cloud.compute.v1.IBulkInsertInstanceRequest} message BulkInsertInstanceRequest message or plain object to encode + * @param {google.cloud.compute.v1.IBfdStatus} message BfdStatus message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BulkInsertInstanceRequest.encode = function encode(message, writer) { + BfdStatus.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.requestId != null && Object.hasOwnProperty.call(message, "requestId")) - writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); - if (message.bulkInsertInstanceResourceResource != null && Object.hasOwnProperty.call(message, "bulkInsertInstanceResourceResource")) - $root.google.cloud.compute.v1.BulkInsertInstanceResource.encode(message.bulkInsertInstanceResourceResource, writer.uint32(/* id 41427278, wireType 2 =*/331418226).fork()).ldelim(); - if (message.project != null && Object.hasOwnProperty.call(message, "project")) - writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.negotiatedLocalControlTxIntervalMs != null && Object.hasOwnProperty.call(message, "negotiatedLocalControlTxIntervalMs")) + writer.uint32(/* id 21768340, wireType 0 =*/174146720).uint32(message.negotiatedLocalControlTxIntervalMs); + if (message.txPacket != null && Object.hasOwnProperty.call(message, "txPacket")) + $root.google.cloud.compute.v1.BfdPacket.encode(message.txPacket, writer.uint32(/* id 111386275, wireType 2 =*/891090202).fork()).ldelim(); + if (message.uptimeMs != null && Object.hasOwnProperty.call(message, "uptimeMs")) + writer.uint32(/* id 125398365, wireType 0 =*/1003186920).int64(message.uptimeMs); + if (message.controlPacketCounts != null && Object.hasOwnProperty.call(message, "controlPacketCounts")) + $root.google.cloud.compute.v1.BfdStatusPacketCounts.encode(message.controlPacketCounts, writer.uint32(/* id 132573561, wireType 2 =*/1060588490).fork()).ldelim(); + if (message.localState != null && Object.hasOwnProperty.call(message, "localState")) + writer.uint32(/* id 149195453, wireType 2 =*/1193563626).string(message.localState); + if (message.bfdSessionInitializationMode != null && Object.hasOwnProperty.call(message, "bfdSessionInitializationMode")) + writer.uint32(/* id 218156954, wireType 2 =*/1745255634).string(message.bfdSessionInitializationMode); + if (message.configUpdateTimestampMicros != null && Object.hasOwnProperty.call(message, "configUpdateTimestampMicros")) + writer.uint32(/* id 457195569, wireType 0 =*/3657564552).int64(message.configUpdateTimestampMicros); + if (message.localDiagnostic != null && Object.hasOwnProperty.call(message, "localDiagnostic")) + writer.uint32(/* id 463737083, wireType 2 =*/3709896666).string(message.localDiagnostic); + if (message.controlPacketIntervals != null && message.controlPacketIntervals.length) + for (var i = 0; i < message.controlPacketIntervals.length; ++i) + $root.google.cloud.compute.v1.PacketIntervals.encode(message.controlPacketIntervals[i], writer.uint32(/* id 500806649, wireType 2 =*/4006453194).fork()).ldelim(); + if (message.rxPacket != null && Object.hasOwnProperty.call(message, "rxPacket")) + $root.google.cloud.compute.v1.BfdPacket.encode(message.rxPacket, writer.uint32(/* id 505069729, wireType 2 =*/4040557834).fork()).ldelim(); return writer; }; /** - * Encodes the specified BulkInsertInstanceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.BulkInsertInstanceRequest.verify|verify} messages. + * Encodes the specified BfdStatus message, length delimited. Does not implicitly {@link google.cloud.compute.v1.BfdStatus.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.BulkInsertInstanceRequest + * @memberof google.cloud.compute.v1.BfdStatus * @static - * @param {google.cloud.compute.v1.IBulkInsertInstanceRequest} message BulkInsertInstanceRequest message or plain object to encode + * @param {google.cloud.compute.v1.IBfdStatus} message BfdStatus message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BulkInsertInstanceRequest.encodeDelimited = function encodeDelimited(message, writer) { + BfdStatus.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BulkInsertInstanceRequest message from the specified reader or buffer. + * Decodes a BfdStatus message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.BulkInsertInstanceRequest + * @memberof google.cloud.compute.v1.BfdStatus * @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.BulkInsertInstanceRequest} BulkInsertInstanceRequest + * @returns {google.cloud.compute.v1.BfdStatus} BfdStatus * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BulkInsertInstanceRequest.decode = function decode(reader, length) { + BfdStatus.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.BulkInsertInstanceRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.BfdStatus(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 41427278: - message.bulkInsertInstanceResourceResource = $root.google.cloud.compute.v1.BulkInsertInstanceResource.decode(reader, reader.uint32()); + case 218156954: + message.bfdSessionInitializationMode = reader.string(); break; - case 227560217: - message.project = reader.string(); + case 457195569: + message.configUpdateTimestampMicros = reader.int64(); break; - case 37109963: - message.requestId = reader.string(); + case 132573561: + message.controlPacketCounts = $root.google.cloud.compute.v1.BfdStatusPacketCounts.decode(reader, reader.uint32()); break; - case 3744684: - message.zone = reader.string(); + case 500806649: + if (!(message.controlPacketIntervals && message.controlPacketIntervals.length)) + message.controlPacketIntervals = []; + message.controlPacketIntervals.push($root.google.cloud.compute.v1.PacketIntervals.decode(reader, reader.uint32())); + break; + case 463737083: + message.localDiagnostic = reader.string(); + break; + case 149195453: + message.localState = reader.string(); + break; + case 21768340: + message.negotiatedLocalControlTxIntervalMs = reader.uint32(); + break; + case 505069729: + message.rxPacket = $root.google.cloud.compute.v1.BfdPacket.decode(reader, reader.uint32()); + break; + case 111386275: + message.txPacket = $root.google.cloud.compute.v1.BfdPacket.decode(reader, reader.uint32()); + break; + case 125398365: + message.uptimeMs = reader.int64(); break; default: reader.skipType(tag & 7); @@ -41807,149 +43278,346 @@ }; /** - * Decodes a BulkInsertInstanceRequest message from the specified reader or buffer, length delimited. + * Decodes a BfdStatus message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.BulkInsertInstanceRequest + * @memberof google.cloud.compute.v1.BfdStatus * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.BulkInsertInstanceRequest} BulkInsertInstanceRequest + * @returns {google.cloud.compute.v1.BfdStatus} BfdStatus * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BulkInsertInstanceRequest.decodeDelimited = function decodeDelimited(reader) { + BfdStatus.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BulkInsertInstanceRequest message. + * Verifies a BfdStatus message. * @function verify - * @memberof google.cloud.compute.v1.BulkInsertInstanceRequest + * @memberof google.cloud.compute.v1.BfdStatus * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BulkInsertInstanceRequest.verify = function verify(message) { + BfdStatus.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; - if (message.bulkInsertInstanceResourceResource != null && message.hasOwnProperty("bulkInsertInstanceResourceResource")) { - var error = $root.google.cloud.compute.v1.BulkInsertInstanceResource.verify(message.bulkInsertInstanceResourceResource); - if (error) - return "bulkInsertInstanceResourceResource." + error; + if (message.bfdSessionInitializationMode != null && message.hasOwnProperty("bfdSessionInitializationMode")) { + properties._bfdSessionInitializationMode = 1; + if (!$util.isString(message.bfdSessionInitializationMode)) + return "bfdSessionInitializationMode: string expected"; + } + if (message.configUpdateTimestampMicros != null && message.hasOwnProperty("configUpdateTimestampMicros")) { + properties._configUpdateTimestampMicros = 1; + if (!$util.isInteger(message.configUpdateTimestampMicros) && !(message.configUpdateTimestampMicros && $util.isInteger(message.configUpdateTimestampMicros.low) && $util.isInteger(message.configUpdateTimestampMicros.high))) + return "configUpdateTimestampMicros: integer|Long expected"; + } + if (message.controlPacketCounts != null && message.hasOwnProperty("controlPacketCounts")) { + properties._controlPacketCounts = 1; + { + var error = $root.google.cloud.compute.v1.BfdStatusPacketCounts.verify(message.controlPacketCounts); + if (error) + return "controlPacketCounts." + error; + } } - 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.controlPacketIntervals != null && message.hasOwnProperty("controlPacketIntervals")) { + if (!Array.isArray(message.controlPacketIntervals)) + return "controlPacketIntervals: array expected"; + for (var i = 0; i < message.controlPacketIntervals.length; ++i) { + var error = $root.google.cloud.compute.v1.PacketIntervals.verify(message.controlPacketIntervals[i]); + if (error) + return "controlPacketIntervals." + error; + } + } + if (message.localDiagnostic != null && message.hasOwnProperty("localDiagnostic")) { + properties._localDiagnostic = 1; + if (!$util.isString(message.localDiagnostic)) + return "localDiagnostic: string expected"; + } + if (message.localState != null && message.hasOwnProperty("localState")) { + properties._localState = 1; + if (!$util.isString(message.localState)) + return "localState: string expected"; + } + if (message.negotiatedLocalControlTxIntervalMs != null && message.hasOwnProperty("negotiatedLocalControlTxIntervalMs")) { + properties._negotiatedLocalControlTxIntervalMs = 1; + if (!$util.isInteger(message.negotiatedLocalControlTxIntervalMs)) + return "negotiatedLocalControlTxIntervalMs: integer expected"; + } + if (message.rxPacket != null && message.hasOwnProperty("rxPacket")) { + properties._rxPacket = 1; + { + var error = $root.google.cloud.compute.v1.BfdPacket.verify(message.rxPacket); + if (error) + return "rxPacket." + error; + } + } + if (message.txPacket != null && message.hasOwnProperty("txPacket")) { + properties._txPacket = 1; + { + var error = $root.google.cloud.compute.v1.BfdPacket.verify(message.txPacket); + if (error) + return "txPacket." + error; + } + } + if (message.uptimeMs != null && message.hasOwnProperty("uptimeMs")) { + properties._uptimeMs = 1; + if (!$util.isInteger(message.uptimeMs) && !(message.uptimeMs && $util.isInteger(message.uptimeMs.low) && $util.isInteger(message.uptimeMs.high))) + return "uptimeMs: integer|Long expected"; } - if (message.zone != null && message.hasOwnProperty("zone")) - if (!$util.isString(message.zone)) - return "zone: string expected"; return null; }; /** - * Creates a BulkInsertInstanceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BfdStatus message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.BulkInsertInstanceRequest + * @memberof google.cloud.compute.v1.BfdStatus * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.BulkInsertInstanceRequest} BulkInsertInstanceRequest + * @returns {google.cloud.compute.v1.BfdStatus} BfdStatus */ - BulkInsertInstanceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.BulkInsertInstanceRequest) + BfdStatus.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.BfdStatus) return object; - var message = new $root.google.cloud.compute.v1.BulkInsertInstanceRequest(); - if (object.bulkInsertInstanceResourceResource != null) { - if (typeof object.bulkInsertInstanceResourceResource !== "object") - throw TypeError(".google.cloud.compute.v1.BulkInsertInstanceRequest.bulkInsertInstanceResourceResource: object expected"); - message.bulkInsertInstanceResourceResource = $root.google.cloud.compute.v1.BulkInsertInstanceResource.fromObject(object.bulkInsertInstanceResourceResource); - } - 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); + var message = new $root.google.cloud.compute.v1.BfdStatus(); + if (object.bfdSessionInitializationMode != null) + message.bfdSessionInitializationMode = String(object.bfdSessionInitializationMode); + if (object.configUpdateTimestampMicros != null) + if ($util.Long) + (message.configUpdateTimestampMicros = $util.Long.fromValue(object.configUpdateTimestampMicros)).unsigned = false; + else if (typeof object.configUpdateTimestampMicros === "string") + message.configUpdateTimestampMicros = parseInt(object.configUpdateTimestampMicros, 10); + else if (typeof object.configUpdateTimestampMicros === "number") + message.configUpdateTimestampMicros = object.configUpdateTimestampMicros; + else if (typeof object.configUpdateTimestampMicros === "object") + message.configUpdateTimestampMicros = new $util.LongBits(object.configUpdateTimestampMicros.low >>> 0, object.configUpdateTimestampMicros.high >>> 0).toNumber(); + if (object.controlPacketCounts != null) { + if (typeof object.controlPacketCounts !== "object") + throw TypeError(".google.cloud.compute.v1.BfdStatus.controlPacketCounts: object expected"); + message.controlPacketCounts = $root.google.cloud.compute.v1.BfdStatusPacketCounts.fromObject(object.controlPacketCounts); + } + if (object.controlPacketIntervals) { + if (!Array.isArray(object.controlPacketIntervals)) + throw TypeError(".google.cloud.compute.v1.BfdStatus.controlPacketIntervals: array expected"); + message.controlPacketIntervals = []; + for (var i = 0; i < object.controlPacketIntervals.length; ++i) { + if (typeof object.controlPacketIntervals[i] !== "object") + throw TypeError(".google.cloud.compute.v1.BfdStatus.controlPacketIntervals: object expected"); + message.controlPacketIntervals[i] = $root.google.cloud.compute.v1.PacketIntervals.fromObject(object.controlPacketIntervals[i]); + } + } + if (object.localDiagnostic != null) + message.localDiagnostic = String(object.localDiagnostic); + if (object.localState != null) + message.localState = String(object.localState); + if (object.negotiatedLocalControlTxIntervalMs != null) + message.negotiatedLocalControlTxIntervalMs = object.negotiatedLocalControlTxIntervalMs >>> 0; + if (object.rxPacket != null) { + if (typeof object.rxPacket !== "object") + throw TypeError(".google.cloud.compute.v1.BfdStatus.rxPacket: object expected"); + message.rxPacket = $root.google.cloud.compute.v1.BfdPacket.fromObject(object.rxPacket); + } + if (object.txPacket != null) { + if (typeof object.txPacket !== "object") + throw TypeError(".google.cloud.compute.v1.BfdStatus.txPacket: object expected"); + message.txPacket = $root.google.cloud.compute.v1.BfdPacket.fromObject(object.txPacket); + } + if (object.uptimeMs != null) + if ($util.Long) + (message.uptimeMs = $util.Long.fromValue(object.uptimeMs)).unsigned = false; + else if (typeof object.uptimeMs === "string") + message.uptimeMs = parseInt(object.uptimeMs, 10); + else if (typeof object.uptimeMs === "number") + message.uptimeMs = object.uptimeMs; + else if (typeof object.uptimeMs === "object") + message.uptimeMs = new $util.LongBits(object.uptimeMs.low >>> 0, object.uptimeMs.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a BulkInsertInstanceRequest message. Also converts values to other types if specified. + * Creates a plain object from a BfdStatus message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.BulkInsertInstanceRequest + * @memberof google.cloud.compute.v1.BfdStatus * @static - * @param {google.cloud.compute.v1.BulkInsertInstanceRequest} message BulkInsertInstanceRequest + * @param {google.cloud.compute.v1.BfdStatus} message BfdStatus * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BulkInsertInstanceRequest.toObject = function toObject(message, options) { + BfdStatus.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.zone = ""; - object.bulkInsertInstanceResourceResource = null; - object.project = ""; + if (options.arrays || options.defaults) + object.controlPacketIntervals = []; + if (message.negotiatedLocalControlTxIntervalMs != null && message.hasOwnProperty("negotiatedLocalControlTxIntervalMs")) { + object.negotiatedLocalControlTxIntervalMs = message.negotiatedLocalControlTxIntervalMs; + if (options.oneofs) + object._negotiatedLocalControlTxIntervalMs = "negotiatedLocalControlTxIntervalMs"; } - if (message.zone != null && message.hasOwnProperty("zone")) - object.zone = message.zone; - if (message.requestId != null && message.hasOwnProperty("requestId")) { - object.requestId = message.requestId; + if (message.txPacket != null && message.hasOwnProperty("txPacket")) { + object.txPacket = $root.google.cloud.compute.v1.BfdPacket.toObject(message.txPacket, options); if (options.oneofs) - object._requestId = "requestId"; + object._txPacket = "txPacket"; + } + if (message.uptimeMs != null && message.hasOwnProperty("uptimeMs")) { + if (typeof message.uptimeMs === "number") + object.uptimeMs = options.longs === String ? String(message.uptimeMs) : message.uptimeMs; + else + object.uptimeMs = options.longs === String ? $util.Long.prototype.toString.call(message.uptimeMs) : options.longs === Number ? new $util.LongBits(message.uptimeMs.low >>> 0, message.uptimeMs.high >>> 0).toNumber() : message.uptimeMs; + if (options.oneofs) + object._uptimeMs = "uptimeMs"; + } + if (message.controlPacketCounts != null && message.hasOwnProperty("controlPacketCounts")) { + object.controlPacketCounts = $root.google.cloud.compute.v1.BfdStatusPacketCounts.toObject(message.controlPacketCounts, options); + if (options.oneofs) + object._controlPacketCounts = "controlPacketCounts"; + } + if (message.localState != null && message.hasOwnProperty("localState")) { + object.localState = message.localState; + if (options.oneofs) + object._localState = "localState"; + } + if (message.bfdSessionInitializationMode != null && message.hasOwnProperty("bfdSessionInitializationMode")) { + object.bfdSessionInitializationMode = message.bfdSessionInitializationMode; + if (options.oneofs) + object._bfdSessionInitializationMode = "bfdSessionInitializationMode"; + } + if (message.configUpdateTimestampMicros != null && message.hasOwnProperty("configUpdateTimestampMicros")) { + if (typeof message.configUpdateTimestampMicros === "number") + object.configUpdateTimestampMicros = options.longs === String ? String(message.configUpdateTimestampMicros) : message.configUpdateTimestampMicros; + else + object.configUpdateTimestampMicros = options.longs === String ? $util.Long.prototype.toString.call(message.configUpdateTimestampMicros) : options.longs === Number ? new $util.LongBits(message.configUpdateTimestampMicros.low >>> 0, message.configUpdateTimestampMicros.high >>> 0).toNumber() : message.configUpdateTimestampMicros; + if (options.oneofs) + object._configUpdateTimestampMicros = "configUpdateTimestampMicros"; + } + if (message.localDiagnostic != null && message.hasOwnProperty("localDiagnostic")) { + object.localDiagnostic = message.localDiagnostic; + if (options.oneofs) + object._localDiagnostic = "localDiagnostic"; + } + if (message.controlPacketIntervals && message.controlPacketIntervals.length) { + object.controlPacketIntervals = []; + for (var j = 0; j < message.controlPacketIntervals.length; ++j) + object.controlPacketIntervals[j] = $root.google.cloud.compute.v1.PacketIntervals.toObject(message.controlPacketIntervals[j], options); + } + if (message.rxPacket != null && message.hasOwnProperty("rxPacket")) { + object.rxPacket = $root.google.cloud.compute.v1.BfdPacket.toObject(message.rxPacket, options); + if (options.oneofs) + object._rxPacket = "rxPacket"; } - if (message.bulkInsertInstanceResourceResource != null && message.hasOwnProperty("bulkInsertInstanceResourceResource")) - object.bulkInsertInstanceResourceResource = $root.google.cloud.compute.v1.BulkInsertInstanceResource.toObject(message.bulkInsertInstanceResourceResource, options); - if (message.project != null && message.hasOwnProperty("project")) - object.project = message.project; return object; }; /** - * Converts this BulkInsertInstanceRequest to JSON. + * Converts this BfdStatus to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.BulkInsertInstanceRequest + * @memberof google.cloud.compute.v1.BfdStatus * @instance * @returns {Object.} JSON object */ - BulkInsertInstanceRequest.prototype.toJSON = function toJSON() { + BfdStatus.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BulkInsertInstanceRequest; + /** + * BfdSessionInitializationMode enum. + * @name google.cloud.compute.v1.BfdStatus.BfdSessionInitializationMode + * @enum {number} + * @property {number} UNDEFINED_BFD_SESSION_INITIALIZATION_MODE=0 UNDEFINED_BFD_SESSION_INITIALIZATION_MODE value + * @property {number} ACTIVE=314733318 ACTIVE value + * @property {number} DISABLED=516696700 DISABLED value + * @property {number} PASSIVE=462813959 PASSIVE value + */ + BfdStatus.BfdSessionInitializationMode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_BFD_SESSION_INITIALIZATION_MODE"] = 0; + values[valuesById[314733318] = "ACTIVE"] = 314733318; + values[valuesById[516696700] = "DISABLED"] = 516696700; + values[valuesById[462813959] = "PASSIVE"] = 462813959; + return values; + })(); + + /** + * LocalDiagnostic enum. + * @name google.cloud.compute.v1.BfdStatus.LocalDiagnostic + * @enum {number} + * @property {number} UNDEFINED_LOCAL_DIAGNOSTIC=0 UNDEFINED_LOCAL_DIAGNOSTIC value + * @property {number} ADMINISTRATIVELY_DOWN=121685798 ADMINISTRATIVELY_DOWN value + * @property {number} CONCATENATED_PATH_DOWN=26186892 CONCATENATED_PATH_DOWN value + * @property {number} CONTROL_DETECTION_TIME_EXPIRED=135478383 CONTROL_DETECTION_TIME_EXPIRED value + * @property {number} DIAGNOSTIC_UNSPECIFIED=58720895 DIAGNOSTIC_UNSPECIFIED value + * @property {number} ECHO_FUNCTION_FAILED=220687466 ECHO_FUNCTION_FAILED value + * @property {number} FORWARDING_PLANE_RESET=19715882 FORWARDING_PLANE_RESET value + * @property {number} NEIGHBOR_SIGNALED_SESSION_DOWN=374226742 NEIGHBOR_SIGNALED_SESSION_DOWN value + * @property {number} NO_DIAGNOSTIC=222503141 NO_DIAGNOSTIC value + * @property {number} PATH_DOWN=290605180 PATH_DOWN value + * @property {number} REVERSE_CONCATENATED_PATH_DOWN=479337129 REVERSE_CONCATENATED_PATH_DOWN value + */ + BfdStatus.LocalDiagnostic = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_LOCAL_DIAGNOSTIC"] = 0; + values[valuesById[121685798] = "ADMINISTRATIVELY_DOWN"] = 121685798; + values[valuesById[26186892] = "CONCATENATED_PATH_DOWN"] = 26186892; + values[valuesById[135478383] = "CONTROL_DETECTION_TIME_EXPIRED"] = 135478383; + values[valuesById[58720895] = "DIAGNOSTIC_UNSPECIFIED"] = 58720895; + values[valuesById[220687466] = "ECHO_FUNCTION_FAILED"] = 220687466; + values[valuesById[19715882] = "FORWARDING_PLANE_RESET"] = 19715882; + values[valuesById[374226742] = "NEIGHBOR_SIGNALED_SESSION_DOWN"] = 374226742; + values[valuesById[222503141] = "NO_DIAGNOSTIC"] = 222503141; + values[valuesById[290605180] = "PATH_DOWN"] = 290605180; + values[valuesById[479337129] = "REVERSE_CONCATENATED_PATH_DOWN"] = 479337129; + return values; + })(); + + /** + * LocalState enum. + * @name google.cloud.compute.v1.BfdStatus.LocalState + * @enum {number} + * @property {number} UNDEFINED_LOCAL_STATE=0 UNDEFINED_LOCAL_STATE value + * @property {number} ADMIN_DOWN=128544690 ADMIN_DOWN value + * @property {number} DOWN=2104482 DOWN value + * @property {number} INIT=2252048 INIT value + * @property {number} STATE_UNSPECIFIED=470755401 STATE_UNSPECIFIED value + * @property {number} UP=2715 UP value + */ + BfdStatus.LocalState = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_LOCAL_STATE"] = 0; + values[valuesById[128544690] = "ADMIN_DOWN"] = 128544690; + values[valuesById[2104482] = "DOWN"] = 2104482; + values[valuesById[2252048] = "INIT"] = 2252048; + values[valuesById[470755401] = "STATE_UNSPECIFIED"] = 470755401; + values[valuesById[2715] = "UP"] = 2715; + return values; + })(); + + return BfdStatus; })(); - v1.BulkInsertInstanceResource = (function() { + v1.BfdStatusPacketCounts = (function() { /** - * Properties of a BulkInsertInstanceResource. + * Properties of a BfdStatusPacketCounts. * @memberof google.cloud.compute.v1 - * @interface IBulkInsertInstanceResource - * @property {number|Long|null} [count] BulkInsertInstanceResource count - * @property {google.cloud.compute.v1.IInstanceProperties|null} [instanceProperties] BulkInsertInstanceResource instanceProperties - * @property {google.cloud.compute.v1.ILocationPolicy|null} [locationPolicy] BulkInsertInstanceResource locationPolicy - * @property {number|Long|null} [minCount] BulkInsertInstanceResource minCount - * @property {string|null} [namePattern] BulkInsertInstanceResource namePattern - * @property {Object.|null} [perInstanceProperties] BulkInsertInstanceResource perInstanceProperties - * @property {string|null} [sourceInstanceTemplate] BulkInsertInstanceResource sourceInstanceTemplate + * @interface IBfdStatusPacketCounts + * @property {number|null} [numRx] BfdStatusPacketCounts numRx + * @property {number|null} [numRxRejected] BfdStatusPacketCounts numRxRejected + * @property {number|null} [numRxSuccessful] BfdStatusPacketCounts numRxSuccessful + * @property {number|null} [numTx] BfdStatusPacketCounts numTx */ /** - * Constructs a new BulkInsertInstanceResource. + * Constructs a new BfdStatusPacketCounts. * @memberof google.cloud.compute.v1 - * @classdesc Represents a BulkInsertInstanceResource. - * @implements IBulkInsertInstanceResource + * @classdesc Represents a BfdStatusPacketCounts. + * @implements IBfdStatusPacketCounts * @constructor - * @param {google.cloud.compute.v1.IBulkInsertInstanceResource=} [properties] Properties to set + * @param {google.cloud.compute.v1.IBfdStatusPacketCounts=} [properties] Properties to set */ - function BulkInsertInstanceResource(properties) { - this.perInstanceProperties = {}; + function BfdStatusPacketCounts(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -41957,219 +43625,1141 @@ } /** - * BulkInsertInstanceResource count. - * @member {number|Long|null|undefined} count - * @memberof google.cloud.compute.v1.BulkInsertInstanceResource - * @instance - */ - BulkInsertInstanceResource.prototype.count = null; - - /** - * BulkInsertInstanceResource instanceProperties. - * @member {google.cloud.compute.v1.IInstanceProperties|null|undefined} instanceProperties - * @memberof google.cloud.compute.v1.BulkInsertInstanceResource - * @instance - */ - BulkInsertInstanceResource.prototype.instanceProperties = null; - - /** - * BulkInsertInstanceResource locationPolicy. - * @member {google.cloud.compute.v1.ILocationPolicy|null|undefined} locationPolicy - * @memberof google.cloud.compute.v1.BulkInsertInstanceResource - * @instance - */ - BulkInsertInstanceResource.prototype.locationPolicy = null; - - /** - * BulkInsertInstanceResource minCount. - * @member {number|Long|null|undefined} minCount - * @memberof google.cloud.compute.v1.BulkInsertInstanceResource + * BfdStatusPacketCounts numRx. + * @member {number|null|undefined} numRx + * @memberof google.cloud.compute.v1.BfdStatusPacketCounts * @instance */ - BulkInsertInstanceResource.prototype.minCount = null; + BfdStatusPacketCounts.prototype.numRx = null; /** - * BulkInsertInstanceResource namePattern. - * @member {string|null|undefined} namePattern - * @memberof google.cloud.compute.v1.BulkInsertInstanceResource + * BfdStatusPacketCounts numRxRejected. + * @member {number|null|undefined} numRxRejected + * @memberof google.cloud.compute.v1.BfdStatusPacketCounts * @instance */ - BulkInsertInstanceResource.prototype.namePattern = null; + BfdStatusPacketCounts.prototype.numRxRejected = null; /** - * BulkInsertInstanceResource perInstanceProperties. - * @member {Object.} perInstanceProperties - * @memberof google.cloud.compute.v1.BulkInsertInstanceResource + * BfdStatusPacketCounts numRxSuccessful. + * @member {number|null|undefined} numRxSuccessful + * @memberof google.cloud.compute.v1.BfdStatusPacketCounts * @instance */ - BulkInsertInstanceResource.prototype.perInstanceProperties = $util.emptyObject; + BfdStatusPacketCounts.prototype.numRxSuccessful = null; /** - * BulkInsertInstanceResource sourceInstanceTemplate. - * @member {string|null|undefined} sourceInstanceTemplate - * @memberof google.cloud.compute.v1.BulkInsertInstanceResource + * BfdStatusPacketCounts numTx. + * @member {number|null|undefined} numTx + * @memberof google.cloud.compute.v1.BfdStatusPacketCounts * @instance */ - BulkInsertInstanceResource.prototype.sourceInstanceTemplate = null; + BfdStatusPacketCounts.prototype.numTx = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * BulkInsertInstanceResource _count. - * @member {"count"|undefined} _count - * @memberof google.cloud.compute.v1.BulkInsertInstanceResource - * @instance - */ - Object.defineProperty(BulkInsertInstanceResource.prototype, "_count", { - get: $util.oneOfGetter($oneOfFields = ["count"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * BulkInsertInstanceResource _instanceProperties. - * @member {"instanceProperties"|undefined} _instanceProperties - * @memberof google.cloud.compute.v1.BulkInsertInstanceResource - * @instance - */ - Object.defineProperty(BulkInsertInstanceResource.prototype, "_instanceProperties", { - get: $util.oneOfGetter($oneOfFields = ["instanceProperties"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * BulkInsertInstanceResource _locationPolicy. - * @member {"locationPolicy"|undefined} _locationPolicy - * @memberof google.cloud.compute.v1.BulkInsertInstanceResource + * BfdStatusPacketCounts _numRx. + * @member {"numRx"|undefined} _numRx + * @memberof google.cloud.compute.v1.BfdStatusPacketCounts * @instance */ - Object.defineProperty(BulkInsertInstanceResource.prototype, "_locationPolicy", { - get: $util.oneOfGetter($oneOfFields = ["locationPolicy"]), + Object.defineProperty(BfdStatusPacketCounts.prototype, "_numRx", { + get: $util.oneOfGetter($oneOfFields = ["numRx"]), set: $util.oneOfSetter($oneOfFields) }); /** - * BulkInsertInstanceResource _minCount. - * @member {"minCount"|undefined} _minCount - * @memberof google.cloud.compute.v1.BulkInsertInstanceResource + * BfdStatusPacketCounts _numRxRejected. + * @member {"numRxRejected"|undefined} _numRxRejected + * @memberof google.cloud.compute.v1.BfdStatusPacketCounts * @instance */ - Object.defineProperty(BulkInsertInstanceResource.prototype, "_minCount", { - get: $util.oneOfGetter($oneOfFields = ["minCount"]), + Object.defineProperty(BfdStatusPacketCounts.prototype, "_numRxRejected", { + get: $util.oneOfGetter($oneOfFields = ["numRxRejected"]), set: $util.oneOfSetter($oneOfFields) }); /** - * BulkInsertInstanceResource _namePattern. - * @member {"namePattern"|undefined} _namePattern - * @memberof google.cloud.compute.v1.BulkInsertInstanceResource + * BfdStatusPacketCounts _numRxSuccessful. + * @member {"numRxSuccessful"|undefined} _numRxSuccessful + * @memberof google.cloud.compute.v1.BfdStatusPacketCounts * @instance */ - Object.defineProperty(BulkInsertInstanceResource.prototype, "_namePattern", { - get: $util.oneOfGetter($oneOfFields = ["namePattern"]), + Object.defineProperty(BfdStatusPacketCounts.prototype, "_numRxSuccessful", { + get: $util.oneOfGetter($oneOfFields = ["numRxSuccessful"]), set: $util.oneOfSetter($oneOfFields) }); /** - * BulkInsertInstanceResource _sourceInstanceTemplate. - * @member {"sourceInstanceTemplate"|undefined} _sourceInstanceTemplate - * @memberof google.cloud.compute.v1.BulkInsertInstanceResource + * BfdStatusPacketCounts _numTx. + * @member {"numTx"|undefined} _numTx + * @memberof google.cloud.compute.v1.BfdStatusPacketCounts * @instance */ - Object.defineProperty(BulkInsertInstanceResource.prototype, "_sourceInstanceTemplate", { - get: $util.oneOfGetter($oneOfFields = ["sourceInstanceTemplate"]), + Object.defineProperty(BfdStatusPacketCounts.prototype, "_numTx", { + get: $util.oneOfGetter($oneOfFields = ["numTx"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new BulkInsertInstanceResource instance using the specified properties. + * Creates a new BfdStatusPacketCounts instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.BulkInsertInstanceResource + * @memberof google.cloud.compute.v1.BfdStatusPacketCounts * @static - * @param {google.cloud.compute.v1.IBulkInsertInstanceResource=} [properties] Properties to set - * @returns {google.cloud.compute.v1.BulkInsertInstanceResource} BulkInsertInstanceResource instance + * @param {google.cloud.compute.v1.IBfdStatusPacketCounts=} [properties] Properties to set + * @returns {google.cloud.compute.v1.BfdStatusPacketCounts} BfdStatusPacketCounts instance */ - BulkInsertInstanceResource.create = function create(properties) { - return new BulkInsertInstanceResource(properties); + BfdStatusPacketCounts.create = function create(properties) { + return new BfdStatusPacketCounts(properties); }; /** - * Encodes the specified BulkInsertInstanceResource message. Does not implicitly {@link google.cloud.compute.v1.BulkInsertInstanceResource.verify|verify} messages. + * Encodes the specified BfdStatusPacketCounts message. Does not implicitly {@link google.cloud.compute.v1.BfdStatusPacketCounts.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.BulkInsertInstanceResource + * @memberof google.cloud.compute.v1.BfdStatusPacketCounts * @static - * @param {google.cloud.compute.v1.IBulkInsertInstanceResource} message BulkInsertInstanceResource message or plain object to encode + * @param {google.cloud.compute.v1.IBfdStatusPacketCounts} message BfdStatusPacketCounts message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BulkInsertInstanceResource.encode = function encode(message, writer) { + BfdStatusPacketCounts.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.count != null && Object.hasOwnProperty.call(message, "count")) - writer.uint32(/* id 94851343, wireType 0 =*/758810744).int64(message.count); - if (message.perInstanceProperties != null && Object.hasOwnProperty.call(message, "perInstanceProperties")) - for (var keys = Object.keys(message.perInstanceProperties), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 108502267, wireType 2 =*/868018138).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.cloud.compute.v1.BulkInsertInstanceResourcePerInstanceProperties.encode(message.perInstanceProperties[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.instanceProperties != null && Object.hasOwnProperty.call(message, "instanceProperties")) - $root.google.cloud.compute.v1.InstanceProperties.encode(message.instanceProperties, writer.uint32(/* id 215355165, wireType 2 =*/1722841322).fork()).ldelim(); - if (message.sourceInstanceTemplate != null && Object.hasOwnProperty.call(message, "sourceInstanceTemplate")) - writer.uint32(/* id 332423616, wireType 2 =*/2659388930).string(message.sourceInstanceTemplate); - if (message.namePattern != null && Object.hasOwnProperty.call(message, "namePattern")) - writer.uint32(/* id 413815260, wireType 2 =*/3310522082).string(message.namePattern); - if (message.locationPolicy != null && Object.hasOwnProperty.call(message, "locationPolicy")) - $root.google.cloud.compute.v1.LocationPolicy.encode(message.locationPolicy, writer.uint32(/* id 465689852, wireType 2 =*/3725518818).fork()).ldelim(); - if (message.minCount != null && Object.hasOwnProperty.call(message, "minCount")) - writer.uint32(/* id 523228386, wireType 0 =*/4185827088).int64(message.minCount); + if (message.numRx != null && Object.hasOwnProperty.call(message, "numRx")) + writer.uint32(/* id 39375263, wireType 0 =*/315002104).uint32(message.numRx); + if (message.numTx != null && Object.hasOwnProperty.call(message, "numTx")) + writer.uint32(/* id 39375325, wireType 0 =*/315002600).uint32(message.numTx); + if (message.numRxRejected != null && Object.hasOwnProperty.call(message, "numRxRejected")) + writer.uint32(/* id 281007902, wireType 0 =*/2248063216).uint32(message.numRxRejected); + if (message.numRxSuccessful != null && Object.hasOwnProperty.call(message, "numRxSuccessful")) + writer.uint32(/* id 455361850, wireType 0 =*/3642894800).uint32(message.numRxSuccessful); return writer; }; /** - * Encodes the specified BulkInsertInstanceResource message, length delimited. Does not implicitly {@link google.cloud.compute.v1.BulkInsertInstanceResource.verify|verify} messages. + * Encodes the specified BfdStatusPacketCounts message, length delimited. Does not implicitly {@link google.cloud.compute.v1.BfdStatusPacketCounts.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.BulkInsertInstanceResource + * @memberof google.cloud.compute.v1.BfdStatusPacketCounts * @static - * @param {google.cloud.compute.v1.IBulkInsertInstanceResource} message BulkInsertInstanceResource message or plain object to encode + * @param {google.cloud.compute.v1.IBfdStatusPacketCounts} message BfdStatusPacketCounts message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BulkInsertInstanceResource.encodeDelimited = function encodeDelimited(message, writer) { + BfdStatusPacketCounts.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BulkInsertInstanceResource message from the specified reader or buffer. + * Decodes a BfdStatusPacketCounts message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.BulkInsertInstanceResource + * @memberof google.cloud.compute.v1.BfdStatusPacketCounts * @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.BulkInsertInstanceResource} BulkInsertInstanceResource + * @returns {google.cloud.compute.v1.BfdStatusPacketCounts} BfdStatusPacketCounts * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BulkInsertInstanceResource.decode = function decode(reader, length) { + BfdStatusPacketCounts.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.BulkInsertInstanceResource(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.BfdStatusPacketCounts(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 94851343: - message.count = reader.int64(); + case 39375263: + message.numRx = reader.uint32(); break; - case 215355165: - message.instanceProperties = $root.google.cloud.compute.v1.InstanceProperties.decode(reader, reader.uint32()); + case 281007902: + message.numRxRejected = reader.uint32(); break; - case 465689852: - message.locationPolicy = $root.google.cloud.compute.v1.LocationPolicy.decode(reader, reader.uint32()); + case 455361850: + message.numRxSuccessful = reader.uint32(); break; - case 523228386: - message.minCount = reader.int64(); + case 39375325: + message.numTx = reader.uint32(); break; - case 413815260: - message.namePattern = reader.string(); + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BfdStatusPacketCounts message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.BfdStatusPacketCounts + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.BfdStatusPacketCounts} BfdStatusPacketCounts + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BfdStatusPacketCounts.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BfdStatusPacketCounts message. + * @function verify + * @memberof google.cloud.compute.v1.BfdStatusPacketCounts + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BfdStatusPacketCounts.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.numRx != null && message.hasOwnProperty("numRx")) { + properties._numRx = 1; + if (!$util.isInteger(message.numRx)) + return "numRx: integer expected"; + } + if (message.numRxRejected != null && message.hasOwnProperty("numRxRejected")) { + properties._numRxRejected = 1; + if (!$util.isInteger(message.numRxRejected)) + return "numRxRejected: integer expected"; + } + if (message.numRxSuccessful != null && message.hasOwnProperty("numRxSuccessful")) { + properties._numRxSuccessful = 1; + if (!$util.isInteger(message.numRxSuccessful)) + return "numRxSuccessful: integer expected"; + } + if (message.numTx != null && message.hasOwnProperty("numTx")) { + properties._numTx = 1; + if (!$util.isInteger(message.numTx)) + return "numTx: integer expected"; + } + return null; + }; + + /** + * Creates a BfdStatusPacketCounts message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.BfdStatusPacketCounts + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.BfdStatusPacketCounts} BfdStatusPacketCounts + */ + BfdStatusPacketCounts.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.BfdStatusPacketCounts) + return object; + var message = new $root.google.cloud.compute.v1.BfdStatusPacketCounts(); + if (object.numRx != null) + message.numRx = object.numRx >>> 0; + if (object.numRxRejected != null) + message.numRxRejected = object.numRxRejected >>> 0; + if (object.numRxSuccessful != null) + message.numRxSuccessful = object.numRxSuccessful >>> 0; + if (object.numTx != null) + message.numTx = object.numTx >>> 0; + return message; + }; + + /** + * Creates a plain object from a BfdStatusPacketCounts message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.BfdStatusPacketCounts + * @static + * @param {google.cloud.compute.v1.BfdStatusPacketCounts} message BfdStatusPacketCounts + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BfdStatusPacketCounts.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.numRx != null && message.hasOwnProperty("numRx")) { + object.numRx = message.numRx; + if (options.oneofs) + object._numRx = "numRx"; + } + if (message.numTx != null && message.hasOwnProperty("numTx")) { + object.numTx = message.numTx; + if (options.oneofs) + object._numTx = "numTx"; + } + if (message.numRxRejected != null && message.hasOwnProperty("numRxRejected")) { + object.numRxRejected = message.numRxRejected; + if (options.oneofs) + object._numRxRejected = "numRxRejected"; + } + if (message.numRxSuccessful != null && message.hasOwnProperty("numRxSuccessful")) { + object.numRxSuccessful = message.numRxSuccessful; + if (options.oneofs) + object._numRxSuccessful = "numRxSuccessful"; + } + return object; + }; + + /** + * Converts this BfdStatusPacketCounts to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.BfdStatusPacketCounts + * @instance + * @returns {Object.} JSON object + */ + BfdStatusPacketCounts.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return BfdStatusPacketCounts; + })(); + + v1.Binding = (function() { + + /** + * Properties of a Binding. + * @memberof google.cloud.compute.v1 + * @interface IBinding + * @property {string|null} [bindingId] Binding bindingId + * @property {google.cloud.compute.v1.IExpr|null} [condition] Binding condition + * @property {Array.|null} [members] Binding members + * @property {string|null} [role] Binding role + */ + + /** + * Constructs a new Binding. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a Binding. + * @implements IBinding + * @constructor + * @param {google.cloud.compute.v1.IBinding=} [properties] Properties to set + */ + function Binding(properties) { + this.members = []; + 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]]; + } + + /** + * Binding bindingId. + * @member {string|null|undefined} bindingId + * @memberof google.cloud.compute.v1.Binding + * @instance + */ + Binding.prototype.bindingId = null; + + /** + * Binding condition. + * @member {google.cloud.compute.v1.IExpr|null|undefined} condition + * @memberof google.cloud.compute.v1.Binding + * @instance + */ + Binding.prototype.condition = null; + + /** + * Binding members. + * @member {Array.} members + * @memberof google.cloud.compute.v1.Binding + * @instance + */ + Binding.prototype.members = $util.emptyArray; + + /** + * Binding role. + * @member {string|null|undefined} role + * @memberof google.cloud.compute.v1.Binding + * @instance + */ + Binding.prototype.role = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Binding _bindingId. + * @member {"bindingId"|undefined} _bindingId + * @memberof google.cloud.compute.v1.Binding + * @instance + */ + Object.defineProperty(Binding.prototype, "_bindingId", { + get: $util.oneOfGetter($oneOfFields = ["bindingId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Binding _condition. + * @member {"condition"|undefined} _condition + * @memberof google.cloud.compute.v1.Binding + * @instance + */ + Object.defineProperty(Binding.prototype, "_condition", { + get: $util.oneOfGetter($oneOfFields = ["condition"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Binding _role. + * @member {"role"|undefined} _role + * @memberof google.cloud.compute.v1.Binding + * @instance + */ + Object.defineProperty(Binding.prototype, "_role", { + get: $util.oneOfGetter($oneOfFields = ["role"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Binding instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.Binding + * @static + * @param {google.cloud.compute.v1.IBinding=} [properties] Properties to set + * @returns {google.cloud.compute.v1.Binding} Binding instance + */ + Binding.create = function create(properties) { + return new Binding(properties); + }; + + /** + * Encodes the specified Binding message. Does not implicitly {@link google.cloud.compute.v1.Binding.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.Binding + * @static + * @param {google.cloud.compute.v1.IBinding} message Binding message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Binding.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.role != null && Object.hasOwnProperty.call(message, "role")) + writer.uint32(/* id 3506294, wireType 2 =*/28050354).string(message.role); + if (message.condition != null && Object.hasOwnProperty.call(message, "condition")) + $root.google.cloud.compute.v1.Expr.encode(message.condition, writer.uint32(/* id 212430107, wireType 2 =*/1699440858).fork()).ldelim(); + if (message.members != null && message.members.length) + for (var i = 0; i < message.members.length; ++i) + writer.uint32(/* id 412010777, wireType 2 =*/3296086218).string(message.members[i]); + if (message.bindingId != null && Object.hasOwnProperty.call(message, "bindingId")) + writer.uint32(/* id 441088277, wireType 2 =*/3528706218).string(message.bindingId); + return writer; + }; + + /** + * Encodes the specified Binding message, length delimited. Does not implicitly {@link google.cloud.compute.v1.Binding.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.Binding + * @static + * @param {google.cloud.compute.v1.IBinding} message Binding message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Binding.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Binding message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.Binding + * @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.Binding} Binding + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Binding.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.Binding(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 441088277: + message.bindingId = reader.string(); + break; + case 212430107: + message.condition = $root.google.cloud.compute.v1.Expr.decode(reader, reader.uint32()); + break; + case 412010777: + if (!(message.members && message.members.length)) + message.members = []; + message.members.push(reader.string()); + break; + case 3506294: + message.role = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Binding message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.Binding + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.Binding} Binding + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Binding.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Binding message. + * @function verify + * @memberof google.cloud.compute.v1.Binding + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Binding.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.bindingId != null && message.hasOwnProperty("bindingId")) { + properties._bindingId = 1; + if (!$util.isString(message.bindingId)) + return "bindingId: string expected"; + } + if (message.condition != null && message.hasOwnProperty("condition")) { + properties._condition = 1; + { + var error = $root.google.cloud.compute.v1.Expr.verify(message.condition); + if (error) + return "condition." + error; + } + } + if (message.members != null && message.hasOwnProperty("members")) { + if (!Array.isArray(message.members)) + return "members: array expected"; + for (var i = 0; i < message.members.length; ++i) + if (!$util.isString(message.members[i])) + return "members: string[] expected"; + } + if (message.role != null && message.hasOwnProperty("role")) { + properties._role = 1; + if (!$util.isString(message.role)) + return "role: string expected"; + } + return null; + }; + + /** + * Creates a Binding message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.Binding + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.Binding} Binding + */ + Binding.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.Binding) + return object; + var message = new $root.google.cloud.compute.v1.Binding(); + if (object.bindingId != null) + message.bindingId = String(object.bindingId); + if (object.condition != null) { + if (typeof object.condition !== "object") + throw TypeError(".google.cloud.compute.v1.Binding.condition: object expected"); + message.condition = $root.google.cloud.compute.v1.Expr.fromObject(object.condition); + } + if (object.members) { + if (!Array.isArray(object.members)) + throw TypeError(".google.cloud.compute.v1.Binding.members: array expected"); + message.members = []; + for (var i = 0; i < object.members.length; ++i) + message.members[i] = String(object.members[i]); + } + if (object.role != null) + message.role = String(object.role); + return message; + }; + + /** + * Creates a plain object from a Binding message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.Binding + * @static + * @param {google.cloud.compute.v1.Binding} message Binding + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Binding.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.members = []; + if (message.role != null && message.hasOwnProperty("role")) { + object.role = message.role; + if (options.oneofs) + object._role = "role"; + } + if (message.condition != null && message.hasOwnProperty("condition")) { + object.condition = $root.google.cloud.compute.v1.Expr.toObject(message.condition, options); + if (options.oneofs) + object._condition = "condition"; + } + if (message.members && message.members.length) { + object.members = []; + for (var j = 0; j < message.members.length; ++j) + object.members[j] = message.members[j]; + } + if (message.bindingId != null && message.hasOwnProperty("bindingId")) { + object.bindingId = message.bindingId; + if (options.oneofs) + object._bindingId = "bindingId"; + } + return object; + }; + + /** + * Converts this Binding to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.Binding + * @instance + * @returns {Object.} JSON object + */ + Binding.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Binding; + })(); + + v1.BulkInsertInstanceRequest = (function() { + + /** + * Properties of a BulkInsertInstanceRequest. + * @memberof google.cloud.compute.v1 + * @interface IBulkInsertInstanceRequest + * @property {google.cloud.compute.v1.IBulkInsertInstanceResource|null} [bulkInsertInstanceResourceResource] BulkInsertInstanceRequest bulkInsertInstanceResourceResource + * @property {string|null} [project] BulkInsertInstanceRequest project + * @property {string|null} [requestId] BulkInsertInstanceRequest requestId + * @property {string|null} [zone] BulkInsertInstanceRequest zone + */ + + /** + * Constructs a new BulkInsertInstanceRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a BulkInsertInstanceRequest. + * @implements IBulkInsertInstanceRequest + * @constructor + * @param {google.cloud.compute.v1.IBulkInsertInstanceRequest=} [properties] Properties to set + */ + function BulkInsertInstanceRequest(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]]; + } + + /** + * BulkInsertInstanceRequest bulkInsertInstanceResourceResource. + * @member {google.cloud.compute.v1.IBulkInsertInstanceResource|null|undefined} bulkInsertInstanceResourceResource + * @memberof google.cloud.compute.v1.BulkInsertInstanceRequest + * @instance + */ + BulkInsertInstanceRequest.prototype.bulkInsertInstanceResourceResource = null; + + /** + * BulkInsertInstanceRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.BulkInsertInstanceRequest + * @instance + */ + BulkInsertInstanceRequest.prototype.project = ""; + + /** + * BulkInsertInstanceRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1.BulkInsertInstanceRequest + * @instance + */ + BulkInsertInstanceRequest.prototype.requestId = null; + + /** + * BulkInsertInstanceRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1.BulkInsertInstanceRequest + * @instance + */ + BulkInsertInstanceRequest.prototype.zone = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * BulkInsertInstanceRequest _requestId. + * @member {"requestId"|undefined} _requestId + * @memberof google.cloud.compute.v1.BulkInsertInstanceRequest + * @instance + */ + Object.defineProperty(BulkInsertInstanceRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new BulkInsertInstanceRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.BulkInsertInstanceRequest + * @static + * @param {google.cloud.compute.v1.IBulkInsertInstanceRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.BulkInsertInstanceRequest} BulkInsertInstanceRequest instance + */ + BulkInsertInstanceRequest.create = function create(properties) { + return new BulkInsertInstanceRequest(properties); + }; + + /** + * Encodes the specified BulkInsertInstanceRequest message. Does not implicitly {@link google.cloud.compute.v1.BulkInsertInstanceRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.BulkInsertInstanceRequest + * @static + * @param {google.cloud.compute.v1.IBulkInsertInstanceRequest} message BulkInsertInstanceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BulkInsertInstanceRequest.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.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); + if (message.bulkInsertInstanceResourceResource != null && Object.hasOwnProperty.call(message, "bulkInsertInstanceResourceResource")) + $root.google.cloud.compute.v1.BulkInsertInstanceResource.encode(message.bulkInsertInstanceResourceResource, writer.uint32(/* id 41427278, wireType 2 =*/331418226).fork()).ldelim(); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + return writer; + }; + + /** + * Encodes the specified BulkInsertInstanceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.BulkInsertInstanceRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.BulkInsertInstanceRequest + * @static + * @param {google.cloud.compute.v1.IBulkInsertInstanceRequest} message BulkInsertInstanceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BulkInsertInstanceRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BulkInsertInstanceRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.BulkInsertInstanceRequest + * @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.BulkInsertInstanceRequest} BulkInsertInstanceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BulkInsertInstanceRequest.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.BulkInsertInstanceRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 41427278: + message.bulkInsertInstanceResourceResource = $root.google.cloud.compute.v1.BulkInsertInstanceResource.decode(reader, reader.uint32()); + 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 BulkInsertInstanceRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.BulkInsertInstanceRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.BulkInsertInstanceRequest} BulkInsertInstanceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BulkInsertInstanceRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BulkInsertInstanceRequest message. + * @function verify + * @memberof google.cloud.compute.v1.BulkInsertInstanceRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BulkInsertInstanceRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.bulkInsertInstanceResourceResource != null && message.hasOwnProperty("bulkInsertInstanceResourceResource")) { + var error = $root.google.cloud.compute.v1.BulkInsertInstanceResource.verify(message.bulkInsertInstanceResourceResource); + if (error) + return "bulkInsertInstanceResourceResource." + error; + } + 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 BulkInsertInstanceRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.BulkInsertInstanceRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.BulkInsertInstanceRequest} BulkInsertInstanceRequest + */ + BulkInsertInstanceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.BulkInsertInstanceRequest) + return object; + var message = new $root.google.cloud.compute.v1.BulkInsertInstanceRequest(); + if (object.bulkInsertInstanceResourceResource != null) { + if (typeof object.bulkInsertInstanceResourceResource !== "object") + throw TypeError(".google.cloud.compute.v1.BulkInsertInstanceRequest.bulkInsertInstanceResourceResource: object expected"); + message.bulkInsertInstanceResourceResource = $root.google.cloud.compute.v1.BulkInsertInstanceResource.fromObject(object.bulkInsertInstanceResourceResource); + } + 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 BulkInsertInstanceRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.BulkInsertInstanceRequest + * @static + * @param {google.cloud.compute.v1.BulkInsertInstanceRequest} message BulkInsertInstanceRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BulkInsertInstanceRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.zone = ""; + object.bulkInsertInstanceResourceResource = null; + object.project = ""; + } + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; + if (message.requestId != null && message.hasOwnProperty("requestId")) { + object.requestId = message.requestId; + if (options.oneofs) + object._requestId = "requestId"; + } + if (message.bulkInsertInstanceResourceResource != null && message.hasOwnProperty("bulkInsertInstanceResourceResource")) + object.bulkInsertInstanceResourceResource = $root.google.cloud.compute.v1.BulkInsertInstanceResource.toObject(message.bulkInsertInstanceResourceResource, options); + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + return object; + }; + + /** + * Converts this BulkInsertInstanceRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.BulkInsertInstanceRequest + * @instance + * @returns {Object.} JSON object + */ + BulkInsertInstanceRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return BulkInsertInstanceRequest; + })(); + + v1.BulkInsertInstanceResource = (function() { + + /** + * Properties of a BulkInsertInstanceResource. + * @memberof google.cloud.compute.v1 + * @interface IBulkInsertInstanceResource + * @property {number|Long|null} [count] BulkInsertInstanceResource count + * @property {google.cloud.compute.v1.IInstanceProperties|null} [instanceProperties] BulkInsertInstanceResource instanceProperties + * @property {google.cloud.compute.v1.ILocationPolicy|null} [locationPolicy] BulkInsertInstanceResource locationPolicy + * @property {number|Long|null} [minCount] BulkInsertInstanceResource minCount + * @property {string|null} [namePattern] BulkInsertInstanceResource namePattern + * @property {Object.|null} [perInstanceProperties] BulkInsertInstanceResource perInstanceProperties + * @property {string|null} [sourceInstanceTemplate] BulkInsertInstanceResource sourceInstanceTemplate + */ + + /** + * Constructs a new BulkInsertInstanceResource. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a BulkInsertInstanceResource. + * @implements IBulkInsertInstanceResource + * @constructor + * @param {google.cloud.compute.v1.IBulkInsertInstanceResource=} [properties] Properties to set + */ + function BulkInsertInstanceResource(properties) { + this.perInstanceProperties = {}; + 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]]; + } + + /** + * BulkInsertInstanceResource count. + * @member {number|Long|null|undefined} count + * @memberof google.cloud.compute.v1.BulkInsertInstanceResource + * @instance + */ + BulkInsertInstanceResource.prototype.count = null; + + /** + * BulkInsertInstanceResource instanceProperties. + * @member {google.cloud.compute.v1.IInstanceProperties|null|undefined} instanceProperties + * @memberof google.cloud.compute.v1.BulkInsertInstanceResource + * @instance + */ + BulkInsertInstanceResource.prototype.instanceProperties = null; + + /** + * BulkInsertInstanceResource locationPolicy. + * @member {google.cloud.compute.v1.ILocationPolicy|null|undefined} locationPolicy + * @memberof google.cloud.compute.v1.BulkInsertInstanceResource + * @instance + */ + BulkInsertInstanceResource.prototype.locationPolicy = null; + + /** + * BulkInsertInstanceResource minCount. + * @member {number|Long|null|undefined} minCount + * @memberof google.cloud.compute.v1.BulkInsertInstanceResource + * @instance + */ + BulkInsertInstanceResource.prototype.minCount = null; + + /** + * BulkInsertInstanceResource namePattern. + * @member {string|null|undefined} namePattern + * @memberof google.cloud.compute.v1.BulkInsertInstanceResource + * @instance + */ + BulkInsertInstanceResource.prototype.namePattern = null; + + /** + * BulkInsertInstanceResource perInstanceProperties. + * @member {Object.} perInstanceProperties + * @memberof google.cloud.compute.v1.BulkInsertInstanceResource + * @instance + */ + BulkInsertInstanceResource.prototype.perInstanceProperties = $util.emptyObject; + + /** + * BulkInsertInstanceResource sourceInstanceTemplate. + * @member {string|null|undefined} sourceInstanceTemplate + * @memberof google.cloud.compute.v1.BulkInsertInstanceResource + * @instance + */ + BulkInsertInstanceResource.prototype.sourceInstanceTemplate = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * BulkInsertInstanceResource _count. + * @member {"count"|undefined} _count + * @memberof google.cloud.compute.v1.BulkInsertInstanceResource + * @instance + */ + Object.defineProperty(BulkInsertInstanceResource.prototype, "_count", { + get: $util.oneOfGetter($oneOfFields = ["count"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * BulkInsertInstanceResource _instanceProperties. + * @member {"instanceProperties"|undefined} _instanceProperties + * @memberof google.cloud.compute.v1.BulkInsertInstanceResource + * @instance + */ + Object.defineProperty(BulkInsertInstanceResource.prototype, "_instanceProperties", { + get: $util.oneOfGetter($oneOfFields = ["instanceProperties"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * BulkInsertInstanceResource _locationPolicy. + * @member {"locationPolicy"|undefined} _locationPolicy + * @memberof google.cloud.compute.v1.BulkInsertInstanceResource + * @instance + */ + Object.defineProperty(BulkInsertInstanceResource.prototype, "_locationPolicy", { + get: $util.oneOfGetter($oneOfFields = ["locationPolicy"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * BulkInsertInstanceResource _minCount. + * @member {"minCount"|undefined} _minCount + * @memberof google.cloud.compute.v1.BulkInsertInstanceResource + * @instance + */ + Object.defineProperty(BulkInsertInstanceResource.prototype, "_minCount", { + get: $util.oneOfGetter($oneOfFields = ["minCount"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * BulkInsertInstanceResource _namePattern. + * @member {"namePattern"|undefined} _namePattern + * @memberof google.cloud.compute.v1.BulkInsertInstanceResource + * @instance + */ + Object.defineProperty(BulkInsertInstanceResource.prototype, "_namePattern", { + get: $util.oneOfGetter($oneOfFields = ["namePattern"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * BulkInsertInstanceResource _sourceInstanceTemplate. + * @member {"sourceInstanceTemplate"|undefined} _sourceInstanceTemplate + * @memberof google.cloud.compute.v1.BulkInsertInstanceResource + * @instance + */ + Object.defineProperty(BulkInsertInstanceResource.prototype, "_sourceInstanceTemplate", { + get: $util.oneOfGetter($oneOfFields = ["sourceInstanceTemplate"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new BulkInsertInstanceResource instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.BulkInsertInstanceResource + * @static + * @param {google.cloud.compute.v1.IBulkInsertInstanceResource=} [properties] Properties to set + * @returns {google.cloud.compute.v1.BulkInsertInstanceResource} BulkInsertInstanceResource instance + */ + BulkInsertInstanceResource.create = function create(properties) { + return new BulkInsertInstanceResource(properties); + }; + + /** + * Encodes the specified BulkInsertInstanceResource message. Does not implicitly {@link google.cloud.compute.v1.BulkInsertInstanceResource.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.BulkInsertInstanceResource + * @static + * @param {google.cloud.compute.v1.IBulkInsertInstanceResource} message BulkInsertInstanceResource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BulkInsertInstanceResource.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.count != null && Object.hasOwnProperty.call(message, "count")) + writer.uint32(/* id 94851343, wireType 0 =*/758810744).int64(message.count); + if (message.perInstanceProperties != null && Object.hasOwnProperty.call(message, "perInstanceProperties")) + for (var keys = Object.keys(message.perInstanceProperties), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 108502267, wireType 2 =*/868018138).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.compute.v1.BulkInsertInstanceResourcePerInstanceProperties.encode(message.perInstanceProperties[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.instanceProperties != null && Object.hasOwnProperty.call(message, "instanceProperties")) + $root.google.cloud.compute.v1.InstanceProperties.encode(message.instanceProperties, writer.uint32(/* id 215355165, wireType 2 =*/1722841322).fork()).ldelim(); + if (message.sourceInstanceTemplate != null && Object.hasOwnProperty.call(message, "sourceInstanceTemplate")) + writer.uint32(/* id 332423616, wireType 2 =*/2659388930).string(message.sourceInstanceTemplate); + if (message.namePattern != null && Object.hasOwnProperty.call(message, "namePattern")) + writer.uint32(/* id 413815260, wireType 2 =*/3310522082).string(message.namePattern); + if (message.locationPolicy != null && Object.hasOwnProperty.call(message, "locationPolicy")) + $root.google.cloud.compute.v1.LocationPolicy.encode(message.locationPolicy, writer.uint32(/* id 465689852, wireType 2 =*/3725518818).fork()).ldelim(); + if (message.minCount != null && Object.hasOwnProperty.call(message, "minCount")) + writer.uint32(/* id 523228386, wireType 0 =*/4185827088).int64(message.minCount); + return writer; + }; + + /** + * Encodes the specified BulkInsertInstanceResource message, length delimited. Does not implicitly {@link google.cloud.compute.v1.BulkInsertInstanceResource.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.BulkInsertInstanceResource + * @static + * @param {google.cloud.compute.v1.IBulkInsertInstanceResource} message BulkInsertInstanceResource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BulkInsertInstanceResource.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BulkInsertInstanceResource message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.BulkInsertInstanceResource + * @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.BulkInsertInstanceResource} BulkInsertInstanceResource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BulkInsertInstanceResource.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.BulkInsertInstanceResource(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 94851343: + message.count = reader.int64(); + break; + case 215355165: + message.instanceProperties = $root.google.cloud.compute.v1.InstanceProperties.decode(reader, reader.uint32()); + break; + case 465689852: + message.locationPolicy = $root.google.cloud.compute.v1.LocationPolicy.decode(reader, reader.uint32()); + break; + case 523228386: + message.minCount = reader.int64(); + break; + case 413815260: + message.namePattern = reader.string(); break; case 108502267: if (message.perInstanceProperties === $util.emptyObject) @@ -43144,6 +45734,8 @@ * @memberof google.cloud.compute.v1 * @interface ICacheKeyPolicy * @property {boolean|null} [includeHost] CacheKeyPolicy includeHost + * @property {Array.|null} [includeHttpHeaders] CacheKeyPolicy includeHttpHeaders + * @property {Array.|null} [includeNamedCookies] CacheKeyPolicy includeNamedCookies * @property {boolean|null} [includeProtocol] CacheKeyPolicy includeProtocol * @property {boolean|null} [includeQueryString] CacheKeyPolicy includeQueryString * @property {Array.|null} [queryStringBlacklist] CacheKeyPolicy queryStringBlacklist @@ -43159,6 +45751,8 @@ * @param {google.cloud.compute.v1.ICacheKeyPolicy=} [properties] Properties to set */ function CacheKeyPolicy(properties) { + this.includeHttpHeaders = []; + this.includeNamedCookies = []; this.queryStringBlacklist = []; this.queryStringWhitelist = []; if (properties) @@ -43175,6 +45769,22 @@ */ CacheKeyPolicy.prototype.includeHost = null; + /** + * CacheKeyPolicy includeHttpHeaders. + * @member {Array.} includeHttpHeaders + * @memberof google.cloud.compute.v1.CacheKeyPolicy + * @instance + */ + CacheKeyPolicy.prototype.includeHttpHeaders = $util.emptyArray; + + /** + * CacheKeyPolicy includeNamedCookies. + * @member {Array.} includeNamedCookies + * @memberof google.cloud.compute.v1.CacheKeyPolicy + * @instance + */ + CacheKeyPolicy.prototype.includeNamedCookies = $util.emptyArray; + /** * CacheKeyPolicy includeProtocol. * @member {boolean|null|undefined} includeProtocol @@ -43267,9 +45877,15 @@ CacheKeyPolicy.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.includeHttpHeaders != null && message.includeHttpHeaders.length) + for (var i = 0; i < message.includeHttpHeaders.length; ++i) + writer.uint32(/* id 2489606, wireType 2 =*/19916850).string(message.includeHttpHeaders[i]); if (message.queryStringWhitelist != null && message.queryStringWhitelist.length) for (var i = 0; i < message.queryStringWhitelist.length; ++i) writer.uint32(/* id 52456496, wireType 2 =*/419651970).string(message.queryStringWhitelist[i]); + if (message.includeNamedCookies != null && message.includeNamedCookies.length) + for (var i = 0; i < message.includeNamedCookies.length; ++i) + writer.uint32(/* id 87316530, wireType 2 =*/698532242).string(message.includeNamedCookies[i]); if (message.includeProtocol != null && Object.hasOwnProperty.call(message, "includeProtocol")) writer.uint32(/* id 303507535, wireType 0 =*/2428060280).bool(message.includeProtocol); if (message.queryStringBlacklist != null && message.queryStringBlacklist.length) @@ -43316,6 +45932,16 @@ case 486867679: message.includeHost = reader.bool(); break; + case 2489606: + if (!(message.includeHttpHeaders && message.includeHttpHeaders.length)) + message.includeHttpHeaders = []; + message.includeHttpHeaders.push(reader.string()); + break; + case 87316530: + if (!(message.includeNamedCookies && message.includeNamedCookies.length)) + message.includeNamedCookies = []; + message.includeNamedCookies.push(reader.string()); + break; case 303507535: message.includeProtocol = reader.bool(); break; @@ -43373,6 +45999,20 @@ if (typeof message.includeHost !== "boolean") return "includeHost: boolean expected"; } + if (message.includeHttpHeaders != null && message.hasOwnProperty("includeHttpHeaders")) { + if (!Array.isArray(message.includeHttpHeaders)) + return "includeHttpHeaders: array expected"; + for (var i = 0; i < message.includeHttpHeaders.length; ++i) + if (!$util.isString(message.includeHttpHeaders[i])) + return "includeHttpHeaders: string[] expected"; + } + if (message.includeNamedCookies != null && message.hasOwnProperty("includeNamedCookies")) { + if (!Array.isArray(message.includeNamedCookies)) + return "includeNamedCookies: array expected"; + for (var i = 0; i < message.includeNamedCookies.length; ++i) + if (!$util.isString(message.includeNamedCookies[i])) + return "includeNamedCookies: string[] expected"; + } if (message.includeProtocol != null && message.hasOwnProperty("includeProtocol")) { properties._includeProtocol = 1; if (typeof message.includeProtocol !== "boolean") @@ -43414,6 +46054,20 @@ var message = new $root.google.cloud.compute.v1.CacheKeyPolicy(); if (object.includeHost != null) message.includeHost = Boolean(object.includeHost); + if (object.includeHttpHeaders) { + if (!Array.isArray(object.includeHttpHeaders)) + throw TypeError(".google.cloud.compute.v1.CacheKeyPolicy.includeHttpHeaders: array expected"); + message.includeHttpHeaders = []; + for (var i = 0; i < object.includeHttpHeaders.length; ++i) + message.includeHttpHeaders[i] = String(object.includeHttpHeaders[i]); + } + if (object.includeNamedCookies) { + if (!Array.isArray(object.includeNamedCookies)) + throw TypeError(".google.cloud.compute.v1.CacheKeyPolicy.includeNamedCookies: array expected"); + message.includeNamedCookies = []; + for (var i = 0; i < object.includeNamedCookies.length; ++i) + message.includeNamedCookies[i] = String(object.includeNamedCookies[i]); + } if (object.includeProtocol != null) message.includeProtocol = Boolean(object.includeProtocol); if (object.includeQueryString != null) @@ -43449,14 +46103,26 @@ options = {}; var object = {}; if (options.arrays || options.defaults) { + object.includeHttpHeaders = []; object.queryStringWhitelist = []; + object.includeNamedCookies = []; object.queryStringBlacklist = []; } + if (message.includeHttpHeaders && message.includeHttpHeaders.length) { + object.includeHttpHeaders = []; + for (var j = 0; j < message.includeHttpHeaders.length; ++j) + object.includeHttpHeaders[j] = message.includeHttpHeaders[j]; + } if (message.queryStringWhitelist && message.queryStringWhitelist.length) { object.queryStringWhitelist = []; for (var j = 0; j < message.queryStringWhitelist.length; ++j) object.queryStringWhitelist[j] = message.queryStringWhitelist[j]; } + if (message.includeNamedCookies && message.includeNamedCookies.length) { + object.includeNamedCookies = []; + for (var j = 0; j < message.includeNamedCookies.length; ++j) + object.includeNamedCookies[j] = message.includeNamedCookies[j]; + } if (message.includeProtocol != null && message.hasOwnProperty("includeProtocol")) { object.includeProtocol = message.includeProtocol; if (options.oneofs) @@ -44118,6 +46784,7 @@ * Properties of a Commitment. * @memberof google.cloud.compute.v1 * @interface ICommitment + * @property {boolean|null} [autoRenew] Commitment autoRenew * @property {string|null} [category] Commitment category * @property {string|null} [creationTimestamp] Commitment creationTimestamp * @property {string|null} [description] Commitment description @@ -44154,6 +46821,14 @@ this[keys[i]] = properties[keys[i]]; } + /** + * Commitment autoRenew. + * @member {boolean|null|undefined} autoRenew + * @memberof google.cloud.compute.v1.Commitment + * @instance + */ + Commitment.prototype.autoRenew = null; + /** * Commitment category. * @member {string|null|undefined} category @@ -44293,6 +46968,17 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; + /** + * Commitment _autoRenew. + * @member {"autoRenew"|undefined} _autoRenew + * @memberof google.cloud.compute.v1.Commitment + * @instance + */ + Object.defineProperty(Commitment.prototype, "_autoRenew", { + get: $util.oneOfGetter($oneOfFields = ["autoRenew"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Commitment _category. * @member {"category"|undefined} _category @@ -44518,6 +47204,8 @@ 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.autoRenew != null && Object.hasOwnProperty.call(message, "autoRenew")) + writer.uint32(/* id 495520765, wireType 0 =*/3964166120).bool(message.autoRenew); return writer; }; @@ -44552,6 +47240,9 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 495520765: + message.autoRenew = reader.bool(); + break; case 50511102: message.category = reader.string(); break; @@ -44643,6 +47334,11 @@ if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; + if (message.autoRenew != null && message.hasOwnProperty("autoRenew")) { + properties._autoRenew = 1; + if (typeof message.autoRenew !== "boolean") + return "autoRenew: boolean expected"; + } if (message.category != null && message.hasOwnProperty("category")) { properties._category = 1; if (!$util.isString(message.category)) @@ -44754,6 +47450,8 @@ if (object instanceof $root.google.cloud.compute.v1.Commitment) return object; var message = new $root.google.cloud.compute.v1.Commitment(); + if (object.autoRenew != null) + message.autoRenew = Boolean(object.autoRenew); if (object.category != null) message.category = String(object.category); if (object.creationTimestamp != null) @@ -44922,6 +47620,11 @@ if (options.oneofs) object._endTimestamp = "endTimestamp"; } + if (message.autoRenew != null && message.hasOwnProperty("autoRenew")) { + object.autoRenew = message.autoRenew; + if (options.oneofs) + object._autoRenew = "autoRenew"; + } return object; }; @@ -44999,10 +47702,12 @@ * @property {number} UNDEFINED_TYPE=0 UNDEFINED_TYPE value * @property {number} ACCELERATOR_OPTIMIZED=280848403 ACCELERATOR_OPTIMIZED value * @property {number} COMPUTE_OPTIMIZED=158349023 COMPUTE_OPTIMIZED value + * @property {number} COMPUTE_OPTIMIZED_C2D=383246453 COMPUTE_OPTIMIZED_C2D value * @property {number} GENERAL_PURPOSE=299793543 GENERAL_PURPOSE value * @property {number} GENERAL_PURPOSE_E2=301911877 GENERAL_PURPOSE_E2 value * @property {number} GENERAL_PURPOSE_N2=301912156 GENERAL_PURPOSE_N2 value * @property {number} GENERAL_PURPOSE_N2D=232471400 GENERAL_PURPOSE_N2D value + * @property {number} GENERAL_PURPOSE_T2D=232477166 GENERAL_PURPOSE_T2D value * @property {number} MEMORY_OPTIMIZED=281753417 MEMORY_OPTIMIZED value * @property {number} TYPE_UNSPECIFIED=437714322 TYPE_UNSPECIFIED value */ @@ -45011,10 +47716,12 @@ values[valuesById[0] = "UNDEFINED_TYPE"] = 0; values[valuesById[280848403] = "ACCELERATOR_OPTIMIZED"] = 280848403; values[valuesById[158349023] = "COMPUTE_OPTIMIZED"] = 158349023; + values[valuesById[383246453] = "COMPUTE_OPTIMIZED_C2D"] = 383246453; values[valuesById[299793543] = "GENERAL_PURPOSE"] = 299793543; values[valuesById[301911877] = "GENERAL_PURPOSE_E2"] = 301911877; values[valuesById[301912156] = "GENERAL_PURPOSE_N2"] = 301912156; values[valuesById[232471400] = "GENERAL_PURPOSE_N2D"] = 232471400; + values[valuesById[232477166] = "GENERAL_PURPOSE_T2D"] = 232477166; values[valuesById[281753417] = "MEMORY_OPTIMIZED"] = 281753417; values[valuesById[437714322] = "TYPE_UNSPECIFIED"] = 437714322; return values; @@ -57390,6 +60097,257 @@ return DeleteLicenseRequest; })(); + v1.DeleteMachineImageRequest = (function() { + + /** + * Properties of a DeleteMachineImageRequest. + * @memberof google.cloud.compute.v1 + * @interface IDeleteMachineImageRequest + * @property {string|null} [machineImage] DeleteMachineImageRequest machineImage + * @property {string|null} [project] DeleteMachineImageRequest project + * @property {string|null} [requestId] DeleteMachineImageRequest requestId + */ + + /** + * Constructs a new DeleteMachineImageRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a DeleteMachineImageRequest. + * @implements IDeleteMachineImageRequest + * @constructor + * @param {google.cloud.compute.v1.IDeleteMachineImageRequest=} [properties] Properties to set + */ + function DeleteMachineImageRequest(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]]; + } + + /** + * DeleteMachineImageRequest machineImage. + * @member {string} machineImage + * @memberof google.cloud.compute.v1.DeleteMachineImageRequest + * @instance + */ + DeleteMachineImageRequest.prototype.machineImage = ""; + + /** + * DeleteMachineImageRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.DeleteMachineImageRequest + * @instance + */ + DeleteMachineImageRequest.prototype.project = ""; + + /** + * DeleteMachineImageRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1.DeleteMachineImageRequest + * @instance + */ + DeleteMachineImageRequest.prototype.requestId = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * DeleteMachineImageRequest _requestId. + * @member {"requestId"|undefined} _requestId + * @memberof google.cloud.compute.v1.DeleteMachineImageRequest + * @instance + */ + Object.defineProperty(DeleteMachineImageRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new DeleteMachineImageRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.DeleteMachineImageRequest + * @static + * @param {google.cloud.compute.v1.IDeleteMachineImageRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.DeleteMachineImageRequest} DeleteMachineImageRequest instance + */ + DeleteMachineImageRequest.create = function create(properties) { + return new DeleteMachineImageRequest(properties); + }; + + /** + * Encodes the specified DeleteMachineImageRequest message. Does not implicitly {@link google.cloud.compute.v1.DeleteMachineImageRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.DeleteMachineImageRequest + * @static + * @param {google.cloud.compute.v1.IDeleteMachineImageRequest} message DeleteMachineImageRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteMachineImageRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); + if (message.machineImage != null && Object.hasOwnProperty.call(message, "machineImage")) + writer.uint32(/* id 69189475, wireType 2 =*/553515802).string(message.machineImage); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + return writer; + }; + + /** + * Encodes the specified DeleteMachineImageRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.DeleteMachineImageRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.DeleteMachineImageRequest + * @static + * @param {google.cloud.compute.v1.IDeleteMachineImageRequest} message DeleteMachineImageRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteMachineImageRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteMachineImageRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.DeleteMachineImageRequest + * @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.DeleteMachineImageRequest} DeleteMachineImageRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteMachineImageRequest.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.DeleteMachineImageRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 69189475: + message.machineImage = reader.string(); + break; + case 227560217: + message.project = reader.string(); + break; + case 37109963: + message.requestId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeleteMachineImageRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.DeleteMachineImageRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.DeleteMachineImageRequest} DeleteMachineImageRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteMachineImageRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteMachineImageRequest message. + * @function verify + * @memberof google.cloud.compute.v1.DeleteMachineImageRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteMachineImageRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.machineImage != null && message.hasOwnProperty("machineImage")) + if (!$util.isString(message.machineImage)) + return "machineImage: 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"; + } + return null; + }; + + /** + * Creates a DeleteMachineImageRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.DeleteMachineImageRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.DeleteMachineImageRequest} DeleteMachineImageRequest + */ + DeleteMachineImageRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.DeleteMachineImageRequest) + return object; + var message = new $root.google.cloud.compute.v1.DeleteMachineImageRequest(); + if (object.machineImage != null) + message.machineImage = String(object.machineImage); + if (object.project != null) + message.project = String(object.project); + if (object.requestId != null) + message.requestId = String(object.requestId); + return message; + }; + + /** + * Creates a plain object from a DeleteMachineImageRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.DeleteMachineImageRequest + * @static + * @param {google.cloud.compute.v1.DeleteMachineImageRequest} message DeleteMachineImageRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteMachineImageRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.machineImage = ""; + object.project = ""; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) { + object.requestId = message.requestId; + if (options.oneofs) + object._requestId = "requestId"; + } + if (message.machineImage != null && message.hasOwnProperty("machineImage")) + object.machineImage = message.machineImage; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + return object; + }; + + /** + * Converts this DeleteMachineImageRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.DeleteMachineImageRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteMachineImageRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DeleteMachineImageRequest; + })(); + v1.DeleteNetworkEndpointGroupRequest = (function() { /** @@ -88940,6 +91898,7 @@ * @property {number} AH=2087 AH value * @property {number} ESP=68962 ESP value * @property {number} ICMP=2241597 ICMP value + * @property {number} L3_DEFAULT=48151369 L3_DEFAULT value * @property {number} SCTP=2539724 SCTP value * @property {number} TCP=82881 TCP value * @property {number} UDP=83873 UDP value @@ -88950,6 +91909,7 @@ values[valuesById[2087] = "AH"] = 2087; values[valuesById[68962] = "ESP"] = 68962; values[valuesById[2241597] = "ICMP"] = 2241597; + values[valuesById[48151369] = "L3_DEFAULT"] = 48151369; values[valuesById[2539724] = "SCTP"] = 2539724; values[valuesById[82881] = "TCP"] = 82881; values[valuesById[83873] = "UDP"] = 83873; @@ -88980,6 +91940,7 @@ * @enum {number} * @property {number} UNDEFINED_LOAD_BALANCING_SCHEME=0 UNDEFINED_LOAD_BALANCING_SCHEME value * @property {number} EXTERNAL=35607499 EXTERNAL value + * @property {number} EXTERNAL_MANAGED=512006923 EXTERNAL_MANAGED value * @property {number} INTERNAL=279295677 INTERNAL value * @property {number} INTERNAL_MANAGED=37350397 INTERNAL_MANAGED value * @property {number} INTERNAL_SELF_MANAGED=236211150 INTERNAL_SELF_MANAGED value @@ -88989,6 +91950,7 @@ var valuesById = {}, values = Object.create(valuesById); values[valuesById[0] = "UNDEFINED_LOAD_BALANCING_SCHEME"] = 0; values[valuesById[35607499] = "EXTERNAL"] = 35607499; + values[valuesById[512006923] = "EXTERNAL_MANAGED"] = 512006923; values[valuesById[279295677] = "INTERNAL"] = 279295677; values[valuesById[37350397] = "INTERNAL_MANAGED"] = 37350397; values[valuesById[236211150] = "INTERNAL_SELF_MANAGED"] = 236211150; @@ -89001,14 +91963,18 @@ * @name google.cloud.compute.v1.ForwardingRule.NetworkTier * @enum {number} * @property {number} UNDEFINED_NETWORK_TIER=0 UNDEFINED_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 */ ForwardingRule.NetworkTier = (function() { var valuesById = {}, values = Object.create(valuesById); values[valuesById[0] = "UNDEFINED_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; })(); @@ -98587,6 +101553,257 @@ return GetIamPolicyLicenseRequest; })(); + v1.GetIamPolicyMachineImageRequest = (function() { + + /** + * Properties of a GetIamPolicyMachineImageRequest. + * @memberof google.cloud.compute.v1 + * @interface IGetIamPolicyMachineImageRequest + * @property {number|null} [optionsRequestedPolicyVersion] GetIamPolicyMachineImageRequest optionsRequestedPolicyVersion + * @property {string|null} [project] GetIamPolicyMachineImageRequest project + * @property {string|null} [resource] GetIamPolicyMachineImageRequest resource + */ + + /** + * Constructs a new GetIamPolicyMachineImageRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a GetIamPolicyMachineImageRequest. + * @implements IGetIamPolicyMachineImageRequest + * @constructor + * @param {google.cloud.compute.v1.IGetIamPolicyMachineImageRequest=} [properties] Properties to set + */ + function GetIamPolicyMachineImageRequest(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]]; + } + + /** + * GetIamPolicyMachineImageRequest optionsRequestedPolicyVersion. + * @member {number|null|undefined} optionsRequestedPolicyVersion + * @memberof google.cloud.compute.v1.GetIamPolicyMachineImageRequest + * @instance + */ + GetIamPolicyMachineImageRequest.prototype.optionsRequestedPolicyVersion = null; + + /** + * GetIamPolicyMachineImageRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.GetIamPolicyMachineImageRequest + * @instance + */ + GetIamPolicyMachineImageRequest.prototype.project = ""; + + /** + * GetIamPolicyMachineImageRequest resource. + * @member {string} resource + * @memberof google.cloud.compute.v1.GetIamPolicyMachineImageRequest + * @instance + */ + GetIamPolicyMachineImageRequest.prototype.resource = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * GetIamPolicyMachineImageRequest _optionsRequestedPolicyVersion. + * @member {"optionsRequestedPolicyVersion"|undefined} _optionsRequestedPolicyVersion + * @memberof google.cloud.compute.v1.GetIamPolicyMachineImageRequest + * @instance + */ + Object.defineProperty(GetIamPolicyMachineImageRequest.prototype, "_optionsRequestedPolicyVersion", { + get: $util.oneOfGetter($oneOfFields = ["optionsRequestedPolicyVersion"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new GetIamPolicyMachineImageRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.GetIamPolicyMachineImageRequest + * @static + * @param {google.cloud.compute.v1.IGetIamPolicyMachineImageRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.GetIamPolicyMachineImageRequest} GetIamPolicyMachineImageRequest instance + */ + GetIamPolicyMachineImageRequest.create = function create(properties) { + return new GetIamPolicyMachineImageRequest(properties); + }; + + /** + * Encodes the specified GetIamPolicyMachineImageRequest message. Does not implicitly {@link google.cloud.compute.v1.GetIamPolicyMachineImageRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.GetIamPolicyMachineImageRequest + * @static + * @param {google.cloud.compute.v1.IGetIamPolicyMachineImageRequest} message GetIamPolicyMachineImageRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetIamPolicyMachineImageRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) + writer.uint32(/* id 195806222, wireType 2 =*/1566449778).string(message.resource); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.optionsRequestedPolicyVersion != null && Object.hasOwnProperty.call(message, "optionsRequestedPolicyVersion")) + writer.uint32(/* id 499220029, wireType 0 =*/3993760232).int32(message.optionsRequestedPolicyVersion); + return writer; + }; + + /** + * Encodes the specified GetIamPolicyMachineImageRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.GetIamPolicyMachineImageRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.GetIamPolicyMachineImageRequest + * @static + * @param {google.cloud.compute.v1.IGetIamPolicyMachineImageRequest} message GetIamPolicyMachineImageRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetIamPolicyMachineImageRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetIamPolicyMachineImageRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.GetIamPolicyMachineImageRequest + * @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.GetIamPolicyMachineImageRequest} GetIamPolicyMachineImageRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetIamPolicyMachineImageRequest.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.GetIamPolicyMachineImageRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 499220029: + message.optionsRequestedPolicyVersion = reader.int32(); + break; + case 227560217: + message.project = reader.string(); + break; + case 195806222: + message.resource = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetIamPolicyMachineImageRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.GetIamPolicyMachineImageRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.GetIamPolicyMachineImageRequest} GetIamPolicyMachineImageRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetIamPolicyMachineImageRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetIamPolicyMachineImageRequest message. + * @function verify + * @memberof google.cloud.compute.v1.GetIamPolicyMachineImageRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetIamPolicyMachineImageRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.optionsRequestedPolicyVersion != null && message.hasOwnProperty("optionsRequestedPolicyVersion")) { + properties._optionsRequestedPolicyVersion = 1; + if (!$util.isInteger(message.optionsRequestedPolicyVersion)) + return "optionsRequestedPolicyVersion: integer expected"; + } + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.resource != null && message.hasOwnProperty("resource")) + if (!$util.isString(message.resource)) + return "resource: string expected"; + return null; + }; + + /** + * Creates a GetIamPolicyMachineImageRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.GetIamPolicyMachineImageRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.GetIamPolicyMachineImageRequest} GetIamPolicyMachineImageRequest + */ + GetIamPolicyMachineImageRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.GetIamPolicyMachineImageRequest) + return object; + var message = new $root.google.cloud.compute.v1.GetIamPolicyMachineImageRequest(); + if (object.optionsRequestedPolicyVersion != null) + message.optionsRequestedPolicyVersion = object.optionsRequestedPolicyVersion | 0; + if (object.project != null) + message.project = String(object.project); + if (object.resource != null) + message.resource = String(object.resource); + return message; + }; + + /** + * Creates a plain object from a GetIamPolicyMachineImageRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.GetIamPolicyMachineImageRequest + * @static + * @param {google.cloud.compute.v1.GetIamPolicyMachineImageRequest} message GetIamPolicyMachineImageRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetIamPolicyMachineImageRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.resource = ""; + object.project = ""; + } + if (message.resource != null && message.hasOwnProperty("resource")) + object.resource = message.resource; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.optionsRequestedPolicyVersion != null && message.hasOwnProperty("optionsRequestedPolicyVersion")) { + object.optionsRequestedPolicyVersion = message.optionsRequestedPolicyVersion; + if (options.oneofs) + object._optionsRequestedPolicyVersion = "optionsRequestedPolicyVersion"; + } + return object; + }; + + /** + * Converts this GetIamPolicyMachineImageRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.GetIamPolicyMachineImageRequest + * @instance + * @returns {Object.} JSON object + */ + GetIamPolicyMachineImageRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetIamPolicyMachineImageRequest; + })(); + v1.GetIamPolicyNodeGroupRequest = (function() { /** @@ -103169,6 +106386,216 @@ return GetLicenseRequest; })(); + v1.GetMachineImageRequest = (function() { + + /** + * Properties of a GetMachineImageRequest. + * @memberof google.cloud.compute.v1 + * @interface IGetMachineImageRequest + * @property {string|null} [machineImage] GetMachineImageRequest machineImage + * @property {string|null} [project] GetMachineImageRequest project + */ + + /** + * Constructs a new GetMachineImageRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a GetMachineImageRequest. + * @implements IGetMachineImageRequest + * @constructor + * @param {google.cloud.compute.v1.IGetMachineImageRequest=} [properties] Properties to set + */ + function GetMachineImageRequest(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]]; + } + + /** + * GetMachineImageRequest machineImage. + * @member {string} machineImage + * @memberof google.cloud.compute.v1.GetMachineImageRequest + * @instance + */ + GetMachineImageRequest.prototype.machineImage = ""; + + /** + * GetMachineImageRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.GetMachineImageRequest + * @instance + */ + GetMachineImageRequest.prototype.project = ""; + + /** + * Creates a new GetMachineImageRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.GetMachineImageRequest + * @static + * @param {google.cloud.compute.v1.IGetMachineImageRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.GetMachineImageRequest} GetMachineImageRequest instance + */ + GetMachineImageRequest.create = function create(properties) { + return new GetMachineImageRequest(properties); + }; + + /** + * Encodes the specified GetMachineImageRequest message. Does not implicitly {@link google.cloud.compute.v1.GetMachineImageRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.GetMachineImageRequest + * @static + * @param {google.cloud.compute.v1.IGetMachineImageRequest} message GetMachineImageRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetMachineImageRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.machineImage != null && Object.hasOwnProperty.call(message, "machineImage")) + writer.uint32(/* id 69189475, wireType 2 =*/553515802).string(message.machineImage); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + return writer; + }; + + /** + * Encodes the specified GetMachineImageRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.GetMachineImageRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.GetMachineImageRequest + * @static + * @param {google.cloud.compute.v1.IGetMachineImageRequest} message GetMachineImageRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetMachineImageRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetMachineImageRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.GetMachineImageRequest + * @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.GetMachineImageRequest} GetMachineImageRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetMachineImageRequest.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.GetMachineImageRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 69189475: + message.machineImage = reader.string(); + break; + case 227560217: + message.project = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetMachineImageRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.GetMachineImageRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.GetMachineImageRequest} GetMachineImageRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetMachineImageRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetMachineImageRequest message. + * @function verify + * @memberof google.cloud.compute.v1.GetMachineImageRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetMachineImageRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.machineImage != null && message.hasOwnProperty("machineImage")) + if (!$util.isString(message.machineImage)) + return "machineImage: string expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + return null; + }; + + /** + * Creates a GetMachineImageRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.GetMachineImageRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.GetMachineImageRequest} GetMachineImageRequest + */ + GetMachineImageRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.GetMachineImageRequest) + return object; + var message = new $root.google.cloud.compute.v1.GetMachineImageRequest(); + if (object.machineImage != null) + message.machineImage = String(object.machineImage); + if (object.project != null) + message.project = String(object.project); + return message; + }; + + /** + * Creates a plain object from a GetMachineImageRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.GetMachineImageRequest + * @static + * @param {google.cloud.compute.v1.GetMachineImageRequest} message GetMachineImageRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetMachineImageRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.machineImage = ""; + object.project = ""; + } + if (message.machineImage != null && message.hasOwnProperty("machineImage")) + object.machineImage = message.machineImage; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + return object; + }; + + /** + * Converts this GetMachineImageRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.GetMachineImageRequest + * @instance + * @returns {Object.} JSON object + */ + GetMachineImageRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetMachineImageRequest; + })(); + v1.GetMachineTypeRequest = (function() { /** @@ -134184,11 +137611,11 @@ /** * InsertFirewallPolicyRequest parentId. - * @member {string} parentId + * @member {string|null|undefined} parentId * @memberof google.cloud.compute.v1.InsertFirewallPolicyRequest * @instance */ - InsertFirewallPolicyRequest.prototype.parentId = ""; + InsertFirewallPolicyRequest.prototype.parentId = null; /** * InsertFirewallPolicyRequest requestId. @@ -134201,6 +137628,17 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; + /** + * InsertFirewallPolicyRequest _parentId. + * @member {"parentId"|undefined} _parentId + * @memberof google.cloud.compute.v1.InsertFirewallPolicyRequest + * @instance + */ + Object.defineProperty(InsertFirewallPolicyRequest.prototype, "_parentId", { + get: $util.oneOfGetter($oneOfFields = ["parentId"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * InsertFirewallPolicyRequest _requestId. * @member {"requestId"|undefined} _requestId @@ -134326,9 +137764,11 @@ if (error) return "firewallPolicyResource." + error; } - if (message.parentId != null && message.hasOwnProperty("parentId")) + if (message.parentId != null && message.hasOwnProperty("parentId")) { + properties._parentId = 1; if (!$util.isString(message.parentId)) return "parentId: string expected"; + } if (message.requestId != null && message.hasOwnProperty("requestId")) { properties._requestId = 1; if (!$util.isString(message.requestId)) @@ -134374,17 +137814,18 @@ if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parentId = ""; + if (options.defaults) object.firewallPolicyResource = null; - } if (message.requestId != null && message.hasOwnProperty("requestId")) { object.requestId = message.requestId; if (options.oneofs) object._requestId = "requestId"; } - if (message.parentId != null && message.hasOwnProperty("parentId")) + if (message.parentId != null && message.hasOwnProperty("parentId")) { object.parentId = message.parentId; + if (options.oneofs) + object._parentId = "parentId"; + } if (message.firewallPolicyResource != null && message.hasOwnProperty("firewallPolicyResource")) object.firewallPolicyResource = $root.google.cloud.compute.v1.FirewallPolicy.toObject(message.firewallPolicyResource, options); return object; @@ -137077,6 +140518,7 @@ * @property {string|null} [project] InsertInstanceRequest project * @property {string|null} [requestId] InsertInstanceRequest requestId * @property {string|null} [sourceInstanceTemplate] InsertInstanceRequest sourceInstanceTemplate + * @property {string|null} [sourceMachineImage] InsertInstanceRequest sourceMachineImage * @property {string|null} [zone] InsertInstanceRequest zone */ @@ -137127,6 +140569,14 @@ */ InsertInstanceRequest.prototype.sourceInstanceTemplate = null; + /** + * InsertInstanceRequest sourceMachineImage. + * @member {string|null|undefined} sourceMachineImage + * @memberof google.cloud.compute.v1.InsertInstanceRequest + * @instance + */ + InsertInstanceRequest.prototype.sourceMachineImage = null; + /** * InsertInstanceRequest zone. * @member {string} zone @@ -137160,6 +140610,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * InsertInstanceRequest _sourceMachineImage. + * @member {"sourceMachineImage"|undefined} _sourceMachineImage + * @memberof google.cloud.compute.v1.InsertInstanceRequest + * @instance + */ + Object.defineProperty(InsertInstanceRequest.prototype, "_sourceMachineImage", { + get: $util.oneOfGetter($oneOfFields = ["sourceMachineImage"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new InsertInstanceRequest instance using the specified properties. * @function create @@ -137186,6 +140647,8 @@ writer = $Writer.create(); if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 3744684, wireType 2 =*/29957474).string(message.zone); + if (message.sourceMachineImage != null && Object.hasOwnProperty.call(message, "sourceMachineImage")) + writer.uint32(/* id 21769791, wireType 2 =*/174158330).string(message.sourceMachineImage); if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); if (message.instanceResource != null && Object.hasOwnProperty.call(message, "instanceResource")) @@ -137240,6 +140703,9 @@ case 332423616: message.sourceInstanceTemplate = reader.string(); break; + case 21769791: + message.sourceMachineImage = reader.string(); + break; case 3744684: message.zone = reader.string(); break; @@ -137297,6 +140763,11 @@ if (!$util.isString(message.sourceInstanceTemplate)) return "sourceInstanceTemplate: string expected"; } + if (message.sourceMachineImage != null && message.hasOwnProperty("sourceMachineImage")) { + properties._sourceMachineImage = 1; + if (!$util.isString(message.sourceMachineImage)) + return "sourceMachineImage: string expected"; + } if (message.zone != null && message.hasOwnProperty("zone")) if (!$util.isString(message.zone)) return "zone: string expected"; @@ -137326,6 +140797,8 @@ message.requestId = String(object.requestId); if (object.sourceInstanceTemplate != null) message.sourceInstanceTemplate = String(object.sourceInstanceTemplate); + if (object.sourceMachineImage != null) + message.sourceMachineImage = String(object.sourceMachineImage); if (object.zone != null) message.zone = String(object.zone); return message; @@ -137351,6 +140824,11 @@ } if (message.zone != null && message.hasOwnProperty("zone")) object.zone = message.zone; + if (message.sourceMachineImage != null && message.hasOwnProperty("sourceMachineImage")) { + object.sourceMachineImage = message.sourceMachineImage; + if (options.oneofs) + object._sourceMachineImage = "sourceMachineImage"; + } if (message.requestId != null && message.hasOwnProperty("requestId")) { object.requestId = message.requestId; if (options.oneofs) @@ -138465,6 +141943,299 @@ return InsertLicenseRequest; })(); + v1.InsertMachineImageRequest = (function() { + + /** + * Properties of an InsertMachineImageRequest. + * @memberof google.cloud.compute.v1 + * @interface IInsertMachineImageRequest + * @property {google.cloud.compute.v1.IMachineImage|null} [machineImageResource] InsertMachineImageRequest machineImageResource + * @property {string|null} [project] InsertMachineImageRequest project + * @property {string|null} [requestId] InsertMachineImageRequest requestId + * @property {string|null} [sourceInstance] InsertMachineImageRequest sourceInstance + */ + + /** + * Constructs a new InsertMachineImageRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an InsertMachineImageRequest. + * @implements IInsertMachineImageRequest + * @constructor + * @param {google.cloud.compute.v1.IInsertMachineImageRequest=} [properties] Properties to set + */ + function InsertMachineImageRequest(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]]; + } + + /** + * InsertMachineImageRequest machineImageResource. + * @member {google.cloud.compute.v1.IMachineImage|null|undefined} machineImageResource + * @memberof google.cloud.compute.v1.InsertMachineImageRequest + * @instance + */ + InsertMachineImageRequest.prototype.machineImageResource = null; + + /** + * InsertMachineImageRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.InsertMachineImageRequest + * @instance + */ + InsertMachineImageRequest.prototype.project = ""; + + /** + * InsertMachineImageRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1.InsertMachineImageRequest + * @instance + */ + InsertMachineImageRequest.prototype.requestId = null; + + /** + * InsertMachineImageRequest sourceInstance. + * @member {string|null|undefined} sourceInstance + * @memberof google.cloud.compute.v1.InsertMachineImageRequest + * @instance + */ + InsertMachineImageRequest.prototype.sourceInstance = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * InsertMachineImageRequest _requestId. + * @member {"requestId"|undefined} _requestId + * @memberof google.cloud.compute.v1.InsertMachineImageRequest + * @instance + */ + Object.defineProperty(InsertMachineImageRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * InsertMachineImageRequest _sourceInstance. + * @member {"sourceInstance"|undefined} _sourceInstance + * @memberof google.cloud.compute.v1.InsertMachineImageRequest + * @instance + */ + Object.defineProperty(InsertMachineImageRequest.prototype, "_sourceInstance", { + get: $util.oneOfGetter($oneOfFields = ["sourceInstance"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InsertMachineImageRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.InsertMachineImageRequest + * @static + * @param {google.cloud.compute.v1.IInsertMachineImageRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.InsertMachineImageRequest} InsertMachineImageRequest instance + */ + InsertMachineImageRequest.create = function create(properties) { + return new InsertMachineImageRequest(properties); + }; + + /** + * Encodes the specified InsertMachineImageRequest message. Does not implicitly {@link google.cloud.compute.v1.InsertMachineImageRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.InsertMachineImageRequest + * @static + * @param {google.cloud.compute.v1.IInsertMachineImageRequest} message InsertMachineImageRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InsertMachineImageRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); + if (message.machineImageResource != null && Object.hasOwnProperty.call(message, "machineImageResource")) + $root.google.cloud.compute.v1.MachineImage.encode(message.machineImageResource, writer.uint32(/* id 60740970, wireType 2 =*/485927762).fork()).ldelim(); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.sourceInstance != null && Object.hasOwnProperty.call(message, "sourceInstance")) + writer.uint32(/* id 396315705, wireType 2 =*/3170525642).string(message.sourceInstance); + return writer; + }; + + /** + * Encodes the specified InsertMachineImageRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InsertMachineImageRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.InsertMachineImageRequest + * @static + * @param {google.cloud.compute.v1.IInsertMachineImageRequest} message InsertMachineImageRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InsertMachineImageRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InsertMachineImageRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.InsertMachineImageRequest + * @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.InsertMachineImageRequest} InsertMachineImageRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InsertMachineImageRequest.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.InsertMachineImageRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 60740970: + message.machineImageResource = $root.google.cloud.compute.v1.MachineImage.decode(reader, reader.uint32()); + break; + case 227560217: + message.project = reader.string(); + break; + case 37109963: + message.requestId = reader.string(); + break; + case 396315705: + message.sourceInstance = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InsertMachineImageRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.InsertMachineImageRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.InsertMachineImageRequest} InsertMachineImageRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InsertMachineImageRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InsertMachineImageRequest message. + * @function verify + * @memberof google.cloud.compute.v1.InsertMachineImageRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InsertMachineImageRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.machineImageResource != null && message.hasOwnProperty("machineImageResource")) { + var error = $root.google.cloud.compute.v1.MachineImage.verify(message.machineImageResource); + if (error) + return "machineImageResource." + error; + } + 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.sourceInstance != null && message.hasOwnProperty("sourceInstance")) { + properties._sourceInstance = 1; + if (!$util.isString(message.sourceInstance)) + return "sourceInstance: string expected"; + } + return null; + }; + + /** + * Creates an InsertMachineImageRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.InsertMachineImageRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.InsertMachineImageRequest} InsertMachineImageRequest + */ + InsertMachineImageRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.InsertMachineImageRequest) + return object; + var message = new $root.google.cloud.compute.v1.InsertMachineImageRequest(); + if (object.machineImageResource != null) { + if (typeof object.machineImageResource !== "object") + throw TypeError(".google.cloud.compute.v1.InsertMachineImageRequest.machineImageResource: object expected"); + message.machineImageResource = $root.google.cloud.compute.v1.MachineImage.fromObject(object.machineImageResource); + } + if (object.project != null) + message.project = String(object.project); + if (object.requestId != null) + message.requestId = String(object.requestId); + if (object.sourceInstance != null) + message.sourceInstance = String(object.sourceInstance); + return message; + }; + + /** + * Creates a plain object from an InsertMachineImageRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.InsertMachineImageRequest + * @static + * @param {google.cloud.compute.v1.InsertMachineImageRequest} message InsertMachineImageRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InsertMachineImageRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.machineImageResource = null; + object.project = ""; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) { + object.requestId = message.requestId; + if (options.oneofs) + object._requestId = "requestId"; + } + if (message.machineImageResource != null && message.hasOwnProperty("machineImageResource")) + object.machineImageResource = $root.google.cloud.compute.v1.MachineImage.toObject(message.machineImageResource, options); + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.sourceInstance != null && message.hasOwnProperty("sourceInstance")) { + object.sourceInstance = message.sourceInstance; + if (options.oneofs) + object._sourceInstance = "sourceInstance"; + } + return object; + }; + + /** + * Converts this InsertMachineImageRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.InsertMachineImageRequest + * @instance + * @returns {Object.} JSON object + */ + InsertMachineImageRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return InsertMachineImageRequest; + })(); + v1.InsertNetworkEndpointGroupRequest = (function() { /** @@ -145664,6 +149435,262 @@ return InsertServiceAttachmentRequest; })(); + v1.InsertSnapshotRequest = (function() { + + /** + * Properties of an InsertSnapshotRequest. + * @memberof google.cloud.compute.v1 + * @interface IInsertSnapshotRequest + * @property {string|null} [project] InsertSnapshotRequest project + * @property {string|null} [requestId] InsertSnapshotRequest requestId + * @property {google.cloud.compute.v1.ISnapshot|null} [snapshotResource] InsertSnapshotRequest snapshotResource + */ + + /** + * Constructs a new InsertSnapshotRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an InsertSnapshotRequest. + * @implements IInsertSnapshotRequest + * @constructor + * @param {google.cloud.compute.v1.IInsertSnapshotRequest=} [properties] Properties to set + */ + function InsertSnapshotRequest(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]]; + } + + /** + * InsertSnapshotRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.InsertSnapshotRequest + * @instance + */ + InsertSnapshotRequest.prototype.project = ""; + + /** + * InsertSnapshotRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1.InsertSnapshotRequest + * @instance + */ + InsertSnapshotRequest.prototype.requestId = null; + + /** + * InsertSnapshotRequest snapshotResource. + * @member {google.cloud.compute.v1.ISnapshot|null|undefined} snapshotResource + * @memberof google.cloud.compute.v1.InsertSnapshotRequest + * @instance + */ + InsertSnapshotRequest.prototype.snapshotResource = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * InsertSnapshotRequest _requestId. + * @member {"requestId"|undefined} _requestId + * @memberof google.cloud.compute.v1.InsertSnapshotRequest + * @instance + */ + Object.defineProperty(InsertSnapshotRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InsertSnapshotRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.InsertSnapshotRequest + * @static + * @param {google.cloud.compute.v1.IInsertSnapshotRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.InsertSnapshotRequest} InsertSnapshotRequest instance + */ + InsertSnapshotRequest.create = function create(properties) { + return new InsertSnapshotRequest(properties); + }; + + /** + * Encodes the specified InsertSnapshotRequest message. Does not implicitly {@link google.cloud.compute.v1.InsertSnapshotRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.InsertSnapshotRequest + * @static + * @param {google.cloud.compute.v1.IInsertSnapshotRequest} message InsertSnapshotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InsertSnapshotRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + 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); + if (message.snapshotResource != null && Object.hasOwnProperty.call(message, "snapshotResource")) + $root.google.cloud.compute.v1.Snapshot.encode(message.snapshotResource, writer.uint32(/* id 481319977, wireType 2 =*/3850559818).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified InsertSnapshotRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InsertSnapshotRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.InsertSnapshotRequest + * @static + * @param {google.cloud.compute.v1.IInsertSnapshotRequest} message InsertSnapshotRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InsertSnapshotRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InsertSnapshotRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.InsertSnapshotRequest + * @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.InsertSnapshotRequest} InsertSnapshotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InsertSnapshotRequest.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.InsertSnapshotRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 227560217: + message.project = reader.string(); + break; + case 37109963: + message.requestId = reader.string(); + break; + case 481319977: + message.snapshotResource = $root.google.cloud.compute.v1.Snapshot.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InsertSnapshotRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.InsertSnapshotRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.InsertSnapshotRequest} InsertSnapshotRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InsertSnapshotRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InsertSnapshotRequest message. + * @function verify + * @memberof google.cloud.compute.v1.InsertSnapshotRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InsertSnapshotRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + 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.snapshotResource != null && message.hasOwnProperty("snapshotResource")) { + var error = $root.google.cloud.compute.v1.Snapshot.verify(message.snapshotResource); + if (error) + return "snapshotResource." + error; + } + return null; + }; + + /** + * Creates an InsertSnapshotRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.InsertSnapshotRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.InsertSnapshotRequest} InsertSnapshotRequest + */ + InsertSnapshotRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.InsertSnapshotRequest) + return object; + var message = new $root.google.cloud.compute.v1.InsertSnapshotRequest(); + if (object.project != null) + message.project = String(object.project); + if (object.requestId != null) + message.requestId = String(object.requestId); + if (object.snapshotResource != null) { + if (typeof object.snapshotResource !== "object") + throw TypeError(".google.cloud.compute.v1.InsertSnapshotRequest.snapshotResource: object expected"); + message.snapshotResource = $root.google.cloud.compute.v1.Snapshot.fromObject(object.snapshotResource); + } + return message; + }; + + /** + * Creates a plain object from an InsertSnapshotRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.InsertSnapshotRequest + * @static + * @param {google.cloud.compute.v1.InsertSnapshotRequest} message InsertSnapshotRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InsertSnapshotRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.project = ""; + object.snapshotResource = null; + } + 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; + if (message.snapshotResource != null && message.hasOwnProperty("snapshotResource")) + object.snapshotResource = $root.google.cloud.compute.v1.Snapshot.toObject(message.snapshotResource, options); + return object; + }; + + /** + * Converts this InsertSnapshotRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.InsertSnapshotRequest + * @instance + * @returns {Object.} JSON object + */ + InsertSnapshotRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return InsertSnapshotRequest; + })(); + v1.InsertSslCertificateRequest = (function() { /** @@ -149410,6 +153437,7 @@ * @property {string|null} [minCpuPlatform] Instance minCpuPlatform * @property {string|null} [name] Instance name * @property {Array.|null} [networkInterfaces] Instance networkInterfaces + * @property {google.cloud.compute.v1.INetworkPerformanceConfig|null} [networkPerformanceConfig] Instance networkPerformanceConfig * @property {string|null} [privateIpv6GoogleAccess] Instance privateIpv6GoogleAccess * @property {google.cloud.compute.v1.IReservationAffinity|null} [reservationAffinity] Instance reservationAffinity * @property {Array.|null} [resourcePolicies] Instance resourcePolicies @@ -149419,6 +153447,8 @@ * @property {Array.|null} [serviceAccounts] Instance serviceAccounts * @property {google.cloud.compute.v1.IShieldedInstanceConfig|null} [shieldedInstanceConfig] Instance shieldedInstanceConfig * @property {google.cloud.compute.v1.IShieldedInstanceIntegrityPolicy|null} [shieldedInstanceIntegrityPolicy] Instance shieldedInstanceIntegrityPolicy + * @property {string|null} [sourceMachineImage] Instance sourceMachineImage + * @property {google.cloud.compute.v1.ICustomerEncryptionKey|null} [sourceMachineImageEncryptionKey] Instance sourceMachineImageEncryptionKey * @property {boolean|null} [startRestricted] Instance startRestricted * @property {string|null} [status] Instance status * @property {string|null} [statusMessage] Instance statusMessage @@ -149639,6 +153669,14 @@ */ Instance.prototype.networkInterfaces = $util.emptyArray; + /** + * Instance networkPerformanceConfig. + * @member {google.cloud.compute.v1.INetworkPerformanceConfig|null|undefined} networkPerformanceConfig + * @memberof google.cloud.compute.v1.Instance + * @instance + */ + Instance.prototype.networkPerformanceConfig = null; + /** * Instance privateIpv6GoogleAccess. * @member {string|null|undefined} privateIpv6GoogleAccess @@ -149711,6 +153749,22 @@ */ Instance.prototype.shieldedInstanceIntegrityPolicy = null; + /** + * Instance sourceMachineImage. + * @member {string|null|undefined} sourceMachineImage + * @memberof google.cloud.compute.v1.Instance + * @instance + */ + Instance.prototype.sourceMachineImage = null; + + /** + * Instance sourceMachineImageEncryptionKey. + * @member {google.cloud.compute.v1.ICustomerEncryptionKey|null|undefined} sourceMachineImageEncryptionKey + * @memberof google.cloud.compute.v1.Instance + * @instance + */ + Instance.prototype.sourceMachineImageEncryptionKey = null; + /** * Instance startRestricted. * @member {boolean|null|undefined} startRestricted @@ -149974,6 +154028,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * Instance _networkPerformanceConfig. + * @member {"networkPerformanceConfig"|undefined} _networkPerformanceConfig + * @memberof google.cloud.compute.v1.Instance + * @instance + */ + Object.defineProperty(Instance.prototype, "_networkPerformanceConfig", { + get: $util.oneOfGetter($oneOfFields = ["networkPerformanceConfig"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Instance _privateIpv6GoogleAccess. * @member {"privateIpv6GoogleAccess"|undefined} _privateIpv6GoogleAccess @@ -150051,6 +154116,28 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * Instance _sourceMachineImage. + * @member {"sourceMachineImage"|undefined} _sourceMachineImage + * @memberof google.cloud.compute.v1.Instance + * @instance + */ + Object.defineProperty(Instance.prototype, "_sourceMachineImage", { + get: $util.oneOfGetter($oneOfFields = ["sourceMachineImage"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Instance _sourceMachineImageEncryptionKey. + * @member {"sourceMachineImageEncryptionKey"|undefined} _sourceMachineImageEncryptionKey + * @memberof google.cloud.compute.v1.Instance + * @instance + */ + Object.defineProperty(Instance.prototype, "_sourceMachineImageEncryptionKey", { + get: $util.oneOfGetter($oneOfFields = ["sourceMachineImageEncryptionKey"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Instance _startRestricted. * @member {"startRestricted"|undefined} _startRestricted @@ -150142,6 +154229,8 @@ writer.uint32(/* id 3744684, wireType 2 =*/29957474).string(message.zone); if (message.shieldedInstanceConfig != null && Object.hasOwnProperty.call(message, "shieldedInstanceConfig")) $root.google.cloud.compute.v1.ShieldedInstanceConfig.encode(message.shieldedInstanceConfig, writer.uint32(/* id 12862901, wireType 2 =*/102903210).fork()).ldelim(); + if (message.sourceMachineImage != null && Object.hasOwnProperty.call(message, "sourceMachineImage")) + writer.uint32(/* id 21769791, wireType 2 =*/174158330).string(message.sourceMachineImage); if (message.resourcePolicies != null && message.resourcePolicies.length) for (var i = 0; i < message.resourcePolicies.length; ++i) writer.uint32(/* id 22220385, wireType 2 =*/177763082).string(message.resourcePolicies[i]); @@ -150167,6 +154256,8 @@ writer.uint32(/* id 178124825, wireType 2 =*/1424998602).string(message.labelFingerprint); if (message.status != null && Object.hasOwnProperty.call(message, "status")) writer.uint32(/* id 181260274, wireType 2 =*/1450082194).string(message.status); + if (message.sourceMachineImageEncryptionKey != null && Object.hasOwnProperty.call(message, "sourceMachineImageEncryptionKey")) + $root.google.cloud.compute.v1.CustomerEncryptionKey.encode(message.sourceMachineImageEncryptionKey, writer.uint32(/* id 192839075, wireType 2 =*/1542712602).fork()).ldelim(); if (message.machineType != null && Object.hasOwnProperty.call(message, "machineType")) writer.uint32(/* id 227711026, wireType 2 =*/1821688210).string(message.machineType); if (message.fingerprint != null && Object.hasOwnProperty.call(message, "fingerprint")) @@ -150186,6 +154277,8 @@ writer.uint32(/* id 356275337, wireType 2 =*/2850202698).string(message.lastSuspendedTimestamp); if (message.scheduling != null && Object.hasOwnProperty.call(message, "scheduling")) $root.google.cloud.compute.v1.Scheduling.encode(message.scheduling, writer.uint32(/* id 386688404, wireType 2 =*/3093507234).fork()).ldelim(); + if (message.networkPerformanceConfig != null && Object.hasOwnProperty.call(message, "networkPerformanceConfig")) + $root.google.cloud.compute.v1.NetworkPerformanceConfig.encode(message.networkPerformanceConfig, writer.uint32(/* id 398330850, wireType 2 =*/3186646802).fork()).ldelim(); if (message.advancedMachineFeatures != null && Object.hasOwnProperty.call(message, "advancedMachineFeatures")) $root.google.cloud.compute.v1.AdvancedMachineFeatures.encode(message.advancedMachineFeatures, writer.uint32(/* id 409646002, wireType 2 =*/3277168018).fork()).ldelim(); if (message.cpuPlatform != null && Object.hasOwnProperty.call(message, "cpuPlatform")) @@ -150343,6 +154436,9 @@ message.networkInterfaces = []; message.networkInterfaces.push($root.google.cloud.compute.v1.NetworkInterface.decode(reader, reader.uint32())); break; + case 398330850: + message.networkPerformanceConfig = $root.google.cloud.compute.v1.NetworkPerformanceConfig.decode(reader, reader.uint32()); + break; case 48277006: message.privateIpv6GoogleAccess = reader.string(); break; @@ -150374,6 +154470,12 @@ case 163696919: message.shieldedInstanceIntegrityPolicy = $root.google.cloud.compute.v1.ShieldedInstanceIntegrityPolicy.decode(reader, reader.uint32()); break; + case 21769791: + message.sourceMachineImage = reader.string(); + break; + case 192839075: + message.sourceMachineImageEncryptionKey = $root.google.cloud.compute.v1.CustomerEncryptionKey.decode(reader, reader.uint32()); + break; case 123693144: message.startRestricted = reader.bool(); break; @@ -150572,6 +154674,14 @@ return "networkInterfaces." + error; } } + if (message.networkPerformanceConfig != null && message.hasOwnProperty("networkPerformanceConfig")) { + properties._networkPerformanceConfig = 1; + { + var error = $root.google.cloud.compute.v1.NetworkPerformanceConfig.verify(message.networkPerformanceConfig); + if (error) + return "networkPerformanceConfig." + error; + } + } if (message.privateIpv6GoogleAccess != null && message.hasOwnProperty("privateIpv6GoogleAccess")) { properties._privateIpv6GoogleAccess = 1; if (!$util.isString(message.privateIpv6GoogleAccess)) @@ -150635,6 +154745,19 @@ return "shieldedInstanceIntegrityPolicy." + error; } } + if (message.sourceMachineImage != null && message.hasOwnProperty("sourceMachineImage")) { + properties._sourceMachineImage = 1; + if (!$util.isString(message.sourceMachineImage)) + return "sourceMachineImage: string expected"; + } + if (message.sourceMachineImageEncryptionKey != null && message.hasOwnProperty("sourceMachineImageEncryptionKey")) { + properties._sourceMachineImageEncryptionKey = 1; + { + var error = $root.google.cloud.compute.v1.CustomerEncryptionKey.verify(message.sourceMachineImageEncryptionKey); + if (error) + return "sourceMachineImageEncryptionKey." + error; + } + } if (message.startRestricted != null && message.hasOwnProperty("startRestricted")) { properties._startRestricted = 1; if (typeof message.startRestricted !== "boolean") @@ -150774,6 +154897,11 @@ message.networkInterfaces[i] = $root.google.cloud.compute.v1.NetworkInterface.fromObject(object.networkInterfaces[i]); } } + if (object.networkPerformanceConfig != null) { + if (typeof object.networkPerformanceConfig !== "object") + throw TypeError(".google.cloud.compute.v1.Instance.networkPerformanceConfig: object expected"); + message.networkPerformanceConfig = $root.google.cloud.compute.v1.NetworkPerformanceConfig.fromObject(object.networkPerformanceConfig); + } if (object.privateIpv6GoogleAccess != null) message.privateIpv6GoogleAccess = String(object.privateIpv6GoogleAccess); if (object.reservationAffinity != null) { @@ -150817,6 +154945,13 @@ throw TypeError(".google.cloud.compute.v1.Instance.shieldedInstanceIntegrityPolicy: object expected"); message.shieldedInstanceIntegrityPolicy = $root.google.cloud.compute.v1.ShieldedInstanceIntegrityPolicy.fromObject(object.shieldedInstanceIntegrityPolicy); } + if (object.sourceMachineImage != null) + message.sourceMachineImage = String(object.sourceMachineImage); + if (object.sourceMachineImageEncryptionKey != null) { + if (typeof object.sourceMachineImageEncryptionKey !== "object") + throw TypeError(".google.cloud.compute.v1.Instance.sourceMachineImageEncryptionKey: object expected"); + message.sourceMachineImageEncryptionKey = $root.google.cloud.compute.v1.CustomerEncryptionKey.fromObject(object.sourceMachineImageEncryptionKey); + } if (object.startRestricted != null) message.startRestricted = Boolean(object.startRestricted); if (object.status != null) @@ -150888,6 +155023,11 @@ if (options.oneofs) object._shieldedInstanceConfig = "shieldedInstanceConfig"; } + if (message.sourceMachineImage != null && message.hasOwnProperty("sourceMachineImage")) { + object.sourceMachineImage = message.sourceMachineImage; + if (options.oneofs) + object._sourceMachineImage = "sourceMachineImage"; + } if (message.resourcePolicies && message.resourcePolicies.length) { object.resourcePolicies = []; for (var j = 0; j < message.resourcePolicies.length; ++j) @@ -150943,6 +155083,11 @@ if (options.oneofs) object._status = "status"; } + if (message.sourceMachineImageEncryptionKey != null && message.hasOwnProperty("sourceMachineImageEncryptionKey")) { + object.sourceMachineImageEncryptionKey = $root.google.cloud.compute.v1.CustomerEncryptionKey.toObject(message.sourceMachineImageEncryptionKey, options); + if (options.oneofs) + object._sourceMachineImageEncryptionKey = "sourceMachineImageEncryptionKey"; + } if (message.machineType != null && message.hasOwnProperty("machineType")) { object.machineType = message.machineType; if (options.oneofs) @@ -150988,6 +155133,11 @@ if (options.oneofs) object._scheduling = "scheduling"; } + if (message.networkPerformanceConfig != null && message.hasOwnProperty("networkPerformanceConfig")) { + object.networkPerformanceConfig = $root.google.cloud.compute.v1.NetworkPerformanceConfig.toObject(message.networkPerformanceConfig, options); + if (options.oneofs) + object._networkPerformanceConfig = "networkPerformanceConfig"; + } if (message.advancedMachineFeatures != null && message.hasOwnProperty("advancedMachineFeatures")) { object.advancedMachineFeatures = $root.google.cloud.compute.v1.AdvancedMachineFeatures.toObject(message.advancedMachineFeatures, options); if (options.oneofs) @@ -154168,6 +158318,10 @@ * @property {number|null} [recreating] InstanceGroupManagerActionsSummary recreating * @property {number|null} [refreshing] InstanceGroupManagerActionsSummary refreshing * @property {number|null} [restarting] InstanceGroupManagerActionsSummary restarting + * @property {number|null} [resuming] InstanceGroupManagerActionsSummary resuming + * @property {number|null} [starting] InstanceGroupManagerActionsSummary starting + * @property {number|null} [stopping] InstanceGroupManagerActionsSummary stopping + * @property {number|null} [suspending] InstanceGroupManagerActionsSummary suspending * @property {number|null} [verifying] InstanceGroupManagerActionsSummary verifying */ @@ -154250,6 +158404,38 @@ */ InstanceGroupManagerActionsSummary.prototype.restarting = null; + /** + * InstanceGroupManagerActionsSummary resuming. + * @member {number|null|undefined} resuming + * @memberof google.cloud.compute.v1.InstanceGroupManagerActionsSummary + * @instance + */ + InstanceGroupManagerActionsSummary.prototype.resuming = null; + + /** + * InstanceGroupManagerActionsSummary starting. + * @member {number|null|undefined} starting + * @memberof google.cloud.compute.v1.InstanceGroupManagerActionsSummary + * @instance + */ + InstanceGroupManagerActionsSummary.prototype.starting = null; + + /** + * InstanceGroupManagerActionsSummary stopping. + * @member {number|null|undefined} stopping + * @memberof google.cloud.compute.v1.InstanceGroupManagerActionsSummary + * @instance + */ + InstanceGroupManagerActionsSummary.prototype.stopping = null; + + /** + * InstanceGroupManagerActionsSummary suspending. + * @member {number|null|undefined} suspending + * @memberof google.cloud.compute.v1.InstanceGroupManagerActionsSummary + * @instance + */ + InstanceGroupManagerActionsSummary.prototype.suspending = null; + /** * InstanceGroupManagerActionsSummary verifying. * @member {number|null|undefined} verifying @@ -154349,6 +158535,50 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * InstanceGroupManagerActionsSummary _resuming. + * @member {"resuming"|undefined} _resuming + * @memberof google.cloud.compute.v1.InstanceGroupManagerActionsSummary + * @instance + */ + Object.defineProperty(InstanceGroupManagerActionsSummary.prototype, "_resuming", { + get: $util.oneOfGetter($oneOfFields = ["resuming"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * InstanceGroupManagerActionsSummary _starting. + * @member {"starting"|undefined} _starting + * @memberof google.cloud.compute.v1.InstanceGroupManagerActionsSummary + * @instance + */ + Object.defineProperty(InstanceGroupManagerActionsSummary.prototype, "_starting", { + get: $util.oneOfGetter($oneOfFields = ["starting"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * InstanceGroupManagerActionsSummary _stopping. + * @member {"stopping"|undefined} _stopping + * @memberof google.cloud.compute.v1.InstanceGroupManagerActionsSummary + * @instance + */ + Object.defineProperty(InstanceGroupManagerActionsSummary.prototype, "_stopping", { + get: $util.oneOfGetter($oneOfFields = ["stopping"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * InstanceGroupManagerActionsSummary _suspending. + * @member {"suspending"|undefined} _suspending + * @memberof google.cloud.compute.v1.InstanceGroupManagerActionsSummary + * @instance + */ + Object.defineProperty(InstanceGroupManagerActionsSummary.prototype, "_suspending", { + get: $util.oneOfGetter($oneOfFields = ["suspending"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * InstanceGroupManagerActionsSummary _verifying. * @member {"verifying"|undefined} _verifying @@ -154386,10 +158616,18 @@ writer = $Writer.create(); if (message.none != null && Object.hasOwnProperty.call(message, "none")) writer.uint32(/* id 3387192, wireType 0 =*/27097536).int32(message.none); + if (message.suspending != null && Object.hasOwnProperty.call(message, "suspending")) + writer.uint32(/* id 29113894, wireType 0 =*/232911152).int32(message.suspending); + if (message.stopping != null && Object.hasOwnProperty.call(message, "stopping")) + writer.uint32(/* id 105035892, wireType 0 =*/840287136).int32(message.stopping); + if (message.resuming != null && Object.hasOwnProperty.call(message, "resuming")) + writer.uint32(/* id 201100714, wireType 0 =*/1608805712).int32(message.resuming); if (message.creating != null && Object.hasOwnProperty.call(message, "creating")) writer.uint32(/* id 209809081, wireType 0 =*/1678472648).int32(message.creating); if (message.refreshing != null && Object.hasOwnProperty.call(message, "refreshing")) writer.uint32(/* id 215044903, wireType 0 =*/1720359224).int32(message.refreshing); + if (message.starting != null && Object.hasOwnProperty.call(message, "starting")) + writer.uint32(/* id 243064896, wireType 0 =*/1944519168).int32(message.starting); if (message.deleting != null && Object.hasOwnProperty.call(message, "deleting")) writer.uint32(/* id 282846120, wireType 0 =*/2262768960).int32(message.deleting); if (message.recreating != null && Object.hasOwnProperty.call(message, "recreating")) @@ -154460,6 +158698,18 @@ case 372312947: message.restarting = reader.int32(); break; + case 201100714: + message.resuming = reader.int32(); + break; + case 243064896: + message.starting = reader.int32(); + break; + case 105035892: + message.stopping = reader.int32(); + break; + case 29113894: + message.suspending = reader.int32(); + break; case 451612873: message.verifying = reader.int32(); break; @@ -154539,6 +158789,26 @@ if (!$util.isInteger(message.restarting)) return "restarting: integer expected"; } + if (message.resuming != null && message.hasOwnProperty("resuming")) { + properties._resuming = 1; + if (!$util.isInteger(message.resuming)) + return "resuming: integer expected"; + } + if (message.starting != null && message.hasOwnProperty("starting")) { + properties._starting = 1; + if (!$util.isInteger(message.starting)) + return "starting: integer expected"; + } + if (message.stopping != null && message.hasOwnProperty("stopping")) { + properties._stopping = 1; + if (!$util.isInteger(message.stopping)) + return "stopping: integer expected"; + } + if (message.suspending != null && message.hasOwnProperty("suspending")) { + properties._suspending = 1; + if (!$util.isInteger(message.suspending)) + return "suspending: integer expected"; + } if (message.verifying != null && message.hasOwnProperty("verifying")) { properties._verifying = 1; if (!$util.isInteger(message.verifying)) @@ -154575,6 +158845,14 @@ message.refreshing = object.refreshing | 0; if (object.restarting != null) message.restarting = object.restarting | 0; + if (object.resuming != null) + message.resuming = object.resuming | 0; + if (object.starting != null) + message.starting = object.starting | 0; + if (object.stopping != null) + message.stopping = object.stopping | 0; + if (object.suspending != null) + message.suspending = object.suspending | 0; if (object.verifying != null) message.verifying = object.verifying | 0; return message; @@ -154598,6 +158876,21 @@ if (options.oneofs) object._none = "none"; } + if (message.suspending != null && message.hasOwnProperty("suspending")) { + object.suspending = message.suspending; + if (options.oneofs) + object._suspending = "suspending"; + } + if (message.stopping != null && message.hasOwnProperty("stopping")) { + object.stopping = message.stopping; + if (options.oneofs) + object._stopping = "stopping"; + } + if (message.resuming != null && message.hasOwnProperty("resuming")) { + object.resuming = message.resuming; + if (options.oneofs) + object._resuming = "resuming"; + } if (message.creating != null && message.hasOwnProperty("creating")) { object.creating = message.creating; if (options.oneofs) @@ -154608,6 +158901,11 @@ if (options.oneofs) object._refreshing = "refreshing"; } + if (message.starting != null && message.hasOwnProperty("starting")) { + object.starting = message.starting; + if (options.oneofs) + object._starting = "starting"; + } if (message.deleting != null && message.hasOwnProperty("deleting")) { object.deleting = message.deleting; if (options.oneofs) @@ -156759,6 +161057,7 @@ * @property {google.cloud.compute.v1.IFixedOrPercent|null} [maxSurge] InstanceGroupManagerUpdatePolicy maxSurge * @property {google.cloud.compute.v1.IFixedOrPercent|null} [maxUnavailable] InstanceGroupManagerUpdatePolicy maxUnavailable * @property {string|null} [minimalAction] InstanceGroupManagerUpdatePolicy minimalAction + * @property {string|null} [mostDisruptiveAllowedAction] InstanceGroupManagerUpdatePolicy mostDisruptiveAllowedAction * @property {string|null} [replacementMethod] InstanceGroupManagerUpdatePolicy replacementMethod * @property {string|null} [type] InstanceGroupManagerUpdatePolicy type */ @@ -156810,6 +161109,14 @@ */ InstanceGroupManagerUpdatePolicy.prototype.minimalAction = null; + /** + * InstanceGroupManagerUpdatePolicy mostDisruptiveAllowedAction. + * @member {string|null|undefined} mostDisruptiveAllowedAction + * @memberof google.cloud.compute.v1.InstanceGroupManagerUpdatePolicy + * @instance + */ + InstanceGroupManagerUpdatePolicy.prototype.mostDisruptiveAllowedAction = null; + /** * InstanceGroupManagerUpdatePolicy replacementMethod. * @member {string|null|undefined} replacementMethod @@ -156873,6 +161180,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * InstanceGroupManagerUpdatePolicy _mostDisruptiveAllowedAction. + * @member {"mostDisruptiveAllowedAction"|undefined} _mostDisruptiveAllowedAction + * @memberof google.cloud.compute.v1.InstanceGroupManagerUpdatePolicy + * @instance + */ + Object.defineProperty(InstanceGroupManagerUpdatePolicy.prototype, "_mostDisruptiveAllowedAction", { + get: $util.oneOfGetter($oneOfFields = ["mostDisruptiveAllowedAction"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * InstanceGroupManagerUpdatePolicy _replacementMethod. * @member {"replacementMethod"|undefined} _replacementMethod @@ -156921,6 +161239,8 @@ writer = $Writer.create(); if (message.type != null && Object.hasOwnProperty.call(message, "type")) writer.uint32(/* id 3575610, wireType 2 =*/28604882).string(message.type); + if (message.mostDisruptiveAllowedAction != null && Object.hasOwnProperty.call(message, "mostDisruptiveAllowedAction")) + writer.uint32(/* id 66103053, wireType 2 =*/528824426).string(message.mostDisruptiveAllowedAction); if (message.minimalAction != null && Object.hasOwnProperty.call(message, "minimalAction")) writer.uint32(/* id 270567060, wireType 2 =*/2164536482).string(message.minimalAction); if (message.instanceRedistributionType != null && Object.hasOwnProperty.call(message, "instanceRedistributionType")) @@ -156977,6 +161297,9 @@ case 270567060: message.minimalAction = reader.string(); break; + case 66103053: + message.mostDisruptiveAllowedAction = reader.string(); + break; case 505931694: message.replacementMethod = reader.string(); break; @@ -157045,6 +161368,11 @@ if (!$util.isString(message.minimalAction)) return "minimalAction: string expected"; } + if (message.mostDisruptiveAllowedAction != null && message.hasOwnProperty("mostDisruptiveAllowedAction")) { + properties._mostDisruptiveAllowedAction = 1; + if (!$util.isString(message.mostDisruptiveAllowedAction)) + return "mostDisruptiveAllowedAction: string expected"; + } if (message.replacementMethod != null && message.hasOwnProperty("replacementMethod")) { properties._replacementMethod = 1; if (!$util.isString(message.replacementMethod)) @@ -157084,6 +161412,8 @@ } if (object.minimalAction != null) message.minimalAction = String(object.minimalAction); + if (object.mostDisruptiveAllowedAction != null) + message.mostDisruptiveAllowedAction = String(object.mostDisruptiveAllowedAction); if (object.replacementMethod != null) message.replacementMethod = String(object.replacementMethod); if (object.type != null) @@ -157109,6 +161439,11 @@ if (options.oneofs) object._type = "type"; } + if (message.mostDisruptiveAllowedAction != null && message.hasOwnProperty("mostDisruptiveAllowedAction")) { + object.mostDisruptiveAllowedAction = message.mostDisruptiveAllowedAction; + if (options.oneofs) + object._mostDisruptiveAllowedAction = "mostDisruptiveAllowedAction"; + } if (message.minimalAction != null && message.hasOwnProperty("minimalAction")) { object.minimalAction = message.minimalAction; if (options.oneofs) @@ -163661,6 +167996,10 @@ * @property {number} RECREATING=287278572 RECREATING value * @property {number} REFRESHING=163266343 REFRESHING value * @property {number} RESTARTING=320534387 RESTARTING value + * @property {number} RESUMING=446856618 RESUMING value + * @property {number} STARTING=488820800 STARTING value + * @property {number} STOPPING=350791796 STOPPING value + * @property {number} SUSPENDING=514206246 SUSPENDING value * @property {number} VERIFYING=16982185 VERIFYING value */ InstanceManagedByIgmErrorInstanceActionDetails.Action = (function() { @@ -163674,6 +168013,10 @@ values[valuesById[287278572] = "RECREATING"] = 287278572; values[valuesById[163266343] = "REFRESHING"] = 163266343; values[valuesById[320534387] = "RESTARTING"] = 320534387; + values[valuesById[446856618] = "RESUMING"] = 446856618; + values[valuesById[488820800] = "STARTING"] = 488820800; + values[valuesById[350791796] = "STOPPING"] = 350791796; + values[valuesById[514206246] = "SUSPENDING"] = 514206246; values[valuesById[16982185] = "VERIFYING"] = 16982185; return values; })(); @@ -164182,8 +168525,10 @@ * @property {google.cloud.compute.v1.IMetadata|null} [metadata] InstanceProperties metadata * @property {string|null} [minCpuPlatform] InstanceProperties minCpuPlatform * @property {Array.|null} [networkInterfaces] InstanceProperties networkInterfaces + * @property {google.cloud.compute.v1.INetworkPerformanceConfig|null} [networkPerformanceConfig] InstanceProperties networkPerformanceConfig * @property {string|null} [privateIpv6GoogleAccess] InstanceProperties privateIpv6GoogleAccess * @property {google.cloud.compute.v1.IReservationAffinity|null} [reservationAffinity] InstanceProperties reservationAffinity + * @property {Object.|null} [resourceManagerTags] InstanceProperties resourceManagerTags * @property {Array.|null} [resourcePolicies] InstanceProperties resourcePolicies * @property {google.cloud.compute.v1.IScheduling|null} [scheduling] InstanceProperties scheduling * @property {Array.|null} [serviceAccounts] InstanceProperties serviceAccounts @@ -164204,6 +168549,7 @@ this.guestAccelerators = []; this.labels = {}; this.networkInterfaces = []; + this.resourceManagerTags = {}; this.resourcePolicies = []; this.serviceAccounts = []; if (properties) @@ -164300,6 +168646,14 @@ */ InstanceProperties.prototype.networkInterfaces = $util.emptyArray; + /** + * InstanceProperties networkPerformanceConfig. + * @member {google.cloud.compute.v1.INetworkPerformanceConfig|null|undefined} networkPerformanceConfig + * @memberof google.cloud.compute.v1.InstanceProperties + * @instance + */ + InstanceProperties.prototype.networkPerformanceConfig = null; + /** * InstanceProperties privateIpv6GoogleAccess. * @member {string|null|undefined} privateIpv6GoogleAccess @@ -164316,6 +168670,14 @@ */ InstanceProperties.prototype.reservationAffinity = null; + /** + * InstanceProperties resourceManagerTags. + * @member {Object.} resourceManagerTags + * @memberof google.cloud.compute.v1.InstanceProperties + * @instance + */ + InstanceProperties.prototype.resourceManagerTags = $util.emptyObject; + /** * InstanceProperties resourcePolicies. * @member {Array.} resourcePolicies @@ -164436,6 +168798,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * InstanceProperties _networkPerformanceConfig. + * @member {"networkPerformanceConfig"|undefined} _networkPerformanceConfig + * @memberof google.cloud.compute.v1.InstanceProperties + * @instance + */ + Object.defineProperty(InstanceProperties.prototype, "_networkPerformanceConfig", { + get: $util.oneOfGetter($oneOfFields = ["networkPerformanceConfig"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * InstanceProperties _privateIpv6GoogleAccess. * @member {"privateIpv6GoogleAccess"|undefined} _privateIpv6GoogleAccess @@ -164541,8 +168914,13 @@ if (message.serviceAccounts != null && message.serviceAccounts.length) for (var i = 0; i < message.serviceAccounts.length; ++i) $root.google.cloud.compute.v1.ServiceAccount.encode(message.serviceAccounts[i], writer.uint32(/* id 277537328, wireType 2 =*/2220298626).fork()).ldelim(); + if (message.resourceManagerTags != null && Object.hasOwnProperty.call(message, "resourceManagerTags")) + for (var keys = Object.keys(message.resourceManagerTags), i = 0; i < keys.length; ++i) + writer.uint32(/* id 377671164, wireType 2 =*/3021369314).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.resourceManagerTags[keys[i]]).ldelim(); if (message.scheduling != null && Object.hasOwnProperty.call(message, "scheduling")) $root.google.cloud.compute.v1.Scheduling.encode(message.scheduling, writer.uint32(/* id 386688404, wireType 2 =*/3093507234).fork()).ldelim(); + if (message.networkPerformanceConfig != null && Object.hasOwnProperty.call(message, "networkPerformanceConfig")) + $root.google.cloud.compute.v1.NetworkPerformanceConfig.encode(message.networkPerformanceConfig, writer.uint32(/* id 398330850, wireType 2 =*/3186646802).fork()).ldelim(); if (message.advancedMachineFeatures != null && Object.hasOwnProperty.call(message, "advancedMachineFeatures")) $root.google.cloud.compute.v1.AdvancedMachineFeatures.encode(message.advancedMachineFeatures, writer.uint32(/* id 409646002, wireType 2 =*/3277168018).fork()).ldelim(); if (message.description != null && Object.hasOwnProperty.call(message, "description")) @@ -164649,12 +169027,37 @@ message.networkInterfaces = []; message.networkInterfaces.push($root.google.cloud.compute.v1.NetworkInterface.decode(reader, reader.uint32())); break; + case 398330850: + message.networkPerformanceConfig = $root.google.cloud.compute.v1.NetworkPerformanceConfig.decode(reader, reader.uint32()); + break; case 48277006: message.privateIpv6GoogleAccess = reader.string(); break; case 157850683: message.reservationAffinity = $root.google.cloud.compute.v1.ReservationAffinity.decode(reader, reader.uint32()); break; + case 377671164: + if (message.resourceManagerTags === $util.emptyObject) + message.resourceManagerTags = {}; + 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.resourceManagerTags[key] = value; + break; case 22220385: if (!(message.resourcePolicies && message.resourcePolicies.length)) message.resourcePolicies = []; @@ -164789,6 +169192,14 @@ return "networkInterfaces." + error; } } + if (message.networkPerformanceConfig != null && message.hasOwnProperty("networkPerformanceConfig")) { + properties._networkPerformanceConfig = 1; + { + var error = $root.google.cloud.compute.v1.NetworkPerformanceConfig.verify(message.networkPerformanceConfig); + if (error) + return "networkPerformanceConfig." + error; + } + } if (message.privateIpv6GoogleAccess != null && message.hasOwnProperty("privateIpv6GoogleAccess")) { properties._privateIpv6GoogleAccess = 1; if (!$util.isString(message.privateIpv6GoogleAccess)) @@ -164802,6 +169213,14 @@ return "reservationAffinity." + error; } } + if (message.resourceManagerTags != null && message.hasOwnProperty("resourceManagerTags")) { + if (!$util.isObject(message.resourceManagerTags)) + return "resourceManagerTags: object expected"; + var key = Object.keys(message.resourceManagerTags); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.resourceManagerTags[key[i]])) + return "resourceManagerTags: string{k:string} expected"; + } if (message.resourcePolicies != null && message.hasOwnProperty("resourcePolicies")) { if (!Array.isArray(message.resourcePolicies)) return "resourcePolicies: array expected"; @@ -164917,6 +169336,11 @@ message.networkInterfaces[i] = $root.google.cloud.compute.v1.NetworkInterface.fromObject(object.networkInterfaces[i]); } } + if (object.networkPerformanceConfig != null) { + if (typeof object.networkPerformanceConfig !== "object") + throw TypeError(".google.cloud.compute.v1.InstanceProperties.networkPerformanceConfig: object expected"); + message.networkPerformanceConfig = $root.google.cloud.compute.v1.NetworkPerformanceConfig.fromObject(object.networkPerformanceConfig); + } if (object.privateIpv6GoogleAccess != null) message.privateIpv6GoogleAccess = String(object.privateIpv6GoogleAccess); if (object.reservationAffinity != null) { @@ -164924,6 +169348,13 @@ throw TypeError(".google.cloud.compute.v1.InstanceProperties.reservationAffinity: object expected"); message.reservationAffinity = $root.google.cloud.compute.v1.ReservationAffinity.fromObject(object.reservationAffinity); } + if (object.resourceManagerTags) { + if (typeof object.resourceManagerTags !== "object") + throw TypeError(".google.cloud.compute.v1.InstanceProperties.resourceManagerTags: object expected"); + message.resourceManagerTags = {}; + for (var keys = Object.keys(object.resourceManagerTags), i = 0; i < keys.length; ++i) + message.resourceManagerTags[keys[i]] = String(object.resourceManagerTags[keys[i]]); + } if (object.resourcePolicies) { if (!Array.isArray(object.resourcePolicies)) throw TypeError(".google.cloud.compute.v1.InstanceProperties.resourcePolicies: array expected"); @@ -164979,8 +169410,10 @@ object.serviceAccounts = []; object.guestAccelerators = []; } - if (options.objects || options.defaults) + if (options.objects || options.defaults) { + object.resourceManagerTags = {}; object.labels = {}; + } if (message.tags != null && message.hasOwnProperty("tags")) { object.tags = $root.google.cloud.compute.v1.Tags.toObject(message.tags, options); if (options.oneofs) @@ -165036,11 +169469,22 @@ for (var j = 0; j < message.serviceAccounts.length; ++j) object.serviceAccounts[j] = $root.google.cloud.compute.v1.ServiceAccount.toObject(message.serviceAccounts[j], options); } + var keys2; + if (message.resourceManagerTags && (keys2 = Object.keys(message.resourceManagerTags)).length) { + object.resourceManagerTags = {}; + for (var j = 0; j < keys2.length; ++j) + object.resourceManagerTags[keys2[j]] = message.resourceManagerTags[keys2[j]]; + } if (message.scheduling != null && message.hasOwnProperty("scheduling")) { object.scheduling = $root.google.cloud.compute.v1.Scheduling.toObject(message.scheduling, options); if (options.oneofs) object._scheduling = "scheduling"; } + if (message.networkPerformanceConfig != null && message.hasOwnProperty("networkPerformanceConfig")) { + object.networkPerformanceConfig = $root.google.cloud.compute.v1.NetworkPerformanceConfig.toObject(message.networkPerformanceConfig, options); + if (options.oneofs) + object._networkPerformanceConfig = "networkPerformanceConfig"; + } if (message.advancedMachineFeatures != null && message.hasOwnProperty("advancedMachineFeatures")) { object.advancedMachineFeatures = $root.google.cloud.compute.v1.AdvancedMachineFeatures.toObject(message.advancedMachineFeatures, options); if (options.oneofs) @@ -165066,7 +169510,6 @@ if (options.oneofs) object._confidentialInstanceConfig = "confidentialInstanceConfig"; } - var keys2; if (message.labels && (keys2 = Object.keys(message.labels)).length) { object.labels = {}; for (var j = 0; j < keys2.length; ++j) @@ -170558,10 +175001,15 @@ * @interface IInterconnectAttachment * @property {boolean|null} [adminEnabled] InterconnectAttachment adminEnabled * @property {string|null} [bandwidth] InterconnectAttachment bandwidth + * @property {Array.|null} [candidateIpv6Subnets] InterconnectAttachment candidateIpv6Subnets * @property {Array.|null} [candidateSubnets] InterconnectAttachment candidateSubnets * @property {string|null} [cloudRouterIpAddress] InterconnectAttachment cloudRouterIpAddress + * @property {string|null} [cloudRouterIpv6Address] InterconnectAttachment cloudRouterIpv6Address + * @property {string|null} [cloudRouterIpv6InterfaceId] InterconnectAttachment cloudRouterIpv6InterfaceId * @property {string|null} [creationTimestamp] InterconnectAttachment creationTimestamp * @property {string|null} [customerRouterIpAddress] InterconnectAttachment customerRouterIpAddress + * @property {string|null} [customerRouterIpv6Address] InterconnectAttachment customerRouterIpv6Address + * @property {string|null} [customerRouterIpv6InterfaceId] InterconnectAttachment customerRouterIpv6InterfaceId * @property {number|null} [dataplaneVersion] InterconnectAttachment dataplaneVersion * @property {string|null} [description] InterconnectAttachment description * @property {string|null} [edgeAvailabilityDomain] InterconnectAttachment edgeAvailabilityDomain @@ -170582,6 +175030,7 @@ * @property {string|null} [router] InterconnectAttachment router * @property {boolean|null} [satisfiesPzs] InterconnectAttachment satisfiesPzs * @property {string|null} [selfLink] InterconnectAttachment selfLink + * @property {string|null} [stackType] InterconnectAttachment stackType * @property {string|null} [state] InterconnectAttachment state * @property {string|null} [type] InterconnectAttachment type * @property {number|null} [vlanTag8021q] InterconnectAttachment vlanTag8021q @@ -170596,6 +175045,7 @@ * @param {google.cloud.compute.v1.IInterconnectAttachment=} [properties] Properties to set */ function InterconnectAttachment(properties) { + this.candidateIpv6Subnets = []; this.candidateSubnets = []; this.ipsecInternalAddresses = []; if (properties) @@ -170620,6 +175070,14 @@ */ InterconnectAttachment.prototype.bandwidth = null; + /** + * InterconnectAttachment candidateIpv6Subnets. + * @member {Array.} candidateIpv6Subnets + * @memberof google.cloud.compute.v1.InterconnectAttachment + * @instance + */ + InterconnectAttachment.prototype.candidateIpv6Subnets = $util.emptyArray; + /** * InterconnectAttachment candidateSubnets. * @member {Array.} candidateSubnets @@ -170636,6 +175094,22 @@ */ InterconnectAttachment.prototype.cloudRouterIpAddress = null; + /** + * InterconnectAttachment cloudRouterIpv6Address. + * @member {string|null|undefined} cloudRouterIpv6Address + * @memberof google.cloud.compute.v1.InterconnectAttachment + * @instance + */ + InterconnectAttachment.prototype.cloudRouterIpv6Address = null; + + /** + * InterconnectAttachment cloudRouterIpv6InterfaceId. + * @member {string|null|undefined} cloudRouterIpv6InterfaceId + * @memberof google.cloud.compute.v1.InterconnectAttachment + * @instance + */ + InterconnectAttachment.prototype.cloudRouterIpv6InterfaceId = null; + /** * InterconnectAttachment creationTimestamp. * @member {string|null|undefined} creationTimestamp @@ -170652,6 +175126,22 @@ */ InterconnectAttachment.prototype.customerRouterIpAddress = null; + /** + * InterconnectAttachment customerRouterIpv6Address. + * @member {string|null|undefined} customerRouterIpv6Address + * @memberof google.cloud.compute.v1.InterconnectAttachment + * @instance + */ + InterconnectAttachment.prototype.customerRouterIpv6Address = null; + + /** + * InterconnectAttachment customerRouterIpv6InterfaceId. + * @member {string|null|undefined} customerRouterIpv6InterfaceId + * @memberof google.cloud.compute.v1.InterconnectAttachment + * @instance + */ + InterconnectAttachment.prototype.customerRouterIpv6InterfaceId = null; + /** * InterconnectAttachment dataplaneVersion. * @member {number|null|undefined} dataplaneVersion @@ -170812,6 +175302,14 @@ */ InterconnectAttachment.prototype.selfLink = null; + /** + * InterconnectAttachment stackType. + * @member {string|null|undefined} stackType + * @memberof google.cloud.compute.v1.InterconnectAttachment + * @instance + */ + InterconnectAttachment.prototype.stackType = null; + /** * InterconnectAttachment state. * @member {string|null|undefined} state @@ -170872,6 +175370,28 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * InterconnectAttachment _cloudRouterIpv6Address. + * @member {"cloudRouterIpv6Address"|undefined} _cloudRouterIpv6Address + * @memberof google.cloud.compute.v1.InterconnectAttachment + * @instance + */ + Object.defineProperty(InterconnectAttachment.prototype, "_cloudRouterIpv6Address", { + get: $util.oneOfGetter($oneOfFields = ["cloudRouterIpv6Address"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * InterconnectAttachment _cloudRouterIpv6InterfaceId. + * @member {"cloudRouterIpv6InterfaceId"|undefined} _cloudRouterIpv6InterfaceId + * @memberof google.cloud.compute.v1.InterconnectAttachment + * @instance + */ + Object.defineProperty(InterconnectAttachment.prototype, "_cloudRouterIpv6InterfaceId", { + get: $util.oneOfGetter($oneOfFields = ["cloudRouterIpv6InterfaceId"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * InterconnectAttachment _creationTimestamp. * @member {"creationTimestamp"|undefined} _creationTimestamp @@ -170894,6 +175414,28 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * InterconnectAttachment _customerRouterIpv6Address. + * @member {"customerRouterIpv6Address"|undefined} _customerRouterIpv6Address + * @memberof google.cloud.compute.v1.InterconnectAttachment + * @instance + */ + Object.defineProperty(InterconnectAttachment.prototype, "_customerRouterIpv6Address", { + get: $util.oneOfGetter($oneOfFields = ["customerRouterIpv6Address"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * InterconnectAttachment _customerRouterIpv6InterfaceId. + * @member {"customerRouterIpv6InterfaceId"|undefined} _customerRouterIpv6InterfaceId + * @memberof google.cloud.compute.v1.InterconnectAttachment + * @instance + */ + Object.defineProperty(InterconnectAttachment.prototype, "_customerRouterIpv6InterfaceId", { + get: $util.oneOfGetter($oneOfFields = ["customerRouterIpv6InterfaceId"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * InterconnectAttachment _dataplaneVersion. * @member {"dataplaneVersion"|undefined} _dataplaneVersion @@ -171103,6 +175645,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * InterconnectAttachment _stackType. + * @member {"stackType"|undefined} _stackType + * @memberof google.cloud.compute.v1.InterconnectAttachment + * @instance + */ + Object.defineProperty(InterconnectAttachment.prototype, "_stackType", { + get: $util.oneOfGetter($oneOfFields = ["stackType"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * InterconnectAttachment _state. * @member {"state"|undefined} _state @@ -171176,6 +175729,9 @@ writer.uint32(/* id 34920075, wireType 0 =*/279360600).int32(message.dataplaneVersion); if (message.partnerMetadata != null && Object.hasOwnProperty.call(message, "partnerMetadata")) $root.google.cloud.compute.v1.InterconnectAttachmentPartnerMetadata.encode(message.partnerMetadata, writer.uint32(/* id 65908934, wireType 2 =*/527271474).fork()).ldelim(); + if (message.candidateIpv6Subnets != null && message.candidateIpv6Subnets.length) + for (var i = 0; i < message.candidateIpv6Subnets.length; ++i) + writer.uint32(/* id 70682522, wireType 2 =*/565460178).string(message.candidateIpv6Subnets[i]); if (message.edgeAvailabilityDomain != null && Object.hasOwnProperty.call(message, "edgeAvailabilityDomain")) writer.uint32(/* id 71289510, wireType 2 =*/570316082).string(message.edgeAvailabilityDomain); if (message.encryption != null && Object.hasOwnProperty.call(message, "encryption")) @@ -171201,23 +175757,33 @@ writer.uint32(/* id 237842938, wireType 2 =*/1902743506).string(message.candidateSubnets[i]); if (message.cloudRouterIpAddress != null && Object.hasOwnProperty.call(message, "cloudRouterIpAddress")) writer.uint32(/* id 287392776, wireType 2 =*/2299142210).string(message.cloudRouterIpAddress); + if (message.customerRouterIpv6Address != null && Object.hasOwnProperty.call(message, "customerRouterIpv6Address")) + writer.uint32(/* id 290127089, wireType 2 =*/2321016714).string(message.customerRouterIpv6Address); if (message.customerRouterIpAddress != null && Object.hasOwnProperty.call(message, "customerRouterIpAddress")) writer.uint32(/* id 332475761, wireType 2 =*/2659806090).string(message.customerRouterIpAddress); + if (message.customerRouterIpv6InterfaceId != null && Object.hasOwnProperty.call(message, "customerRouterIpv6InterfaceId")) + writer.uint32(/* id 380994308, wireType 2 =*/3047954466).string(message.customerRouterIpv6InterfaceId); if (message.ipsecInternalAddresses != null && message.ipsecInternalAddresses.length) for (var i = 0; i < message.ipsecInternalAddresses.length; ++i) writer.uint32(/* id 407648565, wireType 2 =*/3261188522).string(message.ipsecInternalAddresses[i]); if (message.description != null && Object.hasOwnProperty.call(message, "description")) writer.uint32(/* id 422937596, wireType 2 =*/3383500770).string(message.description); + if (message.stackType != null && Object.hasOwnProperty.call(message, "stackType")) + writer.uint32(/* id 425908881, wireType 2 =*/3407271050).string(message.stackType); if (message.partnerAsn != null && Object.hasOwnProperty.call(message, "partnerAsn")) writer.uint32(/* id 438166149, wireType 0 =*/3505329192).int64(message.partnerAsn); if (message.pairingKey != null && Object.hasOwnProperty.call(message, "pairingKey")) writer.uint32(/* id 439695464, wireType 2 =*/3517563714).string(message.pairingKey); if (message.adminEnabled != null && Object.hasOwnProperty.call(message, "adminEnabled")) writer.uint32(/* id 445675089, wireType 0 =*/3565400712).bool(message.adminEnabled); + if (message.cloudRouterIpv6Address != null && Object.hasOwnProperty.call(message, "cloudRouterIpv6Address")) + writer.uint32(/* id 451922376, wireType 2 =*/3615379010).string(message.cloudRouterIpv6Address); if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) writer.uint32(/* id 456214797, wireType 2 =*/3649718378).string(message.selfLink); if (message.satisfiesPzs != null && Object.hasOwnProperty.call(message, "satisfiesPzs")) writer.uint32(/* id 480964267, wireType 0 =*/3847714136).bool(message.satisfiesPzs); + if (message.cloudRouterIpv6InterfaceId != null && Object.hasOwnProperty.call(message, "cloudRouterIpv6InterfaceId")) + writer.uint32(/* id 521282701, wireType 2 =*/4170261610).string(message.cloudRouterIpv6InterfaceId); if (message.googleReferenceId != null && Object.hasOwnProperty.call(message, "googleReferenceId")) writer.uint32(/* id 534944469, wireType 2 =*/4279555754).string(message.googleReferenceId); return writer; @@ -171260,6 +175826,11 @@ case 181715121: message.bandwidth = reader.string(); break; + case 70682522: + if (!(message.candidateIpv6Subnets && message.candidateIpv6Subnets.length)) + message.candidateIpv6Subnets = []; + message.candidateIpv6Subnets.push(reader.string()); + break; case 237842938: if (!(message.candidateSubnets && message.candidateSubnets.length)) message.candidateSubnets = []; @@ -171268,12 +175839,24 @@ case 287392776: message.cloudRouterIpAddress = reader.string(); break; + case 451922376: + message.cloudRouterIpv6Address = reader.string(); + break; + case 521282701: + message.cloudRouterIpv6InterfaceId = reader.string(); + break; case 30525366: message.creationTimestamp = reader.string(); break; case 332475761: message.customerRouterIpAddress = reader.string(); break; + case 290127089: + message.customerRouterIpv6Address = reader.string(); + break; + case 380994308: + message.customerRouterIpv6InterfaceId = reader.string(); + break; case 34920075: message.dataplaneVersion = reader.int32(); break; @@ -171336,6 +175919,9 @@ case 456214797: message.selfLink = reader.string(); break; + case 425908881: + message.stackType = reader.string(); + break; case 109757585: message.state = reader.string(); break; @@ -171391,6 +175977,13 @@ if (!$util.isString(message.bandwidth)) return "bandwidth: string expected"; } + if (message.candidateIpv6Subnets != null && message.hasOwnProperty("candidateIpv6Subnets")) { + if (!Array.isArray(message.candidateIpv6Subnets)) + return "candidateIpv6Subnets: array expected"; + for (var i = 0; i < message.candidateIpv6Subnets.length; ++i) + if (!$util.isString(message.candidateIpv6Subnets[i])) + return "candidateIpv6Subnets: string[] expected"; + } if (message.candidateSubnets != null && message.hasOwnProperty("candidateSubnets")) { if (!Array.isArray(message.candidateSubnets)) return "candidateSubnets: array expected"; @@ -171403,6 +175996,16 @@ if (!$util.isString(message.cloudRouterIpAddress)) return "cloudRouterIpAddress: string expected"; } + if (message.cloudRouterIpv6Address != null && message.hasOwnProperty("cloudRouterIpv6Address")) { + properties._cloudRouterIpv6Address = 1; + if (!$util.isString(message.cloudRouterIpv6Address)) + return "cloudRouterIpv6Address: string expected"; + } + if (message.cloudRouterIpv6InterfaceId != null && message.hasOwnProperty("cloudRouterIpv6InterfaceId")) { + properties._cloudRouterIpv6InterfaceId = 1; + if (!$util.isString(message.cloudRouterIpv6InterfaceId)) + return "cloudRouterIpv6InterfaceId: string expected"; + } if (message.creationTimestamp != null && message.hasOwnProperty("creationTimestamp")) { properties._creationTimestamp = 1; if (!$util.isString(message.creationTimestamp)) @@ -171413,6 +176016,16 @@ if (!$util.isString(message.customerRouterIpAddress)) return "customerRouterIpAddress: string expected"; } + if (message.customerRouterIpv6Address != null && message.hasOwnProperty("customerRouterIpv6Address")) { + properties._customerRouterIpv6Address = 1; + if (!$util.isString(message.customerRouterIpv6Address)) + return "customerRouterIpv6Address: string expected"; + } + if (message.customerRouterIpv6InterfaceId != null && message.hasOwnProperty("customerRouterIpv6InterfaceId")) { + properties._customerRouterIpv6InterfaceId = 1; + if (!$util.isString(message.customerRouterIpv6InterfaceId)) + return "customerRouterIpv6InterfaceId: string expected"; + } if (message.dataplaneVersion != null && message.hasOwnProperty("dataplaneVersion")) { properties._dataplaneVersion = 1; if (!$util.isInteger(message.dataplaneVersion)) @@ -171521,6 +176134,11 @@ if (!$util.isString(message.selfLink)) return "selfLink: string expected"; } + if (message.stackType != null && message.hasOwnProperty("stackType")) { + properties._stackType = 1; + if (!$util.isString(message.stackType)) + return "stackType: string expected"; + } if (message.state != null && message.hasOwnProperty("state")) { properties._state = 1; if (!$util.isString(message.state)) @@ -171555,6 +176173,13 @@ message.adminEnabled = Boolean(object.adminEnabled); if (object.bandwidth != null) message.bandwidth = String(object.bandwidth); + if (object.candidateIpv6Subnets) { + if (!Array.isArray(object.candidateIpv6Subnets)) + throw TypeError(".google.cloud.compute.v1.InterconnectAttachment.candidateIpv6Subnets: array expected"); + message.candidateIpv6Subnets = []; + for (var i = 0; i < object.candidateIpv6Subnets.length; ++i) + message.candidateIpv6Subnets[i] = String(object.candidateIpv6Subnets[i]); + } if (object.candidateSubnets) { if (!Array.isArray(object.candidateSubnets)) throw TypeError(".google.cloud.compute.v1.InterconnectAttachment.candidateSubnets: array expected"); @@ -171564,10 +176189,18 @@ } if (object.cloudRouterIpAddress != null) message.cloudRouterIpAddress = String(object.cloudRouterIpAddress); + if (object.cloudRouterIpv6Address != null) + message.cloudRouterIpv6Address = String(object.cloudRouterIpv6Address); + if (object.cloudRouterIpv6InterfaceId != null) + message.cloudRouterIpv6InterfaceId = String(object.cloudRouterIpv6InterfaceId); if (object.creationTimestamp != null) message.creationTimestamp = String(object.creationTimestamp); if (object.customerRouterIpAddress != null) message.customerRouterIpAddress = String(object.customerRouterIpAddress); + if (object.customerRouterIpv6Address != null) + message.customerRouterIpv6Address = String(object.customerRouterIpv6Address); + if (object.customerRouterIpv6InterfaceId != null) + message.customerRouterIpv6InterfaceId = String(object.customerRouterIpv6InterfaceId); if (object.dataplaneVersion != null) message.dataplaneVersion = object.dataplaneVersion | 0; if (object.description != null) @@ -171633,6 +176266,8 @@ message.satisfiesPzs = Boolean(object.satisfiesPzs); if (object.selfLink != null) message.selfLink = String(object.selfLink); + if (object.stackType != null) + message.stackType = String(object.stackType); if (object.state != null) message.state = String(object.state); if (object.type != null) @@ -171656,6 +176291,7 @@ options = {}; var object = {}; if (options.arrays || options.defaults) { + object.candidateIpv6Subnets = []; object.candidateSubnets = []; object.ipsecInternalAddresses = []; } @@ -171702,6 +176338,11 @@ if (options.oneofs) object._partnerMetadata = "partnerMetadata"; } + if (message.candidateIpv6Subnets && message.candidateIpv6Subnets.length) { + object.candidateIpv6Subnets = []; + for (var j = 0; j < message.candidateIpv6Subnets.length; ++j) + object.candidateIpv6Subnets[j] = message.candidateIpv6Subnets[j]; + } if (message.edgeAvailabilityDomain != null && message.hasOwnProperty("edgeAvailabilityDomain")) { object.edgeAvailabilityDomain = message.edgeAvailabilityDomain; if (options.oneofs) @@ -171762,11 +176403,21 @@ if (options.oneofs) object._cloudRouterIpAddress = "cloudRouterIpAddress"; } + if (message.customerRouterIpv6Address != null && message.hasOwnProperty("customerRouterIpv6Address")) { + object.customerRouterIpv6Address = message.customerRouterIpv6Address; + if (options.oneofs) + object._customerRouterIpv6Address = "customerRouterIpv6Address"; + } if (message.customerRouterIpAddress != null && message.hasOwnProperty("customerRouterIpAddress")) { object.customerRouterIpAddress = message.customerRouterIpAddress; if (options.oneofs) object._customerRouterIpAddress = "customerRouterIpAddress"; } + if (message.customerRouterIpv6InterfaceId != null && message.hasOwnProperty("customerRouterIpv6InterfaceId")) { + object.customerRouterIpv6InterfaceId = message.customerRouterIpv6InterfaceId; + if (options.oneofs) + object._customerRouterIpv6InterfaceId = "customerRouterIpv6InterfaceId"; + } if (message.ipsecInternalAddresses && message.ipsecInternalAddresses.length) { object.ipsecInternalAddresses = []; for (var j = 0; j < message.ipsecInternalAddresses.length; ++j) @@ -171777,6 +176428,11 @@ if (options.oneofs) object._description = "description"; } + if (message.stackType != null && message.hasOwnProperty("stackType")) { + object.stackType = message.stackType; + if (options.oneofs) + object._stackType = "stackType"; + } if (message.partnerAsn != null && message.hasOwnProperty("partnerAsn")) { if (typeof message.partnerAsn === "number") object.partnerAsn = options.longs === String ? String(message.partnerAsn) : message.partnerAsn; @@ -171795,6 +176451,11 @@ if (options.oneofs) object._adminEnabled = "adminEnabled"; } + if (message.cloudRouterIpv6Address != null && message.hasOwnProperty("cloudRouterIpv6Address")) { + object.cloudRouterIpv6Address = message.cloudRouterIpv6Address; + if (options.oneofs) + object._cloudRouterIpv6Address = "cloudRouterIpv6Address"; + } if (message.selfLink != null && message.hasOwnProperty("selfLink")) { object.selfLink = message.selfLink; if (options.oneofs) @@ -171805,6 +176466,11 @@ if (options.oneofs) object._satisfiesPzs = "satisfiesPzs"; } + if (message.cloudRouterIpv6InterfaceId != null && message.hasOwnProperty("cloudRouterIpv6InterfaceId")) { + object.cloudRouterIpv6InterfaceId = message.cloudRouterIpv6InterfaceId; + if (options.oneofs) + object._cloudRouterIpv6InterfaceId = "cloudRouterIpv6InterfaceId"; + } if (message.googleReferenceId != null && message.hasOwnProperty("googleReferenceId")) { object.googleReferenceId = message.googleReferenceId; if (options.oneofs) @@ -171910,6 +176576,22 @@ return values; })(); + /** + * StackType enum. + * @name google.cloud.compute.v1.InterconnectAttachment.StackType + * @enum {number} + * @property {number} UNDEFINED_STACK_TYPE=0 UNDEFINED_STACK_TYPE value + * @property {number} IPV4_IPV6=22197249 IPV4_IPV6 value + * @property {number} IPV4_ONLY=22373798 IPV4_ONLY value + */ + InterconnectAttachment.StackType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_STACK_TYPE"] = 0; + values[valuesById[22197249] = "IPV4_IPV6"] = 22197249; + values[valuesById[22373798] = "IPV4_ONLY"] = 22373798; + return values; + })(); + /** * State enum. * @name google.cloud.compute.v1.InterconnectAttachment.State @@ -193537,30 +198219,29 @@ return ListLicensesRequest; })(); - v1.ListMachineTypesRequest = (function() { + v1.ListMachineImagesRequest = (function() { /** - * Properties of a ListMachineTypesRequest. + * Properties of a ListMachineImagesRequest. * @memberof google.cloud.compute.v1 - * @interface IListMachineTypesRequest - * @property {string|null} [filter] ListMachineTypesRequest filter - * @property {number|null} [maxResults] ListMachineTypesRequest maxResults - * @property {string|null} [orderBy] ListMachineTypesRequest orderBy - * @property {string|null} [pageToken] ListMachineTypesRequest pageToken - * @property {string|null} [project] ListMachineTypesRequest project - * @property {boolean|null} [returnPartialSuccess] ListMachineTypesRequest returnPartialSuccess - * @property {string|null} [zone] ListMachineTypesRequest zone + * @interface IListMachineImagesRequest + * @property {string|null} [filter] ListMachineImagesRequest filter + * @property {number|null} [maxResults] ListMachineImagesRequest maxResults + * @property {string|null} [orderBy] ListMachineImagesRequest orderBy + * @property {string|null} [pageToken] ListMachineImagesRequest pageToken + * @property {string|null} [project] ListMachineImagesRequest project + * @property {boolean|null} [returnPartialSuccess] ListMachineImagesRequest returnPartialSuccess */ /** - * Constructs a new ListMachineTypesRequest. + * Constructs a new ListMachineImagesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a ListMachineTypesRequest. - * @implements IListMachineTypesRequest + * @classdesc Represents a ListMachineImagesRequest. + * @implements IListMachineImagesRequest * @constructor - * @param {google.cloud.compute.v1.IListMachineTypesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IListMachineImagesRequest=} [properties] Properties to set */ - function ListMachineTypesRequest(properties) { + function ListMachineImagesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -193568,145 +198249,135 @@ } /** - * ListMachineTypesRequest filter. + * ListMachineImagesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.ListMachineTypesRequest + * @memberof google.cloud.compute.v1.ListMachineImagesRequest * @instance */ - ListMachineTypesRequest.prototype.filter = null; + ListMachineImagesRequest.prototype.filter = null; /** - * ListMachineTypesRequest maxResults. + * ListMachineImagesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.ListMachineTypesRequest + * @memberof google.cloud.compute.v1.ListMachineImagesRequest * @instance */ - ListMachineTypesRequest.prototype.maxResults = null; + ListMachineImagesRequest.prototype.maxResults = null; /** - * ListMachineTypesRequest orderBy. + * ListMachineImagesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.ListMachineTypesRequest + * @memberof google.cloud.compute.v1.ListMachineImagesRequest * @instance */ - ListMachineTypesRequest.prototype.orderBy = null; + ListMachineImagesRequest.prototype.orderBy = null; /** - * ListMachineTypesRequest pageToken. + * ListMachineImagesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.ListMachineTypesRequest + * @memberof google.cloud.compute.v1.ListMachineImagesRequest * @instance */ - ListMachineTypesRequest.prototype.pageToken = null; + ListMachineImagesRequest.prototype.pageToken = null; /** - * ListMachineTypesRequest project. + * ListMachineImagesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.ListMachineTypesRequest + * @memberof google.cloud.compute.v1.ListMachineImagesRequest * @instance */ - ListMachineTypesRequest.prototype.project = ""; + ListMachineImagesRequest.prototype.project = ""; /** - * ListMachineTypesRequest returnPartialSuccess. + * ListMachineImagesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.ListMachineTypesRequest - * @instance - */ - ListMachineTypesRequest.prototype.returnPartialSuccess = null; - - /** - * ListMachineTypesRequest zone. - * @member {string} zone - * @memberof google.cloud.compute.v1.ListMachineTypesRequest + * @memberof google.cloud.compute.v1.ListMachineImagesRequest * @instance */ - ListMachineTypesRequest.prototype.zone = ""; + ListMachineImagesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * ListMachineTypesRequest _filter. + * ListMachineImagesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.ListMachineTypesRequest + * @memberof google.cloud.compute.v1.ListMachineImagesRequest * @instance */ - Object.defineProperty(ListMachineTypesRequest.prototype, "_filter", { + Object.defineProperty(ListMachineImagesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListMachineTypesRequest _maxResults. + * ListMachineImagesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.ListMachineTypesRequest + * @memberof google.cloud.compute.v1.ListMachineImagesRequest * @instance */ - Object.defineProperty(ListMachineTypesRequest.prototype, "_maxResults", { + Object.defineProperty(ListMachineImagesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListMachineTypesRequest _orderBy. + * ListMachineImagesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.ListMachineTypesRequest + * @memberof google.cloud.compute.v1.ListMachineImagesRequest * @instance */ - Object.defineProperty(ListMachineTypesRequest.prototype, "_orderBy", { + Object.defineProperty(ListMachineImagesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListMachineTypesRequest _pageToken. + * ListMachineImagesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.ListMachineTypesRequest + * @memberof google.cloud.compute.v1.ListMachineImagesRequest * @instance */ - Object.defineProperty(ListMachineTypesRequest.prototype, "_pageToken", { + Object.defineProperty(ListMachineImagesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * ListMachineTypesRequest _returnPartialSuccess. + * ListMachineImagesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.ListMachineTypesRequest + * @memberof google.cloud.compute.v1.ListMachineImagesRequest * @instance */ - Object.defineProperty(ListMachineTypesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(ListMachineImagesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ListMachineTypesRequest instance using the specified properties. + * Creates a new ListMachineImagesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.ListMachineTypesRequest + * @memberof google.cloud.compute.v1.ListMachineImagesRequest * @static - * @param {google.cloud.compute.v1.IListMachineTypesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.ListMachineTypesRequest} ListMachineTypesRequest instance + * @param {google.cloud.compute.v1.IListMachineImagesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListMachineImagesRequest} ListMachineImagesRequest instance */ - ListMachineTypesRequest.create = function create(properties) { - return new ListMachineTypesRequest(properties); + ListMachineImagesRequest.create = function create(properties) { + return new ListMachineImagesRequest(properties); }; /** - * Encodes the specified ListMachineTypesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListMachineTypesRequest.verify|verify} messages. + * Encodes the specified ListMachineImagesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListMachineImagesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.ListMachineTypesRequest + * @memberof google.cloud.compute.v1.ListMachineImagesRequest * @static - * @param {google.cloud.compute.v1.IListMachineTypesRequest} message ListMachineTypesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListMachineImagesRequest} message ListMachineImagesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListMachineTypesRequest.encode = function encode(message, writer) { + ListMachineImagesRequest.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.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")) @@ -193723,33 +198394,420 @@ }; /** - * Encodes the specified ListMachineTypesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListMachineTypesRequest.verify|verify} messages. + * Encodes the specified ListMachineImagesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListMachineImagesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.ListMachineTypesRequest + * @memberof google.cloud.compute.v1.ListMachineImagesRequest * @static - * @param {google.cloud.compute.v1.IListMachineTypesRequest} message ListMachineTypesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IListMachineImagesRequest} message ListMachineImagesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListMachineTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListMachineImagesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListMachineTypesRequest message from the specified reader or buffer. + * Decodes a ListMachineImagesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.ListMachineTypesRequest + * @memberof google.cloud.compute.v1.ListMachineImagesRequest * @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.ListMachineTypesRequest} ListMachineTypesRequest + * @returns {google.cloud.compute.v1.ListMachineImagesRequest} ListMachineImagesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListMachineTypesRequest.decode = function decode(reader, length) { + ListMachineImagesRequest.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.ListMachineTypesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.ListMachineImagesRequest(); + 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 517198390: + message.returnPartialSuccess = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListMachineImagesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.ListMachineImagesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.ListMachineImagesRequest} ListMachineImagesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListMachineImagesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListMachineImagesRequest message. + * @function verify + * @memberof google.cloud.compute.v1.ListMachineImagesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListMachineImagesRequest.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.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { + properties._returnPartialSuccess = 1; + if (typeof message.returnPartialSuccess !== "boolean") + return "returnPartialSuccess: boolean expected"; + } + return null; + }; + + /** + * Creates a ListMachineImagesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.ListMachineImagesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.ListMachineImagesRequest} ListMachineImagesRequest + */ + ListMachineImagesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListMachineImagesRequest) + return object; + var message = new $root.google.cloud.compute.v1.ListMachineImagesRequest(); + 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.returnPartialSuccess != null) + message.returnPartialSuccess = Boolean(object.returnPartialSuccess); + return message; + }; + + /** + * Creates a plain object from a ListMachineImagesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.ListMachineImagesRequest + * @static + * @param {google.cloud.compute.v1.ListMachineImagesRequest} message ListMachineImagesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListMachineImagesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + 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.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 ListMachineImagesRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.ListMachineImagesRequest + * @instance + * @returns {Object.} JSON object + */ + ListMachineImagesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListMachineImagesRequest; + })(); + + v1.ListMachineTypesRequest = (function() { + + /** + * Properties of a ListMachineTypesRequest. + * @memberof google.cloud.compute.v1 + * @interface IListMachineTypesRequest + * @property {string|null} [filter] ListMachineTypesRequest filter + * @property {number|null} [maxResults] ListMachineTypesRequest maxResults + * @property {string|null} [orderBy] ListMachineTypesRequest orderBy + * @property {string|null} [pageToken] ListMachineTypesRequest pageToken + * @property {string|null} [project] ListMachineTypesRequest project + * @property {boolean|null} [returnPartialSuccess] ListMachineTypesRequest returnPartialSuccess + * @property {string|null} [zone] ListMachineTypesRequest zone + */ + + /** + * Constructs a new ListMachineTypesRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a ListMachineTypesRequest. + * @implements IListMachineTypesRequest + * @constructor + * @param {google.cloud.compute.v1.IListMachineTypesRequest=} [properties] Properties to set + */ + function ListMachineTypesRequest(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]]; + } + + /** + * ListMachineTypesRequest filter. + * @member {string|null|undefined} filter + * @memberof google.cloud.compute.v1.ListMachineTypesRequest + * @instance + */ + ListMachineTypesRequest.prototype.filter = null; + + /** + * ListMachineTypesRequest maxResults. + * @member {number|null|undefined} maxResults + * @memberof google.cloud.compute.v1.ListMachineTypesRequest + * @instance + */ + ListMachineTypesRequest.prototype.maxResults = null; + + /** + * ListMachineTypesRequest orderBy. + * @member {string|null|undefined} orderBy + * @memberof google.cloud.compute.v1.ListMachineTypesRequest + * @instance + */ + ListMachineTypesRequest.prototype.orderBy = null; + + /** + * ListMachineTypesRequest pageToken. + * @member {string|null|undefined} pageToken + * @memberof google.cloud.compute.v1.ListMachineTypesRequest + * @instance + */ + ListMachineTypesRequest.prototype.pageToken = null; + + /** + * ListMachineTypesRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.ListMachineTypesRequest + * @instance + */ + ListMachineTypesRequest.prototype.project = ""; + + /** + * ListMachineTypesRequest returnPartialSuccess. + * @member {boolean|null|undefined} returnPartialSuccess + * @memberof google.cloud.compute.v1.ListMachineTypesRequest + * @instance + */ + ListMachineTypesRequest.prototype.returnPartialSuccess = null; + + /** + * ListMachineTypesRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1.ListMachineTypesRequest + * @instance + */ + ListMachineTypesRequest.prototype.zone = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ListMachineTypesRequest _filter. + * @member {"filter"|undefined} _filter + * @memberof google.cloud.compute.v1.ListMachineTypesRequest + * @instance + */ + Object.defineProperty(ListMachineTypesRequest.prototype, "_filter", { + get: $util.oneOfGetter($oneOfFields = ["filter"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * ListMachineTypesRequest _maxResults. + * @member {"maxResults"|undefined} _maxResults + * @memberof google.cloud.compute.v1.ListMachineTypesRequest + * @instance + */ + Object.defineProperty(ListMachineTypesRequest.prototype, "_maxResults", { + get: $util.oneOfGetter($oneOfFields = ["maxResults"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * ListMachineTypesRequest _orderBy. + * @member {"orderBy"|undefined} _orderBy + * @memberof google.cloud.compute.v1.ListMachineTypesRequest + * @instance + */ + Object.defineProperty(ListMachineTypesRequest.prototype, "_orderBy", { + get: $util.oneOfGetter($oneOfFields = ["orderBy"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * ListMachineTypesRequest _pageToken. + * @member {"pageToken"|undefined} _pageToken + * @memberof google.cloud.compute.v1.ListMachineTypesRequest + * @instance + */ + Object.defineProperty(ListMachineTypesRequest.prototype, "_pageToken", { + get: $util.oneOfGetter($oneOfFields = ["pageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * ListMachineTypesRequest _returnPartialSuccess. + * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess + * @memberof google.cloud.compute.v1.ListMachineTypesRequest + * @instance + */ + Object.defineProperty(ListMachineTypesRequest.prototype, "_returnPartialSuccess", { + get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ListMachineTypesRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.ListMachineTypesRequest + * @static + * @param {google.cloud.compute.v1.IListMachineTypesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListMachineTypesRequest} ListMachineTypesRequest instance + */ + ListMachineTypesRequest.create = function create(properties) { + return new ListMachineTypesRequest(properties); + }; + + /** + * Encodes the specified ListMachineTypesRequest message. Does not implicitly {@link google.cloud.compute.v1.ListMachineTypesRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.ListMachineTypesRequest + * @static + * @param {google.cloud.compute.v1.IListMachineTypesRequest} message ListMachineTypesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListMachineTypesRequest.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.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.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 ListMachineTypesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListMachineTypesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.ListMachineTypesRequest + * @static + * @param {google.cloud.compute.v1.IListMachineTypesRequest} message ListMachineTypesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListMachineTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListMachineTypesRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.ListMachineTypesRequest + * @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.ListMachineTypesRequest} ListMachineTypesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListMachineTypesRequest.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.ListMachineTypesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -219841,6 +224899,1281 @@ return LogConfigDataAccessOptions; })(); + v1.MachineImage = (function() { + + /** + * Properties of a MachineImage. + * @memberof google.cloud.compute.v1 + * @interface IMachineImage + * @property {string|null} [creationTimestamp] MachineImage creationTimestamp + * @property {string|null} [description] MachineImage description + * @property {boolean|null} [guestFlush] MachineImage guestFlush + * @property {number|Long|null} [id] MachineImage id + * @property {google.cloud.compute.v1.IInstanceProperties|null} [instanceProperties] MachineImage instanceProperties + * @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} [satisfiesPzs] MachineImage satisfiesPzs + * @property {Array.|null} [savedDisks] MachineImage savedDisks + * @property {string|null} [selfLink] MachineImage selfLink + * @property {Array.|null} [sourceDiskEncryptionKeys] MachineImage sourceDiskEncryptionKeys + * @property {string|null} [sourceInstance] MachineImage sourceInstance + * @property {google.cloud.compute.v1.ISourceInstanceProperties|null} [sourceInstanceProperties] MachineImage sourceInstanceProperties + * @property {string|null} [status] MachineImage status + * @property {Array.|null} [storageLocations] MachineImage storageLocations + * @property {number|Long|null} [totalStorageBytes] MachineImage totalStorageBytes + */ + + /** + * Constructs a new MachineImage. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a MachineImage. + * @implements IMachineImage + * @constructor + * @param {google.cloud.compute.v1.IMachineImage=} [properties] Properties to set + */ + function MachineImage(properties) { + this.savedDisks = []; + this.sourceDiskEncryptionKeys = []; + this.storageLocations = []; + 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]]; + } + + /** + * MachineImage creationTimestamp. + * @member {string|null|undefined} creationTimestamp + * @memberof google.cloud.compute.v1.MachineImage + * @instance + */ + MachineImage.prototype.creationTimestamp = null; + + /** + * MachineImage description. + * @member {string|null|undefined} description + * @memberof google.cloud.compute.v1.MachineImage + * @instance + */ + MachineImage.prototype.description = null; + + /** + * MachineImage guestFlush. + * @member {boolean|null|undefined} guestFlush + * @memberof google.cloud.compute.v1.MachineImage + * @instance + */ + MachineImage.prototype.guestFlush = null; + + /** + * MachineImage id. + * @member {number|Long|null|undefined} id + * @memberof google.cloud.compute.v1.MachineImage + * @instance + */ + MachineImage.prototype.id = null; + + /** + * MachineImage instanceProperties. + * @member {google.cloud.compute.v1.IInstanceProperties|null|undefined} instanceProperties + * @memberof google.cloud.compute.v1.MachineImage + * @instance + */ + MachineImage.prototype.instanceProperties = null; + + /** + * MachineImage kind. + * @member {string|null|undefined} kind + * @memberof google.cloud.compute.v1.MachineImage + * @instance + */ + MachineImage.prototype.kind = null; + + /** + * MachineImage machineImageEncryptionKey. + * @member {google.cloud.compute.v1.ICustomerEncryptionKey|null|undefined} machineImageEncryptionKey + * @memberof google.cloud.compute.v1.MachineImage + * @instance + */ + MachineImage.prototype.machineImageEncryptionKey = null; + + /** + * MachineImage name. + * @member {string|null|undefined} name + * @memberof google.cloud.compute.v1.MachineImage + * @instance + */ + MachineImage.prototype.name = null; + + /** + * MachineImage satisfiesPzs. + * @member {boolean|null|undefined} satisfiesPzs + * @memberof google.cloud.compute.v1.MachineImage + * @instance + */ + MachineImage.prototype.satisfiesPzs = null; + + /** + * MachineImage savedDisks. + * @member {Array.} savedDisks + * @memberof google.cloud.compute.v1.MachineImage + * @instance + */ + MachineImage.prototype.savedDisks = $util.emptyArray; + + /** + * MachineImage selfLink. + * @member {string|null|undefined} selfLink + * @memberof google.cloud.compute.v1.MachineImage + * @instance + */ + MachineImage.prototype.selfLink = null; + + /** + * MachineImage sourceDiskEncryptionKeys. + * @member {Array.} sourceDiskEncryptionKeys + * @memberof google.cloud.compute.v1.MachineImage + * @instance + */ + MachineImage.prototype.sourceDiskEncryptionKeys = $util.emptyArray; + + /** + * MachineImage sourceInstance. + * @member {string|null|undefined} sourceInstance + * @memberof google.cloud.compute.v1.MachineImage + * @instance + */ + MachineImage.prototype.sourceInstance = null; + + /** + * MachineImage sourceInstanceProperties. + * @member {google.cloud.compute.v1.ISourceInstanceProperties|null|undefined} sourceInstanceProperties + * @memberof google.cloud.compute.v1.MachineImage + * @instance + */ + MachineImage.prototype.sourceInstanceProperties = null; + + /** + * MachineImage status. + * @member {string|null|undefined} status + * @memberof google.cloud.compute.v1.MachineImage + * @instance + */ + MachineImage.prototype.status = null; + + /** + * MachineImage storageLocations. + * @member {Array.} storageLocations + * @memberof google.cloud.compute.v1.MachineImage + * @instance + */ + MachineImage.prototype.storageLocations = $util.emptyArray; + + /** + * MachineImage totalStorageBytes. + * @member {number|Long|null|undefined} totalStorageBytes + * @memberof google.cloud.compute.v1.MachineImage + * @instance + */ + MachineImage.prototype.totalStorageBytes = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * MachineImage _creationTimestamp. + * @member {"creationTimestamp"|undefined} _creationTimestamp + * @memberof google.cloud.compute.v1.MachineImage + * @instance + */ + Object.defineProperty(MachineImage.prototype, "_creationTimestamp", { + get: $util.oneOfGetter($oneOfFields = ["creationTimestamp"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * MachineImage _description. + * @member {"description"|undefined} _description + * @memberof google.cloud.compute.v1.MachineImage + * @instance + */ + Object.defineProperty(MachineImage.prototype, "_description", { + get: $util.oneOfGetter($oneOfFields = ["description"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * MachineImage _guestFlush. + * @member {"guestFlush"|undefined} _guestFlush + * @memberof google.cloud.compute.v1.MachineImage + * @instance + */ + Object.defineProperty(MachineImage.prototype, "_guestFlush", { + get: $util.oneOfGetter($oneOfFields = ["guestFlush"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * MachineImage _id. + * @member {"id"|undefined} _id + * @memberof google.cloud.compute.v1.MachineImage + * @instance + */ + Object.defineProperty(MachineImage.prototype, "_id", { + get: $util.oneOfGetter($oneOfFields = ["id"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * MachineImage _instanceProperties. + * @member {"instanceProperties"|undefined} _instanceProperties + * @memberof google.cloud.compute.v1.MachineImage + * @instance + */ + Object.defineProperty(MachineImage.prototype, "_instanceProperties", { + get: $util.oneOfGetter($oneOfFields = ["instanceProperties"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * MachineImage _kind. + * @member {"kind"|undefined} _kind + * @memberof google.cloud.compute.v1.MachineImage + * @instance + */ + Object.defineProperty(MachineImage.prototype, "_kind", { + get: $util.oneOfGetter($oneOfFields = ["kind"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * MachineImage _machineImageEncryptionKey. + * @member {"machineImageEncryptionKey"|undefined} _machineImageEncryptionKey + * @memberof google.cloud.compute.v1.MachineImage + * @instance + */ + Object.defineProperty(MachineImage.prototype, "_machineImageEncryptionKey", { + get: $util.oneOfGetter($oneOfFields = ["machineImageEncryptionKey"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * MachineImage _name. + * @member {"name"|undefined} _name + * @memberof google.cloud.compute.v1.MachineImage + * @instance + */ + Object.defineProperty(MachineImage.prototype, "_name", { + get: $util.oneOfGetter($oneOfFields = ["name"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * MachineImage _satisfiesPzs. + * @member {"satisfiesPzs"|undefined} _satisfiesPzs + * @memberof google.cloud.compute.v1.MachineImage + * @instance + */ + Object.defineProperty(MachineImage.prototype, "_satisfiesPzs", { + get: $util.oneOfGetter($oneOfFields = ["satisfiesPzs"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * MachineImage _selfLink. + * @member {"selfLink"|undefined} _selfLink + * @memberof google.cloud.compute.v1.MachineImage + * @instance + */ + Object.defineProperty(MachineImage.prototype, "_selfLink", { + get: $util.oneOfGetter($oneOfFields = ["selfLink"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * MachineImage _sourceInstance. + * @member {"sourceInstance"|undefined} _sourceInstance + * @memberof google.cloud.compute.v1.MachineImage + * @instance + */ + Object.defineProperty(MachineImage.prototype, "_sourceInstance", { + get: $util.oneOfGetter($oneOfFields = ["sourceInstance"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * MachineImage _sourceInstanceProperties. + * @member {"sourceInstanceProperties"|undefined} _sourceInstanceProperties + * @memberof google.cloud.compute.v1.MachineImage + * @instance + */ + Object.defineProperty(MachineImage.prototype, "_sourceInstanceProperties", { + get: $util.oneOfGetter($oneOfFields = ["sourceInstanceProperties"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * MachineImage _status. + * @member {"status"|undefined} _status + * @memberof google.cloud.compute.v1.MachineImage + * @instance + */ + Object.defineProperty(MachineImage.prototype, "_status", { + get: $util.oneOfGetter($oneOfFields = ["status"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * MachineImage _totalStorageBytes. + * @member {"totalStorageBytes"|undefined} _totalStorageBytes + * @memberof google.cloud.compute.v1.MachineImage + * @instance + */ + Object.defineProperty(MachineImage.prototype, "_totalStorageBytes", { + get: $util.oneOfGetter($oneOfFields = ["totalStorageBytes"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new MachineImage instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.MachineImage + * @static + * @param {google.cloud.compute.v1.IMachineImage=} [properties] Properties to set + * @returns {google.cloud.compute.v1.MachineImage} MachineImage instance + */ + MachineImage.create = function create(properties) { + return new MachineImage(properties); + }; + + /** + * Encodes the specified MachineImage message. Does not implicitly {@link google.cloud.compute.v1.MachineImage.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.MachineImage + * @static + * @param {google.cloud.compute.v1.IMachineImage} message MachineImage message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MachineImage.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 3355, wireType 0 =*/26840).uint64(message.id); + if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) + writer.uint32(/* id 3292052, wireType 2 =*/26336418).string(message.kind); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 3373707, wireType 2 =*/26989658).string(message.name); + if (message.creationTimestamp != null && Object.hasOwnProperty.call(message, "creationTimestamp")) + writer.uint32(/* id 30525366, wireType 2 =*/244202930).string(message.creationTimestamp); + if (message.totalStorageBytes != null && Object.hasOwnProperty.call(message, "totalStorageBytes")) + writer.uint32(/* id 81855468, wireType 0 =*/654843744).int64(message.totalStorageBytes); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + writer.uint32(/* id 181260274, wireType 2 =*/1450082194).string(message.status); + if (message.instanceProperties != null && Object.hasOwnProperty.call(message, "instanceProperties")) + $root.google.cloud.compute.v1.InstanceProperties.encode(message.instanceProperties, writer.uint32(/* id 215355165, wireType 2 =*/1722841322).fork()).ldelim(); + if (message.storageLocations != null && message.storageLocations.length) + for (var i = 0; i < message.storageLocations.length; ++i) + writer.uint32(/* id 328005274, wireType 2 =*/2624042194).string(message.storageLocations[i]); + if (message.sourceDiskEncryptionKeys != null && message.sourceDiskEncryptionKeys.length) + for (var i = 0; i < message.sourceDiskEncryptionKeys.length; ++i) + $root.google.cloud.compute.v1.SourceDiskEncryptionKey.encode(message.sourceDiskEncryptionKeys[i], writer.uint32(/* id 370408498, wireType 2 =*/2963267986).fork()).ldelim(); + if (message.guestFlush != null && Object.hasOwnProperty.call(message, "guestFlush")) + writer.uint32(/* id 385550813, wireType 0 =*/3084406504).bool(message.guestFlush); + if (message.sourceInstance != null && Object.hasOwnProperty.call(message, "sourceInstance")) + writer.uint32(/* id 396315705, wireType 2 =*/3170525642).string(message.sourceInstance); + if (message.savedDisks != null && message.savedDisks.length) + for (var i = 0; i < message.savedDisks.length; ++i) + $root.google.cloud.compute.v1.SavedDisk.encode(message.savedDisks[i], writer.uint32(/* id 397424318, wireType 2 =*/3179394546).fork()).ldelim(); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 422937596, wireType 2 =*/3383500770).string(message.description); + if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) + 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.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")) + $root.google.cloud.compute.v1.CustomerEncryptionKey.encode(message.machineImageEncryptionKey, writer.uint32(/* id 528089087, wireType 2 =*/4224712698).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified MachineImage message, length delimited. Does not implicitly {@link google.cloud.compute.v1.MachineImage.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.MachineImage + * @static + * @param {google.cloud.compute.v1.IMachineImage} message MachineImage message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MachineImage.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MachineImage message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.MachineImage + * @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.MachineImage} MachineImage + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MachineImage.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.MachineImage(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 30525366: + message.creationTimestamp = reader.string(); + break; + case 422937596: + message.description = reader.string(); + break; + case 385550813: + message.guestFlush = reader.bool(); + break; + case 3355: + message.id = reader.uint64(); + break; + case 215355165: + message.instanceProperties = $root.google.cloud.compute.v1.InstanceProperties.decode(reader, reader.uint32()); + break; + case 3292052: + message.kind = reader.string(); + break; + case 528089087: + message.machineImageEncryptionKey = $root.google.cloud.compute.v1.CustomerEncryptionKey.decode(reader, reader.uint32()); + break; + case 3373707: + message.name = reader.string(); + break; + case 480964267: + message.satisfiesPzs = reader.bool(); + break; + case 397424318: + if (!(message.savedDisks && message.savedDisks.length)) + message.savedDisks = []; + message.savedDisks.push($root.google.cloud.compute.v1.SavedDisk.decode(reader, reader.uint32())); + break; + case 456214797: + message.selfLink = reader.string(); + break; + case 370408498: + if (!(message.sourceDiskEncryptionKeys && message.sourceDiskEncryptionKeys.length)) + message.sourceDiskEncryptionKeys = []; + message.sourceDiskEncryptionKeys.push($root.google.cloud.compute.v1.SourceDiskEncryptionKey.decode(reader, reader.uint32())); + break; + case 396315705: + message.sourceInstance = reader.string(); + break; + case 475195641: + message.sourceInstanceProperties = $root.google.cloud.compute.v1.SourceInstanceProperties.decode(reader, reader.uint32()); + break; + case 181260274: + message.status = reader.string(); + break; + case 328005274: + if (!(message.storageLocations && message.storageLocations.length)) + message.storageLocations = []; + message.storageLocations.push(reader.string()); + break; + case 81855468: + message.totalStorageBytes = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MachineImage message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.MachineImage + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.MachineImage} MachineImage + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MachineImage.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MachineImage message. + * @function verify + * @memberof google.cloud.compute.v1.MachineImage + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MachineImage.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.creationTimestamp != null && message.hasOwnProperty("creationTimestamp")) { + properties._creationTimestamp = 1; + if (!$util.isString(message.creationTimestamp)) + return "creationTimestamp: string expected"; + } + if (message.description != null && message.hasOwnProperty("description")) { + properties._description = 1; + if (!$util.isString(message.description)) + return "description: string expected"; + } + if (message.guestFlush != null && message.hasOwnProperty("guestFlush")) { + properties._guestFlush = 1; + if (typeof message.guestFlush !== "boolean") + return "guestFlush: boolean 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))) + return "id: integer|Long expected"; + } + if (message.instanceProperties != null && message.hasOwnProperty("instanceProperties")) { + properties._instanceProperties = 1; + { + var error = $root.google.cloud.compute.v1.InstanceProperties.verify(message.instanceProperties); + if (error) + return "instanceProperties." + error; + } + } + if (message.kind != null && message.hasOwnProperty("kind")) { + properties._kind = 1; + if (!$util.isString(message.kind)) + return "kind: string expected"; + } + if (message.machineImageEncryptionKey != null && message.hasOwnProperty("machineImageEncryptionKey")) { + properties._machineImageEncryptionKey = 1; + { + var error = $root.google.cloud.compute.v1.CustomerEncryptionKey.verify(message.machineImageEncryptionKey); + if (error) + return "machineImageEncryptionKey." + error; + } + } + if (message.name != null && message.hasOwnProperty("name")) { + properties._name = 1; + if (!$util.isString(message.name)) + return "name: string expected"; + } + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) { + properties._satisfiesPzs = 1; + if (typeof message.satisfiesPzs !== "boolean") + return "satisfiesPzs: boolean expected"; + } + if (message.savedDisks != null && message.hasOwnProperty("savedDisks")) { + if (!Array.isArray(message.savedDisks)) + return "savedDisks: array expected"; + for (var i = 0; i < message.savedDisks.length; ++i) { + var error = $root.google.cloud.compute.v1.SavedDisk.verify(message.savedDisks[i]); + if (error) + return "savedDisks." + error; + } + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + properties._selfLink = 1; + if (!$util.isString(message.selfLink)) + return "selfLink: string expected"; + } + if (message.sourceDiskEncryptionKeys != null && message.hasOwnProperty("sourceDiskEncryptionKeys")) { + if (!Array.isArray(message.sourceDiskEncryptionKeys)) + return "sourceDiskEncryptionKeys: array expected"; + for (var i = 0; i < message.sourceDiskEncryptionKeys.length; ++i) { + var error = $root.google.cloud.compute.v1.SourceDiskEncryptionKey.verify(message.sourceDiskEncryptionKeys[i]); + if (error) + return "sourceDiskEncryptionKeys." + error; + } + } + if (message.sourceInstance != null && message.hasOwnProperty("sourceInstance")) { + properties._sourceInstance = 1; + if (!$util.isString(message.sourceInstance)) + return "sourceInstance: string expected"; + } + if (message.sourceInstanceProperties != null && message.hasOwnProperty("sourceInstanceProperties")) { + properties._sourceInstanceProperties = 1; + { + var error = $root.google.cloud.compute.v1.SourceInstanceProperties.verify(message.sourceInstanceProperties); + if (error) + return "sourceInstanceProperties." + error; + } + } + if (message.status != null && message.hasOwnProperty("status")) { + properties._status = 1; + if (!$util.isString(message.status)) + return "status: string expected"; + } + if (message.storageLocations != null && message.hasOwnProperty("storageLocations")) { + if (!Array.isArray(message.storageLocations)) + return "storageLocations: array expected"; + for (var i = 0; i < message.storageLocations.length; ++i) + if (!$util.isString(message.storageLocations[i])) + return "storageLocations: string[] expected"; + } + if (message.totalStorageBytes != null && message.hasOwnProperty("totalStorageBytes")) { + properties._totalStorageBytes = 1; + if (!$util.isInteger(message.totalStorageBytes) && !(message.totalStorageBytes && $util.isInteger(message.totalStorageBytes.low) && $util.isInteger(message.totalStorageBytes.high))) + return "totalStorageBytes: integer|Long expected"; + } + return null; + }; + + /** + * Creates a MachineImage message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.MachineImage + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.MachineImage} MachineImage + */ + MachineImage.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.MachineImage) + return object; + var message = new $root.google.cloud.compute.v1.MachineImage(); + if (object.creationTimestamp != null) + message.creationTimestamp = String(object.creationTimestamp); + if (object.description != null) + message.description = String(object.description); + if (object.guestFlush != null) + message.guestFlush = Boolean(object.guestFlush); + if (object.id != null) + if ($util.Long) + (message.id = $util.Long.fromValue(object.id)).unsigned = true; + else if (typeof object.id === "string") + message.id = parseInt(object.id, 10); + else if (typeof object.id === "number") + message.id = object.id; + else if (typeof object.id === "object") + message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber(true); + if (object.instanceProperties != null) { + if (typeof object.instanceProperties !== "object") + throw TypeError(".google.cloud.compute.v1.MachineImage.instanceProperties: object expected"); + message.instanceProperties = $root.google.cloud.compute.v1.InstanceProperties.fromObject(object.instanceProperties); + } + if (object.kind != null) + message.kind = String(object.kind); + if (object.machineImageEncryptionKey != null) { + if (typeof object.machineImageEncryptionKey !== "object") + throw TypeError(".google.cloud.compute.v1.MachineImage.machineImageEncryptionKey: object expected"); + message.machineImageEncryptionKey = $root.google.cloud.compute.v1.CustomerEncryptionKey.fromObject(object.machineImageEncryptionKey); + } + if (object.name != null) + message.name = String(object.name); + if (object.satisfiesPzs != null) + message.satisfiesPzs = Boolean(object.satisfiesPzs); + if (object.savedDisks) { + if (!Array.isArray(object.savedDisks)) + throw TypeError(".google.cloud.compute.v1.MachineImage.savedDisks: array expected"); + message.savedDisks = []; + for (var i = 0; i < object.savedDisks.length; ++i) { + if (typeof object.savedDisks[i] !== "object") + throw TypeError(".google.cloud.compute.v1.MachineImage.savedDisks: object expected"); + message.savedDisks[i] = $root.google.cloud.compute.v1.SavedDisk.fromObject(object.savedDisks[i]); + } + } + if (object.selfLink != null) + message.selfLink = String(object.selfLink); + if (object.sourceDiskEncryptionKeys) { + if (!Array.isArray(object.sourceDiskEncryptionKeys)) + throw TypeError(".google.cloud.compute.v1.MachineImage.sourceDiskEncryptionKeys: array expected"); + message.sourceDiskEncryptionKeys = []; + for (var i = 0; i < object.sourceDiskEncryptionKeys.length; ++i) { + if (typeof object.sourceDiskEncryptionKeys[i] !== "object") + throw TypeError(".google.cloud.compute.v1.MachineImage.sourceDiskEncryptionKeys: object expected"); + message.sourceDiskEncryptionKeys[i] = $root.google.cloud.compute.v1.SourceDiskEncryptionKey.fromObject(object.sourceDiskEncryptionKeys[i]); + } + } + if (object.sourceInstance != null) + message.sourceInstance = String(object.sourceInstance); + if (object.sourceInstanceProperties != null) { + if (typeof object.sourceInstanceProperties !== "object") + throw TypeError(".google.cloud.compute.v1.MachineImage.sourceInstanceProperties: object expected"); + message.sourceInstanceProperties = $root.google.cloud.compute.v1.SourceInstanceProperties.fromObject(object.sourceInstanceProperties); + } + if (object.status != null) + message.status = String(object.status); + if (object.storageLocations) { + if (!Array.isArray(object.storageLocations)) + throw TypeError(".google.cloud.compute.v1.MachineImage.storageLocations: array expected"); + message.storageLocations = []; + for (var i = 0; i < object.storageLocations.length; ++i) + message.storageLocations[i] = String(object.storageLocations[i]); + } + if (object.totalStorageBytes != null) + if ($util.Long) + (message.totalStorageBytes = $util.Long.fromValue(object.totalStorageBytes)).unsigned = false; + else if (typeof object.totalStorageBytes === "string") + message.totalStorageBytes = parseInt(object.totalStorageBytes, 10); + else if (typeof object.totalStorageBytes === "number") + message.totalStorageBytes = object.totalStorageBytes; + else if (typeof object.totalStorageBytes === "object") + message.totalStorageBytes = new $util.LongBits(object.totalStorageBytes.low >>> 0, object.totalStorageBytes.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from a MachineImage message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.MachineImage + * @static + * @param {google.cloud.compute.v1.MachineImage} message MachineImage + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MachineImage.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.storageLocations = []; + object.sourceDiskEncryptionKeys = []; + object.savedDisks = []; + } + if (message.id != null && message.hasOwnProperty("id")) { + if (typeof message.id === "number") + object.id = options.longs === String ? String(message.id) : message.id; + else + object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber(true) : message.id; + if (options.oneofs) + object._id = "id"; + } + if (message.kind != null && message.hasOwnProperty("kind")) { + object.kind = message.kind; + if (options.oneofs) + object._kind = "kind"; + } + if (message.name != null && message.hasOwnProperty("name")) { + object.name = message.name; + if (options.oneofs) + object._name = "name"; + } + if (message.creationTimestamp != null && message.hasOwnProperty("creationTimestamp")) { + object.creationTimestamp = message.creationTimestamp; + if (options.oneofs) + object._creationTimestamp = "creationTimestamp"; + } + if (message.totalStorageBytes != null && message.hasOwnProperty("totalStorageBytes")) { + if (typeof message.totalStorageBytes === "number") + object.totalStorageBytes = options.longs === String ? String(message.totalStorageBytes) : message.totalStorageBytes; + else + object.totalStorageBytes = options.longs === String ? $util.Long.prototype.toString.call(message.totalStorageBytes) : options.longs === Number ? new $util.LongBits(message.totalStorageBytes.low >>> 0, message.totalStorageBytes.high >>> 0).toNumber() : message.totalStorageBytes; + if (options.oneofs) + object._totalStorageBytes = "totalStorageBytes"; + } + if (message.status != null && message.hasOwnProperty("status")) { + object.status = message.status; + if (options.oneofs) + object._status = "status"; + } + if (message.instanceProperties != null && message.hasOwnProperty("instanceProperties")) { + object.instanceProperties = $root.google.cloud.compute.v1.InstanceProperties.toObject(message.instanceProperties, options); + if (options.oneofs) + object._instanceProperties = "instanceProperties"; + } + if (message.storageLocations && message.storageLocations.length) { + object.storageLocations = []; + for (var j = 0; j < message.storageLocations.length; ++j) + object.storageLocations[j] = message.storageLocations[j]; + } + if (message.sourceDiskEncryptionKeys && message.sourceDiskEncryptionKeys.length) { + object.sourceDiskEncryptionKeys = []; + for (var j = 0; j < message.sourceDiskEncryptionKeys.length; ++j) + object.sourceDiskEncryptionKeys[j] = $root.google.cloud.compute.v1.SourceDiskEncryptionKey.toObject(message.sourceDiskEncryptionKeys[j], options); + } + if (message.guestFlush != null && message.hasOwnProperty("guestFlush")) { + object.guestFlush = message.guestFlush; + if (options.oneofs) + object._guestFlush = "guestFlush"; + } + if (message.sourceInstance != null && message.hasOwnProperty("sourceInstance")) { + object.sourceInstance = message.sourceInstance; + if (options.oneofs) + object._sourceInstance = "sourceInstance"; + } + if (message.savedDisks && message.savedDisks.length) { + object.savedDisks = []; + for (var j = 0; j < message.savedDisks.length; ++j) + object.savedDisks[j] = $root.google.cloud.compute.v1.SavedDisk.toObject(message.savedDisks[j], options); + } + if (message.description != null && message.hasOwnProperty("description")) { + object.description = message.description; + if (options.oneofs) + object._description = "description"; + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + object.selfLink = message.selfLink; + if (options.oneofs) + object._selfLink = "selfLink"; + } + if (message.sourceInstanceProperties != null && message.hasOwnProperty("sourceInstanceProperties")) { + object.sourceInstanceProperties = $root.google.cloud.compute.v1.SourceInstanceProperties.toObject(message.sourceInstanceProperties, options); + if (options.oneofs) + object._sourceInstanceProperties = "sourceInstanceProperties"; + } + if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) { + object.satisfiesPzs = message.satisfiesPzs; + if (options.oneofs) + object._satisfiesPzs = "satisfiesPzs"; + } + if (message.machineImageEncryptionKey != null && message.hasOwnProperty("machineImageEncryptionKey")) { + object.machineImageEncryptionKey = $root.google.cloud.compute.v1.CustomerEncryptionKey.toObject(message.machineImageEncryptionKey, options); + if (options.oneofs) + object._machineImageEncryptionKey = "machineImageEncryptionKey"; + } + return object; + }; + + /** + * Converts this MachineImage to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.MachineImage + * @instance + * @returns {Object.} JSON object + */ + MachineImage.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Status enum. + * @name google.cloud.compute.v1.MachineImage.Status + * @enum {number} + * @property {number} UNDEFINED_STATUS=0 UNDEFINED_STATUS value + * @property {number} CREATING=455564985 CREATING value + * @property {number} DELETING=528602024 DELETING value + * @property {number} INVALID=530283991 INVALID value + * @property {number} READY=77848963 READY value + * @property {number} UPLOADING=267603489 UPLOADING value + */ + MachineImage.Status = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_STATUS"] = 0; + values[valuesById[455564985] = "CREATING"] = 455564985; + values[valuesById[528602024] = "DELETING"] = 528602024; + values[valuesById[530283991] = "INVALID"] = 530283991; + values[valuesById[77848963] = "READY"] = 77848963; + values[valuesById[267603489] = "UPLOADING"] = 267603489; + return values; + })(); + + return MachineImage; + })(); + + v1.MachineImageList = (function() { + + /** + * Properties of a MachineImageList. + * @memberof google.cloud.compute.v1 + * @interface IMachineImageList + * @property {string|null} [id] MachineImageList id + * @property {Array.|null} [items] MachineImageList items + * @property {string|null} [kind] MachineImageList kind + * @property {string|null} [nextPageToken] MachineImageList nextPageToken + * @property {string|null} [selfLink] MachineImageList selfLink + * @property {google.cloud.compute.v1.IWarning|null} [warning] MachineImageList warning + */ + + /** + * Constructs a new MachineImageList. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a MachineImageList. + * @implements IMachineImageList + * @constructor + * @param {google.cloud.compute.v1.IMachineImageList=} [properties] Properties to set + */ + function MachineImageList(properties) { + this.items = []; + 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]]; + } + + /** + * MachineImageList id. + * @member {string|null|undefined} id + * @memberof google.cloud.compute.v1.MachineImageList + * @instance + */ + MachineImageList.prototype.id = null; + + /** + * MachineImageList items. + * @member {Array.} items + * @memberof google.cloud.compute.v1.MachineImageList + * @instance + */ + MachineImageList.prototype.items = $util.emptyArray; + + /** + * MachineImageList kind. + * @member {string|null|undefined} kind + * @memberof google.cloud.compute.v1.MachineImageList + * @instance + */ + MachineImageList.prototype.kind = null; + + /** + * MachineImageList nextPageToken. + * @member {string|null|undefined} nextPageToken + * @memberof google.cloud.compute.v1.MachineImageList + * @instance + */ + MachineImageList.prototype.nextPageToken = null; + + /** + * MachineImageList selfLink. + * @member {string|null|undefined} selfLink + * @memberof google.cloud.compute.v1.MachineImageList + * @instance + */ + MachineImageList.prototype.selfLink = null; + + /** + * MachineImageList warning. + * @member {google.cloud.compute.v1.IWarning|null|undefined} warning + * @memberof google.cloud.compute.v1.MachineImageList + * @instance + */ + MachineImageList.prototype.warning = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * MachineImageList _id. + * @member {"id"|undefined} _id + * @memberof google.cloud.compute.v1.MachineImageList + * @instance + */ + Object.defineProperty(MachineImageList.prototype, "_id", { + get: $util.oneOfGetter($oneOfFields = ["id"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * MachineImageList _kind. + * @member {"kind"|undefined} _kind + * @memberof google.cloud.compute.v1.MachineImageList + * @instance + */ + Object.defineProperty(MachineImageList.prototype, "_kind", { + get: $util.oneOfGetter($oneOfFields = ["kind"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * MachineImageList _nextPageToken. + * @member {"nextPageToken"|undefined} _nextPageToken + * @memberof google.cloud.compute.v1.MachineImageList + * @instance + */ + Object.defineProperty(MachineImageList.prototype, "_nextPageToken", { + get: $util.oneOfGetter($oneOfFields = ["nextPageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * MachineImageList _selfLink. + * @member {"selfLink"|undefined} _selfLink + * @memberof google.cloud.compute.v1.MachineImageList + * @instance + */ + Object.defineProperty(MachineImageList.prototype, "_selfLink", { + get: $util.oneOfGetter($oneOfFields = ["selfLink"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * MachineImageList _warning. + * @member {"warning"|undefined} _warning + * @memberof google.cloud.compute.v1.MachineImageList + * @instance + */ + Object.defineProperty(MachineImageList.prototype, "_warning", { + get: $util.oneOfGetter($oneOfFields = ["warning"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new MachineImageList instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.MachineImageList + * @static + * @param {google.cloud.compute.v1.IMachineImageList=} [properties] Properties to set + * @returns {google.cloud.compute.v1.MachineImageList} MachineImageList instance + */ + MachineImageList.create = function create(properties) { + return new MachineImageList(properties); + }; + + /** + * Encodes the specified MachineImageList message. Does not implicitly {@link google.cloud.compute.v1.MachineImageList.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.MachineImageList + * @static + * @param {google.cloud.compute.v1.IMachineImageList} message MachineImageList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MachineImageList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 3355, wireType 2 =*/26842).string(message.id); + if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) + writer.uint32(/* id 3292052, wireType 2 =*/26336418).string(message.kind); + if (message.warning != null && Object.hasOwnProperty.call(message, "warning")) + $root.google.cloud.compute.v1.Warning.encode(message.warning, writer.uint32(/* id 50704284, wireType 2 =*/405634274).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 79797525, wireType 2 =*/638380202).string(message.nextPageToken); + if (message.items != null && message.items.length) + for (var i = 0; i < message.items.length; ++i) + $root.google.cloud.compute.v1.MachineImage.encode(message.items[i], writer.uint32(/* id 100526016, wireType 2 =*/804208130).fork()).ldelim(); + if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) + writer.uint32(/* id 456214797, wireType 2 =*/3649718378).string(message.selfLink); + return writer; + }; + + /** + * Encodes the specified MachineImageList message, length delimited. Does not implicitly {@link google.cloud.compute.v1.MachineImageList.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.MachineImageList + * @static + * @param {google.cloud.compute.v1.IMachineImageList} message MachineImageList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MachineImageList.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MachineImageList message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.MachineImageList + * @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.MachineImageList} MachineImageList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MachineImageList.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.MachineImageList(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 3355: + message.id = reader.string(); + break; + case 100526016: + if (!(message.items && message.items.length)) + message.items = []; + message.items.push($root.google.cloud.compute.v1.MachineImage.decode(reader, reader.uint32())); + break; + case 3292052: + message.kind = reader.string(); + break; + case 79797525: + message.nextPageToken = reader.string(); + break; + case 456214797: + message.selfLink = reader.string(); + break; + case 50704284: + message.warning = $root.google.cloud.compute.v1.Warning.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MachineImageList message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.MachineImageList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.MachineImageList} MachineImageList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MachineImageList.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MachineImageList message. + * @function verify + * @memberof google.cloud.compute.v1.MachineImageList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MachineImageList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.id != null && message.hasOwnProperty("id")) { + properties._id = 1; + if (!$util.isString(message.id)) + return "id: string expected"; + } + if (message.items != null && message.hasOwnProperty("items")) { + if (!Array.isArray(message.items)) + return "items: array expected"; + for (var i = 0; i < message.items.length; ++i) { + var error = $root.google.cloud.compute.v1.MachineImage.verify(message.items[i]); + if (error) + return "items." + error; + } + } + if (message.kind != null && message.hasOwnProperty("kind")) { + properties._kind = 1; + if (!$util.isString(message.kind)) + return "kind: string expected"; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) { + properties._nextPageToken = 1; + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + properties._selfLink = 1; + if (!$util.isString(message.selfLink)) + return "selfLink: string expected"; + } + if (message.warning != null && message.hasOwnProperty("warning")) { + properties._warning = 1; + { + var error = $root.google.cloud.compute.v1.Warning.verify(message.warning); + if (error) + return "warning." + error; + } + } + return null; + }; + + /** + * Creates a MachineImageList message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.MachineImageList + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.MachineImageList} MachineImageList + */ + MachineImageList.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.MachineImageList) + return object; + var message = new $root.google.cloud.compute.v1.MachineImageList(); + if (object.id != null) + message.id = String(object.id); + if (object.items) { + if (!Array.isArray(object.items)) + throw TypeError(".google.cloud.compute.v1.MachineImageList.items: array expected"); + message.items = []; + for (var i = 0; i < object.items.length; ++i) { + if (typeof object.items[i] !== "object") + throw TypeError(".google.cloud.compute.v1.MachineImageList.items: object expected"); + message.items[i] = $root.google.cloud.compute.v1.MachineImage.fromObject(object.items[i]); + } + } + if (object.kind != null) + message.kind = String(object.kind); + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + if (object.selfLink != null) + message.selfLink = String(object.selfLink); + if (object.warning != null) { + if (typeof object.warning !== "object") + throw TypeError(".google.cloud.compute.v1.MachineImageList.warning: object expected"); + message.warning = $root.google.cloud.compute.v1.Warning.fromObject(object.warning); + } + return message; + }; + + /** + * Creates a plain object from a MachineImageList message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.MachineImageList + * @static + * @param {google.cloud.compute.v1.MachineImageList} message MachineImageList + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MachineImageList.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.items = []; + if (message.id != null && message.hasOwnProperty("id")) { + object.id = message.id; + if (options.oneofs) + object._id = "id"; + } + if (message.kind != null && message.hasOwnProperty("kind")) { + object.kind = message.kind; + if (options.oneofs) + object._kind = "kind"; + } + if (message.warning != null && message.hasOwnProperty("warning")) { + object.warning = $root.google.cloud.compute.v1.Warning.toObject(message.warning, options); + if (options.oneofs) + object._warning = "warning"; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) { + object.nextPageToken = message.nextPageToken; + if (options.oneofs) + object._nextPageToken = "nextPageToken"; + } + if (message.items && message.items.length) { + object.items = []; + for (var j = 0; j < message.items.length; ++j) + object.items[j] = $root.google.cloud.compute.v1.MachineImage.toObject(message.items[j], options); + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + object.selfLink = message.selfLink; + if (options.oneofs) + object._selfLink = "selfLink"; + } + return object; + }; + + /** + * Converts this MachineImageList to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.MachineImageList + * @instance + * @returns {Object.} JSON object + */ + MachineImageList.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return MachineImageList; + })(); + v1.MachineType = (function() { /** @@ -224170,11 +230503,11 @@ /** * MoveFirewallPolicyRequest parentId. - * @member {string} parentId + * @member {string|null|undefined} parentId * @memberof google.cloud.compute.v1.MoveFirewallPolicyRequest * @instance */ - MoveFirewallPolicyRequest.prototype.parentId = ""; + MoveFirewallPolicyRequest.prototype.parentId = null; /** * MoveFirewallPolicyRequest requestId. @@ -224187,6 +230520,17 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; + /** + * MoveFirewallPolicyRequest _parentId. + * @member {"parentId"|undefined} _parentId + * @memberof google.cloud.compute.v1.MoveFirewallPolicyRequest + * @instance + */ + Object.defineProperty(MoveFirewallPolicyRequest.prototype, "_parentId", { + get: $util.oneOfGetter($oneOfFields = ["parentId"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * MoveFirewallPolicyRequest _requestId. * @member {"requestId"|undefined} _requestId @@ -224310,9 +230654,11 @@ if (message.firewallPolicy != null && message.hasOwnProperty("firewallPolicy")) if (!$util.isString(message.firewallPolicy)) return "firewallPolicy: string expected"; - if (message.parentId != null && message.hasOwnProperty("parentId")) + if (message.parentId != null && message.hasOwnProperty("parentId")) { + properties._parentId = 1; if (!$util.isString(message.parentId)) return "parentId: string expected"; + } if (message.requestId != null && message.hasOwnProperty("requestId")) { properties._requestId = 1; if (!$util.isString(message.requestId)) @@ -224355,17 +230701,18 @@ if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parentId = ""; + if (options.defaults) object.firewallPolicy = ""; - } if (message.requestId != null && message.hasOwnProperty("requestId")) { object.requestId = message.requestId; if (options.oneofs) object._requestId = "requestId"; } - if (message.parentId != null && message.hasOwnProperty("parentId")) + if (message.parentId != null && message.hasOwnProperty("parentId")) { object.parentId = message.parentId; + if (options.oneofs) + object._parentId = "parentId"; + } if (message.firewallPolicy != null && message.hasOwnProperty("firewallPolicy")) object.firewallPolicy = message.firewallPolicy; return object; @@ -225949,6 +232296,7 @@ * @property {string|null} [name] NetworkEndpointGroup name * @property {string|null} [network] NetworkEndpointGroup network * @property {string|null} [networkEndpointType] NetworkEndpointGroup networkEndpointType + * @property {string|null} [pscTargetService] NetworkEndpointGroup pscTargetService * @property {string|null} [region] NetworkEndpointGroup region * @property {string|null} [selfLink] NetworkEndpointGroup selfLink * @property {number|null} [size] NetworkEndpointGroup size @@ -226068,6 +232416,14 @@ */ NetworkEndpointGroup.prototype.networkEndpointType = null; + /** + * NetworkEndpointGroup pscTargetService. + * @member {string|null|undefined} pscTargetService + * @memberof google.cloud.compute.v1.NetworkEndpointGroup + * @instance + */ + NetworkEndpointGroup.prototype.pscTargetService = null; + /** * NetworkEndpointGroup region. * @member {string|null|undefined} region @@ -226232,6 +232588,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * NetworkEndpointGroup _pscTargetService. + * @member {"pscTargetService"|undefined} _pscTargetService + * @memberof google.cloud.compute.v1.NetworkEndpointGroup + * @instance + */ + Object.defineProperty(NetworkEndpointGroup.prototype, "_pscTargetService", { + get: $util.oneOfGetter($oneOfFields = ["pscTargetService"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * NetworkEndpointGroup _region. * @member {"region"|undefined} _region @@ -226334,6 +232701,8 @@ writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); if (message.network != null && Object.hasOwnProperty.call(message, "network")) writer.uint32(/* id 232872494, wireType 2 =*/1862979954).string(message.network); + if (message.pscTargetService != null && Object.hasOwnProperty.call(message, "pscTargetService")) + writer.uint32(/* id 269132134, wireType 2 =*/2153057074).string(message.pscTargetService); if (message.subnetwork != null && Object.hasOwnProperty.call(message, "subnetwork")) writer.uint32(/* id 307827694, wireType 2 =*/2462621554).string(message.subnetwork); if (message.appEngine != null && Object.hasOwnProperty.call(message, "appEngine")) @@ -226435,6 +232804,9 @@ case 118301523: message.networkEndpointType = reader.string(); break; + case 269132134: + message.pscTargetService = reader.string(); + break; case 138946292: message.region = reader.string(); break; @@ -226558,6 +232930,11 @@ if (!$util.isString(message.networkEndpointType)) return "networkEndpointType: string expected"; } + if (message.pscTargetService != null && message.hasOwnProperty("pscTargetService")) { + properties._pscTargetService = 1; + if (!$util.isString(message.pscTargetService)) + return "pscTargetService: string expected"; + } if (message.region != null && message.hasOwnProperty("region")) { properties._region = 1; if (!$util.isString(message.region)) @@ -226643,6 +233020,8 @@ message.network = String(object.network); if (object.networkEndpointType != null) message.networkEndpointType = String(object.networkEndpointType); + if (object.pscTargetService != null) + message.pscTargetService = String(object.pscTargetService); if (object.region != null) message.region = String(object.region); if (object.selfLink != null) @@ -226730,6 +233109,11 @@ if (options.oneofs) object._network = "network"; } + if (message.pscTargetService != null && message.hasOwnProperty("pscTargetService")) { + object.pscTargetService = message.pscTargetService; + if (options.oneofs) + object._pscTargetService = "pscTargetService"; + } if (message.subnetwork != null && message.hasOwnProperty("subnetwork")) { object.subnetwork = message.subnetwork; if (options.oneofs) @@ -226784,6 +233168,7 @@ * @property {number} INTERNET_FQDN_PORT=404154477 INTERNET_FQDN_PORT value * @property {number} INTERNET_IP_PORT=477719963 INTERNET_IP_PORT value * @property {number} NON_GCP_PRIVATE_IP_PORT=336447968 NON_GCP_PRIVATE_IP_PORT value + * @property {number} PRIVATE_SERVICE_CONNECT=48134724 PRIVATE_SERVICE_CONNECT value * @property {number} SERVERLESS=270492508 SERVERLESS value */ NetworkEndpointGroup.NetworkEndpointType = (function() { @@ -226794,6 +233179,7 @@ values[valuesById[404154477] = "INTERNET_FQDN_PORT"] = 404154477; values[valuesById[477719963] = "INTERNET_IP_PORT"] = 477719963; values[valuesById[336447968] = "NON_GCP_PRIVATE_IP_PORT"] = 336447968; + values[valuesById[48134724] = "PRIVATE_SERVICE_CONNECT"] = 48134724; values[valuesById[270492508] = "SERVERLESS"] = 270492508; return values; })(); @@ -231732,6 +238118,227 @@ return NetworkPeering; })(); + v1.NetworkPerformanceConfig = (function() { + + /** + * Properties of a NetworkPerformanceConfig. + * @memberof google.cloud.compute.v1 + * @interface INetworkPerformanceConfig + * @property {string|null} [totalEgressBandwidthTier] NetworkPerformanceConfig totalEgressBandwidthTier + */ + + /** + * Constructs a new NetworkPerformanceConfig. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a NetworkPerformanceConfig. + * @implements INetworkPerformanceConfig + * @constructor + * @param {google.cloud.compute.v1.INetworkPerformanceConfig=} [properties] Properties to set + */ + function NetworkPerformanceConfig(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]]; + } + + /** + * NetworkPerformanceConfig totalEgressBandwidthTier. + * @member {string|null|undefined} totalEgressBandwidthTier + * @memberof google.cloud.compute.v1.NetworkPerformanceConfig + * @instance + */ + NetworkPerformanceConfig.prototype.totalEgressBandwidthTier = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * NetworkPerformanceConfig _totalEgressBandwidthTier. + * @member {"totalEgressBandwidthTier"|undefined} _totalEgressBandwidthTier + * @memberof google.cloud.compute.v1.NetworkPerformanceConfig + * @instance + */ + Object.defineProperty(NetworkPerformanceConfig.prototype, "_totalEgressBandwidthTier", { + get: $util.oneOfGetter($oneOfFields = ["totalEgressBandwidthTier"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new NetworkPerformanceConfig instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.NetworkPerformanceConfig + * @static + * @param {google.cloud.compute.v1.INetworkPerformanceConfig=} [properties] Properties to set + * @returns {google.cloud.compute.v1.NetworkPerformanceConfig} NetworkPerformanceConfig instance + */ + NetworkPerformanceConfig.create = function create(properties) { + return new NetworkPerformanceConfig(properties); + }; + + /** + * Encodes the specified NetworkPerformanceConfig message. Does not implicitly {@link google.cloud.compute.v1.NetworkPerformanceConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.NetworkPerformanceConfig + * @static + * @param {google.cloud.compute.v1.INetworkPerformanceConfig} message NetworkPerformanceConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NetworkPerformanceConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.totalEgressBandwidthTier != null && Object.hasOwnProperty.call(message, "totalEgressBandwidthTier")) + writer.uint32(/* id 130109439, wireType 2 =*/1040875514).string(message.totalEgressBandwidthTier); + return writer; + }; + + /** + * Encodes the specified NetworkPerformanceConfig message, length delimited. Does not implicitly {@link google.cloud.compute.v1.NetworkPerformanceConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.NetworkPerformanceConfig + * @static + * @param {google.cloud.compute.v1.INetworkPerformanceConfig} message NetworkPerformanceConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NetworkPerformanceConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NetworkPerformanceConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.NetworkPerformanceConfig + * @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.NetworkPerformanceConfig} NetworkPerformanceConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NetworkPerformanceConfig.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.NetworkPerformanceConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 130109439: + message.totalEgressBandwidthTier = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a NetworkPerformanceConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.NetworkPerformanceConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.NetworkPerformanceConfig} NetworkPerformanceConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NetworkPerformanceConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NetworkPerformanceConfig message. + * @function verify + * @memberof google.cloud.compute.v1.NetworkPerformanceConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NetworkPerformanceConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.totalEgressBandwidthTier != null && message.hasOwnProperty("totalEgressBandwidthTier")) { + properties._totalEgressBandwidthTier = 1; + if (!$util.isString(message.totalEgressBandwidthTier)) + return "totalEgressBandwidthTier: string expected"; + } + return null; + }; + + /** + * Creates a NetworkPerformanceConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.NetworkPerformanceConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.NetworkPerformanceConfig} NetworkPerformanceConfig + */ + NetworkPerformanceConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.NetworkPerformanceConfig) + return object; + var message = new $root.google.cloud.compute.v1.NetworkPerformanceConfig(); + if (object.totalEgressBandwidthTier != null) + message.totalEgressBandwidthTier = String(object.totalEgressBandwidthTier); + return message; + }; + + /** + * Creates a plain object from a NetworkPerformanceConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.NetworkPerformanceConfig + * @static + * @param {google.cloud.compute.v1.NetworkPerformanceConfig} message NetworkPerformanceConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NetworkPerformanceConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.totalEgressBandwidthTier != null && message.hasOwnProperty("totalEgressBandwidthTier")) { + object.totalEgressBandwidthTier = message.totalEgressBandwidthTier; + if (options.oneofs) + object._totalEgressBandwidthTier = "totalEgressBandwidthTier"; + } + return object; + }; + + /** + * Converts this NetworkPerformanceConfig to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.NetworkPerformanceConfig + * @instance + * @returns {Object.} JSON object + */ + NetworkPerformanceConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * TotalEgressBandwidthTier enum. + * @name google.cloud.compute.v1.NetworkPerformanceConfig.TotalEgressBandwidthTier + * @enum {number} + * @property {number} UNDEFINED_TOTAL_EGRESS_BANDWIDTH_TIER=0 UNDEFINED_TOTAL_EGRESS_BANDWIDTH_TIER value + * @property {number} DEFAULT=115302945 DEFAULT value + * @property {number} TIER_1=326919444 TIER_1 value + */ + NetworkPerformanceConfig.TotalEgressBandwidthTier = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_TOTAL_EGRESS_BANDWIDTH_TIER"] = 0; + values[valuesById[115302945] = "DEFAULT"] = 115302945; + values[valuesById[326919444] = "TIER_1"] = 326919444; + return values; + })(); + + return NetworkPerformanceConfig; + })(); + v1.NetworkRoutingConfig = (function() { /** @@ -245473,6 +252080,476 @@ return OutlierDetection; })(); + v1.PacketIntervals = (function() { + + /** + * Properties of a PacketIntervals. + * @memberof google.cloud.compute.v1 + * @interface IPacketIntervals + * @property {number|Long|null} [avgMs] PacketIntervals avgMs + * @property {string|null} [duration] PacketIntervals duration + * @property {number|Long|null} [maxMs] PacketIntervals maxMs + * @property {number|Long|null} [minMs] PacketIntervals minMs + * @property {number|Long|null} [numIntervals] PacketIntervals numIntervals + * @property {string|null} [type] PacketIntervals type + */ + + /** + * Constructs a new PacketIntervals. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a PacketIntervals. + * @implements IPacketIntervals + * @constructor + * @param {google.cloud.compute.v1.IPacketIntervals=} [properties] Properties to set + */ + function PacketIntervals(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]]; + } + + /** + * PacketIntervals avgMs. + * @member {number|Long|null|undefined} avgMs + * @memberof google.cloud.compute.v1.PacketIntervals + * @instance + */ + PacketIntervals.prototype.avgMs = null; + + /** + * PacketIntervals duration. + * @member {string|null|undefined} duration + * @memberof google.cloud.compute.v1.PacketIntervals + * @instance + */ + PacketIntervals.prototype.duration = null; + + /** + * PacketIntervals maxMs. + * @member {number|Long|null|undefined} maxMs + * @memberof google.cloud.compute.v1.PacketIntervals + * @instance + */ + PacketIntervals.prototype.maxMs = null; + + /** + * PacketIntervals minMs. + * @member {number|Long|null|undefined} minMs + * @memberof google.cloud.compute.v1.PacketIntervals + * @instance + */ + PacketIntervals.prototype.minMs = null; + + /** + * PacketIntervals numIntervals. + * @member {number|Long|null|undefined} numIntervals + * @memberof google.cloud.compute.v1.PacketIntervals + * @instance + */ + PacketIntervals.prototype.numIntervals = null; + + /** + * PacketIntervals type. + * @member {string|null|undefined} type + * @memberof google.cloud.compute.v1.PacketIntervals + * @instance + */ + PacketIntervals.prototype.type = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * PacketIntervals _avgMs. + * @member {"avgMs"|undefined} _avgMs + * @memberof google.cloud.compute.v1.PacketIntervals + * @instance + */ + Object.defineProperty(PacketIntervals.prototype, "_avgMs", { + get: $util.oneOfGetter($oneOfFields = ["avgMs"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * PacketIntervals _duration. + * @member {"duration"|undefined} _duration + * @memberof google.cloud.compute.v1.PacketIntervals + * @instance + */ + Object.defineProperty(PacketIntervals.prototype, "_duration", { + get: $util.oneOfGetter($oneOfFields = ["duration"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * PacketIntervals _maxMs. + * @member {"maxMs"|undefined} _maxMs + * @memberof google.cloud.compute.v1.PacketIntervals + * @instance + */ + Object.defineProperty(PacketIntervals.prototype, "_maxMs", { + get: $util.oneOfGetter($oneOfFields = ["maxMs"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * PacketIntervals _minMs. + * @member {"minMs"|undefined} _minMs + * @memberof google.cloud.compute.v1.PacketIntervals + * @instance + */ + Object.defineProperty(PacketIntervals.prototype, "_minMs", { + get: $util.oneOfGetter($oneOfFields = ["minMs"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * PacketIntervals _numIntervals. + * @member {"numIntervals"|undefined} _numIntervals + * @memberof google.cloud.compute.v1.PacketIntervals + * @instance + */ + Object.defineProperty(PacketIntervals.prototype, "_numIntervals", { + get: $util.oneOfGetter($oneOfFields = ["numIntervals"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * PacketIntervals _type. + * @member {"type"|undefined} _type + * @memberof google.cloud.compute.v1.PacketIntervals + * @instance + */ + Object.defineProperty(PacketIntervals.prototype, "_type", { + get: $util.oneOfGetter($oneOfFields = ["type"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new PacketIntervals instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.PacketIntervals + * @static + * @param {google.cloud.compute.v1.IPacketIntervals=} [properties] Properties to set + * @returns {google.cloud.compute.v1.PacketIntervals} PacketIntervals instance + */ + PacketIntervals.create = function create(properties) { + return new PacketIntervals(properties); + }; + + /** + * Encodes the specified PacketIntervals message. Does not implicitly {@link google.cloud.compute.v1.PacketIntervals.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.PacketIntervals + * @static + * @param {google.cloud.compute.v1.IPacketIntervals} message PacketIntervals message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PacketIntervals.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 3575610, wireType 2 =*/28604882).string(message.type); + if (message.duration != null && Object.hasOwnProperty.call(message, "duration")) + writer.uint32(/* id 155471252, wireType 2 =*/1243770018).string(message.duration); + if (message.numIntervals != null && Object.hasOwnProperty.call(message, "numIntervals")) + writer.uint32(/* id 186329813, wireType 0 =*/1490638504).int64(message.numIntervals); + if (message.avgMs != null && Object.hasOwnProperty.call(message, "avgMs")) + writer.uint32(/* id 204811827, wireType 0 =*/1638494616).int64(message.avgMs); + if (message.maxMs != null && Object.hasOwnProperty.call(message, "maxMs")) + writer.uint32(/* id 529474145, wireType 0 =*/4235793160).int64(message.maxMs); + if (message.minMs != null && Object.hasOwnProperty.call(message, "minMs")) + writer.uint32(/* id 536564403, wireType 0 =*/4292515224).int64(message.minMs); + return writer; + }; + + /** + * Encodes the specified PacketIntervals message, length delimited. Does not implicitly {@link google.cloud.compute.v1.PacketIntervals.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.PacketIntervals + * @static + * @param {google.cloud.compute.v1.IPacketIntervals} message PacketIntervals message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PacketIntervals.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PacketIntervals message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.PacketIntervals + * @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.PacketIntervals} PacketIntervals + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PacketIntervals.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.PacketIntervals(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 204811827: + message.avgMs = reader.int64(); + break; + case 155471252: + message.duration = reader.string(); + break; + case 529474145: + message.maxMs = reader.int64(); + break; + case 536564403: + message.minMs = reader.int64(); + break; + case 186329813: + message.numIntervals = reader.int64(); + break; + case 3575610: + message.type = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PacketIntervals message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.PacketIntervals + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.PacketIntervals} PacketIntervals + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PacketIntervals.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PacketIntervals message. + * @function verify + * @memberof google.cloud.compute.v1.PacketIntervals + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PacketIntervals.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.avgMs != null && message.hasOwnProperty("avgMs")) { + properties._avgMs = 1; + if (!$util.isInteger(message.avgMs) && !(message.avgMs && $util.isInteger(message.avgMs.low) && $util.isInteger(message.avgMs.high))) + return "avgMs: integer|Long expected"; + } + if (message.duration != null && message.hasOwnProperty("duration")) { + properties._duration = 1; + if (!$util.isString(message.duration)) + return "duration: string expected"; + } + if (message.maxMs != null && message.hasOwnProperty("maxMs")) { + properties._maxMs = 1; + if (!$util.isInteger(message.maxMs) && !(message.maxMs && $util.isInteger(message.maxMs.low) && $util.isInteger(message.maxMs.high))) + return "maxMs: integer|Long expected"; + } + if (message.minMs != null && message.hasOwnProperty("minMs")) { + properties._minMs = 1; + if (!$util.isInteger(message.minMs) && !(message.minMs && $util.isInteger(message.minMs.low) && $util.isInteger(message.minMs.high))) + return "minMs: integer|Long expected"; + } + if (message.numIntervals != null && message.hasOwnProperty("numIntervals")) { + properties._numIntervals = 1; + if (!$util.isInteger(message.numIntervals) && !(message.numIntervals && $util.isInteger(message.numIntervals.low) && $util.isInteger(message.numIntervals.high))) + return "numIntervals: integer|Long expected"; + } + if (message.type != null && message.hasOwnProperty("type")) { + properties._type = 1; + if (!$util.isString(message.type)) + return "type: string expected"; + } + return null; + }; + + /** + * Creates a PacketIntervals message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.PacketIntervals + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.PacketIntervals} PacketIntervals + */ + PacketIntervals.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.PacketIntervals) + return object; + var message = new $root.google.cloud.compute.v1.PacketIntervals(); + if (object.avgMs != null) + if ($util.Long) + (message.avgMs = $util.Long.fromValue(object.avgMs)).unsigned = false; + else if (typeof object.avgMs === "string") + message.avgMs = parseInt(object.avgMs, 10); + else if (typeof object.avgMs === "number") + message.avgMs = object.avgMs; + else if (typeof object.avgMs === "object") + message.avgMs = new $util.LongBits(object.avgMs.low >>> 0, object.avgMs.high >>> 0).toNumber(); + if (object.duration != null) + message.duration = String(object.duration); + if (object.maxMs != null) + if ($util.Long) + (message.maxMs = $util.Long.fromValue(object.maxMs)).unsigned = false; + else if (typeof object.maxMs === "string") + message.maxMs = parseInt(object.maxMs, 10); + else if (typeof object.maxMs === "number") + message.maxMs = object.maxMs; + else if (typeof object.maxMs === "object") + message.maxMs = new $util.LongBits(object.maxMs.low >>> 0, object.maxMs.high >>> 0).toNumber(); + if (object.minMs != null) + if ($util.Long) + (message.minMs = $util.Long.fromValue(object.minMs)).unsigned = false; + else if (typeof object.minMs === "string") + message.minMs = parseInt(object.minMs, 10); + else if (typeof object.minMs === "number") + message.minMs = object.minMs; + else if (typeof object.minMs === "object") + message.minMs = new $util.LongBits(object.minMs.low >>> 0, object.minMs.high >>> 0).toNumber(); + if (object.numIntervals != null) + if ($util.Long) + (message.numIntervals = $util.Long.fromValue(object.numIntervals)).unsigned = false; + else if (typeof object.numIntervals === "string") + message.numIntervals = parseInt(object.numIntervals, 10); + else if (typeof object.numIntervals === "number") + message.numIntervals = object.numIntervals; + else if (typeof object.numIntervals === "object") + message.numIntervals = new $util.LongBits(object.numIntervals.low >>> 0, object.numIntervals.high >>> 0).toNumber(); + if (object.type != null) + message.type = String(object.type); + return message; + }; + + /** + * Creates a plain object from a PacketIntervals message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.PacketIntervals + * @static + * @param {google.cloud.compute.v1.PacketIntervals} message PacketIntervals + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PacketIntervals.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.type != null && message.hasOwnProperty("type")) { + object.type = message.type; + if (options.oneofs) + object._type = "type"; + } + if (message.duration != null && message.hasOwnProperty("duration")) { + object.duration = message.duration; + if (options.oneofs) + object._duration = "duration"; + } + if (message.numIntervals != null && message.hasOwnProperty("numIntervals")) { + if (typeof message.numIntervals === "number") + object.numIntervals = options.longs === String ? String(message.numIntervals) : message.numIntervals; + else + object.numIntervals = options.longs === String ? $util.Long.prototype.toString.call(message.numIntervals) : options.longs === Number ? new $util.LongBits(message.numIntervals.low >>> 0, message.numIntervals.high >>> 0).toNumber() : message.numIntervals; + if (options.oneofs) + object._numIntervals = "numIntervals"; + } + if (message.avgMs != null && message.hasOwnProperty("avgMs")) { + if (typeof message.avgMs === "number") + object.avgMs = options.longs === String ? String(message.avgMs) : message.avgMs; + else + object.avgMs = options.longs === String ? $util.Long.prototype.toString.call(message.avgMs) : options.longs === Number ? new $util.LongBits(message.avgMs.low >>> 0, message.avgMs.high >>> 0).toNumber() : message.avgMs; + if (options.oneofs) + object._avgMs = "avgMs"; + } + if (message.maxMs != null && message.hasOwnProperty("maxMs")) { + if (typeof message.maxMs === "number") + object.maxMs = options.longs === String ? String(message.maxMs) : message.maxMs; + else + object.maxMs = options.longs === String ? $util.Long.prototype.toString.call(message.maxMs) : options.longs === Number ? new $util.LongBits(message.maxMs.low >>> 0, message.maxMs.high >>> 0).toNumber() : message.maxMs; + if (options.oneofs) + object._maxMs = "maxMs"; + } + if (message.minMs != null && message.hasOwnProperty("minMs")) { + if (typeof message.minMs === "number") + object.minMs = options.longs === String ? String(message.minMs) : message.minMs; + else + object.minMs = options.longs === String ? $util.Long.prototype.toString.call(message.minMs) : options.longs === Number ? new $util.LongBits(message.minMs.low >>> 0, message.minMs.high >>> 0).toNumber() : message.minMs; + if (options.oneofs) + object._minMs = "minMs"; + } + return object; + }; + + /** + * Converts this PacketIntervals to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.PacketIntervals + * @instance + * @returns {Object.} JSON object + */ + PacketIntervals.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Duration enum. + * @name google.cloud.compute.v1.PacketIntervals.Duration + * @enum {number} + * @property {number} UNDEFINED_DURATION=0 UNDEFINED_DURATION value + * @property {number} DURATION_UNSPECIFIED=529071340 DURATION_UNSPECIFIED value + * @property {number} HOUR=2223588 HOUR value + * @property {number} MAX=76100 MAX value + * @property {number} MINUTE=126786068 MINUTE value + */ + PacketIntervals.Duration = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_DURATION"] = 0; + values[valuesById[529071340] = "DURATION_UNSPECIFIED"] = 529071340; + values[valuesById[2223588] = "HOUR"] = 2223588; + values[valuesById[76100] = "MAX"] = 76100; + values[valuesById[126786068] = "MINUTE"] = 126786068; + return values; + })(); + + /** + * Type enum. + * @name google.cloud.compute.v1.PacketIntervals.Type + * @enum {number} + * @property {number} UNDEFINED_TYPE=0 UNDEFINED_TYPE value + * @property {number} LOOPBACK=356174219 LOOPBACK value + * @property {number} RECEIVE=189660867 RECEIVE value + * @property {number} TRANSMIT=452903600 TRANSMIT value + * @property {number} TYPE_UNSPECIFIED=437714322 TYPE_UNSPECIFIED value + */ + PacketIntervals.Type = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_TYPE"] = 0; + values[valuesById[356174219] = "LOOPBACK"] = 356174219; + values[valuesById[189660867] = "RECEIVE"] = 189660867; + values[valuesById[452903600] = "TRANSMIT"] = 452903600; + values[valuesById[437714322] = "TYPE_UNSPECIFIED"] = 437714322; + return values; + })(); + + return PacketIntervals; + })(); + v1.PacketMirroring = (function() { /** @@ -262922,14 +269999,18 @@ * @name google.cloud.compute.v1.Project.DefaultNetworkTier * @enum {number} * @property {number} UNDEFINED_DEFAULT_NETWORK_TIER=0 UNDEFINED_DEFAULT_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 */ Project.DefaultNetworkTier = (function() { var valuesById = {}, values = Object.create(valuesById); values[valuesById[0] = "UNDEFINED_DEFAULT_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; })(); @@ -264072,14 +271153,18 @@ * @name google.cloud.compute.v1.ProjectsSetDefaultNetworkTierRequest.NetworkTier * @enum {number} * @property {number} UNDEFINED_NETWORK_TIER=0 UNDEFINED_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 */ ProjectsSetDefaultNetworkTierRequest.NetworkTier = (function() { var valuesById = {}, values = Object.create(valuesById); values[valuesById[0] = "UNDEFINED_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; })(); @@ -268082,6 +275167,7 @@ * @property {number} COMMITTED_E2_CPUS=388120154 COMMITTED_E2_CPUS value * @property {number} COMMITTED_LICENSES=357606869 COMMITTED_LICENSES value * @property {number} COMMITTED_LOCAL_SSD_TOTAL_GB=308393480 COMMITTED_LOCAL_SSD_TOTAL_GB value + * @property {number} COMMITTED_M3_CPUS=585985 COMMITTED_M3_CPUS value * @property {number} COMMITTED_MEMORY_OPTIMIZED_CPUS=489057886 COMMITTED_MEMORY_OPTIMIZED_CPUS value * @property {number} COMMITTED_N2A_CPUS=40064304 COMMITTED_N2A_CPUS value * @property {number} COMMITTED_N2D_CPUS=125951757 COMMITTED_N2D_CPUS value @@ -268092,6 +275178,7 @@ * @property {number} COMMITTED_NVIDIA_P4_GPUS=347952897 COMMITTED_NVIDIA_P4_GPUS value * @property {number} COMMITTED_NVIDIA_T4_GPUS=139871237 COMMITTED_NVIDIA_T4_GPUS value * @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} CPUS=2075595 CPUS value * @property {number} CPUS_ALL_REGIONS=470911149 CPUS_ALL_REGIONS value @@ -268102,6 +275189,7 @@ * @property {number} EXTERNAL_VPN_GATEWAYS=272457134 EXTERNAL_VPN_GATEWAYS value * @property {number} FIREWALLS=374485843 FIREWALLS value * @property {number} FORWARDING_RULES=432668949 FORWARDING_RULES value + * @property {number} GLOBAL_EXTERNAL_MANAGED_FORWARDING_RULES=327611949 GLOBAL_EXTERNAL_MANAGED_FORWARDING_RULES value * @property {number} GLOBAL_INTERNAL_ADDRESSES=42738332 GLOBAL_INTERNAL_ADDRESSES value * @property {number} GPUS_ALL_REGIONS=39387177 GPUS_ALL_REGIONS value * @property {number} HEALTH_CHECKS=289347502 HEALTH_CHECKS value @@ -268123,6 +275211,7 @@ * @property {number} LOCAL_SSD_TOTAL_GB=330878021 LOCAL_SSD_TOTAL_GB value * @property {number} M1_CPUS=37203366 M1_CPUS value * @property {number} M2_CPUS=65832517 M2_CPUS value + * @property {number} M3_CPUS=94461668 M3_CPUS value * @property {number} MACHINE_IMAGES=446986640 MACHINE_IMAGES value * @property {number} N2A_CPUS=265855917 N2A_CPUS value * @property {number} N2D_CPUS=351743370 N2D_CPUS value @@ -268176,6 +275265,7 @@ * @property {number} STATIC_ADDRESSES=93624049 STATIC_ADDRESSES value * @property {number} STATIC_BYOIP_ADDRESSES=275809649 STATIC_BYOIP_ADDRESSES value * @property {number} SUBNETWORKS=421330469 SUBNETWORKS value + * @property {number} T2A_CPUS=522170599 T2A_CPUS value * @property {number} T2D_CPUS=71187140 T2D_CPUS value * @property {number} TARGET_HTTPS_PROXIES=219522506 TARGET_HTTPS_PROXIES value * @property {number} TARGET_HTTP_PROXIES=164117155 TARGET_HTTP_PROXIES value @@ -268209,6 +275299,7 @@ values[valuesById[388120154] = "COMMITTED_E2_CPUS"] = 388120154; values[valuesById[357606869] = "COMMITTED_LICENSES"] = 357606869; values[valuesById[308393480] = "COMMITTED_LOCAL_SSD_TOTAL_GB"] = 308393480; + values[valuesById[585985] = "COMMITTED_M3_CPUS"] = 585985; values[valuesById[489057886] = "COMMITTED_MEMORY_OPTIMIZED_CPUS"] = 489057886; values[valuesById[40064304] = "COMMITTED_N2A_CPUS"] = 40064304; values[valuesById[125951757] = "COMMITTED_N2D_CPUS"] = 125951757; @@ -268219,6 +275310,7 @@ values[valuesById[347952897] = "COMMITTED_NVIDIA_P4_GPUS"] = 347952897; values[valuesById[139871237] = "COMMITTED_NVIDIA_T4_GPUS"] = 139871237; values[valuesById[219562] = "COMMITTED_NVIDIA_V100_GPUS"] = 219562; + values[valuesById[296378986] = "COMMITTED_T2A_CPUS"] = 296378986; values[valuesById[382266439] = "COMMITTED_T2D_CPUS"] = 382266439; values[valuesById[2075595] = "CPUS"] = 2075595; values[valuesById[470911149] = "CPUS_ALL_REGIONS"] = 470911149; @@ -268229,6 +275321,7 @@ values[valuesById[272457134] = "EXTERNAL_VPN_GATEWAYS"] = 272457134; values[valuesById[374485843] = "FIREWALLS"] = 374485843; values[valuesById[432668949] = "FORWARDING_RULES"] = 432668949; + values[valuesById[327611949] = "GLOBAL_EXTERNAL_MANAGED_FORWARDING_RULES"] = 327611949; values[valuesById[42738332] = "GLOBAL_INTERNAL_ADDRESSES"] = 42738332; values[valuesById[39387177] = "GPUS_ALL_REGIONS"] = 39387177; values[valuesById[289347502] = "HEALTH_CHECKS"] = 289347502; @@ -268250,6 +275343,7 @@ values[valuesById[330878021] = "LOCAL_SSD_TOTAL_GB"] = 330878021; values[valuesById[37203366] = "M1_CPUS"] = 37203366; values[valuesById[65832517] = "M2_CPUS"] = 65832517; + values[valuesById[94461668] = "M3_CPUS"] = 94461668; values[valuesById[446986640] = "MACHINE_IMAGES"] = 446986640; values[valuesById[265855917] = "N2A_CPUS"] = 265855917; values[valuesById[351743370] = "N2D_CPUS"] = 351743370; @@ -268303,6 +275397,7 @@ values[valuesById[93624049] = "STATIC_ADDRESSES"] = 93624049; values[valuesById[275809649] = "STATIC_BYOIP_ADDRESSES"] = 275809649; values[valuesById[421330469] = "SUBNETWORKS"] = 421330469; + values[valuesById[522170599] = "T2A_CPUS"] = 522170599; values[valuesById[71187140] = "T2D_CPUS"] = 71187140; values[valuesById[219522506] = "TARGET_HTTPS_PROXIES"] = 219522506; values[valuesById[164117155] = "TARGET_HTTP_PROXIES"] = 164117155; @@ -280773,6 +287868,7 @@ * @property {string|null} [name] Reservation name * @property {boolean|null} [satisfiesPzs] Reservation satisfiesPzs * @property {string|null} [selfLink] Reservation selfLink + * @property {google.cloud.compute.v1.IShareSettings|null} [shareSettings] Reservation shareSettings * @property {google.cloud.compute.v1.IAllocationSpecificSKUReservation|null} [specificReservation] Reservation specificReservation * @property {boolean|null} [specificReservationRequired] Reservation specificReservationRequired * @property {string|null} [status] Reservation status @@ -280858,6 +287954,14 @@ */ Reservation.prototype.selfLink = null; + /** + * Reservation shareSettings. + * @member {google.cloud.compute.v1.IShareSettings|null|undefined} shareSettings + * @memberof google.cloud.compute.v1.Reservation + * @instance + */ + Reservation.prototype.shareSettings = null; + /** * Reservation specificReservation. * @member {google.cloud.compute.v1.IAllocationSpecificSKUReservation|null|undefined} specificReservation @@ -280981,6 +288085,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * Reservation _shareSettings. + * @member {"shareSettings"|undefined} _shareSettings + * @memberof google.cloud.compute.v1.Reservation + * @instance + */ + Object.defineProperty(Reservation.prototype, "_shareSettings", { + get: $util.oneOfGetter($oneOfFields = ["shareSettings"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Reservation _specificReservation. * @member {"specificReservation"|undefined} _specificReservation @@ -281063,6 +288178,8 @@ writer.uint32(/* id 181260274, wireType 2 =*/1450082194).string(message.status); if (message.specificReservationRequired != null && Object.hasOwnProperty.call(message, "specificReservationRequired")) writer.uint32(/* id 226550687, wireType 0 =*/1812405496).bool(message.specificReservationRequired); + 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.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")) @@ -281131,6 +288248,9 @@ case 456214797: message.selfLink = reader.string(); break; + case 266668163: + message.shareSettings = $root.google.cloud.compute.v1.ShareSettings.decode(reader, reader.uint32()); + break; case 404901951: message.specificReservation = $root.google.cloud.compute.v1.AllocationSpecificSKUReservation.decode(reader, reader.uint32()); break; @@ -281219,6 +288339,14 @@ if (!$util.isString(message.selfLink)) return "selfLink: string expected"; } + if (message.shareSettings != null && message.hasOwnProperty("shareSettings")) { + properties._shareSettings = 1; + { + var error = $root.google.cloud.compute.v1.ShareSettings.verify(message.shareSettings); + if (error) + return "shareSettings." + error; + } + } if (message.specificReservation != null && message.hasOwnProperty("specificReservation")) { properties._specificReservation = 1; { @@ -281280,6 +288408,11 @@ message.satisfiesPzs = Boolean(object.satisfiesPzs); if (object.selfLink != null) message.selfLink = String(object.selfLink); + if (object.shareSettings != null) { + if (typeof object.shareSettings !== "object") + throw TypeError(".google.cloud.compute.v1.Reservation.shareSettings: object expected"); + message.shareSettings = $root.google.cloud.compute.v1.ShareSettings.fromObject(object.shareSettings); + } if (object.specificReservation != null) { if (typeof object.specificReservation !== "object") throw TypeError(".google.cloud.compute.v1.Reservation.specificReservation: object expected"); @@ -281345,6 +288478,11 @@ if (options.oneofs) object._specificReservationRequired = "specificReservationRequired"; } + if (message.shareSettings != null && message.hasOwnProperty("shareSettings")) { + object.shareSettings = $root.google.cloud.compute.v1.ShareSettings.toObject(message.shareSettings, options); + if (options.oneofs) + object._shareSettings = "shareSettings"; + } if (message.specificReservation != null && message.hasOwnProperty("specificReservation")) { object.specificReservation = $root.google.cloud.compute.v1.AllocationSpecificSKUReservation.toObject(message.specificReservation, options); if (options.oneofs) @@ -290772,6 +297910,279 @@ return ResourcePolicyWeeklyCycleDayOfWeek; })(); + v1.ResumeInstanceRequest = (function() { + + /** + * Properties of a ResumeInstanceRequest. + * @memberof google.cloud.compute.v1 + * @interface IResumeInstanceRequest + * @property {string|null} [instance] ResumeInstanceRequest instance + * @property {string|null} [project] ResumeInstanceRequest project + * @property {string|null} [requestId] ResumeInstanceRequest requestId + * @property {string|null} [zone] ResumeInstanceRequest zone + */ + + /** + * Constructs a new ResumeInstanceRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a ResumeInstanceRequest. + * @implements IResumeInstanceRequest + * @constructor + * @param {google.cloud.compute.v1.IResumeInstanceRequest=} [properties] Properties to set + */ + function ResumeInstanceRequest(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]]; + } + + /** + * ResumeInstanceRequest instance. + * @member {string} instance + * @memberof google.cloud.compute.v1.ResumeInstanceRequest + * @instance + */ + ResumeInstanceRequest.prototype.instance = ""; + + /** + * ResumeInstanceRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.ResumeInstanceRequest + * @instance + */ + ResumeInstanceRequest.prototype.project = ""; + + /** + * ResumeInstanceRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1.ResumeInstanceRequest + * @instance + */ + ResumeInstanceRequest.prototype.requestId = null; + + /** + * ResumeInstanceRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1.ResumeInstanceRequest + * @instance + */ + ResumeInstanceRequest.prototype.zone = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ResumeInstanceRequest _requestId. + * @member {"requestId"|undefined} _requestId + * @memberof google.cloud.compute.v1.ResumeInstanceRequest + * @instance + */ + Object.defineProperty(ResumeInstanceRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ResumeInstanceRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.ResumeInstanceRequest + * @static + * @param {google.cloud.compute.v1.IResumeInstanceRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ResumeInstanceRequest} ResumeInstanceRequest instance + */ + ResumeInstanceRequest.create = function create(properties) { + return new ResumeInstanceRequest(properties); + }; + + /** + * Encodes the specified ResumeInstanceRequest message. Does not implicitly {@link google.cloud.compute.v1.ResumeInstanceRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.ResumeInstanceRequest + * @static + * @param {google.cloud.compute.v1.IResumeInstanceRequest} message ResumeInstanceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResumeInstanceRequest.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 ResumeInstanceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ResumeInstanceRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.ResumeInstanceRequest + * @static + * @param {google.cloud.compute.v1.IResumeInstanceRequest} message ResumeInstanceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResumeInstanceRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ResumeInstanceRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.ResumeInstanceRequest + * @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.ResumeInstanceRequest} ResumeInstanceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResumeInstanceRequest.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.ResumeInstanceRequest(); + 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 ResumeInstanceRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.ResumeInstanceRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.ResumeInstanceRequest} ResumeInstanceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResumeInstanceRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ResumeInstanceRequest message. + * @function verify + * @memberof google.cloud.compute.v1.ResumeInstanceRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ResumeInstanceRequest.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 ResumeInstanceRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.ResumeInstanceRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.ResumeInstanceRequest} ResumeInstanceRequest + */ + ResumeInstanceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ResumeInstanceRequest) + return object; + var message = new $root.google.cloud.compute.v1.ResumeInstanceRequest(); + 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 ResumeInstanceRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.ResumeInstanceRequest + * @static + * @param {google.cloud.compute.v1.ResumeInstanceRequest} message ResumeInstanceRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ResumeInstanceRequest.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 ResumeInstanceRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.ResumeInstanceRequest + * @instance + * @returns {Object.} JSON object + */ + ResumeInstanceRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ResumeInstanceRequest; + })(); + v1.Route = (function() { /** @@ -294194,12 +301605,15 @@ * @property {number|null} [advertisedRoutePriority] RouterBgpPeer advertisedRoutePriority * @property {google.cloud.compute.v1.IRouterBgpPeerBfd|null} [bfd] RouterBgpPeer bfd * @property {string|null} [enable] RouterBgpPeer enable + * @property {boolean|null} [enableIpv6] RouterBgpPeer enableIpv6 * @property {string|null} [interfaceName] RouterBgpPeer interfaceName * @property {string|null} [ipAddress] RouterBgpPeer ipAddress + * @property {string|null} [ipv6NexthopAddress] RouterBgpPeer ipv6NexthopAddress * @property {string|null} [managementType] RouterBgpPeer managementType * @property {string|null} [name] RouterBgpPeer name * @property {number|null} [peerAsn] RouterBgpPeer peerAsn * @property {string|null} [peerIpAddress] RouterBgpPeer peerIpAddress + * @property {string|null} [peerIpv6NexthopAddress] RouterBgpPeer peerIpv6NexthopAddress * @property {string|null} [routerApplianceInstance] RouterBgpPeer routerApplianceInstance */ @@ -294268,6 +301682,14 @@ */ RouterBgpPeer.prototype.enable = null; + /** + * RouterBgpPeer enableIpv6. + * @member {boolean|null|undefined} enableIpv6 + * @memberof google.cloud.compute.v1.RouterBgpPeer + * @instance + */ + RouterBgpPeer.prototype.enableIpv6 = null; + /** * RouterBgpPeer interfaceName. * @member {string|null|undefined} interfaceName @@ -294284,6 +301706,14 @@ */ RouterBgpPeer.prototype.ipAddress = null; + /** + * RouterBgpPeer ipv6NexthopAddress. + * @member {string|null|undefined} ipv6NexthopAddress + * @memberof google.cloud.compute.v1.RouterBgpPeer + * @instance + */ + RouterBgpPeer.prototype.ipv6NexthopAddress = null; + /** * RouterBgpPeer managementType. * @member {string|null|undefined} managementType @@ -294316,6 +301746,14 @@ */ RouterBgpPeer.prototype.peerIpAddress = null; + /** + * RouterBgpPeer peerIpv6NexthopAddress. + * @member {string|null|undefined} peerIpv6NexthopAddress + * @memberof google.cloud.compute.v1.RouterBgpPeer + * @instance + */ + RouterBgpPeer.prototype.peerIpv6NexthopAddress = null; + /** * RouterBgpPeer routerApplianceInstance. * @member {string|null|undefined} routerApplianceInstance @@ -294371,6 +301809,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * RouterBgpPeer _enableIpv6. + * @member {"enableIpv6"|undefined} _enableIpv6 + * @memberof google.cloud.compute.v1.RouterBgpPeer + * @instance + */ + Object.defineProperty(RouterBgpPeer.prototype, "_enableIpv6", { + get: $util.oneOfGetter($oneOfFields = ["enableIpv6"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * RouterBgpPeer _interfaceName. * @member {"interfaceName"|undefined} _interfaceName @@ -294393,6 +301842,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * RouterBgpPeer _ipv6NexthopAddress. + * @member {"ipv6NexthopAddress"|undefined} _ipv6NexthopAddress + * @memberof google.cloud.compute.v1.RouterBgpPeer + * @instance + */ + Object.defineProperty(RouterBgpPeer.prototype, "_ipv6NexthopAddress", { + get: $util.oneOfGetter($oneOfFields = ["ipv6NexthopAddress"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * RouterBgpPeer _managementType. * @member {"managementType"|undefined} _managementType @@ -294437,6 +301897,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * RouterBgpPeer _peerIpv6NexthopAddress. + * @member {"peerIpv6NexthopAddress"|undefined} _peerIpv6NexthopAddress + * @memberof google.cloud.compute.v1.RouterBgpPeer + * @instance + */ + Object.defineProperty(RouterBgpPeer.prototype, "_peerIpv6NexthopAddress", { + get: $util.oneOfGetter($oneOfFields = ["peerIpv6NexthopAddress"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * RouterBgpPeer _routerApplianceInstance. * @member {"routerApplianceInstance"|undefined} _routerApplianceInstance @@ -294479,6 +301950,8 @@ if (message.advertisedGroups != null && message.advertisedGroups.length) for (var i = 0; i < message.advertisedGroups.length; ++i) writer.uint32(/* id 21065526, wireType 2 =*/168524210).string(message.advertisedGroups[i]); + if (message.ipv6NexthopAddress != null && Object.hasOwnProperty.call(message, "ipv6NexthopAddress")) + writer.uint32(/* id 27968211, wireType 2 =*/223745690).string(message.ipv6NexthopAddress); if (message.advertisedIpRanges != null && message.advertisedIpRanges.length) for (var i = 0; i < message.advertisedIpRanges.length; ++i) $root.google.cloud.compute.v1.RouterAdvertisedIpRange.encode(message.advertisedIpRanges[i], writer.uint32(/* id 35449932, wireType 2 =*/283599458).fork()).ldelim(); @@ -294486,6 +301959,8 @@ writer.uint32(/* id 69573151, wireType 0 =*/556585208).uint32(message.peerAsn); if (message.managementType != null && Object.hasOwnProperty.call(message, "managementType")) writer.uint32(/* id 173703606, wireType 2 =*/1389628850).string(message.managementType); + if (message.enableIpv6 != null && Object.hasOwnProperty.call(message, "enableIpv6")) + writer.uint32(/* id 181467939, wireType 0 =*/1451743512).bool(message.enableIpv6); if (message.advertisedRoutePriority != null && Object.hasOwnProperty.call(message, "advertisedRoutePriority")) writer.uint32(/* id 186486332, wireType 0 =*/1491890656).uint32(message.advertisedRoutePriority); if (message.peerIpAddress != null && Object.hasOwnProperty.call(message, "peerIpAddress")) @@ -294500,6 +301975,8 @@ writer.uint32(/* id 437854673, wireType 2 =*/3502837386).string(message.interfaceName); if (message.routerApplianceInstance != null && Object.hasOwnProperty.call(message, "routerApplianceInstance")) writer.uint32(/* id 468312989, wireType 2 =*/3746503914).string(message.routerApplianceInstance); + if (message.peerIpv6NexthopAddress != null && Object.hasOwnProperty.call(message, "peerIpv6NexthopAddress")) + writer.uint32(/* id 491486608, wireType 2 =*/3931892866).string(message.peerIpv6NexthopAddress); return writer; }; @@ -294556,12 +302033,18 @@ case 311764355: message.enable = reader.string(); break; + case 181467939: + message.enableIpv6 = reader.bool(); + break; case 437854673: message.interfaceName = reader.string(); break; case 406272220: message.ipAddress = reader.string(); break; + case 27968211: + message.ipv6NexthopAddress = reader.string(); + break; case 173703606: message.managementType = reader.string(); break; @@ -294574,6 +302057,9 @@ case 207735769: message.peerIpAddress = reader.string(); break; + case 491486608: + message.peerIpv6NexthopAddress = reader.string(); + break; case 468312989: message.routerApplianceInstance = reader.string(); break; @@ -294652,6 +302138,11 @@ if (!$util.isString(message.enable)) return "enable: string expected"; } + if (message.enableIpv6 != null && message.hasOwnProperty("enableIpv6")) { + properties._enableIpv6 = 1; + if (typeof message.enableIpv6 !== "boolean") + return "enableIpv6: boolean expected"; + } if (message.interfaceName != null && message.hasOwnProperty("interfaceName")) { properties._interfaceName = 1; if (!$util.isString(message.interfaceName)) @@ -294662,6 +302153,11 @@ if (!$util.isString(message.ipAddress)) return "ipAddress: string expected"; } + if (message.ipv6NexthopAddress != null && message.hasOwnProperty("ipv6NexthopAddress")) { + properties._ipv6NexthopAddress = 1; + if (!$util.isString(message.ipv6NexthopAddress)) + return "ipv6NexthopAddress: string expected"; + } if (message.managementType != null && message.hasOwnProperty("managementType")) { properties._managementType = 1; if (!$util.isString(message.managementType)) @@ -294682,6 +302178,11 @@ if (!$util.isString(message.peerIpAddress)) return "peerIpAddress: string expected"; } + if (message.peerIpv6NexthopAddress != null && message.hasOwnProperty("peerIpv6NexthopAddress")) { + properties._peerIpv6NexthopAddress = 1; + if (!$util.isString(message.peerIpv6NexthopAddress)) + return "peerIpv6NexthopAddress: string expected"; + } if (message.routerApplianceInstance != null && message.hasOwnProperty("routerApplianceInstance")) { properties._routerApplianceInstance = 1; if (!$util.isString(message.routerApplianceInstance)) @@ -294730,10 +302231,14 @@ } if (object.enable != null) message.enable = String(object.enable); + if (object.enableIpv6 != null) + message.enableIpv6 = Boolean(object.enableIpv6); if (object.interfaceName != null) message.interfaceName = String(object.interfaceName); if (object.ipAddress != null) message.ipAddress = String(object.ipAddress); + if (object.ipv6NexthopAddress != null) + message.ipv6NexthopAddress = String(object.ipv6NexthopAddress); if (object.managementType != null) message.managementType = String(object.managementType); if (object.name != null) @@ -294742,6 +302247,8 @@ message.peerAsn = object.peerAsn >>> 0; if (object.peerIpAddress != null) message.peerIpAddress = String(object.peerIpAddress); + if (object.peerIpv6NexthopAddress != null) + message.peerIpv6NexthopAddress = String(object.peerIpv6NexthopAddress); if (object.routerApplianceInstance != null) message.routerApplianceInstance = String(object.routerApplianceInstance); return message; @@ -294779,6 +302286,11 @@ for (var j = 0; j < message.advertisedGroups.length; ++j) object.advertisedGroups[j] = message.advertisedGroups[j]; } + if (message.ipv6NexthopAddress != null && message.hasOwnProperty("ipv6NexthopAddress")) { + object.ipv6NexthopAddress = message.ipv6NexthopAddress; + if (options.oneofs) + object._ipv6NexthopAddress = "ipv6NexthopAddress"; + } if (message.advertisedIpRanges && message.advertisedIpRanges.length) { object.advertisedIpRanges = []; for (var j = 0; j < message.advertisedIpRanges.length; ++j) @@ -294794,6 +302306,11 @@ if (options.oneofs) object._managementType = "managementType"; } + if (message.enableIpv6 != null && message.hasOwnProperty("enableIpv6")) { + object.enableIpv6 = message.enableIpv6; + if (options.oneofs) + object._enableIpv6 = "enableIpv6"; + } if (message.advertisedRoutePriority != null && message.hasOwnProperty("advertisedRoutePriority")) { object.advertisedRoutePriority = message.advertisedRoutePriority; if (options.oneofs) @@ -294829,6 +302346,11 @@ if (options.oneofs) object._routerApplianceInstance = "routerApplianceInstance"; } + if (message.peerIpv6NexthopAddress != null && message.hasOwnProperty("peerIpv6NexthopAddress")) { + object.peerIpv6NexthopAddress = message.peerIpv6NexthopAddress; + if (options.oneofs) + object._peerIpv6NexthopAddress = "peerIpv6NexthopAddress"; + } return object; }; @@ -296132,9 +303654,11 @@ * @memberof google.cloud.compute.v1 * @interface IRouterNat * @property {Array.|null} [drainNatIps] RouterNat drainNatIps + * @property {boolean|null} [enableDynamicPortAllocation] RouterNat enableDynamicPortAllocation * @property {boolean|null} [enableEndpointIndependentMapping] RouterNat enableEndpointIndependentMapping * @property {number|null} [icmpIdleTimeoutSec] RouterNat icmpIdleTimeoutSec * @property {google.cloud.compute.v1.IRouterNatLogConfig|null} [logConfig] RouterNat logConfig + * @property {number|null} [maxPortsPerVm] RouterNat maxPortsPerVm * @property {number|null} [minPortsPerVm] RouterNat minPortsPerVm * @property {string|null} [name] RouterNat name * @property {string|null} [natIpAllocateOption] RouterNat natIpAllocateOption @@ -296175,6 +303699,14 @@ */ RouterNat.prototype.drainNatIps = $util.emptyArray; + /** + * RouterNat enableDynamicPortAllocation. + * @member {boolean|null|undefined} enableDynamicPortAllocation + * @memberof google.cloud.compute.v1.RouterNat + * @instance + */ + RouterNat.prototype.enableDynamicPortAllocation = null; + /** * RouterNat enableEndpointIndependentMapping. * @member {boolean|null|undefined} enableEndpointIndependentMapping @@ -296199,6 +303731,14 @@ */ RouterNat.prototype.logConfig = null; + /** + * RouterNat maxPortsPerVm. + * @member {number|null|undefined} maxPortsPerVm + * @memberof google.cloud.compute.v1.RouterNat + * @instance + */ + RouterNat.prototype.maxPortsPerVm = null; + /** * RouterNat minPortsPerVm. * @member {number|null|undefined} minPortsPerVm @@ -296290,6 +303830,17 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; + /** + * RouterNat _enableDynamicPortAllocation. + * @member {"enableDynamicPortAllocation"|undefined} _enableDynamicPortAllocation + * @memberof google.cloud.compute.v1.RouterNat + * @instance + */ + Object.defineProperty(RouterNat.prototype, "_enableDynamicPortAllocation", { + get: $util.oneOfGetter($oneOfFields = ["enableDynamicPortAllocation"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * RouterNat _enableEndpointIndependentMapping. * @member {"enableEndpointIndependentMapping"|undefined} _enableEndpointIndependentMapping @@ -296323,6 +303874,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * RouterNat _maxPortsPerVm. + * @member {"maxPortsPerVm"|undefined} _maxPortsPerVm + * @memberof google.cloud.compute.v1.RouterNat + * @instance + */ + Object.defineProperty(RouterNat.prototype, "_maxPortsPerVm", { + get: $util.oneOfGetter($oneOfFields = ["maxPortsPerVm"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * RouterNat _minPortsPerVm. * @member {"minPortsPerVm"|undefined} _minPortsPerVm @@ -296453,6 +304015,8 @@ writer.uint32(/* id 205028774, wireType 0 =*/1640230192).int32(message.tcpTransitoryIdleTimeoutSec); if (message.tcpEstablishedIdleTimeoutSec != null && Object.hasOwnProperty.call(message, "tcpEstablishedIdleTimeoutSec")) writer.uint32(/* id 223098349, wireType 0 =*/1784786792).int32(message.tcpEstablishedIdleTimeoutSec); + if (message.maxPortsPerVm != null && Object.hasOwnProperty.call(message, "maxPortsPerVm")) + writer.uint32(/* id 250062049, wireType 0 =*/2000496392).int32(message.maxPortsPerVm); if (message.sourceSubnetworkIpRangesToNat != null && Object.hasOwnProperty.call(message, "sourceSubnetworkIpRangesToNat")) writer.uint32(/* id 252213211, wireType 2 =*/2017705690).string(message.sourceSubnetworkIpRangesToNat); if (message.enableEndpointIndependentMapping != null && Object.hasOwnProperty.call(message, "enableEndpointIndependentMapping")) @@ -296469,6 +304033,8 @@ writer.uint32(/* id 504078535, wireType 2 =*/4032628282).string(message.drainNatIps[i]); if (message.tcpTimeWaitTimeoutSec != null && Object.hasOwnProperty.call(message, "tcpTimeWaitTimeoutSec")) writer.uint32(/* id 513596925, wireType 0 =*/4108775400).int32(message.tcpTimeWaitTimeoutSec); + if (message.enableDynamicPortAllocation != null && Object.hasOwnProperty.call(message, "enableDynamicPortAllocation")) + writer.uint32(/* id 532106402, wireType 0 =*/4256851216).bool(message.enableDynamicPortAllocation); return writer; }; @@ -296508,6 +304074,9 @@ message.drainNatIps = []; message.drainNatIps.push(reader.string()); break; + case 532106402: + message.enableDynamicPortAllocation = reader.bool(); + break; case 259441819: message.enableEndpointIndependentMapping = reader.bool(); break; @@ -296517,6 +304086,9 @@ case 351299741: message.logConfig = $root.google.cloud.compute.v1.RouterNatLogConfig.decode(reader, reader.uint32()); break; + case 250062049: + message.maxPortsPerVm = reader.int32(); + break; case 186193587: message.minPortsPerVm = reader.int32(); break; @@ -296599,6 +304171,11 @@ if (!$util.isString(message.drainNatIps[i])) return "drainNatIps: string[] expected"; } + if (message.enableDynamicPortAllocation != null && message.hasOwnProperty("enableDynamicPortAllocation")) { + properties._enableDynamicPortAllocation = 1; + if (typeof message.enableDynamicPortAllocation !== "boolean") + return "enableDynamicPortAllocation: boolean expected"; + } if (message.enableEndpointIndependentMapping != null && message.hasOwnProperty("enableEndpointIndependentMapping")) { properties._enableEndpointIndependentMapping = 1; if (typeof message.enableEndpointIndependentMapping !== "boolean") @@ -296617,6 +304194,11 @@ return "logConfig." + error; } } + if (message.maxPortsPerVm != null && message.hasOwnProperty("maxPortsPerVm")) { + properties._maxPortsPerVm = 1; + if (!$util.isInteger(message.maxPortsPerVm)) + return "maxPortsPerVm: integer expected"; + } if (message.minPortsPerVm != null && message.hasOwnProperty("minPortsPerVm")) { properties._minPortsPerVm = 1; if (!$util.isInteger(message.minPortsPerVm)) @@ -296704,6 +304286,8 @@ for (var i = 0; i < object.drainNatIps.length; ++i) message.drainNatIps[i] = String(object.drainNatIps[i]); } + if (object.enableDynamicPortAllocation != null) + message.enableDynamicPortAllocation = Boolean(object.enableDynamicPortAllocation); if (object.enableEndpointIndependentMapping != null) message.enableEndpointIndependentMapping = Boolean(object.enableEndpointIndependentMapping); if (object.icmpIdleTimeoutSec != null) @@ -296713,6 +304297,8 @@ throw TypeError(".google.cloud.compute.v1.RouterNat.logConfig: object expected"); message.logConfig = $root.google.cloud.compute.v1.RouterNatLogConfig.fromObject(object.logConfig); } + if (object.maxPortsPerVm != null) + message.maxPortsPerVm = object.maxPortsPerVm | 0; if (object.minPortsPerVm != null) message.minPortsPerVm = object.minPortsPerVm | 0; if (object.name != null) @@ -296818,6 +304404,11 @@ if (options.oneofs) object._tcpEstablishedIdleTimeoutSec = "tcpEstablishedIdleTimeoutSec"; } + if (message.maxPortsPerVm != null && message.hasOwnProperty("maxPortsPerVm")) { + object.maxPortsPerVm = message.maxPortsPerVm; + if (options.oneofs) + object._maxPortsPerVm = "maxPortsPerVm"; + } if (message.sourceSubnetworkIpRangesToNat != null && message.hasOwnProperty("sourceSubnetworkIpRangesToNat")) { object.sourceSubnetworkIpRangesToNat = message.sourceSubnetworkIpRangesToNat; if (options.oneofs) @@ -296853,6 +304444,11 @@ if (options.oneofs) object._tcpTimeWaitTimeoutSec = "tcpTimeWaitTimeoutSec"; } + if (message.enableDynamicPortAllocation != null && message.hasOwnProperty("enableDynamicPortAllocation")) { + object.enableDynamicPortAllocation = message.enableDynamicPortAllocation; + if (options.oneofs) + object._enableDynamicPortAllocation = "enableDynamicPortAllocation"; + } return object; }; @@ -298415,6 +306011,7 @@ * @memberof google.cloud.compute.v1 * @interface IRouterStatusBgpPeerStatus * @property {Array.|null} [advertisedRoutes] RouterStatusBgpPeerStatus advertisedRoutes + * @property {google.cloud.compute.v1.IBfdStatus|null} [bfdStatus] RouterStatusBgpPeerStatus bfdStatus * @property {string|null} [ipAddress] RouterStatusBgpPeerStatus ipAddress * @property {string|null} [linkedVpnTunnel] RouterStatusBgpPeerStatus linkedVpnTunnel * @property {string|null} [name] RouterStatusBgpPeerStatus name @@ -298451,6 +306048,14 @@ */ RouterStatusBgpPeerStatus.prototype.advertisedRoutes = $util.emptyArray; + /** + * RouterStatusBgpPeerStatus bfdStatus. + * @member {google.cloud.compute.v1.IBfdStatus|null|undefined} bfdStatus + * @memberof google.cloud.compute.v1.RouterStatusBgpPeerStatus + * @instance + */ + RouterStatusBgpPeerStatus.prototype.bfdStatus = null; + /** * RouterStatusBgpPeerStatus ipAddress. * @member {string|null|undefined} ipAddress @@ -298534,6 +306139,17 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; + /** + * RouterStatusBgpPeerStatus _bfdStatus. + * @member {"bfdStatus"|undefined} _bfdStatus + * @memberof google.cloud.compute.v1.RouterStatusBgpPeerStatus + * @instance + */ + Object.defineProperty(RouterStatusBgpPeerStatus.prototype, "_bfdStatus", { + get: $util.oneOfGetter($oneOfFields = ["bfdStatus"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * RouterStatusBgpPeerStatus _ipAddress. * @member {"ipAddress"|undefined} _ipAddress @@ -298687,6 +306303,8 @@ $root.google.cloud.compute.v1.Route.encode(message.advertisedRoutes[i], writer.uint32(/* id 333393068, wireType 2 =*/2667144546).fork()).ldelim(); if (message.linkedVpnTunnel != null && Object.hasOwnProperty.call(message, "linkedVpnTunnel")) writer.uint32(/* id 352296953, wireType 2 =*/2818375626).string(message.linkedVpnTunnel); + if (message.bfdStatus != null && Object.hasOwnProperty.call(message, "bfdStatus")) + $root.google.cloud.compute.v1.BfdStatus.encode(message.bfdStatus, writer.uint32(/* id 395631729, wireType 2 =*/3165053834).fork()).ldelim(); if (message.ipAddress != null && Object.hasOwnProperty.call(message, "ipAddress")) writer.uint32(/* id 406272220, wireType 2 =*/3250177762).string(message.ipAddress); if (message.routerApplianceInstance != null && Object.hasOwnProperty.call(message, "routerApplianceInstance")) @@ -298730,6 +306348,9 @@ message.advertisedRoutes = []; message.advertisedRoutes.push($root.google.cloud.compute.v1.Route.decode(reader, reader.uint32())); break; + case 395631729: + message.bfdStatus = $root.google.cloud.compute.v1.BfdStatus.decode(reader, reader.uint32()); + break; case 406272220: message.ipAddress = reader.string(); break; @@ -298805,6 +306426,14 @@ return "advertisedRoutes." + error; } } + if (message.bfdStatus != null && message.hasOwnProperty("bfdStatus")) { + properties._bfdStatus = 1; + { + var error = $root.google.cloud.compute.v1.BfdStatus.verify(message.bfdStatus); + if (error) + return "bfdStatus." + error; + } + } if (message.ipAddress != null && message.hasOwnProperty("ipAddress")) { properties._ipAddress = 1; if (!$util.isString(message.ipAddress)) @@ -298880,6 +306509,11 @@ message.advertisedRoutes[i] = $root.google.cloud.compute.v1.Route.fromObject(object.advertisedRoutes[i]); } } + if (object.bfdStatus != null) { + if (typeof object.bfdStatus !== "object") + throw TypeError(".google.cloud.compute.v1.RouterStatusBgpPeerStatus.bfdStatus: object expected"); + message.bfdStatus = $root.google.cloud.compute.v1.BfdStatus.fromObject(object.bfdStatus); + } if (object.ipAddress != null) message.ipAddress = String(object.ipAddress); if (object.linkedVpnTunnel != null) @@ -298963,6 +306597,11 @@ if (options.oneofs) object._linkedVpnTunnel = "linkedVpnTunnel"; } + if (message.bfdStatus != null && message.hasOwnProperty("bfdStatus")) { + object.bfdStatus = $root.google.cloud.compute.v1.BfdStatus.toObject(message.bfdStatus, options); + if (options.oneofs) + object._bfdStatus = "bfdStatus"; + } if (message.ipAddress != null && message.hasOwnProperty("ipAddress")) { object.ipAddress = message.ipAddress; if (options.oneofs) @@ -301485,6 +309124,1207 @@ return SSLHealthCheck; })(); + v1.SavedAttachedDisk = (function() { + + /** + * Properties of a SavedAttachedDisk. + * @memberof google.cloud.compute.v1 + * @interface ISavedAttachedDisk + * @property {boolean|null} [autoDelete] SavedAttachedDisk autoDelete + * @property {boolean|null} [boot] SavedAttachedDisk boot + * @property {string|null} [deviceName] SavedAttachedDisk deviceName + * @property {google.cloud.compute.v1.ICustomerEncryptionKey|null} [diskEncryptionKey] SavedAttachedDisk diskEncryptionKey + * @property {number|Long|null} [diskSizeGb] SavedAttachedDisk diskSizeGb + * @property {string|null} [diskType] SavedAttachedDisk diskType + * @property {Array.|null} [guestOsFeatures] SavedAttachedDisk guestOsFeatures + * @property {number|null} [index] SavedAttachedDisk index + * @property {string|null} ["interface"] SavedAttachedDisk interface + * @property {string|null} [kind] SavedAttachedDisk kind + * @property {Array.|null} [licenses] SavedAttachedDisk licenses + * @property {string|null} [mode] SavedAttachedDisk mode + * @property {string|null} [source] SavedAttachedDisk source + * @property {number|Long|null} [storageBytes] SavedAttachedDisk storageBytes + * @property {string|null} [storageBytesStatus] SavedAttachedDisk storageBytesStatus + * @property {string|null} [type] SavedAttachedDisk type + */ + + /** + * Constructs a new SavedAttachedDisk. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a SavedAttachedDisk. + * @implements ISavedAttachedDisk + * @constructor + * @param {google.cloud.compute.v1.ISavedAttachedDisk=} [properties] Properties to set + */ + function SavedAttachedDisk(properties) { + this.guestOsFeatures = []; + this.licenses = []; + 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]]; + } + + /** + * SavedAttachedDisk autoDelete. + * @member {boolean|null|undefined} autoDelete + * @memberof google.cloud.compute.v1.SavedAttachedDisk + * @instance + */ + SavedAttachedDisk.prototype.autoDelete = null; + + /** + * SavedAttachedDisk boot. + * @member {boolean|null|undefined} boot + * @memberof google.cloud.compute.v1.SavedAttachedDisk + * @instance + */ + SavedAttachedDisk.prototype.boot = null; + + /** + * SavedAttachedDisk deviceName. + * @member {string|null|undefined} deviceName + * @memberof google.cloud.compute.v1.SavedAttachedDisk + * @instance + */ + SavedAttachedDisk.prototype.deviceName = null; + + /** + * SavedAttachedDisk diskEncryptionKey. + * @member {google.cloud.compute.v1.ICustomerEncryptionKey|null|undefined} diskEncryptionKey + * @memberof google.cloud.compute.v1.SavedAttachedDisk + * @instance + */ + SavedAttachedDisk.prototype.diskEncryptionKey = null; + + /** + * SavedAttachedDisk diskSizeGb. + * @member {number|Long|null|undefined} diskSizeGb + * @memberof google.cloud.compute.v1.SavedAttachedDisk + * @instance + */ + SavedAttachedDisk.prototype.diskSizeGb = null; + + /** + * SavedAttachedDisk diskType. + * @member {string|null|undefined} diskType + * @memberof google.cloud.compute.v1.SavedAttachedDisk + * @instance + */ + SavedAttachedDisk.prototype.diskType = null; + + /** + * SavedAttachedDisk guestOsFeatures. + * @member {Array.} guestOsFeatures + * @memberof google.cloud.compute.v1.SavedAttachedDisk + * @instance + */ + SavedAttachedDisk.prototype.guestOsFeatures = $util.emptyArray; + + /** + * SavedAttachedDisk index. + * @member {number|null|undefined} index + * @memberof google.cloud.compute.v1.SavedAttachedDisk + * @instance + */ + SavedAttachedDisk.prototype.index = null; + + /** + * SavedAttachedDisk interface. + * @member {string|null|undefined} interface + * @memberof google.cloud.compute.v1.SavedAttachedDisk + * @instance + */ + SavedAttachedDisk.prototype["interface"] = null; + + /** + * SavedAttachedDisk kind. + * @member {string|null|undefined} kind + * @memberof google.cloud.compute.v1.SavedAttachedDisk + * @instance + */ + SavedAttachedDisk.prototype.kind = null; + + /** + * SavedAttachedDisk licenses. + * @member {Array.} licenses + * @memberof google.cloud.compute.v1.SavedAttachedDisk + * @instance + */ + SavedAttachedDisk.prototype.licenses = $util.emptyArray; + + /** + * SavedAttachedDisk mode. + * @member {string|null|undefined} mode + * @memberof google.cloud.compute.v1.SavedAttachedDisk + * @instance + */ + SavedAttachedDisk.prototype.mode = null; + + /** + * SavedAttachedDisk source. + * @member {string|null|undefined} source + * @memberof google.cloud.compute.v1.SavedAttachedDisk + * @instance + */ + SavedAttachedDisk.prototype.source = null; + + /** + * SavedAttachedDisk storageBytes. + * @member {number|Long|null|undefined} storageBytes + * @memberof google.cloud.compute.v1.SavedAttachedDisk + * @instance + */ + SavedAttachedDisk.prototype.storageBytes = null; + + /** + * SavedAttachedDisk storageBytesStatus. + * @member {string|null|undefined} storageBytesStatus + * @memberof google.cloud.compute.v1.SavedAttachedDisk + * @instance + */ + SavedAttachedDisk.prototype.storageBytesStatus = null; + + /** + * SavedAttachedDisk type. + * @member {string|null|undefined} type + * @memberof google.cloud.compute.v1.SavedAttachedDisk + * @instance + */ + SavedAttachedDisk.prototype.type = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * SavedAttachedDisk _autoDelete. + * @member {"autoDelete"|undefined} _autoDelete + * @memberof google.cloud.compute.v1.SavedAttachedDisk + * @instance + */ + Object.defineProperty(SavedAttachedDisk.prototype, "_autoDelete", { + get: $util.oneOfGetter($oneOfFields = ["autoDelete"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SavedAttachedDisk _boot. + * @member {"boot"|undefined} _boot + * @memberof google.cloud.compute.v1.SavedAttachedDisk + * @instance + */ + Object.defineProperty(SavedAttachedDisk.prototype, "_boot", { + get: $util.oneOfGetter($oneOfFields = ["boot"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SavedAttachedDisk _deviceName. + * @member {"deviceName"|undefined} _deviceName + * @memberof google.cloud.compute.v1.SavedAttachedDisk + * @instance + */ + Object.defineProperty(SavedAttachedDisk.prototype, "_deviceName", { + get: $util.oneOfGetter($oneOfFields = ["deviceName"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SavedAttachedDisk _diskEncryptionKey. + * @member {"diskEncryptionKey"|undefined} _diskEncryptionKey + * @memberof google.cloud.compute.v1.SavedAttachedDisk + * @instance + */ + Object.defineProperty(SavedAttachedDisk.prototype, "_diskEncryptionKey", { + get: $util.oneOfGetter($oneOfFields = ["diskEncryptionKey"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SavedAttachedDisk _diskSizeGb. + * @member {"diskSizeGb"|undefined} _diskSizeGb + * @memberof google.cloud.compute.v1.SavedAttachedDisk + * @instance + */ + Object.defineProperty(SavedAttachedDisk.prototype, "_diskSizeGb", { + get: $util.oneOfGetter($oneOfFields = ["diskSizeGb"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SavedAttachedDisk _diskType. + * @member {"diskType"|undefined} _diskType + * @memberof google.cloud.compute.v1.SavedAttachedDisk + * @instance + */ + Object.defineProperty(SavedAttachedDisk.prototype, "_diskType", { + get: $util.oneOfGetter($oneOfFields = ["diskType"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SavedAttachedDisk _index. + * @member {"index"|undefined} _index + * @memberof google.cloud.compute.v1.SavedAttachedDisk + * @instance + */ + Object.defineProperty(SavedAttachedDisk.prototype, "_index", { + get: $util.oneOfGetter($oneOfFields = ["index"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SavedAttachedDisk _interface. + * @member {"interface"|undefined} _interface + * @memberof google.cloud.compute.v1.SavedAttachedDisk + * @instance + */ + Object.defineProperty(SavedAttachedDisk.prototype, "_interface", { + get: $util.oneOfGetter($oneOfFields = ["interface"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SavedAttachedDisk _kind. + * @member {"kind"|undefined} _kind + * @memberof google.cloud.compute.v1.SavedAttachedDisk + * @instance + */ + Object.defineProperty(SavedAttachedDisk.prototype, "_kind", { + get: $util.oneOfGetter($oneOfFields = ["kind"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SavedAttachedDisk _mode. + * @member {"mode"|undefined} _mode + * @memberof google.cloud.compute.v1.SavedAttachedDisk + * @instance + */ + Object.defineProperty(SavedAttachedDisk.prototype, "_mode", { + get: $util.oneOfGetter($oneOfFields = ["mode"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SavedAttachedDisk _source. + * @member {"source"|undefined} _source + * @memberof google.cloud.compute.v1.SavedAttachedDisk + * @instance + */ + Object.defineProperty(SavedAttachedDisk.prototype, "_source", { + get: $util.oneOfGetter($oneOfFields = ["source"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SavedAttachedDisk _storageBytes. + * @member {"storageBytes"|undefined} _storageBytes + * @memberof google.cloud.compute.v1.SavedAttachedDisk + * @instance + */ + Object.defineProperty(SavedAttachedDisk.prototype, "_storageBytes", { + get: $util.oneOfGetter($oneOfFields = ["storageBytes"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SavedAttachedDisk _storageBytesStatus. + * @member {"storageBytesStatus"|undefined} _storageBytesStatus + * @memberof google.cloud.compute.v1.SavedAttachedDisk + * @instance + */ + Object.defineProperty(SavedAttachedDisk.prototype, "_storageBytesStatus", { + get: $util.oneOfGetter($oneOfFields = ["storageBytesStatus"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SavedAttachedDisk _type. + * @member {"type"|undefined} _type + * @memberof google.cloud.compute.v1.SavedAttachedDisk + * @instance + */ + Object.defineProperty(SavedAttachedDisk.prototype, "_type", { + get: $util.oneOfGetter($oneOfFields = ["type"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new SavedAttachedDisk instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.SavedAttachedDisk + * @static + * @param {google.cloud.compute.v1.ISavedAttachedDisk=} [properties] Properties to set + * @returns {google.cloud.compute.v1.SavedAttachedDisk} SavedAttachedDisk instance + */ + SavedAttachedDisk.create = function create(properties) { + return new SavedAttachedDisk(properties); + }; + + /** + * Encodes the specified SavedAttachedDisk message. Does not implicitly {@link google.cloud.compute.v1.SavedAttachedDisk.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.SavedAttachedDisk + * @static + * @param {google.cloud.compute.v1.ISavedAttachedDisk} message SavedAttachedDisk message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SavedAttachedDisk.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.boot != null && Object.hasOwnProperty.call(message, "boot")) + writer.uint32(/* id 3029746, wireType 0 =*/24237968).bool(message.boot); + if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) + writer.uint32(/* id 3292052, wireType 2 =*/26336418).string(message.kind); + if (message.mode != null && Object.hasOwnProperty.call(message, "mode")) + writer.uint32(/* id 3357091, wireType 2 =*/26856730).string(message.mode); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 3575610, wireType 2 =*/28604882).string(message.type); + if (message.deviceName != null && Object.hasOwnProperty.call(message, "deviceName")) + writer.uint32(/* id 67541716, wireType 2 =*/540333730).string(message.deviceName); + 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.diskType != null && Object.hasOwnProperty.call(message, "diskType")) + writer.uint32(/* id 93009052, wireType 2 =*/744072418).string(message.diskType); + if (message.index != null && Object.hasOwnProperty.call(message, "index")) + writer.uint32(/* id 100346066, wireType 0 =*/802768528).int32(message.index); + if (message.source != null && Object.hasOwnProperty.call(message, "source")) + writer.uint32(/* id 177235995, wireType 2 =*/1417887962).string(message.source); + if (message.diskEncryptionKey != null && Object.hasOwnProperty.call(message, "diskEncryptionKey")) + $root.google.cloud.compute.v1.CustomerEncryptionKey.encode(message.diskEncryptionKey, writer.uint32(/* id 271660677, wireType 2 =*/2173285418).fork()).ldelim(); + if (message.diskSizeGb != null && Object.hasOwnProperty.call(message, "diskSizeGb")) + writer.uint32(/* id 316263735, wireType 0 =*/2530109880).int64(message.diskSizeGb); + if (message.licenses != null && message.licenses.length) + for (var i = 0; i < message.licenses.length; ++i) + writer.uint32(/* id 337642578, wireType 2 =*/2701140626).string(message.licenses[i]); + if (message.storageBytes != null && Object.hasOwnProperty.call(message, "storageBytes")) + writer.uint32(/* id 424631719, wireType 0 =*/3397053752).int64(message.storageBytes); + if (message.autoDelete != null && Object.hasOwnProperty.call(message, "autoDelete")) + writer.uint32(/* id 464761403, wireType 0 =*/3718091224).bool(message.autoDelete); + if (message.storageBytesStatus != null && Object.hasOwnProperty.call(message, "storageBytesStatus")) + writer.uint32(/* id 490739082, wireType 2 =*/3925912658).string(message.storageBytesStatus); + if (message["interface"] != null && Object.hasOwnProperty.call(message, "interface")) + writer.uint32(/* id 502623545, wireType 2 =*/4020988362).string(message["interface"]); + return writer; + }; + + /** + * Encodes the specified SavedAttachedDisk message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SavedAttachedDisk.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.SavedAttachedDisk + * @static + * @param {google.cloud.compute.v1.ISavedAttachedDisk} message SavedAttachedDisk message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SavedAttachedDisk.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SavedAttachedDisk message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.SavedAttachedDisk + * @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.SavedAttachedDisk} SavedAttachedDisk + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SavedAttachedDisk.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.SavedAttachedDisk(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 464761403: + message.autoDelete = reader.bool(); + break; + case 3029746: + message.boot = reader.bool(); + break; + case 67541716: + message.deviceName = reader.string(); + break; + case 271660677: + message.diskEncryptionKey = $root.google.cloud.compute.v1.CustomerEncryptionKey.decode(reader, reader.uint32()); + break; + case 316263735: + message.diskSizeGb = reader.int64(); + break; + case 93009052: + message.diskType = reader.string(); + break; + case 79294545: + if (!(message.guestOsFeatures && message.guestOsFeatures.length)) + message.guestOsFeatures = []; + message.guestOsFeatures.push($root.google.cloud.compute.v1.GuestOsFeature.decode(reader, reader.uint32())); + break; + case 100346066: + message.index = reader.int32(); + break; + case 502623545: + message["interface"] = reader.string(); + break; + case 3292052: + message.kind = reader.string(); + break; + case 337642578: + if (!(message.licenses && message.licenses.length)) + message.licenses = []; + message.licenses.push(reader.string()); + break; + case 3357091: + message.mode = reader.string(); + break; + case 177235995: + message.source = reader.string(); + break; + case 424631719: + message.storageBytes = reader.int64(); + break; + case 490739082: + message.storageBytesStatus = reader.string(); + break; + case 3575610: + message.type = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SavedAttachedDisk message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.SavedAttachedDisk + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.SavedAttachedDisk} SavedAttachedDisk + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SavedAttachedDisk.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SavedAttachedDisk message. + * @function verify + * @memberof google.cloud.compute.v1.SavedAttachedDisk + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SavedAttachedDisk.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.autoDelete != null && message.hasOwnProperty("autoDelete")) { + properties._autoDelete = 1; + if (typeof message.autoDelete !== "boolean") + return "autoDelete: boolean expected"; + } + if (message.boot != null && message.hasOwnProperty("boot")) { + properties._boot = 1; + if (typeof message.boot !== "boolean") + return "boot: boolean expected"; + } + if (message.deviceName != null && message.hasOwnProperty("deviceName")) { + properties._deviceName = 1; + if (!$util.isString(message.deviceName)) + return "deviceName: string expected"; + } + if (message.diskEncryptionKey != null && message.hasOwnProperty("diskEncryptionKey")) { + properties._diskEncryptionKey = 1; + { + var error = $root.google.cloud.compute.v1.CustomerEncryptionKey.verify(message.diskEncryptionKey); + if (error) + return "diskEncryptionKey." + error; + } + } + if (message.diskSizeGb != null && message.hasOwnProperty("diskSizeGb")) { + properties._diskSizeGb = 1; + if (!$util.isInteger(message.diskSizeGb) && !(message.diskSizeGb && $util.isInteger(message.diskSizeGb.low) && $util.isInteger(message.diskSizeGb.high))) + return "diskSizeGb: integer|Long expected"; + } + if (message.diskType != null && message.hasOwnProperty("diskType")) { + properties._diskType = 1; + if (!$util.isString(message.diskType)) + return "diskType: string expected"; + } + if (message.guestOsFeatures != null && message.hasOwnProperty("guestOsFeatures")) { + if (!Array.isArray(message.guestOsFeatures)) + return "guestOsFeatures: array expected"; + for (var i = 0; i < message.guestOsFeatures.length; ++i) { + var error = $root.google.cloud.compute.v1.GuestOsFeature.verify(message.guestOsFeatures[i]); + if (error) + return "guestOsFeatures." + error; + } + } + if (message.index != null && message.hasOwnProperty("index")) { + properties._index = 1; + if (!$util.isInteger(message.index)) + return "index: integer expected"; + } + if (message["interface"] != null && message.hasOwnProperty("interface")) { + properties._interface = 1; + if (!$util.isString(message["interface"])) + return "interface: string expected"; + } + if (message.kind != null && message.hasOwnProperty("kind")) { + properties._kind = 1; + if (!$util.isString(message.kind)) + return "kind: string expected"; + } + if (message.licenses != null && message.hasOwnProperty("licenses")) { + if (!Array.isArray(message.licenses)) + return "licenses: array expected"; + for (var i = 0; i < message.licenses.length; ++i) + if (!$util.isString(message.licenses[i])) + return "licenses: string[] expected"; + } + if (message.mode != null && message.hasOwnProperty("mode")) { + properties._mode = 1; + if (!$util.isString(message.mode)) + return "mode: string expected"; + } + if (message.source != null && message.hasOwnProperty("source")) { + properties._source = 1; + if (!$util.isString(message.source)) + return "source: string expected"; + } + if (message.storageBytes != null && message.hasOwnProperty("storageBytes")) { + properties._storageBytes = 1; + if (!$util.isInteger(message.storageBytes) && !(message.storageBytes && $util.isInteger(message.storageBytes.low) && $util.isInteger(message.storageBytes.high))) + return "storageBytes: integer|Long expected"; + } + if (message.storageBytesStatus != null && message.hasOwnProperty("storageBytesStatus")) { + properties._storageBytesStatus = 1; + if (!$util.isString(message.storageBytesStatus)) + return "storageBytesStatus: string expected"; + } + if (message.type != null && message.hasOwnProperty("type")) { + properties._type = 1; + if (!$util.isString(message.type)) + return "type: string expected"; + } + return null; + }; + + /** + * Creates a SavedAttachedDisk message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.SavedAttachedDisk + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.SavedAttachedDisk} SavedAttachedDisk + */ + SavedAttachedDisk.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.SavedAttachedDisk) + return object; + var message = new $root.google.cloud.compute.v1.SavedAttachedDisk(); + if (object.autoDelete != null) + message.autoDelete = Boolean(object.autoDelete); + if (object.boot != null) + message.boot = Boolean(object.boot); + if (object.deviceName != null) + message.deviceName = String(object.deviceName); + if (object.diskEncryptionKey != null) { + if (typeof object.diskEncryptionKey !== "object") + throw TypeError(".google.cloud.compute.v1.SavedAttachedDisk.diskEncryptionKey: object expected"); + message.diskEncryptionKey = $root.google.cloud.compute.v1.CustomerEncryptionKey.fromObject(object.diskEncryptionKey); + } + if (object.diskSizeGb != null) + if ($util.Long) + (message.diskSizeGb = $util.Long.fromValue(object.diskSizeGb)).unsigned = false; + else if (typeof object.diskSizeGb === "string") + message.diskSizeGb = parseInt(object.diskSizeGb, 10); + else if (typeof object.diskSizeGb === "number") + 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.diskType != null) + message.diskType = String(object.diskType); + if (object.guestOsFeatures) { + if (!Array.isArray(object.guestOsFeatures)) + throw TypeError(".google.cloud.compute.v1.SavedAttachedDisk.guestOsFeatures: array expected"); + message.guestOsFeatures = []; + for (var i = 0; i < object.guestOsFeatures.length; ++i) { + if (typeof object.guestOsFeatures[i] !== "object") + throw TypeError(".google.cloud.compute.v1.SavedAttachedDisk.guestOsFeatures: object expected"); + message.guestOsFeatures[i] = $root.google.cloud.compute.v1.GuestOsFeature.fromObject(object.guestOsFeatures[i]); + } + } + if (object.index != null) + message.index = object.index | 0; + if (object["interface"] != null) + message["interface"] = String(object["interface"]); + if (object.kind != null) + message.kind = String(object.kind); + if (object.licenses) { + if (!Array.isArray(object.licenses)) + throw TypeError(".google.cloud.compute.v1.SavedAttachedDisk.licenses: array expected"); + message.licenses = []; + for (var i = 0; i < object.licenses.length; ++i) + message.licenses[i] = String(object.licenses[i]); + } + if (object.mode != null) + message.mode = String(object.mode); + if (object.source != null) + message.source = String(object.source); + if (object.storageBytes != null) + if ($util.Long) + (message.storageBytes = $util.Long.fromValue(object.storageBytes)).unsigned = false; + else if (typeof object.storageBytes === "string") + message.storageBytes = parseInt(object.storageBytes, 10); + else if (typeof object.storageBytes === "number") + message.storageBytes = object.storageBytes; + else if (typeof object.storageBytes === "object") + message.storageBytes = new $util.LongBits(object.storageBytes.low >>> 0, object.storageBytes.high >>> 0).toNumber(); + if (object.storageBytesStatus != null) + message.storageBytesStatus = String(object.storageBytesStatus); + if (object.type != null) + message.type = String(object.type); + return message; + }; + + /** + * Creates a plain object from a SavedAttachedDisk message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.SavedAttachedDisk + * @static + * @param {google.cloud.compute.v1.SavedAttachedDisk} message SavedAttachedDisk + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SavedAttachedDisk.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.guestOsFeatures = []; + object.licenses = []; + } + if (message.boot != null && message.hasOwnProperty("boot")) { + object.boot = message.boot; + if (options.oneofs) + object._boot = "boot"; + } + if (message.kind != null && message.hasOwnProperty("kind")) { + object.kind = message.kind; + if (options.oneofs) + object._kind = "kind"; + } + if (message.mode != null && message.hasOwnProperty("mode")) { + object.mode = message.mode; + if (options.oneofs) + object._mode = "mode"; + } + if (message.type != null && message.hasOwnProperty("type")) { + object.type = message.type; + if (options.oneofs) + object._type = "type"; + } + if (message.deviceName != null && message.hasOwnProperty("deviceName")) { + object.deviceName = message.deviceName; + if (options.oneofs) + object._deviceName = "deviceName"; + } + if (message.guestOsFeatures && message.guestOsFeatures.length) { + object.guestOsFeatures = []; + 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.diskType != null && message.hasOwnProperty("diskType")) { + object.diskType = message.diskType; + if (options.oneofs) + object._diskType = "diskType"; + } + if (message.index != null && message.hasOwnProperty("index")) { + object.index = message.index; + if (options.oneofs) + object._index = "index"; + } + if (message.source != null && message.hasOwnProperty("source")) { + object.source = message.source; + if (options.oneofs) + object._source = "source"; + } + if (message.diskEncryptionKey != null && message.hasOwnProperty("diskEncryptionKey")) { + object.diskEncryptionKey = $root.google.cloud.compute.v1.CustomerEncryptionKey.toObject(message.diskEncryptionKey, options); + if (options.oneofs) + object._diskEncryptionKey = "diskEncryptionKey"; + } + if (message.diskSizeGb != null && message.hasOwnProperty("diskSizeGb")) { + if (typeof message.diskSizeGb === "number") + object.diskSizeGb = options.longs === String ? String(message.diskSizeGb) : message.diskSizeGb; + else + object.diskSizeGb = options.longs === String ? $util.Long.prototype.toString.call(message.diskSizeGb) : options.longs === Number ? new $util.LongBits(message.diskSizeGb.low >>> 0, message.diskSizeGb.high >>> 0).toNumber() : message.diskSizeGb; + if (options.oneofs) + object._diskSizeGb = "diskSizeGb"; + } + if (message.licenses && message.licenses.length) { + object.licenses = []; + for (var j = 0; j < message.licenses.length; ++j) + object.licenses[j] = message.licenses[j]; + } + if (message.storageBytes != null && message.hasOwnProperty("storageBytes")) { + if (typeof message.storageBytes === "number") + object.storageBytes = options.longs === String ? String(message.storageBytes) : message.storageBytes; + else + object.storageBytes = options.longs === String ? $util.Long.prototype.toString.call(message.storageBytes) : options.longs === Number ? new $util.LongBits(message.storageBytes.low >>> 0, message.storageBytes.high >>> 0).toNumber() : message.storageBytes; + if (options.oneofs) + object._storageBytes = "storageBytes"; + } + if (message.autoDelete != null && message.hasOwnProperty("autoDelete")) { + object.autoDelete = message.autoDelete; + if (options.oneofs) + object._autoDelete = "autoDelete"; + } + if (message.storageBytesStatus != null && message.hasOwnProperty("storageBytesStatus")) { + object.storageBytesStatus = message.storageBytesStatus; + if (options.oneofs) + object._storageBytesStatus = "storageBytesStatus"; + } + if (message["interface"] != null && message.hasOwnProperty("interface")) { + object["interface"] = message["interface"]; + if (options.oneofs) + object._interface = "interface"; + } + return object; + }; + + /** + * Converts this SavedAttachedDisk to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.SavedAttachedDisk + * @instance + * @returns {Object.} JSON object + */ + SavedAttachedDisk.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Interface enum. + * @name google.cloud.compute.v1.SavedAttachedDisk.Interface + * @enum {number} + * @property {number} UNDEFINED_INTERFACE=0 UNDEFINED_INTERFACE value + * @property {number} NVME=2408800 NVME value + * @property {number} SCSI=2539686 SCSI value + */ + SavedAttachedDisk.Interface = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_INTERFACE"] = 0; + values[valuesById[2408800] = "NVME"] = 2408800; + values[valuesById[2539686] = "SCSI"] = 2539686; + return values; + })(); + + /** + * Mode enum. + * @name google.cloud.compute.v1.SavedAttachedDisk.Mode + * @enum {number} + * @property {number} UNDEFINED_MODE=0 UNDEFINED_MODE value + * @property {number} READ_ONLY=91950261 READ_ONLY value + * @property {number} READ_WRITE=173607894 READ_WRITE value + */ + SavedAttachedDisk.Mode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_MODE"] = 0; + values[valuesById[91950261] = "READ_ONLY"] = 91950261; + values[valuesById[173607894] = "READ_WRITE"] = 173607894; + return values; + })(); + + /** + * StorageBytesStatus enum. + * @name google.cloud.compute.v1.SavedAttachedDisk.StorageBytesStatus + * @enum {number} + * @property {number} UNDEFINED_STORAGE_BYTES_STATUS=0 UNDEFINED_STORAGE_BYTES_STATUS value + * @property {number} UPDATING=494614342 UPDATING value + * @property {number} UP_TO_DATE=101306702 UP_TO_DATE value + */ + SavedAttachedDisk.StorageBytesStatus = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_STORAGE_BYTES_STATUS"] = 0; + values[valuesById[494614342] = "UPDATING"] = 494614342; + values[valuesById[101306702] = "UP_TO_DATE"] = 101306702; + return values; + })(); + + /** + * Type enum. + * @name google.cloud.compute.v1.SavedAttachedDisk.Type + * @enum {number} + * @property {number} UNDEFINED_TYPE=0 UNDEFINED_TYPE value + * @property {number} PERSISTENT=460683927 PERSISTENT value + * @property {number} SCRATCH=496778970 SCRATCH value + */ + SavedAttachedDisk.Type = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_TYPE"] = 0; + values[valuesById[460683927] = "PERSISTENT"] = 460683927; + values[valuesById[496778970] = "SCRATCH"] = 496778970; + return values; + })(); + + return SavedAttachedDisk; + })(); + + v1.SavedDisk = (function() { + + /** + * Properties of a SavedDisk. + * @memberof google.cloud.compute.v1 + * @interface ISavedDisk + * @property {string|null} [kind] SavedDisk kind + * @property {string|null} [sourceDisk] SavedDisk sourceDisk + * @property {number|Long|null} [storageBytes] SavedDisk storageBytes + * @property {string|null} [storageBytesStatus] SavedDisk storageBytesStatus + */ + + /** + * Constructs a new SavedDisk. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a SavedDisk. + * @implements ISavedDisk + * @constructor + * @param {google.cloud.compute.v1.ISavedDisk=} [properties] Properties to set + */ + function SavedDisk(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]]; + } + + /** + * SavedDisk kind. + * @member {string|null|undefined} kind + * @memberof google.cloud.compute.v1.SavedDisk + * @instance + */ + SavedDisk.prototype.kind = null; + + /** + * SavedDisk sourceDisk. + * @member {string|null|undefined} sourceDisk + * @memberof google.cloud.compute.v1.SavedDisk + * @instance + */ + SavedDisk.prototype.sourceDisk = null; + + /** + * SavedDisk storageBytes. + * @member {number|Long|null|undefined} storageBytes + * @memberof google.cloud.compute.v1.SavedDisk + * @instance + */ + SavedDisk.prototype.storageBytes = null; + + /** + * SavedDisk storageBytesStatus. + * @member {string|null|undefined} storageBytesStatus + * @memberof google.cloud.compute.v1.SavedDisk + * @instance + */ + SavedDisk.prototype.storageBytesStatus = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * SavedDisk _kind. + * @member {"kind"|undefined} _kind + * @memberof google.cloud.compute.v1.SavedDisk + * @instance + */ + Object.defineProperty(SavedDisk.prototype, "_kind", { + get: $util.oneOfGetter($oneOfFields = ["kind"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SavedDisk _sourceDisk. + * @member {"sourceDisk"|undefined} _sourceDisk + * @memberof google.cloud.compute.v1.SavedDisk + * @instance + */ + Object.defineProperty(SavedDisk.prototype, "_sourceDisk", { + get: $util.oneOfGetter($oneOfFields = ["sourceDisk"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SavedDisk _storageBytes. + * @member {"storageBytes"|undefined} _storageBytes + * @memberof google.cloud.compute.v1.SavedDisk + * @instance + */ + Object.defineProperty(SavedDisk.prototype, "_storageBytes", { + get: $util.oneOfGetter($oneOfFields = ["storageBytes"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SavedDisk _storageBytesStatus. + * @member {"storageBytesStatus"|undefined} _storageBytesStatus + * @memberof google.cloud.compute.v1.SavedDisk + * @instance + */ + Object.defineProperty(SavedDisk.prototype, "_storageBytesStatus", { + get: $util.oneOfGetter($oneOfFields = ["storageBytesStatus"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new SavedDisk instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.SavedDisk + * @static + * @param {google.cloud.compute.v1.ISavedDisk=} [properties] Properties to set + * @returns {google.cloud.compute.v1.SavedDisk} SavedDisk instance + */ + SavedDisk.create = function create(properties) { + return new SavedDisk(properties); + }; + + /** + * Encodes the specified SavedDisk message. Does not implicitly {@link google.cloud.compute.v1.SavedDisk.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.SavedDisk + * @static + * @param {google.cloud.compute.v1.ISavedDisk} message SavedDisk message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SavedDisk.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) + writer.uint32(/* id 3292052, wireType 2 =*/26336418).string(message.kind); + if (message.storageBytes != null && Object.hasOwnProperty.call(message, "storageBytes")) + writer.uint32(/* id 424631719, wireType 0 =*/3397053752).int64(message.storageBytes); + if (message.sourceDisk != null && Object.hasOwnProperty.call(message, "sourceDisk")) + writer.uint32(/* id 451753793, wireType 2 =*/3614030346).string(message.sourceDisk); + if (message.storageBytesStatus != null && Object.hasOwnProperty.call(message, "storageBytesStatus")) + writer.uint32(/* id 490739082, wireType 2 =*/3925912658).string(message.storageBytesStatus); + return writer; + }; + + /** + * Encodes the specified SavedDisk message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SavedDisk.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.SavedDisk + * @static + * @param {google.cloud.compute.v1.ISavedDisk} message SavedDisk message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SavedDisk.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SavedDisk message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.SavedDisk + * @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.SavedDisk} SavedDisk + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SavedDisk.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.SavedDisk(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 3292052: + message.kind = reader.string(); + break; + case 451753793: + message.sourceDisk = reader.string(); + break; + case 424631719: + message.storageBytes = reader.int64(); + break; + case 490739082: + message.storageBytesStatus = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SavedDisk message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.SavedDisk + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.SavedDisk} SavedDisk + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SavedDisk.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SavedDisk message. + * @function verify + * @memberof google.cloud.compute.v1.SavedDisk + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SavedDisk.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.kind != null && message.hasOwnProperty("kind")) { + properties._kind = 1; + if (!$util.isString(message.kind)) + return "kind: string expected"; + } + if (message.sourceDisk != null && message.hasOwnProperty("sourceDisk")) { + properties._sourceDisk = 1; + if (!$util.isString(message.sourceDisk)) + return "sourceDisk: string expected"; + } + if (message.storageBytes != null && message.hasOwnProperty("storageBytes")) { + properties._storageBytes = 1; + if (!$util.isInteger(message.storageBytes) && !(message.storageBytes && $util.isInteger(message.storageBytes.low) && $util.isInteger(message.storageBytes.high))) + return "storageBytes: integer|Long expected"; + } + if (message.storageBytesStatus != null && message.hasOwnProperty("storageBytesStatus")) { + properties._storageBytesStatus = 1; + if (!$util.isString(message.storageBytesStatus)) + return "storageBytesStatus: string expected"; + } + return null; + }; + + /** + * Creates a SavedDisk message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.SavedDisk + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.SavedDisk} SavedDisk + */ + SavedDisk.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.SavedDisk) + return object; + var message = new $root.google.cloud.compute.v1.SavedDisk(); + if (object.kind != null) + message.kind = String(object.kind); + if (object.sourceDisk != null) + message.sourceDisk = String(object.sourceDisk); + if (object.storageBytes != null) + if ($util.Long) + (message.storageBytes = $util.Long.fromValue(object.storageBytes)).unsigned = false; + else if (typeof object.storageBytes === "string") + message.storageBytes = parseInt(object.storageBytes, 10); + else if (typeof object.storageBytes === "number") + message.storageBytes = object.storageBytes; + else if (typeof object.storageBytes === "object") + message.storageBytes = new $util.LongBits(object.storageBytes.low >>> 0, object.storageBytes.high >>> 0).toNumber(); + if (object.storageBytesStatus != null) + message.storageBytesStatus = String(object.storageBytesStatus); + return message; + }; + + /** + * Creates a plain object from a SavedDisk message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.SavedDisk + * @static + * @param {google.cloud.compute.v1.SavedDisk} message SavedDisk + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SavedDisk.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.kind != null && message.hasOwnProperty("kind")) { + object.kind = message.kind; + if (options.oneofs) + object._kind = "kind"; + } + if (message.storageBytes != null && message.hasOwnProperty("storageBytes")) { + if (typeof message.storageBytes === "number") + object.storageBytes = options.longs === String ? String(message.storageBytes) : message.storageBytes; + else + object.storageBytes = options.longs === String ? $util.Long.prototype.toString.call(message.storageBytes) : options.longs === Number ? new $util.LongBits(message.storageBytes.low >>> 0, message.storageBytes.high >>> 0).toNumber() : message.storageBytes; + if (options.oneofs) + object._storageBytes = "storageBytes"; + } + if (message.sourceDisk != null && message.hasOwnProperty("sourceDisk")) { + object.sourceDisk = message.sourceDisk; + if (options.oneofs) + object._sourceDisk = "sourceDisk"; + } + if (message.storageBytesStatus != null && message.hasOwnProperty("storageBytesStatus")) { + object.storageBytesStatus = message.storageBytesStatus; + if (options.oneofs) + object._storageBytesStatus = "storageBytesStatus"; + } + return object; + }; + + /** + * Converts this SavedDisk to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.SavedDisk + * @instance + * @returns {Object.} JSON object + */ + SavedDisk.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * StorageBytesStatus enum. + * @name google.cloud.compute.v1.SavedDisk.StorageBytesStatus + * @enum {number} + * @property {number} UNDEFINED_STORAGE_BYTES_STATUS=0 UNDEFINED_STORAGE_BYTES_STATUS value + * @property {number} UPDATING=494614342 UPDATING value + * @property {number} UP_TO_DATE=101306702 UP_TO_DATE value + */ + SavedDisk.StorageBytesStatus = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_STORAGE_BYTES_STATUS"] = 0; + values[valuesById[494614342] = "UPDATING"] = 494614342; + values[valuesById[101306702] = "UP_TO_DATE"] = 101306702; + return values; + })(); + + return SavedDisk; + })(); + v1.ScalingScheduleStatus = (function() { /** @@ -301791,11 +310631,13 @@ * @memberof google.cloud.compute.v1 * @interface IScheduling * @property {boolean|null} [automaticRestart] Scheduling automaticRestart + * @property {string|null} [instanceTerminationAction] Scheduling instanceTerminationAction * @property {string|null} [locationHint] Scheduling locationHint * @property {number|null} [minNodeCpus] Scheduling minNodeCpus * @property {Array.|null} [nodeAffinities] Scheduling nodeAffinities * @property {string|null} [onHostMaintenance] Scheduling onHostMaintenance * @property {boolean|null} [preemptible] Scheduling preemptible + * @property {string|null} [provisioningModel] Scheduling provisioningModel */ /** @@ -301822,6 +310664,14 @@ */ Scheduling.prototype.automaticRestart = null; + /** + * Scheduling instanceTerminationAction. + * @member {string|null|undefined} instanceTerminationAction + * @memberof google.cloud.compute.v1.Scheduling + * @instance + */ + Scheduling.prototype.instanceTerminationAction = null; + /** * Scheduling locationHint. * @member {string|null|undefined} locationHint @@ -301862,6 +310712,14 @@ */ Scheduling.prototype.preemptible = null; + /** + * Scheduling provisioningModel. + * @member {string|null|undefined} provisioningModel + * @memberof google.cloud.compute.v1.Scheduling + * @instance + */ + Scheduling.prototype.provisioningModel = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -301876,6 +310734,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * Scheduling _instanceTerminationAction. + * @member {"instanceTerminationAction"|undefined} _instanceTerminationAction + * @memberof google.cloud.compute.v1.Scheduling + * @instance + */ + Object.defineProperty(Scheduling.prototype, "_instanceTerminationAction", { + get: $util.oneOfGetter($oneOfFields = ["instanceTerminationAction"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Scheduling _locationHint. * @member {"locationHint"|undefined} _locationHint @@ -301920,6 +310789,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * Scheduling _provisioningModel. + * @member {"provisioningModel"|undefined} _provisioningModel + * @memberof google.cloud.compute.v1.Scheduling + * @instance + */ + Object.defineProperty(Scheduling.prototype, "_provisioningModel", { + get: $util.oneOfGetter($oneOfFields = ["provisioningModel"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new Scheduling instance using the specified properties. * @function create @@ -301944,8 +310824,12 @@ Scheduling.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.provisioningModel != null && Object.hasOwnProperty.call(message, "provisioningModel")) + writer.uint32(/* id 494423, wireType 2 =*/3955386).string(message.provisioningModel); if (message.onHostMaintenance != null && Object.hasOwnProperty.call(message, "onHostMaintenance")) writer.uint32(/* id 64616796, wireType 2 =*/516934370).string(message.onHostMaintenance); + if (message.instanceTerminationAction != null && Object.hasOwnProperty.call(message, "instanceTerminationAction")) + writer.uint32(/* id 107380667, wireType 2 =*/859045338).string(message.instanceTerminationAction); if (message.minNodeCpus != null && Object.hasOwnProperty.call(message, "minNodeCpus")) writer.uint32(/* id 317231675, wireType 0 =*/2537853400).int32(message.minNodeCpus); if (message.preemptible != null && Object.hasOwnProperty.call(message, "preemptible")) @@ -301994,6 +310878,9 @@ case 350821371: message.automaticRestart = reader.bool(); break; + case 107380667: + message.instanceTerminationAction = reader.string(); + break; case 350519505: message.locationHint = reader.string(); break; @@ -302011,6 +310898,9 @@ case 324203169: message.preemptible = reader.bool(); break; + case 494423: + message.provisioningModel = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -302052,6 +310942,11 @@ if (typeof message.automaticRestart !== "boolean") return "automaticRestart: boolean expected"; } + if (message.instanceTerminationAction != null && message.hasOwnProperty("instanceTerminationAction")) { + properties._instanceTerminationAction = 1; + if (!$util.isString(message.instanceTerminationAction)) + return "instanceTerminationAction: string expected"; + } if (message.locationHint != null && message.hasOwnProperty("locationHint")) { properties._locationHint = 1; if (!$util.isString(message.locationHint)) @@ -302081,6 +310976,11 @@ if (typeof message.preemptible !== "boolean") return "preemptible: boolean expected"; } + if (message.provisioningModel != null && message.hasOwnProperty("provisioningModel")) { + properties._provisioningModel = 1; + if (!$util.isString(message.provisioningModel)) + return "provisioningModel: string expected"; + } return null; }; @@ -302098,6 +310998,8 @@ var message = new $root.google.cloud.compute.v1.Scheduling(); if (object.automaticRestart != null) message.automaticRestart = Boolean(object.automaticRestart); + if (object.instanceTerminationAction != null) + message.instanceTerminationAction = String(object.instanceTerminationAction); if (object.locationHint != null) message.locationHint = String(object.locationHint); if (object.minNodeCpus != null) @@ -302116,6 +311018,8 @@ message.onHostMaintenance = String(object.onHostMaintenance); if (object.preemptible != null) message.preemptible = Boolean(object.preemptible); + if (object.provisioningModel != null) + message.provisioningModel = String(object.provisioningModel); return message; }; @@ -302134,11 +311038,21 @@ var object = {}; if (options.arrays || options.defaults) object.nodeAffinities = []; + if (message.provisioningModel != null && message.hasOwnProperty("provisioningModel")) { + object.provisioningModel = message.provisioningModel; + if (options.oneofs) + object._provisioningModel = "provisioningModel"; + } if (message.onHostMaintenance != null && message.hasOwnProperty("onHostMaintenance")) { object.onHostMaintenance = message.onHostMaintenance; if (options.oneofs) object._onHostMaintenance = "onHostMaintenance"; } + if (message.instanceTerminationAction != null && message.hasOwnProperty("instanceTerminationAction")) { + object.instanceTerminationAction = message.instanceTerminationAction; + if (options.oneofs) + object._instanceTerminationAction = "instanceTerminationAction"; + } if (message.minNodeCpus != null && message.hasOwnProperty("minNodeCpus")) { object.minNodeCpus = message.minNodeCpus; if (options.oneofs) @@ -302178,6 +311092,24 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * InstanceTerminationAction enum. + * @name google.cloud.compute.v1.Scheduling.InstanceTerminationAction + * @enum {number} + * @property {number} UNDEFINED_INSTANCE_TERMINATION_ACTION=0 UNDEFINED_INSTANCE_TERMINATION_ACTION value + * @property {number} DELETE=402225579 DELETE value + * @property {number} INSTANCE_TERMINATION_ACTION_UNSPECIFIED=92954803 INSTANCE_TERMINATION_ACTION_UNSPECIFIED value + * @property {number} STOP=2555906 STOP value + */ + Scheduling.InstanceTerminationAction = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_INSTANCE_TERMINATION_ACTION"] = 0; + values[valuesById[402225579] = "DELETE"] = 402225579; + values[valuesById[92954803] = "INSTANCE_TERMINATION_ACTION_UNSPECIFIED"] = 92954803; + values[valuesById[2555906] = "STOP"] = 2555906; + return values; + })(); + /** * OnHostMaintenance enum. * @name google.cloud.compute.v1.Scheduling.OnHostMaintenance @@ -302194,6 +311126,22 @@ return values; })(); + /** + * ProvisioningModel enum. + * @name google.cloud.compute.v1.Scheduling.ProvisioningModel + * @enum {number} + * @property {number} UNDEFINED_PROVISIONING_MODEL=0 UNDEFINED_PROVISIONING_MODEL value + * @property {number} SPOT=2552066 SPOT value + * @property {number} STANDARD=484642493 STANDARD value + */ + Scheduling.ProvisioningModel = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_PROVISIONING_MODEL"] = 0; + values[valuesById[2552066] = "SPOT"] = 2552066; + values[valuesById[484642493] = "STANDARD"] = 484642493; + return values; + })(); + return Scheduling; })(); @@ -303379,8 +312327,10 @@ * @property {number|Long|null} [id] SecurityPolicy id * @property {string|null} [kind] SecurityPolicy kind * @property {string|null} [name] SecurityPolicy name + * @property {google.cloud.compute.v1.ISecurityPolicyRecaptchaOptionsConfig|null} [recaptchaOptionsConfig] SecurityPolicy recaptchaOptionsConfig * @property {Array.|null} [rules] SecurityPolicy rules * @property {string|null} [selfLink] SecurityPolicy selfLink + * @property {string|null} [type] SecurityPolicy type */ /** @@ -303463,6 +312413,14 @@ */ SecurityPolicy.prototype.name = null; + /** + * SecurityPolicy recaptchaOptionsConfig. + * @member {google.cloud.compute.v1.ISecurityPolicyRecaptchaOptionsConfig|null|undefined} recaptchaOptionsConfig + * @memberof google.cloud.compute.v1.SecurityPolicy + * @instance + */ + SecurityPolicy.prototype.recaptchaOptionsConfig = null; + /** * SecurityPolicy rules. * @member {Array.} rules @@ -303479,6 +312437,14 @@ */ SecurityPolicy.prototype.selfLink = null; + /** + * SecurityPolicy type. + * @member {string|null|undefined} type + * @memberof google.cloud.compute.v1.SecurityPolicy + * @instance + */ + SecurityPolicy.prototype.type = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -303570,6 +312536,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * SecurityPolicy _recaptchaOptionsConfig. + * @member {"recaptchaOptionsConfig"|undefined} _recaptchaOptionsConfig + * @memberof google.cloud.compute.v1.SecurityPolicy + * @instance + */ + Object.defineProperty(SecurityPolicy.prototype, "_recaptchaOptionsConfig", { + get: $util.oneOfGetter($oneOfFields = ["recaptchaOptionsConfig"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * SecurityPolicy _selfLink. * @member {"selfLink"|undefined} _selfLink @@ -303581,6 +312558,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * SecurityPolicy _type. + * @member {"type"|undefined} _type + * @memberof google.cloud.compute.v1.SecurityPolicy + * @instance + */ + Object.defineProperty(SecurityPolicy.prototype, "_type", { + get: $util.oneOfGetter($oneOfFields = ["type"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new SecurityPolicy instance using the specified properties. * @function create @@ -303611,6 +312599,8 @@ writer.uint32(/* id 3292052, wireType 2 =*/26336418).string(message.kind); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 3373707, wireType 2 =*/26989658).string(message.name); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 3575610, wireType 2 =*/28604882).string(message.type); if (message.creationTimestamp != null && Object.hasOwnProperty.call(message, "creationTimestamp")) writer.uint32(/* id 30525366, wireType 2 =*/244202930).string(message.creationTimestamp); if (message.rules != null && message.rules.length) @@ -303626,6 +312616,8 @@ $root.google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfig.encode(message.advancedOptionsConfig, writer.uint32(/* id 449276352, wireType 2 =*/3594210818).fork()).ldelim(); if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) writer.uint32(/* id 456214797, wireType 2 =*/3649718378).string(message.selfLink); + if (message.recaptchaOptionsConfig != null && Object.hasOwnProperty.call(message, "recaptchaOptionsConfig")) + $root.google.cloud.compute.v1.SecurityPolicyRecaptchaOptionsConfig.encode(message.recaptchaOptionsConfig, writer.uint32(/* id 519006811, wireType 2 =*/4152054490).fork()).ldelim(); return writer; }; @@ -303684,6 +312676,9 @@ case 3373707: message.name = reader.string(); break; + case 519006811: + message.recaptchaOptionsConfig = $root.google.cloud.compute.v1.SecurityPolicyRecaptchaOptionsConfig.decode(reader, reader.uint32()); + break; case 108873975: if (!(message.rules && message.rules.length)) message.rules = []; @@ -303692,6 +312687,9 @@ case 456214797: message.selfLink = reader.string(); break; + case 3575610: + message.type = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -303774,6 +312772,14 @@ if (!$util.isString(message.name)) return "name: string expected"; } + if (message.recaptchaOptionsConfig != null && message.hasOwnProperty("recaptchaOptionsConfig")) { + properties._recaptchaOptionsConfig = 1; + { + var error = $root.google.cloud.compute.v1.SecurityPolicyRecaptchaOptionsConfig.verify(message.recaptchaOptionsConfig); + if (error) + return "recaptchaOptionsConfig." + error; + } + } if (message.rules != null && message.hasOwnProperty("rules")) { if (!Array.isArray(message.rules)) return "rules: array expected"; @@ -303788,6 +312794,11 @@ if (!$util.isString(message.selfLink)) return "selfLink: string expected"; } + if (message.type != null && message.hasOwnProperty("type")) { + properties._type = 1; + if (!$util.isString(message.type)) + return "type: string expected"; + } return null; }; @@ -303832,6 +312843,11 @@ message.kind = String(object.kind); if (object.name != null) message.name = String(object.name); + if (object.recaptchaOptionsConfig != null) { + if (typeof object.recaptchaOptionsConfig !== "object") + throw TypeError(".google.cloud.compute.v1.SecurityPolicy.recaptchaOptionsConfig: object expected"); + message.recaptchaOptionsConfig = $root.google.cloud.compute.v1.SecurityPolicyRecaptchaOptionsConfig.fromObject(object.recaptchaOptionsConfig); + } if (object.rules) { if (!Array.isArray(object.rules)) throw TypeError(".google.cloud.compute.v1.SecurityPolicy.rules: array expected"); @@ -303844,6 +312860,8 @@ } if (object.selfLink != null) message.selfLink = String(object.selfLink); + if (object.type != null) + message.type = String(object.type); return message; }; @@ -303880,6 +312898,11 @@ if (options.oneofs) object._name = "name"; } + if (message.type != null && message.hasOwnProperty("type")) { + object.type = message.type; + if (options.oneofs) + object._type = "type"; + } if (message.creationTimestamp != null && message.hasOwnProperty("creationTimestamp")) { object.creationTimestamp = message.creationTimestamp; if (options.oneofs) @@ -303915,6 +312938,11 @@ if (options.oneofs) object._selfLink = "selfLink"; } + if (message.recaptchaOptionsConfig != null && message.hasOwnProperty("recaptchaOptionsConfig")) { + object.recaptchaOptionsConfig = $root.google.cloud.compute.v1.SecurityPolicyRecaptchaOptionsConfig.toObject(message.recaptchaOptionsConfig, options); + if (options.oneofs) + object._recaptchaOptionsConfig = "recaptchaOptionsConfig"; + } return object; }; @@ -303929,6 +312957,22 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Type enum. + * @name google.cloud.compute.v1.SecurityPolicy.Type + * @enum {number} + * @property {number} UNDEFINED_TYPE=0 UNDEFINED_TYPE value + * @property {number} CLOUD_ARMOR=260640373 CLOUD_ARMOR value + * @property {number} CLOUD_ARMOR_EDGE=250728775 CLOUD_ARMOR_EDGE value + */ + SecurityPolicy.Type = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_TYPE"] = 0; + values[valuesById[260640373] = "CLOUD_ARMOR"] = 260640373; + values[valuesById[250728775] = "CLOUD_ARMOR_EDGE"] = 250728775; + return values; + })(); + return SecurityPolicy; })(); @@ -305041,6 +314085,211 @@ return SecurityPolicyList; })(); + v1.SecurityPolicyRecaptchaOptionsConfig = (function() { + + /** + * Properties of a SecurityPolicyRecaptchaOptionsConfig. + * @memberof google.cloud.compute.v1 + * @interface ISecurityPolicyRecaptchaOptionsConfig + * @property {string|null} [redirectSiteKey] SecurityPolicyRecaptchaOptionsConfig redirectSiteKey + */ + + /** + * Constructs a new SecurityPolicyRecaptchaOptionsConfig. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a SecurityPolicyRecaptchaOptionsConfig. + * @implements ISecurityPolicyRecaptchaOptionsConfig + * @constructor + * @param {google.cloud.compute.v1.ISecurityPolicyRecaptchaOptionsConfig=} [properties] Properties to set + */ + function SecurityPolicyRecaptchaOptionsConfig(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]]; + } + + /** + * SecurityPolicyRecaptchaOptionsConfig redirectSiteKey. + * @member {string|null|undefined} redirectSiteKey + * @memberof google.cloud.compute.v1.SecurityPolicyRecaptchaOptionsConfig + * @instance + */ + SecurityPolicyRecaptchaOptionsConfig.prototype.redirectSiteKey = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * SecurityPolicyRecaptchaOptionsConfig _redirectSiteKey. + * @member {"redirectSiteKey"|undefined} _redirectSiteKey + * @memberof google.cloud.compute.v1.SecurityPolicyRecaptchaOptionsConfig + * @instance + */ + Object.defineProperty(SecurityPolicyRecaptchaOptionsConfig.prototype, "_redirectSiteKey", { + get: $util.oneOfGetter($oneOfFields = ["redirectSiteKey"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new SecurityPolicyRecaptchaOptionsConfig instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.SecurityPolicyRecaptchaOptionsConfig + * @static + * @param {google.cloud.compute.v1.ISecurityPolicyRecaptchaOptionsConfig=} [properties] Properties to set + * @returns {google.cloud.compute.v1.SecurityPolicyRecaptchaOptionsConfig} SecurityPolicyRecaptchaOptionsConfig instance + */ + SecurityPolicyRecaptchaOptionsConfig.create = function create(properties) { + return new SecurityPolicyRecaptchaOptionsConfig(properties); + }; + + /** + * Encodes the specified SecurityPolicyRecaptchaOptionsConfig message. Does not implicitly {@link google.cloud.compute.v1.SecurityPolicyRecaptchaOptionsConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.SecurityPolicyRecaptchaOptionsConfig + * @static + * @param {google.cloud.compute.v1.ISecurityPolicyRecaptchaOptionsConfig} message SecurityPolicyRecaptchaOptionsConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SecurityPolicyRecaptchaOptionsConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.redirectSiteKey != null && Object.hasOwnProperty.call(message, "redirectSiteKey")) + writer.uint32(/* id 447677034, wireType 2 =*/3581416274).string(message.redirectSiteKey); + return writer; + }; + + /** + * Encodes the specified SecurityPolicyRecaptchaOptionsConfig message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SecurityPolicyRecaptchaOptionsConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.SecurityPolicyRecaptchaOptionsConfig + * @static + * @param {google.cloud.compute.v1.ISecurityPolicyRecaptchaOptionsConfig} message SecurityPolicyRecaptchaOptionsConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SecurityPolicyRecaptchaOptionsConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SecurityPolicyRecaptchaOptionsConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.SecurityPolicyRecaptchaOptionsConfig + * @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.SecurityPolicyRecaptchaOptionsConfig} SecurityPolicyRecaptchaOptionsConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SecurityPolicyRecaptchaOptionsConfig.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.SecurityPolicyRecaptchaOptionsConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 447677034: + message.redirectSiteKey = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SecurityPolicyRecaptchaOptionsConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.SecurityPolicyRecaptchaOptionsConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.SecurityPolicyRecaptchaOptionsConfig} SecurityPolicyRecaptchaOptionsConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SecurityPolicyRecaptchaOptionsConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SecurityPolicyRecaptchaOptionsConfig message. + * @function verify + * @memberof google.cloud.compute.v1.SecurityPolicyRecaptchaOptionsConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SecurityPolicyRecaptchaOptionsConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.redirectSiteKey != null && message.hasOwnProperty("redirectSiteKey")) { + properties._redirectSiteKey = 1; + if (!$util.isString(message.redirectSiteKey)) + return "redirectSiteKey: string expected"; + } + return null; + }; + + /** + * Creates a SecurityPolicyRecaptchaOptionsConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.SecurityPolicyRecaptchaOptionsConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.SecurityPolicyRecaptchaOptionsConfig} SecurityPolicyRecaptchaOptionsConfig + */ + SecurityPolicyRecaptchaOptionsConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.SecurityPolicyRecaptchaOptionsConfig) + return object; + var message = new $root.google.cloud.compute.v1.SecurityPolicyRecaptchaOptionsConfig(); + if (object.redirectSiteKey != null) + message.redirectSiteKey = String(object.redirectSiteKey); + return message; + }; + + /** + * Creates a plain object from a SecurityPolicyRecaptchaOptionsConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.SecurityPolicyRecaptchaOptionsConfig + * @static + * @param {google.cloud.compute.v1.SecurityPolicyRecaptchaOptionsConfig} message SecurityPolicyRecaptchaOptionsConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SecurityPolicyRecaptchaOptionsConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.redirectSiteKey != null && message.hasOwnProperty("redirectSiteKey")) { + object.redirectSiteKey = message.redirectSiteKey; + if (options.oneofs) + object._redirectSiteKey = "redirectSiteKey"; + } + return object; + }; + + /** + * Converts this SecurityPolicyRecaptchaOptionsConfig to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.SecurityPolicyRecaptchaOptionsConfig + * @instance + * @returns {Object.} JSON object + */ + SecurityPolicyRecaptchaOptionsConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return SecurityPolicyRecaptchaOptionsConfig; + })(); + v1.SecurityPolicyReference = (function() { /** @@ -305254,10 +314503,13 @@ * @interface ISecurityPolicyRule * @property {string|null} [action] SecurityPolicyRule action * @property {string|null} [description] SecurityPolicyRule description + * @property {google.cloud.compute.v1.ISecurityPolicyRuleHttpHeaderAction|null} [headerAction] SecurityPolicyRule headerAction * @property {string|null} [kind] SecurityPolicyRule kind * @property {google.cloud.compute.v1.ISecurityPolicyRuleMatcher|null} [match] SecurityPolicyRule match * @property {boolean|null} [preview] SecurityPolicyRule preview * @property {number|null} [priority] SecurityPolicyRule priority + * @property {google.cloud.compute.v1.ISecurityPolicyRuleRateLimitOptions|null} [rateLimitOptions] SecurityPolicyRule rateLimitOptions + * @property {google.cloud.compute.v1.ISecurityPolicyRuleRedirectOptions|null} [redirectOptions] SecurityPolicyRule redirectOptions */ /** @@ -305291,6 +314543,14 @@ */ SecurityPolicyRule.prototype.description = null; + /** + * SecurityPolicyRule headerAction. + * @member {google.cloud.compute.v1.ISecurityPolicyRuleHttpHeaderAction|null|undefined} headerAction + * @memberof google.cloud.compute.v1.SecurityPolicyRule + * @instance + */ + SecurityPolicyRule.prototype.headerAction = null; + /** * SecurityPolicyRule kind. * @member {string|null|undefined} kind @@ -305323,6 +314583,22 @@ */ SecurityPolicyRule.prototype.priority = null; + /** + * SecurityPolicyRule rateLimitOptions. + * @member {google.cloud.compute.v1.ISecurityPolicyRuleRateLimitOptions|null|undefined} rateLimitOptions + * @memberof google.cloud.compute.v1.SecurityPolicyRule + * @instance + */ + SecurityPolicyRule.prototype.rateLimitOptions = null; + + /** + * SecurityPolicyRule redirectOptions. + * @member {google.cloud.compute.v1.ISecurityPolicyRuleRedirectOptions|null|undefined} redirectOptions + * @memberof google.cloud.compute.v1.SecurityPolicyRule + * @instance + */ + SecurityPolicyRule.prototype.redirectOptions = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -305348,6 +314624,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * SecurityPolicyRule _headerAction. + * @member {"headerAction"|undefined} _headerAction + * @memberof google.cloud.compute.v1.SecurityPolicyRule + * @instance + */ + Object.defineProperty(SecurityPolicyRule.prototype, "_headerAction", { + get: $util.oneOfGetter($oneOfFields = ["headerAction"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * SecurityPolicyRule _kind. * @member {"kind"|undefined} _kind @@ -305392,6 +314679,28 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * SecurityPolicyRule _rateLimitOptions. + * @member {"rateLimitOptions"|undefined} _rateLimitOptions + * @memberof google.cloud.compute.v1.SecurityPolicyRule + * @instance + */ + Object.defineProperty(SecurityPolicyRule.prototype, "_rateLimitOptions", { + get: $util.oneOfGetter($oneOfFields = ["rateLimitOptions"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SecurityPolicyRule _redirectOptions. + * @member {"redirectOptions"|undefined} _redirectOptions + * @memberof google.cloud.compute.v1.SecurityPolicyRule + * @instance + */ + Object.defineProperty(SecurityPolicyRule.prototype, "_redirectOptions", { + get: $util.oneOfGetter($oneOfFields = ["redirectOptions"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new SecurityPolicyRule instance using the specified properties. * @function create @@ -305418,12 +314727,18 @@ writer = $Writer.create(); if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) writer.uint32(/* id 3292052, wireType 2 =*/26336418).string(message.kind); + if (message.rateLimitOptions != null && Object.hasOwnProperty.call(message, "rateLimitOptions")) + $root.google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions.encode(message.rateLimitOptions, writer.uint32(/* id 67544315, wireType 2 =*/540354522).fork()).ldelim(); if (message.match != null && Object.hasOwnProperty.call(message, "match")) $root.google.cloud.compute.v1.SecurityPolicyRuleMatcher.encode(message.match, writer.uint32(/* id 103668165, wireType 2 =*/829345322).fork()).ldelim(); + if (message.redirectOptions != null && Object.hasOwnProperty.call(message, "redirectOptions")) + $root.google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions.encode(message.redirectOptions, writer.uint32(/* id 163285307, wireType 2 =*/1306282458).fork()).ldelim(); if (message.action != null && Object.hasOwnProperty.call(message, "action")) writer.uint32(/* id 187661878, wireType 2 =*/1501295026).string(message.action); if (message.preview != null && Object.hasOwnProperty.call(message, "preview")) writer.uint32(/* id 218686408, wireType 0 =*/1749491264).bool(message.preview); + if (message.headerAction != null && Object.hasOwnProperty.call(message, "headerAction")) + $root.google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderAction.encode(message.headerAction, writer.uint32(/* id 328077352, wireType 2 =*/2624618818).fork()).ldelim(); if (message.description != null && Object.hasOwnProperty.call(message, "description")) writer.uint32(/* id 422937596, wireType 2 =*/3383500770).string(message.description); if (message.priority != null && Object.hasOwnProperty.call(message, "priority")) @@ -305468,6 +314783,9 @@ case 422937596: message.description = reader.string(); break; + case 328077352: + message.headerAction = $root.google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderAction.decode(reader, reader.uint32()); + break; case 3292052: message.kind = reader.string(); break; @@ -305480,6 +314798,12 @@ case 445151652: message.priority = reader.int32(); break; + case 67544315: + message.rateLimitOptions = $root.google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions.decode(reader, reader.uint32()); + break; + case 163285307: + message.redirectOptions = $root.google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -305526,6 +314850,14 @@ if (!$util.isString(message.description)) return "description: string expected"; } + if (message.headerAction != null && message.hasOwnProperty("headerAction")) { + properties._headerAction = 1; + { + var error = $root.google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderAction.verify(message.headerAction); + if (error) + return "headerAction." + error; + } + } if (message.kind != null && message.hasOwnProperty("kind")) { properties._kind = 1; if (!$util.isString(message.kind)) @@ -305549,6 +314881,22 @@ if (!$util.isInteger(message.priority)) return "priority: integer expected"; } + if (message.rateLimitOptions != null && message.hasOwnProperty("rateLimitOptions")) { + properties._rateLimitOptions = 1; + { + var error = $root.google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions.verify(message.rateLimitOptions); + if (error) + return "rateLimitOptions." + error; + } + } + if (message.redirectOptions != null && message.hasOwnProperty("redirectOptions")) { + properties._redirectOptions = 1; + { + var error = $root.google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions.verify(message.redirectOptions); + if (error) + return "redirectOptions." + error; + } + } return null; }; @@ -305568,6 +314916,11 @@ message.action = String(object.action); if (object.description != null) message.description = String(object.description); + if (object.headerAction != null) { + if (typeof object.headerAction !== "object") + throw TypeError(".google.cloud.compute.v1.SecurityPolicyRule.headerAction: object expected"); + message.headerAction = $root.google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderAction.fromObject(object.headerAction); + } if (object.kind != null) message.kind = String(object.kind); if (object.match != null) { @@ -305579,6 +314932,16 @@ message.preview = Boolean(object.preview); if (object.priority != null) message.priority = object.priority | 0; + if (object.rateLimitOptions != null) { + if (typeof object.rateLimitOptions !== "object") + throw TypeError(".google.cloud.compute.v1.SecurityPolicyRule.rateLimitOptions: object expected"); + message.rateLimitOptions = $root.google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions.fromObject(object.rateLimitOptions); + } + if (object.redirectOptions != null) { + if (typeof object.redirectOptions !== "object") + throw TypeError(".google.cloud.compute.v1.SecurityPolicyRule.redirectOptions: object expected"); + message.redirectOptions = $root.google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions.fromObject(object.redirectOptions); + } return message; }; @@ -305600,11 +314963,21 @@ if (options.oneofs) object._kind = "kind"; } + if (message.rateLimitOptions != null && message.hasOwnProperty("rateLimitOptions")) { + object.rateLimitOptions = $root.google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions.toObject(message.rateLimitOptions, options); + if (options.oneofs) + object._rateLimitOptions = "rateLimitOptions"; + } if (message.match != null && message.hasOwnProperty("match")) { object.match = $root.google.cloud.compute.v1.SecurityPolicyRuleMatcher.toObject(message.match, options); if (options.oneofs) object._match = "match"; } + if (message.redirectOptions != null && message.hasOwnProperty("redirectOptions")) { + object.redirectOptions = $root.google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions.toObject(message.redirectOptions, options); + if (options.oneofs) + object._redirectOptions = "redirectOptions"; + } if (message.action != null && message.hasOwnProperty("action")) { object.action = message.action; if (options.oneofs) @@ -305615,6 +314988,11 @@ if (options.oneofs) object._preview = "preview"; } + if (message.headerAction != null && message.hasOwnProperty("headerAction")) { + object.headerAction = $root.google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderAction.toObject(message.headerAction, options); + if (options.oneofs) + object._headerAction = "headerAction"; + } if (message.description != null && message.hasOwnProperty("description")) { object.description = message.description; if (options.oneofs) @@ -305642,6 +315020,456 @@ return SecurityPolicyRule; })(); + v1.SecurityPolicyRuleHttpHeaderAction = (function() { + + /** + * Properties of a SecurityPolicyRuleHttpHeaderAction. + * @memberof google.cloud.compute.v1 + * @interface ISecurityPolicyRuleHttpHeaderAction + * @property {Array.|null} [requestHeadersToAdds] SecurityPolicyRuleHttpHeaderAction requestHeadersToAdds + */ + + /** + * Constructs a new SecurityPolicyRuleHttpHeaderAction. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a SecurityPolicyRuleHttpHeaderAction. + * @implements ISecurityPolicyRuleHttpHeaderAction + * @constructor + * @param {google.cloud.compute.v1.ISecurityPolicyRuleHttpHeaderAction=} [properties] Properties to set + */ + function SecurityPolicyRuleHttpHeaderAction(properties) { + this.requestHeadersToAdds = []; + 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]]; + } + + /** + * SecurityPolicyRuleHttpHeaderAction requestHeadersToAdds. + * @member {Array.} requestHeadersToAdds + * @memberof google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderAction + * @instance + */ + SecurityPolicyRuleHttpHeaderAction.prototype.requestHeadersToAdds = $util.emptyArray; + + /** + * Creates a new SecurityPolicyRuleHttpHeaderAction instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderAction + * @static + * @param {google.cloud.compute.v1.ISecurityPolicyRuleHttpHeaderAction=} [properties] Properties to set + * @returns {google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderAction} SecurityPolicyRuleHttpHeaderAction instance + */ + SecurityPolicyRuleHttpHeaderAction.create = function create(properties) { + return new SecurityPolicyRuleHttpHeaderAction(properties); + }; + + /** + * Encodes the specified SecurityPolicyRuleHttpHeaderAction message. Does not implicitly {@link google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderAction.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderAction + * @static + * @param {google.cloud.compute.v1.ISecurityPolicyRuleHttpHeaderAction} message SecurityPolicyRuleHttpHeaderAction message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SecurityPolicyRuleHttpHeaderAction.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.requestHeadersToAdds != null && message.requestHeadersToAdds.length) + for (var i = 0; i < message.requestHeadersToAdds.length; ++i) + $root.google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.encode(message.requestHeadersToAdds[i], writer.uint32(/* id 87987661, wireType 2 =*/703901290).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified SecurityPolicyRuleHttpHeaderAction message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderAction.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderAction + * @static + * @param {google.cloud.compute.v1.ISecurityPolicyRuleHttpHeaderAction} message SecurityPolicyRuleHttpHeaderAction message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SecurityPolicyRuleHttpHeaderAction.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SecurityPolicyRuleHttpHeaderAction message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderAction + * @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.SecurityPolicyRuleHttpHeaderAction} SecurityPolicyRuleHttpHeaderAction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SecurityPolicyRuleHttpHeaderAction.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.SecurityPolicyRuleHttpHeaderAction(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 87987661: + if (!(message.requestHeadersToAdds && message.requestHeadersToAdds.length)) + message.requestHeadersToAdds = []; + message.requestHeadersToAdds.push($root.google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SecurityPolicyRuleHttpHeaderAction message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderAction + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderAction} SecurityPolicyRuleHttpHeaderAction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SecurityPolicyRuleHttpHeaderAction.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SecurityPolicyRuleHttpHeaderAction message. + * @function verify + * @memberof google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderAction + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SecurityPolicyRuleHttpHeaderAction.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.requestHeadersToAdds != null && message.hasOwnProperty("requestHeadersToAdds")) { + if (!Array.isArray(message.requestHeadersToAdds)) + return "requestHeadersToAdds: array expected"; + for (var i = 0; i < message.requestHeadersToAdds.length; ++i) { + var error = $root.google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.verify(message.requestHeadersToAdds[i]); + if (error) + return "requestHeadersToAdds." + error; + } + } + return null; + }; + + /** + * Creates a SecurityPolicyRuleHttpHeaderAction message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderAction + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderAction} SecurityPolicyRuleHttpHeaderAction + */ + SecurityPolicyRuleHttpHeaderAction.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderAction) + return object; + var message = new $root.google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderAction(); + if (object.requestHeadersToAdds) { + if (!Array.isArray(object.requestHeadersToAdds)) + throw TypeError(".google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderAction.requestHeadersToAdds: array expected"); + message.requestHeadersToAdds = []; + for (var i = 0; i < object.requestHeadersToAdds.length; ++i) { + if (typeof object.requestHeadersToAdds[i] !== "object") + throw TypeError(".google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderAction.requestHeadersToAdds: object expected"); + message.requestHeadersToAdds[i] = $root.google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.fromObject(object.requestHeadersToAdds[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a SecurityPolicyRuleHttpHeaderAction message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderAction + * @static + * @param {google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderAction} message SecurityPolicyRuleHttpHeaderAction + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SecurityPolicyRuleHttpHeaderAction.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.requestHeadersToAdds = []; + if (message.requestHeadersToAdds && message.requestHeadersToAdds.length) { + object.requestHeadersToAdds = []; + for (var j = 0; j < message.requestHeadersToAdds.length; ++j) + object.requestHeadersToAdds[j] = $root.google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.toObject(message.requestHeadersToAdds[j], options); + } + return object; + }; + + /** + * Converts this SecurityPolicyRuleHttpHeaderAction to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderAction + * @instance + * @returns {Object.} JSON object + */ + SecurityPolicyRuleHttpHeaderAction.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return SecurityPolicyRuleHttpHeaderAction; + })(); + + v1.SecurityPolicyRuleHttpHeaderActionHttpHeaderOption = (function() { + + /** + * Properties of a SecurityPolicyRuleHttpHeaderActionHttpHeaderOption. + * @memberof google.cloud.compute.v1 + * @interface ISecurityPolicyRuleHttpHeaderActionHttpHeaderOption + * @property {string|null} [headerName] SecurityPolicyRuleHttpHeaderActionHttpHeaderOption headerName + * @property {string|null} [headerValue] SecurityPolicyRuleHttpHeaderActionHttpHeaderOption headerValue + */ + + /** + * Constructs a new SecurityPolicyRuleHttpHeaderActionHttpHeaderOption. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a SecurityPolicyRuleHttpHeaderActionHttpHeaderOption. + * @implements ISecurityPolicyRuleHttpHeaderActionHttpHeaderOption + * @constructor + * @param {google.cloud.compute.v1.ISecurityPolicyRuleHttpHeaderActionHttpHeaderOption=} [properties] Properties to set + */ + function SecurityPolicyRuleHttpHeaderActionHttpHeaderOption(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]]; + } + + /** + * SecurityPolicyRuleHttpHeaderActionHttpHeaderOption headerName. + * @member {string|null|undefined} headerName + * @memberof google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderActionHttpHeaderOption + * @instance + */ + SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.prototype.headerName = null; + + /** + * SecurityPolicyRuleHttpHeaderActionHttpHeaderOption headerValue. + * @member {string|null|undefined} headerValue + * @memberof google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderActionHttpHeaderOption + * @instance + */ + SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.prototype.headerValue = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * SecurityPolicyRuleHttpHeaderActionHttpHeaderOption _headerName. + * @member {"headerName"|undefined} _headerName + * @memberof google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderActionHttpHeaderOption + * @instance + */ + Object.defineProperty(SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.prototype, "_headerName", { + get: $util.oneOfGetter($oneOfFields = ["headerName"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SecurityPolicyRuleHttpHeaderActionHttpHeaderOption _headerValue. + * @member {"headerValue"|undefined} _headerValue + * @memberof google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderActionHttpHeaderOption + * @instance + */ + Object.defineProperty(SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.prototype, "_headerValue", { + get: $util.oneOfGetter($oneOfFields = ["headerValue"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new SecurityPolicyRuleHttpHeaderActionHttpHeaderOption instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderActionHttpHeaderOption + * @static + * @param {google.cloud.compute.v1.ISecurityPolicyRuleHttpHeaderActionHttpHeaderOption=} [properties] Properties to set + * @returns {google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderActionHttpHeaderOption} SecurityPolicyRuleHttpHeaderActionHttpHeaderOption instance + */ + SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.create = function create(properties) { + return new SecurityPolicyRuleHttpHeaderActionHttpHeaderOption(properties); + }; + + /** + * Encodes the specified SecurityPolicyRuleHttpHeaderActionHttpHeaderOption message. Does not implicitly {@link google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderActionHttpHeaderOption + * @static + * @param {google.cloud.compute.v1.ISecurityPolicyRuleHttpHeaderActionHttpHeaderOption} message SecurityPolicyRuleHttpHeaderActionHttpHeaderOption message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.headerName != null && Object.hasOwnProperty.call(message, "headerName")) + writer.uint32(/* id 110223613, wireType 2 =*/881788906).string(message.headerName); + if (message.headerValue != null && Object.hasOwnProperty.call(message, "headerValue")) + writer.uint32(/* id 203094335, wireType 2 =*/1624754682).string(message.headerValue); + return writer; + }; + + /** + * Encodes the specified SecurityPolicyRuleHttpHeaderActionHttpHeaderOption message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderActionHttpHeaderOption + * @static + * @param {google.cloud.compute.v1.ISecurityPolicyRuleHttpHeaderActionHttpHeaderOption} message SecurityPolicyRuleHttpHeaderActionHttpHeaderOption message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SecurityPolicyRuleHttpHeaderActionHttpHeaderOption message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderActionHttpHeaderOption + * @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.SecurityPolicyRuleHttpHeaderActionHttpHeaderOption} SecurityPolicyRuleHttpHeaderActionHttpHeaderOption + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.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.SecurityPolicyRuleHttpHeaderActionHttpHeaderOption(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 110223613: + message.headerName = reader.string(); + break; + case 203094335: + message.headerValue = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SecurityPolicyRuleHttpHeaderActionHttpHeaderOption message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderActionHttpHeaderOption + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderActionHttpHeaderOption} SecurityPolicyRuleHttpHeaderActionHttpHeaderOption + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SecurityPolicyRuleHttpHeaderActionHttpHeaderOption message. + * @function verify + * @memberof google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderActionHttpHeaderOption + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.headerName != null && message.hasOwnProperty("headerName")) { + properties._headerName = 1; + if (!$util.isString(message.headerName)) + return "headerName: string expected"; + } + if (message.headerValue != null && message.hasOwnProperty("headerValue")) { + properties._headerValue = 1; + if (!$util.isString(message.headerValue)) + return "headerValue: string expected"; + } + return null; + }; + + /** + * Creates a SecurityPolicyRuleHttpHeaderActionHttpHeaderOption message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderActionHttpHeaderOption + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderActionHttpHeaderOption} SecurityPolicyRuleHttpHeaderActionHttpHeaderOption + */ + SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderActionHttpHeaderOption) + return object; + var message = new $root.google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderActionHttpHeaderOption(); + if (object.headerName != null) + message.headerName = String(object.headerName); + if (object.headerValue != null) + message.headerValue = String(object.headerValue); + return message; + }; + + /** + * Creates a plain object from a SecurityPolicyRuleHttpHeaderActionHttpHeaderOption message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderActionHttpHeaderOption + * @static + * @param {google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderActionHttpHeaderOption} message SecurityPolicyRuleHttpHeaderActionHttpHeaderOption + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.headerName != null && message.hasOwnProperty("headerName")) { + object.headerName = message.headerName; + if (options.oneofs) + object._headerName = "headerName"; + } + if (message.headerValue != null && message.hasOwnProperty("headerValue")) { + object.headerValue = message.headerValue; + if (options.oneofs) + object._headerValue = "headerValue"; + } + return object; + }; + + /** + * Converts this SecurityPolicyRuleHttpHeaderActionHttpHeaderOption to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.SecurityPolicyRuleHttpHeaderActionHttpHeaderOption + * @instance + * @returns {Object.} JSON object + */ + SecurityPolicyRuleHttpHeaderActionHttpHeaderOption.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return SecurityPolicyRuleHttpHeaderActionHttpHeaderOption; + })(); + v1.SecurityPolicyRuleMatcher = (function() { /** @@ -306150,6 +315978,1010 @@ return SecurityPolicyRuleMatcherConfig; })(); + v1.SecurityPolicyRuleRateLimitOptions = (function() { + + /** + * Properties of a SecurityPolicyRuleRateLimitOptions. + * @memberof google.cloud.compute.v1 + * @interface ISecurityPolicyRuleRateLimitOptions + * @property {number|null} [banDurationSec] SecurityPolicyRuleRateLimitOptions banDurationSec + * @property {google.cloud.compute.v1.ISecurityPolicyRuleRateLimitOptionsThreshold|null} [banThreshold] SecurityPolicyRuleRateLimitOptions banThreshold + * @property {string|null} [conformAction] SecurityPolicyRuleRateLimitOptions conformAction + * @property {string|null} [enforceOnKey] SecurityPolicyRuleRateLimitOptions enforceOnKey + * @property {string|null} [enforceOnKeyName] SecurityPolicyRuleRateLimitOptions enforceOnKeyName + * @property {string|null} [exceedAction] SecurityPolicyRuleRateLimitOptions exceedAction + * @property {google.cloud.compute.v1.ISecurityPolicyRuleRedirectOptions|null} [exceedRedirectOptions] SecurityPolicyRuleRateLimitOptions exceedRedirectOptions + * @property {google.cloud.compute.v1.ISecurityPolicyRuleRateLimitOptionsThreshold|null} [rateLimitThreshold] SecurityPolicyRuleRateLimitOptions rateLimitThreshold + */ + + /** + * Constructs a new SecurityPolicyRuleRateLimitOptions. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a SecurityPolicyRuleRateLimitOptions. + * @implements ISecurityPolicyRuleRateLimitOptions + * @constructor + * @param {google.cloud.compute.v1.ISecurityPolicyRuleRateLimitOptions=} [properties] Properties to set + */ + function SecurityPolicyRuleRateLimitOptions(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]]; + } + + /** + * SecurityPolicyRuleRateLimitOptions banDurationSec. + * @member {number|null|undefined} banDurationSec + * @memberof google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions + * @instance + */ + SecurityPolicyRuleRateLimitOptions.prototype.banDurationSec = null; + + /** + * SecurityPolicyRuleRateLimitOptions banThreshold. + * @member {google.cloud.compute.v1.ISecurityPolicyRuleRateLimitOptionsThreshold|null|undefined} banThreshold + * @memberof google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions + * @instance + */ + SecurityPolicyRuleRateLimitOptions.prototype.banThreshold = null; + + /** + * SecurityPolicyRuleRateLimitOptions conformAction. + * @member {string|null|undefined} conformAction + * @memberof google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions + * @instance + */ + SecurityPolicyRuleRateLimitOptions.prototype.conformAction = null; + + /** + * SecurityPolicyRuleRateLimitOptions enforceOnKey. + * @member {string|null|undefined} enforceOnKey + * @memberof google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions + * @instance + */ + SecurityPolicyRuleRateLimitOptions.prototype.enforceOnKey = null; + + /** + * SecurityPolicyRuleRateLimitOptions enforceOnKeyName. + * @member {string|null|undefined} enforceOnKeyName + * @memberof google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions + * @instance + */ + SecurityPolicyRuleRateLimitOptions.prototype.enforceOnKeyName = null; + + /** + * SecurityPolicyRuleRateLimitOptions exceedAction. + * @member {string|null|undefined} exceedAction + * @memberof google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions + * @instance + */ + SecurityPolicyRuleRateLimitOptions.prototype.exceedAction = null; + + /** + * SecurityPolicyRuleRateLimitOptions exceedRedirectOptions. + * @member {google.cloud.compute.v1.ISecurityPolicyRuleRedirectOptions|null|undefined} exceedRedirectOptions + * @memberof google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions + * @instance + */ + SecurityPolicyRuleRateLimitOptions.prototype.exceedRedirectOptions = null; + + /** + * SecurityPolicyRuleRateLimitOptions rateLimitThreshold. + * @member {google.cloud.compute.v1.ISecurityPolicyRuleRateLimitOptionsThreshold|null|undefined} rateLimitThreshold + * @memberof google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions + * @instance + */ + SecurityPolicyRuleRateLimitOptions.prototype.rateLimitThreshold = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * SecurityPolicyRuleRateLimitOptions _banDurationSec. + * @member {"banDurationSec"|undefined} _banDurationSec + * @memberof google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions + * @instance + */ + Object.defineProperty(SecurityPolicyRuleRateLimitOptions.prototype, "_banDurationSec", { + get: $util.oneOfGetter($oneOfFields = ["banDurationSec"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SecurityPolicyRuleRateLimitOptions _banThreshold. + * @member {"banThreshold"|undefined} _banThreshold + * @memberof google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions + * @instance + */ + Object.defineProperty(SecurityPolicyRuleRateLimitOptions.prototype, "_banThreshold", { + get: $util.oneOfGetter($oneOfFields = ["banThreshold"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SecurityPolicyRuleRateLimitOptions _conformAction. + * @member {"conformAction"|undefined} _conformAction + * @memberof google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions + * @instance + */ + Object.defineProperty(SecurityPolicyRuleRateLimitOptions.prototype, "_conformAction", { + get: $util.oneOfGetter($oneOfFields = ["conformAction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SecurityPolicyRuleRateLimitOptions _enforceOnKey. + * @member {"enforceOnKey"|undefined} _enforceOnKey + * @memberof google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions + * @instance + */ + Object.defineProperty(SecurityPolicyRuleRateLimitOptions.prototype, "_enforceOnKey", { + get: $util.oneOfGetter($oneOfFields = ["enforceOnKey"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SecurityPolicyRuleRateLimitOptions _enforceOnKeyName. + * @member {"enforceOnKeyName"|undefined} _enforceOnKeyName + * @memberof google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions + * @instance + */ + Object.defineProperty(SecurityPolicyRuleRateLimitOptions.prototype, "_enforceOnKeyName", { + get: $util.oneOfGetter($oneOfFields = ["enforceOnKeyName"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SecurityPolicyRuleRateLimitOptions _exceedAction. + * @member {"exceedAction"|undefined} _exceedAction + * @memberof google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions + * @instance + */ + Object.defineProperty(SecurityPolicyRuleRateLimitOptions.prototype, "_exceedAction", { + get: $util.oneOfGetter($oneOfFields = ["exceedAction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SecurityPolicyRuleRateLimitOptions _exceedRedirectOptions. + * @member {"exceedRedirectOptions"|undefined} _exceedRedirectOptions + * @memberof google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions + * @instance + */ + Object.defineProperty(SecurityPolicyRuleRateLimitOptions.prototype, "_exceedRedirectOptions", { + get: $util.oneOfGetter($oneOfFields = ["exceedRedirectOptions"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SecurityPolicyRuleRateLimitOptions _rateLimitThreshold. + * @member {"rateLimitThreshold"|undefined} _rateLimitThreshold + * @memberof google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions + * @instance + */ + Object.defineProperty(SecurityPolicyRuleRateLimitOptions.prototype, "_rateLimitThreshold", { + get: $util.oneOfGetter($oneOfFields = ["rateLimitThreshold"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new SecurityPolicyRuleRateLimitOptions instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions + * @static + * @param {google.cloud.compute.v1.ISecurityPolicyRuleRateLimitOptions=} [properties] Properties to set + * @returns {google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions} SecurityPolicyRuleRateLimitOptions instance + */ + SecurityPolicyRuleRateLimitOptions.create = function create(properties) { + return new SecurityPolicyRuleRateLimitOptions(properties); + }; + + /** + * Encodes the specified SecurityPolicyRuleRateLimitOptions message. Does not implicitly {@link google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions + * @static + * @param {google.cloud.compute.v1.ISecurityPolicyRuleRateLimitOptions} message SecurityPolicyRuleRateLimitOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SecurityPolicyRuleRateLimitOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.banDurationSec != null && Object.hasOwnProperty.call(message, "banDurationSec")) + writer.uint32(/* id 42896726, wireType 0 =*/343173808).int32(message.banDurationSec); + if (message.enforceOnKeyName != null && Object.hasOwnProperty.call(message, "enforceOnKeyName")) + writer.uint32(/* id 132555246, wireType 2 =*/1060441970).string(message.enforceOnKeyName); + if (message.exceedAction != null && Object.hasOwnProperty.call(message, "exceedAction")) + writer.uint32(/* id 167159073, wireType 2 =*/1337272586).string(message.exceedAction); + if (message.rateLimitThreshold != null && Object.hasOwnProperty.call(message, "rateLimitThreshold")) + $root.google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold.encode(message.rateLimitThreshold, writer.uint32(/* id 315875208, wireType 2 =*/2527001666).fork()).ldelim(); + if (message.enforceOnKey != null && Object.hasOwnProperty.call(message, "enforceOnKey")) + writer.uint32(/* id 416648956, wireType 2 =*/3333191650).string(message.enforceOnKey); + if (message.exceedRedirectOptions != null && Object.hasOwnProperty.call(message, "exceedRedirectOptions")) + $root.google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions.encode(message.exceedRedirectOptions, writer.uint32(/* id 473646694, wireType 2 =*/3789173554).fork()).ldelim(); + if (message.banThreshold != null && Object.hasOwnProperty.call(message, "banThreshold")) + $root.google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold.encode(message.banThreshold, writer.uint32(/* id 501208123, wireType 2 =*/4009664986).fork()).ldelim(); + if (message.conformAction != null && Object.hasOwnProperty.call(message, "conformAction")) + writer.uint32(/* id 517612367, wireType 2 =*/4140898938).string(message.conformAction); + return writer; + }; + + /** + * Encodes the specified SecurityPolicyRuleRateLimitOptions message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions + * @static + * @param {google.cloud.compute.v1.ISecurityPolicyRuleRateLimitOptions} message SecurityPolicyRuleRateLimitOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SecurityPolicyRuleRateLimitOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SecurityPolicyRuleRateLimitOptions message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions + * @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.SecurityPolicyRuleRateLimitOptions} SecurityPolicyRuleRateLimitOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SecurityPolicyRuleRateLimitOptions.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.SecurityPolicyRuleRateLimitOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 42896726: + message.banDurationSec = reader.int32(); + break; + case 501208123: + message.banThreshold = $root.google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold.decode(reader, reader.uint32()); + break; + case 517612367: + message.conformAction = reader.string(); + break; + case 416648956: + message.enforceOnKey = reader.string(); + break; + case 132555246: + message.enforceOnKeyName = reader.string(); + break; + case 167159073: + message.exceedAction = reader.string(); + break; + case 473646694: + message.exceedRedirectOptions = $root.google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions.decode(reader, reader.uint32()); + break; + case 315875208: + message.rateLimitThreshold = $root.google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SecurityPolicyRuleRateLimitOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions} SecurityPolicyRuleRateLimitOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SecurityPolicyRuleRateLimitOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SecurityPolicyRuleRateLimitOptions message. + * @function verify + * @memberof google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SecurityPolicyRuleRateLimitOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.banDurationSec != null && message.hasOwnProperty("banDurationSec")) { + properties._banDurationSec = 1; + if (!$util.isInteger(message.banDurationSec)) + return "banDurationSec: integer expected"; + } + if (message.banThreshold != null && message.hasOwnProperty("banThreshold")) { + properties._banThreshold = 1; + { + var error = $root.google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold.verify(message.banThreshold); + if (error) + return "banThreshold." + error; + } + } + if (message.conformAction != null && message.hasOwnProperty("conformAction")) { + properties._conformAction = 1; + if (!$util.isString(message.conformAction)) + return "conformAction: string expected"; + } + if (message.enforceOnKey != null && message.hasOwnProperty("enforceOnKey")) { + properties._enforceOnKey = 1; + if (!$util.isString(message.enforceOnKey)) + return "enforceOnKey: string expected"; + } + if (message.enforceOnKeyName != null && message.hasOwnProperty("enforceOnKeyName")) { + properties._enforceOnKeyName = 1; + if (!$util.isString(message.enforceOnKeyName)) + return "enforceOnKeyName: string expected"; + } + if (message.exceedAction != null && message.hasOwnProperty("exceedAction")) { + properties._exceedAction = 1; + if (!$util.isString(message.exceedAction)) + return "exceedAction: string expected"; + } + if (message.exceedRedirectOptions != null && message.hasOwnProperty("exceedRedirectOptions")) { + properties._exceedRedirectOptions = 1; + { + var error = $root.google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions.verify(message.exceedRedirectOptions); + if (error) + return "exceedRedirectOptions." + error; + } + } + if (message.rateLimitThreshold != null && message.hasOwnProperty("rateLimitThreshold")) { + properties._rateLimitThreshold = 1; + { + var error = $root.google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold.verify(message.rateLimitThreshold); + if (error) + return "rateLimitThreshold." + error; + } + } + return null; + }; + + /** + * Creates a SecurityPolicyRuleRateLimitOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions} SecurityPolicyRuleRateLimitOptions + */ + SecurityPolicyRuleRateLimitOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions) + return object; + var message = new $root.google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions(); + if (object.banDurationSec != null) + message.banDurationSec = object.banDurationSec | 0; + if (object.banThreshold != null) { + if (typeof object.banThreshold !== "object") + throw TypeError(".google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions.banThreshold: object expected"); + message.banThreshold = $root.google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold.fromObject(object.banThreshold); + } + if (object.conformAction != null) + message.conformAction = String(object.conformAction); + if (object.enforceOnKey != null) + message.enforceOnKey = String(object.enforceOnKey); + if (object.enforceOnKeyName != null) + message.enforceOnKeyName = String(object.enforceOnKeyName); + if (object.exceedAction != null) + message.exceedAction = String(object.exceedAction); + if (object.exceedRedirectOptions != null) { + if (typeof object.exceedRedirectOptions !== "object") + throw TypeError(".google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions.exceedRedirectOptions: object expected"); + message.exceedRedirectOptions = $root.google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions.fromObject(object.exceedRedirectOptions); + } + if (object.rateLimitThreshold != null) { + if (typeof object.rateLimitThreshold !== "object") + throw TypeError(".google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions.rateLimitThreshold: object expected"); + message.rateLimitThreshold = $root.google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold.fromObject(object.rateLimitThreshold); + } + return message; + }; + + /** + * Creates a plain object from a SecurityPolicyRuleRateLimitOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions + * @static + * @param {google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions} message SecurityPolicyRuleRateLimitOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SecurityPolicyRuleRateLimitOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.banDurationSec != null && message.hasOwnProperty("banDurationSec")) { + object.banDurationSec = message.banDurationSec; + if (options.oneofs) + object._banDurationSec = "banDurationSec"; + } + if (message.enforceOnKeyName != null && message.hasOwnProperty("enforceOnKeyName")) { + object.enforceOnKeyName = message.enforceOnKeyName; + if (options.oneofs) + object._enforceOnKeyName = "enforceOnKeyName"; + } + if (message.exceedAction != null && message.hasOwnProperty("exceedAction")) { + object.exceedAction = message.exceedAction; + if (options.oneofs) + object._exceedAction = "exceedAction"; + } + if (message.rateLimitThreshold != null && message.hasOwnProperty("rateLimitThreshold")) { + object.rateLimitThreshold = $root.google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold.toObject(message.rateLimitThreshold, options); + if (options.oneofs) + object._rateLimitThreshold = "rateLimitThreshold"; + } + if (message.enforceOnKey != null && message.hasOwnProperty("enforceOnKey")) { + object.enforceOnKey = message.enforceOnKey; + if (options.oneofs) + object._enforceOnKey = "enforceOnKey"; + } + if (message.exceedRedirectOptions != null && message.hasOwnProperty("exceedRedirectOptions")) { + object.exceedRedirectOptions = $root.google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions.toObject(message.exceedRedirectOptions, options); + if (options.oneofs) + object._exceedRedirectOptions = "exceedRedirectOptions"; + } + if (message.banThreshold != null && message.hasOwnProperty("banThreshold")) { + object.banThreshold = $root.google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold.toObject(message.banThreshold, options); + if (options.oneofs) + object._banThreshold = "banThreshold"; + } + if (message.conformAction != null && message.hasOwnProperty("conformAction")) { + object.conformAction = message.conformAction; + if (options.oneofs) + object._conformAction = "conformAction"; + } + return object; + }; + + /** + * Converts this SecurityPolicyRuleRateLimitOptions to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions + * @instance + * @returns {Object.} JSON object + */ + SecurityPolicyRuleRateLimitOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * EnforceOnKey enum. + * @name google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptions.EnforceOnKey + * @enum {number} + * @property {number} UNDEFINED_ENFORCE_ON_KEY=0 UNDEFINED_ENFORCE_ON_KEY value + * @property {number} ALL=64897 ALL value + * @property {number} HTTP_COOKIE=494981627 HTTP_COOKIE value + * @property {number} HTTP_HEADER=91597348 HTTP_HEADER value + * @property {number} IP=2343 IP value + * @property {number} XFF_IP=438707118 XFF_IP value + */ + SecurityPolicyRuleRateLimitOptions.EnforceOnKey = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_ENFORCE_ON_KEY"] = 0; + values[valuesById[64897] = "ALL"] = 64897; + values[valuesById[494981627] = "HTTP_COOKIE"] = 494981627; + values[valuesById[91597348] = "HTTP_HEADER"] = 91597348; + values[valuesById[2343] = "IP"] = 2343; + values[valuesById[438707118] = "XFF_IP"] = 438707118; + return values; + })(); + + return SecurityPolicyRuleRateLimitOptions; + })(); + + v1.SecurityPolicyRuleRateLimitOptionsThreshold = (function() { + + /** + * Properties of a SecurityPolicyRuleRateLimitOptionsThreshold. + * @memberof google.cloud.compute.v1 + * @interface ISecurityPolicyRuleRateLimitOptionsThreshold + * @property {number|null} [count] SecurityPolicyRuleRateLimitOptionsThreshold count + * @property {number|null} [intervalSec] SecurityPolicyRuleRateLimitOptionsThreshold intervalSec + */ + + /** + * Constructs a new SecurityPolicyRuleRateLimitOptionsThreshold. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a SecurityPolicyRuleRateLimitOptionsThreshold. + * @implements ISecurityPolicyRuleRateLimitOptionsThreshold + * @constructor + * @param {google.cloud.compute.v1.ISecurityPolicyRuleRateLimitOptionsThreshold=} [properties] Properties to set + */ + function SecurityPolicyRuleRateLimitOptionsThreshold(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]]; + } + + /** + * SecurityPolicyRuleRateLimitOptionsThreshold count. + * @member {number|null|undefined} count + * @memberof google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold + * @instance + */ + SecurityPolicyRuleRateLimitOptionsThreshold.prototype.count = null; + + /** + * SecurityPolicyRuleRateLimitOptionsThreshold intervalSec. + * @member {number|null|undefined} intervalSec + * @memberof google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold + * @instance + */ + SecurityPolicyRuleRateLimitOptionsThreshold.prototype.intervalSec = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * SecurityPolicyRuleRateLimitOptionsThreshold _count. + * @member {"count"|undefined} _count + * @memberof google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold + * @instance + */ + Object.defineProperty(SecurityPolicyRuleRateLimitOptionsThreshold.prototype, "_count", { + get: $util.oneOfGetter($oneOfFields = ["count"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SecurityPolicyRuleRateLimitOptionsThreshold _intervalSec. + * @member {"intervalSec"|undefined} _intervalSec + * @memberof google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold + * @instance + */ + Object.defineProperty(SecurityPolicyRuleRateLimitOptionsThreshold.prototype, "_intervalSec", { + get: $util.oneOfGetter($oneOfFields = ["intervalSec"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new SecurityPolicyRuleRateLimitOptionsThreshold instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold + * @static + * @param {google.cloud.compute.v1.ISecurityPolicyRuleRateLimitOptionsThreshold=} [properties] Properties to set + * @returns {google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold} SecurityPolicyRuleRateLimitOptionsThreshold instance + */ + SecurityPolicyRuleRateLimitOptionsThreshold.create = function create(properties) { + return new SecurityPolicyRuleRateLimitOptionsThreshold(properties); + }; + + /** + * Encodes the specified SecurityPolicyRuleRateLimitOptionsThreshold message. Does not implicitly {@link google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold + * @static + * @param {google.cloud.compute.v1.ISecurityPolicyRuleRateLimitOptionsThreshold} message SecurityPolicyRuleRateLimitOptionsThreshold message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SecurityPolicyRuleRateLimitOptionsThreshold.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.intervalSec != null && Object.hasOwnProperty.call(message, "intervalSec")) + writer.uint32(/* id 41084375, wireType 0 =*/328675000).int32(message.intervalSec); + if (message.count != null && Object.hasOwnProperty.call(message, "count")) + writer.uint32(/* id 94851343, wireType 0 =*/758810744).int32(message.count); + return writer; + }; + + /** + * Encodes the specified SecurityPolicyRuleRateLimitOptionsThreshold message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold + * @static + * @param {google.cloud.compute.v1.ISecurityPolicyRuleRateLimitOptionsThreshold} message SecurityPolicyRuleRateLimitOptionsThreshold message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SecurityPolicyRuleRateLimitOptionsThreshold.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SecurityPolicyRuleRateLimitOptionsThreshold message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold + * @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.SecurityPolicyRuleRateLimitOptionsThreshold} SecurityPolicyRuleRateLimitOptionsThreshold + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SecurityPolicyRuleRateLimitOptionsThreshold.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.SecurityPolicyRuleRateLimitOptionsThreshold(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 94851343: + message.count = reader.int32(); + break; + case 41084375: + message.intervalSec = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SecurityPolicyRuleRateLimitOptionsThreshold message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold} SecurityPolicyRuleRateLimitOptionsThreshold + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SecurityPolicyRuleRateLimitOptionsThreshold.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SecurityPolicyRuleRateLimitOptionsThreshold message. + * @function verify + * @memberof google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SecurityPolicyRuleRateLimitOptionsThreshold.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.count != null && message.hasOwnProperty("count")) { + properties._count = 1; + if (!$util.isInteger(message.count)) + return "count: integer expected"; + } + if (message.intervalSec != null && message.hasOwnProperty("intervalSec")) { + properties._intervalSec = 1; + if (!$util.isInteger(message.intervalSec)) + return "intervalSec: integer expected"; + } + return null; + }; + + /** + * Creates a SecurityPolicyRuleRateLimitOptionsThreshold message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold} SecurityPolicyRuleRateLimitOptionsThreshold + */ + SecurityPolicyRuleRateLimitOptionsThreshold.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold) + return object; + var message = new $root.google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold(); + if (object.count != null) + message.count = object.count | 0; + if (object.intervalSec != null) + message.intervalSec = object.intervalSec | 0; + return message; + }; + + /** + * Creates a plain object from a SecurityPolicyRuleRateLimitOptionsThreshold message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold + * @static + * @param {google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold} message SecurityPolicyRuleRateLimitOptionsThreshold + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SecurityPolicyRuleRateLimitOptionsThreshold.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.intervalSec != null && message.hasOwnProperty("intervalSec")) { + object.intervalSec = message.intervalSec; + if (options.oneofs) + object._intervalSec = "intervalSec"; + } + if (message.count != null && message.hasOwnProperty("count")) { + object.count = message.count; + if (options.oneofs) + object._count = "count"; + } + return object; + }; + + /** + * Converts this SecurityPolicyRuleRateLimitOptionsThreshold to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.SecurityPolicyRuleRateLimitOptionsThreshold + * @instance + * @returns {Object.} JSON object + */ + SecurityPolicyRuleRateLimitOptionsThreshold.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return SecurityPolicyRuleRateLimitOptionsThreshold; + })(); + + v1.SecurityPolicyRuleRedirectOptions = (function() { + + /** + * Properties of a SecurityPolicyRuleRedirectOptions. + * @memberof google.cloud.compute.v1 + * @interface ISecurityPolicyRuleRedirectOptions + * @property {string|null} [target] SecurityPolicyRuleRedirectOptions target + * @property {string|null} [type] SecurityPolicyRuleRedirectOptions type + */ + + /** + * Constructs a new SecurityPolicyRuleRedirectOptions. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a SecurityPolicyRuleRedirectOptions. + * @implements ISecurityPolicyRuleRedirectOptions + * @constructor + * @param {google.cloud.compute.v1.ISecurityPolicyRuleRedirectOptions=} [properties] Properties to set + */ + function SecurityPolicyRuleRedirectOptions(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]]; + } + + /** + * SecurityPolicyRuleRedirectOptions target. + * @member {string|null|undefined} target + * @memberof google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions + * @instance + */ + SecurityPolicyRuleRedirectOptions.prototype.target = null; + + /** + * SecurityPolicyRuleRedirectOptions type. + * @member {string|null|undefined} type + * @memberof google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions + * @instance + */ + SecurityPolicyRuleRedirectOptions.prototype.type = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * SecurityPolicyRuleRedirectOptions _target. + * @member {"target"|undefined} _target + * @memberof google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions + * @instance + */ + Object.defineProperty(SecurityPolicyRuleRedirectOptions.prototype, "_target", { + get: $util.oneOfGetter($oneOfFields = ["target"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SecurityPolicyRuleRedirectOptions _type. + * @member {"type"|undefined} _type + * @memberof google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions + * @instance + */ + Object.defineProperty(SecurityPolicyRuleRedirectOptions.prototype, "_type", { + get: $util.oneOfGetter($oneOfFields = ["type"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new SecurityPolicyRuleRedirectOptions instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions + * @static + * @param {google.cloud.compute.v1.ISecurityPolicyRuleRedirectOptions=} [properties] Properties to set + * @returns {google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions} SecurityPolicyRuleRedirectOptions instance + */ + SecurityPolicyRuleRedirectOptions.create = function create(properties) { + return new SecurityPolicyRuleRedirectOptions(properties); + }; + + /** + * Encodes the specified SecurityPolicyRuleRedirectOptions message. Does not implicitly {@link google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions + * @static + * @param {google.cloud.compute.v1.ISecurityPolicyRuleRedirectOptions} message SecurityPolicyRuleRedirectOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SecurityPolicyRuleRedirectOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 3575610, wireType 2 =*/28604882).string(message.type); + if (message.target != null && Object.hasOwnProperty.call(message, "target")) + writer.uint32(/* id 192835985, wireType 2 =*/1542687882).string(message.target); + return writer; + }; + + /** + * Encodes the specified SecurityPolicyRuleRedirectOptions message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions + * @static + * @param {google.cloud.compute.v1.ISecurityPolicyRuleRedirectOptions} message SecurityPolicyRuleRedirectOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SecurityPolicyRuleRedirectOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SecurityPolicyRuleRedirectOptions message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions + * @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.SecurityPolicyRuleRedirectOptions} SecurityPolicyRuleRedirectOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SecurityPolicyRuleRedirectOptions.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.SecurityPolicyRuleRedirectOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 192835985: + message.target = reader.string(); + break; + case 3575610: + message.type = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SecurityPolicyRuleRedirectOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions} SecurityPolicyRuleRedirectOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SecurityPolicyRuleRedirectOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SecurityPolicyRuleRedirectOptions message. + * @function verify + * @memberof google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SecurityPolicyRuleRedirectOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.target != null && message.hasOwnProperty("target")) { + properties._target = 1; + if (!$util.isString(message.target)) + return "target: string expected"; + } + if (message.type != null && message.hasOwnProperty("type")) { + properties._type = 1; + if (!$util.isString(message.type)) + return "type: string expected"; + } + return null; + }; + + /** + * Creates a SecurityPolicyRuleRedirectOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions} SecurityPolicyRuleRedirectOptions + */ + SecurityPolicyRuleRedirectOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions) + return object; + var message = new $root.google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions(); + if (object.target != null) + message.target = String(object.target); + if (object.type != null) + message.type = String(object.type); + return message; + }; + + /** + * Creates a plain object from a SecurityPolicyRuleRedirectOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions + * @static + * @param {google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions} message SecurityPolicyRuleRedirectOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SecurityPolicyRuleRedirectOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.type != null && message.hasOwnProperty("type")) { + object.type = message.type; + if (options.oneofs) + object._type = "type"; + } + if (message.target != null && message.hasOwnProperty("target")) { + object.target = message.target; + if (options.oneofs) + object._target = "target"; + } + return object; + }; + + /** + * Converts this SecurityPolicyRuleRedirectOptions to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions + * @instance + * @returns {Object.} JSON object + */ + SecurityPolicyRuleRedirectOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Type enum. + * @name google.cloud.compute.v1.SecurityPolicyRuleRedirectOptions.Type + * @enum {number} + * @property {number} UNDEFINED_TYPE=0 UNDEFINED_TYPE value + * @property {number} EXTERNAL_302=395733761 EXTERNAL_302 value + * @property {number} GOOGLE_RECAPTCHA=518803009 GOOGLE_RECAPTCHA value + */ + SecurityPolicyRuleRedirectOptions.Type = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_TYPE"] = 0; + values[valuesById[395733761] = "EXTERNAL_302"] = 395733761; + values[valuesById[518803009] = "GOOGLE_RECAPTCHA"] = 518803009; + return values; + })(); + + return SecurityPolicyRuleRedirectOptions; + })(); + v1.SecuritySettings = (function() { /** @@ -307638,6 +318470,7 @@ * @property {Array.|null} [consumerRejectLists] ServiceAttachment consumerRejectLists * @property {string|null} [creationTimestamp] ServiceAttachment creationTimestamp * @property {string|null} [description] ServiceAttachment description + * @property {Array.|null} [domainNames] ServiceAttachment domainNames * @property {boolean|null} [enableProxyProtocol] ServiceAttachment enableProxyProtocol * @property {string|null} [fingerprint] ServiceAttachment fingerprint * @property {number|Long|null} [id] ServiceAttachment id @@ -307663,6 +318496,7 @@ this.connectedEndpoints = []; this.consumerAcceptLists = []; this.consumerRejectLists = []; + this.domainNames = []; this.natSubnets = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) @@ -307718,6 +318552,14 @@ */ ServiceAttachment.prototype.description = null; + /** + * ServiceAttachment domainNames. + * @member {Array.} domainNames + * @memberof google.cloud.compute.v1.ServiceAttachment + * @instance + */ + ServiceAttachment.prototype.domainNames = $util.emptyArray; + /** * ServiceAttachment enableProxyProtocol. * @member {boolean|null|undefined} enableProxyProtocol @@ -307984,6 +318826,9 @@ writer.uint32(/* id 3292052, wireType 2 =*/26336418).string(message.kind); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 3373707, wireType 2 =*/26989658).string(message.name); + if (message.domainNames != null && message.domainNames.length) + for (var i = 0; i < message.domainNames.length; ++i) + writer.uint32(/* id 6450189, wireType 2 =*/51601514).string(message.domainNames[i]); if (message.creationTimestamp != null && Object.hasOwnProperty.call(message, "creationTimestamp")) writer.uint32(/* id 30525366, wireType 2 =*/244202930).string(message.creationTimestamp); if (message.connectedEndpoints != null && message.connectedEndpoints.length) @@ -308072,6 +318917,11 @@ case 422937596: message.description = reader.string(); break; + case 6450189: + if (!(message.domainNames && message.domainNames.length)) + message.domainNames = []; + message.domainNames.push(reader.string()); + break; case 363791237: message.enableProxyProtocol = reader.bool(); break; @@ -308183,6 +319033,13 @@ if (!$util.isString(message.description)) return "description: string expected"; } + if (message.domainNames != null && message.hasOwnProperty("domainNames")) { + if (!Array.isArray(message.domainNames)) + return "domainNames: array expected"; + for (var i = 0; i < message.domainNames.length; ++i) + if (!$util.isString(message.domainNames[i])) + return "domainNames: string[] expected"; + } if (message.enableProxyProtocol != null && message.hasOwnProperty("enableProxyProtocol")) { properties._enableProxyProtocol = 1; if (typeof message.enableProxyProtocol !== "boolean") @@ -308291,6 +319148,13 @@ message.creationTimestamp = String(object.creationTimestamp); if (object.description != null) message.description = String(object.description); + if (object.domainNames) { + if (!Array.isArray(object.domainNames)) + throw TypeError(".google.cloud.compute.v1.ServiceAttachment.domainNames: array expected"); + message.domainNames = []; + for (var i = 0; i < object.domainNames.length; ++i) + message.domainNames[i] = String(object.domainNames[i]); + } if (object.enableProxyProtocol != null) message.enableProxyProtocol = Boolean(object.enableProxyProtocol); if (object.fingerprint != null) @@ -308345,6 +319209,7 @@ options = {}; var object = {}; if (options.arrays || options.defaults) { + object.domainNames = []; object.connectedEndpoints = []; object.consumerRejectLists = []; object.natSubnets = []; @@ -308373,6 +319238,11 @@ if (options.oneofs) object._name = "name"; } + if (message.domainNames && message.domainNames.length) { + object.domainNames = []; + for (var j = 0; j < message.domainNames.length; ++j) + object.domainNames[j] = message.domainNames[j]; + } if (message.creationTimestamp != null && message.hasOwnProperty("creationTimestamp")) { object.creationTimestamp = message.creationTimestamp; if (options.oneofs) @@ -312179,6 +323049,562 @@ return SetDiskAutoDeleteInstanceRequest; })(); + v1.SetEdgeSecurityPolicyBackendBucketRequest = (function() { + + /** + * Properties of a SetEdgeSecurityPolicyBackendBucketRequest. + * @memberof google.cloud.compute.v1 + * @interface ISetEdgeSecurityPolicyBackendBucketRequest + * @property {string|null} [backendBucket] SetEdgeSecurityPolicyBackendBucketRequest backendBucket + * @property {string|null} [project] SetEdgeSecurityPolicyBackendBucketRequest project + * @property {string|null} [requestId] SetEdgeSecurityPolicyBackendBucketRequest requestId + * @property {google.cloud.compute.v1.ISecurityPolicyReference|null} [securityPolicyReferenceResource] SetEdgeSecurityPolicyBackendBucketRequest securityPolicyReferenceResource + */ + + /** + * Constructs a new SetEdgeSecurityPolicyBackendBucketRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a SetEdgeSecurityPolicyBackendBucketRequest. + * @implements ISetEdgeSecurityPolicyBackendBucketRequest + * @constructor + * @param {google.cloud.compute.v1.ISetEdgeSecurityPolicyBackendBucketRequest=} [properties] Properties to set + */ + function SetEdgeSecurityPolicyBackendBucketRequest(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]]; + } + + /** + * SetEdgeSecurityPolicyBackendBucketRequest backendBucket. + * @member {string} backendBucket + * @memberof google.cloud.compute.v1.SetEdgeSecurityPolicyBackendBucketRequest + * @instance + */ + SetEdgeSecurityPolicyBackendBucketRequest.prototype.backendBucket = ""; + + /** + * SetEdgeSecurityPolicyBackendBucketRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.SetEdgeSecurityPolicyBackendBucketRequest + * @instance + */ + SetEdgeSecurityPolicyBackendBucketRequest.prototype.project = ""; + + /** + * SetEdgeSecurityPolicyBackendBucketRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1.SetEdgeSecurityPolicyBackendBucketRequest + * @instance + */ + SetEdgeSecurityPolicyBackendBucketRequest.prototype.requestId = null; + + /** + * SetEdgeSecurityPolicyBackendBucketRequest securityPolicyReferenceResource. + * @member {google.cloud.compute.v1.ISecurityPolicyReference|null|undefined} securityPolicyReferenceResource + * @memberof google.cloud.compute.v1.SetEdgeSecurityPolicyBackendBucketRequest + * @instance + */ + SetEdgeSecurityPolicyBackendBucketRequest.prototype.securityPolicyReferenceResource = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * SetEdgeSecurityPolicyBackendBucketRequest _requestId. + * @member {"requestId"|undefined} _requestId + * @memberof google.cloud.compute.v1.SetEdgeSecurityPolicyBackendBucketRequest + * @instance + */ + Object.defineProperty(SetEdgeSecurityPolicyBackendBucketRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new SetEdgeSecurityPolicyBackendBucketRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.SetEdgeSecurityPolicyBackendBucketRequest + * @static + * @param {google.cloud.compute.v1.ISetEdgeSecurityPolicyBackendBucketRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.SetEdgeSecurityPolicyBackendBucketRequest} SetEdgeSecurityPolicyBackendBucketRequest instance + */ + SetEdgeSecurityPolicyBackendBucketRequest.create = function create(properties) { + return new SetEdgeSecurityPolicyBackendBucketRequest(properties); + }; + + /** + * Encodes the specified SetEdgeSecurityPolicyBackendBucketRequest message. Does not implicitly {@link google.cloud.compute.v1.SetEdgeSecurityPolicyBackendBucketRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.SetEdgeSecurityPolicyBackendBucketRequest + * @static + * @param {google.cloud.compute.v1.ISetEdgeSecurityPolicyBackendBucketRequest} message SetEdgeSecurityPolicyBackendBucketRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetEdgeSecurityPolicyBackendBucketRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); + if (message.backendBucket != null && Object.hasOwnProperty.call(message, "backendBucket")) + writer.uint32(/* id 91714037, wireType 2 =*/733712298).string(message.backendBucket); + if (message.securityPolicyReferenceResource != null && Object.hasOwnProperty.call(message, "securityPolicyReferenceResource")) + $root.google.cloud.compute.v1.SecurityPolicyReference.encode(message.securityPolicyReferenceResource, writer.uint32(/* id 204135024, wireType 2 =*/1633080194).fork()).ldelim(); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + return writer; + }; + + /** + * Encodes the specified SetEdgeSecurityPolicyBackendBucketRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SetEdgeSecurityPolicyBackendBucketRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.SetEdgeSecurityPolicyBackendBucketRequest + * @static + * @param {google.cloud.compute.v1.ISetEdgeSecurityPolicyBackendBucketRequest} message SetEdgeSecurityPolicyBackendBucketRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetEdgeSecurityPolicyBackendBucketRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SetEdgeSecurityPolicyBackendBucketRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.SetEdgeSecurityPolicyBackendBucketRequest + * @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.SetEdgeSecurityPolicyBackendBucketRequest} SetEdgeSecurityPolicyBackendBucketRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SetEdgeSecurityPolicyBackendBucketRequest.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.SetEdgeSecurityPolicyBackendBucketRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 91714037: + message.backendBucket = reader.string(); + break; + case 227560217: + message.project = reader.string(); + break; + case 37109963: + message.requestId = reader.string(); + break; + case 204135024: + message.securityPolicyReferenceResource = $root.google.cloud.compute.v1.SecurityPolicyReference.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SetEdgeSecurityPolicyBackendBucketRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.SetEdgeSecurityPolicyBackendBucketRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.SetEdgeSecurityPolicyBackendBucketRequest} SetEdgeSecurityPolicyBackendBucketRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SetEdgeSecurityPolicyBackendBucketRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SetEdgeSecurityPolicyBackendBucketRequest message. + * @function verify + * @memberof google.cloud.compute.v1.SetEdgeSecurityPolicyBackendBucketRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SetEdgeSecurityPolicyBackendBucketRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.backendBucket != null && message.hasOwnProperty("backendBucket")) + if (!$util.isString(message.backendBucket)) + return "backendBucket: 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.securityPolicyReferenceResource != null && message.hasOwnProperty("securityPolicyReferenceResource")) { + var error = $root.google.cloud.compute.v1.SecurityPolicyReference.verify(message.securityPolicyReferenceResource); + if (error) + return "securityPolicyReferenceResource." + error; + } + return null; + }; + + /** + * Creates a SetEdgeSecurityPolicyBackendBucketRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.SetEdgeSecurityPolicyBackendBucketRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.SetEdgeSecurityPolicyBackendBucketRequest} SetEdgeSecurityPolicyBackendBucketRequest + */ + SetEdgeSecurityPolicyBackendBucketRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.SetEdgeSecurityPolicyBackendBucketRequest) + return object; + var message = new $root.google.cloud.compute.v1.SetEdgeSecurityPolicyBackendBucketRequest(); + if (object.backendBucket != null) + message.backendBucket = String(object.backendBucket); + if (object.project != null) + message.project = String(object.project); + if (object.requestId != null) + message.requestId = String(object.requestId); + if (object.securityPolicyReferenceResource != null) { + if (typeof object.securityPolicyReferenceResource !== "object") + throw TypeError(".google.cloud.compute.v1.SetEdgeSecurityPolicyBackendBucketRequest.securityPolicyReferenceResource: object expected"); + message.securityPolicyReferenceResource = $root.google.cloud.compute.v1.SecurityPolicyReference.fromObject(object.securityPolicyReferenceResource); + } + return message; + }; + + /** + * Creates a plain object from a SetEdgeSecurityPolicyBackendBucketRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.SetEdgeSecurityPolicyBackendBucketRequest + * @static + * @param {google.cloud.compute.v1.SetEdgeSecurityPolicyBackendBucketRequest} message SetEdgeSecurityPolicyBackendBucketRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SetEdgeSecurityPolicyBackendBucketRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.backendBucket = ""; + object.securityPolicyReferenceResource = null; + object.project = ""; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) { + object.requestId = message.requestId; + if (options.oneofs) + object._requestId = "requestId"; + } + if (message.backendBucket != null && message.hasOwnProperty("backendBucket")) + object.backendBucket = message.backendBucket; + if (message.securityPolicyReferenceResource != null && message.hasOwnProperty("securityPolicyReferenceResource")) + object.securityPolicyReferenceResource = $root.google.cloud.compute.v1.SecurityPolicyReference.toObject(message.securityPolicyReferenceResource, options); + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + return object; + }; + + /** + * Converts this SetEdgeSecurityPolicyBackendBucketRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.SetEdgeSecurityPolicyBackendBucketRequest + * @instance + * @returns {Object.} JSON object + */ + SetEdgeSecurityPolicyBackendBucketRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return SetEdgeSecurityPolicyBackendBucketRequest; + })(); + + v1.SetEdgeSecurityPolicyBackendServiceRequest = (function() { + + /** + * Properties of a SetEdgeSecurityPolicyBackendServiceRequest. + * @memberof google.cloud.compute.v1 + * @interface ISetEdgeSecurityPolicyBackendServiceRequest + * @property {string|null} [backendService] SetEdgeSecurityPolicyBackendServiceRequest backendService + * @property {string|null} [project] SetEdgeSecurityPolicyBackendServiceRequest project + * @property {string|null} [requestId] SetEdgeSecurityPolicyBackendServiceRequest requestId + * @property {google.cloud.compute.v1.ISecurityPolicyReference|null} [securityPolicyReferenceResource] SetEdgeSecurityPolicyBackendServiceRequest securityPolicyReferenceResource + */ + + /** + * Constructs a new SetEdgeSecurityPolicyBackendServiceRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a SetEdgeSecurityPolicyBackendServiceRequest. + * @implements ISetEdgeSecurityPolicyBackendServiceRequest + * @constructor + * @param {google.cloud.compute.v1.ISetEdgeSecurityPolicyBackendServiceRequest=} [properties] Properties to set + */ + function SetEdgeSecurityPolicyBackendServiceRequest(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]]; + } + + /** + * SetEdgeSecurityPolicyBackendServiceRequest backendService. + * @member {string} backendService + * @memberof google.cloud.compute.v1.SetEdgeSecurityPolicyBackendServiceRequest + * @instance + */ + SetEdgeSecurityPolicyBackendServiceRequest.prototype.backendService = ""; + + /** + * SetEdgeSecurityPolicyBackendServiceRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.SetEdgeSecurityPolicyBackendServiceRequest + * @instance + */ + SetEdgeSecurityPolicyBackendServiceRequest.prototype.project = ""; + + /** + * SetEdgeSecurityPolicyBackendServiceRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1.SetEdgeSecurityPolicyBackendServiceRequest + * @instance + */ + SetEdgeSecurityPolicyBackendServiceRequest.prototype.requestId = null; + + /** + * SetEdgeSecurityPolicyBackendServiceRequest securityPolicyReferenceResource. + * @member {google.cloud.compute.v1.ISecurityPolicyReference|null|undefined} securityPolicyReferenceResource + * @memberof google.cloud.compute.v1.SetEdgeSecurityPolicyBackendServiceRequest + * @instance + */ + SetEdgeSecurityPolicyBackendServiceRequest.prototype.securityPolicyReferenceResource = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * SetEdgeSecurityPolicyBackendServiceRequest _requestId. + * @member {"requestId"|undefined} _requestId + * @memberof google.cloud.compute.v1.SetEdgeSecurityPolicyBackendServiceRequest + * @instance + */ + Object.defineProperty(SetEdgeSecurityPolicyBackendServiceRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new SetEdgeSecurityPolicyBackendServiceRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.SetEdgeSecurityPolicyBackendServiceRequest + * @static + * @param {google.cloud.compute.v1.ISetEdgeSecurityPolicyBackendServiceRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.SetEdgeSecurityPolicyBackendServiceRequest} SetEdgeSecurityPolicyBackendServiceRequest instance + */ + SetEdgeSecurityPolicyBackendServiceRequest.create = function create(properties) { + return new SetEdgeSecurityPolicyBackendServiceRequest(properties); + }; + + /** + * Encodes the specified SetEdgeSecurityPolicyBackendServiceRequest message. Does not implicitly {@link google.cloud.compute.v1.SetEdgeSecurityPolicyBackendServiceRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.SetEdgeSecurityPolicyBackendServiceRequest + * @static + * @param {google.cloud.compute.v1.ISetEdgeSecurityPolicyBackendServiceRequest} message SetEdgeSecurityPolicyBackendServiceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetEdgeSecurityPolicyBackendServiceRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); + if (message.securityPolicyReferenceResource != null && Object.hasOwnProperty.call(message, "securityPolicyReferenceResource")) + $root.google.cloud.compute.v1.SecurityPolicyReference.encode(message.securityPolicyReferenceResource, writer.uint32(/* id 204135024, wireType 2 =*/1633080194).fork()).ldelim(); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.backendService != null && Object.hasOwnProperty.call(message, "backendService")) + writer.uint32(/* id 306946058, wireType 2 =*/2455568466).string(message.backendService); + return writer; + }; + + /** + * Encodes the specified SetEdgeSecurityPolicyBackendServiceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SetEdgeSecurityPolicyBackendServiceRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.SetEdgeSecurityPolicyBackendServiceRequest + * @static + * @param {google.cloud.compute.v1.ISetEdgeSecurityPolicyBackendServiceRequest} message SetEdgeSecurityPolicyBackendServiceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetEdgeSecurityPolicyBackendServiceRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SetEdgeSecurityPolicyBackendServiceRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.SetEdgeSecurityPolicyBackendServiceRequest + * @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.SetEdgeSecurityPolicyBackendServiceRequest} SetEdgeSecurityPolicyBackendServiceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SetEdgeSecurityPolicyBackendServiceRequest.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.SetEdgeSecurityPolicyBackendServiceRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 306946058: + message.backendService = reader.string(); + break; + case 227560217: + message.project = reader.string(); + break; + case 37109963: + message.requestId = reader.string(); + break; + case 204135024: + message.securityPolicyReferenceResource = $root.google.cloud.compute.v1.SecurityPolicyReference.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SetEdgeSecurityPolicyBackendServiceRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.SetEdgeSecurityPolicyBackendServiceRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.SetEdgeSecurityPolicyBackendServiceRequest} SetEdgeSecurityPolicyBackendServiceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SetEdgeSecurityPolicyBackendServiceRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SetEdgeSecurityPolicyBackendServiceRequest message. + * @function verify + * @memberof google.cloud.compute.v1.SetEdgeSecurityPolicyBackendServiceRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SetEdgeSecurityPolicyBackendServiceRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.backendService != null && message.hasOwnProperty("backendService")) + if (!$util.isString(message.backendService)) + return "backendService: 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.securityPolicyReferenceResource != null && message.hasOwnProperty("securityPolicyReferenceResource")) { + var error = $root.google.cloud.compute.v1.SecurityPolicyReference.verify(message.securityPolicyReferenceResource); + if (error) + return "securityPolicyReferenceResource." + error; + } + return null; + }; + + /** + * Creates a SetEdgeSecurityPolicyBackendServiceRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.SetEdgeSecurityPolicyBackendServiceRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.SetEdgeSecurityPolicyBackendServiceRequest} SetEdgeSecurityPolicyBackendServiceRequest + */ + SetEdgeSecurityPolicyBackendServiceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.SetEdgeSecurityPolicyBackendServiceRequest) + return object; + var message = new $root.google.cloud.compute.v1.SetEdgeSecurityPolicyBackendServiceRequest(); + if (object.backendService != null) + message.backendService = String(object.backendService); + if (object.project != null) + message.project = String(object.project); + if (object.requestId != null) + message.requestId = String(object.requestId); + if (object.securityPolicyReferenceResource != null) { + if (typeof object.securityPolicyReferenceResource !== "object") + throw TypeError(".google.cloud.compute.v1.SetEdgeSecurityPolicyBackendServiceRequest.securityPolicyReferenceResource: object expected"); + message.securityPolicyReferenceResource = $root.google.cloud.compute.v1.SecurityPolicyReference.fromObject(object.securityPolicyReferenceResource); + } + return message; + }; + + /** + * Creates a plain object from a SetEdgeSecurityPolicyBackendServiceRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.SetEdgeSecurityPolicyBackendServiceRequest + * @static + * @param {google.cloud.compute.v1.SetEdgeSecurityPolicyBackendServiceRequest} message SetEdgeSecurityPolicyBackendServiceRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SetEdgeSecurityPolicyBackendServiceRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.securityPolicyReferenceResource = null; + object.project = ""; + object.backendService = ""; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) { + object.requestId = message.requestId; + if (options.oneofs) + object._requestId = "requestId"; + } + if (message.securityPolicyReferenceResource != null && message.hasOwnProperty("securityPolicyReferenceResource")) + object.securityPolicyReferenceResource = $root.google.cloud.compute.v1.SecurityPolicyReference.toObject(message.securityPolicyReferenceResource, options); + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.backendService != null && message.hasOwnProperty("backendService")) + object.backendService = message.backendService; + return object; + }; + + /** + * Converts this SetEdgeSecurityPolicyBackendServiceRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.SetEdgeSecurityPolicyBackendServiceRequest + * @instance + * @returns {Object.} JSON object + */ + SetEdgeSecurityPolicyBackendServiceRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return SetEdgeSecurityPolicyBackendServiceRequest; + })(); + v1.SetIamPolicyDiskRequest = (function() { /** @@ -313623,6 +325049,243 @@ return SetIamPolicyLicenseRequest; })(); + v1.SetIamPolicyMachineImageRequest = (function() { + + /** + * Properties of a SetIamPolicyMachineImageRequest. + * @memberof google.cloud.compute.v1 + * @interface ISetIamPolicyMachineImageRequest + * @property {google.cloud.compute.v1.IGlobalSetPolicyRequest|null} [globalSetPolicyRequestResource] SetIamPolicyMachineImageRequest globalSetPolicyRequestResource + * @property {string|null} [project] SetIamPolicyMachineImageRequest project + * @property {string|null} [resource] SetIamPolicyMachineImageRequest resource + */ + + /** + * Constructs a new SetIamPolicyMachineImageRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a SetIamPolicyMachineImageRequest. + * @implements ISetIamPolicyMachineImageRequest + * @constructor + * @param {google.cloud.compute.v1.ISetIamPolicyMachineImageRequest=} [properties] Properties to set + */ + function SetIamPolicyMachineImageRequest(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]]; + } + + /** + * SetIamPolicyMachineImageRequest globalSetPolicyRequestResource. + * @member {google.cloud.compute.v1.IGlobalSetPolicyRequest|null|undefined} globalSetPolicyRequestResource + * @memberof google.cloud.compute.v1.SetIamPolicyMachineImageRequest + * @instance + */ + SetIamPolicyMachineImageRequest.prototype.globalSetPolicyRequestResource = null; + + /** + * SetIamPolicyMachineImageRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.SetIamPolicyMachineImageRequest + * @instance + */ + SetIamPolicyMachineImageRequest.prototype.project = ""; + + /** + * SetIamPolicyMachineImageRequest resource. + * @member {string} resource + * @memberof google.cloud.compute.v1.SetIamPolicyMachineImageRequest + * @instance + */ + SetIamPolicyMachineImageRequest.prototype.resource = ""; + + /** + * Creates a new SetIamPolicyMachineImageRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.SetIamPolicyMachineImageRequest + * @static + * @param {google.cloud.compute.v1.ISetIamPolicyMachineImageRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.SetIamPolicyMachineImageRequest} SetIamPolicyMachineImageRequest instance + */ + SetIamPolicyMachineImageRequest.create = function create(properties) { + return new SetIamPolicyMachineImageRequest(properties); + }; + + /** + * Encodes the specified SetIamPolicyMachineImageRequest message. Does not implicitly {@link google.cloud.compute.v1.SetIamPolicyMachineImageRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.SetIamPolicyMachineImageRequest + * @static + * @param {google.cloud.compute.v1.ISetIamPolicyMachineImageRequest} message SetIamPolicyMachineImageRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetIamPolicyMachineImageRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) + writer.uint32(/* id 195806222, wireType 2 =*/1566449778).string(message.resource); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.globalSetPolicyRequestResource != null && Object.hasOwnProperty.call(message, "globalSetPolicyRequestResource")) + $root.google.cloud.compute.v1.GlobalSetPolicyRequest.encode(message.globalSetPolicyRequestResource, writer.uint32(/* id 337048498, wireType 2 =*/2696387986).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified SetIamPolicyMachineImageRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SetIamPolicyMachineImageRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.SetIamPolicyMachineImageRequest + * @static + * @param {google.cloud.compute.v1.ISetIamPolicyMachineImageRequest} message SetIamPolicyMachineImageRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetIamPolicyMachineImageRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SetIamPolicyMachineImageRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.SetIamPolicyMachineImageRequest + * @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.SetIamPolicyMachineImageRequest} SetIamPolicyMachineImageRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SetIamPolicyMachineImageRequest.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.SetIamPolicyMachineImageRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 337048498: + message.globalSetPolicyRequestResource = $root.google.cloud.compute.v1.GlobalSetPolicyRequest.decode(reader, reader.uint32()); + break; + case 227560217: + message.project = reader.string(); + break; + case 195806222: + message.resource = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SetIamPolicyMachineImageRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.SetIamPolicyMachineImageRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.SetIamPolicyMachineImageRequest} SetIamPolicyMachineImageRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SetIamPolicyMachineImageRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SetIamPolicyMachineImageRequest message. + * @function verify + * @memberof google.cloud.compute.v1.SetIamPolicyMachineImageRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SetIamPolicyMachineImageRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.globalSetPolicyRequestResource != null && message.hasOwnProperty("globalSetPolicyRequestResource")) { + var error = $root.google.cloud.compute.v1.GlobalSetPolicyRequest.verify(message.globalSetPolicyRequestResource); + if (error) + return "globalSetPolicyRequestResource." + error; + } + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.resource != null && message.hasOwnProperty("resource")) + if (!$util.isString(message.resource)) + return "resource: string expected"; + return null; + }; + + /** + * Creates a SetIamPolicyMachineImageRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.SetIamPolicyMachineImageRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.SetIamPolicyMachineImageRequest} SetIamPolicyMachineImageRequest + */ + SetIamPolicyMachineImageRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.SetIamPolicyMachineImageRequest) + return object; + var message = new $root.google.cloud.compute.v1.SetIamPolicyMachineImageRequest(); + if (object.globalSetPolicyRequestResource != null) { + if (typeof object.globalSetPolicyRequestResource !== "object") + throw TypeError(".google.cloud.compute.v1.SetIamPolicyMachineImageRequest.globalSetPolicyRequestResource: object expected"); + message.globalSetPolicyRequestResource = $root.google.cloud.compute.v1.GlobalSetPolicyRequest.fromObject(object.globalSetPolicyRequestResource); + } + if (object.project != null) + message.project = String(object.project); + if (object.resource != null) + message.resource = String(object.resource); + return message; + }; + + /** + * Creates a plain object from a SetIamPolicyMachineImageRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.SetIamPolicyMachineImageRequest + * @static + * @param {google.cloud.compute.v1.SetIamPolicyMachineImageRequest} message SetIamPolicyMachineImageRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SetIamPolicyMachineImageRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.resource = ""; + object.project = ""; + object.globalSetPolicyRequestResource = null; + } + if (message.resource != null && message.hasOwnProperty("resource")) + object.resource = message.resource; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.globalSetPolicyRequestResource != null && message.hasOwnProperty("globalSetPolicyRequestResource")) + object.globalSetPolicyRequestResource = $root.google.cloud.compute.v1.GlobalSetPolicyRequest.toObject(message.globalSetPolicyRequestResource, options); + return object; + }; + + /** + * Converts this SetIamPolicyMachineImageRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.SetIamPolicyMachineImageRequest + * @instance + * @returns {Object.} JSON object + */ + SetIamPolicyMachineImageRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return SetIamPolicyMachineImageRequest; + })(); + v1.SetIamPolicyNodeGroupRequest = (function() { /** @@ -327435,6 +339098,499 @@ return SetUsageExportBucketProjectRequest; })(); + v1.ShareSettings = (function() { + + /** + * Properties of a ShareSettings. + * @memberof google.cloud.compute.v1 + * @interface IShareSettings + * @property {Object.|null} [projectMap] ShareSettings projectMap + * @property {string|null} [shareType] ShareSettings shareType + */ + + /** + * Constructs a new ShareSettings. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a ShareSettings. + * @implements IShareSettings + * @constructor + * @param {google.cloud.compute.v1.IShareSettings=} [properties] Properties to set + */ + function ShareSettings(properties) { + this.projectMap = {}; + 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]]; + } + + /** + * ShareSettings projectMap. + * @member {Object.} projectMap + * @memberof google.cloud.compute.v1.ShareSettings + * @instance + */ + ShareSettings.prototype.projectMap = $util.emptyObject; + + /** + * ShareSettings shareType. + * @member {string|null|undefined} shareType + * @memberof google.cloud.compute.v1.ShareSettings + * @instance + */ + ShareSettings.prototype.shareType = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ShareSettings _shareType. + * @member {"shareType"|undefined} _shareType + * @memberof google.cloud.compute.v1.ShareSettings + * @instance + */ + Object.defineProperty(ShareSettings.prototype, "_shareType", { + get: $util.oneOfGetter($oneOfFields = ["shareType"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ShareSettings instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.ShareSettings + * @static + * @param {google.cloud.compute.v1.IShareSettings=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ShareSettings} ShareSettings instance + */ + ShareSettings.create = function create(properties) { + return new ShareSettings(properties); + }; + + /** + * Encodes the specified ShareSettings message. Does not implicitly {@link google.cloud.compute.v1.ShareSettings.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.ShareSettings + * @static + * @param {google.cloud.compute.v1.IShareSettings} message ShareSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ShareSettings.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.projectMap != null && Object.hasOwnProperty.call(message, "projectMap")) + for (var keys = Object.keys(message.projectMap), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 134212406, wireType 2 =*/1073699250).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.compute.v1.ShareSettingsProjectConfig.encode(message.projectMap[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.shareType != null && Object.hasOwnProperty.call(message, "shareType")) + writer.uint32(/* id 359533466, wireType 2 =*/2876267730).string(message.shareType); + return writer; + }; + + /** + * Encodes the specified ShareSettings message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ShareSettings.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.ShareSettings + * @static + * @param {google.cloud.compute.v1.IShareSettings} message ShareSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ShareSettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ShareSettings message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.ShareSettings + * @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.ShareSettings} ShareSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ShareSettings.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.ShareSettings(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 134212406: + if (message.projectMap === $util.emptyObject) + message.projectMap = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.compute.v1.ShareSettingsProjectConfig.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.projectMap[key] = value; + break; + case 359533466: + message.shareType = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ShareSettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.ShareSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.ShareSettings} ShareSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ShareSettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ShareSettings message. + * @function verify + * @memberof google.cloud.compute.v1.ShareSettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ShareSettings.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.projectMap != null && message.hasOwnProperty("projectMap")) { + if (!$util.isObject(message.projectMap)) + return "projectMap: object expected"; + var key = Object.keys(message.projectMap); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.compute.v1.ShareSettingsProjectConfig.verify(message.projectMap[key[i]]); + if (error) + return "projectMap." + error; + } + } + if (message.shareType != null && message.hasOwnProperty("shareType")) { + properties._shareType = 1; + if (!$util.isString(message.shareType)) + return "shareType: string expected"; + } + return null; + }; + + /** + * Creates a ShareSettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.ShareSettings + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.ShareSettings} ShareSettings + */ + ShareSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ShareSettings) + return object; + var message = new $root.google.cloud.compute.v1.ShareSettings(); + if (object.projectMap) { + if (typeof object.projectMap !== "object") + throw TypeError(".google.cloud.compute.v1.ShareSettings.projectMap: object expected"); + message.projectMap = {}; + for (var keys = Object.keys(object.projectMap), i = 0; i < keys.length; ++i) { + if (typeof object.projectMap[keys[i]] !== "object") + throw TypeError(".google.cloud.compute.v1.ShareSettings.projectMap: object expected"); + message.projectMap[keys[i]] = $root.google.cloud.compute.v1.ShareSettingsProjectConfig.fromObject(object.projectMap[keys[i]]); + } + } + if (object.shareType != null) + message.shareType = String(object.shareType); + return message; + }; + + /** + * Creates a plain object from a ShareSettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.ShareSettings + * @static + * @param {google.cloud.compute.v1.ShareSettings} message ShareSettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ShareSettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.projectMap = {}; + var keys2; + if (message.projectMap && (keys2 = Object.keys(message.projectMap)).length) { + object.projectMap = {}; + for (var j = 0; j < keys2.length; ++j) + object.projectMap[keys2[j]] = $root.google.cloud.compute.v1.ShareSettingsProjectConfig.toObject(message.projectMap[keys2[j]], options); + } + if (message.shareType != null && message.hasOwnProperty("shareType")) { + object.shareType = message.shareType; + if (options.oneofs) + object._shareType = "shareType"; + } + return object; + }; + + /** + * Converts this ShareSettings to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.ShareSettings + * @instance + * @returns {Object.} JSON object + */ + ShareSettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * ShareType enum. + * @name google.cloud.compute.v1.ShareSettings.ShareType + * @enum {number} + * @property {number} UNDEFINED_SHARE_TYPE=0 UNDEFINED_SHARE_TYPE value + * @property {number} LOCAL=72607563 LOCAL value + * @property {number} SHARE_TYPE_UNSPECIFIED=494771730 SHARE_TYPE_UNSPECIFIED value + * @property {number} SPECIFIC_PROJECTS=347838695 SPECIFIC_PROJECTS value + */ + ShareSettings.ShareType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_SHARE_TYPE"] = 0; + values[valuesById[72607563] = "LOCAL"] = 72607563; + values[valuesById[494771730] = "SHARE_TYPE_UNSPECIFIED"] = 494771730; + values[valuesById[347838695] = "SPECIFIC_PROJECTS"] = 347838695; + return values; + })(); + + return ShareSettings; + })(); + + v1.ShareSettingsProjectConfig = (function() { + + /** + * Properties of a ShareSettingsProjectConfig. + * @memberof google.cloud.compute.v1 + * @interface IShareSettingsProjectConfig + * @property {string|null} [projectId] ShareSettingsProjectConfig projectId + */ + + /** + * Constructs a new ShareSettingsProjectConfig. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a ShareSettingsProjectConfig. + * @implements IShareSettingsProjectConfig + * @constructor + * @param {google.cloud.compute.v1.IShareSettingsProjectConfig=} [properties] Properties to set + */ + function ShareSettingsProjectConfig(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]]; + } + + /** + * ShareSettingsProjectConfig projectId. + * @member {string|null|undefined} projectId + * @memberof google.cloud.compute.v1.ShareSettingsProjectConfig + * @instance + */ + ShareSettingsProjectConfig.prototype.projectId = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ShareSettingsProjectConfig _projectId. + * @member {"projectId"|undefined} _projectId + * @memberof google.cloud.compute.v1.ShareSettingsProjectConfig + * @instance + */ + Object.defineProperty(ShareSettingsProjectConfig.prototype, "_projectId", { + get: $util.oneOfGetter($oneOfFields = ["projectId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ShareSettingsProjectConfig instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.ShareSettingsProjectConfig + * @static + * @param {google.cloud.compute.v1.IShareSettingsProjectConfig=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ShareSettingsProjectConfig} ShareSettingsProjectConfig instance + */ + ShareSettingsProjectConfig.create = function create(properties) { + return new ShareSettingsProjectConfig(properties); + }; + + /** + * Encodes the specified ShareSettingsProjectConfig message. Does not implicitly {@link google.cloud.compute.v1.ShareSettingsProjectConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.ShareSettingsProjectConfig + * @static + * @param {google.cloud.compute.v1.IShareSettingsProjectConfig} message ShareSettingsProjectConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ShareSettingsProjectConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) + writer.uint32(/* id 177513473, wireType 2 =*/1420107786).string(message.projectId); + return writer; + }; + + /** + * Encodes the specified ShareSettingsProjectConfig message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ShareSettingsProjectConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.ShareSettingsProjectConfig + * @static + * @param {google.cloud.compute.v1.IShareSettingsProjectConfig} message ShareSettingsProjectConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ShareSettingsProjectConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ShareSettingsProjectConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.ShareSettingsProjectConfig + * @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.ShareSettingsProjectConfig} ShareSettingsProjectConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ShareSettingsProjectConfig.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.ShareSettingsProjectConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 177513473: + message.projectId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ShareSettingsProjectConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.ShareSettingsProjectConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.ShareSettingsProjectConfig} ShareSettingsProjectConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ShareSettingsProjectConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ShareSettingsProjectConfig message. + * @function verify + * @memberof google.cloud.compute.v1.ShareSettingsProjectConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ShareSettingsProjectConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.projectId != null && message.hasOwnProperty("projectId")) { + properties._projectId = 1; + if (!$util.isString(message.projectId)) + return "projectId: string expected"; + } + return null; + }; + + /** + * Creates a ShareSettingsProjectConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.ShareSettingsProjectConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.ShareSettingsProjectConfig} ShareSettingsProjectConfig + */ + ShareSettingsProjectConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ShareSettingsProjectConfig) + return object; + var message = new $root.google.cloud.compute.v1.ShareSettingsProjectConfig(); + if (object.projectId != null) + message.projectId = String(object.projectId); + return message; + }; + + /** + * Creates a plain object from a ShareSettingsProjectConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.ShareSettingsProjectConfig + * @static + * @param {google.cloud.compute.v1.ShareSettingsProjectConfig} message ShareSettingsProjectConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ShareSettingsProjectConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.projectId != null && message.hasOwnProperty("projectId")) { + object.projectId = message.projectId; + if (options.oneofs) + object._projectId = "projectId"; + } + return object; + }; + + /** + * Converts this ShareSettingsProjectConfig to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.ShareSettingsProjectConfig + * @instance + * @returns {Object.} JSON object + */ + ShareSettingsProjectConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ShareSettingsProjectConfig; + })(); + v1.ShieldedInstanceConfig = (function() { /** @@ -330519,6 +342675,254 @@ return SnapshotList; })(); + v1.SourceDiskEncryptionKey = (function() { + + /** + * Properties of a SourceDiskEncryptionKey. + * @memberof google.cloud.compute.v1 + * @interface ISourceDiskEncryptionKey + * @property {google.cloud.compute.v1.ICustomerEncryptionKey|null} [diskEncryptionKey] SourceDiskEncryptionKey diskEncryptionKey + * @property {string|null} [sourceDisk] SourceDiskEncryptionKey sourceDisk + */ + + /** + * Constructs a new SourceDiskEncryptionKey. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a SourceDiskEncryptionKey. + * @implements ISourceDiskEncryptionKey + * @constructor + * @param {google.cloud.compute.v1.ISourceDiskEncryptionKey=} [properties] Properties to set + */ + function SourceDiskEncryptionKey(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]]; + } + + /** + * SourceDiskEncryptionKey diskEncryptionKey. + * @member {google.cloud.compute.v1.ICustomerEncryptionKey|null|undefined} diskEncryptionKey + * @memberof google.cloud.compute.v1.SourceDiskEncryptionKey + * @instance + */ + SourceDiskEncryptionKey.prototype.diskEncryptionKey = null; + + /** + * SourceDiskEncryptionKey sourceDisk. + * @member {string|null|undefined} sourceDisk + * @memberof google.cloud.compute.v1.SourceDiskEncryptionKey + * @instance + */ + SourceDiskEncryptionKey.prototype.sourceDisk = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * SourceDiskEncryptionKey _diskEncryptionKey. + * @member {"diskEncryptionKey"|undefined} _diskEncryptionKey + * @memberof google.cloud.compute.v1.SourceDiskEncryptionKey + * @instance + */ + Object.defineProperty(SourceDiskEncryptionKey.prototype, "_diskEncryptionKey", { + get: $util.oneOfGetter($oneOfFields = ["diskEncryptionKey"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SourceDiskEncryptionKey _sourceDisk. + * @member {"sourceDisk"|undefined} _sourceDisk + * @memberof google.cloud.compute.v1.SourceDiskEncryptionKey + * @instance + */ + Object.defineProperty(SourceDiskEncryptionKey.prototype, "_sourceDisk", { + get: $util.oneOfGetter($oneOfFields = ["sourceDisk"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new SourceDiskEncryptionKey instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.SourceDiskEncryptionKey + * @static + * @param {google.cloud.compute.v1.ISourceDiskEncryptionKey=} [properties] Properties to set + * @returns {google.cloud.compute.v1.SourceDiskEncryptionKey} SourceDiskEncryptionKey instance + */ + SourceDiskEncryptionKey.create = function create(properties) { + return new SourceDiskEncryptionKey(properties); + }; + + /** + * Encodes the specified SourceDiskEncryptionKey message. Does not implicitly {@link google.cloud.compute.v1.SourceDiskEncryptionKey.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.SourceDiskEncryptionKey + * @static + * @param {google.cloud.compute.v1.ISourceDiskEncryptionKey} message SourceDiskEncryptionKey message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SourceDiskEncryptionKey.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.diskEncryptionKey != null && Object.hasOwnProperty.call(message, "diskEncryptionKey")) + $root.google.cloud.compute.v1.CustomerEncryptionKey.encode(message.diskEncryptionKey, writer.uint32(/* id 271660677, wireType 2 =*/2173285418).fork()).ldelim(); + if (message.sourceDisk != null && Object.hasOwnProperty.call(message, "sourceDisk")) + writer.uint32(/* id 451753793, wireType 2 =*/3614030346).string(message.sourceDisk); + return writer; + }; + + /** + * Encodes the specified SourceDiskEncryptionKey message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SourceDiskEncryptionKey.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.SourceDiskEncryptionKey + * @static + * @param {google.cloud.compute.v1.ISourceDiskEncryptionKey} message SourceDiskEncryptionKey message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SourceDiskEncryptionKey.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SourceDiskEncryptionKey message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.SourceDiskEncryptionKey + * @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.SourceDiskEncryptionKey} SourceDiskEncryptionKey + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SourceDiskEncryptionKey.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.SourceDiskEncryptionKey(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 271660677: + message.diskEncryptionKey = $root.google.cloud.compute.v1.CustomerEncryptionKey.decode(reader, reader.uint32()); + break; + case 451753793: + message.sourceDisk = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SourceDiskEncryptionKey message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.SourceDiskEncryptionKey + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.SourceDiskEncryptionKey} SourceDiskEncryptionKey + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SourceDiskEncryptionKey.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SourceDiskEncryptionKey message. + * @function verify + * @memberof google.cloud.compute.v1.SourceDiskEncryptionKey + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SourceDiskEncryptionKey.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.diskEncryptionKey != null && message.hasOwnProperty("diskEncryptionKey")) { + properties._diskEncryptionKey = 1; + { + var error = $root.google.cloud.compute.v1.CustomerEncryptionKey.verify(message.diskEncryptionKey); + if (error) + return "diskEncryptionKey." + error; + } + } + if (message.sourceDisk != null && message.hasOwnProperty("sourceDisk")) { + properties._sourceDisk = 1; + if (!$util.isString(message.sourceDisk)) + return "sourceDisk: string expected"; + } + return null; + }; + + /** + * Creates a SourceDiskEncryptionKey message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.SourceDiskEncryptionKey + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.SourceDiskEncryptionKey} SourceDiskEncryptionKey + */ + SourceDiskEncryptionKey.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.SourceDiskEncryptionKey) + return object; + var message = new $root.google.cloud.compute.v1.SourceDiskEncryptionKey(); + if (object.diskEncryptionKey != null) { + if (typeof object.diskEncryptionKey !== "object") + throw TypeError(".google.cloud.compute.v1.SourceDiskEncryptionKey.diskEncryptionKey: object expected"); + message.diskEncryptionKey = $root.google.cloud.compute.v1.CustomerEncryptionKey.fromObject(object.diskEncryptionKey); + } + if (object.sourceDisk != null) + message.sourceDisk = String(object.sourceDisk); + return message; + }; + + /** + * Creates a plain object from a SourceDiskEncryptionKey message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.SourceDiskEncryptionKey + * @static + * @param {google.cloud.compute.v1.SourceDiskEncryptionKey} message SourceDiskEncryptionKey + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SourceDiskEncryptionKey.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.diskEncryptionKey != null && message.hasOwnProperty("diskEncryptionKey")) { + object.diskEncryptionKey = $root.google.cloud.compute.v1.CustomerEncryptionKey.toObject(message.diskEncryptionKey, options); + if (options.oneofs) + object._diskEncryptionKey = "diskEncryptionKey"; + } + if (message.sourceDisk != null && message.hasOwnProperty("sourceDisk")) { + object.sourceDisk = message.sourceDisk; + if (options.oneofs) + object._sourceDisk = "sourceDisk"; + } + return object; + }; + + /** + * Converts this SourceDiskEncryptionKey to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.SourceDiskEncryptionKey + * @instance + * @returns {Object.} JSON object + */ + SourceDiskEncryptionKey.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return SourceDiskEncryptionKey; + })(); + v1.SourceInstanceParams = (function() { /** @@ -330727,6 +343131,720 @@ return SourceInstanceParams; })(); + v1.SourceInstanceProperties = (function() { + + /** + * Properties of a SourceInstanceProperties. + * @memberof google.cloud.compute.v1 + * @interface ISourceInstanceProperties + * @property {boolean|null} [canIpForward] SourceInstanceProperties canIpForward + * @property {boolean|null} [deletionProtection] SourceInstanceProperties deletionProtection + * @property {string|null} [description] SourceInstanceProperties description + * @property {Array.|null} [disks] SourceInstanceProperties disks + * @property {Array.|null} [guestAccelerators] SourceInstanceProperties guestAccelerators + * @property {Object.|null} [labels] SourceInstanceProperties labels + * @property {string|null} [machineType] SourceInstanceProperties machineType + * @property {google.cloud.compute.v1.IMetadata|null} [metadata] SourceInstanceProperties metadata + * @property {string|null} [minCpuPlatform] SourceInstanceProperties minCpuPlatform + * @property {Array.|null} [networkInterfaces] SourceInstanceProperties networkInterfaces + * @property {google.cloud.compute.v1.IScheduling|null} [scheduling] SourceInstanceProperties scheduling + * @property {Array.|null} [serviceAccounts] SourceInstanceProperties serviceAccounts + * @property {google.cloud.compute.v1.ITags|null} [tags] SourceInstanceProperties tags + */ + + /** + * Constructs a new SourceInstanceProperties. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a SourceInstanceProperties. + * @implements ISourceInstanceProperties + * @constructor + * @param {google.cloud.compute.v1.ISourceInstanceProperties=} [properties] Properties to set + */ + function SourceInstanceProperties(properties) { + this.disks = []; + this.guestAccelerators = []; + this.labels = {}; + this.networkInterfaces = []; + this.serviceAccounts = []; + 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]]; + } + + /** + * SourceInstanceProperties canIpForward. + * @member {boolean|null|undefined} canIpForward + * @memberof google.cloud.compute.v1.SourceInstanceProperties + * @instance + */ + SourceInstanceProperties.prototype.canIpForward = null; + + /** + * SourceInstanceProperties deletionProtection. + * @member {boolean|null|undefined} deletionProtection + * @memberof google.cloud.compute.v1.SourceInstanceProperties + * @instance + */ + SourceInstanceProperties.prototype.deletionProtection = null; + + /** + * SourceInstanceProperties description. + * @member {string|null|undefined} description + * @memberof google.cloud.compute.v1.SourceInstanceProperties + * @instance + */ + SourceInstanceProperties.prototype.description = null; + + /** + * SourceInstanceProperties disks. + * @member {Array.} disks + * @memberof google.cloud.compute.v1.SourceInstanceProperties + * @instance + */ + SourceInstanceProperties.prototype.disks = $util.emptyArray; + + /** + * SourceInstanceProperties guestAccelerators. + * @member {Array.} guestAccelerators + * @memberof google.cloud.compute.v1.SourceInstanceProperties + * @instance + */ + SourceInstanceProperties.prototype.guestAccelerators = $util.emptyArray; + + /** + * SourceInstanceProperties labels. + * @member {Object.} labels + * @memberof google.cloud.compute.v1.SourceInstanceProperties + * @instance + */ + SourceInstanceProperties.prototype.labels = $util.emptyObject; + + /** + * SourceInstanceProperties machineType. + * @member {string|null|undefined} machineType + * @memberof google.cloud.compute.v1.SourceInstanceProperties + * @instance + */ + SourceInstanceProperties.prototype.machineType = null; + + /** + * SourceInstanceProperties metadata. + * @member {google.cloud.compute.v1.IMetadata|null|undefined} metadata + * @memberof google.cloud.compute.v1.SourceInstanceProperties + * @instance + */ + SourceInstanceProperties.prototype.metadata = null; + + /** + * SourceInstanceProperties minCpuPlatform. + * @member {string|null|undefined} minCpuPlatform + * @memberof google.cloud.compute.v1.SourceInstanceProperties + * @instance + */ + SourceInstanceProperties.prototype.minCpuPlatform = null; + + /** + * SourceInstanceProperties networkInterfaces. + * @member {Array.} networkInterfaces + * @memberof google.cloud.compute.v1.SourceInstanceProperties + * @instance + */ + SourceInstanceProperties.prototype.networkInterfaces = $util.emptyArray; + + /** + * SourceInstanceProperties scheduling. + * @member {google.cloud.compute.v1.IScheduling|null|undefined} scheduling + * @memberof google.cloud.compute.v1.SourceInstanceProperties + * @instance + */ + SourceInstanceProperties.prototype.scheduling = null; + + /** + * SourceInstanceProperties serviceAccounts. + * @member {Array.} serviceAccounts + * @memberof google.cloud.compute.v1.SourceInstanceProperties + * @instance + */ + SourceInstanceProperties.prototype.serviceAccounts = $util.emptyArray; + + /** + * SourceInstanceProperties tags. + * @member {google.cloud.compute.v1.ITags|null|undefined} tags + * @memberof google.cloud.compute.v1.SourceInstanceProperties + * @instance + */ + SourceInstanceProperties.prototype.tags = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * SourceInstanceProperties _canIpForward. + * @member {"canIpForward"|undefined} _canIpForward + * @memberof google.cloud.compute.v1.SourceInstanceProperties + * @instance + */ + Object.defineProperty(SourceInstanceProperties.prototype, "_canIpForward", { + get: $util.oneOfGetter($oneOfFields = ["canIpForward"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SourceInstanceProperties _deletionProtection. + * @member {"deletionProtection"|undefined} _deletionProtection + * @memberof google.cloud.compute.v1.SourceInstanceProperties + * @instance + */ + Object.defineProperty(SourceInstanceProperties.prototype, "_deletionProtection", { + get: $util.oneOfGetter($oneOfFields = ["deletionProtection"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SourceInstanceProperties _description. + * @member {"description"|undefined} _description + * @memberof google.cloud.compute.v1.SourceInstanceProperties + * @instance + */ + Object.defineProperty(SourceInstanceProperties.prototype, "_description", { + get: $util.oneOfGetter($oneOfFields = ["description"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SourceInstanceProperties _machineType. + * @member {"machineType"|undefined} _machineType + * @memberof google.cloud.compute.v1.SourceInstanceProperties + * @instance + */ + Object.defineProperty(SourceInstanceProperties.prototype, "_machineType", { + get: $util.oneOfGetter($oneOfFields = ["machineType"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SourceInstanceProperties _metadata. + * @member {"metadata"|undefined} _metadata + * @memberof google.cloud.compute.v1.SourceInstanceProperties + * @instance + */ + Object.defineProperty(SourceInstanceProperties.prototype, "_metadata", { + get: $util.oneOfGetter($oneOfFields = ["metadata"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SourceInstanceProperties _minCpuPlatform. + * @member {"minCpuPlatform"|undefined} _minCpuPlatform + * @memberof google.cloud.compute.v1.SourceInstanceProperties + * @instance + */ + Object.defineProperty(SourceInstanceProperties.prototype, "_minCpuPlatform", { + get: $util.oneOfGetter($oneOfFields = ["minCpuPlatform"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SourceInstanceProperties _scheduling. + * @member {"scheduling"|undefined} _scheduling + * @memberof google.cloud.compute.v1.SourceInstanceProperties + * @instance + */ + Object.defineProperty(SourceInstanceProperties.prototype, "_scheduling", { + get: $util.oneOfGetter($oneOfFields = ["scheduling"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SourceInstanceProperties _tags. + * @member {"tags"|undefined} _tags + * @memberof google.cloud.compute.v1.SourceInstanceProperties + * @instance + */ + Object.defineProperty(SourceInstanceProperties.prototype, "_tags", { + get: $util.oneOfGetter($oneOfFields = ["tags"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new SourceInstanceProperties instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.SourceInstanceProperties + * @static + * @param {google.cloud.compute.v1.ISourceInstanceProperties=} [properties] Properties to set + * @returns {google.cloud.compute.v1.SourceInstanceProperties} SourceInstanceProperties instance + */ + SourceInstanceProperties.create = function create(properties) { + return new SourceInstanceProperties(properties); + }; + + /** + * Encodes the specified SourceInstanceProperties message. Does not implicitly {@link google.cloud.compute.v1.SourceInstanceProperties.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.SourceInstanceProperties + * @static + * @param {google.cloud.compute.v1.ISourceInstanceProperties} message SourceInstanceProperties message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SourceInstanceProperties.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.tags != null && Object.hasOwnProperty.call(message, "tags")) + $root.google.cloud.compute.v1.Tags.encode(message.tags, writer.uint32(/* id 3552281, wireType 2 =*/28418250).fork()).ldelim(); + if (message.networkInterfaces != null && message.networkInterfaces.length) + for (var i = 0; i < message.networkInterfaces.length; ++i) + $root.google.cloud.compute.v1.NetworkInterface.encode(message.networkInterfaces[i], writer.uint32(/* id 52735243, wireType 2 =*/421881946).fork()).ldelim(); + if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) + $root.google.cloud.compute.v1.Metadata.encode(message.metadata, writer.uint32(/* id 86866735, wireType 2 =*/694933882).fork()).ldelim(); + if (message.disks != null && message.disks.length) + for (var i = 0; i < message.disks.length; ++i) + $root.google.cloud.compute.v1.SavedAttachedDisk.encode(message.disks[i], writer.uint32(/* id 95594102, wireType 2 =*/764752818).fork()).ldelim(); + if (message.machineType != null && Object.hasOwnProperty.call(message, "machineType")) + writer.uint32(/* id 227711026, wireType 2 =*/1821688210).string(message.machineType); + if (message.minCpuPlatform != null && Object.hasOwnProperty.call(message, "minCpuPlatform")) + writer.uint32(/* id 242912759, wireType 2 =*/1943302074).string(message.minCpuPlatform); + if (message.serviceAccounts != null && message.serviceAccounts.length) + for (var i = 0; i < message.serviceAccounts.length; ++i) + $root.google.cloud.compute.v1.ServiceAccount.encode(message.serviceAccounts[i], writer.uint32(/* id 277537328, wireType 2 =*/2220298626).fork()).ldelim(); + if (message.scheduling != null && Object.hasOwnProperty.call(message, "scheduling")) + $root.google.cloud.compute.v1.Scheduling.encode(message.scheduling, writer.uint32(/* id 386688404, wireType 2 =*/3093507234).fork()).ldelim(); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 422937596, wireType 2 =*/3383500770).string(message.description); + if (message.deletionProtection != null && Object.hasOwnProperty.call(message, "deletionProtection")) + writer.uint32(/* id 458014698, wireType 0 =*/3664117584).bool(message.deletionProtection); + if (message.guestAccelerators != null && message.guestAccelerators.length) + for (var i = 0; i < message.guestAccelerators.length; ++i) + $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.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 SourceInstanceProperties message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SourceInstanceProperties.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.SourceInstanceProperties + * @static + * @param {google.cloud.compute.v1.ISourceInstanceProperties} message SourceInstanceProperties message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SourceInstanceProperties.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SourceInstanceProperties message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.SourceInstanceProperties + * @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.SourceInstanceProperties} SourceInstanceProperties + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SourceInstanceProperties.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.SourceInstanceProperties(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 467731324: + message.canIpForward = reader.bool(); + break; + case 458014698: + message.deletionProtection = reader.bool(); + break; + case 422937596: + message.description = reader.string(); + break; + case 95594102: + if (!(message.disks && message.disks.length)) + message.disks = []; + message.disks.push($root.google.cloud.compute.v1.SavedAttachedDisk.decode(reader, reader.uint32())); + break; + case 463595119: + if (!(message.guestAccelerators && message.guestAccelerators.length)) + message.guestAccelerators = []; + message.guestAccelerators.push($root.google.cloud.compute.v1.AcceleratorConfig.decode(reader, reader.uint32())); + break; + 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 227711026: + message.machineType = reader.string(); + break; + case 86866735: + message.metadata = $root.google.cloud.compute.v1.Metadata.decode(reader, reader.uint32()); + break; + case 242912759: + message.minCpuPlatform = reader.string(); + break; + case 52735243: + if (!(message.networkInterfaces && message.networkInterfaces.length)) + message.networkInterfaces = []; + message.networkInterfaces.push($root.google.cloud.compute.v1.NetworkInterface.decode(reader, reader.uint32())); + break; + case 386688404: + message.scheduling = $root.google.cloud.compute.v1.Scheduling.decode(reader, reader.uint32()); + break; + case 277537328: + if (!(message.serviceAccounts && message.serviceAccounts.length)) + message.serviceAccounts = []; + message.serviceAccounts.push($root.google.cloud.compute.v1.ServiceAccount.decode(reader, reader.uint32())); + break; + case 3552281: + message.tags = $root.google.cloud.compute.v1.Tags.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SourceInstanceProperties message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.SourceInstanceProperties + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.SourceInstanceProperties} SourceInstanceProperties + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SourceInstanceProperties.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SourceInstanceProperties message. + * @function verify + * @memberof google.cloud.compute.v1.SourceInstanceProperties + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SourceInstanceProperties.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.canIpForward != null && message.hasOwnProperty("canIpForward")) { + properties._canIpForward = 1; + if (typeof message.canIpForward !== "boolean") + return "canIpForward: boolean expected"; + } + if (message.deletionProtection != null && message.hasOwnProperty("deletionProtection")) { + properties._deletionProtection = 1; + if (typeof message.deletionProtection !== "boolean") + return "deletionProtection: boolean expected"; + } + if (message.description != null && message.hasOwnProperty("description")) { + properties._description = 1; + if (!$util.isString(message.description)) + return "description: string expected"; + } + if (message.disks != null && message.hasOwnProperty("disks")) { + if (!Array.isArray(message.disks)) + return "disks: array expected"; + for (var i = 0; i < message.disks.length; ++i) { + var error = $root.google.cloud.compute.v1.SavedAttachedDisk.verify(message.disks[i]); + if (error) + return "disks." + error; + } + } + if (message.guestAccelerators != null && message.hasOwnProperty("guestAccelerators")) { + if (!Array.isArray(message.guestAccelerators)) + return "guestAccelerators: array expected"; + for (var i = 0; i < message.guestAccelerators.length; ++i) { + var error = $root.google.cloud.compute.v1.AcceleratorConfig.verify(message.guestAccelerators[i]); + if (error) + return "guestAccelerators." + error; + } + } + 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.machineType != null && message.hasOwnProperty("machineType")) { + properties._machineType = 1; + if (!$util.isString(message.machineType)) + return "machineType: string expected"; + } + if (message.metadata != null && message.hasOwnProperty("metadata")) { + properties._metadata = 1; + { + var error = $root.google.cloud.compute.v1.Metadata.verify(message.metadata); + if (error) + return "metadata." + error; + } + } + if (message.minCpuPlatform != null && message.hasOwnProperty("minCpuPlatform")) { + properties._minCpuPlatform = 1; + if (!$util.isString(message.minCpuPlatform)) + return "minCpuPlatform: string expected"; + } + if (message.networkInterfaces != null && message.hasOwnProperty("networkInterfaces")) { + if (!Array.isArray(message.networkInterfaces)) + return "networkInterfaces: array expected"; + for (var i = 0; i < message.networkInterfaces.length; ++i) { + var error = $root.google.cloud.compute.v1.NetworkInterface.verify(message.networkInterfaces[i]); + if (error) + return "networkInterfaces." + error; + } + } + if (message.scheduling != null && message.hasOwnProperty("scheduling")) { + properties._scheduling = 1; + { + var error = $root.google.cloud.compute.v1.Scheduling.verify(message.scheduling); + if (error) + return "scheduling." + error; + } + } + if (message.serviceAccounts != null && message.hasOwnProperty("serviceAccounts")) { + if (!Array.isArray(message.serviceAccounts)) + return "serviceAccounts: array expected"; + for (var i = 0; i < message.serviceAccounts.length; ++i) { + var error = $root.google.cloud.compute.v1.ServiceAccount.verify(message.serviceAccounts[i]); + if (error) + return "serviceAccounts." + error; + } + } + if (message.tags != null && message.hasOwnProperty("tags")) { + properties._tags = 1; + { + var error = $root.google.cloud.compute.v1.Tags.verify(message.tags); + if (error) + return "tags." + error; + } + } + return null; + }; + + /** + * Creates a SourceInstanceProperties message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.SourceInstanceProperties + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.SourceInstanceProperties} SourceInstanceProperties + */ + SourceInstanceProperties.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.SourceInstanceProperties) + return object; + var message = new $root.google.cloud.compute.v1.SourceInstanceProperties(); + if (object.canIpForward != null) + message.canIpForward = Boolean(object.canIpForward); + if (object.deletionProtection != null) + message.deletionProtection = Boolean(object.deletionProtection); + if (object.description != null) + message.description = String(object.description); + if (object.disks) { + if (!Array.isArray(object.disks)) + throw TypeError(".google.cloud.compute.v1.SourceInstanceProperties.disks: array expected"); + message.disks = []; + for (var i = 0; i < object.disks.length; ++i) { + if (typeof object.disks[i] !== "object") + throw TypeError(".google.cloud.compute.v1.SourceInstanceProperties.disks: object expected"); + message.disks[i] = $root.google.cloud.compute.v1.SavedAttachedDisk.fromObject(object.disks[i]); + } + } + if (object.guestAccelerators) { + if (!Array.isArray(object.guestAccelerators)) + throw TypeError(".google.cloud.compute.v1.SourceInstanceProperties.guestAccelerators: array expected"); + message.guestAccelerators = []; + for (var i = 0; i < object.guestAccelerators.length; ++i) { + if (typeof object.guestAccelerators[i] !== "object") + throw TypeError(".google.cloud.compute.v1.SourceInstanceProperties.guestAccelerators: object expected"); + message.guestAccelerators[i] = $root.google.cloud.compute.v1.AcceleratorConfig.fromObject(object.guestAccelerators[i]); + } + } + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.compute.v1.SourceInstanceProperties.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.machineType != null) + message.machineType = String(object.machineType); + if (object.metadata != null) { + if (typeof object.metadata !== "object") + throw TypeError(".google.cloud.compute.v1.SourceInstanceProperties.metadata: object expected"); + message.metadata = $root.google.cloud.compute.v1.Metadata.fromObject(object.metadata); + } + if (object.minCpuPlatform != null) + message.minCpuPlatform = String(object.minCpuPlatform); + if (object.networkInterfaces) { + if (!Array.isArray(object.networkInterfaces)) + throw TypeError(".google.cloud.compute.v1.SourceInstanceProperties.networkInterfaces: array expected"); + message.networkInterfaces = []; + for (var i = 0; i < object.networkInterfaces.length; ++i) { + if (typeof object.networkInterfaces[i] !== "object") + throw TypeError(".google.cloud.compute.v1.SourceInstanceProperties.networkInterfaces: object expected"); + message.networkInterfaces[i] = $root.google.cloud.compute.v1.NetworkInterface.fromObject(object.networkInterfaces[i]); + } + } + if (object.scheduling != null) { + if (typeof object.scheduling !== "object") + throw TypeError(".google.cloud.compute.v1.SourceInstanceProperties.scheduling: object expected"); + message.scheduling = $root.google.cloud.compute.v1.Scheduling.fromObject(object.scheduling); + } + if (object.serviceAccounts) { + if (!Array.isArray(object.serviceAccounts)) + throw TypeError(".google.cloud.compute.v1.SourceInstanceProperties.serviceAccounts: array expected"); + message.serviceAccounts = []; + for (var i = 0; i < object.serviceAccounts.length; ++i) { + if (typeof object.serviceAccounts[i] !== "object") + throw TypeError(".google.cloud.compute.v1.SourceInstanceProperties.serviceAccounts: object expected"); + message.serviceAccounts[i] = $root.google.cloud.compute.v1.ServiceAccount.fromObject(object.serviceAccounts[i]); + } + } + if (object.tags != null) { + if (typeof object.tags !== "object") + throw TypeError(".google.cloud.compute.v1.SourceInstanceProperties.tags: object expected"); + message.tags = $root.google.cloud.compute.v1.Tags.fromObject(object.tags); + } + return message; + }; + + /** + * Creates a plain object from a SourceInstanceProperties message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.SourceInstanceProperties + * @static + * @param {google.cloud.compute.v1.SourceInstanceProperties} message SourceInstanceProperties + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SourceInstanceProperties.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.networkInterfaces = []; + object.disks = []; + object.serviceAccounts = []; + object.guestAccelerators = []; + } + if (options.objects || options.defaults) + object.labels = {}; + if (message.tags != null && message.hasOwnProperty("tags")) { + object.tags = $root.google.cloud.compute.v1.Tags.toObject(message.tags, options); + if (options.oneofs) + object._tags = "tags"; + } + if (message.networkInterfaces && message.networkInterfaces.length) { + object.networkInterfaces = []; + for (var j = 0; j < message.networkInterfaces.length; ++j) + object.networkInterfaces[j] = $root.google.cloud.compute.v1.NetworkInterface.toObject(message.networkInterfaces[j], options); + } + if (message.metadata != null && message.hasOwnProperty("metadata")) { + object.metadata = $root.google.cloud.compute.v1.Metadata.toObject(message.metadata, options); + if (options.oneofs) + object._metadata = "metadata"; + } + if (message.disks && message.disks.length) { + object.disks = []; + for (var j = 0; j < message.disks.length; ++j) + object.disks[j] = $root.google.cloud.compute.v1.SavedAttachedDisk.toObject(message.disks[j], options); + } + if (message.machineType != null && message.hasOwnProperty("machineType")) { + object.machineType = message.machineType; + if (options.oneofs) + object._machineType = "machineType"; + } + if (message.minCpuPlatform != null && message.hasOwnProperty("minCpuPlatform")) { + object.minCpuPlatform = message.minCpuPlatform; + if (options.oneofs) + object._minCpuPlatform = "minCpuPlatform"; + } + if (message.serviceAccounts && message.serviceAccounts.length) { + object.serviceAccounts = []; + for (var j = 0; j < message.serviceAccounts.length; ++j) + object.serviceAccounts[j] = $root.google.cloud.compute.v1.ServiceAccount.toObject(message.serviceAccounts[j], options); + } + if (message.scheduling != null && message.hasOwnProperty("scheduling")) { + object.scheduling = $root.google.cloud.compute.v1.Scheduling.toObject(message.scheduling, options); + if (options.oneofs) + object._scheduling = "scheduling"; + } + if (message.description != null && message.hasOwnProperty("description")) { + object.description = message.description; + if (options.oneofs) + object._description = "description"; + } + if (message.deletionProtection != null && message.hasOwnProperty("deletionProtection")) { + object.deletionProtection = message.deletionProtection; + if (options.oneofs) + object._deletionProtection = "deletionProtection"; + } + if (message.guestAccelerators && message.guestAccelerators.length) { + object.guestAccelerators = []; + for (var j = 0; j < message.guestAccelerators.length; ++j) + object.guestAccelerators[j] = $root.google.cloud.compute.v1.AcceleratorConfig.toObject(message.guestAccelerators[j], options); + } + if (message.canIpForward != null && message.hasOwnProperty("canIpForward")) { + object.canIpForward = message.canIpForward; + if (options.oneofs) + object._canIpForward = "canIpForward"; + } + var keys2; + 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 SourceInstanceProperties to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.SourceInstanceProperties + * @instance + * @returns {Object.} JSON object + */ + SourceInstanceProperties.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return SourceInstanceProperties; + })(); + v1.SslCertificate = (function() { /** @@ -337214,6 +350332,7 @@ * @property {number} PRIVATE=403485027 PRIVATE value * @property {number} PRIVATE_RFC_1918=254902107 PRIVATE_RFC_1918 value * @property {number} PRIVATE_SERVICE_CONNECT=48134724 PRIVATE_SERVICE_CONNECT value + * @property {number} REGIONAL_MANAGED_PROXY=153049966 REGIONAL_MANAGED_PROXY value */ Subnetwork.Purpose = (function() { var valuesById = {}, values = Object.create(valuesById); @@ -337222,6 +350341,7 @@ values[valuesById[403485027] = "PRIVATE"] = 403485027; values[valuesById[254902107] = "PRIVATE_RFC_1918"] = 254902107; values[valuesById[48134724] = "PRIVATE_SERVICE_CONNECT"] = 48134724; + values[valuesById[153049966] = "REGIONAL_MANAGED_PROXY"] = 153049966; return values; })(); @@ -339706,6 +352826,279 @@ return Subsetting; })(); + v1.SuspendInstanceRequest = (function() { + + /** + * Properties of a SuspendInstanceRequest. + * @memberof google.cloud.compute.v1 + * @interface ISuspendInstanceRequest + * @property {string|null} [instance] SuspendInstanceRequest instance + * @property {string|null} [project] SuspendInstanceRequest project + * @property {string|null} [requestId] SuspendInstanceRequest requestId + * @property {string|null} [zone] SuspendInstanceRequest zone + */ + + /** + * Constructs a new SuspendInstanceRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a SuspendInstanceRequest. + * @implements ISuspendInstanceRequest + * @constructor + * @param {google.cloud.compute.v1.ISuspendInstanceRequest=} [properties] Properties to set + */ + function SuspendInstanceRequest(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]]; + } + + /** + * SuspendInstanceRequest instance. + * @member {string} instance + * @memberof google.cloud.compute.v1.SuspendInstanceRequest + * @instance + */ + SuspendInstanceRequest.prototype.instance = ""; + + /** + * SuspendInstanceRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.SuspendInstanceRequest + * @instance + */ + SuspendInstanceRequest.prototype.project = ""; + + /** + * SuspendInstanceRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1.SuspendInstanceRequest + * @instance + */ + SuspendInstanceRequest.prototype.requestId = null; + + /** + * SuspendInstanceRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1.SuspendInstanceRequest + * @instance + */ + SuspendInstanceRequest.prototype.zone = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * SuspendInstanceRequest _requestId. + * @member {"requestId"|undefined} _requestId + * @memberof google.cloud.compute.v1.SuspendInstanceRequest + * @instance + */ + Object.defineProperty(SuspendInstanceRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new SuspendInstanceRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.SuspendInstanceRequest + * @static + * @param {google.cloud.compute.v1.ISuspendInstanceRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.SuspendInstanceRequest} SuspendInstanceRequest instance + */ + SuspendInstanceRequest.create = function create(properties) { + return new SuspendInstanceRequest(properties); + }; + + /** + * Encodes the specified SuspendInstanceRequest message. Does not implicitly {@link google.cloud.compute.v1.SuspendInstanceRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.SuspendInstanceRequest + * @static + * @param {google.cloud.compute.v1.ISuspendInstanceRequest} message SuspendInstanceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SuspendInstanceRequest.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 SuspendInstanceRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SuspendInstanceRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.SuspendInstanceRequest + * @static + * @param {google.cloud.compute.v1.ISuspendInstanceRequest} message SuspendInstanceRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SuspendInstanceRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SuspendInstanceRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.SuspendInstanceRequest + * @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.SuspendInstanceRequest} SuspendInstanceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SuspendInstanceRequest.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.SuspendInstanceRequest(); + 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 SuspendInstanceRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.SuspendInstanceRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.SuspendInstanceRequest} SuspendInstanceRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SuspendInstanceRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SuspendInstanceRequest message. + * @function verify + * @memberof google.cloud.compute.v1.SuspendInstanceRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SuspendInstanceRequest.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 SuspendInstanceRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.SuspendInstanceRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.SuspendInstanceRequest} SuspendInstanceRequest + */ + SuspendInstanceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.SuspendInstanceRequest) + return object; + var message = new $root.google.cloud.compute.v1.SuspendInstanceRequest(); + 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 SuspendInstanceRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.SuspendInstanceRequest + * @static + * @param {google.cloud.compute.v1.SuspendInstanceRequest} message SuspendInstanceRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SuspendInstanceRequest.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 SuspendInstanceRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.SuspendInstanceRequest + * @instance + * @returns {Object.} JSON object + */ + SuspendInstanceRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return SuspendInstanceRequest; + })(); + v1.SwitchToCustomModeNetworkRequest = (function() { /** @@ -357356,6 +370749,243 @@ return TestIamPermissionsLicenseRequest; })(); + v1.TestIamPermissionsMachineImageRequest = (function() { + + /** + * Properties of a TestIamPermissionsMachineImageRequest. + * @memberof google.cloud.compute.v1 + * @interface ITestIamPermissionsMachineImageRequest + * @property {string|null} [project] TestIamPermissionsMachineImageRequest project + * @property {string|null} [resource] TestIamPermissionsMachineImageRequest resource + * @property {google.cloud.compute.v1.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsMachineImageRequest testPermissionsRequestResource + */ + + /** + * Constructs a new TestIamPermissionsMachineImageRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a TestIamPermissionsMachineImageRequest. + * @implements ITestIamPermissionsMachineImageRequest + * @constructor + * @param {google.cloud.compute.v1.ITestIamPermissionsMachineImageRequest=} [properties] Properties to set + */ + function TestIamPermissionsMachineImageRequest(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]]; + } + + /** + * TestIamPermissionsMachineImageRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.TestIamPermissionsMachineImageRequest + * @instance + */ + TestIamPermissionsMachineImageRequest.prototype.project = ""; + + /** + * TestIamPermissionsMachineImageRequest resource. + * @member {string} resource + * @memberof google.cloud.compute.v1.TestIamPermissionsMachineImageRequest + * @instance + */ + TestIamPermissionsMachineImageRequest.prototype.resource = ""; + + /** + * TestIamPermissionsMachineImageRequest testPermissionsRequestResource. + * @member {google.cloud.compute.v1.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource + * @memberof google.cloud.compute.v1.TestIamPermissionsMachineImageRequest + * @instance + */ + TestIamPermissionsMachineImageRequest.prototype.testPermissionsRequestResource = null; + + /** + * Creates a new TestIamPermissionsMachineImageRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.TestIamPermissionsMachineImageRequest + * @static + * @param {google.cloud.compute.v1.ITestIamPermissionsMachineImageRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.TestIamPermissionsMachineImageRequest} TestIamPermissionsMachineImageRequest instance + */ + TestIamPermissionsMachineImageRequest.create = function create(properties) { + return new TestIamPermissionsMachineImageRequest(properties); + }; + + /** + * Encodes the specified TestIamPermissionsMachineImageRequest message. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsMachineImageRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.TestIamPermissionsMachineImageRequest + * @static + * @param {google.cloud.compute.v1.ITestIamPermissionsMachineImageRequest} message TestIamPermissionsMachineImageRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TestIamPermissionsMachineImageRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) + writer.uint32(/* id 195806222, wireType 2 =*/1566449778).string(message.resource); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.testPermissionsRequestResource != null && Object.hasOwnProperty.call(message, "testPermissionsRequestResource")) + $root.google.cloud.compute.v1.TestPermissionsRequest.encode(message.testPermissionsRequestResource, writer.uint32(/* id 439214758, wireType 2 =*/3513718066).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified TestIamPermissionsMachineImageRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsMachineImageRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.TestIamPermissionsMachineImageRequest + * @static + * @param {google.cloud.compute.v1.ITestIamPermissionsMachineImageRequest} message TestIamPermissionsMachineImageRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TestIamPermissionsMachineImageRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TestIamPermissionsMachineImageRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.TestIamPermissionsMachineImageRequest + * @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.TestIamPermissionsMachineImageRequest} TestIamPermissionsMachineImageRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TestIamPermissionsMachineImageRequest.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.TestIamPermissionsMachineImageRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 227560217: + message.project = reader.string(); + break; + case 195806222: + message.resource = reader.string(); + break; + case 439214758: + message.testPermissionsRequestResource = $root.google.cloud.compute.v1.TestPermissionsRequest.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TestIamPermissionsMachineImageRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.TestIamPermissionsMachineImageRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.TestIamPermissionsMachineImageRequest} TestIamPermissionsMachineImageRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TestIamPermissionsMachineImageRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TestIamPermissionsMachineImageRequest message. + * @function verify + * @memberof google.cloud.compute.v1.TestIamPermissionsMachineImageRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TestIamPermissionsMachineImageRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.resource != null && message.hasOwnProperty("resource")) + if (!$util.isString(message.resource)) + return "resource: string expected"; + if (message.testPermissionsRequestResource != null && message.hasOwnProperty("testPermissionsRequestResource")) { + var error = $root.google.cloud.compute.v1.TestPermissionsRequest.verify(message.testPermissionsRequestResource); + if (error) + return "testPermissionsRequestResource." + error; + } + return null; + }; + + /** + * Creates a TestIamPermissionsMachineImageRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.TestIamPermissionsMachineImageRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.TestIamPermissionsMachineImageRequest} TestIamPermissionsMachineImageRequest + */ + TestIamPermissionsMachineImageRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.TestIamPermissionsMachineImageRequest) + return object; + var message = new $root.google.cloud.compute.v1.TestIamPermissionsMachineImageRequest(); + if (object.project != null) + message.project = String(object.project); + if (object.resource != null) + message.resource = String(object.resource); + if (object.testPermissionsRequestResource != null) { + if (typeof object.testPermissionsRequestResource !== "object") + throw TypeError(".google.cloud.compute.v1.TestIamPermissionsMachineImageRequest.testPermissionsRequestResource: object expected"); + message.testPermissionsRequestResource = $root.google.cloud.compute.v1.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); + } + return message; + }; + + /** + * Creates a plain object from a TestIamPermissionsMachineImageRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.TestIamPermissionsMachineImageRequest + * @static + * @param {google.cloud.compute.v1.TestIamPermissionsMachineImageRequest} message TestIamPermissionsMachineImageRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TestIamPermissionsMachineImageRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.resource = ""; + object.project = ""; + object.testPermissionsRequestResource = null; + } + if (message.resource != null && message.hasOwnProperty("resource")) + object.resource = message.resource; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.testPermissionsRequestResource != null && message.hasOwnProperty("testPermissionsRequestResource")) + object.testPermissionsRequestResource = $root.google.cloud.compute.v1.TestPermissionsRequest.toObject(message.testPermissionsRequestResource, options); + return object; + }; + + /** + * Converts this TestIamPermissionsMachineImageRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.TestIamPermissionsMachineImageRequest + * @instance + * @returns {Object.} JSON object + */ + TestIamPermissionsMachineImageRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return TestIamPermissionsMachineImageRequest; + })(); + v1.TestIamPermissionsNetworkEndpointGroupRequest = (function() { /** @@ -365089,6 +378719,380 @@ return UpdateRegionBackendServiceRequest; })(); + v1.UpdateRegionCommitmentRequest = (function() { + + /** + * Properties of an UpdateRegionCommitmentRequest. + * @memberof google.cloud.compute.v1 + * @interface IUpdateRegionCommitmentRequest + * @property {string|null} [commitment] UpdateRegionCommitmentRequest commitment + * @property {google.cloud.compute.v1.ICommitment|null} [commitmentResource] UpdateRegionCommitmentRequest commitmentResource + * @property {string|null} [paths] UpdateRegionCommitmentRequest paths + * @property {string|null} [project] UpdateRegionCommitmentRequest project + * @property {string|null} [region] UpdateRegionCommitmentRequest region + * @property {string|null} [requestId] UpdateRegionCommitmentRequest requestId + * @property {string|null} [updateMask] UpdateRegionCommitmentRequest updateMask + */ + + /** + * Constructs a new UpdateRegionCommitmentRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an UpdateRegionCommitmentRequest. + * @implements IUpdateRegionCommitmentRequest + * @constructor + * @param {google.cloud.compute.v1.IUpdateRegionCommitmentRequest=} [properties] Properties to set + */ + function UpdateRegionCommitmentRequest(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]]; + } + + /** + * UpdateRegionCommitmentRequest commitment. + * @member {string} commitment + * @memberof google.cloud.compute.v1.UpdateRegionCommitmentRequest + * @instance + */ + UpdateRegionCommitmentRequest.prototype.commitment = ""; + + /** + * UpdateRegionCommitmentRequest commitmentResource. + * @member {google.cloud.compute.v1.ICommitment|null|undefined} commitmentResource + * @memberof google.cloud.compute.v1.UpdateRegionCommitmentRequest + * @instance + */ + UpdateRegionCommitmentRequest.prototype.commitmentResource = null; + + /** + * UpdateRegionCommitmentRequest paths. + * @member {string|null|undefined} paths + * @memberof google.cloud.compute.v1.UpdateRegionCommitmentRequest + * @instance + */ + UpdateRegionCommitmentRequest.prototype.paths = null; + + /** + * UpdateRegionCommitmentRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.UpdateRegionCommitmentRequest + * @instance + */ + UpdateRegionCommitmentRequest.prototype.project = ""; + + /** + * UpdateRegionCommitmentRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.UpdateRegionCommitmentRequest + * @instance + */ + UpdateRegionCommitmentRequest.prototype.region = ""; + + /** + * UpdateRegionCommitmentRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1.UpdateRegionCommitmentRequest + * @instance + */ + UpdateRegionCommitmentRequest.prototype.requestId = null; + + /** + * UpdateRegionCommitmentRequest updateMask. + * @member {string|null|undefined} updateMask + * @memberof google.cloud.compute.v1.UpdateRegionCommitmentRequest + * @instance + */ + UpdateRegionCommitmentRequest.prototype.updateMask = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * UpdateRegionCommitmentRequest _paths. + * @member {"paths"|undefined} _paths + * @memberof google.cloud.compute.v1.UpdateRegionCommitmentRequest + * @instance + */ + Object.defineProperty(UpdateRegionCommitmentRequest.prototype, "_paths", { + get: $util.oneOfGetter($oneOfFields = ["paths"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * UpdateRegionCommitmentRequest _requestId. + * @member {"requestId"|undefined} _requestId + * @memberof google.cloud.compute.v1.UpdateRegionCommitmentRequest + * @instance + */ + Object.defineProperty(UpdateRegionCommitmentRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * UpdateRegionCommitmentRequest _updateMask. + * @member {"updateMask"|undefined} _updateMask + * @memberof google.cloud.compute.v1.UpdateRegionCommitmentRequest + * @instance + */ + Object.defineProperty(UpdateRegionCommitmentRequest.prototype, "_updateMask", { + get: $util.oneOfGetter($oneOfFields = ["updateMask"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new UpdateRegionCommitmentRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.UpdateRegionCommitmentRequest + * @static + * @param {google.cloud.compute.v1.IUpdateRegionCommitmentRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.UpdateRegionCommitmentRequest} UpdateRegionCommitmentRequest instance + */ + UpdateRegionCommitmentRequest.create = function create(properties) { + return new UpdateRegionCommitmentRequest(properties); + }; + + /** + * Encodes the specified UpdateRegionCommitmentRequest message. Does not implicitly {@link google.cloud.compute.v1.UpdateRegionCommitmentRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.UpdateRegionCommitmentRequest + * @static + * @param {google.cloud.compute.v1.IUpdateRegionCommitmentRequest} message UpdateRegionCommitmentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateRegionCommitmentRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); + if (message.paths != null && Object.hasOwnProperty.call(message, "paths")) + writer.uint32(/* id 106438894, wireType 2 =*/851511154).string(message.paths); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.commitmentResource != null && Object.hasOwnProperty.call(message, "commitmentResource")) + $root.google.cloud.compute.v1.Commitment.encode(message.commitmentResource, writer.uint32(/* id 244240888, wireType 2 =*/1953927106).fork()).ldelim(); + if (message.commitment != null && Object.hasOwnProperty.call(message, "commitment")) + writer.uint32(/* id 482134805, wireType 2 =*/3857078442).string(message.commitment); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + writer.uint32(/* id 500079778, wireType 2 =*/4000638226).string(message.updateMask); + return writer; + }; + + /** + * Encodes the specified UpdateRegionCommitmentRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.UpdateRegionCommitmentRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.UpdateRegionCommitmentRequest + * @static + * @param {google.cloud.compute.v1.IUpdateRegionCommitmentRequest} message UpdateRegionCommitmentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateRegionCommitmentRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateRegionCommitmentRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.UpdateRegionCommitmentRequest + * @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.UpdateRegionCommitmentRequest} UpdateRegionCommitmentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateRegionCommitmentRequest.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.UpdateRegionCommitmentRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 482134805: + message.commitment = reader.string(); + break; + case 244240888: + message.commitmentResource = $root.google.cloud.compute.v1.Commitment.decode(reader, reader.uint32()); + break; + case 106438894: + message.paths = reader.string(); + break; + case 227560217: + message.project = reader.string(); + break; + case 138946292: + message.region = reader.string(); + break; + case 37109963: + message.requestId = reader.string(); + break; + case 500079778: + message.updateMask = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UpdateRegionCommitmentRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.UpdateRegionCommitmentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.UpdateRegionCommitmentRequest} UpdateRegionCommitmentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateRegionCommitmentRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateRegionCommitmentRequest message. + * @function verify + * @memberof google.cloud.compute.v1.UpdateRegionCommitmentRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateRegionCommitmentRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.commitment != null && message.hasOwnProperty("commitment")) + if (!$util.isString(message.commitment)) + return "commitment: string expected"; + if (message.commitmentResource != null && message.hasOwnProperty("commitmentResource")) { + var error = $root.google.cloud.compute.v1.Commitment.verify(message.commitmentResource); + if (error) + return "commitmentResource." + error; + } + if (message.paths != null && message.hasOwnProperty("paths")) { + properties._paths = 1; + if (!$util.isString(message.paths)) + return "paths: 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.requestId != null && message.hasOwnProperty("requestId")) { + properties._requestId = 1; + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + properties._updateMask = 1; + if (!$util.isString(message.updateMask)) + return "updateMask: string expected"; + } + return null; + }; + + /** + * Creates an UpdateRegionCommitmentRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.UpdateRegionCommitmentRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.UpdateRegionCommitmentRequest} UpdateRegionCommitmentRequest + */ + UpdateRegionCommitmentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.UpdateRegionCommitmentRequest) + return object; + var message = new $root.google.cloud.compute.v1.UpdateRegionCommitmentRequest(); + if (object.commitment != null) + message.commitment = String(object.commitment); + if (object.commitmentResource != null) { + if (typeof object.commitmentResource !== "object") + throw TypeError(".google.cloud.compute.v1.UpdateRegionCommitmentRequest.commitmentResource: object expected"); + message.commitmentResource = $root.google.cloud.compute.v1.Commitment.fromObject(object.commitmentResource); + } + if (object.paths != null) + message.paths = String(object.paths); + if (object.project != null) + message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); + if (object.requestId != null) + message.requestId = String(object.requestId); + if (object.updateMask != null) + message.updateMask = String(object.updateMask); + return message; + }; + + /** + * Creates a plain object from an UpdateRegionCommitmentRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.UpdateRegionCommitmentRequest + * @static + * @param {google.cloud.compute.v1.UpdateRegionCommitmentRequest} message UpdateRegionCommitmentRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateRegionCommitmentRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.project = ""; + object.commitmentResource = null; + object.commitment = ""; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) { + object.requestId = message.requestId; + if (options.oneofs) + object._requestId = "requestId"; + } + if (message.paths != null && message.hasOwnProperty("paths")) { + object.paths = message.paths; + if (options.oneofs) + object._paths = "paths"; + } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.commitmentResource != null && message.hasOwnProperty("commitmentResource")) + object.commitmentResource = $root.google.cloud.compute.v1.Commitment.toObject(message.commitmentResource, options); + if (message.commitment != null && message.hasOwnProperty("commitment")) + object.commitment = message.commitment; + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + object.updateMask = message.updateMask; + if (options.oneofs) + object._updateMask = "updateMask"; + } + return object; + }; + + /** + * Converts this UpdateRegionCommitmentRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.UpdateRegionCommitmentRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateRegionCommitmentRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return UpdateRegionCommitmentRequest; + })(); + v1.UpdateRegionHealthCheckRequest = (function() { /** @@ -365689,6 +379693,380 @@ return UpdateRegionUrlMapRequest; })(); + v1.UpdateReservationRequest = (function() { + + /** + * Properties of an UpdateReservationRequest. + * @memberof google.cloud.compute.v1 + * @interface IUpdateReservationRequest + * @property {string|null} [paths] UpdateReservationRequest paths + * @property {string|null} [project] UpdateReservationRequest project + * @property {string|null} [requestId] UpdateReservationRequest requestId + * @property {string|null} [reservation] UpdateReservationRequest reservation + * @property {google.cloud.compute.v1.IReservation|null} [reservationResource] UpdateReservationRequest reservationResource + * @property {string|null} [updateMask] UpdateReservationRequest updateMask + * @property {string|null} [zone] UpdateReservationRequest zone + */ + + /** + * Constructs a new UpdateReservationRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an UpdateReservationRequest. + * @implements IUpdateReservationRequest + * @constructor + * @param {google.cloud.compute.v1.IUpdateReservationRequest=} [properties] Properties to set + */ + function UpdateReservationRequest(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]]; + } + + /** + * UpdateReservationRequest paths. + * @member {string|null|undefined} paths + * @memberof google.cloud.compute.v1.UpdateReservationRequest + * @instance + */ + UpdateReservationRequest.prototype.paths = null; + + /** + * UpdateReservationRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.UpdateReservationRequest + * @instance + */ + UpdateReservationRequest.prototype.project = ""; + + /** + * UpdateReservationRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1.UpdateReservationRequest + * @instance + */ + UpdateReservationRequest.prototype.requestId = null; + + /** + * UpdateReservationRequest reservation. + * @member {string} reservation + * @memberof google.cloud.compute.v1.UpdateReservationRequest + * @instance + */ + UpdateReservationRequest.prototype.reservation = ""; + + /** + * UpdateReservationRequest reservationResource. + * @member {google.cloud.compute.v1.IReservation|null|undefined} reservationResource + * @memberof google.cloud.compute.v1.UpdateReservationRequest + * @instance + */ + UpdateReservationRequest.prototype.reservationResource = null; + + /** + * UpdateReservationRequest updateMask. + * @member {string|null|undefined} updateMask + * @memberof google.cloud.compute.v1.UpdateReservationRequest + * @instance + */ + UpdateReservationRequest.prototype.updateMask = null; + + /** + * UpdateReservationRequest zone. + * @member {string} zone + * @memberof google.cloud.compute.v1.UpdateReservationRequest + * @instance + */ + UpdateReservationRequest.prototype.zone = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * UpdateReservationRequest _paths. + * @member {"paths"|undefined} _paths + * @memberof google.cloud.compute.v1.UpdateReservationRequest + * @instance + */ + Object.defineProperty(UpdateReservationRequest.prototype, "_paths", { + get: $util.oneOfGetter($oneOfFields = ["paths"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * UpdateReservationRequest _requestId. + * @member {"requestId"|undefined} _requestId + * @memberof google.cloud.compute.v1.UpdateReservationRequest + * @instance + */ + Object.defineProperty(UpdateReservationRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * UpdateReservationRequest _updateMask. + * @member {"updateMask"|undefined} _updateMask + * @memberof google.cloud.compute.v1.UpdateReservationRequest + * @instance + */ + Object.defineProperty(UpdateReservationRequest.prototype, "_updateMask", { + get: $util.oneOfGetter($oneOfFields = ["updateMask"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new UpdateReservationRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.UpdateReservationRequest + * @static + * @param {google.cloud.compute.v1.IUpdateReservationRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.UpdateReservationRequest} UpdateReservationRequest instance + */ + UpdateReservationRequest.create = function create(properties) { + return new UpdateReservationRequest(properties); + }; + + /** + * Encodes the specified UpdateReservationRequest message. Does not implicitly {@link google.cloud.compute.v1.UpdateReservationRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.UpdateReservationRequest + * @static + * @param {google.cloud.compute.v1.IUpdateReservationRequest} message UpdateReservationRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateReservationRequest.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.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); + if (message.reservation != null && Object.hasOwnProperty.call(message, "reservation")) + writer.uint32(/* id 47530956, wireType 2 =*/380247650).string(message.reservation); + if (message.paths != null && Object.hasOwnProperty.call(message, "paths")) + writer.uint32(/* id 106438894, wireType 2 =*/851511154).string(message.paths); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.reservationResource != null && Object.hasOwnProperty.call(message, "reservationResource")) + $root.google.cloud.compute.v1.Reservation.encode(message.reservationResource, writer.uint32(/* id 285030177, wireType 2 =*/2280241418).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + writer.uint32(/* id 500079778, wireType 2 =*/4000638226).string(message.updateMask); + return writer; + }; + + /** + * Encodes the specified UpdateReservationRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.UpdateReservationRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.UpdateReservationRequest + * @static + * @param {google.cloud.compute.v1.IUpdateReservationRequest} message UpdateReservationRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateReservationRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateReservationRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.UpdateReservationRequest + * @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.UpdateReservationRequest} UpdateReservationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateReservationRequest.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.UpdateReservationRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 106438894: + message.paths = reader.string(); + break; + case 227560217: + message.project = reader.string(); + break; + case 37109963: + message.requestId = reader.string(); + break; + case 47530956: + message.reservation = reader.string(); + break; + case 285030177: + message.reservationResource = $root.google.cloud.compute.v1.Reservation.decode(reader, reader.uint32()); + break; + case 500079778: + message.updateMask = reader.string(); + break; + case 3744684: + message.zone = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UpdateReservationRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.UpdateReservationRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.UpdateReservationRequest} UpdateReservationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateReservationRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateReservationRequest message. + * @function verify + * @memberof google.cloud.compute.v1.UpdateReservationRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateReservationRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.paths != null && message.hasOwnProperty("paths")) { + properties._paths = 1; + if (!$util.isString(message.paths)) + return "paths: 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.reservation != null && message.hasOwnProperty("reservation")) + if (!$util.isString(message.reservation)) + return "reservation: string expected"; + if (message.reservationResource != null && message.hasOwnProperty("reservationResource")) { + var error = $root.google.cloud.compute.v1.Reservation.verify(message.reservationResource); + if (error) + return "reservationResource." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + properties._updateMask = 1; + if (!$util.isString(message.updateMask)) + return "updateMask: string expected"; + } + if (message.zone != null && message.hasOwnProperty("zone")) + if (!$util.isString(message.zone)) + return "zone: string expected"; + return null; + }; + + /** + * Creates an UpdateReservationRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.UpdateReservationRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.UpdateReservationRequest} UpdateReservationRequest + */ + UpdateReservationRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.UpdateReservationRequest) + return object; + var message = new $root.google.cloud.compute.v1.UpdateReservationRequest(); + if (object.paths != null) + message.paths = String(object.paths); + if (object.project != null) + message.project = String(object.project); + if (object.requestId != null) + message.requestId = String(object.requestId); + if (object.reservation != null) + message.reservation = String(object.reservation); + if (object.reservationResource != null) { + if (typeof object.reservationResource !== "object") + throw TypeError(".google.cloud.compute.v1.UpdateReservationRequest.reservationResource: object expected"); + message.reservationResource = $root.google.cloud.compute.v1.Reservation.fromObject(object.reservationResource); + } + if (object.updateMask != null) + message.updateMask = String(object.updateMask); + if (object.zone != null) + message.zone = String(object.zone); + return message; + }; + + /** + * Creates a plain object from an UpdateReservationRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.UpdateReservationRequest + * @static + * @param {google.cloud.compute.v1.UpdateReservationRequest} message UpdateReservationRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateReservationRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.zone = ""; + object.reservation = ""; + object.project = ""; + object.reservationResource = null; + } + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; + if (message.requestId != null && message.hasOwnProperty("requestId")) { + object.requestId = message.requestId; + if (options.oneofs) + object._requestId = "requestId"; + } + if (message.reservation != null && message.hasOwnProperty("reservation")) + object.reservation = message.reservation; + if (message.paths != null && message.hasOwnProperty("paths")) { + object.paths = message.paths; + if (options.oneofs) + object._paths = "paths"; + } + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.reservationResource != null && message.hasOwnProperty("reservationResource")) + object.reservationResource = $root.google.cloud.compute.v1.Reservation.toObject(message.reservationResource, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + object.updateMask = message.updateMask; + if (options.oneofs) + object._updateMask = "updateMask"; + } + return object; + }; + + /** + * Converts this UpdateReservationRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.UpdateReservationRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateReservationRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return UpdateReservationRequest; + })(); + v1.UpdateRouterRequest = (function() { /** @@ -373097,6 +387475,7 @@ * @property {string|null} [network] VpnGateway network * @property {string|null} [region] VpnGateway region * @property {string|null} [selfLink] VpnGateway selfLink + * @property {string|null} [stackType] VpnGateway stackType * @property {Array.|null} [vpnInterfaces] VpnGateway vpnInterfaces */ @@ -373197,6 +387576,14 @@ */ VpnGateway.prototype.selfLink = null; + /** + * VpnGateway stackType. + * @member {string|null|undefined} stackType + * @memberof google.cloud.compute.v1.VpnGateway + * @instance + */ + VpnGateway.prototype.stackType = null; + /** * VpnGateway vpnInterfaces. * @member {Array.} vpnInterfaces @@ -373307,6 +387694,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * VpnGateway _stackType. + * @member {"stackType"|undefined} _stackType + * @memberof google.cloud.compute.v1.VpnGateway + * @instance + */ + Object.defineProperty(VpnGateway.prototype, "_stackType", { + get: $util.oneOfGetter($oneOfFields = ["stackType"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new VpnGateway instance using the specified properties. * @function create @@ -373350,6 +387748,8 @@ writer.uint32(/* id 232872494, wireType 2 =*/1862979954).string(message.network); if (message.description != null && Object.hasOwnProperty.call(message, "description")) writer.uint32(/* id 422937596, wireType 2 =*/3383500770).string(message.description); + if (message.stackType != null && Object.hasOwnProperty.call(message, "stackType")) + writer.uint32(/* id 425908881, wireType 2 =*/3407271050).string(message.stackType); if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) writer.uint32(/* id 456214797, wireType 2 =*/3649718378).string(message.selfLink); if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) @@ -373438,6 +387838,9 @@ case 456214797: message.selfLink = reader.string(); break; + case 425908881: + message.stackType = reader.string(); + break; case 91842181: if (!(message.vpnInterfaces && message.vpnInterfaces.length)) message.vpnInterfaces = []; @@ -373532,6 +387935,11 @@ if (!$util.isString(message.selfLink)) return "selfLink: string expected"; } + if (message.stackType != null && message.hasOwnProperty("stackType")) { + properties._stackType = 1; + if (!$util.isString(message.stackType)) + return "stackType: string expected"; + } if (message.vpnInterfaces != null && message.hasOwnProperty("vpnInterfaces")) { if (!Array.isArray(message.vpnInterfaces)) return "vpnInterfaces: array expected"; @@ -373588,6 +387996,8 @@ message.region = String(object.region); if (object.selfLink != null) message.selfLink = String(object.selfLink); + if (object.stackType != null) + message.stackType = String(object.stackType); if (object.vpnInterfaces) { if (!Array.isArray(object.vpnInterfaces)) throw TypeError(".google.cloud.compute.v1.VpnGateway.vpnInterfaces: array expected"); @@ -373666,6 +388076,11 @@ if (options.oneofs) object._description = "description"; } + if (message.stackType != null && message.hasOwnProperty("stackType")) { + object.stackType = message.stackType; + if (options.oneofs) + object._stackType = "stackType"; + } if (message.selfLink != null && message.hasOwnProperty("selfLink")) { object.selfLink = message.selfLink; if (options.oneofs) @@ -373691,6 +388106,22 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * StackType enum. + * @name google.cloud.compute.v1.VpnGateway.StackType + * @enum {number} + * @property {number} UNDEFINED_STACK_TYPE=0 UNDEFINED_STACK_TYPE value + * @property {number} IPV4_IPV6=22197249 IPV4_IPV6 value + * @property {number} IPV4_ONLY=22373798 IPV4_ONLY value + */ + VpnGateway.StackType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_STACK_TYPE"] = 0; + values[valuesById[22197249] = "IPV4_IPV6"] = 22197249; + values[valuesById[22373798] = "IPV4_ONLY"] = 22373798; + return values; + })(); + return VpnGateway; })(); @@ -383787,6 +398218,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.compute.v1.BackendBuckets#setEdgeSecurityPolicy}. + * @memberof google.cloud.compute.v1.BackendBuckets + * @typedef SetEdgeSecurityPolicyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.Operation} [response] Operation + */ + + /** + * Calls SetEdgeSecurityPolicy. + * @function setEdgeSecurityPolicy + * @memberof google.cloud.compute.v1.BackendBuckets + * @instance + * @param {google.cloud.compute.v1.ISetEdgeSecurityPolicyBackendBucketRequest} request SetEdgeSecurityPolicyBackendBucketRequest message or plain object + * @param {google.cloud.compute.v1.BackendBuckets.SetEdgeSecurityPolicyCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(BackendBuckets.prototype.setEdgeSecurityPolicy = function setEdgeSecurityPolicy(request, callback) { + return this.rpcCall(setEdgeSecurityPolicy, $root.google.cloud.compute.v1.SetEdgeSecurityPolicyBackendBucketRequest, $root.google.cloud.compute.v1.Operation, request, callback); + }, "name", { value: "SetEdgeSecurityPolicy" }); + + /** + * Calls SetEdgeSecurityPolicy. + * @function setEdgeSecurityPolicy + * @memberof google.cloud.compute.v1.BackendBuckets + * @instance + * @param {google.cloud.compute.v1.ISetEdgeSecurityPolicyBackendBucketRequest} request SetEdgeSecurityPolicyBackendBucketRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.compute.v1.BackendBuckets#update}. * @memberof google.cloud.compute.v1.BackendBuckets @@ -384152,6 +398616,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.compute.v1.BackendServices#setEdgeSecurityPolicy}. + * @memberof google.cloud.compute.v1.BackendServices + * @typedef SetEdgeSecurityPolicyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.Operation} [response] Operation + */ + + /** + * Calls SetEdgeSecurityPolicy. + * @function setEdgeSecurityPolicy + * @memberof google.cloud.compute.v1.BackendServices + * @instance + * @param {google.cloud.compute.v1.ISetEdgeSecurityPolicyBackendServiceRequest} request SetEdgeSecurityPolicyBackendServiceRequest message or plain object + * @param {google.cloud.compute.v1.BackendServices.SetEdgeSecurityPolicyCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(BackendServices.prototype.setEdgeSecurityPolicy = function setEdgeSecurityPolicy(request, callback) { + return this.rpcCall(setEdgeSecurityPolicy, $root.google.cloud.compute.v1.SetEdgeSecurityPolicyBackendServiceRequest, $root.google.cloud.compute.v1.Operation, request, callback); + }, "name", { value: "SetEdgeSecurityPolicy" }); + + /** + * Calls SetEdgeSecurityPolicy. + * @function setEdgeSecurityPolicy + * @memberof google.cloud.compute.v1.BackendServices + * @instance + * @param {google.cloud.compute.v1.ISetEdgeSecurityPolicyBackendServiceRequest} request SetEdgeSecurityPolicyBackendServiceRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.compute.v1.BackendServices#setSecurityPolicy}. * @memberof google.cloud.compute.v1.BackendServices @@ -390163,6 +404660,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.compute.v1.Instances#resume}. + * @memberof google.cloud.compute.v1.Instances + * @typedef ResumeCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.Operation} [response] Operation + */ + + /** + * Calls Resume. + * @function resume + * @memberof google.cloud.compute.v1.Instances + * @instance + * @param {google.cloud.compute.v1.IResumeInstanceRequest} request ResumeInstanceRequest message or plain object + * @param {google.cloud.compute.v1.Instances.ResumeCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Instances.prototype.resume = function resume(request, callback) { + return this.rpcCall(resume, $root.google.cloud.compute.v1.ResumeInstanceRequest, $root.google.cloud.compute.v1.Operation, request, callback); + }, "name", { value: "Resume" }); + + /** + * Calls Resume. + * @function resume + * @memberof google.cloud.compute.v1.Instances + * @instance + * @param {google.cloud.compute.v1.IResumeInstanceRequest} request ResumeInstanceRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.compute.v1.Instances#sendDiagnosticInterrupt}. * @memberof google.cloud.compute.v1.Instances @@ -390724,6 +405254,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.compute.v1.Instances#suspend}. + * @memberof google.cloud.compute.v1.Instances + * @typedef SuspendCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.Operation} [response] Operation + */ + + /** + * Calls Suspend. + * @function suspend + * @memberof google.cloud.compute.v1.Instances + * @instance + * @param {google.cloud.compute.v1.ISuspendInstanceRequest} request SuspendInstanceRequest message or plain object + * @param {google.cloud.compute.v1.Instances.SuspendCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Instances.prototype.suspend = function suspend(request, callback) { + return this.rpcCall(suspend, $root.google.cloud.compute.v1.SuspendInstanceRequest, $root.google.cloud.compute.v1.Operation, request, callback); + }, "name", { value: "Suspend" }); + + /** + * Calls Suspend. + * @function suspend + * @memberof google.cloud.compute.v1.Instances + * @instance + * @param {google.cloud.compute.v1.ISuspendInstanceRequest} request SuspendInstanceRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.compute.v1.Instances#testIamPermissions}. * @memberof google.cloud.compute.v1.Instances @@ -391859,6 +406422,272 @@ return Licenses; })(); + v1.MachineImages = (function() { + + /** + * Constructs a new MachineImages service. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a MachineImages + * @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 MachineImages(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (MachineImages.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = MachineImages; + + /** + * Creates new MachineImages service using the specified rpc implementation. + * @function create + * @memberof google.cloud.compute.v1.MachineImages + * @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 {MachineImages} RPC service. Useful where requests and/or responses are streamed. + */ + MachineImages.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.compute.v1.MachineImages#delete_}. + * @memberof google.cloud.compute.v1.MachineImages + * @typedef DeleteCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.Operation} [response] Operation + */ + + /** + * Calls Delete. + * @function delete + * @memberof google.cloud.compute.v1.MachineImages + * @instance + * @param {google.cloud.compute.v1.IDeleteMachineImageRequest} request DeleteMachineImageRequest message or plain object + * @param {google.cloud.compute.v1.MachineImages.DeleteCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MachineImages.prototype["delete"] = function delete_(request, callback) { + return this.rpcCall(delete_, $root.google.cloud.compute.v1.DeleteMachineImageRequest, $root.google.cloud.compute.v1.Operation, request, callback); + }, "name", { value: "Delete" }); + + /** + * Calls Delete. + * @function delete + * @memberof google.cloud.compute.v1.MachineImages + * @instance + * @param {google.cloud.compute.v1.IDeleteMachineImageRequest} request DeleteMachineImageRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.MachineImages#get}. + * @memberof google.cloud.compute.v1.MachineImages + * @typedef GetCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.MachineImage} [response] MachineImage + */ + + /** + * Calls Get. + * @function get + * @memberof google.cloud.compute.v1.MachineImages + * @instance + * @param {google.cloud.compute.v1.IGetMachineImageRequest} request GetMachineImageRequest message or plain object + * @param {google.cloud.compute.v1.MachineImages.GetCallback} callback Node-style callback called with the error, if any, and MachineImage + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MachineImages.prototype.get = function get(request, callback) { + return this.rpcCall(get, $root.google.cloud.compute.v1.GetMachineImageRequest, $root.google.cloud.compute.v1.MachineImage, request, callback); + }, "name", { value: "Get" }); + + /** + * Calls Get. + * @function get + * @memberof google.cloud.compute.v1.MachineImages + * @instance + * @param {google.cloud.compute.v1.IGetMachineImageRequest} request GetMachineImageRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.MachineImages#getIamPolicy}. + * @memberof google.cloud.compute.v1.MachineImages + * @typedef GetIamPolicyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.Policy} [response] Policy + */ + + /** + * Calls GetIamPolicy. + * @function getIamPolicy + * @memberof google.cloud.compute.v1.MachineImages + * @instance + * @param {google.cloud.compute.v1.IGetIamPolicyMachineImageRequest} request GetIamPolicyMachineImageRequest message or plain object + * @param {google.cloud.compute.v1.MachineImages.GetIamPolicyCallback} callback Node-style callback called with the error, if any, and Policy + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MachineImages.prototype.getIamPolicy = function getIamPolicy(request, callback) { + return this.rpcCall(getIamPolicy, $root.google.cloud.compute.v1.GetIamPolicyMachineImageRequest, $root.google.cloud.compute.v1.Policy, request, callback); + }, "name", { value: "GetIamPolicy" }); + + /** + * Calls GetIamPolicy. + * @function getIamPolicy + * @memberof google.cloud.compute.v1.MachineImages + * @instance + * @param {google.cloud.compute.v1.IGetIamPolicyMachineImageRequest} request GetIamPolicyMachineImageRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.MachineImages#insert}. + * @memberof google.cloud.compute.v1.MachineImages + * @typedef InsertCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.Operation} [response] Operation + */ + + /** + * Calls Insert. + * @function insert + * @memberof google.cloud.compute.v1.MachineImages + * @instance + * @param {google.cloud.compute.v1.IInsertMachineImageRequest} request InsertMachineImageRequest message or plain object + * @param {google.cloud.compute.v1.MachineImages.InsertCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MachineImages.prototype.insert = function insert(request, callback) { + return this.rpcCall(insert, $root.google.cloud.compute.v1.InsertMachineImageRequest, $root.google.cloud.compute.v1.Operation, request, callback); + }, "name", { value: "Insert" }); + + /** + * Calls Insert. + * @function insert + * @memberof google.cloud.compute.v1.MachineImages + * @instance + * @param {google.cloud.compute.v1.IInsertMachineImageRequest} request InsertMachineImageRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.MachineImages#list}. + * @memberof google.cloud.compute.v1.MachineImages + * @typedef ListCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.MachineImageList} [response] MachineImageList + */ + + /** + * Calls List. + * @function list + * @memberof google.cloud.compute.v1.MachineImages + * @instance + * @param {google.cloud.compute.v1.IListMachineImagesRequest} request ListMachineImagesRequest message or plain object + * @param {google.cloud.compute.v1.MachineImages.ListCallback} callback Node-style callback called with the error, if any, and MachineImageList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MachineImages.prototype.list = function list(request, callback) { + return this.rpcCall(list, $root.google.cloud.compute.v1.ListMachineImagesRequest, $root.google.cloud.compute.v1.MachineImageList, request, callback); + }, "name", { value: "List" }); + + /** + * Calls List. + * @function list + * @memberof google.cloud.compute.v1.MachineImages + * @instance + * @param {google.cloud.compute.v1.IListMachineImagesRequest} request ListMachineImagesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.MachineImages#setIamPolicy}. + * @memberof google.cloud.compute.v1.MachineImages + * @typedef SetIamPolicyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.Policy} [response] Policy + */ + + /** + * Calls SetIamPolicy. + * @function setIamPolicy + * @memberof google.cloud.compute.v1.MachineImages + * @instance + * @param {google.cloud.compute.v1.ISetIamPolicyMachineImageRequest} request SetIamPolicyMachineImageRequest message or plain object + * @param {google.cloud.compute.v1.MachineImages.SetIamPolicyCallback} callback Node-style callback called with the error, if any, and Policy + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MachineImages.prototype.setIamPolicy = function setIamPolicy(request, callback) { + return this.rpcCall(setIamPolicy, $root.google.cloud.compute.v1.SetIamPolicyMachineImageRequest, $root.google.cloud.compute.v1.Policy, request, callback); + }, "name", { value: "SetIamPolicy" }); + + /** + * Calls SetIamPolicy. + * @function setIamPolicy + * @memberof google.cloud.compute.v1.MachineImages + * @instance + * @param {google.cloud.compute.v1.ISetIamPolicyMachineImageRequest} request SetIamPolicyMachineImageRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.MachineImages#testIamPermissions}. + * @memberof google.cloud.compute.v1.MachineImages + * @typedef TestIamPermissionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.TestPermissionsResponse} [response] TestPermissionsResponse + */ + + /** + * Calls TestIamPermissions. + * @function testIamPermissions + * @memberof google.cloud.compute.v1.MachineImages + * @instance + * @param {google.cloud.compute.v1.ITestIamPermissionsMachineImageRequest} request TestIamPermissionsMachineImageRequest message or plain object + * @param {google.cloud.compute.v1.MachineImages.TestIamPermissionsCallback} callback Node-style callback called with the error, if any, and TestPermissionsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MachineImages.prototype.testIamPermissions = function testIamPermissions(request, callback) { + return this.rpcCall(testIamPermissions, $root.google.cloud.compute.v1.TestIamPermissionsMachineImageRequest, $root.google.cloud.compute.v1.TestPermissionsResponse, request, callback); + }, "name", { value: "TestIamPermissions" }); + + /** + * Calls TestIamPermissions. + * @function testIamPermissions + * @memberof google.cloud.compute.v1.MachineImages + * @instance + * @param {google.cloud.compute.v1.ITestIamPermissionsMachineImageRequest} request TestIamPermissionsMachineImageRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return MachineImages; + })(); + v1.MachineTypes = (function() { /** @@ -395446,6 +410275,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.compute.v1.RegionCommitments#update}. + * @memberof google.cloud.compute.v1.RegionCommitments + * @typedef UpdateCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.Operation} [response] Operation + */ + + /** + * Calls Update. + * @function update + * @memberof google.cloud.compute.v1.RegionCommitments + * @instance + * @param {google.cloud.compute.v1.IUpdateRegionCommitmentRequest} request UpdateRegionCommitmentRequest message or plain object + * @param {google.cloud.compute.v1.RegionCommitments.UpdateCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(RegionCommitments.prototype.update = function update(request, callback) { + return this.rpcCall(update, $root.google.cloud.compute.v1.UpdateRegionCommitmentRequest, $root.google.cloud.compute.v1.Operation, request, callback); + }, "name", { value: "Update" }); + + /** + * Calls Update. + * @function update + * @memberof google.cloud.compute.v1.RegionCommitments + * @instance + * @param {google.cloud.compute.v1.IUpdateRegionCommitmentRequest} request UpdateRegionCommitmentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + return RegionCommitments; })(); @@ -399108,6 +413970,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.compute.v1.Reservations#update}. + * @memberof google.cloud.compute.v1.Reservations + * @typedef UpdateCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.Operation} [response] Operation + */ + + /** + * Calls Update. + * @function update + * @memberof google.cloud.compute.v1.Reservations + * @instance + * @param {google.cloud.compute.v1.IUpdateReservationRequest} request UpdateReservationRequest message or plain object + * @param {google.cloud.compute.v1.Reservations.UpdateCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Reservations.prototype.update = function update(request, callback) { + return this.rpcCall(update, $root.google.cloud.compute.v1.UpdateReservationRequest, $root.google.cloud.compute.v1.Operation, request, callback); + }, "name", { value: "Update" }); + + /** + * Calls Update. + * @function update + * @memberof google.cloud.compute.v1.Reservations + * @instance + * @param {google.cloud.compute.v1.IUpdateReservationRequest} request UpdateReservationRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + return Reservations; })(); @@ -400770,6 +415665,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.compute.v1.Snapshots#insert}. + * @memberof google.cloud.compute.v1.Snapshots + * @typedef InsertCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.Operation} [response] Operation + */ + + /** + * Calls Insert. + * @function insert + * @memberof google.cloud.compute.v1.Snapshots + * @instance + * @param {google.cloud.compute.v1.IInsertSnapshotRequest} request InsertSnapshotRequest message or plain object + * @param {google.cloud.compute.v1.Snapshots.InsertCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Snapshots.prototype.insert = function insert(request, callback) { + return this.rpcCall(insert, $root.google.cloud.compute.v1.InsertSnapshotRequest, $root.google.cloud.compute.v1.Operation, request, callback); + }, "name", { value: "Insert" }); + + /** + * Calls Insert. + * @function insert + * @memberof google.cloud.compute.v1.Snapshots + * @instance + * @param {google.cloud.compute.v1.IInsertSnapshotRequest} request InsertSnapshotRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.compute.v1.Snapshots#list}. * @memberof google.cloud.compute.v1.Snapshots diff --git a/packages/google-cloud-compute/protos/protos.json b/packages/google-cloud-compute/protos/protos.json index 33c20b4e160..8a499717d46 100644 --- a/packages/google-cloud-compute/protos/protos.json +++ b/packages/google-cloud-compute/protos/protos.json @@ -573,8 +573,10 @@ "NetworkTier": { "values": { "UNDEFINED_NETWORK_TIER": 0, + "FIXED_STANDARD": 310464328, "PREMIUM": 399530551, - "STANDARD": 484642493 + "STANDARD": 484642493, + "STANDARD_OVERRIDES_FIXED_STANDARD": 465847234 } }, "Type": { @@ -1421,8 +1423,10 @@ "NetworkTier": { "values": { "UNDEFINED_NETWORK_TIER": 0, + "FIXED_STANDARD": 310464328, "PREMIUM": 399530551, - "STANDARD": 484642493 + "STANDARD": 484642493, + "STANDARD_OVERRIDES_FIXED_STANDARD": 465847234 } }, "Purpose": { @@ -1624,6 +1628,11 @@ "enableNestedVirtualization" ] }, + "_enableUefiNetworking": { + "oneof": [ + "enableUefiNetworking" + ] + }, "_threadsPerCore": { "oneof": [ "threadsPerCore" @@ -1638,6 +1647,13 @@ "proto3_optional": true } }, + "enableUefiNetworking": { + "type": "bool", + "id": 334485668, + "options": { + "proto3_optional": true + } + }, "threadsPerCore": { "type": "int32", "id": 352611671, @@ -5306,6 +5322,11 @@ "type": "string", "id": 500195327 }, + "licenses": { + "rule": "repeated", + "type": "string", + "id": 337642578 + }, "onUpdateAction": { "type": "string", "id": 202451980, @@ -6401,6 +6422,11 @@ "description" ] }, + "_edgeSecurityPolicy": { + "oneof": [ + "edgeSecurityPolicy" + ] + }, "_enableCdn": { "oneof": [ "enableCdn" @@ -6461,6 +6487,13 @@ "proto3_optional": true } }, + "edgeSecurityPolicy": { + "type": "string", + "id": 41036943, + "options": { + "proto3_optional": true + } + }, "enableCdn": { "type": "bool", "id": 282942321, @@ -6500,6 +6533,11 @@ }, "BackendBucketCdnPolicy": { "oneofs": { + "_cacheKeyPolicy": { + "oneof": [ + "cacheKeyPolicy" + ] + }, "_cacheMode": { "oneof": [ "cacheMode" @@ -6547,6 +6585,13 @@ "type": "BackendBucketCdnPolicyBypassCacheOnRequestHeader", "id": 486203082 }, + "cacheKeyPolicy": { + "type": "BackendBucketCdnPolicyCacheKeyPolicy", + "id": 159263727, + "options": { + "proto3_optional": true + } + }, "cacheMode": { "type": "string", "id": 28877888, @@ -6644,6 +6689,20 @@ } } }, + "BackendBucketCdnPolicyCacheKeyPolicy": { + "fields": { + "includeHttpHeaders": { + "rule": "repeated", + "type": "string", + "id": 2489606 + }, + "queryStringWhitelist": { + "rule": "repeated", + "type": "string", + "id": 52456496 + } + } + }, "BackendBucketCdnPolicyNegativeCachingPolicy": { "oneofs": { "_code": { @@ -6767,6 +6826,11 @@ "connectionDraining" ] }, + "_connectionTrackingPolicy": { + "oneof": [ + "connectionTrackingPolicy" + ] + }, "_consistentHash": { "oneof": [ "consistentHash" @@ -6782,6 +6846,11 @@ "description" ] }, + "_edgeSecurityPolicy": { + "oneof": [ + "edgeSecurityPolicy" + ] + }, "_enableCDN": { "oneof": [ "enableCDN" @@ -6932,6 +7001,13 @@ "proto3_optional": true } }, + "connectionTrackingPolicy": { + "type": "BackendServiceConnectionTrackingPolicy", + "id": 143994969, + "options": { + "proto3_optional": true + } + }, "consistentHash": { "type": "ConsistentHashLoadBalancerSettings", "id": 905883, @@ -6963,6 +7039,13 @@ "proto3_optional": true } }, + "edgeSecurityPolicy": { + "type": "string", + "id": 41036943, + "options": { + "proto3_optional": true + } + }, "enableCDN": { "type": "bool", "id": 250733499, @@ -7135,6 +7218,7 @@ "values": { "UNDEFINED_LOAD_BALANCING_SCHEME": 0, "EXTERNAL": 35607499, + "EXTERNAL_MANAGED": 512006923, "INTERNAL": 279295677, "INTERNAL_MANAGED": 37350397, "INTERNAL_SELF_MANAGED": 236211150, @@ -7162,7 +7246,8 @@ "HTTPS": 69079243, "SSL": 82412, "TCP": 82881, - "UDP": 83873 + "UDP": 83873, + "UNSPECIFIED": 526786327 } }, "SessionAffinity": { @@ -7444,6 +7529,66 @@ } } }, + "BackendServiceConnectionTrackingPolicy": { + "oneofs": { + "_connectionPersistenceOnUnhealthyBackends": { + "oneof": [ + "connectionPersistenceOnUnhealthyBackends" + ] + }, + "_idleTimeoutSec": { + "oneof": [ + "idleTimeoutSec" + ] + }, + "_trackingMode": { + "oneof": [ + "trackingMode" + ] + } + }, + "fields": { + "connectionPersistenceOnUnhealthyBackends": { + "type": "string", + "id": 152439033, + "options": { + "proto3_optional": true + } + }, + "idleTimeoutSec": { + "type": "int32", + "id": 24977544, + "options": { + "proto3_optional": true + } + }, + "trackingMode": { + "type": "string", + "id": 127757867, + "options": { + "proto3_optional": true + } + } + }, + "nested": { + "ConnectionPersistenceOnUnhealthyBackends": { + "values": { + "UNDEFINED_CONNECTION_PERSISTENCE_ON_UNHEALTHY_BACKENDS": 0, + "ALWAYS_PERSIST": 38400900, + "DEFAULT_FOR_PROTOCOL": 145265356, + "NEVER_PERSIST": 138646241 + } + }, + "TrackingMode": { + "values": { + "UNDEFINED_TRACKING_MODE": 0, + "INVALID_TRACKING_MODE": 49234371, + "PER_CONNECTION": 85162848, + "PER_SESSION": 182099252 + } + } + } + }, "BackendServiceFailoverPolicy": { "oneofs": { "_disableConnectionDrainOnFailover": { @@ -7710,6 +7855,439 @@ } } }, + "BfdPacket": { + "oneofs": { + "_authenticationPresent": { + "oneof": [ + "authenticationPresent" + ] + }, + "_controlPlaneIndependent": { + "oneof": [ + "controlPlaneIndependent" + ] + }, + "_demand": { + "oneof": [ + "demand" + ] + }, + "_diagnostic": { + "oneof": [ + "diagnostic" + ] + }, + "_final": { + "oneof": [ + "final" + ] + }, + "_length": { + "oneof": [ + "length" + ] + }, + "_minEchoRxIntervalMs": { + "oneof": [ + "minEchoRxIntervalMs" + ] + }, + "_minRxIntervalMs": { + "oneof": [ + "minRxIntervalMs" + ] + }, + "_minTxIntervalMs": { + "oneof": [ + "minTxIntervalMs" + ] + }, + "_multiplier": { + "oneof": [ + "multiplier" + ] + }, + "_multipoint": { + "oneof": [ + "multipoint" + ] + }, + "_myDiscriminator": { + "oneof": [ + "myDiscriminator" + ] + }, + "_poll": { + "oneof": [ + "poll" + ] + }, + "_state": { + "oneof": [ + "state" + ] + }, + "_version": { + "oneof": [ + "version" + ] + }, + "_yourDiscriminator": { + "oneof": [ + "yourDiscriminator" + ] + } + }, + "fields": { + "authenticationPresent": { + "type": "bool", + "id": 105974260, + "options": { + "proto3_optional": true + } + }, + "controlPlaneIndependent": { + "type": "bool", + "id": 62363573, + "options": { + "proto3_optional": true + } + }, + "demand": { + "type": "bool", + "id": 275180107, + "options": { + "proto3_optional": true + } + }, + "diagnostic": { + "type": "string", + "id": 62708647, + "options": { + "proto3_optional": true + } + }, + "final": { + "type": "bool", + "id": 97436022, + "options": { + "proto3_optional": true + } + }, + "length": { + "type": "uint32", + "id": 504249062, + "options": { + "proto3_optional": true + } + }, + "minEchoRxIntervalMs": { + "type": "uint32", + "id": 97286868, + "options": { + "proto3_optional": true + } + }, + "minRxIntervalMs": { + "type": "uint32", + "id": 463399028, + "options": { + "proto3_optional": true + } + }, + "minTxIntervalMs": { + "type": "uint32", + "id": 526023602, + "options": { + "proto3_optional": true + } + }, + "multiplier": { + "type": "uint32", + "id": 191331777, + "options": { + "proto3_optional": true + } + }, + "multipoint": { + "type": "bool", + "id": 191421431, + "options": { + "proto3_optional": true + } + }, + "myDiscriminator": { + "type": "uint32", + "id": 76663113, + "options": { + "proto3_optional": true + } + }, + "poll": { + "type": "bool", + "id": 3446719, + "options": { + "proto3_optional": true + } + }, + "state": { + "type": "string", + "id": 109757585, + "options": { + "proto3_optional": true + } + }, + "version": { + "type": "uint32", + "id": 351608024, + "options": { + "proto3_optional": true + } + }, + "yourDiscriminator": { + "type": "uint32", + "id": 515634064, + "options": { + "proto3_optional": true + } + } + }, + "nested": { + "Diagnostic": { + "values": { + "UNDEFINED_DIAGNOSTIC": 0, + "ADMINISTRATIVELY_DOWN": 121685798, + "CONCATENATED_PATH_DOWN": 26186892, + "CONTROL_DETECTION_TIME_EXPIRED": 135478383, + "DIAGNOSTIC_UNSPECIFIED": 58720895, + "ECHO_FUNCTION_FAILED": 220687466, + "FORWARDING_PLANE_RESET": 19715882, + "NEIGHBOR_SIGNALED_SESSION_DOWN": 374226742, + "NO_DIAGNOSTIC": 222503141, + "PATH_DOWN": 290605180, + "REVERSE_CONCATENATED_PATH_DOWN": 479337129 + } + }, + "State": { + "values": { + "UNDEFINED_STATE": 0, + "ADMIN_DOWN": 128544690, + "DOWN": 2104482, + "INIT": 2252048, + "STATE_UNSPECIFIED": 470755401, + "UP": 2715 + } + } + } + }, + "BfdStatus": { + "oneofs": { + "_bfdSessionInitializationMode": { + "oneof": [ + "bfdSessionInitializationMode" + ] + }, + "_configUpdateTimestampMicros": { + "oneof": [ + "configUpdateTimestampMicros" + ] + }, + "_controlPacketCounts": { + "oneof": [ + "controlPacketCounts" + ] + }, + "_localDiagnostic": { + "oneof": [ + "localDiagnostic" + ] + }, + "_localState": { + "oneof": [ + "localState" + ] + }, + "_negotiatedLocalControlTxIntervalMs": { + "oneof": [ + "negotiatedLocalControlTxIntervalMs" + ] + }, + "_rxPacket": { + "oneof": [ + "rxPacket" + ] + }, + "_txPacket": { + "oneof": [ + "txPacket" + ] + }, + "_uptimeMs": { + "oneof": [ + "uptimeMs" + ] + } + }, + "fields": { + "bfdSessionInitializationMode": { + "type": "string", + "id": 218156954, + "options": { + "proto3_optional": true + } + }, + "configUpdateTimestampMicros": { + "type": "int64", + "id": 457195569, + "options": { + "proto3_optional": true + } + }, + "controlPacketCounts": { + "type": "BfdStatusPacketCounts", + "id": 132573561, + "options": { + "proto3_optional": true + } + }, + "controlPacketIntervals": { + "rule": "repeated", + "type": "PacketIntervals", + "id": 500806649 + }, + "localDiagnostic": { + "type": "string", + "id": 463737083, + "options": { + "proto3_optional": true + } + }, + "localState": { + "type": "string", + "id": 149195453, + "options": { + "proto3_optional": true + } + }, + "negotiatedLocalControlTxIntervalMs": { + "type": "uint32", + "id": 21768340, + "options": { + "proto3_optional": true + } + }, + "rxPacket": { + "type": "BfdPacket", + "id": 505069729, + "options": { + "proto3_optional": true + } + }, + "txPacket": { + "type": "BfdPacket", + "id": 111386275, + "options": { + "proto3_optional": true + } + }, + "uptimeMs": { + "type": "int64", + "id": 125398365, + "options": { + "proto3_optional": true + } + } + }, + "nested": { + "BfdSessionInitializationMode": { + "values": { + "UNDEFINED_BFD_SESSION_INITIALIZATION_MODE": 0, + "ACTIVE": 314733318, + "DISABLED": 516696700, + "PASSIVE": 462813959 + } + }, + "LocalDiagnostic": { + "values": { + "UNDEFINED_LOCAL_DIAGNOSTIC": 0, + "ADMINISTRATIVELY_DOWN": 121685798, + "CONCATENATED_PATH_DOWN": 26186892, + "CONTROL_DETECTION_TIME_EXPIRED": 135478383, + "DIAGNOSTIC_UNSPECIFIED": 58720895, + "ECHO_FUNCTION_FAILED": 220687466, + "FORWARDING_PLANE_RESET": 19715882, + "NEIGHBOR_SIGNALED_SESSION_DOWN": 374226742, + "NO_DIAGNOSTIC": 222503141, + "PATH_DOWN": 290605180, + "REVERSE_CONCATENATED_PATH_DOWN": 479337129 + } + }, + "LocalState": { + "values": { + "UNDEFINED_LOCAL_STATE": 0, + "ADMIN_DOWN": 128544690, + "DOWN": 2104482, + "INIT": 2252048, + "STATE_UNSPECIFIED": 470755401, + "UP": 2715 + } + } + } + }, + "BfdStatusPacketCounts": { + "oneofs": { + "_numRx": { + "oneof": [ + "numRx" + ] + }, + "_numRxRejected": { + "oneof": [ + "numRxRejected" + ] + }, + "_numRxSuccessful": { + "oneof": [ + "numRxSuccessful" + ] + }, + "_numTx": { + "oneof": [ + "numTx" + ] + } + }, + "fields": { + "numRx": { + "type": "uint32", + "id": 39375263, + "options": { + "proto3_optional": true + } + }, + "numRxRejected": { + "type": "uint32", + "id": 281007902, + "options": { + "proto3_optional": true + } + }, + "numRxSuccessful": { + "type": "uint32", + "id": 455361850, + "options": { + "proto3_optional": true + } + }, + "numTx": { + "type": "uint32", + "id": 39375325, + "options": { + "proto3_optional": true + } + } + } + }, "Binding": { "oneofs": { "_bindingId": { @@ -7996,6 +8574,16 @@ "proto3_optional": true } }, + "includeHttpHeaders": { + "rule": "repeated", + "type": "string", + "id": 2489606 + }, + "includeNamedCookies": { + "rule": "repeated", + "type": "string", + "id": 87316530 + }, "includeProtocol": { "type": "bool", "id": 303507535, @@ -8127,6 +8715,11 @@ }, "Commitment": { "oneofs": { + "_autoRenew": { + "oneof": [ + "autoRenew" + ] + }, "_category": { "oneof": [ "category" @@ -8204,6 +8797,13 @@ } }, "fields": { + "autoRenew": { + "type": "bool", + "id": 495520765, + "options": { + "proto3_optional": true + } + }, "category": { "type": "string", "id": 50511102, @@ -8351,10 +8951,12 @@ "UNDEFINED_TYPE": 0, "ACCELERATOR_OPTIMIZED": 280848403, "COMPUTE_OPTIMIZED": 158349023, + "COMPUTE_OPTIMIZED_C2D": 383246453, "GENERAL_PURPOSE": 299793543, "GENERAL_PURPOSE_E2": 301911877, "GENERAL_PURPOSE_N2": 301912156, "GENERAL_PURPOSE_N2D": 232471400, + "GENERAL_PURPOSE_T2D": 232477166, "MEMORY_OPTIMIZED": 281753417, "TYPE_UNSPECIFIED": 437714322 } @@ -10089,6 +10691,39 @@ } } }, + "DeleteMachineImageRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "machineImage": { + "type": "string", + "id": 69189475, + "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 + } + } + } + }, "DeleteNetworkEndpointGroupRequest": { "oneofs": { "_requestId": { @@ -15124,6 +15759,7 @@ "AH": 2087, "ESP": 68962, "ICMP": 2241597, + "L3_DEFAULT": 48151369, "SCTP": 2539724, "TCP": 82881, "UDP": 83873 @@ -15141,6 +15777,7 @@ "values": { "UNDEFINED_LOAD_BALANCING_SCHEME": 0, "EXTERNAL": 35607499, + "EXTERNAL_MANAGED": 512006923, "INTERNAL": 279295677, "INTERNAL_MANAGED": 37350397, "INTERNAL_SELF_MANAGED": 236211150, @@ -15150,8 +15787,10 @@ "NetworkTier": { "values": { "UNDEFINED_NETWORK_TIER": 0, + "FIXED_STANDARD": 310464328, "PREMIUM": 399530551, - "STANDARD": 484642493 + "STANDARD": 484642493, + "STANDARD_OVERRIDES_FIXED_STANDARD": 465847234 } }, "PscConnectionStatus": { @@ -16278,6 +16917,38 @@ } } }, + "GetIamPolicyMachineImageRequest": { + "oneofs": { + "_optionsRequestedPolicyVersion": { + "oneof": [ + "optionsRequestedPolicyVersion" + ] + } + }, + "fields": { + "optionsRequestedPolicyVersion": { + "type": "int32", + "id": 499220029, + "options": { + "proto3_optional": true + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "resource": { + "type": "string", + "id": 195806222, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "GetIamPolicyNodeGroupRequest": { "oneofs": { "_optionsRequestedPolicyVersion": { @@ -16816,6 +17487,24 @@ } } }, + "GetMachineImageRequest": { + "fields": { + "machineImage": { + "type": "string", + "id": 69189475, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "GetMachineTypeRequest": { "fields": { "machineType": { @@ -21242,6 +21931,11 @@ }, "InsertFirewallPolicyRequest": { "oneofs": { + "_parentId": { + "oneof": [ + "parentId" + ] + }, "_requestId": { "oneof": [ "requestId" @@ -21260,8 +21954,8 @@ "type": "string", "id": 459714768, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.cloud.operation_request_field)": "parent_id" + "(google.cloud.operation_request_field)": "parent_id", + "proto3_optional": true } }, "requestId": { @@ -21650,6 +22344,11 @@ "oneof": [ "sourceInstanceTemplate" ] + }, + "_sourceMachineImage": { + "oneof": [ + "sourceMachineImage" + ] } }, "fields": { @@ -21682,6 +22381,13 @@ "proto3_optional": true } }, + "sourceMachineImage": { + "type": "string", + "id": 21769791, + "options": { + "proto3_optional": true + } + }, "zone": { "type": "string", "id": 3744684, @@ -21844,6 +22550,51 @@ } } }, + "InsertMachineImageRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + }, + "_sourceInstance": { + "oneof": [ + "sourceInstance" + ] + } + }, + "fields": { + "machineImageResource": { + "type": "MachineImage", + "id": 60740970, + "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 + } + }, + "sourceInstance": { + "type": "string", + "id": 396315705, + "options": { + "proto3_optional": true + } + } + } + }, "InsertNetworkEndpointGroupRequest": { "oneofs": { "_requestId": { @@ -22897,6 +23648,39 @@ } } }, + "InsertSnapshotRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "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 + } + }, + "snapshotResource": { + "type": "Snapshot", + "id": 481319977, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "InsertSslCertificateRequest": { "oneofs": { "_requestId": { @@ -23509,6 +24293,11 @@ "name" ] }, + "_networkPerformanceConfig": { + "oneof": [ + "networkPerformanceConfig" + ] + }, "_privateIpv6GoogleAccess": { "oneof": [ "privateIpv6GoogleAccess" @@ -23544,6 +24333,16 @@ "shieldedInstanceIntegrityPolicy" ] }, + "_sourceMachineImage": { + "oneof": [ + "sourceMachineImage" + ] + }, + "_sourceMachineImageEncryptionKey": { + "oneof": [ + "sourceMachineImageEncryptionKey" + ] + }, "_startRestricted": { "oneof": [ "startRestricted" @@ -23731,6 +24530,13 @@ "type": "NetworkInterface", "id": 52735243 }, + "networkPerformanceConfig": { + "type": "NetworkPerformanceConfig", + "id": 398330850, + "options": { + "proto3_optional": true + } + }, "privateIpv6GoogleAccess": { "type": "string", "id": 48277006, @@ -23790,6 +24596,20 @@ "proto3_optional": true } }, + "sourceMachineImage": { + "type": "string", + "id": 21769791, + "options": { + "proto3_optional": true + } + }, + "sourceMachineImageEncryptionKey": { + "type": "CustomerEncryptionKey", + "id": 192839075, + "options": { + "proto3_optional": true + } + }, "startRestricted": { "type": "bool", "id": 123693144, @@ -24514,6 +25334,26 @@ "restarting" ] }, + "_resuming": { + "oneof": [ + "resuming" + ] + }, + "_starting": { + "oneof": [ + "starting" + ] + }, + "_stopping": { + "oneof": [ + "stopping" + ] + }, + "_suspending": { + "oneof": [ + "suspending" + ] + }, "_verifying": { "oneof": [ "verifying" @@ -24577,6 +25417,34 @@ "proto3_optional": true } }, + "resuming": { + "type": "int32", + "id": 201100714, + "options": { + "proto3_optional": true + } + }, + "starting": { + "type": "int32", + "id": 243064896, + "options": { + "proto3_optional": true + } + }, + "stopping": { + "type": "int32", + "id": 105035892, + "options": { + "proto3_optional": true + } + }, + "suspending": { + "type": "int32", + "id": 29113894, + "options": { + "proto3_optional": true + } + }, "verifying": { "type": "int32", "id": 451612873, @@ -24905,6 +25773,11 @@ "minimalAction" ] }, + "_mostDisruptiveAllowedAction": { + "oneof": [ + "mostDisruptiveAllowedAction" + ] + }, "_replacementMethod": { "oneof": [ "replacementMethod" @@ -24945,6 +25818,13 @@ "proto3_optional": true } }, + "mostDisruptiveAllowedAction": { + "type": "string", + "id": 66103053, + "options": { + "proto3_optional": true + } + }, "replacementMethod": { "type": "string", "id": 505931694, @@ -25671,6 +26551,10 @@ "RECREATING": 287278572, "REFRESHING": 163266343, "RESTARTING": 320534387, + "RESUMING": 446856618, + "STARTING": 488820800, + "STOPPING": 350791796, + "SUSPENDING": 514206246, "VERIFYING": 16982185 } } @@ -25773,6 +26657,11 @@ "minCpuPlatform" ] }, + "_networkPerformanceConfig": { + "oneof": [ + "networkPerformanceConfig" + ] + }, "_privateIpv6GoogleAccess": { "oneof": [ "privateIpv6GoogleAccess" @@ -25869,6 +26758,13 @@ "type": "NetworkInterface", "id": 52735243 }, + "networkPerformanceConfig": { + "type": "NetworkPerformanceConfig", + "id": 398330850, + "options": { + "proto3_optional": true + } + }, "privateIpv6GoogleAccess": { "type": "string", "id": 48277006, @@ -25883,6 +26779,11 @@ "proto3_optional": true } }, + "resourceManagerTags": { + "keyType": "string", + "type": "string", + "id": 377671164 + }, "resourcePolicies": { "rule": "repeated", "type": "string", @@ -26743,6 +27644,16 @@ "cloudRouterIpAddress" ] }, + "_cloudRouterIpv6Address": { + "oneof": [ + "cloudRouterIpv6Address" + ] + }, + "_cloudRouterIpv6InterfaceId": { + "oneof": [ + "cloudRouterIpv6InterfaceId" + ] + }, "_creationTimestamp": { "oneof": [ "creationTimestamp" @@ -26753,6 +27664,16 @@ "customerRouterIpAddress" ] }, + "_customerRouterIpv6Address": { + "oneof": [ + "customerRouterIpv6Address" + ] + }, + "_customerRouterIpv6InterfaceId": { + "oneof": [ + "customerRouterIpv6InterfaceId" + ] + }, "_dataplaneVersion": { "oneof": [ "dataplaneVersion" @@ -26848,6 +27769,11 @@ "selfLink" ] }, + "_stackType": { + "oneof": [ + "stackType" + ] + }, "_state": { "oneof": [ "state" @@ -26879,6 +27805,11 @@ "proto3_optional": true } }, + "candidateIpv6Subnets": { + "rule": "repeated", + "type": "string", + "id": 70682522 + }, "candidateSubnets": { "rule": "repeated", "type": "string", @@ -26891,6 +27822,20 @@ "proto3_optional": true } }, + "cloudRouterIpv6Address": { + "type": "string", + "id": 451922376, + "options": { + "proto3_optional": true + } + }, + "cloudRouterIpv6InterfaceId": { + "type": "string", + "id": 521282701, + "options": { + "proto3_optional": true + } + }, "creationTimestamp": { "type": "string", "id": 30525366, @@ -26905,6 +27850,20 @@ "proto3_optional": true } }, + "customerRouterIpv6Address": { + "type": "string", + "id": 290127089, + "options": { + "proto3_optional": true + } + }, + "customerRouterIpv6InterfaceId": { + "type": "string", + "id": 380994308, + "options": { + "proto3_optional": true + } + }, "dataplaneVersion": { "type": "int32", "id": 34920075, @@ -27043,6 +28002,13 @@ "proto3_optional": true } }, + "stackType": { + "type": "string", + "id": 425908881, + "options": { + "proto3_optional": true + } + }, "state": { "type": "string", "id": 109757585, @@ -27105,6 +28071,13 @@ "OS_UNPROVISIONED": 239771840 } }, + "StackType": { + "values": { + "UNDEFINED_STACK_TYPE": 0, + "IPV4_IPV6": 22197249, + "IPV4_ONLY": 22373798 + } + }, "State": { "values": { "UNDEFINED_STATE": 0, @@ -31152,6 +32125,79 @@ } } }, + "ListMachineImagesRequest": { + "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" + } + }, + "returnPartialSuccess": { + "type": "bool", + "id": 517198390, + "options": { + "proto3_optional": true + } + } + } + }, "ListMachineTypesRequest": { "oneofs": { "_filter": { @@ -36267,26 +37313,21 @@ } } }, - "MachineType": { + "MachineImage": { "oneofs": { "_creationTimestamp": { "oneof": [ "creationTimestamp" ] }, - "_deprecated": { - "oneof": [ - "deprecated" - ] - }, "_description": { "oneof": [ "description" ] }, - "_guestCpus": { + "_guestFlush": { "oneof": [ - "guestCpus" + "guestFlush" ] }, "_id": { @@ -36294,58 +37335,58 @@ "id" ] }, - "_imageSpaceGb": { + "_instanceProperties": { "oneof": [ - "imageSpaceGb" + "instanceProperties" ] }, - "_isSharedCpu": { + "_kind": { "oneof": [ - "isSharedCpu" + "kind" ] }, - "_kind": { + "_machineImageEncryptionKey": { "oneof": [ - "kind" + "machineImageEncryptionKey" ] }, - "_maximumPersistentDisks": { + "_name": { "oneof": [ - "maximumPersistentDisks" + "name" ] }, - "_maximumPersistentDisksSizeGb": { + "_satisfiesPzs": { "oneof": [ - "maximumPersistentDisksSizeGb" + "satisfiesPzs" ] }, - "_memoryMb": { + "_selfLink": { "oneof": [ - "memoryMb" + "selfLink" ] }, - "_name": { + "_sourceInstance": { "oneof": [ - "name" + "sourceInstance" ] }, - "_selfLink": { + "_sourceInstanceProperties": { "oneof": [ - "selfLink" + "sourceInstanceProperties" ] }, - "_zone": { + "_status": { "oneof": [ - "zone" + "status" + ] + }, + "_totalStorageBytes": { + "oneof": [ + "totalStorageBytes" ] } }, "fields": { - "accelerators": { - "rule": "repeated", - "type": "Accelerators", - "id": 269577064 - }, "creationTimestamp": { "type": "string", "id": 30525366, @@ -36353,13 +37394,6 @@ "proto3_optional": true } }, - "deprecated": { - "type": "DeprecationStatus", - "id": 515138995, - "options": { - "proto3_optional": true - } - }, "description": { "type": "string", "id": 422937596, @@ -36367,9 +37401,9 @@ "proto3_optional": true } }, - "guestCpus": { - "type": "int32", - "id": 393356754, + "guestFlush": { + "type": "bool", + "id": 385550813, "options": { "proto3_optional": true } @@ -36381,16 +37415,9 @@ "proto3_optional": true } }, - "imageSpaceGb": { - "type": "int32", - "id": 75331864, - "options": { - "proto3_optional": true - } - }, - "isSharedCpu": { - "type": "bool", - "id": 521399555, + "instanceProperties": { + "type": "InstanceProperties", + "id": 215355165, "options": { "proto3_optional": true } @@ -36402,56 +37429,347 @@ "proto3_optional": true } }, - "maximumPersistentDisks": { - "type": "int32", - "id": 496220941, + "machineImageEncryptionKey": { + "type": "CustomerEncryptionKey", + "id": 528089087, "options": { "proto3_optional": true } }, - "maximumPersistentDisksSizeGb": { - "type": "int64", - "id": 154274471, + "name": { + "type": "string", + "id": 3373707, "options": { "proto3_optional": true } }, - "memoryMb": { - "type": "int32", - "id": 116001171, + "satisfiesPzs": { + "type": "bool", + "id": 480964267, "options": { "proto3_optional": true } }, - "name": { + "savedDisks": { + "rule": "repeated", + "type": "SavedDisk", + "id": 397424318 + }, + "selfLink": { "type": "string", - "id": 3373707, + "id": 456214797, "options": { "proto3_optional": true } }, - "scratchDisks": { + "sourceDiskEncryptionKeys": { "rule": "repeated", - "type": "ScratchDisks", - "id": 480778481 + "type": "SourceDiskEncryptionKey", + "id": 370408498 }, - "selfLink": { + "sourceInstance": { "type": "string", - "id": 456214797, + "id": 396315705, "options": { "proto3_optional": true } }, - "zone": { + "sourceInstanceProperties": { + "type": "SourceInstanceProperties", + "id": 475195641, + "options": { + "proto3_optional": true + } + }, + "status": { "type": "string", - "id": 3744684, + "id": 181260274, + "options": { + "proto3_optional": true + } + }, + "storageLocations": { + "rule": "repeated", + "type": "string", + "id": 328005274 + }, + "totalStorageBytes": { + "type": "int64", + "id": 81855468, "options": { "proto3_optional": true } } + }, + "nested": { + "Status": { + "values": { + "UNDEFINED_STATUS": 0, + "CREATING": 455564985, + "DELETING": 528602024, + "INVALID": 530283991, + "READY": 77848963, + "UPLOADING": 267603489 + } + } } }, - "MachineTypeAggregatedList": { + "MachineImageList": { + "oneofs": { + "_id": { + "oneof": [ + "id" + ] + }, + "_kind": { + "oneof": [ + "kind" + ] + }, + "_nextPageToken": { + "oneof": [ + "nextPageToken" + ] + }, + "_selfLink": { + "oneof": [ + "selfLink" + ] + }, + "_warning": { + "oneof": [ + "warning" + ] + } + }, + "fields": { + "id": { + "type": "string", + "id": 3355, + "options": { + "proto3_optional": true + } + }, + "items": { + "rule": "repeated", + "type": "MachineImage", + "id": 100526016 + }, + "kind": { + "type": "string", + "id": 3292052, + "options": { + "proto3_optional": true + } + }, + "nextPageToken": { + "type": "string", + "id": 79797525, + "options": { + "proto3_optional": true + } + }, + "selfLink": { + "type": "string", + "id": 456214797, + "options": { + "proto3_optional": true + } + }, + "warning": { + "type": "Warning", + "id": 50704284, + "options": { + "proto3_optional": true + } + } + } + }, + "MachineType": { + "oneofs": { + "_creationTimestamp": { + "oneof": [ + "creationTimestamp" + ] + }, + "_deprecated": { + "oneof": [ + "deprecated" + ] + }, + "_description": { + "oneof": [ + "description" + ] + }, + "_guestCpus": { + "oneof": [ + "guestCpus" + ] + }, + "_id": { + "oneof": [ + "id" + ] + }, + "_imageSpaceGb": { + "oneof": [ + "imageSpaceGb" + ] + }, + "_isSharedCpu": { + "oneof": [ + "isSharedCpu" + ] + }, + "_kind": { + "oneof": [ + "kind" + ] + }, + "_maximumPersistentDisks": { + "oneof": [ + "maximumPersistentDisks" + ] + }, + "_maximumPersistentDisksSizeGb": { + "oneof": [ + "maximumPersistentDisksSizeGb" + ] + }, + "_memoryMb": { + "oneof": [ + "memoryMb" + ] + }, + "_name": { + "oneof": [ + "name" + ] + }, + "_selfLink": { + "oneof": [ + "selfLink" + ] + }, + "_zone": { + "oneof": [ + "zone" + ] + } + }, + "fields": { + "accelerators": { + "rule": "repeated", + "type": "Accelerators", + "id": 269577064 + }, + "creationTimestamp": { + "type": "string", + "id": 30525366, + "options": { + "proto3_optional": true + } + }, + "deprecated": { + "type": "DeprecationStatus", + "id": 515138995, + "options": { + "proto3_optional": true + } + }, + "description": { + "type": "string", + "id": 422937596, + "options": { + "proto3_optional": true + } + }, + "guestCpus": { + "type": "int32", + "id": 393356754, + "options": { + "proto3_optional": true + } + }, + "id": { + "type": "uint64", + "id": 3355, + "options": { + "proto3_optional": true + } + }, + "imageSpaceGb": { + "type": "int32", + "id": 75331864, + "options": { + "proto3_optional": true + } + }, + "isSharedCpu": { + "type": "bool", + "id": 521399555, + "options": { + "proto3_optional": true + } + }, + "kind": { + "type": "string", + "id": 3292052, + "options": { + "proto3_optional": true + } + }, + "maximumPersistentDisks": { + "type": "int32", + "id": 496220941, + "options": { + "proto3_optional": true + } + }, + "maximumPersistentDisksSizeGb": { + "type": "int64", + "id": 154274471, + "options": { + "proto3_optional": true + } + }, + "memoryMb": { + "type": "int32", + "id": 116001171, + "options": { + "proto3_optional": true + } + }, + "name": { + "type": "string", + "id": 3373707, + "options": { + "proto3_optional": true + } + }, + "scratchDisks": { + "rule": "repeated", + "type": "ScratchDisks", + "id": 480778481 + }, + "selfLink": { + "type": "string", + "id": 456214797, + "options": { + "proto3_optional": true + } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "proto3_optional": true + } + } + } + }, + "MachineTypeAggregatedList": { "oneofs": { "_id": { "oneof": [ @@ -36982,6 +38300,11 @@ }, "MoveFirewallPolicyRequest": { "oneofs": { + "_parentId": { + "oneof": [ + "parentId" + ] + }, "_requestId": { "oneof": [ "requestId" @@ -37000,8 +38323,8 @@ "type": "string", "id": 459714768, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.cloud.operation_request_field)": "parent_id" + "(google.cloud.operation_request_field)": "parent_id", + "proto3_optional": true } }, "requestId": { @@ -37340,6 +38663,11 @@ "networkEndpointType" ] }, + "_pscTargetService": { + "oneof": [ + "pscTargetService" + ] + }, "_region": { "oneof": [ "region" @@ -37449,6 +38777,13 @@ "proto3_optional": true } }, + "pscTargetService": { + "type": "string", + "id": 269132134, + "options": { + "proto3_optional": true + } + }, "region": { "type": "string", "id": 138946292, @@ -37494,6 +38829,7 @@ "INTERNET_FQDN_PORT": 404154477, "INTERNET_IP_PORT": 477719963, "NON_GCP_PRIVATE_IP_PORT": 336447968, + "PRIVATE_SERVICE_CONNECT": 48134724, "SERVERLESS": 270492508 } } @@ -38306,6 +39642,33 @@ } } }, + "NetworkPerformanceConfig": { + "oneofs": { + "_totalEgressBandwidthTier": { + "oneof": [ + "totalEgressBandwidthTier" + ] + } + }, + "fields": { + "totalEgressBandwidthTier": { + "type": "string", + "id": 130109439, + "options": { + "proto3_optional": true + } + } + }, + "nested": { + "TotalEgressBandwidthTier": { + "values": { + "UNDEFINED_TOTAL_EGRESS_BANDWIDTH_TIER": 0, + "DEFAULT": 115302945, + "TIER_1": 326919444 + } + } + } + }, "NetworkRoutingConfig": { "oneofs": { "_routingMode": { @@ -40782,6 +42145,104 @@ } } }, + "PacketIntervals": { + "oneofs": { + "_avgMs": { + "oneof": [ + "avgMs" + ] + }, + "_duration": { + "oneof": [ + "duration" + ] + }, + "_maxMs": { + "oneof": [ + "maxMs" + ] + }, + "_minMs": { + "oneof": [ + "minMs" + ] + }, + "_numIntervals": { + "oneof": [ + "numIntervals" + ] + }, + "_type": { + "oneof": [ + "type" + ] + } + }, + "fields": { + "avgMs": { + "type": "int64", + "id": 204811827, + "options": { + "proto3_optional": true + } + }, + "duration": { + "type": "string", + "id": 155471252, + "options": { + "proto3_optional": true + } + }, + "maxMs": { + "type": "int64", + "id": 529474145, + "options": { + "proto3_optional": true + } + }, + "minMs": { + "type": "int64", + "id": 536564403, + "options": { + "proto3_optional": true + } + }, + "numIntervals": { + "type": "int64", + "id": 186329813, + "options": { + "proto3_optional": true + } + }, + "type": { + "type": "string", + "id": 3575610, + "options": { + "proto3_optional": true + } + } + }, + "nested": { + "Duration": { + "values": { + "UNDEFINED_DURATION": 0, + "DURATION_UNSPECIFIED": 529071340, + "HOUR": 2223588, + "MAX": 76100, + "MINUTE": 126786068 + } + }, + "Type": { + "values": { + "UNDEFINED_TYPE": 0, + "LOOPBACK": 356174219, + "RECEIVE": 189660867, + "TRANSMIT": 452903600, + "TYPE_UNSPECIFIED": 437714322 + } + } + } + }, "PacketMirroring": { "oneofs": { "_collectorIlb": { @@ -43465,8 +44926,10 @@ "DefaultNetworkTier": { "values": { "UNDEFINED_DEFAULT_NETWORK_TIER": 0, + "FIXED_STANDARD": 310464328, "PREMIUM": 399530551, - "STANDARD": 484642493 + "STANDARD": 484642493, + "STANDARD_OVERRIDES_FIXED_STANDARD": 465847234 } }, "XpnProjectStatus": { @@ -43588,8 +45051,10 @@ "NetworkTier": { "values": { "UNDEFINED_NETWORK_TIER": 0, + "FIXED_STANDARD": 310464328, "PREMIUM": 399530551, - "STANDARD": 484642493 + "STANDARD": 484642493, + "STANDARD_OVERRIDES_FIXED_STANDARD": 465847234 } } } @@ -44397,6 +45862,7 @@ "COMMITTED_E2_CPUS": 388120154, "COMMITTED_LICENSES": 357606869, "COMMITTED_LOCAL_SSD_TOTAL_GB": 308393480, + "COMMITTED_M3_CPUS": 585985, "COMMITTED_MEMORY_OPTIMIZED_CPUS": 489057886, "COMMITTED_N2A_CPUS": 40064304, "COMMITTED_N2D_CPUS": 125951757, @@ -44407,6 +45873,7 @@ "COMMITTED_NVIDIA_P4_GPUS": 347952897, "COMMITTED_NVIDIA_T4_GPUS": 139871237, "COMMITTED_NVIDIA_V100_GPUS": 219562, + "COMMITTED_T2A_CPUS": 296378986, "COMMITTED_T2D_CPUS": 382266439, "CPUS": 2075595, "CPUS_ALL_REGIONS": 470911149, @@ -44417,6 +45884,7 @@ "EXTERNAL_VPN_GATEWAYS": 272457134, "FIREWALLS": 374485843, "FORWARDING_RULES": 432668949, + "GLOBAL_EXTERNAL_MANAGED_FORWARDING_RULES": 327611949, "GLOBAL_INTERNAL_ADDRESSES": 42738332, "GPUS_ALL_REGIONS": 39387177, "HEALTH_CHECKS": 289347502, @@ -44438,6 +45906,7 @@ "LOCAL_SSD_TOTAL_GB": 330878021, "M1_CPUS": 37203366, "M2_CPUS": 65832517, + "M3_CPUS": 94461668, "MACHINE_IMAGES": 446986640, "N2A_CPUS": 265855917, "N2D_CPUS": 351743370, @@ -44491,6 +45960,7 @@ "STATIC_ADDRESSES": 93624049, "STATIC_BYOIP_ADDRESSES": 275809649, "SUBNETWORKS": 421330469, + "T2A_CPUS": 522170599, "T2D_CPUS": 71187140, "TARGET_HTTPS_PROXIES": 219522506, "TARGET_HTTP_PROXIES": 164117155, @@ -46190,6 +47660,11 @@ "selfLink" ] }, + "_shareSettings": { + "oneof": [ + "shareSettings" + ] + }, "_specificReservation": { "oneof": [ "specificReservation" @@ -46268,6 +47743,13 @@ "proto3_optional": true } }, + "shareSettings": { + "type": "ShareSettings", + "id": 266668163, + "options": { + "proto3_optional": true + } + }, "specificReservation": { "type": "AllocationSpecificSKUReservation", "id": 404901951, @@ -47750,6 +49232,47 @@ } } }, + "ResumeInstanceRequest": { + "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" + } + } + } + }, "Route": { "oneofs": { "_creationTimestamp": { @@ -48427,6 +49950,11 @@ "enable" ] }, + "_enableIpv6": { + "oneof": [ + "enableIpv6" + ] + }, "_interfaceName": { "oneof": [ "interfaceName" @@ -48437,6 +49965,11 @@ "ipAddress" ] }, + "_ipv6NexthopAddress": { + "oneof": [ + "ipv6NexthopAddress" + ] + }, "_managementType": { "oneof": [ "managementType" @@ -48457,6 +49990,11 @@ "peerIpAddress" ] }, + "_peerIpv6NexthopAddress": { + "oneof": [ + "peerIpv6NexthopAddress" + ] + }, "_routerApplianceInstance": { "oneof": [ "routerApplianceInstance" @@ -48502,6 +50040,13 @@ "proto3_optional": true } }, + "enableIpv6": { + "type": "bool", + "id": 181467939, + "options": { + "proto3_optional": true + } + }, "interfaceName": { "type": "string", "id": 437854673, @@ -48516,6 +50061,13 @@ "proto3_optional": true } }, + "ipv6NexthopAddress": { + "type": "string", + "id": 27968211, + "options": { + "proto3_optional": true + } + }, "managementType": { "type": "string", "id": 173703606, @@ -48544,6 +50096,13 @@ "proto3_optional": true } }, + "peerIpv6NexthopAddress": { + "type": "string", + "id": 491486608, + "options": { + "proto3_optional": true + } + }, "routerApplianceInstance": { "type": "string", "id": 468312989, @@ -48830,6 +50389,11 @@ }, "RouterNat": { "oneofs": { + "_enableDynamicPortAllocation": { + "oneof": [ + "enableDynamicPortAllocation" + ] + }, "_enableEndpointIndependentMapping": { "oneof": [ "enableEndpointIndependentMapping" @@ -48845,6 +50409,11 @@ "logConfig" ] }, + "_maxPortsPerVm": { + "oneof": [ + "maxPortsPerVm" + ] + }, "_minPortsPerVm": { "oneof": [ "minPortsPerVm" @@ -48892,6 +50461,13 @@ "type": "string", "id": 504078535 }, + "enableDynamicPortAllocation": { + "type": "bool", + "id": 532106402, + "options": { + "proto3_optional": true + } + }, "enableEndpointIndependentMapping": { "type": "bool", "id": 259441819, @@ -48913,6 +50489,13 @@ "proto3_optional": true } }, + "maxPortsPerVm": { + "type": "int32", + "id": 250062049, + "options": { + "proto3_optional": true + } + }, "minPortsPerVm": { "type": "int32", "id": 186193587, @@ -49189,6 +50772,11 @@ }, "RouterStatusBgpPeerStatus": { "oneofs": { + "_bfdStatus": { + "oneof": [ + "bfdStatus" + ] + }, "_ipAddress": { "oneof": [ "ipAddress" @@ -49246,6 +50834,13 @@ "type": "Route", "id": 333393068 }, + "bfdStatus": { + "type": "BfdStatus", + "id": 395631729, + "options": { + "proto3_optional": true + } + }, "ipAddress": { "type": "string", "id": 406272220, @@ -49686,6 +51281,283 @@ } } }, + "SavedAttachedDisk": { + "oneofs": { + "_autoDelete": { + "oneof": [ + "autoDelete" + ] + }, + "_boot": { + "oneof": [ + "boot" + ] + }, + "_deviceName": { + "oneof": [ + "deviceName" + ] + }, + "_diskEncryptionKey": { + "oneof": [ + "diskEncryptionKey" + ] + }, + "_diskSizeGb": { + "oneof": [ + "diskSizeGb" + ] + }, + "_diskType": { + "oneof": [ + "diskType" + ] + }, + "_index": { + "oneof": [ + "index" + ] + }, + "_interface": { + "oneof": [ + "interface" + ] + }, + "_kind": { + "oneof": [ + "kind" + ] + }, + "_mode": { + "oneof": [ + "mode" + ] + }, + "_source": { + "oneof": [ + "source" + ] + }, + "_storageBytes": { + "oneof": [ + "storageBytes" + ] + }, + "_storageBytesStatus": { + "oneof": [ + "storageBytesStatus" + ] + }, + "_type": { + "oneof": [ + "type" + ] + } + }, + "fields": { + "autoDelete": { + "type": "bool", + "id": 464761403, + "options": { + "proto3_optional": true + } + }, + "boot": { + "type": "bool", + "id": 3029746, + "options": { + "proto3_optional": true + } + }, + "deviceName": { + "type": "string", + "id": 67541716, + "options": { + "proto3_optional": true + } + }, + "diskEncryptionKey": { + "type": "CustomerEncryptionKey", + "id": 271660677, + "options": { + "proto3_optional": true + } + }, + "diskSizeGb": { + "type": "int64", + "id": 316263735, + "options": { + "proto3_optional": true + } + }, + "diskType": { + "type": "string", + "id": 93009052, + "options": { + "proto3_optional": true + } + }, + "guestOsFeatures": { + "rule": "repeated", + "type": "GuestOsFeature", + "id": 79294545 + }, + "index": { + "type": "int32", + "id": 100346066, + "options": { + "proto3_optional": true + } + }, + "interface": { + "type": "string", + "id": 502623545, + "options": { + "proto3_optional": true + } + }, + "kind": { + "type": "string", + "id": 3292052, + "options": { + "proto3_optional": true + } + }, + "licenses": { + "rule": "repeated", + "type": "string", + "id": 337642578 + }, + "mode": { + "type": "string", + "id": 3357091, + "options": { + "proto3_optional": true + } + }, + "source": { + "type": "string", + "id": 177235995, + "options": { + "proto3_optional": true + } + }, + "storageBytes": { + "type": "int64", + "id": 424631719, + "options": { + "proto3_optional": true + } + }, + "storageBytesStatus": { + "type": "string", + "id": 490739082, + "options": { + "proto3_optional": true + } + }, + "type": { + "type": "string", + "id": 3575610, + "options": { + "proto3_optional": true + } + } + }, + "nested": { + "Interface": { + "values": { + "UNDEFINED_INTERFACE": 0, + "NVME": 2408800, + "SCSI": 2539686 + } + }, + "Mode": { + "values": { + "UNDEFINED_MODE": 0, + "READ_ONLY": 91950261, + "READ_WRITE": 173607894 + } + }, + "StorageBytesStatus": { + "values": { + "UNDEFINED_STORAGE_BYTES_STATUS": 0, + "UPDATING": 494614342, + "UP_TO_DATE": 101306702 + } + }, + "Type": { + "values": { + "UNDEFINED_TYPE": 0, + "PERSISTENT": 460683927, + "SCRATCH": 496778970 + } + } + } + }, + "SavedDisk": { + "oneofs": { + "_kind": { + "oneof": [ + "kind" + ] + }, + "_sourceDisk": { + "oneof": [ + "sourceDisk" + ] + }, + "_storageBytes": { + "oneof": [ + "storageBytes" + ] + }, + "_storageBytesStatus": { + "oneof": [ + "storageBytesStatus" + ] + } + }, + "fields": { + "kind": { + "type": "string", + "id": 3292052, + "options": { + "proto3_optional": true + } + }, + "sourceDisk": { + "type": "string", + "id": 451753793, + "options": { + "proto3_optional": true + } + }, + "storageBytes": { + "type": "int64", + "id": 424631719, + "options": { + "proto3_optional": true + } + }, + "storageBytesStatus": { + "type": "string", + "id": 490739082, + "options": { + "proto3_optional": true + } + } + }, + "nested": { + "StorageBytesStatus": { + "values": { + "UNDEFINED_STORAGE_BYTES_STATUS": 0, + "UPDATING": 494614342, + "UP_TO_DATE": 101306702 + } + } + } + }, "ScalingScheduleStatus": { "oneofs": { "_lastStartTime": { @@ -49746,6 +51618,11 @@ "automaticRestart" ] }, + "_instanceTerminationAction": { + "oneof": [ + "instanceTerminationAction" + ] + }, "_locationHint": { "oneof": [ "locationHint" @@ -49765,6 +51642,11 @@ "oneof": [ "preemptible" ] + }, + "_provisioningModel": { + "oneof": [ + "provisioningModel" + ] } }, "fields": { @@ -49775,6 +51657,13 @@ "proto3_optional": true } }, + "instanceTerminationAction": { + "type": "string", + "id": 107380667, + "options": { + "proto3_optional": true + } + }, "locationHint": { "type": "string", "id": 350519505, @@ -49807,15 +51696,37 @@ "options": { "proto3_optional": true } + }, + "provisioningModel": { + "type": "string", + "id": 494423, + "options": { + "proto3_optional": true + } } }, "nested": { + "InstanceTerminationAction": { + "values": { + "UNDEFINED_INSTANCE_TERMINATION_ACTION": 0, + "DELETE": 402225579, + "INSTANCE_TERMINATION_ACTION_UNSPECIFIED": 92954803, + "STOP": 2555906 + } + }, "OnHostMaintenance": { "values": { "UNDEFINED_ON_HOST_MAINTENANCE": 0, "MIGRATE": 165699979, "TERMINATE": 527617601 } + }, + "ProvisioningModel": { + "values": { + "UNDEFINED_PROVISIONING_MODEL": 0, + "SPOT": 2552066, + "STANDARD": 484642493 + } } } }, @@ -49990,10 +51901,20 @@ "name" ] }, + "_recaptchaOptionsConfig": { + "oneof": [ + "recaptchaOptionsConfig" + ] + }, "_selfLink": { "oneof": [ "selfLink" ] + }, + "_type": { + "oneof": [ + "type" + ] } }, "fields": { @@ -50053,6 +51974,13 @@ "proto3_optional": true } }, + "recaptchaOptionsConfig": { + "type": "SecurityPolicyRecaptchaOptionsConfig", + "id": 519006811, + "options": { + "proto3_optional": true + } + }, "rules": { "rule": "repeated", "type": "SecurityPolicyRule", @@ -50064,6 +51992,22 @@ "options": { "proto3_optional": true } + }, + "type": { + "type": "string", + "id": 3575610, + "options": { + "proto3_optional": true + } + } + }, + "nested": { + "Type": { + "values": { + "UNDEFINED_TYPE": 0, + "CLOUD_ARMOR": 260640373, + "CLOUD_ARMOR_EDGE": 250728775 + } } } }, @@ -50229,6 +52173,24 @@ } } }, + "SecurityPolicyRecaptchaOptionsConfig": { + "oneofs": { + "_redirectSiteKey": { + "oneof": [ + "redirectSiteKey" + ] + } + }, + "fields": { + "redirectSiteKey": { + "type": "string", + "id": 447677034, + "options": { + "proto3_optional": true + } + } + } + }, "SecurityPolicyReference": { "oneofs": { "_securityPolicy": { @@ -50259,6 +52221,11 @@ "description" ] }, + "_headerAction": { + "oneof": [ + "headerAction" + ] + }, "_kind": { "oneof": [ "kind" @@ -50278,6 +52245,16 @@ "oneof": [ "priority" ] + }, + "_rateLimitOptions": { + "oneof": [ + "rateLimitOptions" + ] + }, + "_redirectOptions": { + "oneof": [ + "redirectOptions" + ] } }, "fields": { @@ -50295,6 +52272,13 @@ "proto3_optional": true } }, + "headerAction": { + "type": "SecurityPolicyRuleHttpHeaderAction", + "id": 328077352, + "options": { + "proto3_optional": true + } + }, "kind": { "type": "string", "id": 3292052, @@ -50322,6 +52306,59 @@ "options": { "proto3_optional": true } + }, + "rateLimitOptions": { + "type": "SecurityPolicyRuleRateLimitOptions", + "id": 67544315, + "options": { + "proto3_optional": true + } + }, + "redirectOptions": { + "type": "SecurityPolicyRuleRedirectOptions", + "id": 163285307, + "options": { + "proto3_optional": true + } + } + } + }, + "SecurityPolicyRuleHttpHeaderAction": { + "fields": { + "requestHeadersToAdds": { + "rule": "repeated", + "type": "SecurityPolicyRuleHttpHeaderActionHttpHeaderOption", + "id": 87987661 + } + } + }, + "SecurityPolicyRuleHttpHeaderActionHttpHeaderOption": { + "oneofs": { + "_headerName": { + "oneof": [ + "headerName" + ] + }, + "_headerValue": { + "oneof": [ + "headerValue" + ] + } + }, + "fields": { + "headerName": { + "type": "string", + "id": 110223613, + "options": { + "proto3_optional": true + } + }, + "headerValue": { + "type": "string", + "id": 203094335, + "options": { + "proto3_optional": true + } } } }, @@ -50384,6 +52421,189 @@ } } }, + "SecurityPolicyRuleRateLimitOptions": { + "oneofs": { + "_banDurationSec": { + "oneof": [ + "banDurationSec" + ] + }, + "_banThreshold": { + "oneof": [ + "banThreshold" + ] + }, + "_conformAction": { + "oneof": [ + "conformAction" + ] + }, + "_enforceOnKey": { + "oneof": [ + "enforceOnKey" + ] + }, + "_enforceOnKeyName": { + "oneof": [ + "enforceOnKeyName" + ] + }, + "_exceedAction": { + "oneof": [ + "exceedAction" + ] + }, + "_exceedRedirectOptions": { + "oneof": [ + "exceedRedirectOptions" + ] + }, + "_rateLimitThreshold": { + "oneof": [ + "rateLimitThreshold" + ] + } + }, + "fields": { + "banDurationSec": { + "type": "int32", + "id": 42896726, + "options": { + "proto3_optional": true + } + }, + "banThreshold": { + "type": "SecurityPolicyRuleRateLimitOptionsThreshold", + "id": 501208123, + "options": { + "proto3_optional": true + } + }, + "conformAction": { + "type": "string", + "id": 517612367, + "options": { + "proto3_optional": true + } + }, + "enforceOnKey": { + "type": "string", + "id": 416648956, + "options": { + "proto3_optional": true + } + }, + "enforceOnKeyName": { + "type": "string", + "id": 132555246, + "options": { + "proto3_optional": true + } + }, + "exceedAction": { + "type": "string", + "id": 167159073, + "options": { + "proto3_optional": true + } + }, + "exceedRedirectOptions": { + "type": "SecurityPolicyRuleRedirectOptions", + "id": 473646694, + "options": { + "proto3_optional": true + } + }, + "rateLimitThreshold": { + "type": "SecurityPolicyRuleRateLimitOptionsThreshold", + "id": 315875208, + "options": { + "proto3_optional": true + } + } + }, + "nested": { + "EnforceOnKey": { + "values": { + "UNDEFINED_ENFORCE_ON_KEY": 0, + "ALL": 64897, + "HTTP_COOKIE": 494981627, + "HTTP_HEADER": 91597348, + "IP": 2343, + "XFF_IP": 438707118 + } + } + } + }, + "SecurityPolicyRuleRateLimitOptionsThreshold": { + "oneofs": { + "_count": { + "oneof": [ + "count" + ] + }, + "_intervalSec": { + "oneof": [ + "intervalSec" + ] + } + }, + "fields": { + "count": { + "type": "int32", + "id": 94851343, + "options": { + "proto3_optional": true + } + }, + "intervalSec": { + "type": "int32", + "id": 41084375, + "options": { + "proto3_optional": true + } + } + } + }, + "SecurityPolicyRuleRedirectOptions": { + "oneofs": { + "_target": { + "oneof": [ + "target" + ] + }, + "_type": { + "oneof": [ + "type" + ] + } + }, + "fields": { + "target": { + "type": "string", + "id": 192835985, + "options": { + "proto3_optional": true + } + }, + "type": { + "type": "string", + "id": 3575610, + "options": { + "proto3_optional": true + } + } + }, + "nested": { + "Type": { + "values": { + "UNDEFINED_TYPE": 0, + "EXTERNAL_302": 395733761, + "GOOGLE_RECAPTCHA": 518803009 + } + } + } + }, "SecuritySettings": { "oneofs": { "_clientTlsPolicy": { @@ -50657,6 +52877,11 @@ "proto3_optional": true } }, + "domainNames": { + "rule": "repeated", + "type": "string", + "id": 6450189 + }, "enableProxyProtocol": { "type": "bool", "id": 363791237, @@ -51312,6 +53537,86 @@ } } }, + "SetEdgeSecurityPolicyBackendBucketRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "backendBucket": { + "type": "string", + "id": 91714037, + "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 + } + }, + "securityPolicyReferenceResource": { + "type": "SecurityPolicyReference", + "id": 204135024, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "SetEdgeSecurityPolicyBackendServiceRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "backendService": { + "type": "string", + "id": 306946058, + "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 + } + }, + "securityPolicyReferenceResource": { + "type": "SecurityPolicyReference", + "id": 204135024, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "SetIamPolicyDiskRequest": { "fields": { "project": { @@ -51469,6 +53774,31 @@ } } }, + "SetIamPolicyMachineImageRequest": { + "fields": { + "globalSetPolicyRequestResource": { + "type": "GlobalSetPolicyRequest", + "id": 337048498, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "resource": { + "type": "string", + "id": 195806222, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "SetIamPolicyNodeGroupRequest": { "fields": { "project": { @@ -53495,6 +55825,57 @@ } } }, + "ShareSettings": { + "oneofs": { + "_shareType": { + "oneof": [ + "shareType" + ] + } + }, + "fields": { + "projectMap": { + "keyType": "string", + "type": "ShareSettingsProjectConfig", + "id": 134212406 + }, + "shareType": { + "type": "string", + "id": 359533466, + "options": { + "proto3_optional": true + } + } + }, + "nested": { + "ShareType": { + "values": { + "UNDEFINED_SHARE_TYPE": 0, + "LOCAL": 72607563, + "SHARE_TYPE_UNSPECIFIED": 494771730, + "SPECIFIC_PROJECTS": 347838695 + } + } + } + }, + "ShareSettingsProjectConfig": { + "oneofs": { + "_projectId": { + "oneof": [ + "projectId" + ] + } + }, + "fields": { + "projectId": { + "type": "string", + "id": 177513473, + "options": { + "proto3_optional": true + } + } + } + }, "ShieldedInstanceConfig": { "oneofs": { "_enableIntegrityMonitoring": { @@ -54040,6 +56421,36 @@ } } }, + "SourceDiskEncryptionKey": { + "oneofs": { + "_diskEncryptionKey": { + "oneof": [ + "diskEncryptionKey" + ] + }, + "_sourceDisk": { + "oneof": [ + "sourceDisk" + ] + } + }, + "fields": { + "diskEncryptionKey": { + "type": "CustomerEncryptionKey", + "id": 271660677, + "options": { + "proto3_optional": true + } + }, + "sourceDisk": { + "type": "string", + "id": 451753793, + "options": { + "proto3_optional": true + } + } + } + }, "SourceInstanceParams": { "fields": { "diskConfigs": { @@ -54049,6 +56460,133 @@ } } }, + "SourceInstanceProperties": { + "oneofs": { + "_canIpForward": { + "oneof": [ + "canIpForward" + ] + }, + "_deletionProtection": { + "oneof": [ + "deletionProtection" + ] + }, + "_description": { + "oneof": [ + "description" + ] + }, + "_machineType": { + "oneof": [ + "machineType" + ] + }, + "_metadata": { + "oneof": [ + "metadata" + ] + }, + "_minCpuPlatform": { + "oneof": [ + "minCpuPlatform" + ] + }, + "_scheduling": { + "oneof": [ + "scheduling" + ] + }, + "_tags": { + "oneof": [ + "tags" + ] + } + }, + "fields": { + "canIpForward": { + "type": "bool", + "id": 467731324, + "options": { + "proto3_optional": true + } + }, + "deletionProtection": { + "type": "bool", + "id": 458014698, + "options": { + "proto3_optional": true + } + }, + "description": { + "type": "string", + "id": 422937596, + "options": { + "proto3_optional": true + } + }, + "disks": { + "rule": "repeated", + "type": "SavedAttachedDisk", + "id": 95594102 + }, + "guestAccelerators": { + "rule": "repeated", + "type": "AcceleratorConfig", + "id": 463595119 + }, + "labels": { + "keyType": "string", + "type": "string", + "id": 500195327 + }, + "machineType": { + "type": "string", + "id": 227711026, + "options": { + "proto3_optional": true + } + }, + "metadata": { + "type": "Metadata", + "id": 86866735, + "options": { + "proto3_optional": true + } + }, + "minCpuPlatform": { + "type": "string", + "id": 242912759, + "options": { + "proto3_optional": true + } + }, + "networkInterfaces": { + "rule": "repeated", + "type": "NetworkInterface", + "id": 52735243 + }, + "scheduling": { + "type": "Scheduling", + "id": 386688404, + "options": { + "proto3_optional": true + } + }, + "serviceAccounts": { + "rule": "repeated", + "type": "ServiceAccount", + "id": 277537328 + }, + "tags": { + "type": "Tags", + "id": 3552281, + "options": { + "proto3_optional": true + } + } + } + }, "SslCertificate": { "oneofs": { "_certificate": { @@ -55193,7 +57731,8 @@ "INTERNAL_HTTPS_LOAD_BALANCER": 248748889, "PRIVATE": 403485027, "PRIVATE_RFC_1918": 254902107, - "PRIVATE_SERVICE_CONNECT": 48134724 + "PRIVATE_SERVICE_CONNECT": 48134724, + "REGIONAL_MANAGED_PROXY": 153049966 } }, "Role": { @@ -55575,6 +58114,47 @@ } } }, + "SuspendInstanceRequest": { + "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" + } + } + } + }, "SwitchToCustomModeNetworkRequest": { "oneofs": { "_requestId": { @@ -58416,6 +60996,31 @@ } } }, + "TestIamPermissionsMachineImageRequest": { + "fields": { + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "resource": { + "type": "string", + "id": 195806222, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "testPermissionsRequestResource": { + "type": "TestPermissionsRequest", + "id": 439214758, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "TestIamPermissionsNetworkEndpointGroupRequest": { "fields": { "project": { @@ -59125,18 +61730,175 @@ } } }, - "UpdateInstanceRequest": { + "UpdateInstanceRequest": { + "oneofs": { + "_minimalAction": { + "oneof": [ + "minimalAction" + ] + }, + "_mostDisruptiveAllowedAction": { + "oneof": [ + "mostDisruptiveAllowedAction" + ] + }, + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "instance": { + "type": "string", + "id": 18257045, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "instanceResource": { + "type": "Instance", + "id": 215988344, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "minimalAction": { + "type": "string", + "id": 270567060, + "options": { + "proto3_optional": true + } + }, + "mostDisruptiveAllowedAction": { + "type": "string", + "id": 66103053, + "options": { + "proto3_optional": true + } + }, + "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" + } + } + } + }, + "UpdateNetworkInterfaceInstanceRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "instance": { + "type": "string", + "id": 18257045, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "networkInterface": { + "type": "string", + "id": 365387880, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "networkInterfaceResource": { + "type": "NetworkInterface", + "id": 325814789, + "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" + } + } + } + }, + "UpdatePeeringNetworkRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "network": { + "type": "string", + "id": 232872494, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "networksUpdatePeeringRequestResource": { + "type": "NetworksUpdatePeeringRequest", + "id": 224433497, + "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 + } + } + } + }, + "UpdatePerInstanceConfigsInstanceGroupManagerRequest": { "oneofs": { - "_minimalAction": { - "oneof": [ - "minimalAction" - ] - }, - "_mostDisruptiveAllowedAction": { - "oneof": [ - "mostDisruptiveAllowedAction" - ] - }, "_requestId": { "oneof": [ "requestId" @@ -59144,34 +61906,20 @@ } }, "fields": { - "instance": { + "instanceGroupManager": { "type": "string", - "id": 18257045, + "id": 249363395, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "instanceResource": { - "type": "Instance", - "id": 215988344, + "instanceGroupManagersUpdatePerInstanceConfigsReqResource": { + "type": "InstanceGroupManagersUpdatePerInstanceConfigsReq", + "id": 141402302, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "minimalAction": { - "type": "string", - "id": 270567060, - "options": { - "proto3_optional": true - } - }, - "mostDisruptiveAllowedAction": { - "type": "string", - "id": 66103053, - "options": { - "proto3_optional": true - } - }, "project": { "type": "string", "id": 227560217, @@ -59197,7 +61945,7 @@ } } }, - "UpdateNetworkInterfaceInstanceRequest": { + "UpdatePerInstanceConfigsRegionInstanceGroupManagerRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -59206,23 +61954,9 @@ } }, "fields": { - "instance": { - "type": "string", - "id": 18257045, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "networkInterface": { + "instanceGroupManager": { "type": "string", - "id": 365387880, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "networkInterfaceResource": { - "type": "NetworkInterface", - "id": 325814789, + "id": 249363395, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -59235,54 +61969,21 @@ "(google.cloud.operation_request_field)": "project" } }, - "requestId": { - "type": "string", - "id": 37109963, - "options": { - "proto3_optional": true - } - }, - "zone": { + "region": { "type": "string", - "id": 3744684, + "id": 138946292, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.cloud.operation_request_field)": "zone" - } - } - } - }, - "UpdatePeeringNetworkRequest": { - "oneofs": { - "_requestId": { - "oneof": [ - "requestId" - ] - } - }, - "fields": { - "network": { - "type": "string", - "id": 232872494, - "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.cloud.operation_request_field)": "region" } }, - "networksUpdatePeeringRequestResource": { - "type": "NetworksUpdatePeeringRequest", - "id": 224433497, + "regionInstanceGroupManagerUpdateInstanceConfigReqResource": { + "type": "RegionInstanceGroupManagerUpdateInstanceConfigReq", + "id": 89036583, "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, @@ -59292,8 +61993,13 @@ } } }, - "UpdatePerInstanceConfigsInstanceGroupManagerRequest": { + "UpdateRegionAutoscalerRequest": { "oneofs": { + "_autoscaler": { + "oneof": [ + "autoscaler" + ] + }, "_requestId": { "oneof": [ "requestId" @@ -59301,16 +62007,16 @@ } }, "fields": { - "instanceGroupManager": { + "autoscaler": { "type": "string", - "id": 249363395, + "id": 517258967, "options": { - "(google.api.field_behavior)": "REQUIRED" + "proto3_optional": true } }, - "instanceGroupManagersUpdatePerInstanceConfigsReqResource": { - "type": "InstanceGroupManagersUpdatePerInstanceConfigsReq", - "id": 141402302, + "autoscalerResource": { + "type": "Autoscaler", + "id": 207616118, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -59323,24 +62029,24 @@ "(google.cloud.operation_request_field)": "project" } }, - "requestId": { + "region": { "type": "string", - "id": 37109963, + "id": 138946292, "options": { - "proto3_optional": true + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "region" } }, - "zone": { + "requestId": { "type": "string", - "id": 3744684, + "id": 37109963, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.cloud.operation_request_field)": "zone" + "proto3_optional": true } } } }, - "UpdatePerInstanceConfigsRegionInstanceGroupManagerRequest": { + "UpdateRegionBackendServiceRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -59349,9 +62055,16 @@ } }, "fields": { - "instanceGroupManager": { + "backendService": { "type": "string", - "id": 249363395, + "id": 306946058, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "backendServiceResource": { + "type": "BackendService", + "id": 347586723, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -59372,13 +62085,6 @@ "(google.cloud.operation_request_field)": "region" } }, - "regionInstanceGroupManagerUpdateInstanceConfigReqResource": { - "type": "RegionInstanceGroupManagerUpdateInstanceConfigReq", - "id": 89036583, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, "requestId": { "type": "string", "id": 37109963, @@ -59388,34 +62094,46 @@ } } }, - "UpdateRegionAutoscalerRequest": { + "UpdateRegionCommitmentRequest": { "oneofs": { - "_autoscaler": { + "_paths": { "oneof": [ - "autoscaler" + "paths" ] }, "_requestId": { "oneof": [ "requestId" ] + }, + "_updateMask": { + "oneof": [ + "updateMask" + ] } }, "fields": { - "autoscaler": { + "commitment": { "type": "string", - "id": 517258967, + "id": 482134805, "options": { - "proto3_optional": true + "(google.api.field_behavior)": "REQUIRED" } }, - "autoscalerResource": { - "type": "Autoscaler", - "id": 207616118, + "commitmentResource": { + "type": "Commitment", + "id": 244240888, "options": { "(google.api.field_behavior)": "REQUIRED" } }, + "paths": { + "type": "string", + "id": 106438894, + "options": { + "proto3_optional": true + } + }, "project": { "type": "string", "id": 227560217, @@ -59438,10 +62156,17 @@ "options": { "proto3_optional": true } + }, + "updateMask": { + "type": "string", + "id": 500079778, + "options": { + "proto3_optional": true + } } } }, - "UpdateRegionBackendServiceRequest": { + "UpdateRegionHealthCheckRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -59450,16 +62175,16 @@ } }, "fields": { - "backendService": { + "healthCheck": { "type": "string", - "id": 306946058, + "id": 308876645, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "backendServiceResource": { - "type": "BackendService", - "id": 347586723, + "healthCheckResource": { + "type": "HealthCheck", + "id": 201925032, "options": { "(google.api.field_behavior)": "REQUIRED" } @@ -59489,7 +62214,7 @@ } } }, - "UpdateRegionHealthCheckRequest": { + "UpdateRegionUrlMapRequest": { "oneofs": { "_requestId": { "oneof": [ @@ -59498,20 +62223,6 @@ } }, "fields": { - "healthCheck": { - "type": "string", - "id": 308876645, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "healthCheckResource": { - "type": "HealthCheck", - "id": 201925032, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, "project": { "type": "string", "id": 227560217, @@ -59534,32 +62245,55 @@ "options": { "proto3_optional": true } + }, + "urlMap": { + "type": "string", + "id": 367020684, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "urlMapResource": { + "type": "UrlMap", + "id": 168675425, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } } } }, - "UpdateRegionUrlMapRequest": { + "UpdateReservationRequest": { "oneofs": { + "_paths": { + "oneof": [ + "paths" + ] + }, "_requestId": { "oneof": [ "requestId" ] + }, + "_updateMask": { + "oneof": [ + "updateMask" + ] } }, "fields": { - "project": { + "paths": { "type": "string", - "id": 227560217, + "id": 106438894, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.cloud.operation_request_field)": "project" + "proto3_optional": true } }, - "region": { + "project": { "type": "string", - "id": 138946292, + "id": 227560217, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.cloud.operation_request_field)": "region" + "(google.cloud.operation_request_field)": "project" } }, "requestId": { @@ -59569,19 +62303,34 @@ "proto3_optional": true } }, - "urlMap": { + "reservation": { "type": "string", - "id": 367020684, + "id": 47530956, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "urlMapResource": { - "type": "UrlMap", - "id": 168675425, + "reservationResource": { + "type": "Reservation", + "id": 285030177, "options": { "(google.api.field_behavior)": "REQUIRED" } + }, + "updateMask": { + "type": "string", + "id": 500079778, + "options": { + "proto3_optional": true + } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "zone" + } } } }, @@ -60732,6 +63481,11 @@ "oneof": [ "selfLink" ] + }, + "_stackType": { + "oneof": [ + "stackType" + ] } }, "fields": { @@ -60803,11 +63557,27 @@ "proto3_optional": true } }, + "stackType": { + "type": "string", + "id": 425908881, + "options": { + "proto3_optional": true + } + }, "vpnInterfaces": { "rule": "repeated", "type": "VpnGatewayVpnGatewayInterface", "id": 91842181 } + }, + "nested": { + "StackType": { + "values": { + "UNDEFINED_STACK_TYPE": 0, + "IPV4_IPV6": 22197249, + "IPV4_ONLY": 22373798 + } + } } }, "VpnGatewayAggregatedList": { @@ -62782,6 +65552,30 @@ } ] }, + "SetEdgeSecurityPolicy": { + "requestType": "SetEdgeSecurityPolicyBackendBucketRequest", + "responseType": "Operation", + "options": { + "(google.api.http).body": "security_policy_reference_resource", + "(google.api.http).post": "/compute/v1/projects/{project}/global/backendBuckets/{backend_bucket}/setEdgeSecurityPolicy", + "(google.api.method_signature)": "project,backend_bucket,security_policy_reference_resource", + "(google.cloud.operation_service)": "GlobalOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "security_policy_reference_resource", + "post": "/compute/v1/projects/{project}/global/backendBuckets/{backend_bucket}/setEdgeSecurityPolicy" + } + }, + { + "(google.api.method_signature)": "project,backend_bucket,security_policy_reference_resource" + }, + { + "(google.cloud.operation_service)": "GlobalOperations" + } + ] + }, "Update": { "requestType": "UpdateBackendBucketRequest", "responseType": "Operation", @@ -63004,6 +65798,30 @@ } ] }, + "SetEdgeSecurityPolicy": { + "requestType": "SetEdgeSecurityPolicyBackendServiceRequest", + "responseType": "Operation", + "options": { + "(google.api.http).body": "security_policy_reference_resource", + "(google.api.http).post": "/compute/v1/projects/{project}/global/backendServices/{backend_service}/setEdgeSecurityPolicy", + "(google.api.method_signature)": "project,backend_service,security_policy_reference_resource", + "(google.cloud.operation_service)": "GlobalOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "security_policy_reference_resource", + "post": "/compute/v1/projects/{project}/global/backendServices/{backend_service}/setEdgeSecurityPolicy" + } + }, + { + "(google.api.method_signature)": "project,backend_service,security_policy_reference_resource" + }, + { + "(google.cloud.operation_service)": "GlobalOperations" + } + ] + }, "SetSecurityPolicy": { "requestType": "SetSecurityPolicyBackendServiceRequest", "responseType": "Operation", @@ -66564,6 +69382,28 @@ } ] }, + "Resume": { + "requestType": "ResumeInstanceRequest", + "responseType": "Operation", + "options": { + "(google.api.http).post": "/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/resume", + "(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}/resume" + } + }, + { + "(google.api.method_signature)": "project,zone,instance" + }, + { + "(google.cloud.operation_service)": "ZoneOperations" + } + ] + }, "SendDiagnosticInterrupt": { "requestType": "SendDiagnosticInterruptInstanceRequest", "responseType": "SendDiagnosticInterruptInstanceResponse", @@ -66952,6 +69792,28 @@ } ] }, + "Suspend": { + "requestType": "SuspendInstanceRequest", + "responseType": "Operation", + "options": { + "(google.api.http).post": "/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/suspend", + "(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}/suspend" + } + }, + { + "(google.api.method_signature)": "project,zone,instance" + }, + { + "(google.cloud.operation_service)": "ZoneOperations" + } + ] + }, "TestIamPermissions": { "requestType": "TestIamPermissionsInstanceRequest", "responseType": "TestPermissionsResponse", @@ -67596,6 +70458,154 @@ } } }, + "MachineImages": { + "options": { + "(google.api.default_host)": "compute.googleapis.com", + "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/compute,https://www.googleapis.com/auth/cloud-platform" + }, + "methods": { + "Delete": { + "requestType": "DeleteMachineImageRequest", + "responseType": "Operation", + "options": { + "(google.api.http).delete": "/compute/v1/projects/{project}/global/machineImages/{machine_image}", + "(google.api.method_signature)": "project,machine_image", + "(google.cloud.operation_service)": "GlobalOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/compute/v1/projects/{project}/global/machineImages/{machine_image}" + } + }, + { + "(google.api.method_signature)": "project,machine_image" + }, + { + "(google.cloud.operation_service)": "GlobalOperations" + } + ] + }, + "Get": { + "requestType": "GetMachineImageRequest", + "responseType": "MachineImage", + "options": { + "(google.api.http).get": "/compute/v1/projects/{project}/global/machineImages/{machine_image}", + "(google.api.method_signature)": "project,machine_image" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/v1/projects/{project}/global/machineImages/{machine_image}" + } + }, + { + "(google.api.method_signature)": "project,machine_image" + } + ] + }, + "GetIamPolicy": { + "requestType": "GetIamPolicyMachineImageRequest", + "responseType": "Policy", + "options": { + "(google.api.http).get": "/compute/v1/projects/{project}/global/machineImages/{resource}/getIamPolicy", + "(google.api.method_signature)": "project,resource" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/v1/projects/{project}/global/machineImages/{resource}/getIamPolicy" + } + }, + { + "(google.api.method_signature)": "project,resource" + } + ] + }, + "Insert": { + "requestType": "InsertMachineImageRequest", + "responseType": "Operation", + "options": { + "(google.api.http).body": "machine_image_resource", + "(google.api.http).post": "/compute/v1/projects/{project}/global/machineImages", + "(google.api.method_signature)": "project,machine_image_resource", + "(google.cloud.operation_service)": "GlobalOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "machine_image_resource", + "post": "/compute/v1/projects/{project}/global/machineImages" + } + }, + { + "(google.api.method_signature)": "project,machine_image_resource" + }, + { + "(google.cloud.operation_service)": "GlobalOperations" + } + ] + }, + "List": { + "requestType": "ListMachineImagesRequest", + "responseType": "MachineImageList", + "options": { + "(google.api.http).get": "/compute/v1/projects/{project}/global/machineImages", + "(google.api.method_signature)": "project" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/v1/projects/{project}/global/machineImages" + } + }, + { + "(google.api.method_signature)": "project" + } + ] + }, + "SetIamPolicy": { + "requestType": "SetIamPolicyMachineImageRequest", + "responseType": "Policy", + "options": { + "(google.api.http).body": "global_set_policy_request_resource", + "(google.api.http).post": "/compute/v1/projects/{project}/global/machineImages/{resource}/setIamPolicy", + "(google.api.method_signature)": "project,resource,global_set_policy_request_resource" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "global_set_policy_request_resource", + "post": "/compute/v1/projects/{project}/global/machineImages/{resource}/setIamPolicy" + } + }, + { + "(google.api.method_signature)": "project,resource,global_set_policy_request_resource" + } + ] + }, + "TestIamPermissions": { + "requestType": "TestIamPermissionsMachineImageRequest", + "responseType": "TestPermissionsResponse", + "options": { + "(google.api.http).body": "test_permissions_request_resource", + "(google.api.http).post": "/compute/v1/projects/{project}/global/machineImages/{resource}/testIamPermissions", + "(google.api.method_signature)": "project,resource,test_permissions_request_resource" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "test_permissions_request_resource", + "post": "/compute/v1/projects/{project}/global/machineImages/{resource}/testIamPermissions" + } + }, + { + "(google.api.method_signature)": "project,resource,test_permissions_request_resource" + } + ] + } + } + }, "MachineTypes": { "options": { "(google.api.default_host)": "compute.googleapis.com", @@ -69677,6 +72687,30 @@ "(google.api.method_signature)": "project,region" } ] + }, + "Update": { + "requestType": "UpdateRegionCommitmentRequest", + "responseType": "Operation", + "options": { + "(google.api.http).body": "commitment_resource", + "(google.api.http).patch": "/compute/v1/projects/{project}/regions/{region}/commitments/{commitment}", + "(google.api.method_signature)": "project,region,commitment,commitment_resource", + "(google.cloud.operation_service)": "RegionOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "commitment_resource", + "patch": "/compute/v1/projects/{project}/regions/{region}/commitments/{commitment}" + } + }, + { + "(google.api.method_signature)": "project,region,commitment,commitment_resource" + }, + { + "(google.cloud.operation_service)": "RegionOperations" + } + ] } } }, @@ -71789,6 +74823,30 @@ "(google.api.method_signature)": "project,zone,resource,test_permissions_request_resource" } ] + }, + "Update": { + "requestType": "UpdateReservationRequest", + "responseType": "Operation", + "options": { + "(google.api.http).body": "reservation_resource", + "(google.api.http).patch": "/compute/v1/projects/{project}/zones/{zone}/reservations/{reservation}", + "(google.api.method_signature)": "project,zone,reservation,reservation_resource", + "(google.cloud.operation_service)": "ZoneOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "reservation_resource", + "patch": "/compute/v1/projects/{project}/zones/{zone}/reservations/{reservation}" + } + }, + { + "(google.api.method_signature)": "project,zone,reservation,reservation_resource" + }, + { + "(google.cloud.operation_service)": "ZoneOperations" + } + ] } } }, @@ -72734,6 +75792,30 @@ } ] }, + "Insert": { + "requestType": "InsertSnapshotRequest", + "responseType": "Operation", + "options": { + "(google.api.http).body": "snapshot_resource", + "(google.api.http).post": "/compute/v1/projects/{project}/global/snapshots", + "(google.api.method_signature)": "project,snapshot_resource", + "(google.cloud.operation_service)": "GlobalOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "snapshot_resource", + "post": "/compute/v1/projects/{project}/global/snapshots" + } + }, + { + "(google.api.method_signature)": "project,snapshot_resource" + }, + { + "(google.cloud.operation_service)": "GlobalOperations" + } + ] + }, "List": { "requestType": "ListSnapshotsRequest", "responseType": "SnapshotList", 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 85658d589f4..9878905a9d2 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 @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/accelerator_types.list.js b/packages/google-cloud-compute/samples/generated/v1/accelerator_types.list.js index 2ecc12d2559..c395d3fd1c1 100644 --- a/packages/google-cloud-compute/samples/generated/v1/accelerator_types.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/accelerator_types.list.js @@ -21,7 +21,7 @@ function main(project, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** 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 48576ff8c62..28b3b1b2cab 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 @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/addresses.list.js b/packages/google-cloud-compute/samples/generated/v1/addresses.list.js index 916ec7e7dac..b3b24dc56f1 100644 --- a/packages/google-cloud-compute/samples/generated/v1/addresses.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/addresses.list.js @@ -21,7 +21,7 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** 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 f7d810b4f93..9beb67a390d 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 @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/autoscalers.list.js b/packages/google-cloud-compute/samples/generated/v1/autoscalers.list.js index 58fca2136b8..c4b16406b30 100644 --- a/packages/google-cloud-compute/samples/generated/v1/autoscalers.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/autoscalers.list.js @@ -21,7 +21,7 @@ function main(project, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/backend_buckets.list.js b/packages/google-cloud-compute/samples/generated/v1/backend_buckets.list.js index cc3f54a360a..5c63b5d9b76 100644 --- a/packages/google-cloud-compute/samples/generated/v1/backend_buckets.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/backend_buckets.list.js @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** 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 new file mode 100644 index 00000000000..68d6ebc10bb --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/backend_buckets.set_edge_security_policy.js @@ -0,0 +1,67 @@ +// Copyright 2021 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 +// +// http://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. + + +'use strict'; + +function main(backendBucket, project, securityPolicyReferenceResource) { + // [START compute_v1_generated_BackendBuckets_SetEdgeSecurityPolicy_async] + /** + * 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. + */ + // const backendBucket = '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 body resource for this request + */ + // const securityPolicyReferenceResource = {} + + // Imports the Compute library + const {BackendBucketsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new BackendBucketsClient(); + + async function callSetEdgeSecurityPolicy() { + // Construct request + const request = { + backendBucket, + project, + securityPolicyReferenceResource, + }; + + // Run request + const response = await computeClient.setEdgeSecurityPolicy(request); + console.log(response); + } + + callSetEdgeSecurityPolicy(); + // [END compute_v1_generated_BackendBuckets_SetEdgeSecurityPolicy_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/backend_services.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/backend_services.aggregated_list.js index 340bf97d1cc..80154c7926c 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 @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/backend_services.list.js b/packages/google-cloud-compute/samples/generated/v1/backend_services.list.js index 011c976aaca..f9a9c37990b 100644 --- a/packages/google-cloud-compute/samples/generated/v1/backend_services.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/backend_services.list.js @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/backend_services.set_edge_security_policy.js b/packages/google-cloud-compute/samples/generated/v1/backend_services.set_edge_security_policy.js new file mode 100644 index 00000000000..a033fe9a8a4 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/backend_services.set_edge_security_policy.js @@ -0,0 +1,67 @@ +// Copyright 2021 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 +// +// http://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. + + +'use strict'; + +function main(backendService, project, securityPolicyReferenceResource) { + // [START compute_v1_generated_BackendServices_SetEdgeSecurityPolicy_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Name of the BackendService resource to which the edge security policy should be set. The name should conform to RFC1035. + */ + // const backendService = '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 body resource for this request + */ + // const securityPolicyReferenceResource = {} + + // Imports the Compute library + const {BackendServicesClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new BackendServicesClient(); + + async function callSetEdgeSecurityPolicy() { + // Construct request + const request = { + backendService, + project, + securityPolicyReferenceResource, + }; + + // Run request + const response = await computeClient.setEdgeSecurityPolicy(request); + console.log(response); + } + + callSetEdgeSecurityPolicy(); + // [END compute_v1_generated_BackendServices_SetEdgeSecurityPolicy_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/disk_types.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/disk_types.aggregated_list.js index 501fece3369..38a4b96c99d 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 @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/disk_types.list.js b/packages/google-cloud-compute/samples/generated/v1/disk_types.list.js index 3f9936d5e3e..a127c591d62 100644 --- a/packages/google-cloud-compute/samples/generated/v1/disk_types.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/disk_types.list.js @@ -21,7 +21,7 @@ function main(project, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** 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 cc6cc4b5147..8c15e9bf645 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 @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/disks.list.js b/packages/google-cloud-compute/samples/generated/v1/disks.list.js index 14511911e05..15ed12ed546 100644 --- a/packages/google-cloud-compute/samples/generated/v1/disks.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/disks.list.js @@ -21,7 +21,7 @@ function main(project, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/external_vpn_gateways.list.js b/packages/google-cloud-compute/samples/generated/v1/external_vpn_gateways.list.js index 2c56c1def8b..1ae613c72fa 100644 --- a/packages/google-cloud-compute/samples/generated/v1/external_vpn_gateways.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/external_vpn_gateways.list.js @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/firewall_policies.insert.js b/packages/google-cloud-compute/samples/generated/v1/firewall_policies.insert.js index 6cc92275ac2..a375dc559d9 100644 --- a/packages/google-cloud-compute/samples/generated/v1/firewall_policies.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1/firewall_policies.insert.js @@ -15,7 +15,7 @@ 'use strict'; -function main(firewallPolicyResource, parentId) { +function main(firewallPolicyResource) { // [START compute_v1_generated_FirewallPolicies_Insert_async] /** * TODO(developer): Uncomment these variables before running the sample. @@ -43,7 +43,6 @@ function main(firewallPolicyResource, parentId) { // Construct request const request = { firewallPolicyResource, - parentId, }; // Run request diff --git a/packages/google-cloud-compute/samples/generated/v1/firewall_policies.list.js b/packages/google-cloud-compute/samples/generated/v1/firewall_policies.list.js index 8b1471f8880..52675fae9b0 100644 --- a/packages/google-cloud-compute/samples/generated/v1/firewall_policies.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/firewall_policies.list.js @@ -21,7 +21,7 @@ function main() { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/firewall_policies.move.js b/packages/google-cloud-compute/samples/generated/v1/firewall_policies.move.js index df3951675fe..9192a0c4fe0 100644 --- a/packages/google-cloud-compute/samples/generated/v1/firewall_policies.move.js +++ b/packages/google-cloud-compute/samples/generated/v1/firewall_policies.move.js @@ -15,7 +15,7 @@ 'use strict'; -function main(firewallPolicy, parentId) { +function main(firewallPolicy) { // [START compute_v1_generated_FirewallPolicies_Move_async] /** * TODO(developer): Uncomment these variables before running the sample. @@ -43,7 +43,6 @@ function main(firewallPolicy, parentId) { // Construct request const request = { firewallPolicy, - parentId, }; // Run request diff --git a/packages/google-cloud-compute/samples/generated/v1/firewalls.list.js b/packages/google-cloud-compute/samples/generated/v1/firewalls.list.js index f4d731241a0..5dede60ff60 100644 --- a/packages/google-cloud-compute/samples/generated/v1/firewalls.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/firewalls.list.js @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** 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 260a393fa61..b76c58019db 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 @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/forwarding_rules.list.js b/packages/google-cloud-compute/samples/generated/v1/forwarding_rules.list.js index 8e3f97775a9..376d6af5071 100644 --- a/packages/google-cloud-compute/samples/generated/v1/forwarding_rules.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/forwarding_rules.list.js @@ -21,7 +21,7 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/global_addresses.list.js b/packages/google-cloud-compute/samples/generated/v1/global_addresses.list.js index a64e3102668..bb1c885440a 100644 --- a/packages/google-cloud-compute/samples/generated/v1/global_addresses.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/global_addresses.list.js @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/global_forwarding_rules.list.js b/packages/google-cloud-compute/samples/generated/v1/global_forwarding_rules.list.js index 6e04da4ef4f..3a1a83fdc1e 100644 --- a/packages/google-cloud-compute/samples/generated/v1/global_forwarding_rules.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/global_forwarding_rules.list.js @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/global_network_endpoint_groups.list.js b/packages/google-cloud-compute/samples/generated/v1/global_network_endpoint_groups.list.js index d8174ff649e..533c9c628b8 100644 --- a/packages/google-cloud-compute/samples/generated/v1/global_network_endpoint_groups.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/global_network_endpoint_groups.list.js @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/global_network_endpoint_groups.list_network_endpoints.js b/packages/google-cloud-compute/samples/generated/v1/global_network_endpoint_groups.list_network_endpoints.js index 88395b728a2..c8039090bce 100644 --- a/packages/google-cloud-compute/samples/generated/v1/global_network_endpoint_groups.list_network_endpoints.js +++ b/packages/google-cloud-compute/samples/generated/v1/global_network_endpoint_groups.list_network_endpoints.js @@ -21,7 +21,7 @@ function main(networkEndpointGroup, project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** 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 18c04f4d446..1869a3e5153 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 @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/global_operations.list.js b/packages/google-cloud-compute/samples/generated/v1/global_operations.list.js index adb91b6d10f..d147da96f0b 100644 --- a/packages/google-cloud-compute/samples/generated/v1/global_operations.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/global_operations.list.js @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/global_organization_operations.list.js b/packages/google-cloud-compute/samples/generated/v1/global_organization_operations.list.js index 2c66913b427..2b05a0bfdc5 100644 --- a/packages/google-cloud-compute/samples/generated/v1/global_organization_operations.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/global_organization_operations.list.js @@ -21,7 +21,7 @@ function main() { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/global_public_delegated_prefixes.delete.js b/packages/google-cloud-compute/samples/generated/v1/global_public_delegated_prefixes.delete.js index 8ad6af77dc8..6a7349efad1 100644 --- a/packages/google-cloud-compute/samples/generated/v1/global_public_delegated_prefixes.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1/global_public_delegated_prefixes.delete.js @@ -29,7 +29,7 @@ function main(project, publicDelegatedPrefix) { */ // const publicDelegatedPrefix = 'abc123' /** - * 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). end_interface: MixerMutationRequestBuilder + * 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' diff --git a/packages/google-cloud-compute/samples/generated/v1/global_public_delegated_prefixes.insert.js b/packages/google-cloud-compute/samples/generated/v1/global_public_delegated_prefixes.insert.js index f4105c6de0d..20d192d3fa9 100644 --- a/packages/google-cloud-compute/samples/generated/v1/global_public_delegated_prefixes.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1/global_public_delegated_prefixes.insert.js @@ -29,7 +29,7 @@ function main(project, publicDelegatedPrefixResource) { */ // const publicDelegatedPrefixResource = {} /** - * 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). end_interface: MixerMutationRequestBuilder + * 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' diff --git a/packages/google-cloud-compute/samples/generated/v1/global_public_delegated_prefixes.list.js b/packages/google-cloud-compute/samples/generated/v1/global_public_delegated_prefixes.list.js index 516dba88e32..494977b034b 100644 --- a/packages/google-cloud-compute/samples/generated/v1/global_public_delegated_prefixes.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/global_public_delegated_prefixes.list.js @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/global_public_delegated_prefixes.patch.js b/packages/google-cloud-compute/samples/generated/v1/global_public_delegated_prefixes.patch.js index b4fe89792c3..66251175646 100644 --- a/packages/google-cloud-compute/samples/generated/v1/global_public_delegated_prefixes.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1/global_public_delegated_prefixes.patch.js @@ -33,7 +33,7 @@ function main(project, publicDelegatedPrefix, publicDelegatedPrefixResource) { */ // const publicDelegatedPrefixResource = {} /** - * 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). end_interface: MixerMutationRequestBuilder + * 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' 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 5482d0534ba..fef618691a9 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 @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/health_checks.list.js b/packages/google-cloud-compute/samples/generated/v1/health_checks.list.js index 991c3b8514b..b2f0877bd28 100644 --- a/packages/google-cloud-compute/samples/generated/v1/health_checks.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/health_checks.list.js @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/images.list.js b/packages/google-cloud-compute/samples/generated/v1/images.list.js index f4b0f479f99..a334e56a309 100644 --- a/packages/google-cloud-compute/samples/generated/v1/images.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/images.list.js @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** 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 3f9a16e42f7..681201a8e2d 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 @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/instance_group_managers.list.js b/packages/google-cloud-compute/samples/generated/v1/instance_group_managers.list.js index 8d04a45c5e5..c17313e0ff6 100644 --- a/packages/google-cloud-compute/samples/generated/v1/instance_group_managers.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/instance_group_managers.list.js @@ -21,7 +21,7 @@ function main(project, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/instance_group_managers.list_errors.js b/packages/google-cloud-compute/samples/generated/v1/instance_group_managers.list_errors.js index 1230262eb13..5fb8a1f1f5e 100644 --- a/packages/google-cloud-compute/samples/generated/v1/instance_group_managers.list_errors.js +++ b/packages/google-cloud-compute/samples/generated/v1/instance_group_managers.list_errors.js @@ -21,7 +21,7 @@ function main(instanceGroupManager, project, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/instance_group_managers.list_managed_instances.js b/packages/google-cloud-compute/samples/generated/v1/instance_group_managers.list_managed_instances.js index fe1c7e60526..8789d405668 100644 --- a/packages/google-cloud-compute/samples/generated/v1/instance_group_managers.list_managed_instances.js +++ b/packages/google-cloud-compute/samples/generated/v1/instance_group_managers.list_managed_instances.js @@ -21,7 +21,7 @@ function main(instanceGroupManager, project, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/instance_group_managers.list_per_instance_configs.js b/packages/google-cloud-compute/samples/generated/v1/instance_group_managers.list_per_instance_configs.js index 509092448b5..9ce2e5fc0e7 100644 --- a/packages/google-cloud-compute/samples/generated/v1/instance_group_managers.list_per_instance_configs.js +++ b/packages/google-cloud-compute/samples/generated/v1/instance_group_managers.list_per_instance_configs.js @@ -21,7 +21,7 @@ function main(instanceGroupManager, project, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** 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 35dd5c35429..7ed7ba664fb 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 @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/instance_groups.list.js b/packages/google-cloud-compute/samples/generated/v1/instance_groups.list.js index af12bd587ec..00582e0d34f 100644 --- a/packages/google-cloud-compute/samples/generated/v1/instance_groups.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/instance_groups.list.js @@ -21,7 +21,7 @@ function main(project, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/instance_groups.list_instances.js b/packages/google-cloud-compute/samples/generated/v1/instance_groups.list_instances.js index eabd94846c9..73795dafe7d 100644 --- a/packages/google-cloud-compute/samples/generated/v1/instance_groups.list_instances.js +++ b/packages/google-cloud-compute/samples/generated/v1/instance_groups.list_instances.js @@ -21,7 +21,7 @@ function main(instanceGroup, instanceGroupsListInstancesRequestResource, project * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/instance_templates.list.js b/packages/google-cloud-compute/samples/generated/v1/instance_templates.list.js index d112a6efe8c..92eaf049376 100644 --- a/packages/google-cloud-compute/samples/generated/v1/instance_templates.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/instance_templates.list.js @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** 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 75517a18d28..7960e1d03f5 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 @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/instances.insert.js b/packages/google-cloud-compute/samples/generated/v1/instances.insert.js index 8d09ff4857b..90c65511d4d 100644 --- a/packages/google-cloud-compute/samples/generated/v1/instances.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1/instances.insert.js @@ -36,6 +36,10 @@ function main(instanceResource, project, zone) { * Specifies instance template to create the instance. This field is optional. It can be a full or partial URL. For example, the following are all valid URLs to an instance template: - https://www.googleapis.com/compute/v1/projects/project /global/instanceTemplates/instanceTemplate - projects/project/global/instanceTemplates/instanceTemplate - global/instanceTemplates/instanceTemplate */ // const sourceInstanceTemplate = 'abc123' + /** + * Specifies the machine image to use to create the instance. This field is optional. It can be a full or partial URL. For example, the following are all valid URLs to a machine image: - https://www.googleapis.com/compute/v1/projects/project/global/global /machineImages/machineImage - projects/project/global/global/machineImages/machineImage - global/machineImages/machineImage + */ + // const sourceMachineImage = 'abc123' /** * The name of the zone for this request. */ diff --git a/packages/google-cloud-compute/samples/generated/v1/instances.list.js b/packages/google-cloud-compute/samples/generated/v1/instances.list.js index f0ed75fa798..a0f004c6299 100644 --- a/packages/google-cloud-compute/samples/generated/v1/instances.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/instances.list.js @@ -21,7 +21,7 @@ function main(project, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/instances.list_referrers.js b/packages/google-cloud-compute/samples/generated/v1/instances.list_referrers.js index e4da4d39055..04ab0f742b5 100644 --- a/packages/google-cloud-compute/samples/generated/v1/instances.list_referrers.js +++ b/packages/google-cloud-compute/samples/generated/v1/instances.list_referrers.js @@ -21,7 +21,7 @@ function main(instance, project, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/instances.resume.js b/packages/google-cloud-compute/samples/generated/v1/instances.resume.js new file mode 100644 index 00000000000..2a7e434b49c --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/instances.resume.js @@ -0,0 +1,67 @@ +// Copyright 2021 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 +// +// http://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. + + +'use strict'; + +function main(instance, project, zone) { + // [START compute_v1_generated_Instances_Resume_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Name of the instance resource to resume. + */ + // 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 callResume() { + // Construct request + const request = { + instance, + project, + zone, + }; + + // Run request + const response = await computeClient.resume(request); + console.log(response); + } + + callResume(); + // [END compute_v1_generated_Instances_Resume_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.suspend.js b/packages/google-cloud-compute/samples/generated/v1/instances.suspend.js new file mode 100644 index 00000000000..7ed0c295f98 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/instances.suspend.js @@ -0,0 +1,67 @@ +// Copyright 2021 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 +// +// http://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. + + +'use strict'; + +function main(instance, project, zone) { + // [START compute_v1_generated_Instances_Suspend_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Name of the instance resource to suspend. + */ + // 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 callSuspend() { + // Construct request + const request = { + instance, + project, + zone, + }; + + // Run request + const response = await computeClient.suspend(request); + console.log(response); + } + + callSuspend(); + // [END compute_v1_generated_Instances_Suspend_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/interconnect_attachments.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/interconnect_attachments.aggregated_list.js index e03c8e2ce5c..a3ab9a1d7fb 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 @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/interconnect_attachments.list.js b/packages/google-cloud-compute/samples/generated/v1/interconnect_attachments.list.js index f1ccf23e35d..c90fed1f93e 100644 --- a/packages/google-cloud-compute/samples/generated/v1/interconnect_attachments.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/interconnect_attachments.list.js @@ -21,7 +21,7 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/interconnect_locations.list.js b/packages/google-cloud-compute/samples/generated/v1/interconnect_locations.list.js index 7c74b1a98b4..9b482ab85d9 100644 --- a/packages/google-cloud-compute/samples/generated/v1/interconnect_locations.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/interconnect_locations.list.js @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/interconnects.list.js b/packages/google-cloud-compute/samples/generated/v1/interconnects.list.js index f35d9e34e97..5f6442a0855 100644 --- a/packages/google-cloud-compute/samples/generated/v1/interconnects.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/interconnects.list.js @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/licenses.list.js b/packages/google-cloud-compute/samples/generated/v1/licenses.list.js index 243f54454a3..78ff1d2c54e 100644 --- a/packages/google-cloud-compute/samples/generated/v1/licenses.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/licenses.list.js @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/machine_images.delete.js b/packages/google-cloud-compute/samples/generated/v1/machine_images.delete.js new file mode 100644 index 00000000000..86a87be2809 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/machine_images.delete.js @@ -0,0 +1,62 @@ +// Copyright 2021 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 +// +// http://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. + + +'use strict'; + +function main(machineImage, project) { + // [START compute_v1_generated_MachineImages_Delete_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * The name of the machine image to delete. + */ + // const machineImage = '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' + + // Imports the Compute library + const {MachineImagesClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new MachineImagesClient(); + + async function callDelete() { + // Construct request + const request = { + machineImage, + project, + }; + + // Run request + const response = await computeClient.delete(request); + console.log(response); + } + + callDelete(); + // [END compute_v1_generated_MachineImages_Delete_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/machine_images.get.js b/packages/google-cloud-compute/samples/generated/v1/machine_images.get.js new file mode 100644 index 00000000000..5f4dd7890ba --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/machine_images.get.js @@ -0,0 +1,58 @@ +// Copyright 2021 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 +// +// http://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. + + +'use strict'; + +function main(machineImage, project) { + // [START compute_v1_generated_MachineImages_Get_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * The name of the machine image. + */ + // const machineImage = 'abc123' + /** + * Project ID for this request. + */ + // const project = 'my-project' + + // Imports the Compute library + const {MachineImagesClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new MachineImagesClient(); + + async function callGet() { + // Construct request + const request = { + machineImage, + project, + }; + + // Run request + const response = await computeClient.get(request); + console.log(response); + } + + callGet(); + // [END compute_v1_generated_MachineImages_Get_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/machine_images.get_iam_policy.js b/packages/google-cloud-compute/samples/generated/v1/machine_images.get_iam_policy.js new file mode 100644 index 00000000000..91fe66e6522 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/machine_images.get_iam_policy.js @@ -0,0 +1,62 @@ +// Copyright 2021 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 +// +// http://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. + + +'use strict'; + +function main(project, resource) { + // [START compute_v1_generated_MachineImages_GetIamPolicy_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Requested IAM Policy version. + */ + // const optionsRequestedPolicyVersion = 1234 + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * Name or id of the resource for this request. + */ + // const resource = 'abc123' + + // Imports the Compute library + const {MachineImagesClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new MachineImagesClient(); + + async function callGetIamPolicy() { + // Construct request + const request = { + project, + resource, + }; + + // Run request + const response = await computeClient.getIamPolicy(request); + console.log(response); + } + + callGetIamPolicy(); + // [END compute_v1_generated_MachineImages_GetIamPolicy_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/machine_images.insert.js b/packages/google-cloud-compute/samples/generated/v1/machine_images.insert.js new file mode 100644 index 00000000000..310c0c8355e --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/machine_images.insert.js @@ -0,0 +1,66 @@ +// Copyright 2021 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 +// +// http://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. + + +'use strict'; + +function main(machineImageResource, project) { + // [START compute_v1_generated_MachineImages_Insert_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * The body resource for this request + */ + // const machineImageResource = {} + /** + * 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' + /** + * Required. Source instance that is used to create the machine image from. + */ + // const sourceInstance = 'abc123' + + // Imports the Compute library + const {MachineImagesClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new MachineImagesClient(); + + async function callInsert() { + // Construct request + const request = { + machineImageResource, + project, + }; + + // Run request + const response = await computeClient.insert(request); + console.log(response); + } + + callInsert(); + // [END compute_v1_generated_MachineImages_Insert_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/machine_images.list.js b/packages/google-cloud-compute/samples/generated/v1/machine_images.list.js new file mode 100644 index 00000000000..a085d4b7cb9 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/machine_images.list.js @@ -0,0 +1,75 @@ +// Copyright 2021 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 +// +// http://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. + + +'use strict'; + +function main(project) { + // [START compute_v1_generated_MachineImages_List_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` + */ + // 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' + /** + * 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 {MachineImagesClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new MachineImagesClient(); + + async function callList() { + // Construct request + const request = { + project, + }; + + // Run request + const iterable = await computeClient.listAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callList(); + // [END compute_v1_generated_MachineImages_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/machine_images.set_iam_policy.js b/packages/google-cloud-compute/samples/generated/v1/machine_images.set_iam_policy.js new file mode 100644 index 00000000000..c9df0e528d3 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/machine_images.set_iam_policy.js @@ -0,0 +1,63 @@ +// Copyright 2021 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 +// +// http://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. + + +'use strict'; + +function main(globalSetPolicyRequestResource, project, resource) { + // [START compute_v1_generated_MachineImages_SetIamPolicy_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * The body resource for this request + */ + // const globalSetPolicyRequestResource = {} + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * Name or id of the resource for this request. + */ + // const resource = 'abc123' + + // Imports the Compute library + const {MachineImagesClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new MachineImagesClient(); + + async function callSetIamPolicy() { + // Construct request + const request = { + globalSetPolicyRequestResource, + project, + resource, + }; + + // Run request + const response = await computeClient.setIamPolicy(request); + console.log(response); + } + + callSetIamPolicy(); + // [END compute_v1_generated_MachineImages_SetIamPolicy_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/machine_images.test_iam_permissions.js b/packages/google-cloud-compute/samples/generated/v1/machine_images.test_iam_permissions.js new file mode 100644 index 00000000000..9fc3b3287ad --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/machine_images.test_iam_permissions.js @@ -0,0 +1,63 @@ +// Copyright 2021 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 +// +// http://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. + + +'use strict'; + +function main(project, resource, testPermissionsRequestResource) { + // [START compute_v1_generated_MachineImages_TestIamPermissions_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * Name or id of the resource for this request. + */ + // const resource = 'abc123' + /** + * The body resource for this request + */ + // const testPermissionsRequestResource = {} + + // Imports the Compute library + const {MachineImagesClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new MachineImagesClient(); + + async function callTestIamPermissions() { + // Construct request + const request = { + project, + resource, + testPermissionsRequestResource, + }; + + // Run request + const response = await computeClient.testIamPermissions(request); + console.log(response); + } + + callTestIamPermissions(); + // [END compute_v1_generated_MachineImages_TestIamPermissions_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/machine_types.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/machine_types.aggregated_list.js index a555412d8c0..d9a7d764866 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 @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/machine_types.list.js b/packages/google-cloud-compute/samples/generated/v1/machine_types.list.js index baa3a981398..ee9af75dfc2 100644 --- a/packages/google-cloud-compute/samples/generated/v1/machine_types.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/machine_types.list.js @@ -21,7 +21,7 @@ function main(project, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** 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 722ee77fe72..6db4e69ab14 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 @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/network_endpoint_groups.list.js b/packages/google-cloud-compute/samples/generated/v1/network_endpoint_groups.list.js index 0685cb3f48b..c6a7b143713 100644 --- a/packages/google-cloud-compute/samples/generated/v1/network_endpoint_groups.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/network_endpoint_groups.list.js @@ -21,7 +21,7 @@ function main(project, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/network_endpoint_groups.list_network_endpoints.js b/packages/google-cloud-compute/samples/generated/v1/network_endpoint_groups.list_network_endpoints.js index e7aed403eb3..67865865b65 100644 --- a/packages/google-cloud-compute/samples/generated/v1/network_endpoint_groups.list_network_endpoints.js +++ b/packages/google-cloud-compute/samples/generated/v1/network_endpoint_groups.list_network_endpoints.js @@ -21,7 +21,7 @@ function main(networkEndpointGroup, networkEndpointGroupsListEndpointsRequestRes * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/networks.list.js b/packages/google-cloud-compute/samples/generated/v1/networks.list.js index ebee57d99a2..1b3fb1c46bf 100644 --- a/packages/google-cloud-compute/samples/generated/v1/networks.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/networks.list.js @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/networks.list_peering_routes.js b/packages/google-cloud-compute/samples/generated/v1/networks.list_peering_routes.js index dfc4ee6b0b5..5cb5b0cd587 100644 --- a/packages/google-cloud-compute/samples/generated/v1/networks.list_peering_routes.js +++ b/packages/google-cloud-compute/samples/generated/v1/networks.list_peering_routes.js @@ -26,7 +26,7 @@ function main(network, project) { */ // const direction = 'abc123' /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** 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 85d1ac12df3..d5f680c2946 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 @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/node_groups.list.js b/packages/google-cloud-compute/samples/generated/v1/node_groups.list.js index d98e518b0f7..d43249e78e4 100644 --- a/packages/google-cloud-compute/samples/generated/v1/node_groups.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/node_groups.list.js @@ -21,7 +21,7 @@ function main(project, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/node_groups.list_nodes.js b/packages/google-cloud-compute/samples/generated/v1/node_groups.list_nodes.js index ef68634a96a..f1592e4d193 100644 --- a/packages/google-cloud-compute/samples/generated/v1/node_groups.list_nodes.js +++ b/packages/google-cloud-compute/samples/generated/v1/node_groups.list_nodes.js @@ -21,7 +21,7 @@ function main(nodeGroup, project, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** 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 9d2c48b8c8a..bfb221c8995 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 @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/node_templates.list.js b/packages/google-cloud-compute/samples/generated/v1/node_templates.list.js index 104f547012d..60523f04db6 100644 --- a/packages/google-cloud-compute/samples/generated/v1/node_templates.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/node_templates.list.js @@ -21,7 +21,7 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** 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 4f2b8d7eb45..bf4d701e906 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 @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/node_types.list.js b/packages/google-cloud-compute/samples/generated/v1/node_types.list.js index 970988b2496..75dc2282b39 100644 --- a/packages/google-cloud-compute/samples/generated/v1/node_types.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/node_types.list.js @@ -21,7 +21,7 @@ function main(project, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** 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 6c5a4b2b8db..08c706441fc 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 @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/packet_mirrorings.list.js b/packages/google-cloud-compute/samples/generated/v1/packet_mirrorings.list.js index a25ee5fba28..b96e5186363 100644 --- a/packages/google-cloud-compute/samples/generated/v1/packet_mirrorings.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/packet_mirrorings.list.js @@ -21,7 +21,7 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/projects.get_xpn_resources.js b/packages/google-cloud-compute/samples/generated/v1/projects.get_xpn_resources.js index 38b82133255..eb2f14bd9b7 100644 --- a/packages/google-cloud-compute/samples/generated/v1/projects.get_xpn_resources.js +++ b/packages/google-cloud-compute/samples/generated/v1/projects.get_xpn_resources.js @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/projects.list_xpn_hosts.js b/packages/google-cloud-compute/samples/generated/v1/projects.list_xpn_hosts.js index 56110017da4..738f45afac7 100644 --- a/packages/google-cloud-compute/samples/generated/v1/projects.list_xpn_hosts.js +++ b/packages/google-cloud-compute/samples/generated/v1/projects.list_xpn_hosts.js @@ -21,7 +21,7 @@ function main(project, projectsListXpnHostsRequestResource) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/public_advertised_prefixes.delete.js b/packages/google-cloud-compute/samples/generated/v1/public_advertised_prefixes.delete.js index 1c6b0e6de72..5336b1f6a45 100644 --- a/packages/google-cloud-compute/samples/generated/v1/public_advertised_prefixes.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1/public_advertised_prefixes.delete.js @@ -29,7 +29,7 @@ function main(project, publicAdvertisedPrefix) { */ // const publicAdvertisedPrefix = 'abc123' /** - * 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). end_interface: MixerMutationRequestBuilder + * 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' diff --git a/packages/google-cloud-compute/samples/generated/v1/public_advertised_prefixes.insert.js b/packages/google-cloud-compute/samples/generated/v1/public_advertised_prefixes.insert.js index 2ba133dc545..f3cfcec220c 100644 --- a/packages/google-cloud-compute/samples/generated/v1/public_advertised_prefixes.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1/public_advertised_prefixes.insert.js @@ -29,7 +29,7 @@ function main(project, publicAdvertisedPrefixResource) { */ // const publicAdvertisedPrefixResource = {} /** - * 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). end_interface: MixerMutationRequestBuilder + * 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' diff --git a/packages/google-cloud-compute/samples/generated/v1/public_advertised_prefixes.list.js b/packages/google-cloud-compute/samples/generated/v1/public_advertised_prefixes.list.js index 04a6b8789de..0331ac6b1c3 100644 --- a/packages/google-cloud-compute/samples/generated/v1/public_advertised_prefixes.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/public_advertised_prefixes.list.js @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/public_advertised_prefixes.patch.js b/packages/google-cloud-compute/samples/generated/v1/public_advertised_prefixes.patch.js index 85c4dd55eec..f939f19aa20 100644 --- a/packages/google-cloud-compute/samples/generated/v1/public_advertised_prefixes.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1/public_advertised_prefixes.patch.js @@ -33,7 +33,7 @@ function main(project, publicAdvertisedPrefix, publicAdvertisedPrefixResource) { */ // const publicAdvertisedPrefixResource = {} /** - * 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). end_interface: MixerMutationRequestBuilder + * 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' 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 dd250b74626..76d9d420175 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 @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/public_delegated_prefixes.delete.js b/packages/google-cloud-compute/samples/generated/v1/public_delegated_prefixes.delete.js index 4f79fea2e5f..4d658224967 100644 --- a/packages/google-cloud-compute/samples/generated/v1/public_delegated_prefixes.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1/public_delegated_prefixes.delete.js @@ -33,7 +33,7 @@ function main(project, publicDelegatedPrefix, region) { */ // const region = 'us-central1' /** - * 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). end_interface: MixerMutationRequestBuilder + * 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' diff --git a/packages/google-cloud-compute/samples/generated/v1/public_delegated_prefixes.insert.js b/packages/google-cloud-compute/samples/generated/v1/public_delegated_prefixes.insert.js index 30a70c3e5a6..24882e244a0 100644 --- a/packages/google-cloud-compute/samples/generated/v1/public_delegated_prefixes.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1/public_delegated_prefixes.insert.js @@ -33,7 +33,7 @@ function main(project, publicDelegatedPrefixResource, region) { */ // const region = 'us-central1' /** - * 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). end_interface: MixerMutationRequestBuilder + * 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' diff --git a/packages/google-cloud-compute/samples/generated/v1/public_delegated_prefixes.list.js b/packages/google-cloud-compute/samples/generated/v1/public_delegated_prefixes.list.js index ef9bfe15b04..4976f8536fd 100644 --- a/packages/google-cloud-compute/samples/generated/v1/public_delegated_prefixes.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/public_delegated_prefixes.list.js @@ -21,7 +21,7 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/public_delegated_prefixes.patch.js b/packages/google-cloud-compute/samples/generated/v1/public_delegated_prefixes.patch.js index 24a7b5d9136..c57f805fb56 100644 --- a/packages/google-cloud-compute/samples/generated/v1/public_delegated_prefixes.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1/public_delegated_prefixes.patch.js @@ -37,7 +37,7 @@ function main(project, publicDelegatedPrefix, publicDelegatedPrefixResource, reg */ // const region = 'us-central1' /** - * 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). end_interface: MixerMutationRequestBuilder + * 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' diff --git a/packages/google-cloud-compute/samples/generated/v1/region_autoscalers.list.js b/packages/google-cloud-compute/samples/generated/v1/region_autoscalers.list.js index c9876065f2e..af7731dbbe6 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_autoscalers.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_autoscalers.list.js @@ -21,7 +21,7 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/region_backend_services.list.js b/packages/google-cloud-compute/samples/generated/v1/region_backend_services.list.js index b8f33636649..870ee864420 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_backend_services.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_backend_services.list.js @@ -21,7 +21,7 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** 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 877a744d6c0..5c6bb49b034 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 @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/region_commitments.list.js b/packages/google-cloud-compute/samples/generated/v1/region_commitments.list.js index 9a0a4ec6c4a..400676d26f4 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_commitments.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_commitments.list.js @@ -21,7 +21,7 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/region_commitments.update.js b/packages/google-cloud-compute/samples/generated/v1/region_commitments.update.js new file mode 100644 index 00000000000..28283180dbe --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/region_commitments.update.js @@ -0,0 +1,79 @@ +// Copyright 2021 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 +// +// http://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. + + +'use strict'; + +function main(commitment, commitmentResource, project, region) { + // [START compute_v1_generated_RegionCommitments_Update_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Name of the commitment for which auto renew is being updated. + */ + // const commitment = 'abc123' + /** + * The body resource for this request + */ + // const commitmentResource = {} + /** + */ + // const paths = 'abc123' + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * Name of the region for this request. + */ + // const region = 'us-central1' + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + */ + // const requestId = 'abc123' + /** + * update_mask indicates fields to be updated as part of this request. + */ + // const updateMask = 'abc123' + + // Imports the Compute library + const {RegionCommitmentsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new RegionCommitmentsClient(); + + async function callUpdate() { + // Construct request + const request = { + commitment, + commitmentResource, + project, + region, + }; + + // Run request + const response = await computeClient.update(request); + console.log(response); + } + + callUpdate(); + // [END compute_v1_generated_RegionCommitments_Update_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/region_disk_types.list.js b/packages/google-cloud-compute/samples/generated/v1/region_disk_types.list.js index 8ced0912a52..e4b251346f2 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_disk_types.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_disk_types.list.js @@ -21,7 +21,7 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/region_disks.list.js b/packages/google-cloud-compute/samples/generated/v1/region_disks.list.js index 929b60cbe32..433e1d89bf5 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_disks.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_disks.list.js @@ -21,7 +21,7 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/region_health_check_services.list.js b/packages/google-cloud-compute/samples/generated/v1/region_health_check_services.list.js index 88a38c052d3..3f9e51e93e0 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_health_check_services.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_health_check_services.list.js @@ -21,7 +21,7 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/region_health_checks.list.js b/packages/google-cloud-compute/samples/generated/v1/region_health_checks.list.js index 24121098673..903ae97d871 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_health_checks.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_health_checks.list.js @@ -21,7 +21,7 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/region_instance_group_managers.list.js b/packages/google-cloud-compute/samples/generated/v1/region_instance_group_managers.list.js index f17c9038e0e..0cd481f0509 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_instance_group_managers.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_instance_group_managers.list.js @@ -21,7 +21,7 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/region_instance_group_managers.list_errors.js b/packages/google-cloud-compute/samples/generated/v1/region_instance_group_managers.list_errors.js index 8ab36830869..2d8e7e9b80e 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_instance_group_managers.list_errors.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_instance_group_managers.list_errors.js @@ -21,7 +21,7 @@ function main(instanceGroupManager, project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/region_instance_group_managers.list_managed_instances.js b/packages/google-cloud-compute/samples/generated/v1/region_instance_group_managers.list_managed_instances.js index 712c21c261b..51fe01be986 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_instance_group_managers.list_managed_instances.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_instance_group_managers.list_managed_instances.js @@ -21,7 +21,7 @@ function main(instanceGroupManager, project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/region_instance_group_managers.list_per_instance_configs.js b/packages/google-cloud-compute/samples/generated/v1/region_instance_group_managers.list_per_instance_configs.js index b44c3095b90..7c07c26bdc0 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_instance_group_managers.list_per_instance_configs.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_instance_group_managers.list_per_instance_configs.js @@ -21,7 +21,7 @@ function main(instanceGroupManager, project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/region_instance_groups.list.js b/packages/google-cloud-compute/samples/generated/v1/region_instance_groups.list.js index aa60f828944..19602510b80 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_instance_groups.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_instance_groups.list.js @@ -21,7 +21,7 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/region_instance_groups.list_instances.js b/packages/google-cloud-compute/samples/generated/v1/region_instance_groups.list_instances.js index 60e4d1968c5..2f80c3ccac8 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_instance_groups.list_instances.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_instance_groups.list_instances.js @@ -21,7 +21,7 @@ function main(instanceGroup, project, region, regionInstanceGroupsListInstancesR * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/region_network_endpoint_groups.list.js b/packages/google-cloud-compute/samples/generated/v1/region_network_endpoint_groups.list.js index 09ddafae339..7e3b38df703 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_network_endpoint_groups.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_network_endpoint_groups.list.js @@ -21,7 +21,7 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/region_notification_endpoints.delete.js b/packages/google-cloud-compute/samples/generated/v1/region_notification_endpoints.delete.js index 4d3d0b94ade..a092c625d30 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_notification_endpoints.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_notification_endpoints.delete.js @@ -33,7 +33,7 @@ function main(notificationEndpoint, project, region) { */ // const region = 'us-central1' /** - * 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). end_interface: MixerMutationRequestBuilder + * 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' diff --git a/packages/google-cloud-compute/samples/generated/v1/region_notification_endpoints.insert.js b/packages/google-cloud-compute/samples/generated/v1/region_notification_endpoints.insert.js index 439552a2752..bbf2545b3da 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_notification_endpoints.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_notification_endpoints.insert.js @@ -33,7 +33,7 @@ function main(notificationEndpointResource, project, region) { */ // const region = 'us-central1' /** - * 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). end_interface: MixerMutationRequestBuilder + * 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' diff --git a/packages/google-cloud-compute/samples/generated/v1/region_notification_endpoints.list.js b/packages/google-cloud-compute/samples/generated/v1/region_notification_endpoints.list.js index a65db470ab1..97925ca9d9e 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_notification_endpoints.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_notification_endpoints.list.js @@ -21,7 +21,7 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/region_operations.list.js b/packages/google-cloud-compute/samples/generated/v1/region_operations.list.js index 88d516ea78f..44b3d529e59 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_operations.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_operations.list.js @@ -21,7 +21,7 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/region_ssl_certificates.delete.js b/packages/google-cloud-compute/samples/generated/v1/region_ssl_certificates.delete.js index ad5c7da48fd..fbacf6eb867 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_ssl_certificates.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_ssl_certificates.delete.js @@ -29,7 +29,7 @@ function main(project, region, sslCertificate) { */ // const region = 'us-central1' /** - * 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). end_interface: MixerMutationRequestBuilder + * 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' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/region_ssl_certificates.insert.js b/packages/google-cloud-compute/samples/generated/v1/region_ssl_certificates.insert.js index c714616929d..563a9c9d2b9 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_ssl_certificates.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_ssl_certificates.insert.js @@ -29,7 +29,7 @@ function main(project, region, sslCertificateResource) { */ // const region = 'us-central1' /** - * 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). end_interface: MixerMutationRequestBuilder + * 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' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/region_ssl_certificates.list.js b/packages/google-cloud-compute/samples/generated/v1/region_ssl_certificates.list.js index 0268b43a912..53d872018e8 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_ssl_certificates.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_ssl_certificates.list.js @@ -21,7 +21,7 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/region_target_http_proxies.list.js b/packages/google-cloud-compute/samples/generated/v1/region_target_http_proxies.list.js index 4e6e3032320..ebebf4a1974 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_target_http_proxies.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_target_http_proxies.list.js @@ -21,7 +21,7 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/region_target_https_proxies.delete.js b/packages/google-cloud-compute/samples/generated/v1/region_target_https_proxies.delete.js index af6c6607892..20232305169 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_target_https_proxies.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_target_https_proxies.delete.js @@ -29,7 +29,7 @@ function main(project, region, targetHttpsProxy) { */ // const region = 'us-central1' /** - * 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). end_interface: MixerMutationRequestBuilder + * 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' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/region_target_https_proxies.insert.js b/packages/google-cloud-compute/samples/generated/v1/region_target_https_proxies.insert.js index 368df4b9882..ba2b61b353e 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_target_https_proxies.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_target_https_proxies.insert.js @@ -29,7 +29,7 @@ function main(project, region, targetHttpsProxyResource) { */ // const region = 'us-central1' /** - * 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). end_interface: MixerMutationRequestBuilder + * 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' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/region_target_https_proxies.list.js b/packages/google-cloud-compute/samples/generated/v1/region_target_https_proxies.list.js index f7db810a7d0..752857e4c2e 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_target_https_proxies.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_target_https_proxies.list.js @@ -21,7 +21,7 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/region_target_https_proxies.set_ssl_certificates.js b/packages/google-cloud-compute/samples/generated/v1/region_target_https_proxies.set_ssl_certificates.js index e1f96cc8e3b..996ed9f5143 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_target_https_proxies.set_ssl_certificates.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_target_https_proxies.set_ssl_certificates.js @@ -33,7 +33,7 @@ function main(project, region, regionTargetHttpsProxiesSetSslCertificatesRequest */ // const regionTargetHttpsProxiesSetSslCertificatesRequestResource = {} /** - * 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). end_interface: MixerMutationRequestBuilder + * 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' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/region_target_https_proxies.set_url_map.js b/packages/google-cloud-compute/samples/generated/v1/region_target_https_proxies.set_url_map.js index c0cf1a07ced..82a6c157827 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_target_https_proxies.set_url_map.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_target_https_proxies.set_url_map.js @@ -29,7 +29,7 @@ function main(project, region, targetHttpsProxy, urlMapReferenceResource) { */ // const region = 'us-central1' /** - * 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). end_interface: MixerMutationRequestBuilder + * 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' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/region_url_maps.list.js b/packages/google-cloud-compute/samples/generated/v1/region_url_maps.list.js index 2bf90f26e84..4b3b6d9080b 100644 --- a/packages/google-cloud-compute/samples/generated/v1/region_url_maps.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/region_url_maps.list.js @@ -21,7 +21,7 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/regions.list.js b/packages/google-cloud-compute/samples/generated/v1/regions.list.js index 47a912a6d88..4beab5fa9f7 100644 --- a/packages/google-cloud-compute/samples/generated/v1/regions.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/regions.list.js @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** 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 751b0b41645..fe9f62697ee 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 @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/reservations.list.js b/packages/google-cloud-compute/samples/generated/v1/reservations.list.js index 9cb4773ba1a..4deb85addae 100644 --- a/packages/google-cloud-compute/samples/generated/v1/reservations.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/reservations.list.js @@ -21,7 +21,7 @@ function main(project, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/reservations.update.js b/packages/google-cloud-compute/samples/generated/v1/reservations.update.js new file mode 100644 index 00000000000..c6cdba3b724 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/reservations.update.js @@ -0,0 +1,79 @@ +// Copyright 2021 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 +// +// http://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. + + +'use strict'; + +function main(project, reservation, reservationResource, zone) { + // [START compute_v1_generated_Reservations_Update_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + */ + // const paths = 'abc123' + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). + */ + // const requestId = 'abc123' + /** + * Name of the reservation to update. + */ + // const reservation = 'abc123' + /** + * The body resource for this request + */ + // const reservationResource = {} + /** + * Update_mask indicates fields to be updated as part of this request. + */ + // const updateMask = 'abc123' + /** + * Name of the zone for this request. + */ + // const zone = 'abc123' + + // Imports the Compute library + const {ReservationsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new ReservationsClient(); + + async function callUpdate() { + // Construct request + const request = { + project, + reservation, + reservationResource, + zone, + }; + + // Run request + const response = await computeClient.update(request); + console.log(response); + } + + callUpdate(); + // [END compute_v1_generated_Reservations_Update_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/resource_policies.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/resource_policies.aggregated_list.js index d5077ebd4f4..bf5d7d354de 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 @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/resource_policies.list.js b/packages/google-cloud-compute/samples/generated/v1/resource_policies.list.js index 621b23c2029..c6d971e19b6 100644 --- a/packages/google-cloud-compute/samples/generated/v1/resource_policies.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/resource_policies.list.js @@ -21,7 +21,7 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** 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 559f8222b29..44e63b300a5 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 @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/routers.get_nat_mapping_info.js b/packages/google-cloud-compute/samples/generated/v1/routers.get_nat_mapping_info.js index 4a454b9388c..894e3780798 100644 --- a/packages/google-cloud-compute/samples/generated/v1/routers.get_nat_mapping_info.js +++ b/packages/google-cloud-compute/samples/generated/v1/routers.get_nat_mapping_info.js @@ -21,7 +21,7 @@ function main(project, region, router) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/routers.list.js b/packages/google-cloud-compute/samples/generated/v1/routers.list.js index 71ff2183883..5f2d3343ac0 100644 --- a/packages/google-cloud-compute/samples/generated/v1/routers.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/routers.list.js @@ -21,7 +21,7 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/routes.list.js b/packages/google-cloud-compute/samples/generated/v1/routes.list.js index 3dcb8381463..6847521a0e7 100644 --- a/packages/google-cloud-compute/samples/generated/v1/routes.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/routes.list.js @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/security_policies.list.js b/packages/google-cloud-compute/samples/generated/v1/security_policies.list.js index 1a011876d2b..24c3b462aa7 100644 --- a/packages/google-cloud-compute/samples/generated/v1/security_policies.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/security_policies.list.js @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/security_policies.list_preconfigured_expression_sets.js b/packages/google-cloud-compute/samples/generated/v1/security_policies.list_preconfigured_expression_sets.js index 9f016a5a5e6..fa92e9bf0c7 100644 --- a/packages/google-cloud-compute/samples/generated/v1/security_policies.list_preconfigured_expression_sets.js +++ b/packages/google-cloud-compute/samples/generated/v1/security_policies.list_preconfigured_expression_sets.js @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** 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 ce37b4d4f00..33f4a4c385c 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 @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/service_attachments.delete.js b/packages/google-cloud-compute/samples/generated/v1/service_attachments.delete.js index 3c8231ddac6..1baa69e9ab3 100644 --- a/packages/google-cloud-compute/samples/generated/v1/service_attachments.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1/service_attachments.delete.js @@ -29,7 +29,7 @@ function main(project, region, serviceAttachment) { */ // const region = 'us-central1' /** - * 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). end_interface: MixerMutationRequestBuilder + * 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' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/service_attachments.insert.js b/packages/google-cloud-compute/samples/generated/v1/service_attachments.insert.js index 072f6e76f02..6ca7ac7322e 100644 --- a/packages/google-cloud-compute/samples/generated/v1/service_attachments.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1/service_attachments.insert.js @@ -29,7 +29,7 @@ function main(project, region, serviceAttachmentResource) { */ // const region = 'us-central1' /** - * 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). end_interface: MixerMutationRequestBuilder + * 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' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/service_attachments.list.js b/packages/google-cloud-compute/samples/generated/v1/service_attachments.list.js index c82973583cb..7ef0e0f6f3c 100644 --- a/packages/google-cloud-compute/samples/generated/v1/service_attachments.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/service_attachments.list.js @@ -21,7 +21,7 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/service_attachments.patch.js b/packages/google-cloud-compute/samples/generated/v1/service_attachments.patch.js index bf0c3bea80c..e7d8ee3063d 100644 --- a/packages/google-cloud-compute/samples/generated/v1/service_attachments.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1/service_attachments.patch.js @@ -29,7 +29,7 @@ function main(project, region, serviceAttachment, serviceAttachmentResource) { */ // const region = 'us-central1' /** - * 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). end_interface: MixerMutationRequestBuilder + * 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' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/snapshots.insert.js b/packages/google-cloud-compute/samples/generated/v1/snapshots.insert.js new file mode 100644 index 00000000000..35fb8d94f62 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/snapshots.insert.js @@ -0,0 +1,62 @@ +// Copyright 2021 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 +// +// http://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. + + +'use strict'; + +function main(project, snapshotResource) { + // [START compute_v1_generated_Snapshots_Insert_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * 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 body resource for this request + */ + // const snapshotResource = {} + + // Imports the Compute library + const {SnapshotsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new SnapshotsClient(); + + async function callInsert() { + // Construct request + const request = { + project, + snapshotResource, + }; + + // Run request + const response = await computeClient.insert(request); + console.log(response); + } + + callInsert(); + // [END compute_v1_generated_Snapshots_Insert_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/snapshots.list.js b/packages/google-cloud-compute/samples/generated/v1/snapshots.list.js index 5f46aab1243..2e7f19bd41c 100644 --- a/packages/google-cloud-compute/samples/generated/v1/snapshots.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/snapshots.list.js @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** 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 e505e562f4e..41bc60fc49c 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 @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/ssl_certificates.delete.js b/packages/google-cloud-compute/samples/generated/v1/ssl_certificates.delete.js index 2c01321af39..1de1f8b7c94 100644 --- a/packages/google-cloud-compute/samples/generated/v1/ssl_certificates.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1/ssl_certificates.delete.js @@ -25,7 +25,7 @@ function main(project, sslCertificate) { */ // 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). end_interface: MixerMutationRequestBuilder + * 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' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/ssl_certificates.insert.js b/packages/google-cloud-compute/samples/generated/v1/ssl_certificates.insert.js index 4f7362bbecf..57a79c98404 100644 --- a/packages/google-cloud-compute/samples/generated/v1/ssl_certificates.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1/ssl_certificates.insert.js @@ -25,7 +25,7 @@ function main(project, sslCertificateResource) { */ // 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). end_interface: MixerMutationRequestBuilder + * 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' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/ssl_certificates.list.js b/packages/google-cloud-compute/samples/generated/v1/ssl_certificates.list.js index 6480e9a799e..21c34b7aee9 100644 --- a/packages/google-cloud-compute/samples/generated/v1/ssl_certificates.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/ssl_certificates.list.js @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/ssl_policies.list.js b/packages/google-cloud-compute/samples/generated/v1/ssl_policies.list.js index 0b622a91c32..6d4148499a0 100644 --- a/packages/google-cloud-compute/samples/generated/v1/ssl_policies.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/ssl_policies.list.js @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/ssl_policies.list_available_features.js b/packages/google-cloud-compute/samples/generated/v1/ssl_policies.list_available_features.js index fe8574bb4c5..9613ba1d356 100644 --- a/packages/google-cloud-compute/samples/generated/v1/ssl_policies.list_available_features.js +++ b/packages/google-cloud-compute/samples/generated/v1/ssl_policies.list_available_features.js @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** 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 7c4a96ca02f..2bff3aaa4fc 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 @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/subnetworks.list.js b/packages/google-cloud-compute/samples/generated/v1/subnetworks.list.js index 9c70d80ff2d..1811f09744d 100644 --- a/packages/google-cloud-compute/samples/generated/v1/subnetworks.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/subnetworks.list.js @@ -21,7 +21,7 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/subnetworks.list_usable.js b/packages/google-cloud-compute/samples/generated/v1/subnetworks.list_usable.js index af6c1627c00..29d337f1a25 100644 --- a/packages/google-cloud-compute/samples/generated/v1/subnetworks.list_usable.js +++ b/packages/google-cloud-compute/samples/generated/v1/subnetworks.list_usable.js @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/target_grpc_proxies.delete.js b/packages/google-cloud-compute/samples/generated/v1/target_grpc_proxies.delete.js index 82315523498..fda41739f8f 100644 --- a/packages/google-cloud-compute/samples/generated/v1/target_grpc_proxies.delete.js +++ b/packages/google-cloud-compute/samples/generated/v1/target_grpc_proxies.delete.js @@ -25,7 +25,7 @@ function main(project, targetGrpcProxy) { */ // 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). end_interface: MixerMutationRequestBuilder + * 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' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/target_grpc_proxies.insert.js b/packages/google-cloud-compute/samples/generated/v1/target_grpc_proxies.insert.js index b52d1f259fb..030e85ec4ae 100644 --- a/packages/google-cloud-compute/samples/generated/v1/target_grpc_proxies.insert.js +++ b/packages/google-cloud-compute/samples/generated/v1/target_grpc_proxies.insert.js @@ -25,7 +25,7 @@ function main(project, targetGrpcProxyResource) { */ // 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). end_interface: MixerMutationRequestBuilder + * 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' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/target_grpc_proxies.list.js b/packages/google-cloud-compute/samples/generated/v1/target_grpc_proxies.list.js index 09d1d6f47d1..b5ea75d9c35 100644 --- a/packages/google-cloud-compute/samples/generated/v1/target_grpc_proxies.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/target_grpc_proxies.list.js @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/target_grpc_proxies.patch.js b/packages/google-cloud-compute/samples/generated/v1/target_grpc_proxies.patch.js index 6be46ab2c96..097c85dcc39 100644 --- a/packages/google-cloud-compute/samples/generated/v1/target_grpc_proxies.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1/target_grpc_proxies.patch.js @@ -25,7 +25,7 @@ function main(project, targetGrpcProxy, targetGrpcProxyResource) { */ // 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). end_interface: MixerMutationRequestBuilder + * 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' /** 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 bc07f208fb9..0ec2fde6312 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 @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/target_http_proxies.list.js b/packages/google-cloud-compute/samples/generated/v1/target_http_proxies.list.js index 974ac7f2770..10bcf10493d 100644 --- a/packages/google-cloud-compute/samples/generated/v1/target_http_proxies.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/target_http_proxies.list.js @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/target_http_proxies.patch.js b/packages/google-cloud-compute/samples/generated/v1/target_http_proxies.patch.js index 7fcb9a040b8..a751f20f004 100644 --- a/packages/google-cloud-compute/samples/generated/v1/target_http_proxies.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1/target_http_proxies.patch.js @@ -25,7 +25,7 @@ function main(project, targetHttpProxy, targetHttpProxyResource) { */ // 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). end_interface: MixerMutationRequestBuilder + * 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' /** 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 a0dd2f2573a..ae98ccc6887 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 @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/target_https_proxies.list.js b/packages/google-cloud-compute/samples/generated/v1/target_https_proxies.list.js index 48f1d03e371..f7cb84b7f71 100644 --- a/packages/google-cloud-compute/samples/generated/v1/target_https_proxies.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/target_https_proxies.list.js @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/target_https_proxies.patch.js b/packages/google-cloud-compute/samples/generated/v1/target_https_proxies.patch.js index 8435b98d6cb..9391fe5245a 100644 --- a/packages/google-cloud-compute/samples/generated/v1/target_https_proxies.patch.js +++ b/packages/google-cloud-compute/samples/generated/v1/target_https_proxies.patch.js @@ -25,7 +25,7 @@ function main(project, targetHttpsProxy, targetHttpsProxyResource) { */ // 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). end_interface: MixerMutationRequestBuilder + * 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' /** 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 243ba3e5006..666d6998d28 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 @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/target_instances.list.js b/packages/google-cloud-compute/samples/generated/v1/target_instances.list.js index 31233c32e4e..a0c70d0ae30 100644 --- a/packages/google-cloud-compute/samples/generated/v1/target_instances.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/target_instances.list.js @@ -21,7 +21,7 @@ function main(project, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** 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 f5d99ae1ee9..2d7172495cb 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 @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/target_pools.list.js b/packages/google-cloud-compute/samples/generated/v1/target_pools.list.js index f8497ab3145..2dda084762d 100644 --- a/packages/google-cloud-compute/samples/generated/v1/target_pools.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/target_pools.list.js @@ -21,7 +21,7 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/target_ssl_proxies.list.js b/packages/google-cloud-compute/samples/generated/v1/target_ssl_proxies.list.js index 1cb1d6fdb48..afdd828f7b9 100644 --- a/packages/google-cloud-compute/samples/generated/v1/target_ssl_proxies.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/target_ssl_proxies.list.js @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/target_tcp_proxies.list.js b/packages/google-cloud-compute/samples/generated/v1/target_tcp_proxies.list.js index f500ebd9115..9eef81a4ec7 100644 --- a/packages/google-cloud-compute/samples/generated/v1/target_tcp_proxies.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/target_tcp_proxies.list.js @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** 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 ed5dc4d83c1..12a69755ef4 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 @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/target_vpn_gateways.list.js b/packages/google-cloud-compute/samples/generated/v1/target_vpn_gateways.list.js index 459c55081f5..d32d394d2b4 100644 --- a/packages/google-cloud-compute/samples/generated/v1/target_vpn_gateways.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/target_vpn_gateways.list.js @@ -21,7 +21,7 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** 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 36c61602750..d31b3499568 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 @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/url_maps.list.js b/packages/google-cloud-compute/samples/generated/v1/url_maps.list.js index afaca7757ba..1a97aa74652 100644 --- a/packages/google-cloud-compute/samples/generated/v1/url_maps.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/url_maps.list.js @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** 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 a1802ccb3f9..a93a7f6c55b 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 @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/vpn_gateways.list.js b/packages/google-cloud-compute/samples/generated/v1/vpn_gateways.list.js index f7396fe45e5..a5b3ab6d2a2 100644 --- a/packages/google-cloud-compute/samples/generated/v1/vpn_gateways.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/vpn_gateways.list.js @@ -21,7 +21,7 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** 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 3c61579c6a7..b01be116882 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 @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/vpn_tunnels.list.js b/packages/google-cloud-compute/samples/generated/v1/vpn_tunnels.list.js index 0f5ac8cf691..45f77e69e07 100644 --- a/packages/google-cloud-compute/samples/generated/v1/vpn_tunnels.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/vpn_tunnels.list.js @@ -21,7 +21,7 @@ function main(project, region) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/zone_operations.list.js b/packages/google-cloud-compute/samples/generated/v1/zone_operations.list.js index d9c7502eb35..c65bc56f822 100644 --- a/packages/google-cloud-compute/samples/generated/v1/zone_operations.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/zone_operations.list.js @@ -21,7 +21,7 @@ function main(project, zone) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/samples/generated/v1/zones.list.js b/packages/google-cloud-compute/samples/generated/v1/zones.list.js index 66818586663..f738e285ce2 100644 --- a/packages/google-cloud-compute/samples/generated/v1/zones.list.js +++ b/packages/google-cloud-compute/samples/generated/v1/zones.list.js @@ -21,7 +21,7 @@ function main(project) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` */ // const filter = 'abc123' /** diff --git a/packages/google-cloud-compute/src/index.ts b/packages/google-cloud-compute/src/index.ts index 5115759459a..8ccefcb995a 100644 --- a/packages/google-cloud-compute/src/index.ts +++ b/packages/google-cloud-compute/src/index.ts @@ -80,6 +80,8 @@ const LicenseCodesClient = v1.LicenseCodesClient; type LicenseCodesClient = v1.LicenseCodesClient; const LicensesClient = v1.LicensesClient; type LicensesClient = v1.LicensesClient; +const MachineImagesClient = v1.MachineImagesClient; +type MachineImagesClient = v1.MachineImagesClient; const MachineTypesClient = v1.MachineTypesClient; type MachineTypesClient = v1.MachineTypesClient; const NetworkEndpointGroupsClient = v1.NetworkEndpointGroupsClient; @@ -215,6 +217,7 @@ export { InterconnectsClient, LicenseCodesClient, LicensesClient, + MachineImagesClient, MachineTypesClient, NetworkEndpointGroupsClient, NetworksClient, @@ -299,6 +302,7 @@ export default { InterconnectsClient, LicenseCodesClient, LicensesClient, + MachineImagesClient, MachineTypesClient, NetworkEndpointGroupsClient, NetworksClient, 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 80867cc3d96..556b02b08ea 100644 --- a/packages/google-cloud-compute/src/v1/accelerator_types_client.ts +++ b/packages/google-cloud-compute/src/v1/accelerator_types_client.ts @@ -419,7 +419,7 @@ export class AcceleratorTypesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {boolean} request.includeAllScopes * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. * @param {number} request.maxResults @@ -476,7 +476,7 @@ export class AcceleratorTypesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -576,7 +576,7 @@ export class AcceleratorTypesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -630,7 +630,7 @@ export class AcceleratorTypesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 diff --git a/packages/google-cloud-compute/src/v1/addresses_client.ts b/packages/google-cloud-compute/src/v1/addresses_client.ts index cfb1424598c..fe1c5cf091b 100644 --- a/packages/google-cloud-compute/src/v1/addresses_client.ts +++ b/packages/google-cloud-compute/src/v1/addresses_client.ts @@ -646,7 +646,7 @@ export class AddressesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {boolean} request.includeAllScopes * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. * @param {number} request.maxResults @@ -703,7 +703,7 @@ export class AddressesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -801,7 +801,7 @@ export class AddressesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -855,7 +855,7 @@ export class AddressesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 diff --git a/packages/google-cloud-compute/src/v1/autoscalers_client.ts b/packages/google-cloud-compute/src/v1/autoscalers_client.ts index 84e9853d193..6768a7604c2 100644 --- a/packages/google-cloud-compute/src/v1/autoscalers_client.ts +++ b/packages/google-cloud-compute/src/v1/autoscalers_client.ts @@ -904,7 +904,7 @@ export class AutoscalersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {boolean} request.includeAllScopes * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. * @param {number} request.maxResults @@ -961,7 +961,7 @@ export class AutoscalersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1059,7 +1059,7 @@ export class AutoscalersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1113,7 +1113,7 @@ export class AutoscalersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 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 eddf3df4231..2e2b1ba00b1 100644 --- a/packages/google-cloud-compute/src/v1/backend_buckets_client.ts +++ b/packages/google-cloud-compute/src/v1/backend_buckets_client.ts @@ -231,6 +231,7 @@ export class BackendBucketsClient { 'insert', 'list', 'patch', + 'setEdgeSecurityPolicy', 'update', ]; for (const methodName of backendBucketsStubMethods) { @@ -1016,6 +1017,128 @@ export class BackendBucketsClient { } ); } + /** + * Sets the edge security policy for the specified backend bucket. + * + * @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. + * @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 {google.cloud.compute.v1.SecurityPolicyReference} request.securityPolicyReferenceResource + * The body resource 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 + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * 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/backend_buckets.set_edge_security_policy.js + * region_tag:compute_v1_generated_BackendBuckets_SetEdgeSecurityPolicy_async + */ + setEdgeSecurityPolicy( + request?: protos.google.cloud.compute.v1.ISetEdgeSecurityPolicyBackendBucketRequest, + options?: CallOptions + ): Promise< + [ + LROperation, + protos.google.cloud.compute.v1.IOperation | undefined, + {} | undefined + ] + >; + setEdgeSecurityPolicy( + request: protos.google.cloud.compute.v1.ISetEdgeSecurityPolicyBackendBucketRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.ISetEdgeSecurityPolicyBackendBucketRequest + | null + | undefined, + {} | null | undefined + > + ): void; + setEdgeSecurityPolicy( + request: protos.google.cloud.compute.v1.ISetEdgeSecurityPolicyBackendBucketRequest, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.ISetEdgeSecurityPolicyBackendBucketRequest + | null + | undefined, + {} | null | undefined + > + ): void; + setEdgeSecurityPolicy( + request?: protos.google.cloud.compute.v1.ISetEdgeSecurityPolicyBackendBucketRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.ISetEdgeSecurityPolicyBackendBucketRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.ISetEdgeSecurityPolicyBackendBucketRequest + | 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'] = + gax.routingHeader.fromParams({ + project: request.project || '', + }); + this.initialize(); + return this.innerApiCalls + .setEdgeSecurityPolicy(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, + ]; + } + ); + } /** * Updates the specified BackendBucket resource with the data included in the request. * @@ -1145,7 +1268,7 @@ export class BackendBucketsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1241,7 +1364,7 @@ export class BackendBucketsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1293,7 +1416,7 @@ export class BackendBucketsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 diff --git a/packages/google-cloud-compute/src/v1/backend_buckets_client_config.json b/packages/google-cloud-compute/src/v1/backend_buckets_client_config.json index d6454d5668a..2c4ab2e1738 100644 --- a/packages/google-cloud-compute/src/v1/backend_buckets_client_config.json +++ b/packages/google-cloud-compute/src/v1/backend_buckets_client_config.json @@ -48,6 +48,10 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "SetEdgeSecurityPolicy": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "Update": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" 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 489dc59ffee..f5281b3289d 100644 --- a/packages/google-cloud-compute/src/v1/backend_services_client.ts +++ b/packages/google-cloud-compute/src/v1/backend_services_client.ts @@ -238,6 +238,7 @@ export class BackendServicesClient { 'insert', 'list', 'patch', + 'setEdgeSecurityPolicy', 'setSecurityPolicy', 'update', ]; @@ -1124,6 +1125,128 @@ export class BackendServicesClient { } ); } + /** + * Sets the edge security policy for the specified backend service. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.backendService + * Name of the BackendService resource to which the edge security policy should be set. The name should conform to RFC1035. + * @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 {google.cloud.compute.v1.SecurityPolicyReference} request.securityPolicyReferenceResource + * The body resource 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 + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * 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/backend_services.set_edge_security_policy.js + * region_tag:compute_v1_generated_BackendServices_SetEdgeSecurityPolicy_async + */ + setEdgeSecurityPolicy( + request?: protos.google.cloud.compute.v1.ISetEdgeSecurityPolicyBackendServiceRequest, + options?: CallOptions + ): Promise< + [ + LROperation, + protos.google.cloud.compute.v1.IOperation | undefined, + {} | undefined + ] + >; + setEdgeSecurityPolicy( + request: protos.google.cloud.compute.v1.ISetEdgeSecurityPolicyBackendServiceRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.ISetEdgeSecurityPolicyBackendServiceRequest + | null + | undefined, + {} | null | undefined + > + ): void; + setEdgeSecurityPolicy( + request: protos.google.cloud.compute.v1.ISetEdgeSecurityPolicyBackendServiceRequest, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.ISetEdgeSecurityPolicyBackendServiceRequest + | null + | undefined, + {} | null | undefined + > + ): void; + setEdgeSecurityPolicy( + request?: protos.google.cloud.compute.v1.ISetEdgeSecurityPolicyBackendServiceRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.ISetEdgeSecurityPolicyBackendServiceRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.ISetEdgeSecurityPolicyBackendServiceRequest + | 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'] = + gax.routingHeader.fromParams({ + project: request.project || '', + }); + this.initialize(); + return this.innerApiCalls + .setEdgeSecurityPolicy(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, + ]; + } + ); + } /** * Sets the Google Cloud Armor security policy for the specified backend service. For more information, see Google Cloud Armor Overview * @@ -1376,7 +1499,7 @@ export class BackendServicesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {boolean} request.includeAllScopes * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. * @param {number} request.maxResults @@ -1433,7 +1556,7 @@ export class BackendServicesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1529,7 +1652,7 @@ export class BackendServicesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1581,7 +1704,7 @@ export class BackendServicesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 diff --git a/packages/google-cloud-compute/src/v1/backend_services_client_config.json b/packages/google-cloud-compute/src/v1/backend_services_client_config.json index be2362ba2b0..d9998f4c02f 100644 --- a/packages/google-cloud-compute/src/v1/backend_services_client_config.json +++ b/packages/google-cloud-compute/src/v1/backend_services_client_config.json @@ -56,6 +56,10 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "SetEdgeSecurityPolicy": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "SetSecurityPolicy": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" 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 c7d2a968df2..d0e59d4ea55 100644 --- a/packages/google-cloud-compute/src/v1/disk_types_client.ts +++ b/packages/google-cloud-compute/src/v1/disk_types_client.ts @@ -408,7 +408,7 @@ export class DiskTypesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {boolean} request.includeAllScopes * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. * @param {number} request.maxResults @@ -465,7 +465,7 @@ export class DiskTypesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -563,7 +563,7 @@ export class DiskTypesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -617,7 +617,7 @@ export class DiskTypesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 diff --git a/packages/google-cloud-compute/src/v1/disks_client.ts b/packages/google-cloud-compute/src/v1/disks_client.ts index 51dc43d03e8..8ea2eda421f 100644 --- a/packages/google-cloud-compute/src/v1/disks_client.ts +++ b/packages/google-cloud-compute/src/v1/disks_client.ts @@ -452,7 +452,7 @@ export class DisksClient { ); } /** - * Creates a snapshot of a specified persistent disk. + * Creates a snapshot of a specified persistent disk. For regular snapshot creation, consider using snapshots.insert instead, as that method supports more features, such as creating snapshots in a project different from the source disk project. * * @param {Object} request * The request object that will be sent. @@ -1551,7 +1551,7 @@ export class DisksClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {boolean} request.includeAllScopes * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. * @param {number} request.maxResults @@ -1606,7 +1606,7 @@ export class DisksClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1704,7 +1704,7 @@ export class DisksClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1758,7 +1758,7 @@ export class DisksClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 diff --git a/packages/google-cloud-compute/src/v1/external_vpn_gateways_client.ts b/packages/google-cloud-compute/src/v1/external_vpn_gateways_client.ts index f8678fe7b6e..72a61e20a49 100644 --- a/packages/google-cloud-compute/src/v1/external_vpn_gateways_client.ts +++ b/packages/google-cloud-compute/src/v1/external_vpn_gateways_client.ts @@ -876,7 +876,7 @@ export class ExternalVpnGatewaysClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -974,7 +974,7 @@ export class ExternalVpnGatewaysClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1026,7 +1026,7 @@ export class ExternalVpnGatewaysClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 diff --git a/packages/google-cloud-compute/src/v1/firewall_policies_client.ts b/packages/google-cloud-compute/src/v1/firewall_policies_client.ts index ccfedc6343e..cdcb9c11b20 100644 --- a/packages/google-cloud-compute/src/v1/firewall_policies_client.ts +++ b/packages/google-cloud-compute/src/v1/firewall_policies_client.ts @@ -2205,7 +2205,7 @@ export class FirewallPoliciesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -2297,7 +2297,7 @@ export class FirewallPoliciesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -2345,7 +2345,7 @@ export class FirewallPoliciesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 diff --git a/packages/google-cloud-compute/src/v1/firewalls_client.ts b/packages/google-cloud-compute/src/v1/firewalls_client.ts index 641bd358f1d..65e0cff9338 100644 --- a/packages/google-cloud-compute/src/v1/firewalls_client.ts +++ b/packages/google-cloud-compute/src/v1/firewalls_client.ts @@ -867,7 +867,7 @@ export class FirewallsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -963,7 +963,7 @@ export class FirewallsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1015,7 +1015,7 @@ export class FirewallsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 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 6527914806e..5e10579c4a8 100644 --- a/packages/google-cloud-compute/src/v1/forwarding_rules_client.ts +++ b/packages/google-cloud-compute/src/v1/forwarding_rules_client.ts @@ -1041,7 +1041,7 @@ export class ForwardingRulesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {boolean} request.includeAllScopes * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. * @param {number} request.maxResults @@ -1098,7 +1098,7 @@ export class ForwardingRulesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1196,7 +1196,7 @@ export class ForwardingRulesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1250,7 +1250,7 @@ export class ForwardingRulesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 diff --git a/packages/google-cloud-compute/src/v1/gapic_metadata.json b/packages/google-cloud-compute/src/v1/gapic_metadata.json index a0b62d1c0e3..f1344118b5e 100644 --- a/packages/google-cloud-compute/src/v1/gapic_metadata.json +++ b/packages/google-cloud-compute/src/v1/gapic_metadata.json @@ -256,6 +256,11 @@ "patch" ] }, + "SetEdgeSecurityPolicy": { + "methods": [ + "setEdgeSecurityPolicy" + ] + }, "Update": { "methods": [ "update" @@ -303,6 +308,11 @@ "patch" ] }, + "SetEdgeSecurityPolicy": { + "methods": [ + "setEdgeSecurityPolicy" + ] + }, "Update": { "methods": [ "update" @@ -359,6 +369,11 @@ "patch" ] }, + "SetEdgeSecurityPolicy": { + "methods": [ + "setEdgeSecurityPolicy" + ] + }, "SetSecurityPolicy": { "methods": [ "setSecurityPolicy" @@ -423,6 +438,11 @@ "patch" ] }, + "SetEdgeSecurityPolicy": { + "methods": [ + "setEdgeSecurityPolicy" + ] + }, "SetSecurityPolicy": { "methods": [ "setSecurityPolicy" @@ -2221,6 +2241,11 @@ "reset" ] }, + "Resume": { + "methods": [ + "resume" + ] + }, "SendDiagnosticInterrupt": { "methods": [ "sendDiagnosticInterrupt" @@ -2306,6 +2331,11 @@ "stop" ] }, + "Suspend": { + "methods": [ + "suspend" + ] + }, "TestIamPermissions": { "methods": [ "testIamPermissions" @@ -2447,6 +2477,11 @@ "reset" ] }, + "Resume": { + "methods": [ + "resume" + ] + }, "SendDiagnosticInterrupt": { "methods": [ "sendDiagnosticInterrupt" @@ -2532,6 +2567,11 @@ "stop" ] }, + "Suspend": { + "methods": [ + "suspend" + ] + }, "TestIamPermissions": { "methods": [ "testIamPermissions" @@ -2995,6 +3035,94 @@ } } }, + "MachineImages": { + "clients": { + "grpc": { + "libraryClient": "MachineImagesClient", + "rpcs": { + "Delete": { + "methods": [ + "delete" + ] + }, + "Get": { + "methods": [ + "get" + ] + }, + "GetIamPolicy": { + "methods": [ + "getIamPolicy" + ] + }, + "Insert": { + "methods": [ + "insert" + ] + }, + "SetIamPolicy": { + "methods": [ + "setIamPolicy" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + }, + "List": { + "methods": [ + "list", + "listStream", + "listAsync" + ] + } + } + }, + "grpc-fallback": { + "libraryClient": "MachineImagesClient", + "rpcs": { + "Delete": { + "methods": [ + "delete" + ] + }, + "Get": { + "methods": [ + "get" + ] + }, + "GetIamPolicy": { + "methods": [ + "getIamPolicy" + ] + }, + "Insert": { + "methods": [ + "insert" + ] + }, + "SetIamPolicy": { + "methods": [ + "setIamPolicy" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + }, + "List": { + "methods": [ + "list", + "listStream", + "listAsync" + ] + } + } + } + } + }, "MachineTypes": { "clients": { "grpc": { @@ -4180,6 +4308,11 @@ "insert" ] }, + "Update": { + "methods": [ + "update" + ] + }, "AggregatedList": { "methods": [ "aggregatedList", @@ -4209,6 +4342,11 @@ "insert" ] }, + "Update": { + "methods": [ + "update" + ] + }, "AggregatedList": { "methods": [ "aggregatedList", @@ -5399,6 +5537,11 @@ "testIamPermissions" ] }, + "Update": { + "methods": [ + "update" + ] + }, "AggregatedList": { "methods": [ "aggregatedList", @@ -5453,6 +5596,11 @@ "testIamPermissions" ] }, + "Update": { + "methods": [ + "update" + ] + }, "AggregatedList": { "methods": [ "aggregatedList", @@ -6007,6 +6155,11 @@ "getIamPolicy" ] }, + "Insert": { + "methods": [ + "insert" + ] + }, "SetIamPolicy": { "methods": [ "setIamPolicy" @@ -6049,6 +6202,11 @@ "getIamPolicy" ] }, + "Insert": { + "methods": [ + "insert" + ] + }, "SetIamPolicy": { "methods": [ "setIamPolicy" diff --git a/packages/google-cloud-compute/src/v1/global_addresses_client.ts b/packages/google-cloud-compute/src/v1/global_addresses_client.ts index ccac20b1144..efacff7723c 100644 --- a/packages/google-cloud-compute/src/v1/global_addresses_client.ts +++ b/packages/google-cloud-compute/src/v1/global_addresses_client.ts @@ -648,7 +648,7 @@ export class GlobalAddressesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -744,7 +744,7 @@ export class GlobalAddressesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -796,7 +796,7 @@ export class GlobalAddressesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 diff --git a/packages/google-cloud-compute/src/v1/global_forwarding_rules_client.ts b/packages/google-cloud-compute/src/v1/global_forwarding_rules_client.ts index 31409912c97..d57cc4b420c 100644 --- a/packages/google-cloud-compute/src/v1/global_forwarding_rules_client.ts +++ b/packages/google-cloud-compute/src/v1/global_forwarding_rules_client.ts @@ -1027,7 +1027,7 @@ export class GlobalForwardingRulesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1123,7 +1123,7 @@ export class GlobalForwardingRulesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1175,7 +1175,7 @@ export class GlobalForwardingRulesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 diff --git a/packages/google-cloud-compute/src/v1/global_network_endpoint_groups_client.ts b/packages/google-cloud-compute/src/v1/global_network_endpoint_groups_client.ts index ff73112c93e..52dc40ad753 100644 --- a/packages/google-cloud-compute/src/v1/global_network_endpoint_groups_client.ts +++ b/packages/google-cloud-compute/src/v1/global_network_endpoint_groups_client.ts @@ -913,7 +913,7 @@ export class GlobalNetworkEndpointGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1017,7 +1017,7 @@ export class GlobalNetworkEndpointGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1069,7 +1069,7 @@ export class GlobalNetworkEndpointGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1120,7 +1120,7 @@ export class GlobalNetworkEndpointGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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.networkEndpointGroup @@ -1226,7 +1226,7 @@ export class GlobalNetworkEndpointGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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.networkEndpointGroup @@ -1280,7 +1280,7 @@ export class GlobalNetworkEndpointGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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.networkEndpointGroup 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 c70e6a9e6e7..a033f3a4232 100644 --- a/packages/google-cloud-compute/src/v1/global_operations_client.ts +++ b/packages/google-cloud-compute/src/v1/global_operations_client.ts @@ -605,7 +605,7 @@ export class GlobalOperationsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {boolean} request.includeAllScopes * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. * @param {number} request.maxResults @@ -662,7 +662,7 @@ export class GlobalOperationsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -758,7 +758,7 @@ export class GlobalOperationsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -810,7 +810,7 @@ export class GlobalOperationsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 diff --git a/packages/google-cloud-compute/src/v1/global_organization_operations_client.ts b/packages/google-cloud-compute/src/v1/global_organization_operations_client.ts index 423186ebc2a..32d7b3f4d31 100644 --- a/packages/google-cloud-compute/src/v1/global_organization_operations_client.ts +++ b/packages/google-cloud-compute/src/v1/global_organization_operations_client.ts @@ -514,7 +514,7 @@ export class GlobalOrganizationOperationsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -606,7 +606,7 @@ export class GlobalOrganizationOperationsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -654,7 +654,7 @@ export class GlobalOrganizationOperationsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 diff --git a/packages/google-cloud-compute/src/v1/global_public_delegated_prefixes_client.ts b/packages/google-cloud-compute/src/v1/global_public_delegated_prefixes_client.ts index 54617699041..24b1fa17d59 100644 --- a/packages/google-cloud-compute/src/v1/global_public_delegated_prefixes_client.ts +++ b/packages/google-cloud-compute/src/v1/global_public_delegated_prefixes_client.ts @@ -326,7 +326,7 @@ export class GlobalPublicDelegatedPrefixesClient { * @param {string} request.publicDelegatedPrefix * Name of the PublicDelegatedPrefix resource to delete. * @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). end_interface: MixerMutationRequestBuilder + * 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 {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. @@ -545,7 +545,7 @@ export class GlobalPublicDelegatedPrefixesClient { * @param {google.cloud.compute.v1.PublicDelegatedPrefix} request.publicDelegatedPrefixResource * The body resource 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). end_interface: MixerMutationRequestBuilder + * 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 {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. @@ -667,7 +667,7 @@ export class GlobalPublicDelegatedPrefixesClient { * @param {google.cloud.compute.v1.PublicDelegatedPrefix} request.publicDelegatedPrefixResource * The body resource 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). end_interface: MixerMutationRequestBuilder + * 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 {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. @@ -784,7 +784,7 @@ export class GlobalPublicDelegatedPrefixesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -888,7 +888,7 @@ export class GlobalPublicDelegatedPrefixesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -940,7 +940,7 @@ export class GlobalPublicDelegatedPrefixesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 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 da0070a2c47..09ec006e19f 100644 --- a/packages/google-cloud-compute/src/v1/health_checks_client.ts +++ b/packages/google-cloud-compute/src/v1/health_checks_client.ts @@ -900,7 +900,7 @@ export class HealthChecksClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {boolean} request.includeAllScopes * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. * @param {number} request.maxResults @@ -957,7 +957,7 @@ export class HealthChecksClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1053,7 +1053,7 @@ export class HealthChecksClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1105,7 +1105,7 @@ export class HealthChecksClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 diff --git a/packages/google-cloud-compute/src/v1/images_client.ts b/packages/google-cloud-compute/src/v1/images_client.ts index 365b05777d5..baaadf7d09f 100644 --- a/packages/google-cloud-compute/src/v1/images_client.ts +++ b/packages/google-cloud-compute/src/v1/images_client.ts @@ -1366,7 +1366,7 @@ export class ImagesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1462,7 +1462,7 @@ export class ImagesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1514,7 +1514,7 @@ export class ImagesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 diff --git a/packages/google-cloud-compute/src/v1/index.ts b/packages/google-cloud-compute/src/v1/index.ts index 42f45e7dee5..9441b2b3dd6 100644 --- a/packages/google-cloud-compute/src/v1/index.ts +++ b/packages/google-cloud-compute/src/v1/index.ts @@ -45,6 +45,7 @@ export {InterconnectLocationsClient} from './interconnect_locations_client'; export {InterconnectsClient} from './interconnects_client'; export {LicenseCodesClient} from './license_codes_client'; export {LicensesClient} from './licenses_client'; +export {MachineImagesClient} from './machine_images_client'; export {MachineTypesClient} from './machine_types_client'; export {NetworkEndpointGroupsClient} from './network_endpoint_groups_client'; export {NetworksClient} from './networks_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 4f2f54e0c8d..a4c801b4d08 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 @@ -2187,7 +2187,7 @@ export class InstanceGroupManagersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {boolean} request.includeAllScopes * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. * @param {number} request.maxResults @@ -2244,7 +2244,7 @@ export class InstanceGroupManagersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -2350,7 +2350,7 @@ export class InstanceGroupManagersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -2404,7 +2404,7 @@ export class InstanceGroupManagersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -2457,7 +2457,7 @@ export class InstanceGroupManagersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {string} request.instanceGroupManager * The name of the managed instance group. It must be a string that meets the requirements in RFC1035, or an unsigned long integer: must match regexp pattern: (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. * @param {number} request.maxResults @@ -2565,7 +2565,7 @@ export class InstanceGroupManagersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {string} request.instanceGroupManager * The name of the managed instance group. It must be a string that meets the requirements in RFC1035, or an unsigned long integer: must match regexp pattern: (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. * @param {number} request.maxResults @@ -2621,7 +2621,7 @@ export class InstanceGroupManagersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {string} request.instanceGroupManager * The name of the managed instance group. It must be a string that meets the requirements in RFC1035, or an unsigned long integer: must match regexp pattern: (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. * @param {number} request.maxResults @@ -2676,7 +2676,7 @@ export class InstanceGroupManagersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {string} request.instanceGroupManager * The name of the managed instance group. * @param {number} request.maxResults @@ -2784,7 +2784,7 @@ export class InstanceGroupManagersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {string} request.instanceGroupManager * The name of the managed instance group. * @param {number} request.maxResults @@ -2840,7 +2840,7 @@ export class InstanceGroupManagersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {string} request.instanceGroupManager * The name of the managed instance group. * @param {number} request.maxResults @@ -2895,7 +2895,7 @@ export class InstanceGroupManagersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {string} request.instanceGroupManager * The name of the managed instance group. It should conform to RFC1035. * @param {number} request.maxResults @@ -3007,7 +3007,7 @@ export class InstanceGroupManagersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {string} request.instanceGroupManager * The name of the managed instance group. It should conform to RFC1035. * @param {number} request.maxResults @@ -3063,7 +3063,7 @@ export class InstanceGroupManagersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {string} request.instanceGroupManager * The name of the managed instance group. It should conform to RFC1035. * @param {number} request.maxResults 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 a5a28d44322..9725193f98f 100644 --- a/packages/google-cloud-compute/src/v1/instance_groups_client.ts +++ b/packages/google-cloud-compute/src/v1/instance_groups_client.ts @@ -1047,7 +1047,7 @@ export class InstanceGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {boolean} request.includeAllScopes * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. * @param {number} request.maxResults @@ -1104,7 +1104,7 @@ export class InstanceGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1202,7 +1202,7 @@ export class InstanceGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1256,7 +1256,7 @@ export class InstanceGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1309,7 +1309,7 @@ export class InstanceGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {string} request.instanceGroup * The name of the instance group from which you want to generate a list of included instances. * @param {google.cloud.compute.v1.InstanceGroupsListInstancesRequest} request.instanceGroupsListInstancesRequestResource @@ -1419,7 +1419,7 @@ export class InstanceGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {string} request.instanceGroup * The name of the instance group from which you want to generate a list of included instances. * @param {google.cloud.compute.v1.InstanceGroupsListInstancesRequest} request.instanceGroupsListInstancesRequestResource @@ -1477,7 +1477,7 @@ export class InstanceGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {string} request.instanceGroup * The name of the instance group from which you want to generate a list of included instances. * @param {google.cloud.compute.v1.InstanceGroupsListInstancesRequest} request.instanceGroupsListInstancesRequestResource 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 ee0742ddcb6..6e53e0f5036 100644 --- a/packages/google-cloud-compute/src/v1/instance_templates_client.ts +++ b/packages/google-cloud-compute/src/v1/instance_templates_client.ts @@ -959,7 +959,7 @@ export class InstanceTemplatesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1057,7 +1057,7 @@ export class InstanceTemplatesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1109,7 +1109,7 @@ export class InstanceTemplatesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 diff --git a/packages/google-cloud-compute/src/v1/instances_client.ts b/packages/google-cloud-compute/src/v1/instances_client.ts index 1e8170254d6..ea543927eb7 100644 --- a/packages/google-cloud-compute/src/v1/instances_client.ts +++ b/packages/google-cloud-compute/src/v1/instances_client.ts @@ -254,6 +254,7 @@ export class InstancesClient { 'listReferrers', 'removeResourcePolicies', 'reset', + 'resume', 'sendDiagnosticInterrupt', 'setDeletionProtection', 'setDiskAutoDelete', @@ -271,6 +272,7 @@ export class InstancesClient { 'start', 'startWithEncryptionKey', 'stop', + 'suspend', 'testIamPermissions', 'update', 'updateAccessConfig', @@ -1936,6 +1938,8 @@ export class InstancesClient { * 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.sourceInstanceTemplate * Specifies instance template to create the instance. This field is optional. It can be a full or partial URL. For example, the following are all valid URLs to an instance template: - https://www.googleapis.com/compute/v1/projects/project /global/instanceTemplates/instanceTemplate - projects/project/global/instanceTemplates/instanceTemplate - global/instanceTemplates/instanceTemplate + * @param {string} request.sourceMachineImage + * Specifies the machine image to use to create the instance. This field is optional. It can be a full or partial URL. For example, the following are all valid URLs to a machine image: - https://www.googleapis.com/compute/v1/projects/project/global/global /machineImages/machineImage - projects/project/global/global/machineImages/machineImage - global/machineImages/machineImage * @param {string} request.zone * The name of the zone for this request. * @param {object} [options] @@ -2281,6 +2285,122 @@ export class InstancesClient { } ); } + /** + * Resumes an instance that was suspended using the instances().suspend method. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.instance + * Name of the instance resource to resume. + * @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 + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * 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.resume.js + * region_tag:compute_v1_generated_Instances_Resume_async + */ + resume( + request?: protos.google.cloud.compute.v1.IResumeInstanceRequest, + options?: CallOptions + ): Promise< + [ + LROperation, + protos.google.cloud.compute.v1.IOperation | undefined, + {} | undefined + ] + >; + resume( + request: protos.google.cloud.compute.v1.IResumeInstanceRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IResumeInstanceRequest | null | undefined, + {} | null | undefined + > + ): void; + resume( + request: protos.google.cloud.compute.v1.IResumeInstanceRequest, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IResumeInstanceRequest | null | undefined, + {} | null | undefined + > + ): void; + resume( + request?: protos.google.cloud.compute.v1.IResumeInstanceRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.IResumeInstanceRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IResumeInstanceRequest | 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'] = + gax.routingHeader.fromParams({ + project: request.project || '', + }); + this.initialize(); + return this.innerApiCalls + .resume(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, + ]; + } + ); + } /** * Sends diagnostic interrupt to the instance. * @@ -3354,7 +3474,7 @@ export class InstancesClient { ); } /** - * Sets an instance's scheduling options. You can only call this method on a stopped instance, that is, a VM instance that is in a `TERMINATED` state. See Instance Life Cycle for more information on the possible instance states. + * Sets an instance's scheduling options. You can only call this method on a stopped instance, that is, a VM instance that is in a `TERMINATED` state. See Instance Life Cycle for more information on the possible instance states. For more information about setting scheduling options for a VM, see Set VM availability policies. * * @param {Object} request * The request object that will be sent. @@ -3844,7 +3964,7 @@ export class InstancesClient { ); } /** - * Simulates a maintenance event on the instance. + * Simulates a host maintenance event on a VM. For more information, see Simulate a host maintenance event. * * @param {Object} request * The request object that will be sent. @@ -4319,6 +4439,122 @@ export class InstancesClient { } ); } + /** + * This method suspends a running instance, saving its state to persistent storage, and allows you to resume the instance at a later time. Suspended instances have no compute costs (cores or RAM), and incur only storage charges for the saved VM memory and localSSD data. Any charged resources the virtual machine was using, such as persistent disks and static IP addresses, will continue to be charged while the instance is suspended. For more information, see Suspending and resuming an instance. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.instance + * Name of the instance resource to suspend. + * @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 + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * 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.suspend.js + * region_tag:compute_v1_generated_Instances_Suspend_async + */ + suspend( + request?: protos.google.cloud.compute.v1.ISuspendInstanceRequest, + options?: CallOptions + ): Promise< + [ + LROperation, + protos.google.cloud.compute.v1.IOperation | undefined, + {} | undefined + ] + >; + suspend( + request: protos.google.cloud.compute.v1.ISuspendInstanceRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.ISuspendInstanceRequest | null | undefined, + {} | null | undefined + > + ): void; + suspend( + request: protos.google.cloud.compute.v1.ISuspendInstanceRequest, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.ISuspendInstanceRequest | null | undefined, + {} | null | undefined + > + ): void; + suspend( + request?: protos.google.cloud.compute.v1.ISuspendInstanceRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.ISuspendInstanceRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.ISuspendInstanceRequest | 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'] = + gax.routingHeader.fromParams({ + project: request.project || '', + }); + this.initialize(); + return this.innerApiCalls + .suspend(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, + ]; + } + ); + } /** * Returns permissions that a caller has on the specified resource. * @@ -5052,7 +5288,7 @@ export class InstancesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {boolean} request.includeAllScopes * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. * @param {number} request.maxResults @@ -5109,7 +5345,7 @@ export class InstancesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -5207,7 +5443,7 @@ export class InstancesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -5261,7 +5497,7 @@ export class InstancesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -5314,7 +5550,7 @@ export class InstancesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {string} request.instance * Name of the target instance scoping this request, or '-' if the request should span over all instances in the container. * @param {number} request.maxResults @@ -5416,7 +5652,7 @@ export class InstancesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {string} request.instance * Name of the target instance scoping this request, or '-' if the request should span over all instances in the container. * @param {number} request.maxResults @@ -5472,7 +5708,7 @@ export class InstancesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {string} request.instance * Name of the target instance scoping this request, or '-' if the request should span over all instances in the container. * @param {number} request.maxResults 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 696b2053f08..003f5890203 100644 --- a/packages/google-cloud-compute/src/v1/instances_client_config.json +++ b/packages/google-cloud-compute/src/v1/instances_client_config.json @@ -100,6 +100,10 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "Resume": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "SendDiagnosticInterrupt": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" @@ -168,6 +172,10 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "Suspend": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "TestIamPermissions": { "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 87473e57115..e61c4b13384 100644 --- a/packages/google-cloud-compute/src/v1/interconnect_attachments_client.ts +++ b/packages/google-cloud-compute/src/v1/interconnect_attachments_client.ts @@ -800,7 +800,7 @@ export class InterconnectAttachmentsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {boolean} request.includeAllScopes * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. * @param {number} request.maxResults @@ -860,7 +860,7 @@ export class InterconnectAttachmentsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -966,7 +966,7 @@ export class InterconnectAttachmentsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1020,7 +1020,7 @@ export class InterconnectAttachmentsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 diff --git a/packages/google-cloud-compute/src/v1/interconnect_locations_client.ts b/packages/google-cloud-compute/src/v1/interconnect_locations_client.ts index ba14c4d4721..03e1f27fee4 100644 --- a/packages/google-cloud-compute/src/v1/interconnect_locations_client.ts +++ b/packages/google-cloud-compute/src/v1/interconnect_locations_client.ts @@ -415,7 +415,7 @@ export class InterconnectLocationsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -519,7 +519,7 @@ export class InterconnectLocationsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -571,7 +571,7 @@ export class InterconnectLocationsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 diff --git a/packages/google-cloud-compute/src/v1/interconnects_client.ts b/packages/google-cloud-compute/src/v1/interconnects_client.ts index b1655711446..c11775e7348 100644 --- a/packages/google-cloud-compute/src/v1/interconnects_client.ts +++ b/packages/google-cloud-compute/src/v1/interconnects_client.ts @@ -870,7 +870,7 @@ export class InterconnectsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -966,7 +966,7 @@ export class InterconnectsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1018,7 +1018,7 @@ export class InterconnectsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 diff --git a/packages/google-cloud-compute/src/v1/licenses_client.ts b/packages/google-cloud-compute/src/v1/licenses_client.ts index 96d8907e2f8..dbf246d4d29 100644 --- a/packages/google-cloud-compute/src/v1/licenses_client.ts +++ b/packages/google-cloud-compute/src/v1/licenses_client.ts @@ -927,7 +927,7 @@ export class LicensesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1025,7 +1025,7 @@ export class LicensesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1077,7 +1077,7 @@ export class LicensesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 diff --git a/packages/google-cloud-compute/src/v1/machine_images_client.ts b/packages/google-cloud-compute/src/v1/machine_images_client.ts new file mode 100644 index 00000000000..c8942d0d0fd --- /dev/null +++ b/packages/google-cloud-compute/src/v1/machine_images_client.ts @@ -0,0 +1,1168 @@ +// Copyright 2022 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 * as gax from 'google-gax'; +import { + Callback, + CallOptions, + Descriptors, + ClientOptions, + LROperation, + PaginationCallback, + GaxCall, +} from 'google-gax'; + +import {Transform} from 'stream'; +import {RequestType} from 'google-gax/build/src/apitypes'; +import * as protos from '../../protos/protos'; +import jsonProtos = require('../../protos/protos.json'); +/** + * Client JSON configuration object, loaded from + * `src/v1/machine_images_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ +import * as gapicConfig from './machine_images_client_config.json'; + +const version = require('../../../package.json').version; + +/** + * The MachineImages API. + * @class + * @memberof v1 + */ +export class MachineImagesClient { + 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}; + auth: gax.GoogleAuth; + descriptors: Descriptors = { + page: {}, + stream: {}, + longrunning: {}, + batching: {}, + }; + warn: (code: string, message: string, warnType?: string) => void; + innerApiCalls: {[name: string]: Function}; + machineImagesStub?: Promise<{[name: string]: Function}>; + + /** + * Construct an instance of MachineImagesClient. + * + * @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/master/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 fallback mode. + * In fallback mode, a special browser-compatible transport implementation is used + * instead of gRPC transport. In browser context (if the `window` object is defined) + * the fallback mode is enabled automatically; set `options.fallback` to `false` + * if you need to override this behavior. + */ + constructor(opts?: ClientOptions) { + // Ensure that options include all the required fields. + const staticMembers = this.constructor as typeof MachineImagesClient; + const servicePath = + opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + this._providedCustomServicePath = !!( + opts?.servicePath || opts?.apiEndpoint + ); + const port = opts?.port || staticMembers.port; + const clientConfig = opts?.clientConfig ?? {}; + // Implicitely set 'rest' value for the apis use rest as transport (eg. googleapis-discovery apis). + if (!opts) { + opts = {fallback: 'rest'}; + } else { + opts.fallback = opts.fallback ?? 'rest'; + } + 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 !== staticMembers.servicePath && !('scopes' in opts)) { + opts['scopes'] = staticMembers.scopes; + } + + // Choose either gRPC or proto-over-HTTP implementation of google-gax. + this._gaxModule = opts.fallback ? gax.fallback : gax; + + // 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 = staticMembers.servicePath; + + // Set the default scopes in auth client if needed. + if (servicePath === staticMembers.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 if (opts.fallback === 'rest') { + 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.MachineImages', + 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 = gax.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.machineImagesStub) { + return this.machineImagesStub; + } + + // Put together the "service stub" for + // google.cloud.compute.v1.MachineImages. + this.machineImagesStub = this._gaxGrpc.createStub( + this._opts.fallback + ? (this._protos as protobuf.Root).lookupService( + 'google.cloud.compute.v1.MachineImages' + ) + : // eslint-disable-next-line @typescript-eslint/no-explicit-any + (this._protos as any).google.cloud.compute.v1.MachineImages, + 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 machineImagesStubMethods = [ + 'delete', + 'get', + 'getIamPolicy', + 'insert', + 'list', + 'setIamPolicy', + 'testIamPermissions', + ]; + for (const methodName of machineImagesStubMethods) { + const callPromise = this.machineImagesStub.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.innerApiCalls[methodName] = apiCall; + } + + return this.machineImagesStub; + } + + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + static get servicePath() { + return 'compute.googleapis.com'; + } + + /** + * The DNS address for this API service - same as servicePath(), + * exists for compatibility reasons. + * @returns {string} The DNS address for this service. + */ + static get apiEndpoint() { + return 'compute.googleapis.com'; + } + + /** + * 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', + '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 -- + // ------------------- + /** + * Deletes the specified machine image. Deleting a machine image is permanent and cannot be undone. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.machineImage + * The name of the machine image to delete. + * @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 {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 + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * 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/machine_images.delete.js + * region_tag:compute_v1_generated_MachineImages_Delete_async + */ + delete( + request?: protos.google.cloud.compute.v1.IDeleteMachineImageRequest, + options?: CallOptions + ): Promise< + [ + LROperation, + protos.google.cloud.compute.v1.IOperation | undefined, + {} | undefined + ] + >; + delete( + request: protos.google.cloud.compute.v1.IDeleteMachineImageRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.IDeleteMachineImageRequest + | null + | undefined, + {} | null | undefined + > + ): void; + delete( + request: protos.google.cloud.compute.v1.IDeleteMachineImageRequest, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.IDeleteMachineImageRequest + | null + | undefined, + {} | null | undefined + > + ): void; + delete( + request?: protos.google.cloud.compute.v1.IDeleteMachineImageRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.IDeleteMachineImageRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.IDeleteMachineImageRequest + | 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'] = + gax.routingHeader.fromParams({ + project: request.project || '', + }); + this.initialize(); + return this.innerApiCalls + .delete(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, + ]; + } + ); + } + /** + * Returns the specified machine image. Gets a list of available machine images by making a list() request. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.machineImage + * The name of the machine image. + * @param {string} request.project + * Project ID 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 [MachineImage]{@link google.cloud.compute.v1.MachineImage}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1/machine_images.get.js + * region_tag:compute_v1_generated_MachineImages_Get_async + */ + get( + request?: protos.google.cloud.compute.v1.IGetMachineImageRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.compute.v1.IMachineImage, + protos.google.cloud.compute.v1.IGetMachineImageRequest | undefined, + {} | undefined + ] + >; + get( + request: protos.google.cloud.compute.v1.IGetMachineImageRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IMachineImage, + protos.google.cloud.compute.v1.IGetMachineImageRequest | null | undefined, + {} | null | undefined + > + ): void; + get( + request: protos.google.cloud.compute.v1.IGetMachineImageRequest, + callback: Callback< + protos.google.cloud.compute.v1.IMachineImage, + protos.google.cloud.compute.v1.IGetMachineImageRequest | null | undefined, + {} | null | undefined + > + ): void; + get( + request?: protos.google.cloud.compute.v1.IGetMachineImageRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.compute.v1.IMachineImage, + | protos.google.cloud.compute.v1.IGetMachineImageRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.compute.v1.IMachineImage, + protos.google.cloud.compute.v1.IGetMachineImageRequest | null | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.compute.v1.IMachineImage, + protos.google.cloud.compute.v1.IGetMachineImageRequest | 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'] = + gax.routingHeader.fromParams({ + project: request.project || '', + }); + this.initialize(); + return this.innerApiCalls.get(request, options, callback); + } + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * + * @param {Object} request + * The request object that will be sent. + * @param {number} request.optionsRequestedPolicyVersion + * Requested IAM Policy version. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.resource + * Name or id of the resource 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 [Policy]{@link google.cloud.compute.v1.Policy}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1/machine_images.get_iam_policy.js + * region_tag:compute_v1_generated_MachineImages_GetIamPolicy_async + */ + getIamPolicy( + request?: protos.google.cloud.compute.v1.IGetIamPolicyMachineImageRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.compute.v1.IPolicy, + ( + | protos.google.cloud.compute.v1.IGetIamPolicyMachineImageRequest + | undefined + ), + {} | undefined + ] + >; + getIamPolicy( + request: protos.google.cloud.compute.v1.IGetIamPolicyMachineImageRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IPolicy, + | protos.google.cloud.compute.v1.IGetIamPolicyMachineImageRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getIamPolicy( + request: protos.google.cloud.compute.v1.IGetIamPolicyMachineImageRequest, + callback: Callback< + protos.google.cloud.compute.v1.IPolicy, + | protos.google.cloud.compute.v1.IGetIamPolicyMachineImageRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getIamPolicy( + request?: protos.google.cloud.compute.v1.IGetIamPolicyMachineImageRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.compute.v1.IPolicy, + | protos.google.cloud.compute.v1.IGetIamPolicyMachineImageRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.compute.v1.IPolicy, + | protos.google.cloud.compute.v1.IGetIamPolicyMachineImageRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.compute.v1.IPolicy, + ( + | protos.google.cloud.compute.v1.IGetIamPolicyMachineImageRequest + | 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'] = + gax.routingHeader.fromParams({ + project: request.project || '', + }); + this.initialize(); + return this.innerApiCalls.getIamPolicy(request, options, callback); + } + /** + * Creates a machine image in the specified project using the data that is included in the request. If you are creating a new machine image to update an existing instance, your new machine image should use the same network or, if applicable, the same subnetwork as the original instance. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.cloud.compute.v1.MachineImage} request.machineImageResource + * The body resource for 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.sourceInstance + * Required. Source instance that is used to create the machine image from. + * @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 + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * 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/machine_images.insert.js + * region_tag:compute_v1_generated_MachineImages_Insert_async + */ + insert( + request?: protos.google.cloud.compute.v1.IInsertMachineImageRequest, + options?: CallOptions + ): Promise< + [ + LROperation, + protos.google.cloud.compute.v1.IOperation | undefined, + {} | undefined + ] + >; + insert( + request: protos.google.cloud.compute.v1.IInsertMachineImageRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.IInsertMachineImageRequest + | null + | undefined, + {} | null | undefined + > + ): void; + insert( + request: protos.google.cloud.compute.v1.IInsertMachineImageRequest, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.IInsertMachineImageRequest + | null + | undefined, + {} | null | undefined + > + ): void; + insert( + request?: protos.google.cloud.compute.v1.IInsertMachineImageRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.IInsertMachineImageRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.IInsertMachineImageRequest + | 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'] = + gax.routingHeader.fromParams({ + project: request.project || '', + }); + this.initialize(); + return this.innerApiCalls + .insert(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, + ]; + } + ); + } + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.cloud.compute.v1.GlobalSetPolicyRequest} request.globalSetPolicyRequestResource + * The body resource for this request + * @param {string} request.project + * Project ID for this request. + * @param {string} request.resource + * Name or id of the resource 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 [Policy]{@link google.cloud.compute.v1.Policy}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1/machine_images.set_iam_policy.js + * region_tag:compute_v1_generated_MachineImages_SetIamPolicy_async + */ + setIamPolicy( + request?: protos.google.cloud.compute.v1.ISetIamPolicyMachineImageRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.compute.v1.IPolicy, + ( + | protos.google.cloud.compute.v1.ISetIamPolicyMachineImageRequest + | undefined + ), + {} | undefined + ] + >; + setIamPolicy( + request: protos.google.cloud.compute.v1.ISetIamPolicyMachineImageRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IPolicy, + | protos.google.cloud.compute.v1.ISetIamPolicyMachineImageRequest + | null + | undefined, + {} | null | undefined + > + ): void; + setIamPolicy( + request: protos.google.cloud.compute.v1.ISetIamPolicyMachineImageRequest, + callback: Callback< + protos.google.cloud.compute.v1.IPolicy, + | protos.google.cloud.compute.v1.ISetIamPolicyMachineImageRequest + | null + | undefined, + {} | null | undefined + > + ): void; + setIamPolicy( + request?: protos.google.cloud.compute.v1.ISetIamPolicyMachineImageRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.compute.v1.IPolicy, + | protos.google.cloud.compute.v1.ISetIamPolicyMachineImageRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.compute.v1.IPolicy, + | protos.google.cloud.compute.v1.ISetIamPolicyMachineImageRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.compute.v1.IPolicy, + ( + | protos.google.cloud.compute.v1.ISetIamPolicyMachineImageRequest + | 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'] = + gax.routingHeader.fromParams({ + project: request.project || '', + }); + this.initialize(); + return this.innerApiCalls.setIamPolicy(request, options, callback); + } + /** + * Returns permissions that a caller has on the specified resource. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.resource + * Name or id of the resource for this request. + * @param {google.cloud.compute.v1.TestPermissionsRequest} request.testPermissionsRequestResource + * The body resource 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 [TestPermissionsResponse]{@link google.cloud.compute.v1.TestPermissionsResponse}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1/machine_images.test_iam_permissions.js + * region_tag:compute_v1_generated_MachineImages_TestIamPermissions_async + */ + testIamPermissions( + request?: protos.google.cloud.compute.v1.ITestIamPermissionsMachineImageRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.compute.v1.ITestPermissionsResponse, + ( + | protos.google.cloud.compute.v1.ITestIamPermissionsMachineImageRequest + | undefined + ), + {} | undefined + ] + >; + testIamPermissions( + request: protos.google.cloud.compute.v1.ITestIamPermissionsMachineImageRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.ITestPermissionsResponse, + | protos.google.cloud.compute.v1.ITestIamPermissionsMachineImageRequest + | null + | undefined, + {} | null | undefined + > + ): void; + testIamPermissions( + request: protos.google.cloud.compute.v1.ITestIamPermissionsMachineImageRequest, + callback: Callback< + protos.google.cloud.compute.v1.ITestPermissionsResponse, + | protos.google.cloud.compute.v1.ITestIamPermissionsMachineImageRequest + | null + | undefined, + {} | null | undefined + > + ): void; + testIamPermissions( + request?: protos.google.cloud.compute.v1.ITestIamPermissionsMachineImageRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.compute.v1.ITestPermissionsResponse, + | protos.google.cloud.compute.v1.ITestIamPermissionsMachineImageRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.compute.v1.ITestPermissionsResponse, + | protos.google.cloud.compute.v1.ITestIamPermissionsMachineImageRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.compute.v1.ITestPermissionsResponse, + ( + | protos.google.cloud.compute.v1.ITestIamPermissionsMachineImageRequest + | 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'] = + gax.routingHeader.fromParams({ + project: request.project || '', + }); + this.initialize(); + return this.innerApiCalls.testIamPermissions(request, options, callback); + } + + /** + * Retrieves a list of machine images that are contained within 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. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` + * @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 {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 [MachineImage]{@link google.cloud.compute.v1.MachineImage}. + * 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 + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + list( + request?: protos.google.cloud.compute.v1.IListMachineImagesRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.compute.v1.IMachineImage[], + protos.google.cloud.compute.v1.IListMachineImagesRequest | null, + protos.google.cloud.compute.v1.IMachineImageList + ] + >; + list( + request: protos.google.cloud.compute.v1.IListMachineImagesRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.compute.v1.IListMachineImagesRequest, + protos.google.cloud.compute.v1.IMachineImageList | null | undefined, + protos.google.cloud.compute.v1.IMachineImage + > + ): void; + list( + request: protos.google.cloud.compute.v1.IListMachineImagesRequest, + callback: PaginationCallback< + protos.google.cloud.compute.v1.IListMachineImagesRequest, + protos.google.cloud.compute.v1.IMachineImageList | null | undefined, + protos.google.cloud.compute.v1.IMachineImage + > + ): void; + list( + request?: protos.google.cloud.compute.v1.IListMachineImagesRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.compute.v1.IListMachineImagesRequest, + protos.google.cloud.compute.v1.IMachineImageList | null | undefined, + protos.google.cloud.compute.v1.IMachineImage + >, + callback?: PaginationCallback< + protos.google.cloud.compute.v1.IListMachineImagesRequest, + protos.google.cloud.compute.v1.IMachineImageList | null | undefined, + protos.google.cloud.compute.v1.IMachineImage + > + ): Promise< + [ + protos.google.cloud.compute.v1.IMachineImage[], + protos.google.cloud.compute.v1.IListMachineImagesRequest | null, + protos.google.cloud.compute.v1.IMachineImageList + ] + > | 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'] = + gax.routingHeader.fromParams({ + project: request.project || '', + }); + 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. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` + * @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 {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 [MachineImage]{@link google.cloud.compute.v1.MachineImage} 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 + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listStream( + request?: protos.google.cloud.compute.v1.IListMachineImagesRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + project: request.project || '', + }); + const defaultCallSettings = this._defaults['list']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.list.createStream( + this.innerApiCalls.list as gax.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. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` + * @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 {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 [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [MachineImage]{@link google.cloud.compute.v1.MachineImage}. 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 + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example include:samples/generated/v1/machine_images.list.js + * region_tag:compute_v1_generated_MachineImages_List_async + */ + listAsync( + request?: protos.google.cloud.compute.v1.IListMachineImagesRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + project: request.project || '', + }); + 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 unknown as RequestType, + 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 { + this.initialize(); + if (!this._terminated) { + return this.machineImagesStub!.then(stub => { + this._terminated = true; + stub.close(); + }); + } + return Promise.resolve(); + } +} diff --git a/packages/google-cloud-compute/src/v1/machine_images_client_config.json b/packages/google-cloud-compute/src/v1/machine_images_client_config.json new file mode 100644 index 00000000000..5af5fa92f33 --- /dev/null +++ b/packages/google-cloud-compute/src/v1/machine_images_client_config.json @@ -0,0 +1,54 @@ +{ + "interfaces": { + "google.cloud.compute.v1.MachineImages": { + "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": { + "Delete": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "Get": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetIamPolicy": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "Insert": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "List": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "SetIamPolicy": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "TestIamPermissions": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/packages/google-cloud-compute/src/v1/machine_images_proto_list.json b/packages/google-cloud-compute/src/v1/machine_images_proto_list.json new file mode 100644 index 00000000000..4ad01aef24b --- /dev/null +++ b/packages/google-cloud-compute/src/v1/machine_images_proto_list.json @@ -0,0 +1,3 @@ +[ + "../../protos/google/cloud/compute/v1/compute.proto" +] 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 e8a1b2cbe6e..e345996fc20 100644 --- a/packages/google-cloud-compute/src/v1/machine_types_client.ts +++ b/packages/google-cloud-compute/src/v1/machine_types_client.ts @@ -410,7 +410,7 @@ export class MachineTypesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {boolean} request.includeAllScopes * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. * @param {number} request.maxResults @@ -467,7 +467,7 @@ export class MachineTypesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -565,7 +565,7 @@ export class MachineTypesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -619,7 +619,7 @@ export class MachineTypesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 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 1874bcd703f..5c4d1f116a2 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 @@ -1033,7 +1033,7 @@ export class NetworkEndpointGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {boolean} request.includeAllScopes * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. * @param {number} request.maxResults @@ -1090,7 +1090,7 @@ export class NetworkEndpointGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1196,7 +1196,7 @@ export class NetworkEndpointGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1250,7 +1250,7 @@ export class NetworkEndpointGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1303,7 +1303,7 @@ export class NetworkEndpointGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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.networkEndpointGroup @@ -1413,7 +1413,7 @@ export class NetworkEndpointGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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.networkEndpointGroup @@ -1471,7 +1471,7 @@ export class NetworkEndpointGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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.networkEndpointGroup diff --git a/packages/google-cloud-compute/src/v1/networks_client.ts b/packages/google-cloud-compute/src/v1/networks_client.ts index 98c3d9350ba..59f8df75806 100644 --- a/packages/google-cloud-compute/src/v1/networks_client.ts +++ b/packages/google-cloud-compute/src/v1/networks_client.ts @@ -1346,7 +1346,7 @@ export class NetworksClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1442,7 +1442,7 @@ export class NetworksClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1494,7 +1494,7 @@ export class NetworksClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1548,7 +1548,7 @@ export class NetworksClient { * The direction of the exchanged routes. * Check the Direction enum for the list of possible values. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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.network @@ -1661,7 +1661,7 @@ export class NetworksClient { * The direction of the exchanged routes. * Check the Direction enum for the list of possible values. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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.network @@ -1722,7 +1722,7 @@ export class NetworksClient { * The direction of the exchanged routes. * Check the Direction enum for the list of possible values. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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.network 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 c5d1cc586ca..00a6f734e01 100644 --- a/packages/google-cloud-compute/src/v1/node_groups_client.ts +++ b/packages/google-cloud-compute/src/v1/node_groups_client.ts @@ -1450,7 +1450,7 @@ export class NodeGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {boolean} request.includeAllScopes * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. * @param {number} request.maxResults @@ -1507,7 +1507,7 @@ export class NodeGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1605,7 +1605,7 @@ export class NodeGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1659,7 +1659,7 @@ export class NodeGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1712,7 +1712,7 @@ export class NodeGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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.nodeGroup @@ -1814,7 +1814,7 @@ export class NodeGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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.nodeGroup @@ -1870,7 +1870,7 @@ export class NodeGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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.nodeGroup 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 b959eb5eae3..7de786889cb 100644 --- a/packages/google-cloud-compute/src/v1/node_templates_client.ts +++ b/packages/google-cloud-compute/src/v1/node_templates_client.ts @@ -972,7 +972,7 @@ export class NodeTemplatesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {boolean} request.includeAllScopes * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. * @param {number} request.maxResults @@ -1029,7 +1029,7 @@ export class NodeTemplatesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1127,7 +1127,7 @@ export class NodeTemplatesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1181,7 +1181,7 @@ export class NodeTemplatesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 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 e94814e71ae..b0980954575 100644 --- a/packages/google-cloud-compute/src/v1/node_types_client.ts +++ b/packages/google-cloud-compute/src/v1/node_types_client.ts @@ -408,7 +408,7 @@ export class NodeTypesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {boolean} request.includeAllScopes * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. * @param {number} request.maxResults @@ -465,7 +465,7 @@ export class NodeTypesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -563,7 +563,7 @@ export class NodeTypesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -617,7 +617,7 @@ export class NodeTypesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 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 2164ed6461b..57ca494ed80 100644 --- a/packages/google-cloud-compute/src/v1/packet_mirrorings_client.ts +++ b/packages/google-cloud-compute/src/v1/packet_mirrorings_client.ts @@ -895,7 +895,7 @@ export class PacketMirroringsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {boolean} request.includeAllScopes * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. * @param {number} request.maxResults @@ -952,7 +952,7 @@ export class PacketMirroringsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1052,7 +1052,7 @@ export class PacketMirroringsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1106,7 +1106,7 @@ export class PacketMirroringsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 diff --git a/packages/google-cloud-compute/src/v1/projects_client.ts b/packages/google-cloud-compute/src/v1/projects_client.ts index 45fccfb8bbe..9bb3b8b8dfd 100644 --- a/packages/google-cloud-compute/src/v1/projects_client.ts +++ b/packages/google-cloud-compute/src/v1/projects_client.ts @@ -804,7 +804,7 @@ export class ProjectsClient { ); } /** - * Returns the specified Project resource. + * Returns the specified Project resource. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the `quotas` field). To exclude one or more fields, set your request's `fields` query parameter to only include the fields you need. For example, to only include the `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request. * * @param {Object} request * The request object that will be sent. @@ -1092,7 +1092,7 @@ export class ProjectsClient { ); } /** - * Moves an instance and its attached persistent disks from one zone to another. + * 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). * * @param {Object} request * The request object that will be sent. @@ -1578,7 +1578,7 @@ export class ProjectsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1682,7 +1682,7 @@ export class ProjectsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1734,7 +1734,7 @@ export class ProjectsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1785,7 +1785,7 @@ export class ProjectsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1883,7 +1883,7 @@ export class ProjectsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1937,7 +1937,7 @@ export class ProjectsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 diff --git a/packages/google-cloud-compute/src/v1/public_advertised_prefixes_client.ts b/packages/google-cloud-compute/src/v1/public_advertised_prefixes_client.ts index 585bd091d9c..dd6f7b62d1d 100644 --- a/packages/google-cloud-compute/src/v1/public_advertised_prefixes_client.ts +++ b/packages/google-cloud-compute/src/v1/public_advertised_prefixes_client.ts @@ -326,7 +326,7 @@ export class PublicAdvertisedPrefixesClient { * @param {string} request.publicAdvertisedPrefix * Name of the PublicAdvertisedPrefix resource to delete. * @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). end_interface: MixerMutationRequestBuilder + * 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 {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. @@ -545,7 +545,7 @@ export class PublicAdvertisedPrefixesClient { * @param {google.cloud.compute.v1.PublicAdvertisedPrefix} request.publicAdvertisedPrefixResource * The body resource 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). end_interface: MixerMutationRequestBuilder + * 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 {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. @@ -667,7 +667,7 @@ export class PublicAdvertisedPrefixesClient { * @param {google.cloud.compute.v1.PublicAdvertisedPrefix} request.publicAdvertisedPrefixResource * The body resource 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). end_interface: MixerMutationRequestBuilder + * 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 {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. @@ -784,7 +784,7 @@ export class PublicAdvertisedPrefixesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -888,7 +888,7 @@ export class PublicAdvertisedPrefixesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -940,7 +940,7 @@ export class PublicAdvertisedPrefixesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 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 c480b132f42..36767eaad66 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 @@ -333,7 +333,7 @@ export class PublicDelegatedPrefixesClient { * @param {string} request.region * Name of the region of 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). end_interface: MixerMutationRequestBuilder + * 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 {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. @@ -556,7 +556,7 @@ export class PublicDelegatedPrefixesClient { * @param {string} request.region * Name of the region of 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). end_interface: MixerMutationRequestBuilder + * 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 {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. @@ -680,7 +680,7 @@ export class PublicDelegatedPrefixesClient { * @param {string} request.region * Name of the region 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). end_interface: MixerMutationRequestBuilder + * 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 {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. @@ -798,7 +798,7 @@ export class PublicDelegatedPrefixesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {boolean} request.includeAllScopes * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. * @param {number} request.maxResults @@ -858,7 +858,7 @@ export class PublicDelegatedPrefixesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -964,7 +964,7 @@ export class PublicDelegatedPrefixesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1018,7 +1018,7 @@ export class PublicDelegatedPrefixesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 diff --git a/packages/google-cloud-compute/src/v1/region_autoscalers_client.ts b/packages/google-cloud-compute/src/v1/region_autoscalers_client.ts index b0045f641d4..3173bff9f11 100644 --- a/packages/google-cloud-compute/src/v1/region_autoscalers_client.ts +++ b/packages/google-cloud-compute/src/v1/region_autoscalers_client.ts @@ -909,7 +909,7 @@ export class RegionAutoscalersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1009,7 +1009,7 @@ export class RegionAutoscalersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1063,7 +1063,7 @@ export class RegionAutoscalersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 diff --git a/packages/google-cloud-compute/src/v1/region_backend_services_client.ts b/packages/google-cloud-compute/src/v1/region_backend_services_client.ts index 869d49aa92f..9bd8acdf42f 100644 --- a/packages/google-cloud-compute/src/v1/region_backend_services_client.ts +++ b/packages/google-cloud-compute/src/v1/region_backend_services_client.ts @@ -1019,7 +1019,7 @@ export class RegionBackendServicesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1117,7 +1117,7 @@ export class RegionBackendServicesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1171,7 +1171,7 @@ export class RegionBackendServicesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 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 1335c50551b..0dd3d689458 100644 --- a/packages/google-cloud-compute/src/v1/region_commitments_client.ts +++ b/packages/google-cloud-compute/src/v1/region_commitments_client.ts @@ -233,6 +233,7 @@ export class RegionCommitmentsClient { 'get', 'insert', 'list', + 'update', ]; for (const methodName of regionCommitmentsStubMethods) { const callPromise = this.regionCommitmentsStub.then( @@ -535,6 +536,133 @@ export class RegionCommitmentsClient { } ); } + /** + * Updates the specified commitment with the data included in the request. Update is performed only on selected fields included as part of update-mask. Only the following fields can be modified: auto_renew. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.commitment + * Name of the commitment for which auto renew is being updated. + * @param {google.cloud.compute.v1.Commitment} request.commitmentResource + * The body resource for this request + * @param {string} request.paths + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * Name of the region 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.updateMask + * update_mask indicates fields to be updated as part of 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 + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * 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/region_commitments.update.js + * region_tag:compute_v1_generated_RegionCommitments_Update_async + */ + update( + request?: protos.google.cloud.compute.v1.IUpdateRegionCommitmentRequest, + options?: CallOptions + ): Promise< + [ + LROperation, + protos.google.cloud.compute.v1.IOperation | undefined, + {} | undefined + ] + >; + update( + request: protos.google.cloud.compute.v1.IUpdateRegionCommitmentRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.IUpdateRegionCommitmentRequest + | null + | undefined, + {} | null | undefined + > + ): void; + update( + request: protos.google.cloud.compute.v1.IUpdateRegionCommitmentRequest, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.IUpdateRegionCommitmentRequest + | null + | undefined, + {} | null | undefined + > + ): void; + update( + request?: protos.google.cloud.compute.v1.IUpdateRegionCommitmentRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.IUpdateRegionCommitmentRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.IUpdateRegionCommitmentRequest + | 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'] = + gax.routingHeader.fromParams({ + project: request.project || '', + }); + this.initialize(); + return this.innerApiCalls + .update(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, + ]; + } + ); + } /** * Equivalent to `aggregatedList`, but returns an iterable object. @@ -543,7 +671,7 @@ export class RegionCommitmentsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {boolean} request.includeAllScopes * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. * @param {number} request.maxResults @@ -600,7 +728,7 @@ export class RegionCommitmentsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -698,7 +826,7 @@ export class RegionCommitmentsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -752,7 +880,7 @@ export class RegionCommitmentsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 diff --git a/packages/google-cloud-compute/src/v1/region_commitments_client_config.json b/packages/google-cloud-compute/src/v1/region_commitments_client_config.json index 02e9f7fdd3e..848cd544f25 100644 --- a/packages/google-cloud-compute/src/v1/region_commitments_client_config.json +++ b/packages/google-cloud-compute/src/v1/region_commitments_client_config.json @@ -35,6 +35,10 @@ "List": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" + }, + "Update": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" } } } diff --git a/packages/google-cloud-compute/src/v1/region_disk_types_client.ts b/packages/google-cloud-compute/src/v1/region_disk_types_client.ts index a1334826107..386e83f935a 100644 --- a/packages/google-cloud-compute/src/v1/region_disk_types_client.ts +++ b/packages/google-cloud-compute/src/v1/region_disk_types_client.ts @@ -410,7 +410,7 @@ export class RegionDiskTypesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -508,7 +508,7 @@ export class RegionDiskTypesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -562,7 +562,7 @@ export class RegionDiskTypesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 diff --git a/packages/google-cloud-compute/src/v1/region_disks_client.ts b/packages/google-cloud-compute/src/v1/region_disks_client.ts index 15265f215e7..58ca40fb865 100644 --- a/packages/google-cloud-compute/src/v1/region_disks_client.ts +++ b/packages/google-cloud-compute/src/v1/region_disks_client.ts @@ -446,7 +446,7 @@ export class RegionDisksClient { ); } /** - * Creates a snapshot of this regional disk. + * Creates a snapshot of a specified persistent disk. For regular snapshot creation, consider using snapshots.insert instead, as that method supports more features, such as creating snapshots in a project different from the source disk project. * * @param {Object} request * The request object that will be sent. @@ -1580,7 +1580,7 @@ export class RegionDisksClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1678,7 +1678,7 @@ export class RegionDisksClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1732,7 +1732,7 @@ export class RegionDisksClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 diff --git a/packages/google-cloud-compute/src/v1/region_health_check_services_client.ts b/packages/google-cloud-compute/src/v1/region_health_check_services_client.ts index 195ea7d8d21..ea6c0a18622 100644 --- a/packages/google-cloud-compute/src/v1/region_health_check_services_client.ts +++ b/packages/google-cloud-compute/src/v1/region_health_check_services_client.ts @@ -792,7 +792,7 @@ export class RegionHealthCheckServicesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -898,7 +898,7 @@ export class RegionHealthCheckServicesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -952,7 +952,7 @@ export class RegionHealthCheckServicesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 diff --git a/packages/google-cloud-compute/src/v1/region_health_checks_client.ts b/packages/google-cloud-compute/src/v1/region_health_checks_client.ts index 04cf2159ccf..953230b1824 100644 --- a/packages/google-cloud-compute/src/v1/region_health_checks_client.ts +++ b/packages/google-cloud-compute/src/v1/region_health_checks_client.ts @@ -909,7 +909,7 @@ export class RegionHealthChecksClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1007,7 +1007,7 @@ export class RegionHealthChecksClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1061,7 +1061,7 @@ export class RegionHealthChecksClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 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 88d2a7bed12..af5c398d16d 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 @@ -2181,7 +2181,7 @@ export class RegionInstanceGroupManagersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -2287,7 +2287,7 @@ export class RegionInstanceGroupManagersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -2341,7 +2341,7 @@ export class RegionInstanceGroupManagersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -2394,7 +2394,7 @@ export class RegionInstanceGroupManagersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {string} request.instanceGroupManager * The name of the managed instance group. It must be a string that meets the requirements in RFC1035, or an unsigned long integer: must match regexp pattern: (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. * @param {number} request.maxResults @@ -2502,7 +2502,7 @@ export class RegionInstanceGroupManagersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {string} request.instanceGroupManager * The name of the managed instance group. It must be a string that meets the requirements in RFC1035, or an unsigned long integer: must match regexp pattern: (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. * @param {number} request.maxResults @@ -2558,7 +2558,7 @@ export class RegionInstanceGroupManagersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {string} request.instanceGroupManager * The name of the managed instance group. It must be a string that meets the requirements in RFC1035, or an unsigned long integer: must match regexp pattern: (?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)|1-9{0,19}. * @param {number} request.maxResults @@ -2613,7 +2613,7 @@ export class RegionInstanceGroupManagersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {string} request.instanceGroupManager * The name of the managed instance group. * @param {number} request.maxResults @@ -2721,7 +2721,7 @@ export class RegionInstanceGroupManagersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {string} request.instanceGroupManager * The name of the managed instance group. * @param {number} request.maxResults @@ -2777,7 +2777,7 @@ export class RegionInstanceGroupManagersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {string} request.instanceGroupManager * The name of the managed instance group. * @param {number} request.maxResults @@ -2832,7 +2832,7 @@ export class RegionInstanceGroupManagersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {string} request.instanceGroupManager * The name of the managed instance group. It should conform to RFC1035. * @param {number} request.maxResults @@ -2944,7 +2944,7 @@ export class RegionInstanceGroupManagersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {string} request.instanceGroupManager * The name of the managed instance group. It should conform to RFC1035. * @param {number} request.maxResults @@ -3000,7 +3000,7 @@ export class RegionInstanceGroupManagersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {string} request.instanceGroupManager * The name of the managed instance group. It should conform to RFC1035. * @param {number} request.maxResults diff --git a/packages/google-cloud-compute/src/v1/region_instance_groups_client.ts b/packages/google-cloud-compute/src/v1/region_instance_groups_client.ts index 7039129822b..e7b10b24b23 100644 --- a/packages/google-cloud-compute/src/v1/region_instance_groups_client.ts +++ b/packages/google-cloud-compute/src/v1/region_instance_groups_client.ts @@ -544,7 +544,7 @@ export class RegionInstanceGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -650,7 +650,7 @@ export class RegionInstanceGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -704,7 +704,7 @@ export class RegionInstanceGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -757,7 +757,7 @@ export class RegionInstanceGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {string} request.instanceGroup * Name of the regional instance group for which we want to list the instances. * @param {number} request.maxResults @@ -867,7 +867,7 @@ export class RegionInstanceGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {string} request.instanceGroup * Name of the regional instance group for which we want to list the instances. * @param {number} request.maxResults @@ -925,7 +925,7 @@ export class RegionInstanceGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {string} request.instanceGroup * Name of the regional instance group for which we want to list the instances. * @param {number} request.maxResults diff --git a/packages/google-cloud-compute/src/v1/region_network_endpoint_groups_client.ts b/packages/google-cloud-compute/src/v1/region_network_endpoint_groups_client.ts index c525aa3ebf4..60813a54941 100644 --- a/packages/google-cloud-compute/src/v1/region_network_endpoint_groups_client.ts +++ b/packages/google-cloud-compute/src/v1/region_network_endpoint_groups_client.ts @@ -667,7 +667,7 @@ export class RegionNetworkEndpointGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -773,7 +773,7 @@ export class RegionNetworkEndpointGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -827,7 +827,7 @@ export class RegionNetworkEndpointGroupsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 diff --git a/packages/google-cloud-compute/src/v1/region_notification_endpoints_client.ts b/packages/google-cloud-compute/src/v1/region_notification_endpoints_client.ts index d0861eeb744..5176230ad2f 100644 --- a/packages/google-cloud-compute/src/v1/region_notification_endpoints_client.ts +++ b/packages/google-cloud-compute/src/v1/region_notification_endpoints_client.ts @@ -327,7 +327,7 @@ export class RegionNotificationEndpointsClient { * @param {string} request.region * Name of the region scoping 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). end_interface: MixerMutationRequestBuilder + * 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 {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. @@ -550,7 +550,7 @@ export class RegionNotificationEndpointsClient { * @param {string} request.region * Name of the region scoping 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). end_interface: MixerMutationRequestBuilder + * 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 {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. @@ -667,7 +667,7 @@ export class RegionNotificationEndpointsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -773,7 +773,7 @@ export class RegionNotificationEndpointsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -827,7 +827,7 @@ export class RegionNotificationEndpointsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 diff --git a/packages/google-cloud-compute/src/v1/region_operations_client.ts b/packages/google-cloud-compute/src/v1/region_operations_client.ts index 596ab1d6c17..431387b505b 100644 --- a/packages/google-cloud-compute/src/v1/region_operations_client.ts +++ b/packages/google-cloud-compute/src/v1/region_operations_client.ts @@ -599,7 +599,7 @@ export class RegionOperationsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -697,7 +697,7 @@ export class RegionOperationsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -751,7 +751,7 @@ export class RegionOperationsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 diff --git a/packages/google-cloud-compute/src/v1/region_ssl_certificates_client.ts b/packages/google-cloud-compute/src/v1/region_ssl_certificates_client.ts index b38766dabc4..095ca4810f5 100644 --- a/packages/google-cloud-compute/src/v1/region_ssl_certificates_client.ts +++ b/packages/google-cloud-compute/src/v1/region_ssl_certificates_client.ts @@ -324,7 +324,7 @@ export class RegionSslCertificatesClient { * @param {string} request.region * Name of the region scoping 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). end_interface: MixerMutationRequestBuilder + * 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.sslCertificate * Name of the SslCertificate resource to delete. * @param {object} [options] @@ -547,7 +547,7 @@ export class RegionSslCertificatesClient { * @param {string} request.region * Name of the region scoping 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). end_interface: MixerMutationRequestBuilder + * 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 {google.cloud.compute.v1.SslCertificate} request.sslCertificateResource * The body resource for this request * @param {object} [options] @@ -666,7 +666,7 @@ export class RegionSslCertificatesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -764,7 +764,7 @@ export class RegionSslCertificatesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -818,7 +818,7 @@ export class RegionSslCertificatesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 diff --git a/packages/google-cloud-compute/src/v1/region_target_http_proxies_client.ts b/packages/google-cloud-compute/src/v1/region_target_http_proxies_client.ts index 2fb5258e767..a37971b40b0 100644 --- a/packages/google-cloud-compute/src/v1/region_target_http_proxies_client.ts +++ b/packages/google-cloud-compute/src/v1/region_target_http_proxies_client.ts @@ -791,7 +791,7 @@ export class RegionTargetHttpProxiesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -891,7 +891,7 @@ export class RegionTargetHttpProxiesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -945,7 +945,7 @@ export class RegionTargetHttpProxiesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 diff --git a/packages/google-cloud-compute/src/v1/region_target_https_proxies_client.ts b/packages/google-cloud-compute/src/v1/region_target_https_proxies_client.ts index 26ffb792eb2..3ef14fb71f4 100644 --- a/packages/google-cloud-compute/src/v1/region_target_https_proxies_client.ts +++ b/packages/google-cloud-compute/src/v1/region_target_https_proxies_client.ts @@ -327,7 +327,7 @@ export class RegionTargetHttpsProxiesClient { * @param {string} request.region * Name of the region scoping 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). end_interface: MixerMutationRequestBuilder + * 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.targetHttpsProxy * Name of the TargetHttpsProxy resource to delete. * @param {object} [options] @@ -550,7 +550,7 @@ export class RegionTargetHttpsProxiesClient { * @param {string} request.region * Name of the region scoping 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). end_interface: MixerMutationRequestBuilder + * 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 {google.cloud.compute.v1.TargetHttpsProxy} request.targetHttpsProxyResource * The body resource for this request * @param {object} [options] @@ -674,7 +674,7 @@ export class RegionTargetHttpsProxiesClient { * @param {google.cloud.compute.v1.RegionTargetHttpsProxiesSetSslCertificatesRequest} request.regionTargetHttpsProxiesSetSslCertificatesRequestResource * The body resource 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). end_interface: MixerMutationRequestBuilder + * 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.targetHttpsProxy * Name of the TargetHttpsProxy resource to set an SslCertificates resource for. * @param {object} [options] @@ -796,7 +796,7 @@ export class RegionTargetHttpsProxiesClient { * @param {string} request.region * Name of the region scoping 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). end_interface: MixerMutationRequestBuilder + * 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.targetHttpsProxy * Name of the TargetHttpsProxy to set a URL map for. * @param {google.cloud.compute.v1.UrlMapReference} request.urlMapReferenceResource @@ -917,7 +917,7 @@ export class RegionTargetHttpsProxiesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1017,7 +1017,7 @@ export class RegionTargetHttpsProxiesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1071,7 +1071,7 @@ export class RegionTargetHttpsProxiesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 diff --git a/packages/google-cloud-compute/src/v1/region_url_maps_client.ts b/packages/google-cloud-compute/src/v1/region_url_maps_client.ts index 5260a0f4395..c562326323a 100644 --- a/packages/google-cloud-compute/src/v1/region_url_maps_client.ts +++ b/packages/google-cloud-compute/src/v1/region_url_maps_client.ts @@ -1001,7 +1001,7 @@ export class RegionUrlMapsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1099,7 +1099,7 @@ export class RegionUrlMapsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1153,7 +1153,7 @@ export class RegionUrlMapsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 diff --git a/packages/google-cloud-compute/src/v1/regions_client.ts b/packages/google-cloud-compute/src/v1/regions_client.ts index e7444fde6ce..69e7579736e 100644 --- a/packages/google-cloud-compute/src/v1/regions_client.ts +++ b/packages/google-cloud-compute/src/v1/regions_client.ts @@ -309,7 +309,7 @@ export class RegionsClient { // -- Service calls -- // ------------------- /** - * Returns the specified Region resource. Gets a list of available regions by making a list() request. + * Returns the specified Region resource. Gets a list of available regions by making a list() request. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the `quotas` field). To exclude one or more fields, set your request's `fields` query parameter to only include the fields you need. For example, to only include the `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request. * * @param {Object} request * The request object that will be sent. @@ -395,12 +395,12 @@ export class RegionsClient { } /** - * Retrieves the list of region resources available to the specified project. + * Retrieves the list of region resources available to the specified project. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the `items.quotas` field). To exclude one or more fields, set your request's `fields` query parameter to only include the fields you need. For example, to only include the `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request. * * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -496,7 +496,7 @@ export class RegionsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -548,7 +548,7 @@ export class RegionsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 diff --git a/packages/google-cloud-compute/src/v1/reservations_client.ts b/packages/google-cloud-compute/src/v1/reservations_client.ts index de6a7bc8ad0..795015c3893 100644 --- a/packages/google-cloud-compute/src/v1/reservations_client.ts +++ b/packages/google-cloud-compute/src/v1/reservations_client.ts @@ -238,6 +238,7 @@ export class ReservationsClient { 'resize', 'setIamPolicy', 'testIamPermissions', + 'update', ]; for (const methodName of reservationsStubMethods) { const callPromise = this.reservationsStub.then( @@ -1089,6 +1090,133 @@ export class ReservationsClient { this.initialize(); return this.innerApiCalls.testIamPermissions(request, options, callback); } + /** + * Update share settings of the reservation. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.paths + * @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.reservation + * Name of the reservation to update. + * @param {google.cloud.compute.v1.Reservation} request.reservationResource + * The body resource for this request + * @param {string} request.updateMask + * Update_mask indicates fields to be updated as part of this request. + * @param {string} request.zone + * 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 + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * 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/reservations.update.js + * region_tag:compute_v1_generated_Reservations_Update_async + */ + update( + request?: protos.google.cloud.compute.v1.IUpdateReservationRequest, + options?: CallOptions + ): Promise< + [ + LROperation, + protos.google.cloud.compute.v1.IOperation | undefined, + {} | undefined + ] + >; + update( + request: protos.google.cloud.compute.v1.IUpdateReservationRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.IUpdateReservationRequest + | null + | undefined, + {} | null | undefined + > + ): void; + update( + request: protos.google.cloud.compute.v1.IUpdateReservationRequest, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.IUpdateReservationRequest + | null + | undefined, + {} | null | undefined + > + ): void; + update( + request?: protos.google.cloud.compute.v1.IUpdateReservationRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.IUpdateReservationRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.IUpdateReservationRequest + | 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'] = + gax.routingHeader.fromParams({ + project: request.project || '', + }); + this.initialize(); + return this.innerApiCalls + .update(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, + ]; + } + ); + } /** * Equivalent to `aggregatedList`, but returns an iterable object. @@ -1097,7 +1225,7 @@ export class ReservationsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {boolean} request.includeAllScopes * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. * @param {number} request.maxResults @@ -1154,7 +1282,7 @@ export class ReservationsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1252,7 +1380,7 @@ export class ReservationsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1306,7 +1434,7 @@ export class ReservationsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 diff --git a/packages/google-cloud-compute/src/v1/reservations_client_config.json b/packages/google-cloud-compute/src/v1/reservations_client_config.json index 6a9cface71b..22cce787cd2 100644 --- a/packages/google-cloud-compute/src/v1/reservations_client_config.json +++ b/packages/google-cloud-compute/src/v1/reservations_client_config.json @@ -55,6 +55,10 @@ "TestIamPermissions": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" + }, + "Update": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" } } } 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 ad07a922d6f..bdd4cee4da3 100644 --- a/packages/google-cloud-compute/src/v1/resource_policies_client.ts +++ b/packages/google-cloud-compute/src/v1/resource_policies_client.ts @@ -978,7 +978,7 @@ export class ResourcePoliciesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {boolean} request.includeAllScopes * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. * @param {number} request.maxResults @@ -1035,7 +1035,7 @@ export class ResourcePoliciesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1133,7 +1133,7 @@ export class ResourcePoliciesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1187,7 +1187,7 @@ export class ResourcePoliciesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 diff --git a/packages/google-cloud-compute/src/v1/routers_client.ts b/packages/google-cloud-compute/src/v1/routers_client.ts index 1b2082d9181..2be9e43e504 100644 --- a/packages/google-cloud-compute/src/v1/routers_client.ts +++ b/packages/google-cloud-compute/src/v1/routers_client.ts @@ -1076,7 +1076,7 @@ export class RoutersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {boolean} request.includeAllScopes * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. * @param {number} request.maxResults @@ -1133,7 +1133,7 @@ export class RoutersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1241,7 +1241,7 @@ export class RoutersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1297,7 +1297,7 @@ export class RoutersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1352,7 +1352,7 @@ export class RoutersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1450,7 +1450,7 @@ export class RoutersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1504,7 +1504,7 @@ export class RoutersClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 diff --git a/packages/google-cloud-compute/src/v1/routes_client.ts b/packages/google-cloud-compute/src/v1/routes_client.ts index a774a667f4d..796f9df4c33 100644 --- a/packages/google-cloud-compute/src/v1/routes_client.ts +++ b/packages/google-cloud-compute/src/v1/routes_client.ts @@ -624,7 +624,7 @@ export class RoutesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -720,7 +720,7 @@ export class RoutesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -772,7 +772,7 @@ export class RoutesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 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 906b887544a..7a81fa75642 100644 --- a/packages/google-cloud-compute/src/v1/security_policies_client.ts +++ b/packages/google-cloud-compute/src/v1/security_policies_client.ts @@ -873,7 +873,7 @@ export class SecurityPoliciesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1349,7 +1349,7 @@ export class SecurityPoliciesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1445,7 +1445,7 @@ export class SecurityPoliciesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1497,7 +1497,7 @@ export class SecurityPoliciesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 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 001baab17b8..077583c99d2 100644 --- a/packages/google-cloud-compute/src/v1/service_attachments_client.ts +++ b/packages/google-cloud-compute/src/v1/service_attachments_client.ts @@ -333,7 +333,7 @@ export class ServiceAttachmentsClient { * @param {string} request.region * Name of the region of 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). end_interface: MixerMutationRequestBuilder + * 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.serviceAttachment * Name of the ServiceAttachment resource to delete. * @param {object} [options] @@ -653,7 +653,7 @@ export class ServiceAttachmentsClient { * @param {string} request.region * Name of the region of 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). end_interface: MixerMutationRequestBuilder + * 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 {google.cloud.compute.v1.ServiceAttachment} request.serviceAttachmentResource * The body resource for this request * @param {object} [options] @@ -775,7 +775,7 @@ export class ServiceAttachmentsClient { * @param {string} request.region * The region scoping this request and should conform to RFC1035. * @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). end_interface: MixerMutationRequestBuilder + * 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.serviceAttachment * The resource id of the ServiceAttachment to patch. It should conform to RFC1035 resource name or be a string form on an unsigned long number. * @param {google.cloud.compute.v1.ServiceAttachment} request.serviceAttachmentResource @@ -1103,7 +1103,7 @@ export class ServiceAttachmentsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {boolean} request.includeAllScopes * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. * @param {number} request.maxResults @@ -1160,7 +1160,7 @@ export class ServiceAttachmentsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1260,7 +1260,7 @@ export class ServiceAttachmentsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1314,7 +1314,7 @@ export class ServiceAttachmentsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 diff --git a/packages/google-cloud-compute/src/v1/snapshots_client.ts b/packages/google-cloud-compute/src/v1/snapshots_client.ts index 14c8eab9ffe..390b0ec4087 100644 --- a/packages/google-cloud-compute/src/v1/snapshots_client.ts +++ b/packages/google-cloud-compute/src/v1/snapshots_client.ts @@ -227,6 +227,7 @@ export class SnapshotsClient { 'delete', 'get', 'getIamPolicy', + 'insert', 'list', 'setIamPolicy', 'setLabels', @@ -610,6 +611,120 @@ export class SnapshotsClient { this.initialize(); return this.innerApiCalls.getIamPolicy(request, options, callback); } + /** + * Creates a snapshot in the specified project using the data included in the request. For regular snapshot creation, consider using this method instead of disks.createSnapshot, as this method supports more features, such as creating snapshots in a project different from the source disk project. + * + * @param {Object} request + * The request object that will be sent. + * @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 {google.cloud.compute.v1.Snapshot} request.snapshotResource + * The body resource 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 + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * 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/snapshots.insert.js + * region_tag:compute_v1_generated_Snapshots_Insert_async + */ + insert( + request?: protos.google.cloud.compute.v1.IInsertSnapshotRequest, + options?: CallOptions + ): Promise< + [ + LROperation, + protos.google.cloud.compute.v1.IOperation | undefined, + {} | undefined + ] + >; + insert( + request: protos.google.cloud.compute.v1.IInsertSnapshotRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IInsertSnapshotRequest | null | undefined, + {} | null | undefined + > + ): void; + insert( + request: protos.google.cloud.compute.v1.IInsertSnapshotRequest, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IInsertSnapshotRequest | null | undefined, + {} | null | undefined + > + ): void; + insert( + request?: protos.google.cloud.compute.v1.IInsertSnapshotRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.IInsertSnapshotRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IInsertSnapshotRequest | 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'] = + gax.routingHeader.fromParams({ + project: request.project || '', + }); + this.initialize(); + return this.innerApiCalls + .insert(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, + ]; + } + ); + } /** * Sets the access control policy on the specified resource. Replaces any existing policy. * @@ -933,7 +1048,7 @@ export class SnapshotsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1029,7 +1144,7 @@ export class SnapshotsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1081,7 +1196,7 @@ export class SnapshotsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 diff --git a/packages/google-cloud-compute/src/v1/snapshots_client_config.json b/packages/google-cloud-compute/src/v1/snapshots_client_config.json index 4449801d9b2..4043bbff9f1 100644 --- a/packages/google-cloud-compute/src/v1/snapshots_client_config.json +++ b/packages/google-cloud-compute/src/v1/snapshots_client_config.json @@ -32,6 +32,10 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "Insert": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "List": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" 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 27ec76d54fc..eebbb73cc01 100644 --- a/packages/google-cloud-compute/src/v1/ssl_certificates_client.ts +++ b/packages/google-cloud-compute/src/v1/ssl_certificates_client.ts @@ -327,7 +327,7 @@ export class SslCertificatesClient { * @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). end_interface: MixerMutationRequestBuilder + * 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.sslCertificate * Name of the SslCertificate resource to delete. * @param {object} [options] @@ -540,7 +540,7 @@ export class SslCertificatesClient { * @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). end_interface: MixerMutationRequestBuilder + * 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 {google.cloud.compute.v1.SslCertificate} request.sslCertificateResource * The body resource for this request * @param {object} [options] @@ -660,7 +660,7 @@ export class SslCertificatesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {boolean} request.includeAllScopes * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. * @param {number} request.maxResults @@ -717,7 +717,7 @@ export class SslCertificatesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -813,7 +813,7 @@ export class SslCertificatesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -865,7 +865,7 @@ export class SslCertificatesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 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 69e16998bc7..cefe6a35b37 100644 --- a/packages/google-cloud-compute/src/v1/ssl_policies_client.ts +++ b/packages/google-cloud-compute/src/v1/ssl_policies_client.ts @@ -636,7 +636,7 @@ export class SslPoliciesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -860,7 +860,7 @@ export class SslPoliciesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -956,7 +956,7 @@ export class SslPoliciesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1008,7 +1008,7 @@ export class SslPoliciesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 diff --git a/packages/google-cloud-compute/src/v1/subnetworks_client.ts b/packages/google-cloud-compute/src/v1/subnetworks_client.ts index 5e22630ea1f..f86d494ec83 100644 --- a/packages/google-cloud-compute/src/v1/subnetworks_client.ts +++ b/packages/google-cloud-compute/src/v1/subnetworks_client.ts @@ -1337,7 +1337,7 @@ export class SubnetworksClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {boolean} request.includeAllScopes * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. * @param {number} request.maxResults @@ -1394,7 +1394,7 @@ export class SubnetworksClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1492,7 +1492,7 @@ export class SubnetworksClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1546,7 +1546,7 @@ export class SubnetworksClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1599,7 +1599,7 @@ export class SubnetworksClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1703,7 +1703,7 @@ export class SubnetworksClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1755,7 +1755,7 @@ export class SubnetworksClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 diff --git a/packages/google-cloud-compute/src/v1/target_grpc_proxies_client.ts b/packages/google-cloud-compute/src/v1/target_grpc_proxies_client.ts index a629cef4536..75727f1743c 100644 --- a/packages/google-cloud-compute/src/v1/target_grpc_proxies_client.ts +++ b/packages/google-cloud-compute/src/v1/target_grpc_proxies_client.ts @@ -322,7 +322,7 @@ export class TargetGrpcProxiesClient { * @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). end_interface: MixerMutationRequestBuilder + * 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.targetGrpcProxy * Name of the TargetGrpcProxy resource to delete. * @param {object} [options] @@ -535,7 +535,7 @@ export class TargetGrpcProxiesClient { * @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). end_interface: MixerMutationRequestBuilder + * 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 {google.cloud.compute.v1.TargetGrpcProxy} request.targetGrpcProxyResource * The body resource for this request * @param {object} [options] @@ -655,7 +655,7 @@ export class TargetGrpcProxiesClient { * @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). end_interface: MixerMutationRequestBuilder + * 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.targetGrpcProxy * Name of the TargetGrpcProxy resource to patch. * @param {google.cloud.compute.v1.TargetGrpcProxy} request.targetGrpcProxyResource @@ -776,7 +776,7 @@ export class TargetGrpcProxiesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -874,7 +874,7 @@ export class TargetGrpcProxiesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -926,7 +926,7 @@ export class TargetGrpcProxiesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 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 9b808e53654..04cf6d1b402 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 @@ -662,7 +662,7 @@ export class TargetHttpProxiesClient { * @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). end_interface: MixerMutationRequestBuilder + * 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.targetHttpProxy * Name of the TargetHttpProxy resource to patch. * @param {google.cloud.compute.v1.TargetHttpProxy} request.targetHttpProxyResource @@ -906,7 +906,7 @@ export class TargetHttpProxiesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {boolean} request.includeAllScopes * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. * @param {number} request.maxResults @@ -963,7 +963,7 @@ export class TargetHttpProxiesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1061,7 +1061,7 @@ export class TargetHttpProxiesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1113,7 +1113,7 @@ export class TargetHttpProxiesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 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 bec5e701b51..d150ac43ad3 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 @@ -665,7 +665,7 @@ export class TargetHttpsProxiesClient { * @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). end_interface: MixerMutationRequestBuilder + * 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.targetHttpsProxy * Name of the TargetHttpsProxy resource to patch. * @param {google.cloud.compute.v1.TargetHttpsProxy} request.targetHttpsProxyResource @@ -1275,7 +1275,7 @@ export class TargetHttpsProxiesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {boolean} request.includeAllScopes * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. * @param {number} request.maxResults @@ -1332,7 +1332,7 @@ export class TargetHttpsProxiesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1430,7 +1430,7 @@ export class TargetHttpsProxiesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1482,7 +1482,7 @@ export class TargetHttpsProxiesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 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 0296e597ded..11b3aa53160 100644 --- a/packages/google-cloud-compute/src/v1/target_instances_client.ts +++ b/packages/google-cloud-compute/src/v1/target_instances_client.ts @@ -666,7 +666,7 @@ export class TargetInstancesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {boolean} request.includeAllScopes * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. * @param {number} request.maxResults @@ -723,7 +723,7 @@ export class TargetInstancesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -821,7 +821,7 @@ export class TargetInstancesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -875,7 +875,7 @@ export class TargetInstancesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 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 a5742985d85..98902635afa 100644 --- a/packages/google-cloud-compute/src/v1/target_pools_client.ts +++ b/packages/google-cloud-compute/src/v1/target_pools_client.ts @@ -1385,7 +1385,7 @@ export class TargetPoolsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {boolean} request.includeAllScopes * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. * @param {number} request.maxResults @@ -1442,7 +1442,7 @@ export class TargetPoolsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1540,7 +1540,7 @@ export class TargetPoolsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1594,7 +1594,7 @@ export class TargetPoolsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 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 841619f8566..74c88594994 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 @@ -1145,7 +1145,7 @@ export class TargetSslProxiesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1241,7 +1241,7 @@ export class TargetSslProxiesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1293,7 +1293,7 @@ export class TargetSslProxiesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 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 357126a4edb..18fec0b413e 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 @@ -899,7 +899,7 @@ export class TargetTcpProxiesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -995,7 +995,7 @@ export class TargetTcpProxiesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1047,7 +1047,7 @@ export class TargetTcpProxiesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 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 394da3ced61..8fa40003c6e 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 @@ -666,7 +666,7 @@ export class TargetVpnGatewaysClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {boolean} request.includeAllScopes * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. * @param {number} request.maxResults @@ -723,7 +723,7 @@ export class TargetVpnGatewaysClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -823,7 +823,7 @@ export class TargetVpnGatewaysClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -877,7 +877,7 @@ export class TargetVpnGatewaysClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 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 e4649b28386..a3d861f1337 100644 --- a/packages/google-cloud-compute/src/v1/url_maps_client.ts +++ b/packages/google-cloud-compute/src/v1/url_maps_client.ts @@ -1085,7 +1085,7 @@ export class UrlMapsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {boolean} request.includeAllScopes * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. * @param {number} request.maxResults @@ -1142,7 +1142,7 @@ export class UrlMapsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1238,7 +1238,7 @@ export class UrlMapsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1290,7 +1290,7 @@ export class UrlMapsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 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 43859e33747..c06618da073 100644 --- a/packages/google-cloud-compute/src/v1/vpn_gateways_client.ts +++ b/packages/google-cloud-compute/src/v1/vpn_gateways_client.ts @@ -985,7 +985,7 @@ export class VpnGatewaysClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {boolean} request.includeAllScopes * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. * @param {number} request.maxResults @@ -1042,7 +1042,7 @@ export class VpnGatewaysClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1140,7 +1140,7 @@ export class VpnGatewaysClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -1194,7 +1194,7 @@ export class VpnGatewaysClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 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 6e0930f9975..ef59deb2d2f 100644 --- a/packages/google-cloud-compute/src/v1/vpn_tunnels_client.ts +++ b/packages/google-cloud-compute/src/v1/vpn_tunnels_client.ts @@ -648,7 +648,7 @@ export class VpnTunnelsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @param {boolean} request.includeAllScopes * Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. * @param {number} request.maxResults @@ -705,7 +705,7 @@ export class VpnTunnelsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -803,7 +803,7 @@ export class VpnTunnelsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -857,7 +857,7 @@ export class VpnTunnelsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 diff --git a/packages/google-cloud-compute/src/v1/zone_operations_client.ts b/packages/google-cloud-compute/src/v1/zone_operations_client.ts index b8a02c94fa3..6def8c51488 100644 --- a/packages/google-cloud-compute/src/v1/zone_operations_client.ts +++ b/packages/google-cloud-compute/src/v1/zone_operations_client.ts @@ -599,7 +599,7 @@ export class ZoneOperationsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -697,7 +697,7 @@ export class ZoneOperationsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -751,7 +751,7 @@ export class ZoneOperationsClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 diff --git a/packages/google-cloud-compute/src/v1/zones_client.ts b/packages/google-cloud-compute/src/v1/zones_client.ts index 9f241cd823c..fd01708c0af 100644 --- a/packages/google-cloud-compute/src/v1/zones_client.ts +++ b/packages/google-cloud-compute/src/v1/zones_client.ts @@ -400,7 +400,7 @@ export class ZonesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -496,7 +496,7 @@ export class ZonesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 @@ -548,7 +548,7 @@ export class ZonesClient { * @param {Object} request * The request object that will be sent. * @param {string} request.filter - * A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison 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`. 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) ``` + * A filter expression that filters resources listed in the response. The 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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) ``` * @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 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 097fbe6f76a..6acd4283865 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 @@ -53,6 +53,7 @@ function main() { const interconnectsClient = new compute.InterconnectsClient(); const licenseCodesClient = new compute.LicenseCodesClient(); const licensesClient = new compute.LicensesClient(); + const machineImagesClient = new compute.MachineImagesClient(); const machineTypesClient = new compute.MachineTypesClient(); const networkEndpointGroupsClient = new compute.NetworkEndpointGroupsClient(); const networksClient = new compute.NetworksClient(); 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 090efbf3d2b..b36af1043c5 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 @@ -46,6 +46,7 @@ import { InterconnectsClient, LicenseCodesClient, LicensesClient, + MachineImagesClient, MachineTypesClient, NetworkEndpointGroupsClient, NetworksClient, @@ -203,6 +204,9 @@ function doStuffWithLicenseCodesClient(client: LicenseCodesClient) { function doStuffWithLicensesClient(client: LicensesClient) { client.close(); } +function doStuffWithMachineImagesClient(client: MachineImagesClient) { + client.close(); +} function doStuffWithMachineTypesClient(client: MachineTypesClient) { client.close(); } @@ -479,6 +483,9 @@ function main() { const licensesClient = new LicensesClient(); doStuffWithLicensesClient(licensesClient); // check that the client instance can be created + const machineImagesClient = new MachineImagesClient(); + doStuffWithMachineImagesClient(machineImagesClient); + // check that the client instance can be created const machineTypesClient = new MachineTypesClient(); doStuffWithMachineTypesClient(machineTypesClient); // check that the client instance can be created diff --git a/packages/google-cloud-compute/test/gapic_backend_buckets_v1.ts b/packages/google-cloud-compute/test/gapic_backend_buckets_v1.ts index 6ecb49d27ce..bd3fe4d6f7c 100644 --- a/packages/google-cloud-compute/test/gapic_backend_buckets_v1.ts +++ b/packages/google-cloud-compute/test/gapic_backend_buckets_v1.ts @@ -861,6 +861,121 @@ describe('v1.BackendBucketsClient', () => { }); }); + describe('setEdgeSecurityPolicy', () => { + it('invokes setEdgeSecurityPolicy without error', async () => { + const client = new backendbucketsModule.v1.BackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SetEdgeSecurityPolicyBackendBucketRequest() + ); + request.project = ''; + const expectedHeaderRequestParams = 'project='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.setEdgeSecurityPolicy = + stubSimpleCall(expectedResponse); + const [response] = await client.setEdgeSecurityPolicy(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + assert( + (client.innerApiCalls.setEdgeSecurityPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes setEdgeSecurityPolicy without error using callback', async () => { + const client = new backendbucketsModule.v1.BackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SetEdgeSecurityPolicyBackendBucketRequest() + ); + request.project = ''; + const expectedHeaderRequestParams = 'project='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.setEdgeSecurityPolicy = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.setEdgeSecurityPolicy( + 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); + assert( + (client.innerApiCalls.setEdgeSecurityPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes setEdgeSecurityPolicy with error', async () => { + const client = new backendbucketsModule.v1.BackendBucketsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SetEdgeSecurityPolicyBackendBucketRequest() + ); + request.project = ''; + const expectedHeaderRequestParams = 'project='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.setEdgeSecurityPolicy = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.setEdgeSecurityPolicy(request), + expectedError + ); + assert( + (client.innerApiCalls.setEdgeSecurityPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('update', () => { it('invokes update without error', async () => { const client = new backendbucketsModule.v1.BackendBucketsClient({ diff --git a/packages/google-cloud-compute/test/gapic_backend_services_v1.ts b/packages/google-cloud-compute/test/gapic_backend_services_v1.ts index 057b104bb33..04866eb6879 100644 --- a/packages/google-cloud-compute/test/gapic_backend_services_v1.ts +++ b/packages/google-cloud-compute/test/gapic_backend_services_v1.ts @@ -969,6 +969,121 @@ describe('v1.BackendServicesClient', () => { }); }); + describe('setEdgeSecurityPolicy', () => { + it('invokes setEdgeSecurityPolicy without error', async () => { + const client = new backendservicesModule.v1.BackendServicesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SetEdgeSecurityPolicyBackendServiceRequest() + ); + request.project = ''; + const expectedHeaderRequestParams = 'project='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.setEdgeSecurityPolicy = + stubSimpleCall(expectedResponse); + const [response] = await client.setEdgeSecurityPolicy(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + assert( + (client.innerApiCalls.setEdgeSecurityPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes setEdgeSecurityPolicy without error using callback', async () => { + const client = new backendservicesModule.v1.BackendServicesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SetEdgeSecurityPolicyBackendServiceRequest() + ); + request.project = ''; + const expectedHeaderRequestParams = 'project='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.setEdgeSecurityPolicy = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.setEdgeSecurityPolicy( + 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); + assert( + (client.innerApiCalls.setEdgeSecurityPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes setEdgeSecurityPolicy with error', async () => { + const client = new backendservicesModule.v1.BackendServicesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SetEdgeSecurityPolicyBackendServiceRequest() + ); + request.project = ''; + const expectedHeaderRequestParams = 'project='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.setEdgeSecurityPolicy = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.setEdgeSecurityPolicy(request), + expectedError + ); + assert( + (client.innerApiCalls.setEdgeSecurityPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('setSecurityPolicy', () => { it('invokes setSecurityPolicy without error', async () => { const client = new backendservicesModule.v1.BackendServicesClient({ diff --git a/packages/google-cloud-compute/test/gapic_instances_v1.ts b/packages/google-cloud-compute/test/gapic_instances_v1.ts index b98f3f06b9a..3adabbb9117 100644 --- a/packages/google-cloud-compute/test/gapic_instances_v1.ts +++ b/packages/google-cloud-compute/test/gapic_instances_v1.ts @@ -2095,6 +2095,114 @@ describe('v1.InstancesClient', () => { }); }); + describe('resume', () => { + it('invokes resume without error', async () => { + const client = new instancesModule.v1.InstancesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ResumeInstanceRequest() + ); + request.project = ''; + const expectedHeaderRequestParams = 'project='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.resume = stubSimpleCall(expectedResponse); + const [response] = await client.resume(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + assert( + (client.innerApiCalls.resume as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes resume 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.ResumeInstanceRequest() + ); + request.project = ''; + const expectedHeaderRequestParams = 'project='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.resume = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.resume( + 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); + assert( + (client.innerApiCalls.resume as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes resume with error', async () => { + const client = new instancesModule.v1.InstancesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ResumeInstanceRequest() + ); + request.project = ''; + const expectedHeaderRequestParams = 'project='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.resume = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.resume(request), expectedError); + assert( + (client.innerApiCalls.resume as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('sendDiagnosticInterrupt', () => { it('invokes sendDiagnosticInterrupt without error', async () => { const client = new instancesModule.v1.InstancesClient({ @@ -3991,6 +4099,114 @@ describe('v1.InstancesClient', () => { }); }); + describe('suspend', () => { + it('invokes suspend without error', async () => { + const client = new instancesModule.v1.InstancesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SuspendInstanceRequest() + ); + request.project = ''; + const expectedHeaderRequestParams = 'project='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.suspend = stubSimpleCall(expectedResponse); + const [response] = await client.suspend(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + assert( + (client.innerApiCalls.suspend as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes suspend 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.SuspendInstanceRequest() + ); + request.project = ''; + const expectedHeaderRequestParams = 'project='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.suspend = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.suspend( + 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); + assert( + (client.innerApiCalls.suspend as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes suspend with error', async () => { + const client = new instancesModule.v1.InstancesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SuspendInstanceRequest() + ); + request.project = ''; + const expectedHeaderRequestParams = 'project='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.suspend = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.suspend(request), expectedError); + assert( + (client.innerApiCalls.suspend as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('testIamPermissions', () => { it('invokes testIamPermissions without error', async () => { const client = new instancesModule.v1.InstancesClient({ diff --git a/packages/google-cloud-compute/test/gapic_machine_images_v1.ts b/packages/google-cloud-compute/test/gapic_machine_images_v1.ts new file mode 100644 index 00000000000..d47f21ee462 --- /dev/null +++ b/packages/google-cloud-compute/test/gapic_machine_images_v1.ts @@ -0,0 +1,1164 @@ +// Copyright 2022 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 machineimagesModule from '../src'; + +import {PassThrough} from 'stream'; + +import {GoogleAuth, protobuf} from 'google-gax'; + +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.MachineImagesClient', () => { + let googleAuth: GoogleAuth; + beforeEach(() => { + googleAuth = { + getClient: sinon.stub().resolves({ + getRequestHeaders: sinon + .stub() + .resolves({Authorization: 'Bearer SOME_TOKEN'}), + }), + } as unknown as GoogleAuth; + }); + afterEach(() => { + sinon.restore(); + }); + it('has servicePath', () => { + const servicePath = machineimagesModule.v1.MachineImagesClient.servicePath; + assert(servicePath); + }); + + it('has apiEndpoint', () => { + const apiEndpoint = machineimagesModule.v1.MachineImagesClient.apiEndpoint; + assert(apiEndpoint); + }); + + it('has port', () => { + const port = machineimagesModule.v1.MachineImagesClient.port; + assert(port); + assert(typeof port === 'number'); + }); + + it('should create a client with no option', () => { + const client = new machineimagesModule.v1.MachineImagesClient(); + assert(client); + }); + + it('should create a client with gRPC fallback', () => { + const client = new machineimagesModule.v1.MachineImagesClient({ + fallback: true, + }); + assert(client); + }); + + it('has initialize method and supports deferred initialization', async () => { + const client = new machineimagesModule.v1.MachineImagesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.machineImagesStub, undefined); + await client.initialize(); + assert(client.machineImagesStub); + }); + + it('has close method', () => { + const client = new machineimagesModule.v1.MachineImagesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.close(); + }); + + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new machineimagesModule.v1.MachineImagesClient({ + 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 machineimagesModule.v1.MachineImagesClient({ + 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('delete', () => { + it('invokes delete without error', async () => { + const client = new machineimagesModule.v1.MachineImagesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.DeleteMachineImageRequest() + ); + request.project = ''; + const expectedHeaderRequestParams = 'project='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.delete = stubSimpleCall(expectedResponse); + const [response] = await client.delete(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + assert( + (client.innerApiCalls.delete as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes delete without error using callback', async () => { + const client = new machineimagesModule.v1.MachineImagesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.DeleteMachineImageRequest() + ); + request.project = ''; + const expectedHeaderRequestParams = 'project='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.delete = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.delete( + 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); + assert( + (client.innerApiCalls.delete as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes delete with error', async () => { + const client = new machineimagesModule.v1.MachineImagesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.DeleteMachineImageRequest() + ); + request.project = ''; + const expectedHeaderRequestParams = 'project='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.delete = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.delete(request), expectedError); + assert( + (client.innerApiCalls.delete as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('get', () => { + it('invokes get without error', async () => { + const client = new machineimagesModule.v1.MachineImagesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetMachineImageRequest() + ); + request.project = ''; + const expectedHeaderRequestParams = 'project='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.MachineImage() + ); + client.innerApiCalls.get = stubSimpleCall(expectedResponse); + const [response] = await client.get(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.get as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes get without error using callback', async () => { + const client = new machineimagesModule.v1.MachineImagesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetMachineImageRequest() + ); + request.project = ''; + const expectedHeaderRequestParams = 'project='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.MachineImage() + ); + client.innerApiCalls.get = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.get( + request, + ( + err?: Error | null, + result?: protos.google.cloud.compute.v1.IMachineImage | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.get as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes get with error', async () => { + const client = new machineimagesModule.v1.MachineImagesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetMachineImageRequest() + ); + request.project = ''; + const expectedHeaderRequestParams = 'project='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.get = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.get(request), expectedError); + assert( + (client.innerApiCalls.get as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('getIamPolicy', () => { + it('invokes getIamPolicy without error', async () => { + const client = new machineimagesModule.v1.MachineImagesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetIamPolicyMachineImageRequest() + ); + request.project = ''; + const expectedHeaderRequestParams = 'project='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Policy() + ); + client.innerApiCalls.getIamPolicy = stubSimpleCall(expectedResponse); + const [response] = await client.getIamPolicy(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes getIamPolicy without error using callback', async () => { + const client = new machineimagesModule.v1.MachineImagesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetIamPolicyMachineImageRequest() + ); + request.project = ''; + const expectedHeaderRequestParams = 'project='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Policy() + ); + client.innerApiCalls.getIamPolicy = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getIamPolicy( + request, + ( + err?: Error | null, + result?: protos.google.cloud.compute.v1.IPolicy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes getIamPolicy with error', async () => { + const client = new machineimagesModule.v1.MachineImagesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetIamPolicyMachineImageRequest() + ); + request.project = ''; + const expectedHeaderRequestParams = 'project='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.getIamPolicy = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.getIamPolicy(request), expectedError); + assert( + (client.innerApiCalls.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('insert', () => { + it('invokes insert without error', async () => { + const client = new machineimagesModule.v1.MachineImagesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.InsertMachineImageRequest() + ); + request.project = ''; + const expectedHeaderRequestParams = 'project='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.insert = stubSimpleCall(expectedResponse); + const [response] = await client.insert(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + assert( + (client.innerApiCalls.insert as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes insert without error using callback', async () => { + const client = new machineimagesModule.v1.MachineImagesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.InsertMachineImageRequest() + ); + request.project = ''; + const expectedHeaderRequestParams = 'project='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.insert = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.insert( + 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); + assert( + (client.innerApiCalls.insert as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes insert with error', async () => { + const client = new machineimagesModule.v1.MachineImagesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.InsertMachineImageRequest() + ); + request.project = ''; + const expectedHeaderRequestParams = 'project='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.insert = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.insert(request), expectedError); + assert( + (client.innerApiCalls.insert as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('setIamPolicy', () => { + it('invokes setIamPolicy without error', async () => { + const client = new machineimagesModule.v1.MachineImagesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SetIamPolicyMachineImageRequest() + ); + request.project = ''; + const expectedHeaderRequestParams = 'project='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Policy() + ); + client.innerApiCalls.setIamPolicy = stubSimpleCall(expectedResponse); + const [response] = await client.setIamPolicy(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes setIamPolicy without error using callback', async () => { + const client = new machineimagesModule.v1.MachineImagesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SetIamPolicyMachineImageRequest() + ); + request.project = ''; + const expectedHeaderRequestParams = 'project='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Policy() + ); + client.innerApiCalls.setIamPolicy = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.setIamPolicy( + request, + ( + err?: Error | null, + result?: protos.google.cloud.compute.v1.IPolicy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes setIamPolicy with error', async () => { + const client = new machineimagesModule.v1.MachineImagesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SetIamPolicyMachineImageRequest() + ); + request.project = ''; + const expectedHeaderRequestParams = 'project='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.setIamPolicy = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.setIamPolicy(request), expectedError); + assert( + (client.innerApiCalls.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('testIamPermissions', () => { + it('invokes testIamPermissions without error', async () => { + const client = new machineimagesModule.v1.MachineImagesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.TestIamPermissionsMachineImageRequest() + ); + request.project = ''; + const expectedHeaderRequestParams = 'project='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.TestPermissionsResponse() + ); + client.innerApiCalls.testIamPermissions = + stubSimpleCall(expectedResponse); + const [response] = await client.testIamPermissions(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes testIamPermissions without error using callback', async () => { + const client = new machineimagesModule.v1.MachineImagesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.TestIamPermissionsMachineImageRequest() + ); + request.project = ''; + const expectedHeaderRequestParams = 'project='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.TestPermissionsResponse() + ); + client.innerApiCalls.testIamPermissions = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.testIamPermissions( + request, + ( + err?: Error | null, + result?: protos.google.cloud.compute.v1.ITestPermissionsResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes testIamPermissions with error', async () => { + const client = new machineimagesModule.v1.MachineImagesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.TestIamPermissionsMachineImageRequest() + ); + request.project = ''; + const expectedHeaderRequestParams = 'project='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.testIamPermissions = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.testIamPermissions(request), expectedError); + assert( + (client.innerApiCalls.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('list', () => { + it('invokes list without error', async () => { + const client = new machineimagesModule.v1.MachineImagesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListMachineImagesRequest() + ); + request.project = ''; + const expectedHeaderRequestParams = 'project='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.compute.v1.MachineImage() + ), + generateSampleMessage( + new protos.google.cloud.compute.v1.MachineImage() + ), + generateSampleMessage( + new protos.google.cloud.compute.v1.MachineImage() + ), + ]; + client.innerApiCalls.list = stubSimpleCall(expectedResponse); + const [response] = await client.list(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.list as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes list without error using callback', async () => { + const client = new machineimagesModule.v1.MachineImagesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListMachineImagesRequest() + ); + request.project = ''; + const expectedHeaderRequestParams = 'project='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.compute.v1.MachineImage() + ), + generateSampleMessage( + new protos.google.cloud.compute.v1.MachineImage() + ), + generateSampleMessage( + new protos.google.cloud.compute.v1.MachineImage() + ), + ]; + client.innerApiCalls.list = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.list( + request, + ( + err?: Error | null, + result?: protos.google.cloud.compute.v1.IMachineImage[] | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.list as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes list with error', async () => { + const client = new machineimagesModule.v1.MachineImagesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListMachineImagesRequest() + ); + request.project = ''; + const expectedHeaderRequestParams = 'project='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.list = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.list(request), expectedError); + assert( + (client.innerApiCalls.list as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listStream without error', async () => { + const client = new machineimagesModule.v1.MachineImagesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListMachineImagesRequest() + ); + request.project = ''; + const expectedHeaderRequestParams = 'project='; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.compute.v1.MachineImage() + ), + generateSampleMessage( + new protos.google.cloud.compute.v1.MachineImage() + ), + generateSampleMessage( + new protos.google.cloud.compute.v1.MachineImage() + ), + ]; + 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.MachineImage[] = []; + stream.on( + 'data', + (response: protos.google.cloud.compute.v1.MachineImage) => { + 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.strictEqual( + (client.descriptors.page.list.createStream as SinonStub).getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('invokes listStream with error', async () => { + const client = new machineimagesModule.v1.MachineImagesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListMachineImagesRequest() + ); + request.project = ''; + const expectedHeaderRequestParams = 'project='; + 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.MachineImage[] = []; + stream.on( + 'data', + (response: protos.google.cloud.compute.v1.MachineImage) => { + 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.strictEqual( + (client.descriptors.page.list.createStream as SinonStub).getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with list without error', async () => { + const client = new machineimagesModule.v1.MachineImagesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListMachineImagesRequest() + ); + request.project = ''; + const expectedHeaderRequestParams = 'project='; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.compute.v1.MachineImage() + ), + generateSampleMessage( + new protos.google.cloud.compute.v1.MachineImage() + ), + generateSampleMessage( + new protos.google.cloud.compute.v1.MachineImage() + ), + ]; + client.descriptors.page.list.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.compute.v1.IMachineImage[] = []; + 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.strictEqual( + (client.descriptors.page.list.asyncIterate as SinonStub).getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with list with error', async () => { + const client = new machineimagesModule.v1.MachineImagesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListMachineImagesRequest() + ); + request.project = ''; + const expectedHeaderRequestParams = 'project='; + 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.IMachineImage[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + (client.descriptors.page.list.asyncIterate as SinonStub).getCall(0) + .args[1], + request + ); + assert.strictEqual( + (client.descriptors.page.list.asyncIterate as SinonStub).getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + }); +}); diff --git a/packages/google-cloud-compute/test/gapic_region_commitments_v1.ts b/packages/google-cloud-compute/test/gapic_region_commitments_v1.ts index 97a250f3ce3..88fe2d55626 100644 --- a/packages/google-cloud-compute/test/gapic_region_commitments_v1.ts +++ b/packages/google-cloud-compute/test/gapic_region_commitments_v1.ts @@ -423,6 +423,114 @@ describe('v1.RegionCommitmentsClient', () => { }); }); + describe('update', () => { + it('invokes update without error', async () => { + const client = new regioncommitmentsModule.v1.RegionCommitmentsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.UpdateRegionCommitmentRequest() + ); + request.project = ''; + const expectedHeaderRequestParams = 'project='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.update = stubSimpleCall(expectedResponse); + const [response] = await client.update(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + assert( + (client.innerApiCalls.update as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes update without error using callback', async () => { + const client = new regioncommitmentsModule.v1.RegionCommitmentsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.UpdateRegionCommitmentRequest() + ); + request.project = ''; + const expectedHeaderRequestParams = 'project='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.update = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.update( + 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); + assert( + (client.innerApiCalls.update as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes update with error', async () => { + const client = new regioncommitmentsModule.v1.RegionCommitmentsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.UpdateRegionCommitmentRequest() + ); + request.project = ''; + const expectedHeaderRequestParams = 'project='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.update = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.update(request), expectedError); + assert( + (client.innerApiCalls.update as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('aggregatedList', () => { it('uses async iteration with aggregatedList without error', async () => { const client = new regioncommitmentsModule.v1.RegionCommitmentsClient({ diff --git a/packages/google-cloud-compute/test/gapic_reservations_v1.ts b/packages/google-cloud-compute/test/gapic_reservations_v1.ts index f09770f1143..be553e0ad2b 100644 --- a/packages/google-cloud-compute/test/gapic_reservations_v1.ts +++ b/packages/google-cloud-compute/test/gapic_reservations_v1.ts @@ -971,6 +971,114 @@ describe('v1.ReservationsClient', () => { }); }); + describe('update', () => { + it('invokes update without error', async () => { + const client = new reservationsModule.v1.ReservationsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.UpdateReservationRequest() + ); + request.project = ''; + const expectedHeaderRequestParams = 'project='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.update = stubSimpleCall(expectedResponse); + const [response] = await client.update(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + assert( + (client.innerApiCalls.update as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes update without error using callback', async () => { + const client = new reservationsModule.v1.ReservationsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.UpdateReservationRequest() + ); + request.project = ''; + const expectedHeaderRequestParams = 'project='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.update = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.update( + 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); + assert( + (client.innerApiCalls.update as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes update with error', async () => { + const client = new reservationsModule.v1.ReservationsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.UpdateReservationRequest() + ); + request.project = ''; + const expectedHeaderRequestParams = 'project='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.update = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.update(request), expectedError); + assert( + (client.innerApiCalls.update as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('aggregatedList', () => { it('uses async iteration with aggregatedList without error', async () => { const client = new reservationsModule.v1.ReservationsClient({ diff --git a/packages/google-cloud-compute/test/gapic_snapshots_v1.ts b/packages/google-cloud-compute/test/gapic_snapshots_v1.ts index 049c91fe39b..85965d09d82 100644 --- a/packages/google-cloud-compute/test/gapic_snapshots_v1.ts +++ b/packages/google-cloud-compute/test/gapic_snapshots_v1.ts @@ -532,6 +532,114 @@ describe('v1.SnapshotsClient', () => { }); }); + describe('insert', () => { + it('invokes insert without error', async () => { + const client = new snapshotsModule.v1.SnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.InsertSnapshotRequest() + ); + request.project = ''; + const expectedHeaderRequestParams = 'project='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.insert = stubSimpleCall(expectedResponse); + const [response] = await client.insert(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + assert( + (client.innerApiCalls.insert as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes insert without error using callback', async () => { + const client = new snapshotsModule.v1.SnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.InsertSnapshotRequest() + ); + request.project = ''; + const expectedHeaderRequestParams = 'project='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.insert = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.insert( + 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); + assert( + (client.innerApiCalls.insert as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes insert with error', async () => { + const client = new snapshotsModule.v1.SnapshotsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.InsertSnapshotRequest() + ); + request.project = ''; + const expectedHeaderRequestParams = 'project='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.insert = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.insert(request), expectedError); + assert( + (client.innerApiCalls.insert as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('setIamPolicy', () => { it('invokes setIamPolicy without error', async () => { const client = new snapshotsModule.v1.SnapshotsClient({