diff --git a/packages/google-cloud-compute/README.md b/packages/google-cloud-compute/README.md index 8c7b69a0628..fcd553da763 100644 --- a/packages/google-cloud-compute/README.md +++ b/packages/google-cloud-compute/README.md @@ -730,6 +730,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Target_ssl_proxies.set_proxy_header | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/target_ssl_proxies.set_proxy_header.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/target_ssl_proxies.set_proxy_header.js,samples/README.md) | | Target_ssl_proxies.set_ssl_certificates | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/target_ssl_proxies.set_ssl_certificates.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/target_ssl_proxies.set_ssl_certificates.js,samples/README.md) | | Target_ssl_proxies.set_ssl_policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/target_ssl_proxies.set_ssl_policy.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/target_ssl_proxies.set_ssl_policy.js,samples/README.md) | +| Target_tcp_proxies.aggregated_list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/target_tcp_proxies.aggregated_list.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/target_tcp_proxies.aggregated_list.js,samples/README.md) | | Target_tcp_proxies.delete | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/target_tcp_proxies.delete.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/target_tcp_proxies.delete.js,samples/README.md) | | Target_tcp_proxies.get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/target_tcp_proxies.get.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/target_tcp_proxies.get.js,samples/README.md) | | Target_tcp_proxies.insert | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/target_tcp_proxies.insert.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/target_tcp_proxies.insert.js,samples/README.md) | diff --git a/packages/google-cloud-compute/protos/google/cloud/compute/v1/compute.proto b/packages/google-cloud-compute/protos/google/cloud/compute/v1/compute.proto index 977b72857ec..f52863d4f95 100644 --- a/packages/google-cloud-compute/protos/google/cloud/compute/v1/compute.proto +++ b/packages/google-cloud-compute/protos/google/cloud/compute/v1/compute.proto @@ -14,7 +14,7 @@ // Generated by the disco-to-proto3-converter. DO NOT EDIT! // Source Discovery file: compute.v1.json -// Source file revision: 20221011 +// Source file revision: 20221101 // API name: compute // API version: v1 @@ -1770,6 +1770,31 @@ message AggregatedListTargetPoolsRequest { } +// A request message for TargetTcpProxies.AggregatedList. See the method description for details. +message AggregatedListTargetTcpProxiesRequest { + // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. + 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. + optional bool include_all_scopes = 391327988; + + // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` 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; + + // Name of the project scoping 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 TargetVpnGateways.AggregatedList. See the method description for details. message AggregatedListTargetVpnGatewaysRequest { // A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. @@ -2220,7 +2245,7 @@ message AttachedDiskInitializeParams { // Specifies the size of the disk in base-2 GB. The size must be at least 10 GB. If you specify a sourceImage, which is required for boot disks, the default size is the size of the sourceImage. If you do not specify a sourceImage, the default disk size is 500 GB. optional int64 disk_size_gb = 316263735; - // Specifies the disk type to use to create the instance. If not specified, the default is pd-standard, specified using the full URL. For example: https://www.googleapis.com/compute/v1/projects/project/zones/zone /diskTypes/pd-standard For a full list of acceptable values, see Persistent disk types. If you define this field, you can provide either the full or partial URL. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /diskTypes/diskType - projects/project/zones/zone/diskTypes/diskType - zones/zone/diskTypes/diskType Note that for InstanceTemplate, this is the name of the disk type, not URL. + // Specifies the disk type to use to create the instance. If not specified, the default is pd-standard, specified using the full URL. For example: https://www.googleapis.com/compute/v1/projects/project/zones/zone /diskTypes/pd-standard For a full list of acceptable values, see Persistent disk types. If you specify this field when creating a VM, you can provide either the full or partial URL. For example, the following values are valid: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /diskTypes/diskType - projects/project/zones/zone/diskTypes/diskType - zones/zone/diskTypes/diskType If you specify this field when creating or updating an instance template or all-instances configuration, specify the type of the disk, not the URL. For example: pd-standard. optional string disk_type = 93009052; // Labels to apply to this disk. These can be later modified by the disks.setLabels method. This field is only applicable for persistent disks. @@ -2245,7 +2270,7 @@ message AttachedDiskInitializeParams { // The source image to create this disk. When creating a new instance, one of initializeParams.sourceImage or initializeParams.sourceSnapshot or disks.source is required except for local SSD. To create a disk with one of the public operating system images, specify the image by its family name. For example, specify family/debian-9 to use the latest Debian 9 image: projects/debian-cloud/global/images/family/debian-9 Alternatively, use a specific version of a public operating system image: projects/debian-cloud/global/images/debian-9-stretch-vYYYYMMDD To create a disk with a custom image that you created, specify the image name in the following format: global/images/my-custom-image You can also specify a custom image by its image family, which returns the latest version of the image in that family. Replace the image name with family/family-name: global/images/family/my-image-family If the source image is deleted later, this field will not be set. optional string source_image = 50443319; - // The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key. Instance templates do not store customer-supplied encryption keys, so you cannot create disks for instances in a managed instance group if the source images are encrypted with your own keys. + // The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key. InstanceTemplate and InstancePropertiesPatch do not store customer-supplied encryption keys, so you cannot create disks for instances in a managed instance group if the source images are encrypted with your own keys. optional CustomerEncryptionKey source_image_encryption_key = 381503659; // The source snapshot to create this disk. When creating a new instance, one of initializeParams.sourceSnapshot or initializeParams.sourceImage or disks.source is required except for local SSD. To create a disk with a snapshot that you created, specify the snapshot name in the following format: global/snapshots/my-backup If the source snapshot is deleted later, this field will not be set. @@ -4191,7 +4216,7 @@ message CorsPolicy { // Specifies the content for the Access-Control-Allow-Methods header. repeated string allow_methods = 205405372; - // 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. + // 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. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED. repeated string allow_origin_regexes = 215385810; // 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. @@ -7255,7 +7280,7 @@ message ForwardingRule { } - // IP address for which this forwarding rule accepts traffic. When a client sends traffic to this IP address, the forwarding rule directs the traffic to the referenced target or backendService. While creating a forwarding rule, specifying an IPAddress is required under the following circumstances: - When the target is set to targetGrpcProxy and validateForProxyless is set to true, the IPAddress should be set to 0.0.0.0. - When the target is a Private Service Connect Google APIs bundle, you must specify an IPAddress. Otherwise, you can optionally specify an IP address that references an existing static (reserved) IP address resource. When omitted, Google Cloud assigns an ephemeral IP address. Use one of the following formats to specify an IP address while creating a forwarding rule: * IP address number, as in `100.1.2.3` * Full resource URL, as in https://www.googleapis.com/compute/v1/projects/project_id/regions/region /addresses/address-name * Partial URL or by name, as in: - projects/project_id/regions/region/addresses/address-name - regions/region/addresses/address-name - global/addresses/address-name - address-name The forwarding rule's target or backendService, and in most cases, also the loadBalancingScheme, determine the type of IP address that you can use. For detailed information, see [IP address specifications](https://cloud.google.com/load-balancing/docs/forwarding-rule-concepts#ip_address_specifications). When reading an IPAddress, the API always returns the IP address number. + // IP address for which this forwarding rule accepts traffic. When a client sends traffic to this IP address, the forwarding rule directs the traffic to the referenced target or backendService. While creating a forwarding rule, specifying an IPAddress is required under the following circumstances: - When the target is set to targetGrpcProxy and validateForProxyless is set to true, the IPAddress should be set to 0.0.0.0. - When the target is a Private Service Connect Google APIs bundle, you must specify an IPAddress. Otherwise, you can optionally specify an IP address that references an existing static (reserved) IP address resource. When omitted, Google Cloud assigns an ephemeral IP address. Use one of the following formats to specify an IP address while creating a forwarding rule: * IP address number, as in `100.1.2.3` * IPv6 address range, as in `2600:1234::/96` * Full resource URL, as in https://www.googleapis.com/compute/v1/projects/ project_id/regions/region/addresses/address-name * Partial URL or by name, as in: - projects/project_id/regions/region/addresses/address-name - regions/region/addresses/address-name - global/addresses/address-name - address-name The forwarding rule's target or backendService, and in most cases, also the loadBalancingScheme, determine the type of IP address that you can use. For detailed information, see [IP address specifications](https://cloud.google.com/load-balancing/docs/forwarding-rule-concepts#ip_address_specifications). When reading an IPAddress, the API always returns the IP address number. optional string I_p_address = 42976943; // The IP protocol to which this rule applies. For protocol forwarding, valid options are TCP, UDP, ESP, AH, SCTP, ICMP and L3_DEFAULT. The valid IP protocols are different for different load balancing products as described in [Load balancing features](https://cloud.google.com/load-balancing/docs/features#protocols_from_the_load_balancer_to_the_backends). @@ -9803,7 +9828,7 @@ message HttpHeaderMatch { // 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 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. + // 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. Regular expressions can only be used when the loadBalancingScheme is 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. @@ -9835,7 +9860,7 @@ message HttpQueryParameterMatch { // 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 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. + // 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. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED. optional string regex_match = 107387853; } @@ -9971,7 +9996,7 @@ message HttpRouteRuleMatch { // 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 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. + // 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. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED. optional string regex_match = 107387853; } @@ -21663,7 +21688,7 @@ message Reservation { // [Output Only] Server-defined fully-qualified URL for this resource. optional string self_link = 456214797; - // Share-settings for shared-reservation + // Specify share-settings to create a shared reservation. This property is optional. For more information about the syntax and options for this field and its subfields, see the guide for creating a shared reservation. optional ShareSettings share_settings = 266668163; // Reservation for instances with specific machine shapes. @@ -23868,7 +23893,7 @@ 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 defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "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. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. + // Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. enum EnforceOnKey { // A value indicating that the enum field is not set. UNDEFINED_ENFORCE_ON_KEY = 0; @@ -23900,7 +23925,7 @@ message SecurityPolicyRuleRateLimitOptions { // Action to take for requests that are under the configured rate limit threshold. Valid option is "allow" only. optional string conform_action = 517612367; - // Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if 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 defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "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. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. + // Determines the key to enforce the rate_limit_threshold on. Possible values are: - ALL: A single rate limit threshold is applied to all the requests matching this rule. This is the default value if "enforceOnKey" is not configured. - IP: The source IP address of the request is the key. Each IP has this limit enforced separately. - HTTP_HEADER: The value of the HTTP header whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the header value. If no such header is present in the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e. the originating client IP address) specified in the list of IPs under X-Forwarded-For HTTP header. If no such header is present or the value is not a valid IP, the key defaults to the source IP address of the request i.e. key type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured under "enforceOnKeyName". The key value is truncated to the first 128 bytes of the cookie value. If no such cookie is present in the request, the key type defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value is truncated to the first 128 bytes. - SNI: Server name indication in the TLS session of the HTTPS request. The key value is truncated to the first 128 bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The country/region from which the request originates. // Check the EnforceOnKey enum for the list of possible values. optional string enforce_on_key = 416648956; @@ -26663,7 +26688,7 @@ message Subnetwork { // 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 external IPv6 address range that is assigned to this subnetwork. + // The external IPv6 address range that is owned by this subnetwork. optional string external_ipv6_prefix = 139299190; // 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 Subnetwork. An up-to-date fingerprint must be provided in order to update the Subnetwork, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a Subnetwork. @@ -27683,6 +27708,16 @@ message TargetSslProxyList { } +// +message TargetTcpProxiesScopedList { + // A list of TargetTcpProxies contained in this scope. + repeated TargetTcpProxy target_tcp_proxies = 262056832; + + // Informational warning which replaces the list of backend services when the list is empty. + optional Warning warning = 50704284; + +} + // message TargetTcpProxiesSetBackendServiceRequest { // The URL of the new BackendService resource for the targetTcpProxy. @@ -27755,6 +27790,31 @@ message TargetTcpProxy { } +// +message TargetTcpProxyAggregatedList { + // [Output Only] Unique identifier for the resource; defined by the server. + optional string id = 3355; + + // A list of TargetTcpProxiesScopedList resources. + map items = 100526016; + + // [Output Only] Type of resource. Always compute#targetTcpProxyAggregatedList for lists of Target TCP Proxies. + 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] Unreachable resources. + repeated string unreachables = 243372063; + + // [Output Only] Informational warning message. + optional Warning warning = 50704284; + +} + // Contains a list of TargetTcpProxy resources. message TargetTcpProxyList { // [Output Only] Unique identifier for the resource; defined by the server. @@ -29250,7 +29310,7 @@ 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. + // The stack type for this VPN gateway to identify the IP protocols that are enabled. Possible values are: IPV4_ONLY, IPV4_IPV6. If not specified, IPV4_ONLY will be used. enum StackType { // A value indicating that the enum field is not set. UNDEFINED_STACK_TYPE = 0; @@ -29293,7 +29353,7 @@ 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. + // The stack type for this VPN gateway to identify the IP protocols that are enabled. Possible values are: IPV4_ONLY, IPV4_IPV6. If not specified, IPV4_ONLY will be used. // Check the StackType enum for the list of possible values. optional string stack_type = 425908881; @@ -29523,7 +29583,7 @@ message VpnTunnel { // URL of the peer side external VPN gateway to which this VPN tunnel is connected. Provided by the client when the VPN tunnel is created. This field is exclusive with the field peerGcpGateway. optional string peer_external_gateway = 384956173; - // The interface ID of the external VPN gateway to which this VPN tunnel is connected. Provided by the client when the VPN tunnel is created. + // The interface ID of the external VPN gateway to which this VPN tunnel is connected. Provided by the client when the VPN tunnel is created. Possible values are: `0`, `1`, `2`, `3`. The number of IDs in use depends on the external VPN gateway redundancy type. optional int32 peer_external_gateway_interface = 452768391; // URL of the peer side HA GCP VPN gateway to which this VPN tunnel is connected. Provided by the client when the VPN tunnel is created. This field can be used when creating highly available VPN from VPC network to VPC network, the field is exclusive with the field peerExternalGateway. If provided, the VPN tunnel will automatically use the same vpnGatewayInterface ID in the peer GCP VPN gateway. @@ -29560,7 +29620,7 @@ message VpnTunnel { // URL of the VPN gateway with which this VPN tunnel is associated. Provided by the client when the VPN tunnel is created. This must be used (instead of target_vpn_gateway) if a High Availability VPN gateway resource is created. optional string vpn_gateway = 406684153; - // The interface ID of the VPN gateway with which this VPN tunnel is associated. + // The interface ID of the VPN gateway with which this VPN tunnel is associated. Possible values are: `0`, `1`. optional int32 vpn_gateway_interface = 95979123; } @@ -36570,6 +36630,14 @@ service TargetTcpProxies { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; + // Retrieves the list of all TargetTcpProxy resources, regional and global, available to the specified project. + rpc AggregatedList(AggregatedListTargetTcpProxiesRequest) returns (TargetTcpProxyAggregatedList) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/aggregated/targetTcpProxies" + }; + option (google.api.method_signature) = "project"; + } + // Deletes the specified TargetTcpProxy resource. rpc Delete(DeleteTargetTcpProxyRequest) returns (Operation) { 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 3059faf52c2..aeb9907ab2d 100644 --- a/packages/google-cloud-compute/protos/protos.d.ts +++ b/packages/google-cloud-compute/protos/protos.d.ts @@ -9455,6 +9455,157 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an AggregatedListTargetTcpProxiesRequest. */ + interface IAggregatedListTargetTcpProxiesRequest { + + /** AggregatedListTargetTcpProxiesRequest filter */ + filter?: (string|null); + + /** AggregatedListTargetTcpProxiesRequest includeAllScopes */ + includeAllScopes?: (boolean|null); + + /** AggregatedListTargetTcpProxiesRequest maxResults */ + maxResults?: (number|null); + + /** AggregatedListTargetTcpProxiesRequest orderBy */ + orderBy?: (string|null); + + /** AggregatedListTargetTcpProxiesRequest pageToken */ + pageToken?: (string|null); + + /** AggregatedListTargetTcpProxiesRequest project */ + project?: (string|null); + + /** AggregatedListTargetTcpProxiesRequest returnPartialSuccess */ + returnPartialSuccess?: (boolean|null); + } + + /** Represents an AggregatedListTargetTcpProxiesRequest. */ + class AggregatedListTargetTcpProxiesRequest implements IAggregatedListTargetTcpProxiesRequest { + + /** + * Constructs a new AggregatedListTargetTcpProxiesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IAggregatedListTargetTcpProxiesRequest); + + /** AggregatedListTargetTcpProxiesRequest filter. */ + public filter?: (string|null); + + /** AggregatedListTargetTcpProxiesRequest includeAllScopes. */ + public includeAllScopes?: (boolean|null); + + /** AggregatedListTargetTcpProxiesRequest maxResults. */ + public maxResults?: (number|null); + + /** AggregatedListTargetTcpProxiesRequest orderBy. */ + public orderBy?: (string|null); + + /** AggregatedListTargetTcpProxiesRequest pageToken. */ + public pageToken?: (string|null); + + /** AggregatedListTargetTcpProxiesRequest project. */ + public project: string; + + /** AggregatedListTargetTcpProxiesRequest returnPartialSuccess. */ + public returnPartialSuccess?: (boolean|null); + + /** AggregatedListTargetTcpProxiesRequest _filter. */ + public _filter?: "filter"; + + /** AggregatedListTargetTcpProxiesRequest _includeAllScopes. */ + public _includeAllScopes?: "includeAllScopes"; + + /** AggregatedListTargetTcpProxiesRequest _maxResults. */ + public _maxResults?: "maxResults"; + + /** AggregatedListTargetTcpProxiesRequest _orderBy. */ + public _orderBy?: "orderBy"; + + /** AggregatedListTargetTcpProxiesRequest _pageToken. */ + public _pageToken?: "pageToken"; + + /** AggregatedListTargetTcpProxiesRequest _returnPartialSuccess. */ + public _returnPartialSuccess?: "returnPartialSuccess"; + + /** + * Creates a new AggregatedListTargetTcpProxiesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns AggregatedListTargetTcpProxiesRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IAggregatedListTargetTcpProxiesRequest): google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest; + + /** + * Encodes the specified AggregatedListTargetTcpProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest.verify|verify} messages. + * @param message AggregatedListTargetTcpProxiesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IAggregatedListTargetTcpProxiesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AggregatedListTargetTcpProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest.verify|verify} messages. + * @param message AggregatedListTargetTcpProxiesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IAggregatedListTargetTcpProxiesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AggregatedListTargetTcpProxiesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AggregatedListTargetTcpProxiesRequest + * @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.AggregatedListTargetTcpProxiesRequest; + + /** + * Decodes an AggregatedListTargetTcpProxiesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AggregatedListTargetTcpProxiesRequest + * @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.AggregatedListTargetTcpProxiesRequest; + + /** + * Verifies an AggregatedListTargetTcpProxiesRequest 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 AggregatedListTargetTcpProxiesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AggregatedListTargetTcpProxiesRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest; + + /** + * Creates a plain object from an AggregatedListTargetTcpProxiesRequest message. Also converts values to other types if specified. + * @param message AggregatedListTargetTcpProxiesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AggregatedListTargetTcpProxiesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AggregatedListTargetTcpProxiesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an AggregatedListTargetVpnGatewaysRequest. */ interface IAggregatedListTargetVpnGatewaysRequest { @@ -155232,6 +155383,112 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a TargetTcpProxiesScopedList. */ + interface ITargetTcpProxiesScopedList { + + /** TargetTcpProxiesScopedList targetTcpProxies */ + targetTcpProxies?: (google.cloud.compute.v1.ITargetTcpProxy[]|null); + + /** TargetTcpProxiesScopedList warning */ + warning?: (google.cloud.compute.v1.IWarning|null); + } + + /** Represents a TargetTcpProxiesScopedList. */ + class TargetTcpProxiesScopedList implements ITargetTcpProxiesScopedList { + + /** + * Constructs a new TargetTcpProxiesScopedList. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ITargetTcpProxiesScopedList); + + /** TargetTcpProxiesScopedList targetTcpProxies. */ + public targetTcpProxies: google.cloud.compute.v1.ITargetTcpProxy[]; + + /** TargetTcpProxiesScopedList warning. */ + public warning?: (google.cloud.compute.v1.IWarning|null); + + /** TargetTcpProxiesScopedList _warning. */ + public _warning?: "warning"; + + /** + * Creates a new TargetTcpProxiesScopedList instance using the specified properties. + * @param [properties] Properties to set + * @returns TargetTcpProxiesScopedList instance + */ + public static create(properties?: google.cloud.compute.v1.ITargetTcpProxiesScopedList): google.cloud.compute.v1.TargetTcpProxiesScopedList; + + /** + * Encodes the specified TargetTcpProxiesScopedList message. Does not implicitly {@link google.cloud.compute.v1.TargetTcpProxiesScopedList.verify|verify} messages. + * @param message TargetTcpProxiesScopedList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ITargetTcpProxiesScopedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TargetTcpProxiesScopedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TargetTcpProxiesScopedList.verify|verify} messages. + * @param message TargetTcpProxiesScopedList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ITargetTcpProxiesScopedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TargetTcpProxiesScopedList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TargetTcpProxiesScopedList + * @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.TargetTcpProxiesScopedList; + + /** + * Decodes a TargetTcpProxiesScopedList message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TargetTcpProxiesScopedList + * @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.TargetTcpProxiesScopedList; + + /** + * Verifies a TargetTcpProxiesScopedList 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 TargetTcpProxiesScopedList message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TargetTcpProxiesScopedList + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.TargetTcpProxiesScopedList; + + /** + * Creates a plain object from a TargetTcpProxiesScopedList message. Also converts values to other types if specified. + * @param message TargetTcpProxiesScopedList + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.TargetTcpProxiesScopedList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TargetTcpProxiesScopedList to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TargetTcpProxiesScopedList + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a TargetTcpProxiesSetBackendServiceRequest. */ interface ITargetTcpProxiesSetBackendServiceRequest { @@ -155633,6 +155890,154 @@ export namespace google { } } + /** Properties of a TargetTcpProxyAggregatedList. */ + interface ITargetTcpProxyAggregatedList { + + /** TargetTcpProxyAggregatedList id */ + id?: (string|null); + + /** TargetTcpProxyAggregatedList items */ + items?: ({ [k: string]: google.cloud.compute.v1.ITargetTcpProxiesScopedList }|null); + + /** TargetTcpProxyAggregatedList kind */ + kind?: (string|null); + + /** TargetTcpProxyAggregatedList nextPageToken */ + nextPageToken?: (string|null); + + /** TargetTcpProxyAggregatedList selfLink */ + selfLink?: (string|null); + + /** TargetTcpProxyAggregatedList unreachables */ + unreachables?: (string[]|null); + + /** TargetTcpProxyAggregatedList warning */ + warning?: (google.cloud.compute.v1.IWarning|null); + } + + /** Represents a TargetTcpProxyAggregatedList. */ + class TargetTcpProxyAggregatedList implements ITargetTcpProxyAggregatedList { + + /** + * Constructs a new TargetTcpProxyAggregatedList. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ITargetTcpProxyAggregatedList); + + /** TargetTcpProxyAggregatedList id. */ + public id?: (string|null); + + /** TargetTcpProxyAggregatedList items. */ + public items: { [k: string]: google.cloud.compute.v1.ITargetTcpProxiesScopedList }; + + /** TargetTcpProxyAggregatedList kind. */ + public kind?: (string|null); + + /** TargetTcpProxyAggregatedList nextPageToken. */ + public nextPageToken?: (string|null); + + /** TargetTcpProxyAggregatedList selfLink. */ + public selfLink?: (string|null); + + /** TargetTcpProxyAggregatedList unreachables. */ + public unreachables: string[]; + + /** TargetTcpProxyAggregatedList warning. */ + public warning?: (google.cloud.compute.v1.IWarning|null); + + /** TargetTcpProxyAggregatedList _id. */ + public _id?: "id"; + + /** TargetTcpProxyAggregatedList _kind. */ + public _kind?: "kind"; + + /** TargetTcpProxyAggregatedList _nextPageToken. */ + public _nextPageToken?: "nextPageToken"; + + /** TargetTcpProxyAggregatedList _selfLink. */ + public _selfLink?: "selfLink"; + + /** TargetTcpProxyAggregatedList _warning. */ + public _warning?: "warning"; + + /** + * Creates a new TargetTcpProxyAggregatedList instance using the specified properties. + * @param [properties] Properties to set + * @returns TargetTcpProxyAggregatedList instance + */ + public static create(properties?: google.cloud.compute.v1.ITargetTcpProxyAggregatedList): google.cloud.compute.v1.TargetTcpProxyAggregatedList; + + /** + * Encodes the specified TargetTcpProxyAggregatedList message. Does not implicitly {@link google.cloud.compute.v1.TargetTcpProxyAggregatedList.verify|verify} messages. + * @param message TargetTcpProxyAggregatedList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ITargetTcpProxyAggregatedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TargetTcpProxyAggregatedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TargetTcpProxyAggregatedList.verify|verify} messages. + * @param message TargetTcpProxyAggregatedList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ITargetTcpProxyAggregatedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TargetTcpProxyAggregatedList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TargetTcpProxyAggregatedList + * @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.TargetTcpProxyAggregatedList; + + /** + * Decodes a TargetTcpProxyAggregatedList message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TargetTcpProxyAggregatedList + * @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.TargetTcpProxyAggregatedList; + + /** + * Verifies a TargetTcpProxyAggregatedList 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 TargetTcpProxyAggregatedList message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TargetTcpProxyAggregatedList + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.TargetTcpProxyAggregatedList; + + /** + * Creates a plain object from a TargetTcpProxyAggregatedList message. Also converts values to other types if specified. + * @param message TargetTcpProxyAggregatedList + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.TargetTcpProxyAggregatedList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TargetTcpProxyAggregatedList to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TargetTcpProxyAggregatedList + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a TargetTcpProxyList. */ interface ITargetTcpProxyList { @@ -183561,6 +183966,20 @@ export namespace google { */ public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): TargetTcpProxies; + /** + * Calls AggregatedList. + * @param request AggregatedListTargetTcpProxiesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TargetTcpProxyAggregatedList + */ + public aggregatedList(request: google.cloud.compute.v1.IAggregatedListTargetTcpProxiesRequest, callback: google.cloud.compute.v1.TargetTcpProxies.AggregatedListCallback): void; + + /** + * Calls AggregatedList. + * @param request AggregatedListTargetTcpProxiesRequest message or plain object + * @returns Promise + */ + public aggregatedList(request: google.cloud.compute.v1.IAggregatedListTargetTcpProxiesRequest): Promise; + /** * Calls Delete. * @param request DeleteTargetTcpProxyRequest message or plain object @@ -183648,6 +184067,13 @@ export namespace google { namespace TargetTcpProxies { + /** + * Callback as used by {@link google.cloud.compute.v1.TargetTcpProxies|aggregatedList}. + * @param error Error, if any + * @param [response] TargetTcpProxyAggregatedList + */ + type AggregatedListCallback = (error: (Error|null), response?: google.cloud.compute.v1.TargetTcpProxyAggregatedList) => void; + /** * Callback as used by {@link google.cloud.compute.v1.TargetTcpProxies|delete_}. * @param error Error, if any diff --git a/packages/google-cloud-compute/protos/protos.js b/packages/google-cloud-compute/protos/protos.js index b7d70f1c84d..c263be70d8a 100644 --- a/packages/google-cloud-compute/protos/protos.js +++ b/packages/google-cloud-compute/protos/protos.js @@ -26629,30 +26629,30 @@ return AggregatedListTargetPoolsRequest; })(); - v1.AggregatedListTargetVpnGatewaysRequest = (function() { + v1.AggregatedListTargetTcpProxiesRequest = (function() { /** - * Properties of an AggregatedListTargetVpnGatewaysRequest. + * Properties of an AggregatedListTargetTcpProxiesRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListTargetVpnGatewaysRequest - * @property {string|null} [filter] AggregatedListTargetVpnGatewaysRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListTargetVpnGatewaysRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListTargetVpnGatewaysRequest maxResults - * @property {string|null} [orderBy] AggregatedListTargetVpnGatewaysRequest orderBy - * @property {string|null} [pageToken] AggregatedListTargetVpnGatewaysRequest pageToken - * @property {string|null} [project] AggregatedListTargetVpnGatewaysRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListTargetVpnGatewaysRequest returnPartialSuccess + * @interface IAggregatedListTargetTcpProxiesRequest + * @property {string|null} [filter] AggregatedListTargetTcpProxiesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListTargetTcpProxiesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListTargetTcpProxiesRequest maxResults + * @property {string|null} [orderBy] AggregatedListTargetTcpProxiesRequest orderBy + * @property {string|null} [pageToken] AggregatedListTargetTcpProxiesRequest pageToken + * @property {string|null} [project] AggregatedListTargetTcpProxiesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListTargetTcpProxiesRequest returnPartialSuccess */ /** - * Constructs a new AggregatedListTargetVpnGatewaysRequest. + * Constructs a new AggregatedListTargetTcpProxiesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListTargetVpnGatewaysRequest. - * @implements IAggregatedListTargetVpnGatewaysRequest + * @classdesc Represents an AggregatedListTargetTcpProxiesRequest. + * @implements IAggregatedListTargetTcpProxiesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListTargetVpnGatewaysRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListTargetTcpProxiesRequest=} [properties] Properties to set */ - function AggregatedListTargetVpnGatewaysRequest(properties) { + function AggregatedListTargetTcpProxiesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -26660,152 +26660,152 @@ } /** - * AggregatedListTargetVpnGatewaysRequest filter. + * AggregatedListTargetTcpProxiesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @instance */ - AggregatedListTargetVpnGatewaysRequest.prototype.filter = null; + AggregatedListTargetTcpProxiesRequest.prototype.filter = null; /** - * AggregatedListTargetVpnGatewaysRequest includeAllScopes. + * AggregatedListTargetTcpProxiesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @instance */ - AggregatedListTargetVpnGatewaysRequest.prototype.includeAllScopes = null; + AggregatedListTargetTcpProxiesRequest.prototype.includeAllScopes = null; /** - * AggregatedListTargetVpnGatewaysRequest maxResults. + * AggregatedListTargetTcpProxiesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @instance */ - AggregatedListTargetVpnGatewaysRequest.prototype.maxResults = null; + AggregatedListTargetTcpProxiesRequest.prototype.maxResults = null; /** - * AggregatedListTargetVpnGatewaysRequest orderBy. + * AggregatedListTargetTcpProxiesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @instance */ - AggregatedListTargetVpnGatewaysRequest.prototype.orderBy = null; + AggregatedListTargetTcpProxiesRequest.prototype.orderBy = null; /** - * AggregatedListTargetVpnGatewaysRequest pageToken. + * AggregatedListTargetTcpProxiesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @instance */ - AggregatedListTargetVpnGatewaysRequest.prototype.pageToken = null; + AggregatedListTargetTcpProxiesRequest.prototype.pageToken = null; /** - * AggregatedListTargetVpnGatewaysRequest project. + * AggregatedListTargetTcpProxiesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @instance */ - AggregatedListTargetVpnGatewaysRequest.prototype.project = ""; + AggregatedListTargetTcpProxiesRequest.prototype.project = ""; /** - * AggregatedListTargetVpnGatewaysRequest returnPartialSuccess. + * AggregatedListTargetTcpProxiesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @instance */ - AggregatedListTargetVpnGatewaysRequest.prototype.returnPartialSuccess = null; + AggregatedListTargetTcpProxiesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * AggregatedListTargetVpnGatewaysRequest _filter. + * AggregatedListTargetTcpProxiesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @instance */ - Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetVpnGatewaysRequest _includeAllScopes. + * AggregatedListTargetTcpProxiesRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @instance */ - Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetVpnGatewaysRequest _maxResults. + * AggregatedListTargetTcpProxiesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @instance */ - Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetVpnGatewaysRequest _orderBy. + * AggregatedListTargetTcpProxiesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @instance */ - Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetVpnGatewaysRequest _pageToken. + * AggregatedListTargetTcpProxiesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @instance */ - Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetVpnGatewaysRequest _returnPartialSuccess. + * AggregatedListTargetTcpProxiesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @instance */ - Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListTargetVpnGatewaysRequest instance using the specified properties. + * Creates a new AggregatedListTargetTcpProxiesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetVpnGatewaysRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest} AggregatedListTargetVpnGatewaysRequest instance + * @param {google.cloud.compute.v1.IAggregatedListTargetTcpProxiesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest} AggregatedListTargetTcpProxiesRequest instance */ - AggregatedListTargetVpnGatewaysRequest.create = function create(properties) { - return new AggregatedListTargetVpnGatewaysRequest(properties); + AggregatedListTargetTcpProxiesRequest.create = function create(properties) { + return new AggregatedListTargetTcpProxiesRequest(properties); }; /** - * Encodes the specified AggregatedListTargetVpnGatewaysRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest.verify|verify} messages. + * Encodes the specified AggregatedListTargetTcpProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetVpnGatewaysRequest} message AggregatedListTargetVpnGatewaysRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListTargetTcpProxiesRequest} message AggregatedListTargetTcpProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetVpnGatewaysRequest.encode = function encode(message, writer) { + AggregatedListTargetTcpProxiesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -26826,33 +26826,33 @@ }; /** - * Encodes the specified AggregatedListTargetVpnGatewaysRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest.verify|verify} messages. + * Encodes the specified AggregatedListTargetTcpProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetVpnGatewaysRequest} message AggregatedListTargetVpnGatewaysRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListTargetTcpProxiesRequest} message AggregatedListTargetTcpProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetVpnGatewaysRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListTargetTcpProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListTargetVpnGatewaysRequest message from the specified reader or buffer. + * Decodes an AggregatedListTargetTcpProxiesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @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.AggregatedListTargetVpnGatewaysRequest} AggregatedListTargetVpnGatewaysRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest} AggregatedListTargetTcpProxiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListTargetVpnGatewaysRequest.decode = function decode(reader, length) { + AggregatedListTargetTcpProxiesRequest.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.AggregatedListTargetVpnGatewaysRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -26893,30 +26893,30 @@ }; /** - * Decodes an AggregatedListTargetVpnGatewaysRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListTargetTcpProxiesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest} AggregatedListTargetVpnGatewaysRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest} AggregatedListTargetTcpProxiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListTargetVpnGatewaysRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListTargetTcpProxiesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListTargetVpnGatewaysRequest message. + * Verifies an AggregatedListTargetTcpProxiesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListTargetVpnGatewaysRequest.verify = function verify(message) { + AggregatedListTargetTcpProxiesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -26957,17 +26957,17 @@ }; /** - * Creates an AggregatedListTargetVpnGatewaysRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListTargetTcpProxiesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest} AggregatedListTargetVpnGatewaysRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest} AggregatedListTargetTcpProxiesRequest */ - AggregatedListTargetVpnGatewaysRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest) + AggregatedListTargetTcpProxiesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -26986,15 +26986,15 @@ }; /** - * Creates a plain object from an AggregatedListTargetVpnGatewaysRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListTargetTcpProxiesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest} message AggregatedListTargetVpnGatewaysRequest + * @param {google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest} message AggregatedListTargetTcpProxiesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListTargetVpnGatewaysRequest.toObject = function toObject(message, options) { + AggregatedListTargetTcpProxiesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -27036,58 +27036,58 @@ }; /** - * Converts this AggregatedListTargetVpnGatewaysRequest to JSON. + * Converts this AggregatedListTargetTcpProxiesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListTargetVpnGatewaysRequest.prototype.toJSON = function toJSON() { + AggregatedListTargetTcpProxiesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListTargetVpnGatewaysRequest + * Gets the default type url for AggregatedListTargetTcpProxiesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListTargetVpnGatewaysRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListTargetTcpProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest"; }; - return AggregatedListTargetVpnGatewaysRequest; + return AggregatedListTargetTcpProxiesRequest; })(); - v1.AggregatedListUrlMapsRequest = (function() { + v1.AggregatedListTargetVpnGatewaysRequest = (function() { /** - * Properties of an AggregatedListUrlMapsRequest. + * Properties of an AggregatedListTargetVpnGatewaysRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListUrlMapsRequest - * @property {string|null} [filter] AggregatedListUrlMapsRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListUrlMapsRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListUrlMapsRequest maxResults - * @property {string|null} [orderBy] AggregatedListUrlMapsRequest orderBy - * @property {string|null} [pageToken] AggregatedListUrlMapsRequest pageToken - * @property {string|null} [project] AggregatedListUrlMapsRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListUrlMapsRequest returnPartialSuccess + * @interface IAggregatedListTargetVpnGatewaysRequest + * @property {string|null} [filter] AggregatedListTargetVpnGatewaysRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListTargetVpnGatewaysRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListTargetVpnGatewaysRequest maxResults + * @property {string|null} [orderBy] AggregatedListTargetVpnGatewaysRequest orderBy + * @property {string|null} [pageToken] AggregatedListTargetVpnGatewaysRequest pageToken + * @property {string|null} [project] AggregatedListTargetVpnGatewaysRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListTargetVpnGatewaysRequest returnPartialSuccess */ /** - * Constructs a new AggregatedListUrlMapsRequest. + * Constructs a new AggregatedListTargetVpnGatewaysRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListUrlMapsRequest. - * @implements IAggregatedListUrlMapsRequest + * @classdesc Represents an AggregatedListTargetVpnGatewaysRequest. + * @implements IAggregatedListTargetVpnGatewaysRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListUrlMapsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListTargetVpnGatewaysRequest=} [properties] Properties to set */ - function AggregatedListUrlMapsRequest(properties) { + function AggregatedListTargetVpnGatewaysRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -27095,152 +27095,152 @@ } /** - * AggregatedListUrlMapsRequest filter. + * AggregatedListTargetVpnGatewaysRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @instance */ - AggregatedListUrlMapsRequest.prototype.filter = null; + AggregatedListTargetVpnGatewaysRequest.prototype.filter = null; /** - * AggregatedListUrlMapsRequest includeAllScopes. + * AggregatedListTargetVpnGatewaysRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @instance */ - AggregatedListUrlMapsRequest.prototype.includeAllScopes = null; + AggregatedListTargetVpnGatewaysRequest.prototype.includeAllScopes = null; /** - * AggregatedListUrlMapsRequest maxResults. + * AggregatedListTargetVpnGatewaysRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @instance */ - AggregatedListUrlMapsRequest.prototype.maxResults = null; + AggregatedListTargetVpnGatewaysRequest.prototype.maxResults = null; /** - * AggregatedListUrlMapsRequest orderBy. + * AggregatedListTargetVpnGatewaysRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @instance */ - AggregatedListUrlMapsRequest.prototype.orderBy = null; + AggregatedListTargetVpnGatewaysRequest.prototype.orderBy = null; /** - * AggregatedListUrlMapsRequest pageToken. + * AggregatedListTargetVpnGatewaysRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @instance */ - AggregatedListUrlMapsRequest.prototype.pageToken = null; + AggregatedListTargetVpnGatewaysRequest.prototype.pageToken = null; /** - * AggregatedListUrlMapsRequest project. + * AggregatedListTargetVpnGatewaysRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @instance */ - AggregatedListUrlMapsRequest.prototype.project = ""; + AggregatedListTargetVpnGatewaysRequest.prototype.project = ""; /** - * AggregatedListUrlMapsRequest returnPartialSuccess. + * AggregatedListTargetVpnGatewaysRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @instance */ - AggregatedListUrlMapsRequest.prototype.returnPartialSuccess = null; + AggregatedListTargetVpnGatewaysRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * AggregatedListUrlMapsRequest _filter. + * AggregatedListTargetVpnGatewaysRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @instance */ - Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListUrlMapsRequest _includeAllScopes. + * AggregatedListTargetVpnGatewaysRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @instance */ - Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListUrlMapsRequest _maxResults. + * AggregatedListTargetVpnGatewaysRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @instance */ - Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListUrlMapsRequest _orderBy. + * AggregatedListTargetVpnGatewaysRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @instance */ - Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListUrlMapsRequest _pageToken. + * AggregatedListTargetVpnGatewaysRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @instance */ - Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListUrlMapsRequest _returnPartialSuccess. + * AggregatedListTargetVpnGatewaysRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @instance */ - Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListTargetVpnGatewaysRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListUrlMapsRequest instance using the specified properties. + * Creates a new AggregatedListTargetVpnGatewaysRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListUrlMapsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListUrlMapsRequest} AggregatedListUrlMapsRequest instance + * @param {google.cloud.compute.v1.IAggregatedListTargetVpnGatewaysRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest} AggregatedListTargetVpnGatewaysRequest instance */ - AggregatedListUrlMapsRequest.create = function create(properties) { - return new AggregatedListUrlMapsRequest(properties); + AggregatedListTargetVpnGatewaysRequest.create = function create(properties) { + return new AggregatedListTargetVpnGatewaysRequest(properties); }; /** - * Encodes the specified AggregatedListUrlMapsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListUrlMapsRequest.verify|verify} messages. + * Encodes the specified AggregatedListTargetVpnGatewaysRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListUrlMapsRequest} message AggregatedListUrlMapsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListTargetVpnGatewaysRequest} message AggregatedListTargetVpnGatewaysRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListUrlMapsRequest.encode = function encode(message, writer) { + AggregatedListTargetVpnGatewaysRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -27261,33 +27261,33 @@ }; /** - * Encodes the specified AggregatedListUrlMapsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListUrlMapsRequest.verify|verify} messages. + * Encodes the specified AggregatedListTargetVpnGatewaysRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListUrlMapsRequest} message AggregatedListUrlMapsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListTargetVpnGatewaysRequest} message AggregatedListTargetVpnGatewaysRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListUrlMapsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListTargetVpnGatewaysRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListUrlMapsRequest message from the specified reader or buffer. + * Decodes an AggregatedListTargetVpnGatewaysRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @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.AggregatedListUrlMapsRequest} AggregatedListUrlMapsRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest} AggregatedListTargetVpnGatewaysRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListUrlMapsRequest.decode = function decode(reader, length) { + AggregatedListTargetVpnGatewaysRequest.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.AggregatedListUrlMapsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -27328,30 +27328,30 @@ }; /** - * Decodes an AggregatedListUrlMapsRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListTargetVpnGatewaysRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListUrlMapsRequest} AggregatedListUrlMapsRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest} AggregatedListTargetVpnGatewaysRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListUrlMapsRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListTargetVpnGatewaysRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListUrlMapsRequest message. + * Verifies an AggregatedListTargetVpnGatewaysRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListUrlMapsRequest.verify = function verify(message) { + AggregatedListTargetVpnGatewaysRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -27392,17 +27392,17 @@ }; /** - * Creates an AggregatedListUrlMapsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListTargetVpnGatewaysRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListUrlMapsRequest} AggregatedListUrlMapsRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest} AggregatedListTargetVpnGatewaysRequest */ - AggregatedListUrlMapsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListUrlMapsRequest) + AggregatedListTargetVpnGatewaysRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListUrlMapsRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -27421,15 +27421,15 @@ }; /** - * Creates a plain object from an AggregatedListUrlMapsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListTargetVpnGatewaysRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @static - * @param {google.cloud.compute.v1.AggregatedListUrlMapsRequest} message AggregatedListUrlMapsRequest + * @param {google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest} message AggregatedListTargetVpnGatewaysRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListUrlMapsRequest.toObject = function toObject(message, options) { + AggregatedListTargetVpnGatewaysRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -27471,58 +27471,58 @@ }; /** - * Converts this AggregatedListUrlMapsRequest to JSON. + * Converts this AggregatedListTargetVpnGatewaysRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @instance * @returns {Object.} JSON object */ - AggregatedListUrlMapsRequest.prototype.toJSON = function toJSON() { + AggregatedListTargetVpnGatewaysRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListUrlMapsRequest + * Gets the default type url for AggregatedListTargetVpnGatewaysRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListUrlMapsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListTargetVpnGatewaysRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListUrlMapsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetVpnGatewaysRequest"; }; - return AggregatedListUrlMapsRequest; + return AggregatedListTargetVpnGatewaysRequest; })(); - v1.AggregatedListVpnGatewaysRequest = (function() { + v1.AggregatedListUrlMapsRequest = (function() { /** - * Properties of an AggregatedListVpnGatewaysRequest. + * Properties of an AggregatedListUrlMapsRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListVpnGatewaysRequest - * @property {string|null} [filter] AggregatedListVpnGatewaysRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListVpnGatewaysRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListVpnGatewaysRequest maxResults - * @property {string|null} [orderBy] AggregatedListVpnGatewaysRequest orderBy - * @property {string|null} [pageToken] AggregatedListVpnGatewaysRequest pageToken - * @property {string|null} [project] AggregatedListVpnGatewaysRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListVpnGatewaysRequest returnPartialSuccess + * @interface IAggregatedListUrlMapsRequest + * @property {string|null} [filter] AggregatedListUrlMapsRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListUrlMapsRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListUrlMapsRequest maxResults + * @property {string|null} [orderBy] AggregatedListUrlMapsRequest orderBy + * @property {string|null} [pageToken] AggregatedListUrlMapsRequest pageToken + * @property {string|null} [project] AggregatedListUrlMapsRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListUrlMapsRequest returnPartialSuccess */ /** - * Constructs a new AggregatedListVpnGatewaysRequest. + * Constructs a new AggregatedListUrlMapsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListVpnGatewaysRequest. - * @implements IAggregatedListVpnGatewaysRequest + * @classdesc Represents an AggregatedListUrlMapsRequest. + * @implements IAggregatedListUrlMapsRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListVpnGatewaysRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListUrlMapsRequest=} [properties] Properties to set */ - function AggregatedListVpnGatewaysRequest(properties) { + function AggregatedListUrlMapsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -27530,152 +27530,152 @@ } /** - * AggregatedListVpnGatewaysRequest filter. + * AggregatedListUrlMapsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @instance */ - AggregatedListVpnGatewaysRequest.prototype.filter = null; + AggregatedListUrlMapsRequest.prototype.filter = null; /** - * AggregatedListVpnGatewaysRequest includeAllScopes. + * AggregatedListUrlMapsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @instance */ - AggregatedListVpnGatewaysRequest.prototype.includeAllScopes = null; + AggregatedListUrlMapsRequest.prototype.includeAllScopes = null; /** - * AggregatedListVpnGatewaysRequest maxResults. + * AggregatedListUrlMapsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @instance */ - AggregatedListVpnGatewaysRequest.prototype.maxResults = null; + AggregatedListUrlMapsRequest.prototype.maxResults = null; /** - * AggregatedListVpnGatewaysRequest orderBy. + * AggregatedListUrlMapsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @instance */ - AggregatedListVpnGatewaysRequest.prototype.orderBy = null; + AggregatedListUrlMapsRequest.prototype.orderBy = null; /** - * AggregatedListVpnGatewaysRequest pageToken. + * AggregatedListUrlMapsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @instance */ - AggregatedListVpnGatewaysRequest.prototype.pageToken = null; + AggregatedListUrlMapsRequest.prototype.pageToken = null; /** - * AggregatedListVpnGatewaysRequest project. + * AggregatedListUrlMapsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @instance */ - AggregatedListVpnGatewaysRequest.prototype.project = ""; + AggregatedListUrlMapsRequest.prototype.project = ""; /** - * AggregatedListVpnGatewaysRequest returnPartialSuccess. + * AggregatedListUrlMapsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @instance */ - AggregatedListVpnGatewaysRequest.prototype.returnPartialSuccess = null; + AggregatedListUrlMapsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * AggregatedListVpnGatewaysRequest _filter. + * AggregatedListUrlMapsRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @instance */ - Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListVpnGatewaysRequest _includeAllScopes. + * AggregatedListUrlMapsRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @instance */ - Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListVpnGatewaysRequest _maxResults. + * AggregatedListUrlMapsRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @instance */ - Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListVpnGatewaysRequest _orderBy. + * AggregatedListUrlMapsRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @instance */ - Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListVpnGatewaysRequest _pageToken. + * AggregatedListUrlMapsRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @instance */ - Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListVpnGatewaysRequest _returnPartialSuccess. + * AggregatedListUrlMapsRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @instance */ - Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListUrlMapsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListVpnGatewaysRequest instance using the specified properties. + * Creates a new AggregatedListUrlMapsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListVpnGatewaysRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListVpnGatewaysRequest} AggregatedListVpnGatewaysRequest instance + * @param {google.cloud.compute.v1.IAggregatedListUrlMapsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListUrlMapsRequest} AggregatedListUrlMapsRequest instance */ - AggregatedListVpnGatewaysRequest.create = function create(properties) { - return new AggregatedListVpnGatewaysRequest(properties); + AggregatedListUrlMapsRequest.create = function create(properties) { + return new AggregatedListUrlMapsRequest(properties); }; /** - * Encodes the specified AggregatedListVpnGatewaysRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListVpnGatewaysRequest.verify|verify} messages. + * Encodes the specified AggregatedListUrlMapsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListUrlMapsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListVpnGatewaysRequest} message AggregatedListVpnGatewaysRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListUrlMapsRequest} message AggregatedListUrlMapsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListVpnGatewaysRequest.encode = function encode(message, writer) { + AggregatedListUrlMapsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -27696,33 +27696,33 @@ }; /** - * Encodes the specified AggregatedListVpnGatewaysRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListVpnGatewaysRequest.verify|verify} messages. + * Encodes the specified AggregatedListUrlMapsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListUrlMapsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListVpnGatewaysRequest} message AggregatedListVpnGatewaysRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListUrlMapsRequest} message AggregatedListUrlMapsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListVpnGatewaysRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListUrlMapsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListVpnGatewaysRequest message from the specified reader or buffer. + * Decodes an AggregatedListUrlMapsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @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.AggregatedListVpnGatewaysRequest} AggregatedListVpnGatewaysRequest + * @returns {google.cloud.compute.v1.AggregatedListUrlMapsRequest} AggregatedListUrlMapsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListVpnGatewaysRequest.decode = function decode(reader, length) { + AggregatedListUrlMapsRequest.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.AggregatedListVpnGatewaysRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListUrlMapsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -27763,30 +27763,30 @@ }; /** - * Decodes an AggregatedListVpnGatewaysRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListUrlMapsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListVpnGatewaysRequest} AggregatedListVpnGatewaysRequest + * @returns {google.cloud.compute.v1.AggregatedListUrlMapsRequest} AggregatedListUrlMapsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListVpnGatewaysRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListUrlMapsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListVpnGatewaysRequest message. + * Verifies an AggregatedListUrlMapsRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListVpnGatewaysRequest.verify = function verify(message) { + AggregatedListUrlMapsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -27827,17 +27827,17 @@ }; /** - * Creates an AggregatedListVpnGatewaysRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListUrlMapsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListVpnGatewaysRequest} AggregatedListVpnGatewaysRequest + * @returns {google.cloud.compute.v1.AggregatedListUrlMapsRequest} AggregatedListUrlMapsRequest */ - AggregatedListVpnGatewaysRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListVpnGatewaysRequest) + AggregatedListUrlMapsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListUrlMapsRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListVpnGatewaysRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListUrlMapsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -27856,15 +27856,15 @@ }; /** - * Creates a plain object from an AggregatedListVpnGatewaysRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListUrlMapsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @static - * @param {google.cloud.compute.v1.AggregatedListVpnGatewaysRequest} message AggregatedListVpnGatewaysRequest + * @param {google.cloud.compute.v1.AggregatedListUrlMapsRequest} message AggregatedListUrlMapsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListVpnGatewaysRequest.toObject = function toObject(message, options) { + AggregatedListUrlMapsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -27906,58 +27906,58 @@ }; /** - * Converts this AggregatedListVpnGatewaysRequest to JSON. + * Converts this AggregatedListUrlMapsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListVpnGatewaysRequest.prototype.toJSON = function toJSON() { + AggregatedListUrlMapsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListVpnGatewaysRequest + * Gets the default type url for AggregatedListUrlMapsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListVpnGatewaysRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListUrlMapsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListVpnGatewaysRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListUrlMapsRequest"; }; - return AggregatedListVpnGatewaysRequest; + return AggregatedListUrlMapsRequest; })(); - v1.AggregatedListVpnTunnelsRequest = (function() { + v1.AggregatedListVpnGatewaysRequest = (function() { /** - * Properties of an AggregatedListVpnTunnelsRequest. + * Properties of an AggregatedListVpnGatewaysRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListVpnTunnelsRequest - * @property {string|null} [filter] AggregatedListVpnTunnelsRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListVpnTunnelsRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListVpnTunnelsRequest maxResults - * @property {string|null} [orderBy] AggregatedListVpnTunnelsRequest orderBy - * @property {string|null} [pageToken] AggregatedListVpnTunnelsRequest pageToken - * @property {string|null} [project] AggregatedListVpnTunnelsRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListVpnTunnelsRequest returnPartialSuccess + * @interface IAggregatedListVpnGatewaysRequest + * @property {string|null} [filter] AggregatedListVpnGatewaysRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListVpnGatewaysRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListVpnGatewaysRequest maxResults + * @property {string|null} [orderBy] AggregatedListVpnGatewaysRequest orderBy + * @property {string|null} [pageToken] AggregatedListVpnGatewaysRequest pageToken + * @property {string|null} [project] AggregatedListVpnGatewaysRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListVpnGatewaysRequest returnPartialSuccess */ /** - * Constructs a new AggregatedListVpnTunnelsRequest. + * Constructs a new AggregatedListVpnGatewaysRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListVpnTunnelsRequest. - * @implements IAggregatedListVpnTunnelsRequest + * @classdesc Represents an AggregatedListVpnGatewaysRequest. + * @implements IAggregatedListVpnGatewaysRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListVpnTunnelsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListVpnGatewaysRequest=} [properties] Properties to set */ - function AggregatedListVpnTunnelsRequest(properties) { + function AggregatedListVpnGatewaysRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -27965,152 +27965,152 @@ } /** - * AggregatedListVpnTunnelsRequest filter. + * AggregatedListVpnGatewaysRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListVpnTunnelsRequest + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest * @instance */ - AggregatedListVpnTunnelsRequest.prototype.filter = null; + AggregatedListVpnGatewaysRequest.prototype.filter = null; /** - * AggregatedListVpnTunnelsRequest includeAllScopes. + * AggregatedListVpnGatewaysRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListVpnTunnelsRequest + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest * @instance */ - AggregatedListVpnTunnelsRequest.prototype.includeAllScopes = null; + AggregatedListVpnGatewaysRequest.prototype.includeAllScopes = null; /** - * AggregatedListVpnTunnelsRequest maxResults. + * AggregatedListVpnGatewaysRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListVpnTunnelsRequest + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest * @instance */ - AggregatedListVpnTunnelsRequest.prototype.maxResults = null; + AggregatedListVpnGatewaysRequest.prototype.maxResults = null; /** - * AggregatedListVpnTunnelsRequest orderBy. + * AggregatedListVpnGatewaysRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListVpnTunnelsRequest + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest * @instance */ - AggregatedListVpnTunnelsRequest.prototype.orderBy = null; + AggregatedListVpnGatewaysRequest.prototype.orderBy = null; /** - * AggregatedListVpnTunnelsRequest pageToken. + * AggregatedListVpnGatewaysRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListVpnTunnelsRequest + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest * @instance */ - AggregatedListVpnTunnelsRequest.prototype.pageToken = null; + AggregatedListVpnGatewaysRequest.prototype.pageToken = null; /** - * AggregatedListVpnTunnelsRequest project. + * AggregatedListVpnGatewaysRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListVpnTunnelsRequest + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest * @instance */ - AggregatedListVpnTunnelsRequest.prototype.project = ""; + AggregatedListVpnGatewaysRequest.prototype.project = ""; /** - * AggregatedListVpnTunnelsRequest returnPartialSuccess. + * AggregatedListVpnGatewaysRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListVpnTunnelsRequest + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest * @instance */ - AggregatedListVpnTunnelsRequest.prototype.returnPartialSuccess = null; + AggregatedListVpnGatewaysRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * AggregatedListVpnTunnelsRequest _filter. + * AggregatedListVpnGatewaysRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListVpnTunnelsRequest + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest * @instance */ - Object.defineProperty(AggregatedListVpnTunnelsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListVpnTunnelsRequest _includeAllScopes. + * AggregatedListVpnGatewaysRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListVpnTunnelsRequest + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest * @instance */ - Object.defineProperty(AggregatedListVpnTunnelsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListVpnTunnelsRequest _maxResults. + * AggregatedListVpnGatewaysRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListVpnTunnelsRequest + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest * @instance */ - Object.defineProperty(AggregatedListVpnTunnelsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListVpnTunnelsRequest _orderBy. + * AggregatedListVpnGatewaysRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListVpnTunnelsRequest + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest * @instance */ - Object.defineProperty(AggregatedListVpnTunnelsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListVpnTunnelsRequest _pageToken. + * AggregatedListVpnGatewaysRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListVpnTunnelsRequest + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest * @instance */ - Object.defineProperty(AggregatedListVpnTunnelsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListVpnTunnelsRequest _returnPartialSuccess. + * AggregatedListVpnGatewaysRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListVpnTunnelsRequest + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest * @instance */ - Object.defineProperty(AggregatedListVpnTunnelsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListVpnTunnelsRequest instance using the specified properties. + * Creates a new AggregatedListVpnGatewaysRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListVpnTunnelsRequest + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListVpnTunnelsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListVpnTunnelsRequest} AggregatedListVpnTunnelsRequest instance + * @param {google.cloud.compute.v1.IAggregatedListVpnGatewaysRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListVpnGatewaysRequest} AggregatedListVpnGatewaysRequest instance */ - AggregatedListVpnTunnelsRequest.create = function create(properties) { - return new AggregatedListVpnTunnelsRequest(properties); + AggregatedListVpnGatewaysRequest.create = function create(properties) { + return new AggregatedListVpnGatewaysRequest(properties); }; /** - * Encodes the specified AggregatedListVpnTunnelsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListVpnTunnelsRequest.verify|verify} messages. + * Encodes the specified AggregatedListVpnGatewaysRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListVpnGatewaysRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListVpnTunnelsRequest + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListVpnTunnelsRequest} message AggregatedListVpnTunnelsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListVpnGatewaysRequest} message AggregatedListVpnGatewaysRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListVpnTunnelsRequest.encode = function encode(message, writer) { + AggregatedListVpnGatewaysRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -28131,33 +28131,468 @@ }; /** - * Encodes the specified AggregatedListVpnTunnelsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListVpnTunnelsRequest.verify|verify} messages. + * Encodes the specified AggregatedListVpnGatewaysRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListVpnGatewaysRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListVpnTunnelsRequest + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListVpnTunnelsRequest} message AggregatedListVpnTunnelsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListVpnGatewaysRequest} message AggregatedListVpnGatewaysRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListVpnTunnelsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListVpnGatewaysRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListVpnTunnelsRequest message from the specified reader or buffer. + * Decodes an AggregatedListVpnGatewaysRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListVpnTunnelsRequest + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest * @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.AggregatedListVpnTunnelsRequest} AggregatedListVpnTunnelsRequest + * @returns {google.cloud.compute.v1.AggregatedListVpnGatewaysRequest} AggregatedListVpnGatewaysRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListVpnTunnelsRequest.decode = function decode(reader, length) { + AggregatedListVpnGatewaysRequest.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.AggregatedListVpnTunnelsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListVpnGatewaysRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 336120696: { + message.filter = reader.string(); + break; + } + case 391327988: { + message.includeAllScopes = reader.bool(); + 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 an AggregatedListVpnGatewaysRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.AggregatedListVpnGatewaysRequest} AggregatedListVpnGatewaysRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AggregatedListVpnGatewaysRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AggregatedListVpnGatewaysRequest message. + * @function verify + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AggregatedListVpnGatewaysRequest.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.includeAllScopes != null && message.hasOwnProperty("includeAllScopes")) { + properties._includeAllScopes = 1; + if (typeof message.includeAllScopes !== "boolean") + return "includeAllScopes: boolean 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 an AggregatedListVpnGatewaysRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.AggregatedListVpnGatewaysRequest} AggregatedListVpnGatewaysRequest + */ + AggregatedListVpnGatewaysRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListVpnGatewaysRequest) + return object; + var message = new $root.google.cloud.compute.v1.AggregatedListVpnGatewaysRequest(); + if (object.filter != null) + message.filter = String(object.filter); + if (object.includeAllScopes != null) + message.includeAllScopes = Boolean(object.includeAllScopes); + 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 an AggregatedListVpnGatewaysRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @static + * @param {google.cloud.compute.v1.AggregatedListVpnGatewaysRequest} message AggregatedListVpnGatewaysRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AggregatedListVpnGatewaysRequest.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.includeAllScopes != null && message.hasOwnProperty("includeAllScopes")) { + object.includeAllScopes = message.includeAllScopes; + if (options.oneofs) + object._includeAllScopes = "includeAllScopes"; + } + if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { + object.returnPartialSuccess = message.returnPartialSuccess; + if (options.oneofs) + object._returnPartialSuccess = "returnPartialSuccess"; + } + return object; + }; + + /** + * Converts this AggregatedListVpnGatewaysRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @instance + * @returns {Object.} JSON object + */ + AggregatedListVpnGatewaysRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for AggregatedListVpnGatewaysRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AggregatedListVpnGatewaysRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListVpnGatewaysRequest"; + }; + + return AggregatedListVpnGatewaysRequest; + })(); + + v1.AggregatedListVpnTunnelsRequest = (function() { + + /** + * Properties of an AggregatedListVpnTunnelsRequest. + * @memberof google.cloud.compute.v1 + * @interface IAggregatedListVpnTunnelsRequest + * @property {string|null} [filter] AggregatedListVpnTunnelsRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListVpnTunnelsRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListVpnTunnelsRequest maxResults + * @property {string|null} [orderBy] AggregatedListVpnTunnelsRequest orderBy + * @property {string|null} [pageToken] AggregatedListVpnTunnelsRequest pageToken + * @property {string|null} [project] AggregatedListVpnTunnelsRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListVpnTunnelsRequest returnPartialSuccess + */ + + /** + * Constructs a new AggregatedListVpnTunnelsRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an AggregatedListVpnTunnelsRequest. + * @implements IAggregatedListVpnTunnelsRequest + * @constructor + * @param {google.cloud.compute.v1.IAggregatedListVpnTunnelsRequest=} [properties] Properties to set + */ + function AggregatedListVpnTunnelsRequest(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]]; + } + + /** + * AggregatedListVpnTunnelsRequest filter. + * @member {string|null|undefined} filter + * @memberof google.cloud.compute.v1.AggregatedListVpnTunnelsRequest + * @instance + */ + AggregatedListVpnTunnelsRequest.prototype.filter = null; + + /** + * AggregatedListVpnTunnelsRequest includeAllScopes. + * @member {boolean|null|undefined} includeAllScopes + * @memberof google.cloud.compute.v1.AggregatedListVpnTunnelsRequest + * @instance + */ + AggregatedListVpnTunnelsRequest.prototype.includeAllScopes = null; + + /** + * AggregatedListVpnTunnelsRequest maxResults. + * @member {number|null|undefined} maxResults + * @memberof google.cloud.compute.v1.AggregatedListVpnTunnelsRequest + * @instance + */ + AggregatedListVpnTunnelsRequest.prototype.maxResults = null; + + /** + * AggregatedListVpnTunnelsRequest orderBy. + * @member {string|null|undefined} orderBy + * @memberof google.cloud.compute.v1.AggregatedListVpnTunnelsRequest + * @instance + */ + AggregatedListVpnTunnelsRequest.prototype.orderBy = null; + + /** + * AggregatedListVpnTunnelsRequest pageToken. + * @member {string|null|undefined} pageToken + * @memberof google.cloud.compute.v1.AggregatedListVpnTunnelsRequest + * @instance + */ + AggregatedListVpnTunnelsRequest.prototype.pageToken = null; + + /** + * AggregatedListVpnTunnelsRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.AggregatedListVpnTunnelsRequest + * @instance + */ + AggregatedListVpnTunnelsRequest.prototype.project = ""; + + /** + * AggregatedListVpnTunnelsRequest returnPartialSuccess. + * @member {boolean|null|undefined} returnPartialSuccess + * @memberof google.cloud.compute.v1.AggregatedListVpnTunnelsRequest + * @instance + */ + AggregatedListVpnTunnelsRequest.prototype.returnPartialSuccess = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * AggregatedListVpnTunnelsRequest _filter. + * @member {"filter"|undefined} _filter + * @memberof google.cloud.compute.v1.AggregatedListVpnTunnelsRequest + * @instance + */ + Object.defineProperty(AggregatedListVpnTunnelsRequest.prototype, "_filter", { + get: $util.oneOfGetter($oneOfFields = ["filter"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * AggregatedListVpnTunnelsRequest _includeAllScopes. + * @member {"includeAllScopes"|undefined} _includeAllScopes + * @memberof google.cloud.compute.v1.AggregatedListVpnTunnelsRequest + * @instance + */ + Object.defineProperty(AggregatedListVpnTunnelsRequest.prototype, "_includeAllScopes", { + get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * AggregatedListVpnTunnelsRequest _maxResults. + * @member {"maxResults"|undefined} _maxResults + * @memberof google.cloud.compute.v1.AggregatedListVpnTunnelsRequest + * @instance + */ + Object.defineProperty(AggregatedListVpnTunnelsRequest.prototype, "_maxResults", { + get: $util.oneOfGetter($oneOfFields = ["maxResults"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * AggregatedListVpnTunnelsRequest _orderBy. + * @member {"orderBy"|undefined} _orderBy + * @memberof google.cloud.compute.v1.AggregatedListVpnTunnelsRequest + * @instance + */ + Object.defineProperty(AggregatedListVpnTunnelsRequest.prototype, "_orderBy", { + get: $util.oneOfGetter($oneOfFields = ["orderBy"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * AggregatedListVpnTunnelsRequest _pageToken. + * @member {"pageToken"|undefined} _pageToken + * @memberof google.cloud.compute.v1.AggregatedListVpnTunnelsRequest + * @instance + */ + Object.defineProperty(AggregatedListVpnTunnelsRequest.prototype, "_pageToken", { + get: $util.oneOfGetter($oneOfFields = ["pageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * AggregatedListVpnTunnelsRequest _returnPartialSuccess. + * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess + * @memberof google.cloud.compute.v1.AggregatedListVpnTunnelsRequest + * @instance + */ + Object.defineProperty(AggregatedListVpnTunnelsRequest.prototype, "_returnPartialSuccess", { + get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new AggregatedListVpnTunnelsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.AggregatedListVpnTunnelsRequest + * @static + * @param {google.cloud.compute.v1.IAggregatedListVpnTunnelsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListVpnTunnelsRequest} AggregatedListVpnTunnelsRequest instance + */ + AggregatedListVpnTunnelsRequest.create = function create(properties) { + return new AggregatedListVpnTunnelsRequest(properties); + }; + + /** + * Encodes the specified AggregatedListVpnTunnelsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListVpnTunnelsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.AggregatedListVpnTunnelsRequest + * @static + * @param {google.cloud.compute.v1.IAggregatedListVpnTunnelsRequest} message AggregatedListVpnTunnelsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AggregatedListVpnTunnelsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 19994697, wireType 2 =*/159957578).string(message.pageToken); + if (message.maxResults != null && Object.hasOwnProperty.call(message, "maxResults")) + writer.uint32(/* id 54715419, wireType 0 =*/437723352).uint32(message.maxResults); + if (message.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.includeAllScopes != null && Object.hasOwnProperty.call(message, "includeAllScopes")) + writer.uint32(/* id 391327988, wireType 0 =*/3130623904).bool(message.includeAllScopes); + if (message.returnPartialSuccess != null && Object.hasOwnProperty.call(message, "returnPartialSuccess")) + writer.uint32(/* id 517198390, wireType 0 =*/4137587120).bool(message.returnPartialSuccess); + return writer; + }; + + /** + * Encodes the specified AggregatedListVpnTunnelsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListVpnTunnelsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.AggregatedListVpnTunnelsRequest + * @static + * @param {google.cloud.compute.v1.IAggregatedListVpnTunnelsRequest} message AggregatedListVpnTunnelsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AggregatedListVpnTunnelsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AggregatedListVpnTunnelsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.AggregatedListVpnTunnelsRequest + * @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.AggregatedListVpnTunnelsRequest} AggregatedListVpnTunnelsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AggregatedListVpnTunnelsRequest.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.AggregatedListVpnTunnelsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -420578,6 +421013,278 @@ return TargetSslProxyList; })(); + v1.TargetTcpProxiesScopedList = (function() { + + /** + * Properties of a TargetTcpProxiesScopedList. + * @memberof google.cloud.compute.v1 + * @interface ITargetTcpProxiesScopedList + * @property {Array.|null} [targetTcpProxies] TargetTcpProxiesScopedList targetTcpProxies + * @property {google.cloud.compute.v1.IWarning|null} [warning] TargetTcpProxiesScopedList warning + */ + + /** + * Constructs a new TargetTcpProxiesScopedList. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a TargetTcpProxiesScopedList. + * @implements ITargetTcpProxiesScopedList + * @constructor + * @param {google.cloud.compute.v1.ITargetTcpProxiesScopedList=} [properties] Properties to set + */ + function TargetTcpProxiesScopedList(properties) { + this.targetTcpProxies = []; + 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]]; + } + + /** + * TargetTcpProxiesScopedList targetTcpProxies. + * @member {Array.} targetTcpProxies + * @memberof google.cloud.compute.v1.TargetTcpProxiesScopedList + * @instance + */ + TargetTcpProxiesScopedList.prototype.targetTcpProxies = $util.emptyArray; + + /** + * TargetTcpProxiesScopedList warning. + * @member {google.cloud.compute.v1.IWarning|null|undefined} warning + * @memberof google.cloud.compute.v1.TargetTcpProxiesScopedList + * @instance + */ + TargetTcpProxiesScopedList.prototype.warning = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * TargetTcpProxiesScopedList _warning. + * @member {"warning"|undefined} _warning + * @memberof google.cloud.compute.v1.TargetTcpProxiesScopedList + * @instance + */ + Object.defineProperty(TargetTcpProxiesScopedList.prototype, "_warning", { + get: $util.oneOfGetter($oneOfFields = ["warning"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new TargetTcpProxiesScopedList instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.TargetTcpProxiesScopedList + * @static + * @param {google.cloud.compute.v1.ITargetTcpProxiesScopedList=} [properties] Properties to set + * @returns {google.cloud.compute.v1.TargetTcpProxiesScopedList} TargetTcpProxiesScopedList instance + */ + TargetTcpProxiesScopedList.create = function create(properties) { + return new TargetTcpProxiesScopedList(properties); + }; + + /** + * Encodes the specified TargetTcpProxiesScopedList message. Does not implicitly {@link google.cloud.compute.v1.TargetTcpProxiesScopedList.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.TargetTcpProxiesScopedList + * @static + * @param {google.cloud.compute.v1.ITargetTcpProxiesScopedList} message TargetTcpProxiesScopedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TargetTcpProxiesScopedList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + 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.targetTcpProxies != null && message.targetTcpProxies.length) + for (var i = 0; i < message.targetTcpProxies.length; ++i) + $root.google.cloud.compute.v1.TargetTcpProxy.encode(message.targetTcpProxies[i], writer.uint32(/* id 262056832, wireType 2 =*/2096454658).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified TargetTcpProxiesScopedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TargetTcpProxiesScopedList.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.TargetTcpProxiesScopedList + * @static + * @param {google.cloud.compute.v1.ITargetTcpProxiesScopedList} message TargetTcpProxiesScopedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TargetTcpProxiesScopedList.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TargetTcpProxiesScopedList message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.TargetTcpProxiesScopedList + * @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.TargetTcpProxiesScopedList} TargetTcpProxiesScopedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TargetTcpProxiesScopedList.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.TargetTcpProxiesScopedList(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 262056832: { + if (!(message.targetTcpProxies && message.targetTcpProxies.length)) + message.targetTcpProxies = []; + message.targetTcpProxies.push($root.google.cloud.compute.v1.TargetTcpProxy.decode(reader, reader.uint32())); + 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 TargetTcpProxiesScopedList message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.TargetTcpProxiesScopedList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.TargetTcpProxiesScopedList} TargetTcpProxiesScopedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TargetTcpProxiesScopedList.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TargetTcpProxiesScopedList message. + * @function verify + * @memberof google.cloud.compute.v1.TargetTcpProxiesScopedList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TargetTcpProxiesScopedList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.targetTcpProxies != null && message.hasOwnProperty("targetTcpProxies")) { + if (!Array.isArray(message.targetTcpProxies)) + return "targetTcpProxies: array expected"; + for (var i = 0; i < message.targetTcpProxies.length; ++i) { + var error = $root.google.cloud.compute.v1.TargetTcpProxy.verify(message.targetTcpProxies[i]); + if (error) + return "targetTcpProxies." + error; + } + } + 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 TargetTcpProxiesScopedList message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.TargetTcpProxiesScopedList + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.TargetTcpProxiesScopedList} TargetTcpProxiesScopedList + */ + TargetTcpProxiesScopedList.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.TargetTcpProxiesScopedList) + return object; + var message = new $root.google.cloud.compute.v1.TargetTcpProxiesScopedList(); + if (object.targetTcpProxies) { + if (!Array.isArray(object.targetTcpProxies)) + throw TypeError(".google.cloud.compute.v1.TargetTcpProxiesScopedList.targetTcpProxies: array expected"); + message.targetTcpProxies = []; + for (var i = 0; i < object.targetTcpProxies.length; ++i) { + if (typeof object.targetTcpProxies[i] !== "object") + throw TypeError(".google.cloud.compute.v1.TargetTcpProxiesScopedList.targetTcpProxies: object expected"); + message.targetTcpProxies[i] = $root.google.cloud.compute.v1.TargetTcpProxy.fromObject(object.targetTcpProxies[i]); + } + } + if (object.warning != null) { + if (typeof object.warning !== "object") + throw TypeError(".google.cloud.compute.v1.TargetTcpProxiesScopedList.warning: object expected"); + message.warning = $root.google.cloud.compute.v1.Warning.fromObject(object.warning); + } + return message; + }; + + /** + * Creates a plain object from a TargetTcpProxiesScopedList message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.TargetTcpProxiesScopedList + * @static + * @param {google.cloud.compute.v1.TargetTcpProxiesScopedList} message TargetTcpProxiesScopedList + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TargetTcpProxiesScopedList.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.targetTcpProxies = []; + 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.targetTcpProxies && message.targetTcpProxies.length) { + object.targetTcpProxies = []; + for (var j = 0; j < message.targetTcpProxies.length; ++j) + object.targetTcpProxies[j] = $root.google.cloud.compute.v1.TargetTcpProxy.toObject(message.targetTcpProxies[j], options); + } + return object; + }; + + /** + * Converts this TargetTcpProxiesScopedList to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.TargetTcpProxiesScopedList + * @instance + * @returns {Object.} JSON object + */ + TargetTcpProxiesScopedList.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for TargetTcpProxiesScopedList + * @function getTypeUrl + * @memberof google.cloud.compute.v1.TargetTcpProxiesScopedList + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TargetTcpProxiesScopedList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.TargetTcpProxiesScopedList"; + }; + + return TargetTcpProxiesScopedList; + })(); + v1.TargetTcpProxiesSetBackendServiceRequest = (function() { /** @@ -421625,6 +422332,491 @@ return TargetTcpProxy; })(); + v1.TargetTcpProxyAggregatedList = (function() { + + /** + * Properties of a TargetTcpProxyAggregatedList. + * @memberof google.cloud.compute.v1 + * @interface ITargetTcpProxyAggregatedList + * @property {string|null} [id] TargetTcpProxyAggregatedList id + * @property {Object.|null} [items] TargetTcpProxyAggregatedList items + * @property {string|null} [kind] TargetTcpProxyAggregatedList kind + * @property {string|null} [nextPageToken] TargetTcpProxyAggregatedList nextPageToken + * @property {string|null} [selfLink] TargetTcpProxyAggregatedList selfLink + * @property {Array.|null} [unreachables] TargetTcpProxyAggregatedList unreachables + * @property {google.cloud.compute.v1.IWarning|null} [warning] TargetTcpProxyAggregatedList warning + */ + + /** + * Constructs a new TargetTcpProxyAggregatedList. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a TargetTcpProxyAggregatedList. + * @implements ITargetTcpProxyAggregatedList + * @constructor + * @param {google.cloud.compute.v1.ITargetTcpProxyAggregatedList=} [properties] Properties to set + */ + function TargetTcpProxyAggregatedList(properties) { + this.items = {}; + this.unreachables = []; + 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]]; + } + + /** + * TargetTcpProxyAggregatedList id. + * @member {string|null|undefined} id + * @memberof google.cloud.compute.v1.TargetTcpProxyAggregatedList + * @instance + */ + TargetTcpProxyAggregatedList.prototype.id = null; + + /** + * TargetTcpProxyAggregatedList items. + * @member {Object.} items + * @memberof google.cloud.compute.v1.TargetTcpProxyAggregatedList + * @instance + */ + TargetTcpProxyAggregatedList.prototype.items = $util.emptyObject; + + /** + * TargetTcpProxyAggregatedList kind. + * @member {string|null|undefined} kind + * @memberof google.cloud.compute.v1.TargetTcpProxyAggregatedList + * @instance + */ + TargetTcpProxyAggregatedList.prototype.kind = null; + + /** + * TargetTcpProxyAggregatedList nextPageToken. + * @member {string|null|undefined} nextPageToken + * @memberof google.cloud.compute.v1.TargetTcpProxyAggregatedList + * @instance + */ + TargetTcpProxyAggregatedList.prototype.nextPageToken = null; + + /** + * TargetTcpProxyAggregatedList selfLink. + * @member {string|null|undefined} selfLink + * @memberof google.cloud.compute.v1.TargetTcpProxyAggregatedList + * @instance + */ + TargetTcpProxyAggregatedList.prototype.selfLink = null; + + /** + * TargetTcpProxyAggregatedList unreachables. + * @member {Array.} unreachables + * @memberof google.cloud.compute.v1.TargetTcpProxyAggregatedList + * @instance + */ + TargetTcpProxyAggregatedList.prototype.unreachables = $util.emptyArray; + + /** + * TargetTcpProxyAggregatedList warning. + * @member {google.cloud.compute.v1.IWarning|null|undefined} warning + * @memberof google.cloud.compute.v1.TargetTcpProxyAggregatedList + * @instance + */ + TargetTcpProxyAggregatedList.prototype.warning = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * TargetTcpProxyAggregatedList _id. + * @member {"id"|undefined} _id + * @memberof google.cloud.compute.v1.TargetTcpProxyAggregatedList + * @instance + */ + Object.defineProperty(TargetTcpProxyAggregatedList.prototype, "_id", { + get: $util.oneOfGetter($oneOfFields = ["id"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * TargetTcpProxyAggregatedList _kind. + * @member {"kind"|undefined} _kind + * @memberof google.cloud.compute.v1.TargetTcpProxyAggregatedList + * @instance + */ + Object.defineProperty(TargetTcpProxyAggregatedList.prototype, "_kind", { + get: $util.oneOfGetter($oneOfFields = ["kind"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * TargetTcpProxyAggregatedList _nextPageToken. + * @member {"nextPageToken"|undefined} _nextPageToken + * @memberof google.cloud.compute.v1.TargetTcpProxyAggregatedList + * @instance + */ + Object.defineProperty(TargetTcpProxyAggregatedList.prototype, "_nextPageToken", { + get: $util.oneOfGetter($oneOfFields = ["nextPageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * TargetTcpProxyAggregatedList _selfLink. + * @member {"selfLink"|undefined} _selfLink + * @memberof google.cloud.compute.v1.TargetTcpProxyAggregatedList + * @instance + */ + Object.defineProperty(TargetTcpProxyAggregatedList.prototype, "_selfLink", { + get: $util.oneOfGetter($oneOfFields = ["selfLink"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * TargetTcpProxyAggregatedList _warning. + * @member {"warning"|undefined} _warning + * @memberof google.cloud.compute.v1.TargetTcpProxyAggregatedList + * @instance + */ + Object.defineProperty(TargetTcpProxyAggregatedList.prototype, "_warning", { + get: $util.oneOfGetter($oneOfFields = ["warning"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new TargetTcpProxyAggregatedList instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.TargetTcpProxyAggregatedList + * @static + * @param {google.cloud.compute.v1.ITargetTcpProxyAggregatedList=} [properties] Properties to set + * @returns {google.cloud.compute.v1.TargetTcpProxyAggregatedList} TargetTcpProxyAggregatedList instance + */ + TargetTcpProxyAggregatedList.create = function create(properties) { + return new TargetTcpProxyAggregatedList(properties); + }; + + /** + * Encodes the specified TargetTcpProxyAggregatedList message. Does not implicitly {@link google.cloud.compute.v1.TargetTcpProxyAggregatedList.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.TargetTcpProxyAggregatedList + * @static + * @param {google.cloud.compute.v1.ITargetTcpProxyAggregatedList} message TargetTcpProxyAggregatedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TargetTcpProxyAggregatedList.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 && Object.hasOwnProperty.call(message, "items")) + for (var keys = Object.keys(message.items), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 100526016, wireType 2 =*/804208130).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.compute.v1.TargetTcpProxiesScopedList.encode(message.items[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.unreachables != null && message.unreachables.length) + for (var i = 0; i < message.unreachables.length; ++i) + writer.uint32(/* id 243372063, wireType 2 =*/1946976506).string(message.unreachables[i]); + if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) + writer.uint32(/* id 456214797, wireType 2 =*/3649718378).string(message.selfLink); + return writer; + }; + + /** + * Encodes the specified TargetTcpProxyAggregatedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TargetTcpProxyAggregatedList.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.TargetTcpProxyAggregatedList + * @static + * @param {google.cloud.compute.v1.ITargetTcpProxyAggregatedList} message TargetTcpProxyAggregatedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TargetTcpProxyAggregatedList.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TargetTcpProxyAggregatedList message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.TargetTcpProxyAggregatedList + * @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.TargetTcpProxyAggregatedList} TargetTcpProxyAggregatedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TargetTcpProxyAggregatedList.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.TargetTcpProxyAggregatedList(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 3355: { + message.id = reader.string(); + break; + } + case 100526016: { + if (message.items === $util.emptyObject) + message.items = {}; + 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.TargetTcpProxiesScopedList.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.items[key] = value; + break; + } + case 3292052: { + message.kind = reader.string(); + break; + } + case 79797525: { + message.nextPageToken = reader.string(); + break; + } + case 456214797: { + message.selfLink = reader.string(); + break; + } + case 243372063: { + if (!(message.unreachables && message.unreachables.length)) + message.unreachables = []; + message.unreachables.push(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 TargetTcpProxyAggregatedList message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.TargetTcpProxyAggregatedList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.TargetTcpProxyAggregatedList} TargetTcpProxyAggregatedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TargetTcpProxyAggregatedList.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TargetTcpProxyAggregatedList message. + * @function verify + * @memberof google.cloud.compute.v1.TargetTcpProxyAggregatedList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TargetTcpProxyAggregatedList.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 (!$util.isObject(message.items)) + return "items: object expected"; + var key = Object.keys(message.items); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.compute.v1.TargetTcpProxiesScopedList.verify(message.items[key[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.unreachables != null && message.hasOwnProperty("unreachables")) { + if (!Array.isArray(message.unreachables)) + return "unreachables: array expected"; + for (var i = 0; i < message.unreachables.length; ++i) + if (!$util.isString(message.unreachables[i])) + return "unreachables: 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 TargetTcpProxyAggregatedList message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.TargetTcpProxyAggregatedList + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.TargetTcpProxyAggregatedList} TargetTcpProxyAggregatedList + */ + TargetTcpProxyAggregatedList.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.TargetTcpProxyAggregatedList) + return object; + var message = new $root.google.cloud.compute.v1.TargetTcpProxyAggregatedList(); + if (object.id != null) + message.id = String(object.id); + if (object.items) { + if (typeof object.items !== "object") + throw TypeError(".google.cloud.compute.v1.TargetTcpProxyAggregatedList.items: object expected"); + message.items = {}; + for (var keys = Object.keys(object.items), i = 0; i < keys.length; ++i) { + if (typeof object.items[keys[i]] !== "object") + throw TypeError(".google.cloud.compute.v1.TargetTcpProxyAggregatedList.items: object expected"); + message.items[keys[i]] = $root.google.cloud.compute.v1.TargetTcpProxiesScopedList.fromObject(object.items[keys[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.unreachables) { + if (!Array.isArray(object.unreachables)) + throw TypeError(".google.cloud.compute.v1.TargetTcpProxyAggregatedList.unreachables: array expected"); + message.unreachables = []; + for (var i = 0; i < object.unreachables.length; ++i) + message.unreachables[i] = String(object.unreachables[i]); + } + if (object.warning != null) { + if (typeof object.warning !== "object") + throw TypeError(".google.cloud.compute.v1.TargetTcpProxyAggregatedList.warning: object expected"); + message.warning = $root.google.cloud.compute.v1.Warning.fromObject(object.warning); + } + return message; + }; + + /** + * Creates a plain object from a TargetTcpProxyAggregatedList message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.TargetTcpProxyAggregatedList + * @static + * @param {google.cloud.compute.v1.TargetTcpProxyAggregatedList} message TargetTcpProxyAggregatedList + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TargetTcpProxyAggregatedList.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.unreachables = []; + if (options.objects || 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"; + } + var keys2; + if (message.items && (keys2 = Object.keys(message.items)).length) { + object.items = {}; + for (var j = 0; j < keys2.length; ++j) + object.items[keys2[j]] = $root.google.cloud.compute.v1.TargetTcpProxiesScopedList.toObject(message.items[keys2[j]], options); + } + if (message.unreachables && message.unreachables.length) { + object.unreachables = []; + for (var j = 0; j < message.unreachables.length; ++j) + object.unreachables[j] = message.unreachables[j]; + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + object.selfLink = message.selfLink; + if (options.oneofs) + object._selfLink = "selfLink"; + } + return object; + }; + + /** + * Converts this TargetTcpProxyAggregatedList to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.TargetTcpProxyAggregatedList + * @instance + * @returns {Object.} JSON object + */ + TargetTcpProxyAggregatedList.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for TargetTcpProxyAggregatedList + * @function getTypeUrl + * @memberof google.cloud.compute.v1.TargetTcpProxyAggregatedList + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TargetTcpProxyAggregatedList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.TargetTcpProxyAggregatedList"; + }; + + return TargetTcpProxyAggregatedList; + })(); + v1.TargetTcpProxyList = (function() { /** @@ -479560,6 +480752,39 @@ return new this(rpcImpl, requestDelimited, responseDelimited); }; + /** + * Callback as used by {@link google.cloud.compute.v1.TargetTcpProxies|aggregatedList}. + * @memberof google.cloud.compute.v1.TargetTcpProxies + * @typedef AggregatedListCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.TargetTcpProxyAggregatedList} [response] TargetTcpProxyAggregatedList + */ + + /** + * Calls AggregatedList. + * @function aggregatedList + * @memberof google.cloud.compute.v1.TargetTcpProxies + * @instance + * @param {google.cloud.compute.v1.IAggregatedListTargetTcpProxiesRequest} request AggregatedListTargetTcpProxiesRequest message or plain object + * @param {google.cloud.compute.v1.TargetTcpProxies.AggregatedListCallback} callback Node-style callback called with the error, if any, and TargetTcpProxyAggregatedList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(TargetTcpProxies.prototype.aggregatedList = function aggregatedList(request, callback) { + return this.rpcCall(aggregatedList, $root.google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest, $root.google.cloud.compute.v1.TargetTcpProxyAggregatedList, request, callback); + }, "name", { value: "AggregatedList" }); + + /** + * Calls AggregatedList. + * @function aggregatedList + * @memberof google.cloud.compute.v1.TargetTcpProxies + * @instance + * @param {google.cloud.compute.v1.IAggregatedListTargetTcpProxiesRequest} request AggregatedListTargetTcpProxiesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.compute.v1.TargetTcpProxies|delete_}. * @memberof google.cloud.compute.v1.TargetTcpProxies diff --git a/packages/google-cloud-compute/protos/protos.json b/packages/google-cloud-compute/protos/protos.json index e7f598f709b..afa1306e6c5 100644 --- a/packages/google-cloud-compute/protos/protos.json +++ b/packages/google-cloud-compute/protos/protos.json @@ -4847,6 +4847,91 @@ } } }, + "AggregatedListTargetTcpProxiesRequest": { + "oneofs": { + "_filter": { + "oneof": [ + "filter" + ] + }, + "_includeAllScopes": { + "oneof": [ + "includeAllScopes" + ] + }, + "_maxResults": { + "oneof": [ + "maxResults" + ] + }, + "_orderBy": { + "oneof": [ + "orderBy" + ] + }, + "_pageToken": { + "oneof": [ + "pageToken" + ] + }, + "_returnPartialSuccess": { + "oneof": [ + "returnPartialSuccess" + ] + } + }, + "fields": { + "filter": { + "type": "string", + "id": 336120696, + "options": { + "proto3_optional": true + } + }, + "includeAllScopes": { + "type": "bool", + "id": 391327988, + "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 + } + } + } + }, "AggregatedListTargetVpnGatewaysRequest": { "oneofs": { "_filter": { @@ -65413,6 +65498,29 @@ } } }, + "TargetTcpProxiesScopedList": { + "oneofs": { + "_warning": { + "oneof": [ + "warning" + ] + } + }, + "fields": { + "targetTcpProxies": { + "rule": "repeated", + "type": "TargetTcpProxy", + "id": 262056832 + }, + "warning": { + "type": "Warning", + "id": 50704284, + "options": { + "proto3_optional": true + } + } + } + }, "TargetTcpProxiesSetBackendServiceRequest": { "oneofs": { "_service": { @@ -65593,6 +65701,82 @@ } } }, + "TargetTcpProxyAggregatedList": { + "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": { + "keyType": "string", + "type": "TargetTcpProxiesScopedList", + "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 + } + }, + "unreachables": { + "rule": "repeated", + "type": "string", + "id": 243372063 + }, + "warning": { + "type": "Warning", + "id": 50704284, + "options": { + "proto3_optional": true + } + } + } + }, "TargetTcpProxyList": { "oneofs": { "_id": { @@ -84443,6 +84627,24 @@ "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/compute,https://www.googleapis.com/auth/cloud-platform" }, "methods": { + "AggregatedList": { + "requestType": "AggregatedListTargetTcpProxiesRequest", + "responseType": "TargetTcpProxyAggregatedList", + "options": { + "(google.api.http).get": "/compute/v1/projects/{project}/aggregated/targetTcpProxies", + "(google.api.method_signature)": "project" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/v1/projects/{project}/aggregated/targetTcpProxies" + } + }, + { + "(google.api.method_signature)": "project" + } + ] + }, "Delete": { "requestType": "DeleteTargetTcpProxyRequest", "responseType": "Operation", diff --git a/packages/google-cloud-compute/samples/README.md b/packages/google-cloud-compute/samples/README.md index 26a97fe7ea1..2836657f4bb 100644 --- a/packages/google-cloud-compute/samples/README.md +++ b/packages/google-cloud-compute/samples/README.md @@ -639,6 +639,7 @@ * [Target_ssl_proxies.set_proxy_header](#target_ssl_proxies.set_proxy_header) * [Target_ssl_proxies.set_ssl_certificates](#target_ssl_proxies.set_ssl_certificates) * [Target_ssl_proxies.set_ssl_policy](#target_ssl_proxies.set_ssl_policy) + * [Target_tcp_proxies.aggregated_list](#target_tcp_proxies.aggregated_list) * [Target_tcp_proxies.delete](#target_tcp_proxies.delete) * [Target_tcp_proxies.get](#target_tcp_proxies.get) * [Target_tcp_proxies.insert](#target_tcp_proxies.insert) @@ -11363,6 +11364,23 @@ __Usage:__ +### Target_tcp_proxies.aggregated_list + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/target_tcp_proxies.aggregated_list.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/target_tcp_proxies.aggregated_list.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-compute/samples/generated/v1/target_tcp_proxies.aggregated_list.js` + + +----- + + + + ### Target_tcp_proxies.delete View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/target_tcp_proxies.delete.js). diff --git a/packages/google-cloud-compute/samples/generated/v1/snippet_metadata.google.cloud.compute.v1.json b/packages/google-cloud-compute/samples/generated/v1/snippet_metadata.google.cloud.compute.v1.json index 8e5ae6fcc19..e1887a68826 100644 --- a/packages/google-cloud-compute/samples/generated/v1/snippet_metadata.google.cloud.compute.v1.json +++ b/packages/google-cloud-compute/samples/generated/v1/snippet_metadata.google.cloud.compute.v1.json @@ -33663,6 +33663,70 @@ } } }, + { + "regionTag": "compute_v1_generated_TargetTcpProxies_AggregatedList_async", + "title": "AcceleratorTypes aggregatedList Sample", + "origin": "API_DEFINITION", + "description": " Retrieves the list of all TargetTcpProxy resources, regional and global, available to the specified project.", + "canonical": true, + "file": "target_tcp_proxies.aggregated_list.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 79, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "AggregatedList", + "fullName": "google.cloud.compute.v1.TargetTcpProxies.AggregatedList", + "async": true, + "parameters": [ + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "include_all_scopes", + "type": "TYPE_BOOL" + }, + { + "name": "max_results", + "type": "TYPE_UINT32" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "return_partial_success", + "type": "TYPE_BOOL" + } + ], + "resultType": ".google.cloud.compute.v1.TargetTcpProxyAggregatedList", + "client": { + "shortName": "TargetTcpProxiesClient", + "fullName": "google.cloud.compute.v1.TargetTcpProxiesClient" + }, + "method": { + "shortName": "AggregatedList", + "fullName": "google.cloud.compute.v1.TargetTcpProxies.AggregatedList", + "service": { + "shortName": "TargetTcpProxies", + "fullName": "google.cloud.compute.v1.TargetTcpProxies" + } + } + } + }, { "regionTag": "compute_v1_generated_TargetTcpProxies_Delete_async", "title": "AcceleratorTypes delete Sample", diff --git a/packages/google-cloud-compute/samples/generated/v1/target_tcp_proxies.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/target_tcp_proxies.aggregated_list.js new file mode 100644 index 00000000000..fdab77e151b --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/target_tcp_proxies.aggregated_list.js @@ -0,0 +1,87 @@ +// 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. ** + + + +'use strict'; + +function main(project) { + // [START compute_v1_generated_TargetTcpProxies_AggregatedList_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. + */ + // const filter = 'abc123' + /** + * 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. + */ + // const includeAllScopes = true + /** + * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` 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' + /** + * Name of the project scoping 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 {TargetTcpProxiesClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new TargetTcpProxiesClient(); + + async function callAggregatedList() { + // Construct request + const request = { + project, + }; + + // Run request + const iterable = await computeClient.aggregatedListAsync(request); + for await (const [key, value] of iterable) { + console.log(response); + } + } + + callAggregatedList(); + // [END compute_v1_generated_TargetTcpProxies_AggregatedList_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/src/v1/gapic_metadata.json b/packages/google-cloud-compute/src/v1/gapic_metadata.json index a10b4a674ba..65048de71e5 100644 --- a/packages/google-cloud-compute/src/v1/gapic_metadata.json +++ b/packages/google-cloud-compute/src/v1/gapic_metadata.json @@ -7929,6 +7929,13 @@ "setProxyHeader" ] }, + "AggregatedList": { + "methods": [ + "aggregatedList", + "aggregatedListStream", + "aggregatedListAsync" + ] + }, "List": { "methods": [ "list", @@ -7966,6 +7973,13 @@ "setProxyHeader" ] }, + "AggregatedList": { + "methods": [ + "aggregatedList", + "aggregatedListStream", + "aggregatedListAsync" + ] + }, "List": { "methods": [ "list", 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 a1221f217c5..fded00b8976 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 @@ -178,6 +178,11 @@ export class TargetTcpProxiesClient { // (e.g. 50 results at a time, with tokens to get subsequent // pages). Denote the keys used for pagination and results. this.descriptors.page = { + aggregatedList: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'items' + ), list: new this._gaxModule.PageDescriptor( 'pageToken', 'nextPageToken', @@ -235,6 +240,7 @@ export class TargetTcpProxiesClient { // Iterate over each of the methods that the service provides // and create an API call method for each. const targetTcpProxiesStubMethods = [ + 'aggregatedList', 'delete', 'get', 'insert', @@ -909,6 +915,64 @@ export class TargetTcpProxiesClient { ); } + /** + * Retrieves the list of all TargetTcpProxy resources, regional and global, available to the specified project. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. + * @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 + * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be 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 + * Name of the project scoping 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 + * as tuple [string, [TargetTcpProxiesScopedList]{@link google.cloud.compute.v1.TargetTcpProxiesScopedList}]. 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/target_tcp_proxies.aggregated_list.js + * region_tag:compute_v1_generated_TargetTcpProxies_AggregatedList_async + */ + aggregatedListAsync( + request?: protos.google.cloud.compute.v1.IAggregatedListTargetTcpProxiesRequest, + options?: CallOptions + ): AsyncIterable< + [string, protos.google.cloud.compute.v1.ITargetTcpProxiesScopedList] + > { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + project: request.project ?? '', + }); + const defaultCallSettings = this._defaults['aggregatedList']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.aggregatedList.asyncIterate( + this.innerApiCalls['aggregatedList'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable< + [string, protos.google.cloud.compute.v1.ITargetTcpProxiesScopedList] + >; + } /** * Retrieves the list of TargetTcpProxy resources available to the specified project. * diff --git a/packages/google-cloud-compute/src/v1/target_tcp_proxies_client_config.json b/packages/google-cloud-compute/src/v1/target_tcp_proxies_client_config.json index e453ef8930e..929bd938cb6 100644 --- a/packages/google-cloud-compute/src/v1/target_tcp_proxies_client_config.json +++ b/packages/google-cloud-compute/src/v1/target_tcp_proxies_client_config.json @@ -20,6 +20,10 @@ } }, "methods": { + "AggregatedList": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "Delete": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" diff --git a/packages/google-cloud-compute/test/gapic_target_tcp_proxies_v1.ts b/packages/google-cloud-compute/test/gapic_target_tcp_proxies_v1.ts index 14b9ee9fa7b..bc02b20f6b4 100644 --- a/packages/google-cloud-compute/test/gapic_target_tcp_proxies_v1.ts +++ b/packages/google-cloud-compute/test/gapic_target_tcp_proxies_v1.ts @@ -957,6 +957,110 @@ describe('v1.TargetTcpProxiesClient', () => { }); }); + describe('aggregatedList', () => { + it('uses async iteration with aggregatedList without error', async () => { + const client = new targettcpproxiesModule.v1.TargetTcpProxiesClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest', + ['project'] + ); + request.project = defaultValue1; + const expectedHeaderRequestParams = `project=${defaultValue1}`; + const expectedResponse = [ + [ + 'tuple_key_1', + generateSampleMessage( + new protos.google.cloud.compute.v1.TargetTcpProxiesScopedList() + ), + ], + [ + 'tuple_key_2', + generateSampleMessage( + new protos.google.cloud.compute.v1.TargetTcpProxiesScopedList() + ), + ], + [ + 'tuple_key_3', + generateSampleMessage( + new protos.google.cloud.compute.v1.TargetTcpProxiesScopedList() + ), + ], + ]; + client.descriptors.page.aggregatedList.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: Array< + [string, protos.google.cloud.compute.v1.ITargetTcpProxiesScopedList] + > = []; + const iterable = client.aggregatedListAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.aggregatedList.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with aggregatedList with error', async () => { + const client = new targettcpproxiesModule.v1.TargetTcpProxiesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest', + ['project'] + ); + request.project = defaultValue1; + const expectedHeaderRequestParams = `project=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.aggregatedList.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.aggregatedListAsync(request); + await assert.rejects(async () => { + const responses: Array< + [string, protos.google.cloud.compute.v1.ITargetTcpProxiesScopedList] + > = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.aggregatedList.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.aggregatedList.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); + describe('list', () => { it('invokes list without error', async () => { const client = new targettcpproxiesModule.v1.TargetTcpProxiesClient({