From 07dd8f65876e6100cce257093e711f0001197424 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 7 Dec 2022 19:20:15 +0000 Subject: [PATCH] feat: Update Compute Engine API to revision 20221126 (#757) (#3705) - [ ] Regenerate this pull request now. Source-Link: https://togithub.com/googleapis/googleapis/commit/385f34abf42e2ef1dced8eec4c032d1045706f4c Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/9dcab2c5544013a6010c3b1a8af84c44b4729f37 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbXB1dGUvLk93bEJvdC55YW1sIiwiaCI6IjlkY2FiMmM1NTQ0MDEzYTYwMTBjM2IxYThhZjg0YzQ0YjQ3MjlmMzcifQ== --- packages/google-cloud-compute/README.md | 8 + .../google/cloud/compute/v1/compute.proto | 532 +- .../google-cloud-compute/protos/protos.d.ts | 2059 +++ .../google-cloud-compute/protos/protos.js | 10421 ++++++++++++---- .../google-cloud-compute/protos/protos.json | 1355 +- .../google-cloud-compute/samples/README.md | 144 + .../samples/generated/v1/instances.stop.js | 4 + .../samples/generated/v1/instances.suspend.js | 4 + .../v1/network_attachments.aggregated_list.js | 87 + .../v1/network_attachments.delete.js | 75 + .../generated/v1/network_attachments.get.js | 71 + .../v1/network_attachments.get_iam_policy.js | 75 + .../v1/network_attachments.insert.js | 75 + .../generated/v1/network_attachments.list.js | 88 + .../v1/network_attachments.set_iam_policy.js | 76 + ...etwork_attachments.test_iam_permissions.js | 76 + ...ppet_metadata.google.cloud.compute.v1.json | 460 +- packages/google-cloud-compute/src/index.ts | 4 + .../src/v1/gapic_metadata.json | 102 + packages/google-cloud-compute/src/v1/index.ts | 1 + .../src/v1/instances_client.ts | 4 + .../src/v1/interconnects_client.ts | 12 +- .../src/v1/network_attachments_client.ts | 1281 ++ .../v1/network_attachments_client_config.json | 58 + .../v1/network_attachments_proto_list.json | 3 + .../system-test/fixtures/sample/src/index.js | 1 + .../system-test/fixtures/sample/src/index.ts | 7 + .../test/gapic_network_attachments_v1.ts | 1692 +++ 28 files changed, 16183 insertions(+), 2592 deletions(-) create mode 100644 packages/google-cloud-compute/samples/generated/v1/network_attachments.aggregated_list.js create mode 100644 packages/google-cloud-compute/samples/generated/v1/network_attachments.delete.js create mode 100644 packages/google-cloud-compute/samples/generated/v1/network_attachments.get.js create mode 100644 packages/google-cloud-compute/samples/generated/v1/network_attachments.get_iam_policy.js create mode 100644 packages/google-cloud-compute/samples/generated/v1/network_attachments.insert.js create mode 100644 packages/google-cloud-compute/samples/generated/v1/network_attachments.list.js create mode 100644 packages/google-cloud-compute/samples/generated/v1/network_attachments.set_iam_policy.js create mode 100644 packages/google-cloud-compute/samples/generated/v1/network_attachments.test_iam_permissions.js create mode 100644 packages/google-cloud-compute/src/v1/network_attachments_client.ts create mode 100644 packages/google-cloud-compute/src/v1/network_attachments_client_config.json create mode 100644 packages/google-cloud-compute/src/v1/network_attachments_proto_list.json create mode 100644 packages/google-cloud-compute/test/gapic_network_attachments_v1.ts diff --git a/packages/google-cloud-compute/README.md b/packages/google-cloud-compute/README.md index fcd553da763..8c702443ebe 100644 --- a/packages/google-cloud-compute/README.md +++ b/packages/google-cloud-compute/README.md @@ -363,6 +363,14 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Machine_types.aggregated_list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/machine_types.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/machine_types.aggregated_list.js,samples/README.md) | | Machine_types.get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/machine_types.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/machine_types.get.js,samples/README.md) | | Machine_types.list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/machine_types.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/machine_types.list.js,samples/README.md) | +| Network_attachments.aggregated_list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/network_attachments.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/network_attachments.aggregated_list.js,samples/README.md) | +| Network_attachments.delete | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/network_attachments.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/network_attachments.delete.js,samples/README.md) | +| Network_attachments.get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/network_attachments.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/network_attachments.get.js,samples/README.md) | +| Network_attachments.get_iam_policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/network_attachments.get_iam_policy.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/network_attachments.get_iam_policy.js,samples/README.md) | +| Network_attachments.insert | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/network_attachments.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/network_attachments.insert.js,samples/README.md) | +| Network_attachments.list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/network_attachments.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/network_attachments.list.js,samples/README.md) | +| Network_attachments.set_iam_policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/network_attachments.set_iam_policy.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/network_attachments.set_iam_policy.js,samples/README.md) | +| Network_attachments.test_iam_permissions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/network_attachments.test_iam_permissions.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/network_attachments.test_iam_permissions.js,samples/README.md) | | Network_edge_security_services.aggregated_list | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/network_edge_security_services.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/network_edge_security_services.aggregated_list.js,samples/README.md) | | Network_edge_security_services.delete | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/network_edge_security_services.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/network_edge_security_services.delete.js,samples/README.md) | | Network_edge_security_services.get | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/network_edge_security_services.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/network_edge_security_services.get.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 f52863d4f95..04d01834af5 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: 20221101 +// Source file revision: 20221126 // API name: compute // API version: v1 @@ -1270,6 +1270,31 @@ message AggregatedListMachineTypesRequest { } +// A request message for NetworkAttachments.AggregatedList. See the method description for details. +message AggregatedListNetworkAttachmentsRequest { + // 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; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + optional bool return_partial_success = 517198390; + +} + // A request message for NetworkEdgeSecurityServices.AggregatedList. See the method description for details. message AggregatedListNetworkEdgeSecurityServicesRequest { // 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`. @@ -2728,7 +2753,7 @@ message Backend { // Check the BalancingMode enum for the list of possible values. optional string balancing_mode = 430286217; - // A multiplier applied to the backend's target capacity of its balancing mode. The default value is 1, which means the group serves up to 100% of its configured capacity (depending on balancingMode). A setting of 0 means the group is completely drained, offering 0% of its available capacity. The valid ranges are 0.0 and [0.1,1.0]. You cannot configure a setting larger than 0 and smaller than 0.1. You cannot configure a setting of 0 when there is only one backend attached to the backend service. + // A multiplier applied to the backend's target capacity of its balancing mode. The default value is 1, which means the group serves up to 100% of its configured capacity (depending on balancingMode). A setting of 0 means the group is completely drained, offering 0% of its available capacity. The valid ranges are 0.0 and [0.1,1.0]. You cannot configure a setting larger than 0 and smaller than 0.1. You cannot configure a setting of 0 when there is only one backend attached to the backend service. Not available with backends that don't support using a balancingMode. This includes backends such as global internet NEGs, regional serverless NEGs, and PSC NEGs. optional float capacity_scaler = 315958157; // An optional description of this resource. Provide this property when you create the resource. @@ -4891,6 +4916,28 @@ message DeleteMachineImageRequest { } +// A request message for NetworkAttachments.Delete. See the method description for details. +message DeleteNetworkAttachmentRequest { + // Name of the NetworkAttachment resource to delete. + string network_attachment = 224644052 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // Name of the region of this request. + string region = 138946292 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "region" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + optional string request_id = 37109963; + +} + // A request message for NetworkEdgeSecurityServices.Delete. See the method description for details. message DeleteNetworkEdgeSecurityServiceRequest { // Name of the network edge security service to delete. @@ -6621,7 +6668,7 @@ message ErrorInfo { // Additional structured details about this error. Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than {"instanceLimit": "100/request"}, should be returned as, {"instanceLimitPerRequest": "100"}, if the client exceeds the number of instances that can be created in a single (batch) request. map metadatas = 8514340; - // The reason of the error. This is a constant value that identifies the proximate cause of the error. Error reasons are unique within a particular domain of errors. This should be at most 63 characters and match /[A-Z0-9_]+/. + // The reason of the error. This is a constant value that identifies the proximate cause of the error. Error reasons are unique within a particular domain of errors. This should be at most 63 characters and match a regular expression of `A-Z+[A-Z0-9]`, which represents UPPER_SNAKE_CASE. optional string reason = 138777156; } @@ -7002,7 +7049,7 @@ message FirewallPolicy { // [Output only] Type of the resource. Always compute#firewallPolicyfor firewall policies optional string kind = 3292052; - // Name of the resource. For Organization Firewall Policies it's a [Output Only] numeric ID allocated by GCP which uniquely identifies the Organization Firewall Policy. + // Name of the resource. For Organization Firewall Policies it's a [Output Only] numeric ID allocated by Google Cloud which uniquely identifies the Organization Firewall Policy. optional string name = 3373707; // [Output Only] The parent of the firewall policy. This field is not applicable to network firewall policies. @@ -7287,7 +7334,7 @@ message ForwardingRule { // Check the IPProtocolEnum enum for the list of possible values. optional string I_p_protocol = 488094525; - // This field is used along with the backend_service field for Internal TCP/UDP Load Balancing or Network Load Balancing, or with the target field for internal and external TargetInstance. You can only use one of ports and port_range, or allPorts. The three are mutually exclusive. For TCP, UDP and SCTP traffic, packets addressed to any ports will be forwarded to the target or backendService. + // This field can only be used: - If IPProtocol is one of TCP, UDP, or SCTP. - By internal TCP/UDP load balancers, backend service-based network load balancers, and internal and external protocol forwarding. Set this field to true to allow packets addressed to any port or packets lacking destination port information (for example, UDP fragments after the first fragment) to be forwarded to the backends configured with this forwarding rule. The ports, port_range, and allPorts fields are mutually exclusive. optional bool all_ports = 445175796; // This field is used along with the backend_service field for internal load balancing or with the target field for internal TargetInstance. If the field is set to TRUE, clients can access ILB from all regions. Otherwise only allows access from clients in the same region as the internal load balancer. @@ -7344,10 +7391,10 @@ message ForwardingRule { // This is used in PSC consumer ForwardingRule to control whether it should try to auto-generate a DNS zone or not. Non-PSC forwarding rules do not use this field. optional bool no_automate_dns_zone = 64546991; - // This field can be used only if: - Load balancing scheme is one of EXTERNAL, INTERNAL_SELF_MANAGED or INTERNAL_MANAGED - IPProtocol is one of TCP, UDP, or SCTP. Packets addressed to ports in the specified range will be forwarded to target or backend_service. You can only use one of ports, port_range, or allPorts. The three are mutually exclusive. Forwarding rules with the same [IPAddress, IPProtocol] pair must have disjoint ports. Some types of forwarding target have constraints on the acceptable ports. For more information, see [Port specifications](https://cloud.google.com/load-balancing/docs/forwarding-rule-concepts#port_specifications). @pattern: \\d+(?:-\\d+)? + // This field can only be used: - If IPProtocol is one of TCP, UDP, or SCTP. - By backend service-based network load balancers, target pool-based network load balancers, internal proxy load balancers, external proxy load balancers, Traffic Director, external protocol forwarding, and Classic VPN. Some products have restrictions on what ports can be used. See port specifications for details. Only packets addressed to ports in the specified range will be forwarded to the backends configured with this forwarding rule. The ports, port_range, and allPorts fields are mutually exclusive. For external forwarding rules, two or more forwarding rules cannot use the same [IPAddress, IPProtocol] pair, and cannot have overlapping portRanges. For internal forwarding rules within the same VPC network, two or more forwarding rules cannot use the same [IPAddress, IPProtocol] pair, and cannot have overlapping portRanges. @pattern: \\d+(?:-\\d+)? optional string port_range = 217518079; - // The ports field is only supported when the forwarding rule references a backend_service directly. Only packets addressed to the [specified list of ports]((https://cloud.google.com/load-balancing/docs/forwarding-rule-concepts#port_specifications)) are forwarded to backends. You can only use one of ports and port_range, or allPorts. The three are mutually exclusive. You can specify a list of up to five ports, which can be non-contiguous. Forwarding rules with the same [IPAddress, IPProtocol] pair must have disjoint ports. @pattern: \\d+(?:-\\d+)? + // This field can only be used: - If IPProtocol is one of TCP, UDP, or SCTP. - By internal TCP/UDP load balancers, backend service-based network load balancers, and internal protocol forwarding. You can specify a list of up to five ports by number, separated by commas. The ports can be contiguous or discontiguous. Only packets addressed to these ports will be forwarded to the backends configured with this forwarding rule. For external forwarding rules, two or more forwarding rules cannot use the same [IPAddress, IPProtocol] pair, and cannot share any values defined in ports. For internal forwarding rules within the same VPC network, two or more forwarding rules cannot use the same [IPAddress, IPProtocol] pair, and cannot share any values defined in ports. The ports, port_range, and allPorts fields are mutually exclusive. @pattern: \\d+(?:-\\d+)? repeated string ports = 106854418; // [Output Only] The PSC connection id of the PSC Forwarding Rule. @@ -7957,6 +8004,22 @@ message GetIamPolicyMachineImageRequest { } +// A request message for NetworkAttachments.GetIamPolicy. See the method description for details. +message GetIamPolicyNetworkAttachmentRequest { + // Requested IAM Policy version. + optional int32 options_requested_policy_version = 499220029; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // The name of the region for this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + + // Name or id of the resource for this request. + string resource = 195806222 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for NetworkFirewallPolicies.GetIamPolicy. See the method description for details. message GetIamPolicyNetworkFirewallPolicyRequest { // Requested IAM Policy version. @@ -8303,6 +8366,19 @@ message GetNatMappingInfoRoutersRequest { } +// A request message for NetworkAttachments.Get. See the method description for details. +message GetNetworkAttachmentRequest { + // Name of the NetworkAttachment resource to return. + string network_attachment = 224644052 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Name of the region of this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for NetworkEdgeSecurityServices.Get. See the method description for details. message GetNetworkEdgeSecurityServiceRequest { // Name of the network edge security service to get. @@ -9520,7 +9596,7 @@ message HealthCheckReference { // Represents a Health-Check as a Service resource. message HealthCheckService { - // Optional. Policy for how the results from multiple health checks for the same endpoint are aggregated. Defaults to NO_AGGREGATION if unspecified. - NO_AGGREGATION. An EndpointHealth message is returned for each pair in the health check service. - AND. If any health check of an endpoint reports UNHEALTHY, then UNHEALTHY is the HealthState of the endpoint. If all health checks report HEALTHY, the HealthState of the endpoint is HEALTHY. . + // Optional. Policy for how the results from multiple health checks for the same endpoint are aggregated. Defaults to NO_AGGREGATION if unspecified. - NO_AGGREGATION. An EndpointHealth message is returned for each pair in the health check service. - AND. If any health check of an endpoint reports UNHEALTHY, then UNHEALTHY is the HealthState of the endpoint. If all health checks report HEALTHY, the HealthState of the endpoint is HEALTHY. . This is only allowed with regional HealthCheckService. enum HealthStatusAggregationPolicy { // A value indicating that the enum field is not set. UNDEFINED_HEALTH_STATUS_AGGREGATION_POLICY = 0; @@ -9542,10 +9618,10 @@ message HealthCheckService { // 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 HealthCheckService. An up-to-date fingerprint must be provided in order to patch/update the HealthCheckService; Otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the HealthCheckService. optional string fingerprint = 234678500; - // A list of URLs to the HealthCheck resources. Must have at least one HealthCheck, and not more than 10. HealthCheck resources must have portSpecification=USE_SERVING_PORT or portSpecification=USE_FIXED_PORT. For regional HealthCheckService, the HealthCheck must be regional and in the same region. For global HealthCheckService, HealthCheck must be global. Mix of regional and global HealthChecks is not supported. Multiple regional HealthChecks must belong to the same region. Regional HealthChecks must belong to the same region as zones of NEGs. + // A list of URLs to the HealthCheck resources. Must have at least one HealthCheck, and not more than 10 for regional HealthCheckService, and not more than 1 for global HealthCheckService. HealthCheck resources must have portSpecification=USE_SERVING_PORT or portSpecification=USE_FIXED_PORT. For regional HealthCheckService, the HealthCheck must be regional and in the same region. For global HealthCheckService, HealthCheck must be global. Mix of regional and global HealthChecks is not supported. Multiple regional HealthChecks must belong to the same region. Regional HealthChecks must belong to the same region as zones of NetworkEndpointGroups. For global HealthCheckService using global INTERNET_IP_PORT NetworkEndpointGroups, the global HealthChecks must specify sourceRegions, and HealthChecks that specify sourceRegions can only be used with global INTERNET_IP_PORT NetworkEndpointGroups. repeated string health_checks = 448370606; - // Optional. Policy for how the results from multiple health checks for the same endpoint are aggregated. Defaults to NO_AGGREGATION if unspecified. - NO_AGGREGATION. An EndpointHealth message is returned for each pair in the health check service. - AND. If any health check of an endpoint reports UNHEALTHY, then UNHEALTHY is the HealthState of the endpoint. If all health checks report HEALTHY, the HealthState of the endpoint is HEALTHY. . + // Optional. Policy for how the results from multiple health checks for the same endpoint are aggregated. Defaults to NO_AGGREGATION if unspecified. - NO_AGGREGATION. An EndpointHealth message is returned for each pair in the health check service. - AND. If any health check of an endpoint reports UNHEALTHY, then UNHEALTHY is the HealthState of the endpoint. If all health checks report HEALTHY, the HealthState of the endpoint is HEALTHY. . This is only allowed with regional HealthCheckService. // Check the HealthStatusAggregationPolicy enum for the list of possible values. optional string health_status_aggregation_policy = 253163129; @@ -9558,7 +9634,7 @@ message HealthCheckService { // Name of the resource. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. optional string name = 3373707; - // A list of URLs to the NetworkEndpointGroup resources. Must not have more than 100. For regional HealthCheckService, NEGs must be in zones in the region of the HealthCheckService. + // A list of URLs to the NetworkEndpointGroup resources. Must not have more than 100. For regional HealthCheckService, NEGs must be in zones in the region of the HealthCheckService. For global HealthCheckServices, the NetworkEndpointGroups must be global INTERNET_IP_PORT. repeated string network_endpoint_groups = 29346733; // A list of URLs to the NotificationEndpoint resources. Must not have more than 10. A list of endpoints for receiving notifications of change in health status. For regional HealthCheckService, NotificationEndpoint must be regional and in the same region. For global HealthCheckService, NotificationEndpoint must be global. @@ -10627,6 +10703,28 @@ message InsertMachineImageRequest { } +// A request message for NetworkAttachments.Insert. See the method description for details. +message InsertNetworkAttachmentRequest { + // The body resource for this request + NetworkAttachment network_attachment_resource = 210974745 [(google.api.field_behavior) = REQUIRED]; + + // Project ID for this request. + string project = 227560217 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "project" + ]; + + // Name of the region of this request. + string region = 138946292 [ + (google.api.field_behavior) = REQUIRED, + (google.cloud.operation_request_field) = "region" + ]; + + // An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + optional string request_id = 37109963; + +} + // A request message for NetworkEdgeSecurityServices.Insert. See the method description for details. message InsertNetworkEdgeSecurityServiceRequest { // The body resource for this request @@ -13457,9 +13555,43 @@ message InterconnectCircuitInfo { // Diagnostics information about interconnect, contains detailed and current technical information about Google's side of the connection. message InterconnectDiagnostics { + // The aggregation type of the bundle interface. + enum BundleAggregationType { + // A value indicating that the enum field is not set. + UNDEFINED_BUNDLE_AGGREGATION_TYPE = 0; + + // LACP is enabled. + BUNDLE_AGGREGATION_TYPE_LACP = 27758925; + + // LACP is disabled. + BUNDLE_AGGREGATION_TYPE_STATIC = 50678873; + + } + + // The operational status of the bundle interface. + enum BundleOperationalStatus { + // A value indicating that the enum field is not set. + UNDEFINED_BUNDLE_OPERATIONAL_STATUS = 0; + + // If bundleAggregationType is LACP: LACP is not established and/or all links in the bundle have DOWN operational status. If bundleAggregationType is STATIC: one or more links in the bundle has DOWN operational status. + BUNDLE_OPERATIONAL_STATUS_DOWN = 453842693; + + // If bundleAggregationType is LACP: LACP is established and at least one link in the bundle has UP operational status. If bundleAggregationType is STATIC: all links in the bundle (typically just one) have UP operational status. + BUNDLE_OPERATIONAL_STATUS_UP = 161366462; + + } + // A list of InterconnectDiagnostics.ARPEntry objects, describing individual neighbors currently seen by the Google router in the ARP cache for the Interconnect. This will be empty when the Interconnect is not bundled. repeated InterconnectDiagnosticsARPEntry arp_caches = 414591761; + // The aggregation type of the bundle interface. + // Check the BundleAggregationType enum for the list of possible values. + optional string bundle_aggregation_type = 434939028; + + // The operational status of the bundle interface. + // Check the BundleOperationalStatus enum for the list of possible values. + optional string bundle_operational_status = 106433500; + // A list of InterconnectDiagnostics.LinkStatus objects, describing the status for each link on the Interconnect. repeated InterconnectDiagnosticsLinkStatus links = 102977465; @@ -13540,6 +13672,19 @@ message InterconnectDiagnosticsLinkOpticalPower { // message InterconnectDiagnosticsLinkStatus { + // The operational status of the link. + enum OperationalStatus { + // A value indicating that the enum field is not set. + UNDEFINED_OPERATIONAL_STATUS = 0; + + // The interface is unable to communicate with the remote end. + LINK_OPERATIONAL_STATUS_DOWN = 281653885; + + // The interface has low level communication with the remote end. + LINK_OPERATIONAL_STATUS_UP = 305879862; + + } + // A list of InterconnectDiagnostics.ARPEntry objects, describing the ARP neighbor entries seen on this link. This will be empty if the link is bundled repeated InterconnectDiagnosticsARPEntry arp_caches = 414591761; @@ -13551,6 +13696,10 @@ message InterconnectDiagnosticsLinkStatus { optional InterconnectDiagnosticsLinkLACPStatus lacp_status = 361210415; + // The operational status of the link. + // Check the OperationalStatus enum for the list of possible values. + optional string operational_status = 201070847; + // An InterconnectDiagnostics.LinkOpticalPower object, describing the current value and status of the received light level. optional InterconnectDiagnosticsLinkOpticalPower receiving_optical_power = 244717279; @@ -14887,6 +15036,31 @@ message ListManagedInstancesRegionInstanceGroupManagersRequest { } +// A request message for NetworkAttachments.List. See the method description for details. +message ListNetworkAttachmentsRequest { + // 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; + + // The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + optional uint32 max_results = 54715419; + + // Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + optional string order_by = 160562920; + + // Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + optional string page_token = 19994697; + + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // Name of the region of this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + + // Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + optional bool return_partial_success = 517198390; + +} + // A request message for NetworkEndpointGroups.List. See the method description for details. message ListNetworkEndpointGroupsRequest { // 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`. @@ -17163,6 +17337,165 @@ message Network { } +// NetworkAttachments A network attachment resource ... +message NetworkAttachment { + // + enum ConnectionPreference { + // A value indicating that the enum field is not set. + UNDEFINED_CONNECTION_PREFERENCE = 0; + + ACCEPT_AUTOMATIC = 75250580; + + ACCEPT_MANUAL = 373061341; + + INVALID = 530283991; + + } + + // [Output Only] An array of connections for all the producers connected to this network attachment. + repeated NetworkAttachmentConnectedEndpoint connection_endpoints = 326078813; + + // + // Check the ConnectionPreference enum for the list of possible values. + optional string connection_preference = 285818076; + + // [Output Only] Creation timestamp in RFC3339 text format. + optional string creation_timestamp = 30525366; + + // An optional description of this resource. Provide this property when you create the resource. + optional string description = 422937596; + + // [Output Only] Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. An up-to-date fingerprint must be provided in order to patch. + optional string fingerprint = 234678500; + + // [Output Only] The unique identifier for the resource type. The server generates this identifier. + optional uint64 id = 3355; + + // [Output Only] Type of the resource. + optional string kind = 3292052; + + // Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. + optional string name = 3373707; + + // [Output Only] The URL of the network which the Network Attachment belongs to. + optional string network = 232872494; + + // Projects that are allowed to connect to this network attachment. The project can be specified using its id or number. + repeated string producer_accept_lists = 202804523; + + // Projects that are not allowed to connect to this network attachment. The project can be specified using its id or number. + repeated string producer_reject_lists = 4112002; + + // [Output Only] URL of the region where the network attachment resides. This field applies only to the region resource. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. + optional string region = 138946292; + + // [Output Only] Server-defined URL for the resource. + optional string self_link = 456214797; + + // [Output Only] Server-defined URL for this resource's resource id. + optional string self_link_with_id = 44520962; + + // An array of URLs where each entry is the URL of a subnet provided by the service consumer to use for endpoints in the producers that connect to this network attachment. + repeated string subnetworks = 415853125; + +} + +// Contains a list of NetworkAttachmentsScopedList. +message NetworkAttachmentAggregatedList { + // [Output Only] Unique identifier for the resource; defined by the server. + optional string id = 3355; + + // A list of NetworkAttachmentsScopedList resources. + map items = 100526016; + + optional string kind = 3292052; + + // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + optional string next_page_token = 79797525; + + // [Output Only] Server-defined URL for this resource. + optional string self_link = 456214797; + + // [Output Only] Informational warning message. + optional Warning warning = 50704284; + +} + +// [Output Only] A connection connected to this network attachment. +message NetworkAttachmentConnectedEndpoint { + // The status of a connected endpoint to this network attachment. + enum Status { + // A value indicating that the enum field is not set. + UNDEFINED_STATUS = 0; + + // The consumer allows traffic from the producer to reach its VPC. + ACCEPTED = 246714279; + + // The consumer network attachment no longer exists. + CLOSED = 380163436; + + // The consumer needs to take further action before traffic can be served. + NEEDS_ATTENTION = 344491452; + + // The consumer neither allows nor prohibits traffic from the producer to reach its VPC. + PENDING = 35394935; + + // The consumer prohibits traffic from the producer to reach its VPC. + REJECTED = 174130302; + + STATUS_UNSPECIFIED = 42133066; + + } + + // The IP address assigned to the producer instance network interface. This value will be a range in case of Serverless. + optional string ip_address = 406272220; + + // The project id or number of the interface to which the IP was assigned. + optional string project_id_or_num = 349783336; + + // Alias IP ranges from the same subnetwork + repeated string secondary_ip_cidr_ranges = 117184788; + + // The status of a connected endpoint to this network attachment. + // Check the Status enum for the list of possible values. + optional string status = 181260274; + + // The subnetwork used to assign the IP to the producer instance network interface. + optional string subnetwork = 307827694; + +} + +// +message NetworkAttachmentList { + // [Output Only] Unique identifier for the resource; defined by the server. + optional string id = 3355; + + // A list of NetworkAttachment resources. + repeated NetworkAttachment items = 100526016; + + optional string kind = 3292052; + + // [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. + optional string next_page_token = 79797525; + + // [Output Only] Server-defined URL for this resource. + optional string self_link = 456214797; + + // [Output Only] Informational warning message. + optional Warning warning = 50704284; + +} + +// +message NetworkAttachmentsScopedList { + // A list of NetworkAttachments contained in this scope. + repeated NetworkAttachment network_attachments = 521514783; + + // Informational warning which replaces the list of network attachments when the list is empty. + optional Warning warning = 50704284; + +} + // Represents a Google Cloud Armor network edge security service resource. message NetworkEdgeSecurityService { // [Output Only] Creation timestamp in RFC3339 text format. @@ -18424,7 +18757,7 @@ message NotificationEndpointGrpcSettings { // Optional. If specified, this field is used to populate the "name" field in gRPC requests. optional string payload_name = 300358300; - // Optional. This field is used to configure how often to send a full update of all non-healthy backends. If unspecified, full updates are not sent. If specified, must be in the range between 600 seconds to 3600 seconds. Nanos are disallowed. + // Optional. This field is used to configure how often to send a full update of all non-healthy backends. If unspecified, full updates are not sent. If specified, must be in the range between 600 seconds to 3600 seconds. Nanos are disallowed. Can only be set for regional notification endpoints. optional Duration resend_interval = 478288969; // How much time (in seconds) is spent attempting notification retries until a successful response is received. Default is 30s. Limit is 20m (1200s). Must be a positive number. @@ -20097,6 +20430,21 @@ message Project { } + // [Output Only] Default internal DNS setting used by VMs running in this project. + enum VmDnsSetting { + // A value indicating that the enum field is not set. + UNDEFINED_VM_DNS_SETTING = 0; + + GLOBAL_DEFAULT = 345419141; + + UNSPECIFIED_VM_DNS_SETTING = 35691930; + + ZONAL_DEFAULT = 368475782; + + ZONAL_ONLY = 521198951; + + } + // [Output Only] The role this project has in a shared VPC configuration. Currently, only projects with the host role, which is specified by the value HOST, are differentiated. enum XpnProjectStatus { // A value indicating that the enum field is not set. @@ -20145,6 +20493,10 @@ message Project { // The naming prefix for daily usage reports and the Google Cloud Storage bucket where they are stored. optional UsageExportLocation usage_export_location = 347543874; + // [Output Only] Default internal DNS setting used by VMs running in this project. + // Check the VmDnsSetting enum for the list of possible values. + optional string vm_dns_setting = 58856370; + // [Output Only] The role this project has in a shared VPC configuration. Currently, only projects with the host role, which is specified by the value HOST, are differentiated. // Check the XpnProjectStatus enum for the list of possible values. optional string xpn_project_status = 228419265; @@ -20569,10 +20921,18 @@ message Quota { FORWARDING_RULES = 432668949; + GLOBAL_EXTERNAL_MANAGED_BACKEND_SERVICES = 164566753; + GLOBAL_EXTERNAL_MANAGED_FORWARDING_RULES = 327611949; + GLOBAL_EXTERNAL_PROXY_LB_BACKEND_SERVICES = 400256169; + GLOBAL_INTERNAL_ADDRESSES = 42738332; + GLOBAL_INTERNAL_MANAGED_BACKEND_SERVICES = 256608303; + + GLOBAL_INTERNAL_TRAFFIC_DIRECTOR_BACKEND_SERVICES = 323514196; + GPUS_ALL_REGIONS = 39387177; HEALTH_CHECKS = 289347502; @@ -20691,8 +21051,16 @@ message Quota { REGIONAL_AUTOSCALERS = 29363772; + REGIONAL_EXTERNAL_MANAGED_BACKEND_SERVICES = 4240989; + + REGIONAL_EXTERNAL_NETWORK_LB_BACKEND_SERVICES = 409564525; + REGIONAL_INSTANCE_GROUP_MANAGERS = 37543696; + REGIONAL_INTERNAL_LB_BACKEND_SERVICES = 137983760; + + REGIONAL_INTERNAL_MANAGED_BACKEND_SERVICES = 96282539; + RESERVATIONS = 32644647; RESOURCE_POLICIES = 83955297; @@ -21682,6 +22050,9 @@ message Reservation { // The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. optional string name = 3373707; + // Resource policies to be added to this reservation. The key is defined by user, and the value is resource policy url. This is to define placement policy with reservation. + map resource_policies = 22220385; + // [Output Only] Reserved for future use. optional bool satisfies_pzs = 480964267; @@ -21951,7 +22322,7 @@ message ResizeReservationRequest { // Commitment for a particular resource (a Commitment is composed of one or more of these). message ResourceCommitment { - // Type of resource for which this commitment applies. Possible values are VCPU and MEMORY + // Type of resource for which this commitment applies. Possible values are VCPU, MEMORY, LOCAL_SSD, and ACCELERATOR. enum Type { // A value indicating that the enum field is not set. UNDEFINED_TYPE = 0; @@ -21974,7 +22345,7 @@ message ResourceCommitment { // The amount of the resource purchased (in a type-dependent unit, such as bytes). For vCPUs, this can just be an integer. For memory, this must be provided in MB. Memory must be a multiple of 256 MB, with up to 6.5GB of memory per every vCPU. optional int64 amount = 196759640; - // Type of resource for which this commitment applies. Possible values are VCPU and MEMORY + // Type of resource for which this commitment applies. Possible values are VCPU, MEMORY, LOCAL_SSD, and ACCELERATOR. // Check the Type enum for the list of possible values. optional string type = 3575610; @@ -24194,6 +24565,9 @@ message ServiceAttachmentConsumerProjectLimit { // The value of the limit to set. optional uint32 connection_limit = 131403546; + // The network URL for the network to set the limit for. + optional string network_url = 207194078; + // The project id or number for the project to set the limit for. optional string project_id_or_num = 349783336; @@ -24565,6 +24939,22 @@ message SetIamPolicyMachineImageRequest { } +// A request message for NetworkAttachments.SetIamPolicy. See the method description for details. +message SetIamPolicyNetworkAttachmentRequest { + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // The name of the region for this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + RegionSetPolicyRequest region_set_policy_request_resource = 276489091 [(google.api.field_behavior) = REQUIRED]; + + // Name or id of the resource for this request. + string resource = 195806222 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for NetworkFirewallPolicies.SetIamPolicy. See the method description for details. message SetIamPolicyNetworkFirewallPolicyRequest { // The body resource for this request @@ -26563,6 +26953,9 @@ message StatefulPolicyPreservedStateDiskDevice { // A request message for Instances.Stop. See the method description for details. message StopInstanceRequest { + // If true, discard the contents of any attached localSSD partitions. Default value is false. + optional bool discard_local_ssd = 319517903; + // Name of the instance resource to stop. string instance = 18257045 [(google.api.field_behavior) = REQUIRED]; @@ -26918,6 +27311,9 @@ message Subsetting { // A request message for Instances.Suspend. See the method description for details. message SuspendInstanceRequest { + // If true, discard the contents of any attached localSSD partitions. Default value is false. + optional bool discard_local_ssd = 319517903; + // Name of the instance resource to suspend. string instance = 18257045 [(google.api.field_behavior) = REQUIRED]; @@ -28098,6 +28494,22 @@ message TestIamPermissionsMachineImageRequest { } +// A request message for NetworkAttachments.TestIamPermissions. See the method description for details. +message TestIamPermissionsNetworkAttachmentRequest { + // Project ID for this request. + string project = 227560217 [(google.api.field_behavior) = REQUIRED]; + + // The name of the region for this request. + string region = 138946292 [(google.api.field_behavior) = REQUIRED]; + + // Name or id of the resource for this request. + string resource = 195806222 [(google.api.field_behavior) = REQUIRED]; + + // The body resource for this request + TestPermissionsRequest test_permissions_request_resource = 439214758 [(google.api.field_behavior) = REQUIRED]; + +} + // A request message for NetworkEndpointGroups.TestIamPermissions. See the method description for details. message TestIamPermissionsNetworkEndpointGroupRequest { // Project ID for this request. @@ -32510,7 +32922,7 @@ service Interconnects { "https://www.googleapis.com/auth/compute," "https://www.googleapis.com/auth/cloud-platform"; - // Deletes the specified interconnect. + // Deletes the specified Interconnect. rpc Delete(DeleteInterconnectRequest) returns (Operation) { option (google.api.http) = { delete: "/compute/v1/projects/{project}/global/interconnects/{interconnect}" @@ -32519,7 +32931,7 @@ service Interconnects { option (google.cloud.operation_service) = "GlobalOperations"; } - // Returns the specified interconnect. Get a list of available interconnects by making a list() request. + // Returns the specified Interconnect. Get a list of available Interconnects by making a list() request. rpc Get(GetInterconnectRequest) returns (Interconnect) { option (google.api.http) = { get: "/compute/v1/projects/{project}/global/interconnects/{interconnect}" @@ -32527,7 +32939,7 @@ service Interconnects { option (google.api.method_signature) = "project,interconnect"; } - // Returns the interconnectDiagnostics for the specified interconnect. + // Returns the interconnectDiagnostics for the specified Interconnect. rpc GetDiagnostics(GetDiagnosticsInterconnectRequest) returns (InterconnectsGetDiagnosticsResponse) { option (google.api.http) = { get: "/compute/v1/projects/{project}/global/interconnects/{interconnect}/getDiagnostics" @@ -32535,7 +32947,7 @@ service Interconnects { option (google.api.method_signature) = "project,interconnect"; } - // Creates a Interconnect in the specified project using the data included in the request. + // Creates an Interconnect in the specified project using the data included in the request. rpc Insert(InsertInterconnectRequest) returns (Operation) { option (google.api.http) = { body: "interconnect_resource" @@ -32545,7 +32957,7 @@ service Interconnects { option (google.cloud.operation_service) = "GlobalOperations"; } - // Retrieves the list of interconnect available to the specified project. + // Retrieves the list of Interconnects available to the specified project. rpc List(ListInterconnectsRequest) returns (InterconnectList) { option (google.api.http) = { get: "/compute/v1/projects/{project}/global/interconnects" @@ -32553,7 +32965,7 @@ service Interconnects { option (google.api.method_signature) = "project"; } - // Updates the specified interconnect with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. + // Updates the specified Interconnect with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. rpc Patch(PatchInterconnectRequest) returns (Operation) { option (google.api.http) = { body: "interconnect_resource" @@ -32784,6 +33196,86 @@ service MachineTypes { } +// The NetworkAttachments API. +service NetworkAttachments { + option (google.api.default_host) = + "compute.googleapis.com"; + + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/compute," + "https://www.googleapis.com/auth/cloud-platform"; + + // Retrieves the list of all NetworkAttachment resources, regional and global, available to the specified project. + rpc AggregatedList(AggregatedListNetworkAttachmentsRequest) returns (NetworkAttachmentAggregatedList) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/aggregated/networkAttachments" + }; + option (google.api.method_signature) = "project"; + } + + // Deletes the specified NetworkAttachment in the given scope + rpc Delete(DeleteNetworkAttachmentRequest) returns (Operation) { + option (google.api.http) = { + delete: "/compute/v1/projects/{project}/regions/{region}/networkAttachments/{network_attachment}" + }; + option (google.api.method_signature) = "project,region,network_attachment"; + option (google.cloud.operation_service) = "RegionOperations"; + } + + // Returns the specified NetworkAttachment resource in the given scope. + rpc Get(GetNetworkAttachmentRequest) returns (NetworkAttachment) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/regions/{region}/networkAttachments/{network_attachment}" + }; + option (google.api.method_signature) = "project,region,network_attachment"; + } + + // Gets the access control policy for a resource. May be empty if no such policy or resource exists. + rpc GetIamPolicy(GetIamPolicyNetworkAttachmentRequest) returns (Policy) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/regions/{region}/networkAttachments/{resource}/getIamPolicy" + }; + option (google.api.method_signature) = "project,region,resource"; + } + + // Creates a NetworkAttachment in the specified project in the given scope using the parameters that are included in the request. + rpc Insert(InsertNetworkAttachmentRequest) returns (Operation) { + option (google.api.http) = { + body: "network_attachment_resource" + post: "/compute/v1/projects/{project}/regions/{region}/networkAttachments" + }; + option (google.api.method_signature) = "project,region,network_attachment_resource"; + option (google.cloud.operation_service) = "RegionOperations"; + } + + // Lists the NetworkAttachments for a project in the given scope. + rpc List(ListNetworkAttachmentsRequest) returns (NetworkAttachmentList) { + option (google.api.http) = { + get: "/compute/v1/projects/{project}/regions/{region}/networkAttachments" + }; + option (google.api.method_signature) = "project,region"; + } + + // Sets the access control policy on the specified resource. Replaces any existing policy. + rpc SetIamPolicy(SetIamPolicyNetworkAttachmentRequest) returns (Policy) { + option (google.api.http) = { + body: "region_set_policy_request_resource" + post: "/compute/v1/projects/{project}/regions/{region}/networkAttachments/{resource}/setIamPolicy" + }; + option (google.api.method_signature) = "project,region,resource,region_set_policy_request_resource"; + } + + // Returns permissions that a caller has on the specified resource. + rpc TestIamPermissions(TestIamPermissionsNetworkAttachmentRequest) returns (TestPermissionsResponse) { + option (google.api.http) = { + body: "test_permissions_request_resource" + post: "/compute/v1/projects/{project}/regions/{region}/networkAttachments/{resource}/testIamPermissions" + }; + option (google.api.method_signature) = "project,region,resource,test_permissions_request_resource"; + } + +} + // The NetworkEdgeSecurityServices API. service NetworkEdgeSecurityServices { option (google.api.default_host) = diff --git a/packages/google-cloud-compute/protos/protos.d.ts b/packages/google-cloud-compute/protos/protos.d.ts index aeb9907ab2d..14239fd0daf 100644 --- a/packages/google-cloud-compute/protos/protos.d.ts +++ b/packages/google-cloud-compute/protos/protos.d.ts @@ -6435,6 +6435,157 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an AggregatedListNetworkAttachmentsRequest. */ + interface IAggregatedListNetworkAttachmentsRequest { + + /** AggregatedListNetworkAttachmentsRequest filter */ + filter?: (string|null); + + /** AggregatedListNetworkAttachmentsRequest includeAllScopes */ + includeAllScopes?: (boolean|null); + + /** AggregatedListNetworkAttachmentsRequest maxResults */ + maxResults?: (number|null); + + /** AggregatedListNetworkAttachmentsRequest orderBy */ + orderBy?: (string|null); + + /** AggregatedListNetworkAttachmentsRequest pageToken */ + pageToken?: (string|null); + + /** AggregatedListNetworkAttachmentsRequest project */ + project?: (string|null); + + /** AggregatedListNetworkAttachmentsRequest returnPartialSuccess */ + returnPartialSuccess?: (boolean|null); + } + + /** Represents an AggregatedListNetworkAttachmentsRequest. */ + class AggregatedListNetworkAttachmentsRequest implements IAggregatedListNetworkAttachmentsRequest { + + /** + * Constructs a new AggregatedListNetworkAttachmentsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IAggregatedListNetworkAttachmentsRequest); + + /** AggregatedListNetworkAttachmentsRequest filter. */ + public filter?: (string|null); + + /** AggregatedListNetworkAttachmentsRequest includeAllScopes. */ + public includeAllScopes?: (boolean|null); + + /** AggregatedListNetworkAttachmentsRequest maxResults. */ + public maxResults?: (number|null); + + /** AggregatedListNetworkAttachmentsRequest orderBy. */ + public orderBy?: (string|null); + + /** AggregatedListNetworkAttachmentsRequest pageToken. */ + public pageToken?: (string|null); + + /** AggregatedListNetworkAttachmentsRequest project. */ + public project: string; + + /** AggregatedListNetworkAttachmentsRequest returnPartialSuccess. */ + public returnPartialSuccess?: (boolean|null); + + /** AggregatedListNetworkAttachmentsRequest _filter. */ + public _filter?: "filter"; + + /** AggregatedListNetworkAttachmentsRequest _includeAllScopes. */ + public _includeAllScopes?: "includeAllScopes"; + + /** AggregatedListNetworkAttachmentsRequest _maxResults. */ + public _maxResults?: "maxResults"; + + /** AggregatedListNetworkAttachmentsRequest _orderBy. */ + public _orderBy?: "orderBy"; + + /** AggregatedListNetworkAttachmentsRequest _pageToken. */ + public _pageToken?: "pageToken"; + + /** AggregatedListNetworkAttachmentsRequest _returnPartialSuccess. */ + public _returnPartialSuccess?: "returnPartialSuccess"; + + /** + * Creates a new AggregatedListNetworkAttachmentsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns AggregatedListNetworkAttachmentsRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IAggregatedListNetworkAttachmentsRequest): google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest; + + /** + * Encodes the specified AggregatedListNetworkAttachmentsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest.verify|verify} messages. + * @param message AggregatedListNetworkAttachmentsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IAggregatedListNetworkAttachmentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AggregatedListNetworkAttachmentsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest.verify|verify} messages. + * @param message AggregatedListNetworkAttachmentsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IAggregatedListNetworkAttachmentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AggregatedListNetworkAttachmentsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AggregatedListNetworkAttachmentsRequest + * @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.AggregatedListNetworkAttachmentsRequest; + + /** + * Decodes an AggregatedListNetworkAttachmentsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AggregatedListNetworkAttachmentsRequest + * @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.AggregatedListNetworkAttachmentsRequest; + + /** + * Verifies an AggregatedListNetworkAttachmentsRequest 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 AggregatedListNetworkAttachmentsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AggregatedListNetworkAttachmentsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest; + + /** + * Creates a plain object from an AggregatedListNetworkAttachmentsRequest message. Also converts values to other types if specified. + * @param message AggregatedListNetworkAttachmentsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AggregatedListNetworkAttachmentsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AggregatedListNetworkAttachmentsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an AggregatedListNetworkEdgeSecurityServicesRequest. */ interface IAggregatedListNetworkEdgeSecurityServicesRequest { @@ -24888,6 +25039,124 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a DeleteNetworkAttachmentRequest. */ + interface IDeleteNetworkAttachmentRequest { + + /** DeleteNetworkAttachmentRequest networkAttachment */ + networkAttachment?: (string|null); + + /** DeleteNetworkAttachmentRequest project */ + project?: (string|null); + + /** DeleteNetworkAttachmentRequest region */ + region?: (string|null); + + /** DeleteNetworkAttachmentRequest requestId */ + requestId?: (string|null); + } + + /** Represents a DeleteNetworkAttachmentRequest. */ + class DeleteNetworkAttachmentRequest implements IDeleteNetworkAttachmentRequest { + + /** + * Constructs a new DeleteNetworkAttachmentRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IDeleteNetworkAttachmentRequest); + + /** DeleteNetworkAttachmentRequest networkAttachment. */ + public networkAttachment: string; + + /** DeleteNetworkAttachmentRequest project. */ + public project: string; + + /** DeleteNetworkAttachmentRequest region. */ + public region: string; + + /** DeleteNetworkAttachmentRequest requestId. */ + public requestId?: (string|null); + + /** DeleteNetworkAttachmentRequest _requestId. */ + public _requestId?: "requestId"; + + /** + * Creates a new DeleteNetworkAttachmentRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteNetworkAttachmentRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IDeleteNetworkAttachmentRequest): google.cloud.compute.v1.DeleteNetworkAttachmentRequest; + + /** + * Encodes the specified DeleteNetworkAttachmentRequest message. Does not implicitly {@link google.cloud.compute.v1.DeleteNetworkAttachmentRequest.verify|verify} messages. + * @param message DeleteNetworkAttachmentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IDeleteNetworkAttachmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteNetworkAttachmentRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.DeleteNetworkAttachmentRequest.verify|verify} messages. + * @param message DeleteNetworkAttachmentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IDeleteNetworkAttachmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteNetworkAttachmentRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteNetworkAttachmentRequest + * @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.DeleteNetworkAttachmentRequest; + + /** + * Decodes a DeleteNetworkAttachmentRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteNetworkAttachmentRequest + * @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.DeleteNetworkAttachmentRequest; + + /** + * Verifies a DeleteNetworkAttachmentRequest 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 DeleteNetworkAttachmentRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteNetworkAttachmentRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.DeleteNetworkAttachmentRequest; + + /** + * Creates a plain object from a DeleteNetworkAttachmentRequest message. Also converts values to other types if specified. + * @param message DeleteNetworkAttachmentRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.DeleteNetworkAttachmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteNetworkAttachmentRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteNetworkAttachmentRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a DeleteNetworkEdgeSecurityServiceRequest. */ interface IDeleteNetworkEdgeSecurityServiceRequest { @@ -43507,6 +43776,124 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a GetIamPolicyNetworkAttachmentRequest. */ + interface IGetIamPolicyNetworkAttachmentRequest { + + /** GetIamPolicyNetworkAttachmentRequest optionsRequestedPolicyVersion */ + optionsRequestedPolicyVersion?: (number|null); + + /** GetIamPolicyNetworkAttachmentRequest project */ + project?: (string|null); + + /** GetIamPolicyNetworkAttachmentRequest region */ + region?: (string|null); + + /** GetIamPolicyNetworkAttachmentRequest resource */ + resource?: (string|null); + } + + /** Represents a GetIamPolicyNetworkAttachmentRequest. */ + class GetIamPolicyNetworkAttachmentRequest implements IGetIamPolicyNetworkAttachmentRequest { + + /** + * Constructs a new GetIamPolicyNetworkAttachmentRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IGetIamPolicyNetworkAttachmentRequest); + + /** GetIamPolicyNetworkAttachmentRequest optionsRequestedPolicyVersion. */ + public optionsRequestedPolicyVersion?: (number|null); + + /** GetIamPolicyNetworkAttachmentRequest project. */ + public project: string; + + /** GetIamPolicyNetworkAttachmentRequest region. */ + public region: string; + + /** GetIamPolicyNetworkAttachmentRequest resource. */ + public resource: string; + + /** GetIamPolicyNetworkAttachmentRequest _optionsRequestedPolicyVersion. */ + public _optionsRequestedPolicyVersion?: "optionsRequestedPolicyVersion"; + + /** + * Creates a new GetIamPolicyNetworkAttachmentRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetIamPolicyNetworkAttachmentRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IGetIamPolicyNetworkAttachmentRequest): google.cloud.compute.v1.GetIamPolicyNetworkAttachmentRequest; + + /** + * Encodes the specified GetIamPolicyNetworkAttachmentRequest message. Does not implicitly {@link google.cloud.compute.v1.GetIamPolicyNetworkAttachmentRequest.verify|verify} messages. + * @param message GetIamPolicyNetworkAttachmentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IGetIamPolicyNetworkAttachmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetIamPolicyNetworkAttachmentRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.GetIamPolicyNetworkAttachmentRequest.verify|verify} messages. + * @param message GetIamPolicyNetworkAttachmentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IGetIamPolicyNetworkAttachmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetIamPolicyNetworkAttachmentRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetIamPolicyNetworkAttachmentRequest + * @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.GetIamPolicyNetworkAttachmentRequest; + + /** + * Decodes a GetIamPolicyNetworkAttachmentRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetIamPolicyNetworkAttachmentRequest + * @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.GetIamPolicyNetworkAttachmentRequest; + + /** + * Verifies a GetIamPolicyNetworkAttachmentRequest 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 GetIamPolicyNetworkAttachmentRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetIamPolicyNetworkAttachmentRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.GetIamPolicyNetworkAttachmentRequest; + + /** + * Creates a plain object from a GetIamPolicyNetworkAttachmentRequest message. Also converts values to other types if specified. + * @param message GetIamPolicyNetworkAttachmentRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.GetIamPolicyNetworkAttachmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetIamPolicyNetworkAttachmentRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetIamPolicyNetworkAttachmentRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a GetIamPolicyNetworkFirewallPolicyRequest. */ interface IGetIamPolicyNetworkFirewallPolicyRequest { @@ -46322,6 +46709,115 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a GetNetworkAttachmentRequest. */ + interface IGetNetworkAttachmentRequest { + + /** GetNetworkAttachmentRequest networkAttachment */ + networkAttachment?: (string|null); + + /** GetNetworkAttachmentRequest project */ + project?: (string|null); + + /** GetNetworkAttachmentRequest region */ + region?: (string|null); + } + + /** Represents a GetNetworkAttachmentRequest. */ + class GetNetworkAttachmentRequest implements IGetNetworkAttachmentRequest { + + /** + * Constructs a new GetNetworkAttachmentRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IGetNetworkAttachmentRequest); + + /** GetNetworkAttachmentRequest networkAttachment. */ + public networkAttachment: string; + + /** GetNetworkAttachmentRequest project. */ + public project: string; + + /** GetNetworkAttachmentRequest region. */ + public region: string; + + /** + * Creates a new GetNetworkAttachmentRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetNetworkAttachmentRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IGetNetworkAttachmentRequest): google.cloud.compute.v1.GetNetworkAttachmentRequest; + + /** + * Encodes the specified GetNetworkAttachmentRequest message. Does not implicitly {@link google.cloud.compute.v1.GetNetworkAttachmentRequest.verify|verify} messages. + * @param message GetNetworkAttachmentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IGetNetworkAttachmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetNetworkAttachmentRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.GetNetworkAttachmentRequest.verify|verify} messages. + * @param message GetNetworkAttachmentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IGetNetworkAttachmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetNetworkAttachmentRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetNetworkAttachmentRequest + * @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.GetNetworkAttachmentRequest; + + /** + * Decodes a GetNetworkAttachmentRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetNetworkAttachmentRequest + * @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.GetNetworkAttachmentRequest; + + /** + * Verifies a GetNetworkAttachmentRequest 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 GetNetworkAttachmentRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetNetworkAttachmentRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.GetNetworkAttachmentRequest; + + /** + * Creates a plain object from a GetNetworkAttachmentRequest message. Also converts values to other types if specified. + * @param message GetNetworkAttachmentRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.GetNetworkAttachmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetNetworkAttachmentRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetNetworkAttachmentRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a GetNetworkEdgeSecurityServiceRequest. */ interface IGetNetworkEdgeSecurityServiceRequest { @@ -61960,6 +62456,124 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of an InsertNetworkAttachmentRequest. */ + interface IInsertNetworkAttachmentRequest { + + /** InsertNetworkAttachmentRequest networkAttachmentResource */ + networkAttachmentResource?: (google.cloud.compute.v1.INetworkAttachment|null); + + /** InsertNetworkAttachmentRequest project */ + project?: (string|null); + + /** InsertNetworkAttachmentRequest region */ + region?: (string|null); + + /** InsertNetworkAttachmentRequest requestId */ + requestId?: (string|null); + } + + /** Represents an InsertNetworkAttachmentRequest. */ + class InsertNetworkAttachmentRequest implements IInsertNetworkAttachmentRequest { + + /** + * Constructs a new InsertNetworkAttachmentRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IInsertNetworkAttachmentRequest); + + /** InsertNetworkAttachmentRequest networkAttachmentResource. */ + public networkAttachmentResource?: (google.cloud.compute.v1.INetworkAttachment|null); + + /** InsertNetworkAttachmentRequest project. */ + public project: string; + + /** InsertNetworkAttachmentRequest region. */ + public region: string; + + /** InsertNetworkAttachmentRequest requestId. */ + public requestId?: (string|null); + + /** InsertNetworkAttachmentRequest _requestId. */ + public _requestId?: "requestId"; + + /** + * Creates a new InsertNetworkAttachmentRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns InsertNetworkAttachmentRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IInsertNetworkAttachmentRequest): google.cloud.compute.v1.InsertNetworkAttachmentRequest; + + /** + * Encodes the specified InsertNetworkAttachmentRequest message. Does not implicitly {@link google.cloud.compute.v1.InsertNetworkAttachmentRequest.verify|verify} messages. + * @param message InsertNetworkAttachmentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IInsertNetworkAttachmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InsertNetworkAttachmentRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InsertNetworkAttachmentRequest.verify|verify} messages. + * @param message InsertNetworkAttachmentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IInsertNetworkAttachmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InsertNetworkAttachmentRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InsertNetworkAttachmentRequest + * @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.InsertNetworkAttachmentRequest; + + /** + * Decodes an InsertNetworkAttachmentRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InsertNetworkAttachmentRequest + * @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.InsertNetworkAttachmentRequest; + + /** + * Verifies an InsertNetworkAttachmentRequest 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 InsertNetworkAttachmentRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InsertNetworkAttachmentRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.InsertNetworkAttachmentRequest; + + /** + * Creates a plain object from an InsertNetworkAttachmentRequest message. Also converts values to other types if specified. + * @param message InsertNetworkAttachmentRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.InsertNetworkAttachmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InsertNetworkAttachmentRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InsertNetworkAttachmentRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an InsertNetworkEdgeSecurityServiceRequest. */ interface IInsertNetworkEdgeSecurityServiceRequest { @@ -77079,6 +77693,12 @@ export namespace google { /** InterconnectDiagnostics arpCaches */ arpCaches?: (google.cloud.compute.v1.IInterconnectDiagnosticsARPEntry[]|null); + /** InterconnectDiagnostics bundleAggregationType */ + bundleAggregationType?: (string|null); + + /** InterconnectDiagnostics bundleOperationalStatus */ + bundleOperationalStatus?: (string|null); + /** InterconnectDiagnostics links */ links?: (google.cloud.compute.v1.IInterconnectDiagnosticsLinkStatus[]|null); @@ -77098,12 +77718,24 @@ export namespace google { /** InterconnectDiagnostics arpCaches. */ public arpCaches: google.cloud.compute.v1.IInterconnectDiagnosticsARPEntry[]; + /** InterconnectDiagnostics bundleAggregationType. */ + public bundleAggregationType?: (string|null); + + /** InterconnectDiagnostics bundleOperationalStatus. */ + public bundleOperationalStatus?: (string|null); + /** InterconnectDiagnostics links. */ public links: google.cloud.compute.v1.IInterconnectDiagnosticsLinkStatus[]; /** InterconnectDiagnostics macAddress. */ public macAddress?: (string|null); + /** InterconnectDiagnostics _bundleAggregationType. */ + public _bundleAggregationType?: "bundleAggregationType"; + + /** InterconnectDiagnostics _bundleOperationalStatus. */ + public _bundleOperationalStatus?: "bundleOperationalStatus"; + /** InterconnectDiagnostics _macAddress. */ public _macAddress?: "macAddress"; @@ -77185,6 +77817,23 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + namespace InterconnectDiagnostics { + + /** BundleAggregationType enum. */ + enum BundleAggregationType { + UNDEFINED_BUNDLE_AGGREGATION_TYPE = 0, + BUNDLE_AGGREGATION_TYPE_LACP = 27758925, + BUNDLE_AGGREGATION_TYPE_STATIC = 50678873 + } + + /** BundleOperationalStatus enum. */ + enum BundleOperationalStatus { + UNDEFINED_BUNDLE_OPERATIONAL_STATUS = 0, + BUNDLE_OPERATIONAL_STATUS_DOWN = 453842693, + BUNDLE_OPERATIONAL_STATUS_UP = 161366462 + } + } + /** Properties of an InterconnectDiagnosticsARPEntry. */ interface IInterconnectDiagnosticsARPEntry { @@ -77559,6 +78208,9 @@ export namespace google { /** InterconnectDiagnosticsLinkStatus lacpStatus */ lacpStatus?: (google.cloud.compute.v1.IInterconnectDiagnosticsLinkLACPStatus|null); + /** InterconnectDiagnosticsLinkStatus operationalStatus */ + operationalStatus?: (string|null); + /** InterconnectDiagnosticsLinkStatus receivingOpticalPower */ receivingOpticalPower?: (google.cloud.compute.v1.IInterconnectDiagnosticsLinkOpticalPower|null); @@ -77587,6 +78239,9 @@ export namespace google { /** InterconnectDiagnosticsLinkStatus lacpStatus. */ public lacpStatus?: (google.cloud.compute.v1.IInterconnectDiagnosticsLinkLACPStatus|null); + /** InterconnectDiagnosticsLinkStatus operationalStatus. */ + public operationalStatus?: (string|null); + /** InterconnectDiagnosticsLinkStatus receivingOpticalPower. */ public receivingOpticalPower?: (google.cloud.compute.v1.IInterconnectDiagnosticsLinkOpticalPower|null); @@ -77602,6 +78257,9 @@ export namespace google { /** InterconnectDiagnosticsLinkStatus _lacpStatus. */ public _lacpStatus?: "lacpStatus"; + /** InterconnectDiagnosticsLinkStatus _operationalStatus. */ + public _operationalStatus?: "operationalStatus"; + /** InterconnectDiagnosticsLinkStatus _receivingOpticalPower. */ public _receivingOpticalPower?: "receivingOpticalPower"; @@ -77686,6 +78344,16 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + namespace InterconnectDiagnosticsLinkStatus { + + /** OperationalStatus enum. */ + enum OperationalStatus { + UNDEFINED_OPERATIONAL_STATUS = 0, + LINK_OPERATIONAL_STATUS_DOWN = 281653885, + LINK_OPERATIONAL_STATUS_UP = 305879862 + } + } + /** Properties of an InterconnectList. */ interface IInterconnectList { @@ -85221,6 +85889,154 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a ListNetworkAttachmentsRequest. */ + interface IListNetworkAttachmentsRequest { + + /** ListNetworkAttachmentsRequest filter */ + filter?: (string|null); + + /** ListNetworkAttachmentsRequest maxResults */ + maxResults?: (number|null); + + /** ListNetworkAttachmentsRequest orderBy */ + orderBy?: (string|null); + + /** ListNetworkAttachmentsRequest pageToken */ + pageToken?: (string|null); + + /** ListNetworkAttachmentsRequest project */ + project?: (string|null); + + /** ListNetworkAttachmentsRequest region */ + region?: (string|null); + + /** ListNetworkAttachmentsRequest returnPartialSuccess */ + returnPartialSuccess?: (boolean|null); + } + + /** Represents a ListNetworkAttachmentsRequest. */ + class ListNetworkAttachmentsRequest implements IListNetworkAttachmentsRequest { + + /** + * Constructs a new ListNetworkAttachmentsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.IListNetworkAttachmentsRequest); + + /** ListNetworkAttachmentsRequest filter. */ + public filter?: (string|null); + + /** ListNetworkAttachmentsRequest maxResults. */ + public maxResults?: (number|null); + + /** ListNetworkAttachmentsRequest orderBy. */ + public orderBy?: (string|null); + + /** ListNetworkAttachmentsRequest pageToken. */ + public pageToken?: (string|null); + + /** ListNetworkAttachmentsRequest project. */ + public project: string; + + /** ListNetworkAttachmentsRequest region. */ + public region: string; + + /** ListNetworkAttachmentsRequest returnPartialSuccess. */ + public returnPartialSuccess?: (boolean|null); + + /** ListNetworkAttachmentsRequest _filter. */ + public _filter?: "filter"; + + /** ListNetworkAttachmentsRequest _maxResults. */ + public _maxResults?: "maxResults"; + + /** ListNetworkAttachmentsRequest _orderBy. */ + public _orderBy?: "orderBy"; + + /** ListNetworkAttachmentsRequest _pageToken. */ + public _pageToken?: "pageToken"; + + /** ListNetworkAttachmentsRequest _returnPartialSuccess. */ + public _returnPartialSuccess?: "returnPartialSuccess"; + + /** + * Creates a new ListNetworkAttachmentsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListNetworkAttachmentsRequest instance + */ + public static create(properties?: google.cloud.compute.v1.IListNetworkAttachmentsRequest): google.cloud.compute.v1.ListNetworkAttachmentsRequest; + + /** + * Encodes the specified ListNetworkAttachmentsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListNetworkAttachmentsRequest.verify|verify} messages. + * @param message ListNetworkAttachmentsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.IListNetworkAttachmentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListNetworkAttachmentsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListNetworkAttachmentsRequest.verify|verify} messages. + * @param message ListNetworkAttachmentsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.IListNetworkAttachmentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListNetworkAttachmentsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListNetworkAttachmentsRequest + * @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.ListNetworkAttachmentsRequest; + + /** + * Decodes a ListNetworkAttachmentsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListNetworkAttachmentsRequest + * @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.ListNetworkAttachmentsRequest; + + /** + * Verifies a ListNetworkAttachmentsRequest 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 ListNetworkAttachmentsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListNetworkAttachmentsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.ListNetworkAttachmentsRequest; + + /** + * Creates a plain object from a ListNetworkAttachmentsRequest message. Also converts values to other types if specified. + * @param message ListNetworkAttachmentsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.ListNetworkAttachmentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListNetworkAttachmentsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListNetworkAttachmentsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a ListNetworkEndpointGroupsRequest. */ interface IListNetworkEndpointGroupsRequest { @@ -98238,6 +99054,768 @@ export namespace google { } } + /** Properties of a NetworkAttachment. */ + interface INetworkAttachment { + + /** NetworkAttachment connectionEndpoints */ + connectionEndpoints?: (google.cloud.compute.v1.INetworkAttachmentConnectedEndpoint[]|null); + + /** NetworkAttachment connectionPreference */ + connectionPreference?: (string|null); + + /** NetworkAttachment creationTimestamp */ + creationTimestamp?: (string|null); + + /** NetworkAttachment description */ + description?: (string|null); + + /** NetworkAttachment fingerprint */ + fingerprint?: (string|null); + + /** NetworkAttachment id */ + id?: (number|Long|string|null); + + /** NetworkAttachment kind */ + kind?: (string|null); + + /** NetworkAttachment name */ + name?: (string|null); + + /** NetworkAttachment network */ + network?: (string|null); + + /** NetworkAttachment producerAcceptLists */ + producerAcceptLists?: (string[]|null); + + /** NetworkAttachment producerRejectLists */ + producerRejectLists?: (string[]|null); + + /** NetworkAttachment region */ + region?: (string|null); + + /** NetworkAttachment selfLink */ + selfLink?: (string|null); + + /** NetworkAttachment selfLinkWithId */ + selfLinkWithId?: (string|null); + + /** NetworkAttachment subnetworks */ + subnetworks?: (string[]|null); + } + + /** Represents a NetworkAttachment. */ + class NetworkAttachment implements INetworkAttachment { + + /** + * Constructs a new NetworkAttachment. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.INetworkAttachment); + + /** NetworkAttachment connectionEndpoints. */ + public connectionEndpoints: google.cloud.compute.v1.INetworkAttachmentConnectedEndpoint[]; + + /** NetworkAttachment connectionPreference. */ + public connectionPreference?: (string|null); + + /** NetworkAttachment creationTimestamp. */ + public creationTimestamp?: (string|null); + + /** NetworkAttachment description. */ + public description?: (string|null); + + /** NetworkAttachment fingerprint. */ + public fingerprint?: (string|null); + + /** NetworkAttachment id. */ + public id?: (number|Long|string|null); + + /** NetworkAttachment kind. */ + public kind?: (string|null); + + /** NetworkAttachment name. */ + public name?: (string|null); + + /** NetworkAttachment network. */ + public network?: (string|null); + + /** NetworkAttachment producerAcceptLists. */ + public producerAcceptLists: string[]; + + /** NetworkAttachment producerRejectLists. */ + public producerRejectLists: string[]; + + /** NetworkAttachment region. */ + public region?: (string|null); + + /** NetworkAttachment selfLink. */ + public selfLink?: (string|null); + + /** NetworkAttachment selfLinkWithId. */ + public selfLinkWithId?: (string|null); + + /** NetworkAttachment subnetworks. */ + public subnetworks: string[]; + + /** NetworkAttachment _connectionPreference. */ + public _connectionPreference?: "connectionPreference"; + + /** NetworkAttachment _creationTimestamp. */ + public _creationTimestamp?: "creationTimestamp"; + + /** NetworkAttachment _description. */ + public _description?: "description"; + + /** NetworkAttachment _fingerprint. */ + public _fingerprint?: "fingerprint"; + + /** NetworkAttachment _id. */ + public _id?: "id"; + + /** NetworkAttachment _kind. */ + public _kind?: "kind"; + + /** NetworkAttachment _name. */ + public _name?: "name"; + + /** NetworkAttachment _network. */ + public _network?: "network"; + + /** NetworkAttachment _region. */ + public _region?: "region"; + + /** NetworkAttachment _selfLink. */ + public _selfLink?: "selfLink"; + + /** NetworkAttachment _selfLinkWithId. */ + public _selfLinkWithId?: "selfLinkWithId"; + + /** + * Creates a new NetworkAttachment instance using the specified properties. + * @param [properties] Properties to set + * @returns NetworkAttachment instance + */ + public static create(properties?: google.cloud.compute.v1.INetworkAttachment): google.cloud.compute.v1.NetworkAttachment; + + /** + * Encodes the specified NetworkAttachment message. Does not implicitly {@link google.cloud.compute.v1.NetworkAttachment.verify|verify} messages. + * @param message NetworkAttachment message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.INetworkAttachment, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NetworkAttachment message, length delimited. Does not implicitly {@link google.cloud.compute.v1.NetworkAttachment.verify|verify} messages. + * @param message NetworkAttachment message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.INetworkAttachment, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NetworkAttachment message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NetworkAttachment + * @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.NetworkAttachment; + + /** + * Decodes a NetworkAttachment message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NetworkAttachment + * @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.NetworkAttachment; + + /** + * Verifies a NetworkAttachment 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 NetworkAttachment message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NetworkAttachment + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.NetworkAttachment; + + /** + * Creates a plain object from a NetworkAttachment message. Also converts values to other types if specified. + * @param message NetworkAttachment + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.NetworkAttachment, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NetworkAttachment to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NetworkAttachment + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace NetworkAttachment { + + /** ConnectionPreference enum. */ + enum ConnectionPreference { + UNDEFINED_CONNECTION_PREFERENCE = 0, + ACCEPT_AUTOMATIC = 75250580, + ACCEPT_MANUAL = 373061341, + INVALID = 530283991 + } + } + + /** Properties of a NetworkAttachmentAggregatedList. */ + interface INetworkAttachmentAggregatedList { + + /** NetworkAttachmentAggregatedList id */ + id?: (string|null); + + /** NetworkAttachmentAggregatedList items */ + items?: ({ [k: string]: google.cloud.compute.v1.INetworkAttachmentsScopedList }|null); + + /** NetworkAttachmentAggregatedList kind */ + kind?: (string|null); + + /** NetworkAttachmentAggregatedList nextPageToken */ + nextPageToken?: (string|null); + + /** NetworkAttachmentAggregatedList selfLink */ + selfLink?: (string|null); + + /** NetworkAttachmentAggregatedList warning */ + warning?: (google.cloud.compute.v1.IWarning|null); + } + + /** Represents a NetworkAttachmentAggregatedList. */ + class NetworkAttachmentAggregatedList implements INetworkAttachmentAggregatedList { + + /** + * Constructs a new NetworkAttachmentAggregatedList. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.INetworkAttachmentAggregatedList); + + /** NetworkAttachmentAggregatedList id. */ + public id?: (string|null); + + /** NetworkAttachmentAggregatedList items. */ + public items: { [k: string]: google.cloud.compute.v1.INetworkAttachmentsScopedList }; + + /** NetworkAttachmentAggregatedList kind. */ + public kind?: (string|null); + + /** NetworkAttachmentAggregatedList nextPageToken. */ + public nextPageToken?: (string|null); + + /** NetworkAttachmentAggregatedList selfLink. */ + public selfLink?: (string|null); + + /** NetworkAttachmentAggregatedList warning. */ + public warning?: (google.cloud.compute.v1.IWarning|null); + + /** NetworkAttachmentAggregatedList _id. */ + public _id?: "id"; + + /** NetworkAttachmentAggregatedList _kind. */ + public _kind?: "kind"; + + /** NetworkAttachmentAggregatedList _nextPageToken. */ + public _nextPageToken?: "nextPageToken"; + + /** NetworkAttachmentAggregatedList _selfLink. */ + public _selfLink?: "selfLink"; + + /** NetworkAttachmentAggregatedList _warning. */ + public _warning?: "warning"; + + /** + * Creates a new NetworkAttachmentAggregatedList instance using the specified properties. + * @param [properties] Properties to set + * @returns NetworkAttachmentAggregatedList instance + */ + public static create(properties?: google.cloud.compute.v1.INetworkAttachmentAggregatedList): google.cloud.compute.v1.NetworkAttachmentAggregatedList; + + /** + * Encodes the specified NetworkAttachmentAggregatedList message. Does not implicitly {@link google.cloud.compute.v1.NetworkAttachmentAggregatedList.verify|verify} messages. + * @param message NetworkAttachmentAggregatedList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.INetworkAttachmentAggregatedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NetworkAttachmentAggregatedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1.NetworkAttachmentAggregatedList.verify|verify} messages. + * @param message NetworkAttachmentAggregatedList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.INetworkAttachmentAggregatedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NetworkAttachmentAggregatedList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NetworkAttachmentAggregatedList + * @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.NetworkAttachmentAggregatedList; + + /** + * Decodes a NetworkAttachmentAggregatedList message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NetworkAttachmentAggregatedList + * @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.NetworkAttachmentAggregatedList; + + /** + * Verifies a NetworkAttachmentAggregatedList 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 NetworkAttachmentAggregatedList message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NetworkAttachmentAggregatedList + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.NetworkAttachmentAggregatedList; + + /** + * Creates a plain object from a NetworkAttachmentAggregatedList message. Also converts values to other types if specified. + * @param message NetworkAttachmentAggregatedList + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.NetworkAttachmentAggregatedList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NetworkAttachmentAggregatedList to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NetworkAttachmentAggregatedList + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a NetworkAttachmentConnectedEndpoint. */ + interface INetworkAttachmentConnectedEndpoint { + + /** NetworkAttachmentConnectedEndpoint ipAddress */ + ipAddress?: (string|null); + + /** NetworkAttachmentConnectedEndpoint projectIdOrNum */ + projectIdOrNum?: (string|null); + + /** NetworkAttachmentConnectedEndpoint secondaryIpCidrRanges */ + secondaryIpCidrRanges?: (string[]|null); + + /** NetworkAttachmentConnectedEndpoint status */ + status?: (string|null); + + /** NetworkAttachmentConnectedEndpoint subnetwork */ + subnetwork?: (string|null); + } + + /** Represents a NetworkAttachmentConnectedEndpoint. */ + class NetworkAttachmentConnectedEndpoint implements INetworkAttachmentConnectedEndpoint { + + /** + * Constructs a new NetworkAttachmentConnectedEndpoint. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.INetworkAttachmentConnectedEndpoint); + + /** NetworkAttachmentConnectedEndpoint ipAddress. */ + public ipAddress?: (string|null); + + /** NetworkAttachmentConnectedEndpoint projectIdOrNum. */ + public projectIdOrNum?: (string|null); + + /** NetworkAttachmentConnectedEndpoint secondaryIpCidrRanges. */ + public secondaryIpCidrRanges: string[]; + + /** NetworkAttachmentConnectedEndpoint status. */ + public status?: (string|null); + + /** NetworkAttachmentConnectedEndpoint subnetwork. */ + public subnetwork?: (string|null); + + /** NetworkAttachmentConnectedEndpoint _ipAddress. */ + public _ipAddress?: "ipAddress"; + + /** NetworkAttachmentConnectedEndpoint _projectIdOrNum. */ + public _projectIdOrNum?: "projectIdOrNum"; + + /** NetworkAttachmentConnectedEndpoint _status. */ + public _status?: "status"; + + /** NetworkAttachmentConnectedEndpoint _subnetwork. */ + public _subnetwork?: "subnetwork"; + + /** + * Creates a new NetworkAttachmentConnectedEndpoint instance using the specified properties. + * @param [properties] Properties to set + * @returns NetworkAttachmentConnectedEndpoint instance + */ + public static create(properties?: google.cloud.compute.v1.INetworkAttachmentConnectedEndpoint): google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint; + + /** + * Encodes the specified NetworkAttachmentConnectedEndpoint message. Does not implicitly {@link google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint.verify|verify} messages. + * @param message NetworkAttachmentConnectedEndpoint message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.INetworkAttachmentConnectedEndpoint, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NetworkAttachmentConnectedEndpoint message, length delimited. Does not implicitly {@link google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint.verify|verify} messages. + * @param message NetworkAttachmentConnectedEndpoint message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.INetworkAttachmentConnectedEndpoint, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NetworkAttachmentConnectedEndpoint message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NetworkAttachmentConnectedEndpoint + * @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.NetworkAttachmentConnectedEndpoint; + + /** + * Decodes a NetworkAttachmentConnectedEndpoint message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NetworkAttachmentConnectedEndpoint + * @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.NetworkAttachmentConnectedEndpoint; + + /** + * Verifies a NetworkAttachmentConnectedEndpoint 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 NetworkAttachmentConnectedEndpoint message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NetworkAttachmentConnectedEndpoint + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint; + + /** + * Creates a plain object from a NetworkAttachmentConnectedEndpoint message. Also converts values to other types if specified. + * @param message NetworkAttachmentConnectedEndpoint + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NetworkAttachmentConnectedEndpoint to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NetworkAttachmentConnectedEndpoint + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace NetworkAttachmentConnectedEndpoint { + + /** Status enum. */ + enum Status { + UNDEFINED_STATUS = 0, + ACCEPTED = 246714279, + CLOSED = 380163436, + NEEDS_ATTENTION = 344491452, + PENDING = 35394935, + REJECTED = 174130302, + STATUS_UNSPECIFIED = 42133066 + } + } + + /** Properties of a NetworkAttachmentList. */ + interface INetworkAttachmentList { + + /** NetworkAttachmentList id */ + id?: (string|null); + + /** NetworkAttachmentList items */ + items?: (google.cloud.compute.v1.INetworkAttachment[]|null); + + /** NetworkAttachmentList kind */ + kind?: (string|null); + + /** NetworkAttachmentList nextPageToken */ + nextPageToken?: (string|null); + + /** NetworkAttachmentList selfLink */ + selfLink?: (string|null); + + /** NetworkAttachmentList warning */ + warning?: (google.cloud.compute.v1.IWarning|null); + } + + /** Represents a NetworkAttachmentList. */ + class NetworkAttachmentList implements INetworkAttachmentList { + + /** + * Constructs a new NetworkAttachmentList. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.INetworkAttachmentList); + + /** NetworkAttachmentList id. */ + public id?: (string|null); + + /** NetworkAttachmentList items. */ + public items: google.cloud.compute.v1.INetworkAttachment[]; + + /** NetworkAttachmentList kind. */ + public kind?: (string|null); + + /** NetworkAttachmentList nextPageToken. */ + public nextPageToken?: (string|null); + + /** NetworkAttachmentList selfLink. */ + public selfLink?: (string|null); + + /** NetworkAttachmentList warning. */ + public warning?: (google.cloud.compute.v1.IWarning|null); + + /** NetworkAttachmentList _id. */ + public _id?: "id"; + + /** NetworkAttachmentList _kind. */ + public _kind?: "kind"; + + /** NetworkAttachmentList _nextPageToken. */ + public _nextPageToken?: "nextPageToken"; + + /** NetworkAttachmentList _selfLink. */ + public _selfLink?: "selfLink"; + + /** NetworkAttachmentList _warning. */ + public _warning?: "warning"; + + /** + * Creates a new NetworkAttachmentList instance using the specified properties. + * @param [properties] Properties to set + * @returns NetworkAttachmentList instance + */ + public static create(properties?: google.cloud.compute.v1.INetworkAttachmentList): google.cloud.compute.v1.NetworkAttachmentList; + + /** + * Encodes the specified NetworkAttachmentList message. Does not implicitly {@link google.cloud.compute.v1.NetworkAttachmentList.verify|verify} messages. + * @param message NetworkAttachmentList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.INetworkAttachmentList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NetworkAttachmentList message, length delimited. Does not implicitly {@link google.cloud.compute.v1.NetworkAttachmentList.verify|verify} messages. + * @param message NetworkAttachmentList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.INetworkAttachmentList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NetworkAttachmentList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NetworkAttachmentList + * @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.NetworkAttachmentList; + + /** + * Decodes a NetworkAttachmentList message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NetworkAttachmentList + * @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.NetworkAttachmentList; + + /** + * Verifies a NetworkAttachmentList 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 NetworkAttachmentList message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NetworkAttachmentList + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.NetworkAttachmentList; + + /** + * Creates a plain object from a NetworkAttachmentList message. Also converts values to other types if specified. + * @param message NetworkAttachmentList + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.NetworkAttachmentList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NetworkAttachmentList to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NetworkAttachmentList + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a NetworkAttachmentsScopedList. */ + interface INetworkAttachmentsScopedList { + + /** NetworkAttachmentsScopedList networkAttachments */ + networkAttachments?: (google.cloud.compute.v1.INetworkAttachment[]|null); + + /** NetworkAttachmentsScopedList warning */ + warning?: (google.cloud.compute.v1.IWarning|null); + } + + /** Represents a NetworkAttachmentsScopedList. */ + class NetworkAttachmentsScopedList implements INetworkAttachmentsScopedList { + + /** + * Constructs a new NetworkAttachmentsScopedList. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.INetworkAttachmentsScopedList); + + /** NetworkAttachmentsScopedList networkAttachments. */ + public networkAttachments: google.cloud.compute.v1.INetworkAttachment[]; + + /** NetworkAttachmentsScopedList warning. */ + public warning?: (google.cloud.compute.v1.IWarning|null); + + /** NetworkAttachmentsScopedList _warning. */ + public _warning?: "warning"; + + /** + * Creates a new NetworkAttachmentsScopedList instance using the specified properties. + * @param [properties] Properties to set + * @returns NetworkAttachmentsScopedList instance + */ + public static create(properties?: google.cloud.compute.v1.INetworkAttachmentsScopedList): google.cloud.compute.v1.NetworkAttachmentsScopedList; + + /** + * Encodes the specified NetworkAttachmentsScopedList message. Does not implicitly {@link google.cloud.compute.v1.NetworkAttachmentsScopedList.verify|verify} messages. + * @param message NetworkAttachmentsScopedList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.INetworkAttachmentsScopedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NetworkAttachmentsScopedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1.NetworkAttachmentsScopedList.verify|verify} messages. + * @param message NetworkAttachmentsScopedList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.INetworkAttachmentsScopedList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NetworkAttachmentsScopedList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NetworkAttachmentsScopedList + * @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.NetworkAttachmentsScopedList; + + /** + * Decodes a NetworkAttachmentsScopedList message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NetworkAttachmentsScopedList + * @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.NetworkAttachmentsScopedList; + + /** + * Verifies a NetworkAttachmentsScopedList 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 NetworkAttachmentsScopedList message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NetworkAttachmentsScopedList + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.NetworkAttachmentsScopedList; + + /** + * Creates a plain object from a NetworkAttachmentsScopedList message. Also converts values to other types if specified. + * @param message NetworkAttachmentsScopedList + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.NetworkAttachmentsScopedList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NetworkAttachmentsScopedList to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NetworkAttachmentsScopedList + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a NetworkEdgeSecurityService. */ interface INetworkEdgeSecurityService { @@ -114151,6 +115729,9 @@ export namespace google { /** Project usageExportLocation */ usageExportLocation?: (google.cloud.compute.v1.IUsageExportLocation|null); + /** Project vmDnsSetting */ + vmDnsSetting?: (string|null); + /** Project xpnProjectStatus */ xpnProjectStatus?: (string|null); } @@ -114200,6 +115781,9 @@ export namespace google { /** Project usageExportLocation. */ public usageExportLocation?: (google.cloud.compute.v1.IUsageExportLocation|null); + /** Project vmDnsSetting. */ + public vmDnsSetting?: (string|null); + /** Project xpnProjectStatus. */ public xpnProjectStatus?: (string|null); @@ -114233,6 +115817,9 @@ export namespace google { /** Project _usageExportLocation. */ public _usageExportLocation?: "usageExportLocation"; + /** Project _vmDnsSetting. */ + public _vmDnsSetting?: "vmDnsSetting"; + /** Project _xpnProjectStatus. */ public _xpnProjectStatus?: "xpnProjectStatus"; @@ -114325,6 +115912,15 @@ export namespace google { STANDARD_OVERRIDES_FIXED_STANDARD = 465847234 } + /** VmDnsSetting enum. */ + enum VmDnsSetting { + UNDEFINED_VM_DNS_SETTING = 0, + GLOBAL_DEFAULT = 345419141, + UNSPECIFIED_VM_DNS_SETTING = 35691930, + ZONAL_DEFAULT = 368475782, + ZONAL_ONLY = 521198951 + } + /** XpnProjectStatus enum. */ enum XpnProjectStatus { UNDEFINED_XPN_PROJECT_STATUS = 0, @@ -116299,8 +117895,12 @@ export namespace google { EXTERNAL_VPN_GATEWAYS = 272457134, FIREWALLS = 374485843, FORWARDING_RULES = 432668949, + GLOBAL_EXTERNAL_MANAGED_BACKEND_SERVICES = 164566753, GLOBAL_EXTERNAL_MANAGED_FORWARDING_RULES = 327611949, + GLOBAL_EXTERNAL_PROXY_LB_BACKEND_SERVICES = 400256169, GLOBAL_INTERNAL_ADDRESSES = 42738332, + GLOBAL_INTERNAL_MANAGED_BACKEND_SERVICES = 256608303, + GLOBAL_INTERNAL_TRAFFIC_DIRECTOR_BACKEND_SERVICES = 323514196, GPUS_ALL_REGIONS = 39387177, HEALTH_CHECKS = 289347502, IMAGES = 15562360, @@ -116360,7 +117960,11 @@ export namespace google { PUBLIC_ADVERTISED_PREFIXES = 471371980, PUBLIC_DELEGATED_PREFIXES = 532465974, REGIONAL_AUTOSCALERS = 29363772, + REGIONAL_EXTERNAL_MANAGED_BACKEND_SERVICES = 4240989, + REGIONAL_EXTERNAL_NETWORK_LB_BACKEND_SERVICES = 409564525, REGIONAL_INSTANCE_GROUP_MANAGERS = 37543696, + REGIONAL_INTERNAL_LB_BACKEND_SERVICES = 137983760, + REGIONAL_INTERNAL_MANAGED_BACKEND_SERVICES = 96282539, RESERVATIONS = 32644647, RESOURCE_POLICIES = 83955297, ROUTERS = 493018666, @@ -122421,6 +124025,9 @@ export namespace google { /** Reservation name */ name?: (string|null); + /** Reservation resourcePolicies */ + resourcePolicies?: ({ [k: string]: string }|null); + /** Reservation satisfiesPzs */ satisfiesPzs?: (boolean|null); @@ -122470,6 +124077,9 @@ export namespace google { /** Reservation name. */ public name?: (string|null); + /** Reservation resourcePolicies. */ + public resourcePolicies: { [k: string]: string }; + /** Reservation satisfiesPzs. */ public satisfiesPzs?: (boolean|null); @@ -135447,6 +137057,9 @@ export namespace google { /** ServiceAttachmentConsumerProjectLimit connectionLimit */ connectionLimit?: (number|null); + /** ServiceAttachmentConsumerProjectLimit networkUrl */ + networkUrl?: (string|null); + /** ServiceAttachmentConsumerProjectLimit projectIdOrNum */ projectIdOrNum?: (string|null); } @@ -135463,12 +137076,18 @@ export namespace google { /** ServiceAttachmentConsumerProjectLimit connectionLimit. */ public connectionLimit?: (number|null); + /** ServiceAttachmentConsumerProjectLimit networkUrl. */ + public networkUrl?: (string|null); + /** ServiceAttachmentConsumerProjectLimit projectIdOrNum. */ public projectIdOrNum?: (string|null); /** ServiceAttachmentConsumerProjectLimit _connectionLimit. */ public _connectionLimit?: "connectionLimit"; + /** ServiceAttachmentConsumerProjectLimit _networkUrl. */ + public _networkUrl?: "networkUrl"; + /** ServiceAttachmentConsumerProjectLimit _projectIdOrNum. */ public _projectIdOrNum?: "projectIdOrNum"; @@ -137998,6 +139617,121 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a SetIamPolicyNetworkAttachmentRequest. */ + interface ISetIamPolicyNetworkAttachmentRequest { + + /** SetIamPolicyNetworkAttachmentRequest project */ + project?: (string|null); + + /** SetIamPolicyNetworkAttachmentRequest region */ + region?: (string|null); + + /** SetIamPolicyNetworkAttachmentRequest regionSetPolicyRequestResource */ + regionSetPolicyRequestResource?: (google.cloud.compute.v1.IRegionSetPolicyRequest|null); + + /** SetIamPolicyNetworkAttachmentRequest resource */ + resource?: (string|null); + } + + /** Represents a SetIamPolicyNetworkAttachmentRequest. */ + class SetIamPolicyNetworkAttachmentRequest implements ISetIamPolicyNetworkAttachmentRequest { + + /** + * Constructs a new SetIamPolicyNetworkAttachmentRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ISetIamPolicyNetworkAttachmentRequest); + + /** SetIamPolicyNetworkAttachmentRequest project. */ + public project: string; + + /** SetIamPolicyNetworkAttachmentRequest region. */ + public region: string; + + /** SetIamPolicyNetworkAttachmentRequest regionSetPolicyRequestResource. */ + public regionSetPolicyRequestResource?: (google.cloud.compute.v1.IRegionSetPolicyRequest|null); + + /** SetIamPolicyNetworkAttachmentRequest resource. */ + public resource: string; + + /** + * Creates a new SetIamPolicyNetworkAttachmentRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SetIamPolicyNetworkAttachmentRequest instance + */ + public static create(properties?: google.cloud.compute.v1.ISetIamPolicyNetworkAttachmentRequest): google.cloud.compute.v1.SetIamPolicyNetworkAttachmentRequest; + + /** + * Encodes the specified SetIamPolicyNetworkAttachmentRequest message. Does not implicitly {@link google.cloud.compute.v1.SetIamPolicyNetworkAttachmentRequest.verify|verify} messages. + * @param message SetIamPolicyNetworkAttachmentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ISetIamPolicyNetworkAttachmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SetIamPolicyNetworkAttachmentRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SetIamPolicyNetworkAttachmentRequest.verify|verify} messages. + * @param message SetIamPolicyNetworkAttachmentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ISetIamPolicyNetworkAttachmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SetIamPolicyNetworkAttachmentRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SetIamPolicyNetworkAttachmentRequest + * @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.SetIamPolicyNetworkAttachmentRequest; + + /** + * Decodes a SetIamPolicyNetworkAttachmentRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SetIamPolicyNetworkAttachmentRequest + * @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.SetIamPolicyNetworkAttachmentRequest; + + /** + * Verifies a SetIamPolicyNetworkAttachmentRequest 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 SetIamPolicyNetworkAttachmentRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetIamPolicyNetworkAttachmentRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.SetIamPolicyNetworkAttachmentRequest; + + /** + * Creates a plain object from a SetIamPolicyNetworkAttachmentRequest message. Also converts values to other types if specified. + * @param message SetIamPolicyNetworkAttachmentRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.SetIamPolicyNetworkAttachmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetIamPolicyNetworkAttachmentRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SetIamPolicyNetworkAttachmentRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a SetIamPolicyNetworkFirewallPolicyRequest. */ interface ISetIamPolicyNetworkFirewallPolicyRequest { @@ -149066,6 +150800,9 @@ export namespace google { /** Properties of a StopInstanceRequest. */ interface IStopInstanceRequest { + /** StopInstanceRequest discardLocalSsd */ + discardLocalSsd?: (boolean|null); + /** StopInstanceRequest instance */ instance?: (string|null); @@ -149088,6 +150825,9 @@ export namespace google { */ constructor(properties?: google.cloud.compute.v1.IStopInstanceRequest); + /** StopInstanceRequest discardLocalSsd. */ + public discardLocalSsd?: (boolean|null); + /** StopInstanceRequest instance. */ public instance: string; @@ -149100,6 +150840,9 @@ export namespace google { /** StopInstanceRequest zone. */ public zone: string; + /** StopInstanceRequest _discardLocalSsd. */ + public _discardLocalSsd?: "discardLocalSsd"; + /** StopInstanceRequest _requestId. */ public _requestId?: "requestId"; @@ -150518,6 +152261,9 @@ export namespace google { /** Properties of a SuspendInstanceRequest. */ interface ISuspendInstanceRequest { + /** SuspendInstanceRequest discardLocalSsd */ + discardLocalSsd?: (boolean|null); + /** SuspendInstanceRequest instance */ instance?: (string|null); @@ -150540,6 +152286,9 @@ export namespace google { */ constructor(properties?: google.cloud.compute.v1.ISuspendInstanceRequest); + /** SuspendInstanceRequest discardLocalSsd. */ + public discardLocalSsd?: (boolean|null); + /** SuspendInstanceRequest instance. */ public instance: string; @@ -150552,6 +152301,9 @@ export namespace google { /** SuspendInstanceRequest zone. */ public zone: string; + /** SuspendInstanceRequest _discardLocalSsd. */ + public _discardLocalSsd?: "discardLocalSsd"; + /** SuspendInstanceRequest _requestId. */ public _requestId?: "requestId"; @@ -157928,6 +159680,121 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a TestIamPermissionsNetworkAttachmentRequest. */ + interface ITestIamPermissionsNetworkAttachmentRequest { + + /** TestIamPermissionsNetworkAttachmentRequest project */ + project?: (string|null); + + /** TestIamPermissionsNetworkAttachmentRequest region */ + region?: (string|null); + + /** TestIamPermissionsNetworkAttachmentRequest resource */ + resource?: (string|null); + + /** TestIamPermissionsNetworkAttachmentRequest testPermissionsRequestResource */ + testPermissionsRequestResource?: (google.cloud.compute.v1.ITestPermissionsRequest|null); + } + + /** Represents a TestIamPermissionsNetworkAttachmentRequest. */ + class TestIamPermissionsNetworkAttachmentRequest implements ITestIamPermissionsNetworkAttachmentRequest { + + /** + * Constructs a new TestIamPermissionsNetworkAttachmentRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.compute.v1.ITestIamPermissionsNetworkAttachmentRequest); + + /** TestIamPermissionsNetworkAttachmentRequest project. */ + public project: string; + + /** TestIamPermissionsNetworkAttachmentRequest region. */ + public region: string; + + /** TestIamPermissionsNetworkAttachmentRequest resource. */ + public resource: string; + + /** TestIamPermissionsNetworkAttachmentRequest testPermissionsRequestResource. */ + public testPermissionsRequestResource?: (google.cloud.compute.v1.ITestPermissionsRequest|null); + + /** + * Creates a new TestIamPermissionsNetworkAttachmentRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns TestIamPermissionsNetworkAttachmentRequest instance + */ + public static create(properties?: google.cloud.compute.v1.ITestIamPermissionsNetworkAttachmentRequest): google.cloud.compute.v1.TestIamPermissionsNetworkAttachmentRequest; + + /** + * Encodes the specified TestIamPermissionsNetworkAttachmentRequest message. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsNetworkAttachmentRequest.verify|verify} messages. + * @param message TestIamPermissionsNetworkAttachmentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.compute.v1.ITestIamPermissionsNetworkAttachmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TestIamPermissionsNetworkAttachmentRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsNetworkAttachmentRequest.verify|verify} messages. + * @param message TestIamPermissionsNetworkAttachmentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.compute.v1.ITestIamPermissionsNetworkAttachmentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TestIamPermissionsNetworkAttachmentRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TestIamPermissionsNetworkAttachmentRequest + * @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.TestIamPermissionsNetworkAttachmentRequest; + + /** + * Decodes a TestIamPermissionsNetworkAttachmentRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TestIamPermissionsNetworkAttachmentRequest + * @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.TestIamPermissionsNetworkAttachmentRequest; + + /** + * Verifies a TestIamPermissionsNetworkAttachmentRequest 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 TestIamPermissionsNetworkAttachmentRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TestIamPermissionsNetworkAttachmentRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.TestIamPermissionsNetworkAttachmentRequest; + + /** + * Creates a plain object from a TestIamPermissionsNetworkAttachmentRequest message. Also converts values to other types if specified. + * @param message TestIamPermissionsNetworkAttachmentRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.compute.v1.TestIamPermissionsNetworkAttachmentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TestIamPermissionsNetworkAttachmentRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TestIamPermissionsNetworkAttachmentRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a TestIamPermissionsNetworkEndpointGroupRequest. */ interface ITestIamPermissionsNetworkEndpointGroupRequest { @@ -175063,6 +176930,198 @@ export namespace google { type ListCallback = (error: (Error|null), response?: google.cloud.compute.v1.MachineTypeList) => void; } + /** Represents a NetworkAttachments */ + class NetworkAttachments extends $protobuf.rpc.Service { + + /** + * Constructs a new NetworkAttachments service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new NetworkAttachments service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): NetworkAttachments; + + /** + * Calls AggregatedList. + * @param request AggregatedListNetworkAttachmentsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and NetworkAttachmentAggregatedList + */ + public aggregatedList(request: google.cloud.compute.v1.IAggregatedListNetworkAttachmentsRequest, callback: google.cloud.compute.v1.NetworkAttachments.AggregatedListCallback): void; + + /** + * Calls AggregatedList. + * @param request AggregatedListNetworkAttachmentsRequest message or plain object + * @returns Promise + */ + public aggregatedList(request: google.cloud.compute.v1.IAggregatedListNetworkAttachmentsRequest): Promise; + + /** + * Calls Delete. + * @param request DeleteNetworkAttachmentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public delete(request: google.cloud.compute.v1.IDeleteNetworkAttachmentRequest, callback: google.cloud.compute.v1.NetworkAttachments.DeleteCallback): void; + + /** + * Calls Delete. + * @param request DeleteNetworkAttachmentRequest message or plain object + * @returns Promise + */ + public delete(request: google.cloud.compute.v1.IDeleteNetworkAttachmentRequest): Promise; + + /** + * Calls Get. + * @param request GetNetworkAttachmentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and NetworkAttachment + */ + public get(request: google.cloud.compute.v1.IGetNetworkAttachmentRequest, callback: google.cloud.compute.v1.NetworkAttachments.GetCallback): void; + + /** + * Calls Get. + * @param request GetNetworkAttachmentRequest message or plain object + * @returns Promise + */ + public get(request: google.cloud.compute.v1.IGetNetworkAttachmentRequest): Promise; + + /** + * Calls GetIamPolicy. + * @param request GetIamPolicyNetworkAttachmentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Policy + */ + public getIamPolicy(request: google.cloud.compute.v1.IGetIamPolicyNetworkAttachmentRequest, callback: google.cloud.compute.v1.NetworkAttachments.GetIamPolicyCallback): void; + + /** + * Calls GetIamPolicy. + * @param request GetIamPolicyNetworkAttachmentRequest message or plain object + * @returns Promise + */ + public getIamPolicy(request: google.cloud.compute.v1.IGetIamPolicyNetworkAttachmentRequest): Promise; + + /** + * Calls Insert. + * @param request InsertNetworkAttachmentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public insert(request: google.cloud.compute.v1.IInsertNetworkAttachmentRequest, callback: google.cloud.compute.v1.NetworkAttachments.InsertCallback): void; + + /** + * Calls Insert. + * @param request InsertNetworkAttachmentRequest message or plain object + * @returns Promise + */ + public insert(request: google.cloud.compute.v1.IInsertNetworkAttachmentRequest): Promise; + + /** + * Calls List. + * @param request ListNetworkAttachmentsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and NetworkAttachmentList + */ + public list(request: google.cloud.compute.v1.IListNetworkAttachmentsRequest, callback: google.cloud.compute.v1.NetworkAttachments.ListCallback): void; + + /** + * Calls List. + * @param request ListNetworkAttachmentsRequest message or plain object + * @returns Promise + */ + public list(request: google.cloud.compute.v1.IListNetworkAttachmentsRequest): Promise; + + /** + * Calls SetIamPolicy. + * @param request SetIamPolicyNetworkAttachmentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Policy + */ + public setIamPolicy(request: google.cloud.compute.v1.ISetIamPolicyNetworkAttachmentRequest, callback: google.cloud.compute.v1.NetworkAttachments.SetIamPolicyCallback): void; + + /** + * Calls SetIamPolicy. + * @param request SetIamPolicyNetworkAttachmentRequest message or plain object + * @returns Promise + */ + public setIamPolicy(request: google.cloud.compute.v1.ISetIamPolicyNetworkAttachmentRequest): Promise; + + /** + * Calls TestIamPermissions. + * @param request TestIamPermissionsNetworkAttachmentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TestPermissionsResponse + */ + public testIamPermissions(request: google.cloud.compute.v1.ITestIamPermissionsNetworkAttachmentRequest, callback: google.cloud.compute.v1.NetworkAttachments.TestIamPermissionsCallback): void; + + /** + * Calls TestIamPermissions. + * @param request TestIamPermissionsNetworkAttachmentRequest message or plain object + * @returns Promise + */ + public testIamPermissions(request: google.cloud.compute.v1.ITestIamPermissionsNetworkAttachmentRequest): Promise; + } + + namespace NetworkAttachments { + + /** + * Callback as used by {@link google.cloud.compute.v1.NetworkAttachments|aggregatedList}. + * @param error Error, if any + * @param [response] NetworkAttachmentAggregatedList + */ + type AggregatedListCallback = (error: (Error|null), response?: google.cloud.compute.v1.NetworkAttachmentAggregatedList) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.NetworkAttachments|delete_}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.NetworkAttachments|get}. + * @param error Error, if any + * @param [response] NetworkAttachment + */ + type GetCallback = (error: (Error|null), response?: google.cloud.compute.v1.NetworkAttachment) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.NetworkAttachments|getIamPolicy}. + * @param error Error, if any + * @param [response] Policy + */ + type GetIamPolicyCallback = (error: (Error|null), response?: google.cloud.compute.v1.Policy) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.NetworkAttachments|insert}. + * @param error Error, if any + * @param [response] Operation + */ + type InsertCallback = (error: (Error|null), response?: google.cloud.compute.v1.Operation) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.NetworkAttachments|list}. + * @param error Error, if any + * @param [response] NetworkAttachmentList + */ + type ListCallback = (error: (Error|null), response?: google.cloud.compute.v1.NetworkAttachmentList) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.NetworkAttachments|setIamPolicy}. + * @param error Error, if any + * @param [response] Policy + */ + type SetIamPolicyCallback = (error: (Error|null), response?: google.cloud.compute.v1.Policy) => void; + + /** + * Callback as used by {@link google.cloud.compute.v1.NetworkAttachments|testIamPermissions}. + * @param error Error, if any + * @param [response] TestPermissionsResponse + */ + type TestIamPermissionsCallback = (error: (Error|null), response?: google.cloud.compute.v1.TestPermissionsResponse) => void; + } + /** Represents a NetworkEdgeSecurityServices */ class NetworkEdgeSecurityServices extends $protobuf.rpc.Service { diff --git a/packages/google-cloud-compute/protos/protos.js b/packages/google-cloud-compute/protos/protos.js index c263be70d8a..deab2eaa120 100644 --- a/packages/google-cloud-compute/protos/protos.js +++ b/packages/google-cloud-compute/protos/protos.js @@ -17929,30 +17929,30 @@ return AggregatedListMachineTypesRequest; })(); - v1.AggregatedListNetworkEdgeSecurityServicesRequest = (function() { + v1.AggregatedListNetworkAttachmentsRequest = (function() { /** - * Properties of an AggregatedListNetworkEdgeSecurityServicesRequest. + * Properties of an AggregatedListNetworkAttachmentsRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListNetworkEdgeSecurityServicesRequest - * @property {string|null} [filter] AggregatedListNetworkEdgeSecurityServicesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListNetworkEdgeSecurityServicesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListNetworkEdgeSecurityServicesRequest maxResults - * @property {string|null} [orderBy] AggregatedListNetworkEdgeSecurityServicesRequest orderBy - * @property {string|null} [pageToken] AggregatedListNetworkEdgeSecurityServicesRequest pageToken - * @property {string|null} [project] AggregatedListNetworkEdgeSecurityServicesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListNetworkEdgeSecurityServicesRequest returnPartialSuccess + * @interface IAggregatedListNetworkAttachmentsRequest + * @property {string|null} [filter] AggregatedListNetworkAttachmentsRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListNetworkAttachmentsRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListNetworkAttachmentsRequest maxResults + * @property {string|null} [orderBy] AggregatedListNetworkAttachmentsRequest orderBy + * @property {string|null} [pageToken] AggregatedListNetworkAttachmentsRequest pageToken + * @property {string|null} [project] AggregatedListNetworkAttachmentsRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListNetworkAttachmentsRequest returnPartialSuccess */ /** - * Constructs a new AggregatedListNetworkEdgeSecurityServicesRequest. + * Constructs a new AggregatedListNetworkAttachmentsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListNetworkEdgeSecurityServicesRequest. - * @implements IAggregatedListNetworkEdgeSecurityServicesRequest + * @classdesc Represents an AggregatedListNetworkAttachmentsRequest. + * @implements IAggregatedListNetworkAttachmentsRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListNetworkEdgeSecurityServicesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListNetworkAttachmentsRequest=} [properties] Properties to set */ - function AggregatedListNetworkEdgeSecurityServicesRequest(properties) { + function AggregatedListNetworkAttachmentsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17960,152 +17960,152 @@ } /** - * AggregatedListNetworkEdgeSecurityServicesRequest filter. + * AggregatedListNetworkAttachmentsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @instance */ - AggregatedListNetworkEdgeSecurityServicesRequest.prototype.filter = null; + AggregatedListNetworkAttachmentsRequest.prototype.filter = null; /** - * AggregatedListNetworkEdgeSecurityServicesRequest includeAllScopes. + * AggregatedListNetworkAttachmentsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @instance */ - AggregatedListNetworkEdgeSecurityServicesRequest.prototype.includeAllScopes = null; + AggregatedListNetworkAttachmentsRequest.prototype.includeAllScopes = null; /** - * AggregatedListNetworkEdgeSecurityServicesRequest maxResults. + * AggregatedListNetworkAttachmentsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @instance */ - AggregatedListNetworkEdgeSecurityServicesRequest.prototype.maxResults = null; + AggregatedListNetworkAttachmentsRequest.prototype.maxResults = null; /** - * AggregatedListNetworkEdgeSecurityServicesRequest orderBy. + * AggregatedListNetworkAttachmentsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @instance */ - AggregatedListNetworkEdgeSecurityServicesRequest.prototype.orderBy = null; + AggregatedListNetworkAttachmentsRequest.prototype.orderBy = null; /** - * AggregatedListNetworkEdgeSecurityServicesRequest pageToken. + * AggregatedListNetworkAttachmentsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @instance */ - AggregatedListNetworkEdgeSecurityServicesRequest.prototype.pageToken = null; + AggregatedListNetworkAttachmentsRequest.prototype.pageToken = null; /** - * AggregatedListNetworkEdgeSecurityServicesRequest project. + * AggregatedListNetworkAttachmentsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @instance */ - AggregatedListNetworkEdgeSecurityServicesRequest.prototype.project = ""; + AggregatedListNetworkAttachmentsRequest.prototype.project = ""; /** - * AggregatedListNetworkEdgeSecurityServicesRequest returnPartialSuccess. + * AggregatedListNetworkAttachmentsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @instance */ - AggregatedListNetworkEdgeSecurityServicesRequest.prototype.returnPartialSuccess = null; + AggregatedListNetworkAttachmentsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * AggregatedListNetworkEdgeSecurityServicesRequest _filter. + * AggregatedListNetworkAttachmentsRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @instance */ - Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNetworkEdgeSecurityServicesRequest _includeAllScopes. + * AggregatedListNetworkAttachmentsRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @instance */ - Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNetworkEdgeSecurityServicesRequest _maxResults. + * AggregatedListNetworkAttachmentsRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @instance */ - Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNetworkEdgeSecurityServicesRequest _orderBy. + * AggregatedListNetworkAttachmentsRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @instance */ - Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNetworkEdgeSecurityServicesRequest _pageToken. + * AggregatedListNetworkAttachmentsRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @instance */ - Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNetworkEdgeSecurityServicesRequest _returnPartialSuccess. + * AggregatedListNetworkAttachmentsRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @instance */ - Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListNetworkAttachmentsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListNetworkEdgeSecurityServicesRequest instance using the specified properties. + * Creates a new AggregatedListNetworkAttachmentsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListNetworkEdgeSecurityServicesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest} AggregatedListNetworkEdgeSecurityServicesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListNetworkAttachmentsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest} AggregatedListNetworkAttachmentsRequest instance */ - AggregatedListNetworkEdgeSecurityServicesRequest.create = function create(properties) { - return new AggregatedListNetworkEdgeSecurityServicesRequest(properties); + AggregatedListNetworkAttachmentsRequest.create = function create(properties) { + return new AggregatedListNetworkAttachmentsRequest(properties); }; /** - * Encodes the specified AggregatedListNetworkEdgeSecurityServicesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest.verify|verify} messages. + * Encodes the specified AggregatedListNetworkAttachmentsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListNetworkEdgeSecurityServicesRequest} message AggregatedListNetworkEdgeSecurityServicesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListNetworkAttachmentsRequest} message AggregatedListNetworkAttachmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNetworkEdgeSecurityServicesRequest.encode = function encode(message, writer) { + AggregatedListNetworkAttachmentsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -18126,33 +18126,33 @@ }; /** - * Encodes the specified AggregatedListNetworkEdgeSecurityServicesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest.verify|verify} messages. + * Encodes the specified AggregatedListNetworkAttachmentsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListNetworkEdgeSecurityServicesRequest} message AggregatedListNetworkEdgeSecurityServicesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListNetworkAttachmentsRequest} message AggregatedListNetworkAttachmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNetworkEdgeSecurityServicesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListNetworkAttachmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListNetworkEdgeSecurityServicesRequest message from the specified reader or buffer. + * Decodes an AggregatedListNetworkAttachmentsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @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.AggregatedListNetworkEdgeSecurityServicesRequest} AggregatedListNetworkEdgeSecurityServicesRequest + * @returns {google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest} AggregatedListNetworkAttachmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListNetworkEdgeSecurityServicesRequest.decode = function decode(reader, length) { + AggregatedListNetworkAttachmentsRequest.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.AggregatedListNetworkEdgeSecurityServicesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -18193,30 +18193,30 @@ }; /** - * Decodes an AggregatedListNetworkEdgeSecurityServicesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListNetworkAttachmentsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest} AggregatedListNetworkEdgeSecurityServicesRequest + * @returns {google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest} AggregatedListNetworkAttachmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListNetworkEdgeSecurityServicesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListNetworkAttachmentsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListNetworkEdgeSecurityServicesRequest message. + * Verifies an AggregatedListNetworkAttachmentsRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListNetworkEdgeSecurityServicesRequest.verify = function verify(message) { + AggregatedListNetworkAttachmentsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -18257,17 +18257,17 @@ }; /** - * Creates an AggregatedListNetworkEdgeSecurityServicesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListNetworkAttachmentsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest} AggregatedListNetworkEdgeSecurityServicesRequest + * @returns {google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest} AggregatedListNetworkAttachmentsRequest */ - AggregatedListNetworkEdgeSecurityServicesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest) + AggregatedListNetworkAttachmentsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -18286,15 +18286,15 @@ }; /** - * Creates a plain object from an AggregatedListNetworkEdgeSecurityServicesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListNetworkAttachmentsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @static - * @param {google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest} message AggregatedListNetworkEdgeSecurityServicesRequest + * @param {google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest} message AggregatedListNetworkAttachmentsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListNetworkEdgeSecurityServicesRequest.toObject = function toObject(message, options) { + AggregatedListNetworkAttachmentsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -18336,58 +18336,58 @@ }; /** - * Converts this AggregatedListNetworkEdgeSecurityServicesRequest to JSON. + * Converts this AggregatedListNetworkAttachmentsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListNetworkEdgeSecurityServicesRequest.prototype.toJSON = function toJSON() { + AggregatedListNetworkAttachmentsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListNetworkEdgeSecurityServicesRequest + * Gets the default type url for AggregatedListNetworkAttachmentsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListNetworkEdgeSecurityServicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListNetworkAttachmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest"; }; - return AggregatedListNetworkEdgeSecurityServicesRequest; + return AggregatedListNetworkAttachmentsRequest; })(); - v1.AggregatedListNetworkEndpointGroupsRequest = (function() { + v1.AggregatedListNetworkEdgeSecurityServicesRequest = (function() { /** - * Properties of an AggregatedListNetworkEndpointGroupsRequest. + * Properties of an AggregatedListNetworkEdgeSecurityServicesRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListNetworkEndpointGroupsRequest - * @property {string|null} [filter] AggregatedListNetworkEndpointGroupsRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListNetworkEndpointGroupsRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListNetworkEndpointGroupsRequest maxResults - * @property {string|null} [orderBy] AggregatedListNetworkEndpointGroupsRequest orderBy - * @property {string|null} [pageToken] AggregatedListNetworkEndpointGroupsRequest pageToken - * @property {string|null} [project] AggregatedListNetworkEndpointGroupsRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListNetworkEndpointGroupsRequest returnPartialSuccess + * @interface IAggregatedListNetworkEdgeSecurityServicesRequest + * @property {string|null} [filter] AggregatedListNetworkEdgeSecurityServicesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListNetworkEdgeSecurityServicesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListNetworkEdgeSecurityServicesRequest maxResults + * @property {string|null} [orderBy] AggregatedListNetworkEdgeSecurityServicesRequest orderBy + * @property {string|null} [pageToken] AggregatedListNetworkEdgeSecurityServicesRequest pageToken + * @property {string|null} [project] AggregatedListNetworkEdgeSecurityServicesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListNetworkEdgeSecurityServicesRequest returnPartialSuccess */ /** - * Constructs a new AggregatedListNetworkEndpointGroupsRequest. + * Constructs a new AggregatedListNetworkEdgeSecurityServicesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListNetworkEndpointGroupsRequest. - * @implements IAggregatedListNetworkEndpointGroupsRequest + * @classdesc Represents an AggregatedListNetworkEdgeSecurityServicesRequest. + * @implements IAggregatedListNetworkEdgeSecurityServicesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListNetworkEndpointGroupsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListNetworkEdgeSecurityServicesRequest=} [properties] Properties to set */ - function AggregatedListNetworkEndpointGroupsRequest(properties) { + function AggregatedListNetworkEdgeSecurityServicesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18395,152 +18395,152 @@ } /** - * AggregatedListNetworkEndpointGroupsRequest filter. + * AggregatedListNetworkEdgeSecurityServicesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @instance */ - AggregatedListNetworkEndpointGroupsRequest.prototype.filter = null; + AggregatedListNetworkEdgeSecurityServicesRequest.prototype.filter = null; /** - * AggregatedListNetworkEndpointGroupsRequest includeAllScopes. + * AggregatedListNetworkEdgeSecurityServicesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @instance */ - AggregatedListNetworkEndpointGroupsRequest.prototype.includeAllScopes = null; + AggregatedListNetworkEdgeSecurityServicesRequest.prototype.includeAllScopes = null; /** - * AggregatedListNetworkEndpointGroupsRequest maxResults. + * AggregatedListNetworkEdgeSecurityServicesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @instance */ - AggregatedListNetworkEndpointGroupsRequest.prototype.maxResults = null; + AggregatedListNetworkEdgeSecurityServicesRequest.prototype.maxResults = null; /** - * AggregatedListNetworkEndpointGroupsRequest orderBy. + * AggregatedListNetworkEdgeSecurityServicesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @instance */ - AggregatedListNetworkEndpointGroupsRequest.prototype.orderBy = null; + AggregatedListNetworkEdgeSecurityServicesRequest.prototype.orderBy = null; /** - * AggregatedListNetworkEndpointGroupsRequest pageToken. + * AggregatedListNetworkEdgeSecurityServicesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @instance */ - AggregatedListNetworkEndpointGroupsRequest.prototype.pageToken = null; + AggregatedListNetworkEdgeSecurityServicesRequest.prototype.pageToken = null; /** - * AggregatedListNetworkEndpointGroupsRequest project. + * AggregatedListNetworkEdgeSecurityServicesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @instance */ - AggregatedListNetworkEndpointGroupsRequest.prototype.project = ""; + AggregatedListNetworkEdgeSecurityServicesRequest.prototype.project = ""; /** - * AggregatedListNetworkEndpointGroupsRequest returnPartialSuccess. + * AggregatedListNetworkEdgeSecurityServicesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @instance */ - AggregatedListNetworkEndpointGroupsRequest.prototype.returnPartialSuccess = null; + AggregatedListNetworkEdgeSecurityServicesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * AggregatedListNetworkEndpointGroupsRequest _filter. + * AggregatedListNetworkEdgeSecurityServicesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @instance */ - Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNetworkEndpointGroupsRequest _includeAllScopes. + * AggregatedListNetworkEdgeSecurityServicesRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @instance */ - Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNetworkEndpointGroupsRequest _maxResults. + * AggregatedListNetworkEdgeSecurityServicesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @instance */ - Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNetworkEndpointGroupsRequest _orderBy. + * AggregatedListNetworkEdgeSecurityServicesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @instance */ - Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNetworkEndpointGroupsRequest _pageToken. + * AggregatedListNetworkEdgeSecurityServicesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @instance */ - Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNetworkEndpointGroupsRequest _returnPartialSuccess. + * AggregatedListNetworkEdgeSecurityServicesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @instance */ - Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListNetworkEdgeSecurityServicesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListNetworkEndpointGroupsRequest instance using the specified properties. + * Creates a new AggregatedListNetworkEdgeSecurityServicesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListNetworkEndpointGroupsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest} AggregatedListNetworkEndpointGroupsRequest instance + * @param {google.cloud.compute.v1.IAggregatedListNetworkEdgeSecurityServicesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest} AggregatedListNetworkEdgeSecurityServicesRequest instance */ - AggregatedListNetworkEndpointGroupsRequest.create = function create(properties) { - return new AggregatedListNetworkEndpointGroupsRequest(properties); + AggregatedListNetworkEdgeSecurityServicesRequest.create = function create(properties) { + return new AggregatedListNetworkEdgeSecurityServicesRequest(properties); }; /** - * Encodes the specified AggregatedListNetworkEndpointGroupsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest.verify|verify} messages. + * Encodes the specified AggregatedListNetworkEdgeSecurityServicesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListNetworkEndpointGroupsRequest} message AggregatedListNetworkEndpointGroupsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListNetworkEdgeSecurityServicesRequest} message AggregatedListNetworkEdgeSecurityServicesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNetworkEndpointGroupsRequest.encode = function encode(message, writer) { + AggregatedListNetworkEdgeSecurityServicesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -18561,33 +18561,33 @@ }; /** - * Encodes the specified AggregatedListNetworkEndpointGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest.verify|verify} messages. + * Encodes the specified AggregatedListNetworkEdgeSecurityServicesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListNetworkEndpointGroupsRequest} message AggregatedListNetworkEndpointGroupsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListNetworkEdgeSecurityServicesRequest} message AggregatedListNetworkEdgeSecurityServicesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNetworkEndpointGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListNetworkEdgeSecurityServicesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListNetworkEndpointGroupsRequest message from the specified reader or buffer. + * Decodes an AggregatedListNetworkEdgeSecurityServicesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @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.AggregatedListNetworkEndpointGroupsRequest} AggregatedListNetworkEndpointGroupsRequest + * @returns {google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest} AggregatedListNetworkEdgeSecurityServicesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListNetworkEndpointGroupsRequest.decode = function decode(reader, length) { + AggregatedListNetworkEdgeSecurityServicesRequest.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.AggregatedListNetworkEndpointGroupsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -18628,30 +18628,30 @@ }; /** - * Decodes an AggregatedListNetworkEndpointGroupsRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListNetworkEdgeSecurityServicesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest} AggregatedListNetworkEndpointGroupsRequest + * @returns {google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest} AggregatedListNetworkEdgeSecurityServicesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListNetworkEndpointGroupsRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListNetworkEdgeSecurityServicesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListNetworkEndpointGroupsRequest message. + * Verifies an AggregatedListNetworkEdgeSecurityServicesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListNetworkEndpointGroupsRequest.verify = function verify(message) { + AggregatedListNetworkEdgeSecurityServicesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -18692,17 +18692,17 @@ }; /** - * Creates an AggregatedListNetworkEndpointGroupsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListNetworkEdgeSecurityServicesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest} AggregatedListNetworkEndpointGroupsRequest + * @returns {google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest} AggregatedListNetworkEdgeSecurityServicesRequest */ - AggregatedListNetworkEndpointGroupsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest) + AggregatedListNetworkEdgeSecurityServicesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -18721,15 +18721,15 @@ }; /** - * Creates a plain object from an AggregatedListNetworkEndpointGroupsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListNetworkEdgeSecurityServicesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest} message AggregatedListNetworkEndpointGroupsRequest + * @param {google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest} message AggregatedListNetworkEdgeSecurityServicesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListNetworkEndpointGroupsRequest.toObject = function toObject(message, options) { + AggregatedListNetworkEdgeSecurityServicesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -18771,58 +18771,58 @@ }; /** - * Converts this AggregatedListNetworkEndpointGroupsRequest to JSON. + * Converts this AggregatedListNetworkEdgeSecurityServicesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListNetworkEndpointGroupsRequest.prototype.toJSON = function toJSON() { + AggregatedListNetworkEdgeSecurityServicesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListNetworkEndpointGroupsRequest + * Gets the default type url for AggregatedListNetworkEdgeSecurityServicesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListNetworkEndpointGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListNetworkEdgeSecurityServicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListNetworkEdgeSecurityServicesRequest"; }; - return AggregatedListNetworkEndpointGroupsRequest; + return AggregatedListNetworkEdgeSecurityServicesRequest; })(); - v1.AggregatedListNodeGroupsRequest = (function() { + v1.AggregatedListNetworkEndpointGroupsRequest = (function() { /** - * Properties of an AggregatedListNodeGroupsRequest. + * Properties of an AggregatedListNetworkEndpointGroupsRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListNodeGroupsRequest - * @property {string|null} [filter] AggregatedListNodeGroupsRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListNodeGroupsRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListNodeGroupsRequest maxResults - * @property {string|null} [orderBy] AggregatedListNodeGroupsRequest orderBy - * @property {string|null} [pageToken] AggregatedListNodeGroupsRequest pageToken - * @property {string|null} [project] AggregatedListNodeGroupsRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListNodeGroupsRequest returnPartialSuccess + * @interface IAggregatedListNetworkEndpointGroupsRequest + * @property {string|null} [filter] AggregatedListNetworkEndpointGroupsRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListNetworkEndpointGroupsRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListNetworkEndpointGroupsRequest maxResults + * @property {string|null} [orderBy] AggregatedListNetworkEndpointGroupsRequest orderBy + * @property {string|null} [pageToken] AggregatedListNetworkEndpointGroupsRequest pageToken + * @property {string|null} [project] AggregatedListNetworkEndpointGroupsRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListNetworkEndpointGroupsRequest returnPartialSuccess */ /** - * Constructs a new AggregatedListNodeGroupsRequest. + * Constructs a new AggregatedListNetworkEndpointGroupsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListNodeGroupsRequest. - * @implements IAggregatedListNodeGroupsRequest + * @classdesc Represents an AggregatedListNetworkEndpointGroupsRequest. + * @implements IAggregatedListNetworkEndpointGroupsRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListNodeGroupsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListNetworkEndpointGroupsRequest=} [properties] Properties to set */ - function AggregatedListNodeGroupsRequest(properties) { + function AggregatedListNetworkEndpointGroupsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18830,152 +18830,152 @@ } /** - * AggregatedListNodeGroupsRequest filter. + * AggregatedListNetworkEndpointGroupsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @instance */ - AggregatedListNodeGroupsRequest.prototype.filter = null; + AggregatedListNetworkEndpointGroupsRequest.prototype.filter = null; /** - * AggregatedListNodeGroupsRequest includeAllScopes. + * AggregatedListNetworkEndpointGroupsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @instance */ - AggregatedListNodeGroupsRequest.prototype.includeAllScopes = null; + AggregatedListNetworkEndpointGroupsRequest.prototype.includeAllScopes = null; /** - * AggregatedListNodeGroupsRequest maxResults. + * AggregatedListNetworkEndpointGroupsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @instance */ - AggregatedListNodeGroupsRequest.prototype.maxResults = null; + AggregatedListNetworkEndpointGroupsRequest.prototype.maxResults = null; /** - * AggregatedListNodeGroupsRequest orderBy. + * AggregatedListNetworkEndpointGroupsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @instance */ - AggregatedListNodeGroupsRequest.prototype.orderBy = null; + AggregatedListNetworkEndpointGroupsRequest.prototype.orderBy = null; /** - * AggregatedListNodeGroupsRequest pageToken. + * AggregatedListNetworkEndpointGroupsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @instance */ - AggregatedListNodeGroupsRequest.prototype.pageToken = null; + AggregatedListNetworkEndpointGroupsRequest.prototype.pageToken = null; /** - * AggregatedListNodeGroupsRequest project. + * AggregatedListNetworkEndpointGroupsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @instance */ - AggregatedListNodeGroupsRequest.prototype.project = ""; + AggregatedListNetworkEndpointGroupsRequest.prototype.project = ""; /** - * AggregatedListNodeGroupsRequest returnPartialSuccess. + * AggregatedListNetworkEndpointGroupsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @instance */ - AggregatedListNodeGroupsRequest.prototype.returnPartialSuccess = null; + AggregatedListNetworkEndpointGroupsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * AggregatedListNodeGroupsRequest _filter. + * AggregatedListNetworkEndpointGroupsRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @instance */ - Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNodeGroupsRequest _includeAllScopes. + * AggregatedListNetworkEndpointGroupsRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @instance */ - Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNodeGroupsRequest _maxResults. + * AggregatedListNetworkEndpointGroupsRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @instance */ - Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNodeGroupsRequest _orderBy. + * AggregatedListNetworkEndpointGroupsRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @instance */ - Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNodeGroupsRequest _pageToken. + * AggregatedListNetworkEndpointGroupsRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @instance */ - Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNodeGroupsRequest _returnPartialSuccess. + * AggregatedListNetworkEndpointGroupsRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @instance */ - Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListNetworkEndpointGroupsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListNodeGroupsRequest instance using the specified properties. + * Creates a new AggregatedListNetworkEndpointGroupsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListNodeGroupsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListNodeGroupsRequest} AggregatedListNodeGroupsRequest instance + * @param {google.cloud.compute.v1.IAggregatedListNetworkEndpointGroupsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest} AggregatedListNetworkEndpointGroupsRequest instance */ - AggregatedListNodeGroupsRequest.create = function create(properties) { - return new AggregatedListNodeGroupsRequest(properties); + AggregatedListNetworkEndpointGroupsRequest.create = function create(properties) { + return new AggregatedListNetworkEndpointGroupsRequest(properties); }; /** - * Encodes the specified AggregatedListNodeGroupsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNodeGroupsRequest.verify|verify} messages. + * Encodes the specified AggregatedListNetworkEndpointGroupsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListNodeGroupsRequest} message AggregatedListNodeGroupsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListNetworkEndpointGroupsRequest} message AggregatedListNetworkEndpointGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNodeGroupsRequest.encode = function encode(message, writer) { + AggregatedListNetworkEndpointGroupsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -18996,33 +18996,33 @@ }; /** - * Encodes the specified AggregatedListNodeGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNodeGroupsRequest.verify|verify} messages. + * Encodes the specified AggregatedListNetworkEndpointGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListNodeGroupsRequest} message AggregatedListNodeGroupsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListNetworkEndpointGroupsRequest} message AggregatedListNetworkEndpointGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNodeGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListNetworkEndpointGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListNodeGroupsRequest message from the specified reader or buffer. + * Decodes an AggregatedListNetworkEndpointGroupsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @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.AggregatedListNodeGroupsRequest} AggregatedListNodeGroupsRequest + * @returns {google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest} AggregatedListNetworkEndpointGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListNodeGroupsRequest.decode = function decode(reader, length) { + AggregatedListNetworkEndpointGroupsRequest.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.AggregatedListNodeGroupsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -19063,30 +19063,30 @@ }; /** - * Decodes an AggregatedListNodeGroupsRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListNetworkEndpointGroupsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListNodeGroupsRequest} AggregatedListNodeGroupsRequest + * @returns {google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest} AggregatedListNetworkEndpointGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListNodeGroupsRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListNetworkEndpointGroupsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListNodeGroupsRequest message. + * Verifies an AggregatedListNetworkEndpointGroupsRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListNodeGroupsRequest.verify = function verify(message) { + AggregatedListNetworkEndpointGroupsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -19127,17 +19127,17 @@ }; /** - * Creates an AggregatedListNodeGroupsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListNetworkEndpointGroupsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListNodeGroupsRequest} AggregatedListNodeGroupsRequest + * @returns {google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest} AggregatedListNetworkEndpointGroupsRequest */ - AggregatedListNodeGroupsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListNodeGroupsRequest) + AggregatedListNetworkEndpointGroupsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListNodeGroupsRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -19156,15 +19156,15 @@ }; /** - * Creates a plain object from an AggregatedListNodeGroupsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListNetworkEndpointGroupsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @static - * @param {google.cloud.compute.v1.AggregatedListNodeGroupsRequest} message AggregatedListNodeGroupsRequest + * @param {google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest} message AggregatedListNetworkEndpointGroupsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListNodeGroupsRequest.toObject = function toObject(message, options) { + AggregatedListNetworkEndpointGroupsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -19206,58 +19206,58 @@ }; /** - * Converts this AggregatedListNodeGroupsRequest to JSON. + * Converts this AggregatedListNetworkEndpointGroupsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListNodeGroupsRequest.prototype.toJSON = function toJSON() { + AggregatedListNetworkEndpointGroupsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListNodeGroupsRequest + * Gets the default type url for AggregatedListNetworkEndpointGroupsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest + * @memberof google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListNodeGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListNetworkEndpointGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListNodeGroupsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListNetworkEndpointGroupsRequest"; }; - return AggregatedListNodeGroupsRequest; + return AggregatedListNetworkEndpointGroupsRequest; })(); - v1.AggregatedListNodeTemplatesRequest = (function() { + v1.AggregatedListNodeGroupsRequest = (function() { /** - * Properties of an AggregatedListNodeTemplatesRequest. + * Properties of an AggregatedListNodeGroupsRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListNodeTemplatesRequest - * @property {string|null} [filter] AggregatedListNodeTemplatesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListNodeTemplatesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListNodeTemplatesRequest maxResults - * @property {string|null} [orderBy] AggregatedListNodeTemplatesRequest orderBy - * @property {string|null} [pageToken] AggregatedListNodeTemplatesRequest pageToken - * @property {string|null} [project] AggregatedListNodeTemplatesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListNodeTemplatesRequest returnPartialSuccess + * @interface IAggregatedListNodeGroupsRequest + * @property {string|null} [filter] AggregatedListNodeGroupsRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListNodeGroupsRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListNodeGroupsRequest maxResults + * @property {string|null} [orderBy] AggregatedListNodeGroupsRequest orderBy + * @property {string|null} [pageToken] AggregatedListNodeGroupsRequest pageToken + * @property {string|null} [project] AggregatedListNodeGroupsRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListNodeGroupsRequest returnPartialSuccess */ /** - * Constructs a new AggregatedListNodeTemplatesRequest. + * Constructs a new AggregatedListNodeGroupsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListNodeTemplatesRequest. - * @implements IAggregatedListNodeTemplatesRequest + * @classdesc Represents an AggregatedListNodeGroupsRequest. + * @implements IAggregatedListNodeGroupsRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListNodeTemplatesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListNodeGroupsRequest=} [properties] Properties to set */ - function AggregatedListNodeTemplatesRequest(properties) { + function AggregatedListNodeGroupsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19265,152 +19265,152 @@ } /** - * AggregatedListNodeTemplatesRequest filter. + * AggregatedListNodeGroupsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @instance */ - AggregatedListNodeTemplatesRequest.prototype.filter = null; + AggregatedListNodeGroupsRequest.prototype.filter = null; /** - * AggregatedListNodeTemplatesRequest includeAllScopes. + * AggregatedListNodeGroupsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @instance */ - AggregatedListNodeTemplatesRequest.prototype.includeAllScopes = null; + AggregatedListNodeGroupsRequest.prototype.includeAllScopes = null; /** - * AggregatedListNodeTemplatesRequest maxResults. + * AggregatedListNodeGroupsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @instance */ - AggregatedListNodeTemplatesRequest.prototype.maxResults = null; + AggregatedListNodeGroupsRequest.prototype.maxResults = null; /** - * AggregatedListNodeTemplatesRequest orderBy. + * AggregatedListNodeGroupsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @instance */ - AggregatedListNodeTemplatesRequest.prototype.orderBy = null; + AggregatedListNodeGroupsRequest.prototype.orderBy = null; /** - * AggregatedListNodeTemplatesRequest pageToken. + * AggregatedListNodeGroupsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @instance */ - AggregatedListNodeTemplatesRequest.prototype.pageToken = null; + AggregatedListNodeGroupsRequest.prototype.pageToken = null; /** - * AggregatedListNodeTemplatesRequest project. + * AggregatedListNodeGroupsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @instance */ - AggregatedListNodeTemplatesRequest.prototype.project = ""; + AggregatedListNodeGroupsRequest.prototype.project = ""; /** - * AggregatedListNodeTemplatesRequest returnPartialSuccess. + * AggregatedListNodeGroupsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @instance */ - AggregatedListNodeTemplatesRequest.prototype.returnPartialSuccess = null; + AggregatedListNodeGroupsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * AggregatedListNodeTemplatesRequest _filter. + * AggregatedListNodeGroupsRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @instance */ - Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNodeTemplatesRequest _includeAllScopes. + * AggregatedListNodeGroupsRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @instance */ - Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNodeTemplatesRequest _maxResults. + * AggregatedListNodeGroupsRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @instance */ - Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNodeTemplatesRequest _orderBy. + * AggregatedListNodeGroupsRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @instance */ - Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNodeTemplatesRequest _pageToken. + * AggregatedListNodeGroupsRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @instance */ - Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNodeTemplatesRequest _returnPartialSuccess. + * AggregatedListNodeGroupsRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @instance */ - Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListNodeGroupsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListNodeTemplatesRequest instance using the specified properties. + * Creates a new AggregatedListNodeGroupsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListNodeTemplatesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListNodeTemplatesRequest} AggregatedListNodeTemplatesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListNodeGroupsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListNodeGroupsRequest} AggregatedListNodeGroupsRequest instance */ - AggregatedListNodeTemplatesRequest.create = function create(properties) { - return new AggregatedListNodeTemplatesRequest(properties); + AggregatedListNodeGroupsRequest.create = function create(properties) { + return new AggregatedListNodeGroupsRequest(properties); }; /** - * Encodes the specified AggregatedListNodeTemplatesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNodeTemplatesRequest.verify|verify} messages. + * Encodes the specified AggregatedListNodeGroupsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNodeGroupsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListNodeTemplatesRequest} message AggregatedListNodeTemplatesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListNodeGroupsRequest} message AggregatedListNodeGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNodeTemplatesRequest.encode = function encode(message, writer) { + AggregatedListNodeGroupsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -19431,33 +19431,33 @@ }; /** - * Encodes the specified AggregatedListNodeTemplatesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNodeTemplatesRequest.verify|verify} messages. + * Encodes the specified AggregatedListNodeGroupsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNodeGroupsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListNodeTemplatesRequest} message AggregatedListNodeTemplatesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListNodeGroupsRequest} message AggregatedListNodeGroupsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNodeTemplatesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListNodeGroupsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListNodeTemplatesRequest message from the specified reader or buffer. + * Decodes an AggregatedListNodeGroupsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @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.AggregatedListNodeTemplatesRequest} AggregatedListNodeTemplatesRequest + * @returns {google.cloud.compute.v1.AggregatedListNodeGroupsRequest} AggregatedListNodeGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListNodeTemplatesRequest.decode = function decode(reader, length) { + AggregatedListNodeGroupsRequest.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.AggregatedListNodeTemplatesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListNodeGroupsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -19498,30 +19498,30 @@ }; /** - * Decodes an AggregatedListNodeTemplatesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListNodeGroupsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListNodeTemplatesRequest} AggregatedListNodeTemplatesRequest + * @returns {google.cloud.compute.v1.AggregatedListNodeGroupsRequest} AggregatedListNodeGroupsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListNodeTemplatesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListNodeGroupsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListNodeTemplatesRequest message. + * Verifies an AggregatedListNodeGroupsRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListNodeTemplatesRequest.verify = function verify(message) { + AggregatedListNodeGroupsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -19562,17 +19562,17 @@ }; /** - * Creates an AggregatedListNodeTemplatesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListNodeGroupsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListNodeTemplatesRequest} AggregatedListNodeTemplatesRequest + * @returns {google.cloud.compute.v1.AggregatedListNodeGroupsRequest} AggregatedListNodeGroupsRequest */ - AggregatedListNodeTemplatesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListNodeTemplatesRequest) + AggregatedListNodeGroupsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListNodeGroupsRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListNodeTemplatesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListNodeGroupsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -19591,15 +19591,15 @@ }; /** - * Creates a plain object from an AggregatedListNodeTemplatesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListNodeGroupsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @static - * @param {google.cloud.compute.v1.AggregatedListNodeTemplatesRequest} message AggregatedListNodeTemplatesRequest + * @param {google.cloud.compute.v1.AggregatedListNodeGroupsRequest} message AggregatedListNodeGroupsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListNodeTemplatesRequest.toObject = function toObject(message, options) { + AggregatedListNodeGroupsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -19641,58 +19641,58 @@ }; /** - * Converts this AggregatedListNodeTemplatesRequest to JSON. + * Converts this AggregatedListNodeGroupsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListNodeTemplatesRequest.prototype.toJSON = function toJSON() { + AggregatedListNodeGroupsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListNodeTemplatesRequest + * Gets the default type url for AggregatedListNodeGroupsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeGroupsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListNodeTemplatesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListNodeGroupsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListNodeTemplatesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListNodeGroupsRequest"; }; - return AggregatedListNodeTemplatesRequest; + return AggregatedListNodeGroupsRequest; })(); - v1.AggregatedListNodeTypesRequest = (function() { + v1.AggregatedListNodeTemplatesRequest = (function() { /** - * Properties of an AggregatedListNodeTypesRequest. + * Properties of an AggregatedListNodeTemplatesRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListNodeTypesRequest - * @property {string|null} [filter] AggregatedListNodeTypesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListNodeTypesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListNodeTypesRequest maxResults - * @property {string|null} [orderBy] AggregatedListNodeTypesRequest orderBy - * @property {string|null} [pageToken] AggregatedListNodeTypesRequest pageToken - * @property {string|null} [project] AggregatedListNodeTypesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListNodeTypesRequest returnPartialSuccess + * @interface IAggregatedListNodeTemplatesRequest + * @property {string|null} [filter] AggregatedListNodeTemplatesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListNodeTemplatesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListNodeTemplatesRequest maxResults + * @property {string|null} [orderBy] AggregatedListNodeTemplatesRequest orderBy + * @property {string|null} [pageToken] AggregatedListNodeTemplatesRequest pageToken + * @property {string|null} [project] AggregatedListNodeTemplatesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListNodeTemplatesRequest returnPartialSuccess */ /** - * Constructs a new AggregatedListNodeTypesRequest. + * Constructs a new AggregatedListNodeTemplatesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListNodeTypesRequest. - * @implements IAggregatedListNodeTypesRequest + * @classdesc Represents an AggregatedListNodeTemplatesRequest. + * @implements IAggregatedListNodeTemplatesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListNodeTypesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListNodeTemplatesRequest=} [properties] Properties to set */ - function AggregatedListNodeTypesRequest(properties) { + function AggregatedListNodeTemplatesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19700,152 +19700,152 @@ } /** - * AggregatedListNodeTypesRequest filter. + * AggregatedListNodeTemplatesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @instance */ - AggregatedListNodeTypesRequest.prototype.filter = null; + AggregatedListNodeTemplatesRequest.prototype.filter = null; /** - * AggregatedListNodeTypesRequest includeAllScopes. + * AggregatedListNodeTemplatesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @instance */ - AggregatedListNodeTypesRequest.prototype.includeAllScopes = null; + AggregatedListNodeTemplatesRequest.prototype.includeAllScopes = null; /** - * AggregatedListNodeTypesRequest maxResults. + * AggregatedListNodeTemplatesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @instance */ - AggregatedListNodeTypesRequest.prototype.maxResults = null; + AggregatedListNodeTemplatesRequest.prototype.maxResults = null; /** - * AggregatedListNodeTypesRequest orderBy. + * AggregatedListNodeTemplatesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @instance */ - AggregatedListNodeTypesRequest.prototype.orderBy = null; + AggregatedListNodeTemplatesRequest.prototype.orderBy = null; /** - * AggregatedListNodeTypesRequest pageToken. + * AggregatedListNodeTemplatesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @instance */ - AggregatedListNodeTypesRequest.prototype.pageToken = null; + AggregatedListNodeTemplatesRequest.prototype.pageToken = null; /** - * AggregatedListNodeTypesRequest project. + * AggregatedListNodeTemplatesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @instance */ - AggregatedListNodeTypesRequest.prototype.project = ""; + AggregatedListNodeTemplatesRequest.prototype.project = ""; /** - * AggregatedListNodeTypesRequest returnPartialSuccess. + * AggregatedListNodeTemplatesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @instance */ - AggregatedListNodeTypesRequest.prototype.returnPartialSuccess = null; + AggregatedListNodeTemplatesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * AggregatedListNodeTypesRequest _filter. + * AggregatedListNodeTemplatesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @instance */ - Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNodeTypesRequest _includeAllScopes. + * AggregatedListNodeTemplatesRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @instance */ - Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNodeTypesRequest _maxResults. + * AggregatedListNodeTemplatesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @instance */ - Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNodeTypesRequest _orderBy. + * AggregatedListNodeTemplatesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @instance */ - Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNodeTypesRequest _pageToken. + * AggregatedListNodeTemplatesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @instance */ - Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListNodeTypesRequest _returnPartialSuccess. + * AggregatedListNodeTemplatesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @instance */ - Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListNodeTemplatesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListNodeTypesRequest instance using the specified properties. + * Creates a new AggregatedListNodeTemplatesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListNodeTypesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListNodeTypesRequest} AggregatedListNodeTypesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListNodeTemplatesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListNodeTemplatesRequest} AggregatedListNodeTemplatesRequest instance */ - AggregatedListNodeTypesRequest.create = function create(properties) { - return new AggregatedListNodeTypesRequest(properties); + AggregatedListNodeTemplatesRequest.create = function create(properties) { + return new AggregatedListNodeTemplatesRequest(properties); }; /** - * Encodes the specified AggregatedListNodeTypesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNodeTypesRequest.verify|verify} messages. + * Encodes the specified AggregatedListNodeTemplatesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNodeTemplatesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListNodeTypesRequest} message AggregatedListNodeTypesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListNodeTemplatesRequest} message AggregatedListNodeTemplatesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNodeTypesRequest.encode = function encode(message, writer) { + AggregatedListNodeTemplatesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -19866,33 +19866,33 @@ }; /** - * Encodes the specified AggregatedListNodeTypesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNodeTypesRequest.verify|verify} messages. + * Encodes the specified AggregatedListNodeTemplatesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNodeTemplatesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListNodeTypesRequest} message AggregatedListNodeTypesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListNodeTemplatesRequest} message AggregatedListNodeTemplatesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListNodeTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListNodeTemplatesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListNodeTypesRequest message from the specified reader or buffer. + * Decodes an AggregatedListNodeTemplatesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @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.AggregatedListNodeTypesRequest} AggregatedListNodeTypesRequest + * @returns {google.cloud.compute.v1.AggregatedListNodeTemplatesRequest} AggregatedListNodeTemplatesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListNodeTypesRequest.decode = function decode(reader, length) { + AggregatedListNodeTemplatesRequest.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.AggregatedListNodeTypesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListNodeTemplatesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -19933,30 +19933,30 @@ }; /** - * Decodes an AggregatedListNodeTypesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListNodeTemplatesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListNodeTypesRequest} AggregatedListNodeTypesRequest + * @returns {google.cloud.compute.v1.AggregatedListNodeTemplatesRequest} AggregatedListNodeTemplatesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListNodeTypesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListNodeTemplatesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListNodeTypesRequest message. + * Verifies an AggregatedListNodeTemplatesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListNodeTypesRequest.verify = function verify(message) { + AggregatedListNodeTemplatesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -19997,17 +19997,17 @@ }; /** - * Creates an AggregatedListNodeTypesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListNodeTemplatesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListNodeTypesRequest} AggregatedListNodeTypesRequest + * @returns {google.cloud.compute.v1.AggregatedListNodeTemplatesRequest} AggregatedListNodeTemplatesRequest */ - AggregatedListNodeTypesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListNodeTypesRequest) + AggregatedListNodeTemplatesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListNodeTemplatesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListNodeTypesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListNodeTemplatesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -20026,15 +20026,15 @@ }; /** - * Creates a plain object from an AggregatedListNodeTypesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListNodeTemplatesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListNodeTypesRequest} message AggregatedListNodeTypesRequest + * @param {google.cloud.compute.v1.AggregatedListNodeTemplatesRequest} message AggregatedListNodeTemplatesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListNodeTypesRequest.toObject = function toObject(message, options) { + AggregatedListNodeTemplatesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -20076,58 +20076,58 @@ }; /** - * Converts this AggregatedListNodeTypesRequest to JSON. + * Converts this AggregatedListNodeTemplatesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListNodeTypesRequest.prototype.toJSON = function toJSON() { + AggregatedListNodeTemplatesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListNodeTypesRequest + * Gets the default type url for AggregatedListNodeTemplatesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTemplatesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListNodeTypesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListNodeTemplatesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListNodeTypesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListNodeTemplatesRequest"; }; - return AggregatedListNodeTypesRequest; + return AggregatedListNodeTemplatesRequest; })(); - v1.AggregatedListPacketMirroringsRequest = (function() { + v1.AggregatedListNodeTypesRequest = (function() { /** - * Properties of an AggregatedListPacketMirroringsRequest. + * Properties of an AggregatedListNodeTypesRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListPacketMirroringsRequest - * @property {string|null} [filter] AggregatedListPacketMirroringsRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListPacketMirroringsRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListPacketMirroringsRequest maxResults - * @property {string|null} [orderBy] AggregatedListPacketMirroringsRequest orderBy - * @property {string|null} [pageToken] AggregatedListPacketMirroringsRequest pageToken - * @property {string|null} [project] AggregatedListPacketMirroringsRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListPacketMirroringsRequest returnPartialSuccess + * @interface IAggregatedListNodeTypesRequest + * @property {string|null} [filter] AggregatedListNodeTypesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListNodeTypesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListNodeTypesRequest maxResults + * @property {string|null} [orderBy] AggregatedListNodeTypesRequest orderBy + * @property {string|null} [pageToken] AggregatedListNodeTypesRequest pageToken + * @property {string|null} [project] AggregatedListNodeTypesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListNodeTypesRequest returnPartialSuccess */ /** - * Constructs a new AggregatedListPacketMirroringsRequest. + * Constructs a new AggregatedListNodeTypesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListPacketMirroringsRequest. - * @implements IAggregatedListPacketMirroringsRequest + * @classdesc Represents an AggregatedListNodeTypesRequest. + * @implements IAggregatedListNodeTypesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListPacketMirroringsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListNodeTypesRequest=} [properties] Properties to set */ - function AggregatedListPacketMirroringsRequest(properties) { + function AggregatedListNodeTypesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20135,152 +20135,152 @@ } /** - * AggregatedListPacketMirroringsRequest filter. + * AggregatedListNodeTypesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @instance */ - AggregatedListPacketMirroringsRequest.prototype.filter = null; + AggregatedListNodeTypesRequest.prototype.filter = null; /** - * AggregatedListPacketMirroringsRequest includeAllScopes. + * AggregatedListNodeTypesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @instance */ - AggregatedListPacketMirroringsRequest.prototype.includeAllScopes = null; + AggregatedListNodeTypesRequest.prototype.includeAllScopes = null; /** - * AggregatedListPacketMirroringsRequest maxResults. + * AggregatedListNodeTypesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @instance */ - AggregatedListPacketMirroringsRequest.prototype.maxResults = null; + AggregatedListNodeTypesRequest.prototype.maxResults = null; /** - * AggregatedListPacketMirroringsRequest orderBy. + * AggregatedListNodeTypesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @instance */ - AggregatedListPacketMirroringsRequest.prototype.orderBy = null; + AggregatedListNodeTypesRequest.prototype.orderBy = null; /** - * AggregatedListPacketMirroringsRequest pageToken. + * AggregatedListNodeTypesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @instance */ - AggregatedListPacketMirroringsRequest.prototype.pageToken = null; + AggregatedListNodeTypesRequest.prototype.pageToken = null; /** - * AggregatedListPacketMirroringsRequest project. + * AggregatedListNodeTypesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @instance */ - AggregatedListPacketMirroringsRequest.prototype.project = ""; + AggregatedListNodeTypesRequest.prototype.project = ""; /** - * AggregatedListPacketMirroringsRequest returnPartialSuccess. + * AggregatedListNodeTypesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @instance */ - AggregatedListPacketMirroringsRequest.prototype.returnPartialSuccess = null; + AggregatedListNodeTypesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * AggregatedListPacketMirroringsRequest _filter. + * AggregatedListNodeTypesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @instance */ - Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListPacketMirroringsRequest _includeAllScopes. + * AggregatedListNodeTypesRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @instance */ - Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListPacketMirroringsRequest _maxResults. + * AggregatedListNodeTypesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @instance */ - Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListPacketMirroringsRequest _orderBy. + * AggregatedListNodeTypesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @instance */ - Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListPacketMirroringsRequest _pageToken. + * AggregatedListNodeTypesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @instance */ - Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListPacketMirroringsRequest _returnPartialSuccess. + * AggregatedListNodeTypesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @instance */ - Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListNodeTypesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListPacketMirroringsRequest instance using the specified properties. + * Creates a new AggregatedListNodeTypesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListPacketMirroringsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListPacketMirroringsRequest} AggregatedListPacketMirroringsRequest instance + * @param {google.cloud.compute.v1.IAggregatedListNodeTypesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListNodeTypesRequest} AggregatedListNodeTypesRequest instance */ - AggregatedListPacketMirroringsRequest.create = function create(properties) { - return new AggregatedListPacketMirroringsRequest(properties); + AggregatedListNodeTypesRequest.create = function create(properties) { + return new AggregatedListNodeTypesRequest(properties); }; /** - * Encodes the specified AggregatedListPacketMirroringsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListPacketMirroringsRequest.verify|verify} messages. + * Encodes the specified AggregatedListNodeTypesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNodeTypesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListPacketMirroringsRequest} message AggregatedListPacketMirroringsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListNodeTypesRequest} message AggregatedListNodeTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListPacketMirroringsRequest.encode = function encode(message, writer) { + AggregatedListNodeTypesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -20301,33 +20301,33 @@ }; /** - * Encodes the specified AggregatedListPacketMirroringsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListPacketMirroringsRequest.verify|verify} messages. + * Encodes the specified AggregatedListNodeTypesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListNodeTypesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListPacketMirroringsRequest} message AggregatedListPacketMirroringsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListNodeTypesRequest} message AggregatedListNodeTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListPacketMirroringsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListNodeTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListPacketMirroringsRequest message from the specified reader or buffer. + * Decodes an AggregatedListNodeTypesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @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.AggregatedListPacketMirroringsRequest} AggregatedListPacketMirroringsRequest + * @returns {google.cloud.compute.v1.AggregatedListNodeTypesRequest} AggregatedListNodeTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListPacketMirroringsRequest.decode = function decode(reader, length) { + AggregatedListNodeTypesRequest.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.AggregatedListPacketMirroringsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListNodeTypesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -20368,30 +20368,30 @@ }; /** - * Decodes an AggregatedListPacketMirroringsRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListNodeTypesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListPacketMirroringsRequest} AggregatedListPacketMirroringsRequest + * @returns {google.cloud.compute.v1.AggregatedListNodeTypesRequest} AggregatedListNodeTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListPacketMirroringsRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListNodeTypesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListPacketMirroringsRequest message. + * Verifies an AggregatedListNodeTypesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListPacketMirroringsRequest.verify = function verify(message) { + AggregatedListNodeTypesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -20432,17 +20432,17 @@ }; /** - * Creates an AggregatedListPacketMirroringsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListNodeTypesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListPacketMirroringsRequest} AggregatedListPacketMirroringsRequest + * @returns {google.cloud.compute.v1.AggregatedListNodeTypesRequest} AggregatedListNodeTypesRequest */ - AggregatedListPacketMirroringsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListPacketMirroringsRequest) + AggregatedListNodeTypesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListNodeTypesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListPacketMirroringsRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListNodeTypesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -20461,15 +20461,15 @@ }; /** - * Creates a plain object from an AggregatedListPacketMirroringsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListNodeTypesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListPacketMirroringsRequest} message AggregatedListPacketMirroringsRequest + * @param {google.cloud.compute.v1.AggregatedListNodeTypesRequest} message AggregatedListNodeTypesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListPacketMirroringsRequest.toObject = function toObject(message, options) { + AggregatedListNodeTypesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -20511,58 +20511,58 @@ }; /** - * Converts this AggregatedListPacketMirroringsRequest to JSON. + * Converts this AggregatedListNodeTypesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListPacketMirroringsRequest.prototype.toJSON = function toJSON() { + AggregatedListNodeTypesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListPacketMirroringsRequest + * Gets the default type url for AggregatedListNodeTypesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest + * @memberof google.cloud.compute.v1.AggregatedListNodeTypesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListPacketMirroringsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListNodeTypesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListPacketMirroringsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListNodeTypesRequest"; }; - return AggregatedListPacketMirroringsRequest; + return AggregatedListNodeTypesRequest; })(); - v1.AggregatedListPublicDelegatedPrefixesRequest = (function() { + v1.AggregatedListPacketMirroringsRequest = (function() { /** - * Properties of an AggregatedListPublicDelegatedPrefixesRequest. + * Properties of an AggregatedListPacketMirroringsRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListPublicDelegatedPrefixesRequest - * @property {string|null} [filter] AggregatedListPublicDelegatedPrefixesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListPublicDelegatedPrefixesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListPublicDelegatedPrefixesRequest maxResults - * @property {string|null} [orderBy] AggregatedListPublicDelegatedPrefixesRequest orderBy - * @property {string|null} [pageToken] AggregatedListPublicDelegatedPrefixesRequest pageToken - * @property {string|null} [project] AggregatedListPublicDelegatedPrefixesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListPublicDelegatedPrefixesRequest returnPartialSuccess + * @interface IAggregatedListPacketMirroringsRequest + * @property {string|null} [filter] AggregatedListPacketMirroringsRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListPacketMirroringsRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListPacketMirroringsRequest maxResults + * @property {string|null} [orderBy] AggregatedListPacketMirroringsRequest orderBy + * @property {string|null} [pageToken] AggregatedListPacketMirroringsRequest pageToken + * @property {string|null} [project] AggregatedListPacketMirroringsRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListPacketMirroringsRequest returnPartialSuccess */ /** - * Constructs a new AggregatedListPublicDelegatedPrefixesRequest. + * Constructs a new AggregatedListPacketMirroringsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListPublicDelegatedPrefixesRequest. - * @implements IAggregatedListPublicDelegatedPrefixesRequest + * @classdesc Represents an AggregatedListPacketMirroringsRequest. + * @implements IAggregatedListPacketMirroringsRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListPublicDelegatedPrefixesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListPacketMirroringsRequest=} [properties] Properties to set */ - function AggregatedListPublicDelegatedPrefixesRequest(properties) { + function AggregatedListPacketMirroringsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20570,152 +20570,152 @@ } /** - * AggregatedListPublicDelegatedPrefixesRequest filter. + * AggregatedListPacketMirroringsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @instance */ - AggregatedListPublicDelegatedPrefixesRequest.prototype.filter = null; + AggregatedListPacketMirroringsRequest.prototype.filter = null; /** - * AggregatedListPublicDelegatedPrefixesRequest includeAllScopes. + * AggregatedListPacketMirroringsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @instance */ - AggregatedListPublicDelegatedPrefixesRequest.prototype.includeAllScopes = null; + AggregatedListPacketMirroringsRequest.prototype.includeAllScopes = null; /** - * AggregatedListPublicDelegatedPrefixesRequest maxResults. + * AggregatedListPacketMirroringsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @instance */ - AggregatedListPublicDelegatedPrefixesRequest.prototype.maxResults = null; + AggregatedListPacketMirroringsRequest.prototype.maxResults = null; /** - * AggregatedListPublicDelegatedPrefixesRequest orderBy. + * AggregatedListPacketMirroringsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @instance */ - AggregatedListPublicDelegatedPrefixesRequest.prototype.orderBy = null; + AggregatedListPacketMirroringsRequest.prototype.orderBy = null; /** - * AggregatedListPublicDelegatedPrefixesRequest pageToken. + * AggregatedListPacketMirroringsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @instance */ - AggregatedListPublicDelegatedPrefixesRequest.prototype.pageToken = null; + AggregatedListPacketMirroringsRequest.prototype.pageToken = null; /** - * AggregatedListPublicDelegatedPrefixesRequest project. + * AggregatedListPacketMirroringsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @instance */ - AggregatedListPublicDelegatedPrefixesRequest.prototype.project = ""; + AggregatedListPacketMirroringsRequest.prototype.project = ""; /** - * AggregatedListPublicDelegatedPrefixesRequest returnPartialSuccess. + * AggregatedListPacketMirroringsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @instance */ - AggregatedListPublicDelegatedPrefixesRequest.prototype.returnPartialSuccess = null; + AggregatedListPacketMirroringsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * AggregatedListPublicDelegatedPrefixesRequest _filter. + * AggregatedListPacketMirroringsRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @instance */ - Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListPublicDelegatedPrefixesRequest _includeAllScopes. + * AggregatedListPacketMirroringsRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @instance */ - Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListPublicDelegatedPrefixesRequest _maxResults. + * AggregatedListPacketMirroringsRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @instance */ - Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListPublicDelegatedPrefixesRequest _orderBy. + * AggregatedListPacketMirroringsRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @instance */ - Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListPublicDelegatedPrefixesRequest _pageToken. + * AggregatedListPacketMirroringsRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @instance */ - Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListPublicDelegatedPrefixesRequest _returnPartialSuccess. + * AggregatedListPacketMirroringsRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @instance */ - Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListPacketMirroringsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListPublicDelegatedPrefixesRequest instance using the specified properties. + * Creates a new AggregatedListPacketMirroringsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListPublicDelegatedPrefixesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest} AggregatedListPublicDelegatedPrefixesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListPacketMirroringsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListPacketMirroringsRequest} AggregatedListPacketMirroringsRequest instance */ - AggregatedListPublicDelegatedPrefixesRequest.create = function create(properties) { - return new AggregatedListPublicDelegatedPrefixesRequest(properties); + AggregatedListPacketMirroringsRequest.create = function create(properties) { + return new AggregatedListPacketMirroringsRequest(properties); }; /** - * Encodes the specified AggregatedListPublicDelegatedPrefixesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest.verify|verify} messages. + * Encodes the specified AggregatedListPacketMirroringsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListPacketMirroringsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListPublicDelegatedPrefixesRequest} message AggregatedListPublicDelegatedPrefixesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListPacketMirroringsRequest} message AggregatedListPacketMirroringsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListPublicDelegatedPrefixesRequest.encode = function encode(message, writer) { + AggregatedListPacketMirroringsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -20736,33 +20736,33 @@ }; /** - * Encodes the specified AggregatedListPublicDelegatedPrefixesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest.verify|verify} messages. + * Encodes the specified AggregatedListPacketMirroringsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListPacketMirroringsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListPublicDelegatedPrefixesRequest} message AggregatedListPublicDelegatedPrefixesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListPacketMirroringsRequest} message AggregatedListPacketMirroringsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListPublicDelegatedPrefixesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListPacketMirroringsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListPublicDelegatedPrefixesRequest message from the specified reader or buffer. + * Decodes an AggregatedListPacketMirroringsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @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.AggregatedListPublicDelegatedPrefixesRequest} AggregatedListPublicDelegatedPrefixesRequest + * @returns {google.cloud.compute.v1.AggregatedListPacketMirroringsRequest} AggregatedListPacketMirroringsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListPublicDelegatedPrefixesRequest.decode = function decode(reader, length) { + AggregatedListPacketMirroringsRequest.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.AggregatedListPublicDelegatedPrefixesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListPacketMirroringsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -20803,30 +20803,30 @@ }; /** - * Decodes an AggregatedListPublicDelegatedPrefixesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListPacketMirroringsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest} AggregatedListPublicDelegatedPrefixesRequest + * @returns {google.cloud.compute.v1.AggregatedListPacketMirroringsRequest} AggregatedListPacketMirroringsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListPublicDelegatedPrefixesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListPacketMirroringsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListPublicDelegatedPrefixesRequest message. + * Verifies an AggregatedListPacketMirroringsRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListPublicDelegatedPrefixesRequest.verify = function verify(message) { + AggregatedListPacketMirroringsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -20867,17 +20867,17 @@ }; /** - * Creates an AggregatedListPublicDelegatedPrefixesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListPacketMirroringsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest} AggregatedListPublicDelegatedPrefixesRequest + * @returns {google.cloud.compute.v1.AggregatedListPacketMirroringsRequest} AggregatedListPacketMirroringsRequest */ - AggregatedListPublicDelegatedPrefixesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest) + AggregatedListPacketMirroringsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListPacketMirroringsRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListPacketMirroringsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -20896,15 +20896,15 @@ }; /** - * Creates a plain object from an AggregatedListPublicDelegatedPrefixesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListPacketMirroringsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @static - * @param {google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest} message AggregatedListPublicDelegatedPrefixesRequest + * @param {google.cloud.compute.v1.AggregatedListPacketMirroringsRequest} message AggregatedListPacketMirroringsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListPublicDelegatedPrefixesRequest.toObject = function toObject(message, options) { + AggregatedListPacketMirroringsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -20946,58 +20946,58 @@ }; /** - * Converts this AggregatedListPublicDelegatedPrefixesRequest to JSON. + * Converts this AggregatedListPacketMirroringsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListPublicDelegatedPrefixesRequest.prototype.toJSON = function toJSON() { + AggregatedListPacketMirroringsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListPublicDelegatedPrefixesRequest + * Gets the default type url for AggregatedListPacketMirroringsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest + * @memberof google.cloud.compute.v1.AggregatedListPacketMirroringsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListPublicDelegatedPrefixesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListPacketMirroringsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListPacketMirroringsRequest"; }; - return AggregatedListPublicDelegatedPrefixesRequest; + return AggregatedListPacketMirroringsRequest; })(); - v1.AggregatedListRegionCommitmentsRequest = (function() { + v1.AggregatedListPublicDelegatedPrefixesRequest = (function() { /** - * Properties of an AggregatedListRegionCommitmentsRequest. + * Properties of an AggregatedListPublicDelegatedPrefixesRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListRegionCommitmentsRequest - * @property {string|null} [filter] AggregatedListRegionCommitmentsRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListRegionCommitmentsRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListRegionCommitmentsRequest maxResults - * @property {string|null} [orderBy] AggregatedListRegionCommitmentsRequest orderBy - * @property {string|null} [pageToken] AggregatedListRegionCommitmentsRequest pageToken - * @property {string|null} [project] AggregatedListRegionCommitmentsRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListRegionCommitmentsRequest returnPartialSuccess + * @interface IAggregatedListPublicDelegatedPrefixesRequest + * @property {string|null} [filter] AggregatedListPublicDelegatedPrefixesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListPublicDelegatedPrefixesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListPublicDelegatedPrefixesRequest maxResults + * @property {string|null} [orderBy] AggregatedListPublicDelegatedPrefixesRequest orderBy + * @property {string|null} [pageToken] AggregatedListPublicDelegatedPrefixesRequest pageToken + * @property {string|null} [project] AggregatedListPublicDelegatedPrefixesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListPublicDelegatedPrefixesRequest returnPartialSuccess */ /** - * Constructs a new AggregatedListRegionCommitmentsRequest. + * Constructs a new AggregatedListPublicDelegatedPrefixesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListRegionCommitmentsRequest. - * @implements IAggregatedListRegionCommitmentsRequest + * @classdesc Represents an AggregatedListPublicDelegatedPrefixesRequest. + * @implements IAggregatedListPublicDelegatedPrefixesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListRegionCommitmentsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListPublicDelegatedPrefixesRequest=} [properties] Properties to set */ - function AggregatedListRegionCommitmentsRequest(properties) { + function AggregatedListPublicDelegatedPrefixesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -21005,152 +21005,152 @@ } /** - * AggregatedListRegionCommitmentsRequest filter. + * AggregatedListPublicDelegatedPrefixesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @instance */ - AggregatedListRegionCommitmentsRequest.prototype.filter = null; + AggregatedListPublicDelegatedPrefixesRequest.prototype.filter = null; /** - * AggregatedListRegionCommitmentsRequest includeAllScopes. + * AggregatedListPublicDelegatedPrefixesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @instance */ - AggregatedListRegionCommitmentsRequest.prototype.includeAllScopes = null; + AggregatedListPublicDelegatedPrefixesRequest.prototype.includeAllScopes = null; /** - * AggregatedListRegionCommitmentsRequest maxResults. + * AggregatedListPublicDelegatedPrefixesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @instance */ - AggregatedListRegionCommitmentsRequest.prototype.maxResults = null; + AggregatedListPublicDelegatedPrefixesRequest.prototype.maxResults = null; /** - * AggregatedListRegionCommitmentsRequest orderBy. + * AggregatedListPublicDelegatedPrefixesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @instance */ - AggregatedListRegionCommitmentsRequest.prototype.orderBy = null; + AggregatedListPublicDelegatedPrefixesRequest.prototype.orderBy = null; /** - * AggregatedListRegionCommitmentsRequest pageToken. + * AggregatedListPublicDelegatedPrefixesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @instance */ - AggregatedListRegionCommitmentsRequest.prototype.pageToken = null; + AggregatedListPublicDelegatedPrefixesRequest.prototype.pageToken = null; /** - * AggregatedListRegionCommitmentsRequest project. + * AggregatedListPublicDelegatedPrefixesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @instance */ - AggregatedListRegionCommitmentsRequest.prototype.project = ""; + AggregatedListPublicDelegatedPrefixesRequest.prototype.project = ""; /** - * AggregatedListRegionCommitmentsRequest returnPartialSuccess. + * AggregatedListPublicDelegatedPrefixesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @instance */ - AggregatedListRegionCommitmentsRequest.prototype.returnPartialSuccess = null; + AggregatedListPublicDelegatedPrefixesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * AggregatedListRegionCommitmentsRequest _filter. + * AggregatedListPublicDelegatedPrefixesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @instance */ - Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListRegionCommitmentsRequest _includeAllScopes. + * AggregatedListPublicDelegatedPrefixesRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @instance */ - Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListRegionCommitmentsRequest _maxResults. + * AggregatedListPublicDelegatedPrefixesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @instance */ - Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListRegionCommitmentsRequest _orderBy. + * AggregatedListPublicDelegatedPrefixesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @instance */ - Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListRegionCommitmentsRequest _pageToken. + * AggregatedListPublicDelegatedPrefixesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @instance */ - Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListRegionCommitmentsRequest _returnPartialSuccess. + * AggregatedListPublicDelegatedPrefixesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @instance */ - Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListPublicDelegatedPrefixesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListRegionCommitmentsRequest instance using the specified properties. + * Creates a new AggregatedListPublicDelegatedPrefixesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListRegionCommitmentsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest} AggregatedListRegionCommitmentsRequest instance + * @param {google.cloud.compute.v1.IAggregatedListPublicDelegatedPrefixesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest} AggregatedListPublicDelegatedPrefixesRequest instance */ - AggregatedListRegionCommitmentsRequest.create = function create(properties) { - return new AggregatedListRegionCommitmentsRequest(properties); + AggregatedListPublicDelegatedPrefixesRequest.create = function create(properties) { + return new AggregatedListPublicDelegatedPrefixesRequest(properties); }; /** - * Encodes the specified AggregatedListRegionCommitmentsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest.verify|verify} messages. + * Encodes the specified AggregatedListPublicDelegatedPrefixesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListRegionCommitmentsRequest} message AggregatedListRegionCommitmentsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListPublicDelegatedPrefixesRequest} message AggregatedListPublicDelegatedPrefixesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListRegionCommitmentsRequest.encode = function encode(message, writer) { + AggregatedListPublicDelegatedPrefixesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -21171,33 +21171,33 @@ }; /** - * Encodes the specified AggregatedListRegionCommitmentsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest.verify|verify} messages. + * Encodes the specified AggregatedListPublicDelegatedPrefixesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListRegionCommitmentsRequest} message AggregatedListRegionCommitmentsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListPublicDelegatedPrefixesRequest} message AggregatedListPublicDelegatedPrefixesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListRegionCommitmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListPublicDelegatedPrefixesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListRegionCommitmentsRequest message from the specified reader or buffer. + * Decodes an AggregatedListPublicDelegatedPrefixesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @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.AggregatedListRegionCommitmentsRequest} AggregatedListRegionCommitmentsRequest + * @returns {google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest} AggregatedListPublicDelegatedPrefixesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListRegionCommitmentsRequest.decode = function decode(reader, length) { + AggregatedListPublicDelegatedPrefixesRequest.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.AggregatedListRegionCommitmentsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -21238,30 +21238,30 @@ }; /** - * Decodes an AggregatedListRegionCommitmentsRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListPublicDelegatedPrefixesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest} AggregatedListRegionCommitmentsRequest + * @returns {google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest} AggregatedListPublicDelegatedPrefixesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListRegionCommitmentsRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListPublicDelegatedPrefixesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListRegionCommitmentsRequest message. + * Verifies an AggregatedListPublicDelegatedPrefixesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListRegionCommitmentsRequest.verify = function verify(message) { + AggregatedListPublicDelegatedPrefixesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -21302,17 +21302,17 @@ }; /** - * Creates an AggregatedListRegionCommitmentsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListPublicDelegatedPrefixesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest} AggregatedListRegionCommitmentsRequest + * @returns {google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest} AggregatedListPublicDelegatedPrefixesRequest */ - AggregatedListRegionCommitmentsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest) + AggregatedListPublicDelegatedPrefixesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -21331,15 +21331,15 @@ }; /** - * Creates a plain object from an AggregatedListRegionCommitmentsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListPublicDelegatedPrefixesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest} message AggregatedListRegionCommitmentsRequest + * @param {google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest} message AggregatedListPublicDelegatedPrefixesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListRegionCommitmentsRequest.toObject = function toObject(message, options) { + AggregatedListPublicDelegatedPrefixesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -21381,58 +21381,58 @@ }; /** - * Converts this AggregatedListRegionCommitmentsRequest to JSON. + * Converts this AggregatedListPublicDelegatedPrefixesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListRegionCommitmentsRequest.prototype.toJSON = function toJSON() { + AggregatedListPublicDelegatedPrefixesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListRegionCommitmentsRequest + * Gets the default type url for AggregatedListPublicDelegatedPrefixesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListRegionCommitmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListPublicDelegatedPrefixesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListPublicDelegatedPrefixesRequest"; }; - return AggregatedListRegionCommitmentsRequest; + return AggregatedListPublicDelegatedPrefixesRequest; })(); - v1.AggregatedListReservationsRequest = (function() { + v1.AggregatedListRegionCommitmentsRequest = (function() { /** - * Properties of an AggregatedListReservationsRequest. + * Properties of an AggregatedListRegionCommitmentsRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListReservationsRequest - * @property {string|null} [filter] AggregatedListReservationsRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListReservationsRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListReservationsRequest maxResults - * @property {string|null} [orderBy] AggregatedListReservationsRequest orderBy - * @property {string|null} [pageToken] AggregatedListReservationsRequest pageToken - * @property {string|null} [project] AggregatedListReservationsRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListReservationsRequest returnPartialSuccess + * @interface IAggregatedListRegionCommitmentsRequest + * @property {string|null} [filter] AggregatedListRegionCommitmentsRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListRegionCommitmentsRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListRegionCommitmentsRequest maxResults + * @property {string|null} [orderBy] AggregatedListRegionCommitmentsRequest orderBy + * @property {string|null} [pageToken] AggregatedListRegionCommitmentsRequest pageToken + * @property {string|null} [project] AggregatedListRegionCommitmentsRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListRegionCommitmentsRequest returnPartialSuccess */ /** - * Constructs a new AggregatedListReservationsRequest. + * Constructs a new AggregatedListRegionCommitmentsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListReservationsRequest. - * @implements IAggregatedListReservationsRequest + * @classdesc Represents an AggregatedListRegionCommitmentsRequest. + * @implements IAggregatedListRegionCommitmentsRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListReservationsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListRegionCommitmentsRequest=} [properties] Properties to set */ - function AggregatedListReservationsRequest(properties) { + function AggregatedListRegionCommitmentsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -21440,152 +21440,152 @@ } /** - * AggregatedListReservationsRequest filter. + * AggregatedListRegionCommitmentsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @instance */ - AggregatedListReservationsRequest.prototype.filter = null; + AggregatedListRegionCommitmentsRequest.prototype.filter = null; /** - * AggregatedListReservationsRequest includeAllScopes. + * AggregatedListRegionCommitmentsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @instance */ - AggregatedListReservationsRequest.prototype.includeAllScopes = null; + AggregatedListRegionCommitmentsRequest.prototype.includeAllScopes = null; /** - * AggregatedListReservationsRequest maxResults. + * AggregatedListRegionCommitmentsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @instance */ - AggregatedListReservationsRequest.prototype.maxResults = null; + AggregatedListRegionCommitmentsRequest.prototype.maxResults = null; /** - * AggregatedListReservationsRequest orderBy. + * AggregatedListRegionCommitmentsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @instance */ - AggregatedListReservationsRequest.prototype.orderBy = null; + AggregatedListRegionCommitmentsRequest.prototype.orderBy = null; /** - * AggregatedListReservationsRequest pageToken. + * AggregatedListRegionCommitmentsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @instance */ - AggregatedListReservationsRequest.prototype.pageToken = null; + AggregatedListRegionCommitmentsRequest.prototype.pageToken = null; /** - * AggregatedListReservationsRequest project. + * AggregatedListRegionCommitmentsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @instance */ - AggregatedListReservationsRequest.prototype.project = ""; + AggregatedListRegionCommitmentsRequest.prototype.project = ""; /** - * AggregatedListReservationsRequest returnPartialSuccess. + * AggregatedListRegionCommitmentsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @instance */ - AggregatedListReservationsRequest.prototype.returnPartialSuccess = null; + AggregatedListRegionCommitmentsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * AggregatedListReservationsRequest _filter. + * AggregatedListRegionCommitmentsRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @instance */ - Object.defineProperty(AggregatedListReservationsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListReservationsRequest _includeAllScopes. + * AggregatedListRegionCommitmentsRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @instance */ - Object.defineProperty(AggregatedListReservationsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListReservationsRequest _maxResults. + * AggregatedListRegionCommitmentsRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @instance */ - Object.defineProperty(AggregatedListReservationsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListReservationsRequest _orderBy. + * AggregatedListRegionCommitmentsRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @instance */ - Object.defineProperty(AggregatedListReservationsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListReservationsRequest _pageToken. + * AggregatedListRegionCommitmentsRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @instance */ - Object.defineProperty(AggregatedListReservationsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListReservationsRequest _returnPartialSuccess. + * AggregatedListRegionCommitmentsRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @instance */ - Object.defineProperty(AggregatedListReservationsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListRegionCommitmentsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListReservationsRequest instance using the specified properties. + * Creates a new AggregatedListRegionCommitmentsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListReservationsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListReservationsRequest} AggregatedListReservationsRequest instance + * @param {google.cloud.compute.v1.IAggregatedListRegionCommitmentsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest} AggregatedListRegionCommitmentsRequest instance */ - AggregatedListReservationsRequest.create = function create(properties) { - return new AggregatedListReservationsRequest(properties); + AggregatedListRegionCommitmentsRequest.create = function create(properties) { + return new AggregatedListRegionCommitmentsRequest(properties); }; /** - * Encodes the specified AggregatedListReservationsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListReservationsRequest.verify|verify} messages. + * Encodes the specified AggregatedListRegionCommitmentsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListReservationsRequest} message AggregatedListReservationsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListRegionCommitmentsRequest} message AggregatedListRegionCommitmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListReservationsRequest.encode = function encode(message, writer) { + AggregatedListRegionCommitmentsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -21606,33 +21606,33 @@ }; /** - * Encodes the specified AggregatedListReservationsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListReservationsRequest.verify|verify} messages. + * Encodes the specified AggregatedListRegionCommitmentsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListReservationsRequest} message AggregatedListReservationsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListRegionCommitmentsRequest} message AggregatedListRegionCommitmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListReservationsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListRegionCommitmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListReservationsRequest message from the specified reader or buffer. + * Decodes an AggregatedListRegionCommitmentsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @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.AggregatedListReservationsRequest} AggregatedListReservationsRequest + * @returns {google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest} AggregatedListRegionCommitmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListReservationsRequest.decode = function decode(reader, length) { + AggregatedListRegionCommitmentsRequest.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.AggregatedListReservationsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -21673,30 +21673,30 @@ }; /** - * Decodes an AggregatedListReservationsRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListRegionCommitmentsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListReservationsRequest} AggregatedListReservationsRequest + * @returns {google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest} AggregatedListRegionCommitmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListReservationsRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListRegionCommitmentsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListReservationsRequest message. + * Verifies an AggregatedListRegionCommitmentsRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListReservationsRequest.verify = function verify(message) { + AggregatedListRegionCommitmentsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -21737,17 +21737,17 @@ }; /** - * Creates an AggregatedListReservationsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListRegionCommitmentsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListReservationsRequest} AggregatedListReservationsRequest + * @returns {google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest} AggregatedListRegionCommitmentsRequest */ - AggregatedListReservationsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListReservationsRequest) + AggregatedListRegionCommitmentsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListReservationsRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -21766,15 +21766,15 @@ }; /** - * Creates a plain object from an AggregatedListReservationsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListRegionCommitmentsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @static - * @param {google.cloud.compute.v1.AggregatedListReservationsRequest} message AggregatedListReservationsRequest + * @param {google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest} message AggregatedListRegionCommitmentsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListReservationsRequest.toObject = function toObject(message, options) { + AggregatedListRegionCommitmentsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -21816,58 +21816,58 @@ }; /** - * Converts this AggregatedListReservationsRequest to JSON. + * Converts this AggregatedListRegionCommitmentsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListReservationsRequest.prototype.toJSON = function toJSON() { + AggregatedListRegionCommitmentsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListReservationsRequest + * Gets the default type url for AggregatedListRegionCommitmentsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest + * @memberof google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListReservationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListRegionCommitmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListReservationsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListRegionCommitmentsRequest"; }; - return AggregatedListReservationsRequest; + return AggregatedListRegionCommitmentsRequest; })(); - v1.AggregatedListResourcePoliciesRequest = (function() { + v1.AggregatedListReservationsRequest = (function() { /** - * Properties of an AggregatedListResourcePoliciesRequest. + * Properties of an AggregatedListReservationsRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListResourcePoliciesRequest - * @property {string|null} [filter] AggregatedListResourcePoliciesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListResourcePoliciesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListResourcePoliciesRequest maxResults - * @property {string|null} [orderBy] AggregatedListResourcePoliciesRequest orderBy - * @property {string|null} [pageToken] AggregatedListResourcePoliciesRequest pageToken - * @property {string|null} [project] AggregatedListResourcePoliciesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListResourcePoliciesRequest returnPartialSuccess + * @interface IAggregatedListReservationsRequest + * @property {string|null} [filter] AggregatedListReservationsRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListReservationsRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListReservationsRequest maxResults + * @property {string|null} [orderBy] AggregatedListReservationsRequest orderBy + * @property {string|null} [pageToken] AggregatedListReservationsRequest pageToken + * @property {string|null} [project] AggregatedListReservationsRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListReservationsRequest returnPartialSuccess */ /** - * Constructs a new AggregatedListResourcePoliciesRequest. + * Constructs a new AggregatedListReservationsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListResourcePoliciesRequest. - * @implements IAggregatedListResourcePoliciesRequest + * @classdesc Represents an AggregatedListReservationsRequest. + * @implements IAggregatedListReservationsRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListResourcePoliciesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListReservationsRequest=} [properties] Properties to set */ - function AggregatedListResourcePoliciesRequest(properties) { + function AggregatedListReservationsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -21875,152 +21875,152 @@ } /** - * AggregatedListResourcePoliciesRequest filter. + * AggregatedListReservationsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance */ - AggregatedListResourcePoliciesRequest.prototype.filter = null; + AggregatedListReservationsRequest.prototype.filter = null; /** - * AggregatedListResourcePoliciesRequest includeAllScopes. + * AggregatedListReservationsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance */ - AggregatedListResourcePoliciesRequest.prototype.includeAllScopes = null; + AggregatedListReservationsRequest.prototype.includeAllScopes = null; /** - * AggregatedListResourcePoliciesRequest maxResults. + * AggregatedListReservationsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance */ - AggregatedListResourcePoliciesRequest.prototype.maxResults = null; + AggregatedListReservationsRequest.prototype.maxResults = null; /** - * AggregatedListResourcePoliciesRequest orderBy. + * AggregatedListReservationsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance */ - AggregatedListResourcePoliciesRequest.prototype.orderBy = null; + AggregatedListReservationsRequest.prototype.orderBy = null; /** - * AggregatedListResourcePoliciesRequest pageToken. + * AggregatedListReservationsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance */ - AggregatedListResourcePoliciesRequest.prototype.pageToken = null; + AggregatedListReservationsRequest.prototype.pageToken = null; /** - * AggregatedListResourcePoliciesRequest project. + * AggregatedListReservationsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance */ - AggregatedListResourcePoliciesRequest.prototype.project = ""; + AggregatedListReservationsRequest.prototype.project = ""; /** - * AggregatedListResourcePoliciesRequest returnPartialSuccess. + * AggregatedListReservationsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance */ - AggregatedListResourcePoliciesRequest.prototype.returnPartialSuccess = null; + AggregatedListReservationsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * AggregatedListResourcePoliciesRequest _filter. + * AggregatedListReservationsRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance */ - Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListReservationsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListResourcePoliciesRequest _includeAllScopes. + * AggregatedListReservationsRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance */ - Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListReservationsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListResourcePoliciesRequest _maxResults. + * AggregatedListReservationsRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance */ - Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListReservationsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListResourcePoliciesRequest _orderBy. + * AggregatedListReservationsRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance */ - Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListReservationsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListResourcePoliciesRequest _pageToken. + * AggregatedListReservationsRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance */ - Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListReservationsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListResourcePoliciesRequest _returnPartialSuccess. + * AggregatedListReservationsRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance */ - Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListReservationsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListResourcePoliciesRequest instance using the specified properties. + * Creates a new AggregatedListReservationsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListResourcePoliciesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListResourcePoliciesRequest} AggregatedListResourcePoliciesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListReservationsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListReservationsRequest} AggregatedListReservationsRequest instance */ - AggregatedListResourcePoliciesRequest.create = function create(properties) { - return new AggregatedListResourcePoliciesRequest(properties); + AggregatedListReservationsRequest.create = function create(properties) { + return new AggregatedListReservationsRequest(properties); }; /** - * Encodes the specified AggregatedListResourcePoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListResourcePoliciesRequest.verify|verify} messages. + * Encodes the specified AggregatedListReservationsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListReservationsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListResourcePoliciesRequest} message AggregatedListResourcePoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListReservationsRequest} message AggregatedListReservationsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListResourcePoliciesRequest.encode = function encode(message, writer) { + AggregatedListReservationsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -22041,33 +22041,33 @@ }; /** - * Encodes the specified AggregatedListResourcePoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListResourcePoliciesRequest.verify|verify} messages. + * Encodes the specified AggregatedListReservationsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListReservationsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListResourcePoliciesRequest} message AggregatedListResourcePoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListReservationsRequest} message AggregatedListReservationsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListResourcePoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListReservationsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListResourcePoliciesRequest message from the specified reader or buffer. + * Decodes an AggregatedListReservationsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @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.AggregatedListResourcePoliciesRequest} AggregatedListResourcePoliciesRequest + * @returns {google.cloud.compute.v1.AggregatedListReservationsRequest} AggregatedListReservationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListResourcePoliciesRequest.decode = function decode(reader, length) { + AggregatedListReservationsRequest.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.AggregatedListResourcePoliciesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListReservationsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -22108,30 +22108,30 @@ }; /** - * Decodes an AggregatedListResourcePoliciesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListReservationsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListResourcePoliciesRequest} AggregatedListResourcePoliciesRequest + * @returns {google.cloud.compute.v1.AggregatedListReservationsRequest} AggregatedListReservationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListResourcePoliciesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListReservationsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListResourcePoliciesRequest message. + * Verifies an AggregatedListReservationsRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListResourcePoliciesRequest.verify = function verify(message) { + AggregatedListReservationsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -22172,17 +22172,17 @@ }; /** - * Creates an AggregatedListResourcePoliciesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListReservationsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListResourcePoliciesRequest} AggregatedListResourcePoliciesRequest + * @returns {google.cloud.compute.v1.AggregatedListReservationsRequest} AggregatedListReservationsRequest */ - AggregatedListResourcePoliciesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListResourcePoliciesRequest) + AggregatedListReservationsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListReservationsRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListResourcePoliciesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListReservationsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -22201,15 +22201,15 @@ }; /** - * Creates a plain object from an AggregatedListResourcePoliciesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListReservationsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @static - * @param {google.cloud.compute.v1.AggregatedListResourcePoliciesRequest} message AggregatedListResourcePoliciesRequest + * @param {google.cloud.compute.v1.AggregatedListReservationsRequest} message AggregatedListReservationsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListResourcePoliciesRequest.toObject = function toObject(message, options) { + AggregatedListReservationsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -22251,58 +22251,58 @@ }; /** - * Converts this AggregatedListResourcePoliciesRequest to JSON. + * Converts this AggregatedListReservationsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListResourcePoliciesRequest.prototype.toJSON = function toJSON() { + AggregatedListReservationsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListResourcePoliciesRequest + * Gets the default type url for AggregatedListReservationsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListReservationsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListResourcePoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListReservationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListResourcePoliciesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListReservationsRequest"; }; - return AggregatedListResourcePoliciesRequest; + return AggregatedListReservationsRequest; })(); - v1.AggregatedListRoutersRequest = (function() { + v1.AggregatedListResourcePoliciesRequest = (function() { /** - * Properties of an AggregatedListRoutersRequest. + * Properties of an AggregatedListResourcePoliciesRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListRoutersRequest - * @property {string|null} [filter] AggregatedListRoutersRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListRoutersRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListRoutersRequest maxResults - * @property {string|null} [orderBy] AggregatedListRoutersRequest orderBy - * @property {string|null} [pageToken] AggregatedListRoutersRequest pageToken - * @property {string|null} [project] AggregatedListRoutersRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListRoutersRequest returnPartialSuccess + * @interface IAggregatedListResourcePoliciesRequest + * @property {string|null} [filter] AggregatedListResourcePoliciesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListResourcePoliciesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListResourcePoliciesRequest maxResults + * @property {string|null} [orderBy] AggregatedListResourcePoliciesRequest orderBy + * @property {string|null} [pageToken] AggregatedListResourcePoliciesRequest pageToken + * @property {string|null} [project] AggregatedListResourcePoliciesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListResourcePoliciesRequest returnPartialSuccess */ /** - * Constructs a new AggregatedListRoutersRequest. + * Constructs a new AggregatedListResourcePoliciesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListRoutersRequest. - * @implements IAggregatedListRoutersRequest + * @classdesc Represents an AggregatedListResourcePoliciesRequest. + * @implements IAggregatedListResourcePoliciesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListRoutersRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListResourcePoliciesRequest=} [properties] Properties to set */ - function AggregatedListRoutersRequest(properties) { + function AggregatedListResourcePoliciesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -22310,152 +22310,152 @@ } /** - * AggregatedListRoutersRequest filter. + * AggregatedListResourcePoliciesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance */ - AggregatedListRoutersRequest.prototype.filter = null; + AggregatedListResourcePoliciesRequest.prototype.filter = null; /** - * AggregatedListRoutersRequest includeAllScopes. + * AggregatedListResourcePoliciesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance */ - AggregatedListRoutersRequest.prototype.includeAllScopes = null; + AggregatedListResourcePoliciesRequest.prototype.includeAllScopes = null; /** - * AggregatedListRoutersRequest maxResults. + * AggregatedListResourcePoliciesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance */ - AggregatedListRoutersRequest.prototype.maxResults = null; + AggregatedListResourcePoliciesRequest.prototype.maxResults = null; /** - * AggregatedListRoutersRequest orderBy. + * AggregatedListResourcePoliciesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance */ - AggregatedListRoutersRequest.prototype.orderBy = null; + AggregatedListResourcePoliciesRequest.prototype.orderBy = null; /** - * AggregatedListRoutersRequest pageToken. + * AggregatedListResourcePoliciesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance */ - AggregatedListRoutersRequest.prototype.pageToken = null; + AggregatedListResourcePoliciesRequest.prototype.pageToken = null; /** - * AggregatedListRoutersRequest project. + * AggregatedListResourcePoliciesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance */ - AggregatedListRoutersRequest.prototype.project = ""; + AggregatedListResourcePoliciesRequest.prototype.project = ""; /** - * AggregatedListRoutersRequest returnPartialSuccess. + * AggregatedListResourcePoliciesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance */ - AggregatedListRoutersRequest.prototype.returnPartialSuccess = null; + AggregatedListResourcePoliciesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * AggregatedListRoutersRequest _filter. + * AggregatedListResourcePoliciesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance */ - Object.defineProperty(AggregatedListRoutersRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListRoutersRequest _includeAllScopes. + * AggregatedListResourcePoliciesRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance */ - Object.defineProperty(AggregatedListRoutersRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListRoutersRequest _maxResults. + * AggregatedListResourcePoliciesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance */ - Object.defineProperty(AggregatedListRoutersRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListRoutersRequest _orderBy. + * AggregatedListResourcePoliciesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance */ - Object.defineProperty(AggregatedListRoutersRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListRoutersRequest _pageToken. + * AggregatedListResourcePoliciesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance */ - Object.defineProperty(AggregatedListRoutersRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListRoutersRequest _returnPartialSuccess. + * AggregatedListResourcePoliciesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance */ - Object.defineProperty(AggregatedListRoutersRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListResourcePoliciesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListRoutersRequest instance using the specified properties. + * Creates a new AggregatedListResourcePoliciesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListRoutersRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListRoutersRequest} AggregatedListRoutersRequest instance + * @param {google.cloud.compute.v1.IAggregatedListResourcePoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListResourcePoliciesRequest} AggregatedListResourcePoliciesRequest instance */ - AggregatedListRoutersRequest.create = function create(properties) { - return new AggregatedListRoutersRequest(properties); + AggregatedListResourcePoliciesRequest.create = function create(properties) { + return new AggregatedListResourcePoliciesRequest(properties); }; /** - * Encodes the specified AggregatedListRoutersRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRoutersRequest.verify|verify} messages. + * Encodes the specified AggregatedListResourcePoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListResourcePoliciesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListRoutersRequest} message AggregatedListRoutersRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListResourcePoliciesRequest} message AggregatedListResourcePoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListRoutersRequest.encode = function encode(message, writer) { + AggregatedListResourcePoliciesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -22476,33 +22476,33 @@ }; /** - * Encodes the specified AggregatedListRoutersRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRoutersRequest.verify|verify} messages. + * Encodes the specified AggregatedListResourcePoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListResourcePoliciesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListRoutersRequest} message AggregatedListRoutersRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListResourcePoliciesRequest} message AggregatedListResourcePoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListRoutersRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListResourcePoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListRoutersRequest message from the specified reader or buffer. + * Decodes an AggregatedListResourcePoliciesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @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.AggregatedListRoutersRequest} AggregatedListRoutersRequest + * @returns {google.cloud.compute.v1.AggregatedListResourcePoliciesRequest} AggregatedListResourcePoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListRoutersRequest.decode = function decode(reader, length) { + AggregatedListResourcePoliciesRequest.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.AggregatedListRoutersRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListResourcePoliciesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -22543,30 +22543,30 @@ }; /** - * Decodes an AggregatedListRoutersRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListResourcePoliciesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListRoutersRequest} AggregatedListRoutersRequest + * @returns {google.cloud.compute.v1.AggregatedListResourcePoliciesRequest} AggregatedListResourcePoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListRoutersRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListResourcePoliciesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListRoutersRequest message. + * Verifies an AggregatedListResourcePoliciesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListRoutersRequest.verify = function verify(message) { + AggregatedListResourcePoliciesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -22607,17 +22607,17 @@ }; /** - * Creates an AggregatedListRoutersRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListResourcePoliciesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListRoutersRequest} AggregatedListRoutersRequest + * @returns {google.cloud.compute.v1.AggregatedListResourcePoliciesRequest} AggregatedListResourcePoliciesRequest */ - AggregatedListRoutersRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListRoutersRequest) + AggregatedListResourcePoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListResourcePoliciesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListRoutersRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListResourcePoliciesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -22636,15 +22636,15 @@ }; /** - * Creates a plain object from an AggregatedListRoutersRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListResourcePoliciesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListRoutersRequest} message AggregatedListRoutersRequest + * @param {google.cloud.compute.v1.AggregatedListResourcePoliciesRequest} message AggregatedListResourcePoliciesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListRoutersRequest.toObject = function toObject(message, options) { + AggregatedListResourcePoliciesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -22686,58 +22686,58 @@ }; /** - * Converts this AggregatedListRoutersRequest to JSON. + * Converts this AggregatedListResourcePoliciesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListRoutersRequest.prototype.toJSON = function toJSON() { + AggregatedListResourcePoliciesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListRoutersRequest + * Gets the default type url for AggregatedListResourcePoliciesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest + * @memberof google.cloud.compute.v1.AggregatedListResourcePoliciesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListRoutersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListResourcePoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListRoutersRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListResourcePoliciesRequest"; }; - return AggregatedListRoutersRequest; + return AggregatedListResourcePoliciesRequest; })(); - v1.AggregatedListSecurityPoliciesRequest = (function() { + v1.AggregatedListRoutersRequest = (function() { /** - * Properties of an AggregatedListSecurityPoliciesRequest. + * Properties of an AggregatedListRoutersRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListSecurityPoliciesRequest - * @property {string|null} [filter] AggregatedListSecurityPoliciesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListSecurityPoliciesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListSecurityPoliciesRequest maxResults - * @property {string|null} [orderBy] AggregatedListSecurityPoliciesRequest orderBy - * @property {string|null} [pageToken] AggregatedListSecurityPoliciesRequest pageToken - * @property {string|null} [project] AggregatedListSecurityPoliciesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListSecurityPoliciesRequest returnPartialSuccess + * @interface IAggregatedListRoutersRequest + * @property {string|null} [filter] AggregatedListRoutersRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListRoutersRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListRoutersRequest maxResults + * @property {string|null} [orderBy] AggregatedListRoutersRequest orderBy + * @property {string|null} [pageToken] AggregatedListRoutersRequest pageToken + * @property {string|null} [project] AggregatedListRoutersRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListRoutersRequest returnPartialSuccess */ /** - * Constructs a new AggregatedListSecurityPoliciesRequest. + * Constructs a new AggregatedListRoutersRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListSecurityPoliciesRequest. - * @implements IAggregatedListSecurityPoliciesRequest + * @classdesc Represents an AggregatedListRoutersRequest. + * @implements IAggregatedListRoutersRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListSecurityPoliciesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListRoutersRequest=} [properties] Properties to set */ - function AggregatedListSecurityPoliciesRequest(properties) { + function AggregatedListRoutersRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -22745,152 +22745,152 @@ } /** - * AggregatedListSecurityPoliciesRequest filter. + * AggregatedListRoutersRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance */ - AggregatedListSecurityPoliciesRequest.prototype.filter = null; + AggregatedListRoutersRequest.prototype.filter = null; /** - * AggregatedListSecurityPoliciesRequest includeAllScopes. + * AggregatedListRoutersRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance */ - AggregatedListSecurityPoliciesRequest.prototype.includeAllScopes = null; + AggregatedListRoutersRequest.prototype.includeAllScopes = null; /** - * AggregatedListSecurityPoliciesRequest maxResults. + * AggregatedListRoutersRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance */ - AggregatedListSecurityPoliciesRequest.prototype.maxResults = null; + AggregatedListRoutersRequest.prototype.maxResults = null; /** - * AggregatedListSecurityPoliciesRequest orderBy. + * AggregatedListRoutersRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance */ - AggregatedListSecurityPoliciesRequest.prototype.orderBy = null; + AggregatedListRoutersRequest.prototype.orderBy = null; /** - * AggregatedListSecurityPoliciesRequest pageToken. + * AggregatedListRoutersRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance */ - AggregatedListSecurityPoliciesRequest.prototype.pageToken = null; + AggregatedListRoutersRequest.prototype.pageToken = null; /** - * AggregatedListSecurityPoliciesRequest project. + * AggregatedListRoutersRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance */ - AggregatedListSecurityPoliciesRequest.prototype.project = ""; + AggregatedListRoutersRequest.prototype.project = ""; /** - * AggregatedListSecurityPoliciesRequest returnPartialSuccess. + * AggregatedListRoutersRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance */ - AggregatedListSecurityPoliciesRequest.prototype.returnPartialSuccess = null; + AggregatedListRoutersRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * AggregatedListSecurityPoliciesRequest _filter. + * AggregatedListRoutersRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance */ - Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListRoutersRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSecurityPoliciesRequest _includeAllScopes. + * AggregatedListRoutersRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance */ - Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListRoutersRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSecurityPoliciesRequest _maxResults. + * AggregatedListRoutersRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance */ - Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListRoutersRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSecurityPoliciesRequest _orderBy. + * AggregatedListRoutersRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance */ - Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListRoutersRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSecurityPoliciesRequest _pageToken. + * AggregatedListRoutersRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance */ - Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListRoutersRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSecurityPoliciesRequest _returnPartialSuccess. + * AggregatedListRoutersRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance */ - Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListRoutersRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListSecurityPoliciesRequest instance using the specified properties. + * Creates a new AggregatedListRoutersRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSecurityPoliciesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest} AggregatedListSecurityPoliciesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListRoutersRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListRoutersRequest} AggregatedListRoutersRequest instance */ - AggregatedListSecurityPoliciesRequest.create = function create(properties) { - return new AggregatedListSecurityPoliciesRequest(properties); + AggregatedListRoutersRequest.create = function create(properties) { + return new AggregatedListRoutersRequest(properties); }; /** - * Encodes the specified AggregatedListSecurityPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest.verify|verify} messages. + * Encodes the specified AggregatedListRoutersRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRoutersRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSecurityPoliciesRequest} message AggregatedListSecurityPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListRoutersRequest} message AggregatedListRoutersRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListSecurityPoliciesRequest.encode = function encode(message, writer) { + AggregatedListRoutersRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -22911,33 +22911,33 @@ }; /** - * Encodes the specified AggregatedListSecurityPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest.verify|verify} messages. + * Encodes the specified AggregatedListRoutersRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListRoutersRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSecurityPoliciesRequest} message AggregatedListSecurityPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListRoutersRequest} message AggregatedListRoutersRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListSecurityPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListRoutersRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListSecurityPoliciesRequest message from the specified reader or buffer. + * Decodes an AggregatedListRoutersRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @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.AggregatedListSecurityPoliciesRequest} AggregatedListSecurityPoliciesRequest + * @returns {google.cloud.compute.v1.AggregatedListRoutersRequest} AggregatedListRoutersRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListSecurityPoliciesRequest.decode = function decode(reader, length) { + AggregatedListRoutersRequest.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.AggregatedListSecurityPoliciesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListRoutersRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -22978,30 +22978,30 @@ }; /** - * Decodes an AggregatedListSecurityPoliciesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListRoutersRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest} AggregatedListSecurityPoliciesRequest + * @returns {google.cloud.compute.v1.AggregatedListRoutersRequest} AggregatedListRoutersRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListSecurityPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListRoutersRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListSecurityPoliciesRequest message. + * Verifies an AggregatedListRoutersRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListSecurityPoliciesRequest.verify = function verify(message) { + AggregatedListRoutersRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -23042,17 +23042,17 @@ }; /** - * Creates an AggregatedListSecurityPoliciesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListRoutersRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest} AggregatedListSecurityPoliciesRequest + * @returns {google.cloud.compute.v1.AggregatedListRoutersRequest} AggregatedListRoutersRequest */ - AggregatedListSecurityPoliciesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest) + AggregatedListRoutersRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListRoutersRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListRoutersRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -23071,15 +23071,15 @@ }; /** - * Creates a plain object from an AggregatedListSecurityPoliciesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListRoutersRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @static - * @param {google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest} message AggregatedListSecurityPoliciesRequest + * @param {google.cloud.compute.v1.AggregatedListRoutersRequest} message AggregatedListRoutersRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListSecurityPoliciesRequest.toObject = function toObject(message, options) { + AggregatedListRoutersRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -23121,58 +23121,58 @@ }; /** - * Converts this AggregatedListSecurityPoliciesRequest to JSON. + * Converts this AggregatedListRoutersRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @instance * @returns {Object.} JSON object */ - AggregatedListSecurityPoliciesRequest.prototype.toJSON = function toJSON() { + AggregatedListRoutersRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListSecurityPoliciesRequest + * Gets the default type url for AggregatedListRoutersRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListRoutersRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListSecurityPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListRoutersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListRoutersRequest"; }; - return AggregatedListSecurityPoliciesRequest; + return AggregatedListRoutersRequest; })(); - v1.AggregatedListServiceAttachmentsRequest = (function() { + v1.AggregatedListSecurityPoliciesRequest = (function() { /** - * Properties of an AggregatedListServiceAttachmentsRequest. + * Properties of an AggregatedListSecurityPoliciesRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListServiceAttachmentsRequest - * @property {string|null} [filter] AggregatedListServiceAttachmentsRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListServiceAttachmentsRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListServiceAttachmentsRequest maxResults - * @property {string|null} [orderBy] AggregatedListServiceAttachmentsRequest orderBy - * @property {string|null} [pageToken] AggregatedListServiceAttachmentsRequest pageToken - * @property {string|null} [project] AggregatedListServiceAttachmentsRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListServiceAttachmentsRequest returnPartialSuccess + * @interface IAggregatedListSecurityPoliciesRequest + * @property {string|null} [filter] AggregatedListSecurityPoliciesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListSecurityPoliciesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListSecurityPoliciesRequest maxResults + * @property {string|null} [orderBy] AggregatedListSecurityPoliciesRequest orderBy + * @property {string|null} [pageToken] AggregatedListSecurityPoliciesRequest pageToken + * @property {string|null} [project] AggregatedListSecurityPoliciesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListSecurityPoliciesRequest returnPartialSuccess */ /** - * Constructs a new AggregatedListServiceAttachmentsRequest. + * Constructs a new AggregatedListSecurityPoliciesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListServiceAttachmentsRequest. - * @implements IAggregatedListServiceAttachmentsRequest + * @classdesc Represents an AggregatedListSecurityPoliciesRequest. + * @implements IAggregatedListSecurityPoliciesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListServiceAttachmentsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListSecurityPoliciesRequest=} [properties] Properties to set */ - function AggregatedListServiceAttachmentsRequest(properties) { + function AggregatedListSecurityPoliciesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -23180,152 +23180,152 @@ } /** - * AggregatedListServiceAttachmentsRequest filter. + * AggregatedListSecurityPoliciesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance */ - AggregatedListServiceAttachmentsRequest.prototype.filter = null; + AggregatedListSecurityPoliciesRequest.prototype.filter = null; /** - * AggregatedListServiceAttachmentsRequest includeAllScopes. + * AggregatedListSecurityPoliciesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance */ - AggregatedListServiceAttachmentsRequest.prototype.includeAllScopes = null; + AggregatedListSecurityPoliciesRequest.prototype.includeAllScopes = null; /** - * AggregatedListServiceAttachmentsRequest maxResults. + * AggregatedListSecurityPoliciesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance */ - AggregatedListServiceAttachmentsRequest.prototype.maxResults = null; + AggregatedListSecurityPoliciesRequest.prototype.maxResults = null; /** - * AggregatedListServiceAttachmentsRequest orderBy. + * AggregatedListSecurityPoliciesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance */ - AggregatedListServiceAttachmentsRequest.prototype.orderBy = null; + AggregatedListSecurityPoliciesRequest.prototype.orderBy = null; /** - * AggregatedListServiceAttachmentsRequest pageToken. + * AggregatedListSecurityPoliciesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance */ - AggregatedListServiceAttachmentsRequest.prototype.pageToken = null; + AggregatedListSecurityPoliciesRequest.prototype.pageToken = null; /** - * AggregatedListServiceAttachmentsRequest project. + * AggregatedListSecurityPoliciesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance */ - AggregatedListServiceAttachmentsRequest.prototype.project = ""; + AggregatedListSecurityPoliciesRequest.prototype.project = ""; /** - * AggregatedListServiceAttachmentsRequest returnPartialSuccess. + * AggregatedListSecurityPoliciesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance */ - AggregatedListServiceAttachmentsRequest.prototype.returnPartialSuccess = null; + AggregatedListSecurityPoliciesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * AggregatedListServiceAttachmentsRequest _filter. + * AggregatedListSecurityPoliciesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance */ - Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListServiceAttachmentsRequest _includeAllScopes. + * AggregatedListSecurityPoliciesRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance */ - Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListServiceAttachmentsRequest _maxResults. + * AggregatedListSecurityPoliciesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance */ - Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListServiceAttachmentsRequest _orderBy. + * AggregatedListSecurityPoliciesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance */ - Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListServiceAttachmentsRequest _pageToken. + * AggregatedListSecurityPoliciesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance */ - Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListServiceAttachmentsRequest _returnPartialSuccess. + * AggregatedListSecurityPoliciesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance */ - Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListSecurityPoliciesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListServiceAttachmentsRequest instance using the specified properties. + * Creates a new AggregatedListSecurityPoliciesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListServiceAttachmentsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest} AggregatedListServiceAttachmentsRequest instance + * @param {google.cloud.compute.v1.IAggregatedListSecurityPoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest} AggregatedListSecurityPoliciesRequest instance */ - AggregatedListServiceAttachmentsRequest.create = function create(properties) { - return new AggregatedListServiceAttachmentsRequest(properties); + AggregatedListSecurityPoliciesRequest.create = function create(properties) { + return new AggregatedListSecurityPoliciesRequest(properties); }; /** - * Encodes the specified AggregatedListServiceAttachmentsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest.verify|verify} messages. + * Encodes the specified AggregatedListSecurityPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListServiceAttachmentsRequest} message AggregatedListServiceAttachmentsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListSecurityPoliciesRequest} message AggregatedListSecurityPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListServiceAttachmentsRequest.encode = function encode(message, writer) { + AggregatedListSecurityPoliciesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -23346,33 +23346,33 @@ }; /** - * Encodes the specified AggregatedListServiceAttachmentsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest.verify|verify} messages. + * Encodes the specified AggregatedListSecurityPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListServiceAttachmentsRequest} message AggregatedListServiceAttachmentsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListSecurityPoliciesRequest} message AggregatedListSecurityPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListServiceAttachmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListSecurityPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListServiceAttachmentsRequest message from the specified reader or buffer. + * Decodes an AggregatedListSecurityPoliciesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @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.AggregatedListServiceAttachmentsRequest} AggregatedListServiceAttachmentsRequest + * @returns {google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest} AggregatedListSecurityPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListServiceAttachmentsRequest.decode = function decode(reader, length) { + AggregatedListSecurityPoliciesRequest.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.AggregatedListServiceAttachmentsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -23413,30 +23413,30 @@ }; /** - * Decodes an AggregatedListServiceAttachmentsRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListSecurityPoliciesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest} AggregatedListServiceAttachmentsRequest + * @returns {google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest} AggregatedListSecurityPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListServiceAttachmentsRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListSecurityPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListServiceAttachmentsRequest message. + * Verifies an AggregatedListSecurityPoliciesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListServiceAttachmentsRequest.verify = function verify(message) { + AggregatedListSecurityPoliciesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -23477,17 +23477,17 @@ }; /** - * Creates an AggregatedListServiceAttachmentsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListSecurityPoliciesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest} AggregatedListServiceAttachmentsRequest + * @returns {google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest} AggregatedListSecurityPoliciesRequest */ - AggregatedListServiceAttachmentsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest) + AggregatedListSecurityPoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -23506,15 +23506,15 @@ }; /** - * Creates a plain object from an AggregatedListServiceAttachmentsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListSecurityPoliciesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest} message AggregatedListServiceAttachmentsRequest + * @param {google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest} message AggregatedListSecurityPoliciesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListServiceAttachmentsRequest.toObject = function toObject(message, options) { + AggregatedListSecurityPoliciesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -23556,58 +23556,58 @@ }; /** - * Converts this AggregatedListServiceAttachmentsRequest to JSON. + * Converts this AggregatedListSecurityPoliciesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListServiceAttachmentsRequest.prototype.toJSON = function toJSON() { + AggregatedListSecurityPoliciesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListServiceAttachmentsRequest + * Gets the default type url for AggregatedListSecurityPoliciesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest + * @memberof google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListServiceAttachmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListSecurityPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListSecurityPoliciesRequest"; }; - return AggregatedListServiceAttachmentsRequest; + return AggregatedListSecurityPoliciesRequest; })(); - v1.AggregatedListSslCertificatesRequest = (function() { + v1.AggregatedListServiceAttachmentsRequest = (function() { /** - * Properties of an AggregatedListSslCertificatesRequest. + * Properties of an AggregatedListServiceAttachmentsRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListSslCertificatesRequest - * @property {string|null} [filter] AggregatedListSslCertificatesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListSslCertificatesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListSslCertificatesRequest maxResults - * @property {string|null} [orderBy] AggregatedListSslCertificatesRequest orderBy - * @property {string|null} [pageToken] AggregatedListSslCertificatesRequest pageToken - * @property {string|null} [project] AggregatedListSslCertificatesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListSslCertificatesRequest returnPartialSuccess + * @interface IAggregatedListServiceAttachmentsRequest + * @property {string|null} [filter] AggregatedListServiceAttachmentsRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListServiceAttachmentsRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListServiceAttachmentsRequest maxResults + * @property {string|null} [orderBy] AggregatedListServiceAttachmentsRequest orderBy + * @property {string|null} [pageToken] AggregatedListServiceAttachmentsRequest pageToken + * @property {string|null} [project] AggregatedListServiceAttachmentsRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListServiceAttachmentsRequest returnPartialSuccess */ /** - * Constructs a new AggregatedListSslCertificatesRequest. + * Constructs a new AggregatedListServiceAttachmentsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListSslCertificatesRequest. - * @implements IAggregatedListSslCertificatesRequest + * @classdesc Represents an AggregatedListServiceAttachmentsRequest. + * @implements IAggregatedListServiceAttachmentsRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListSslCertificatesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListServiceAttachmentsRequest=} [properties] Properties to set */ - function AggregatedListSslCertificatesRequest(properties) { + function AggregatedListServiceAttachmentsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -23615,152 +23615,152 @@ } /** - * AggregatedListSslCertificatesRequest filter. + * AggregatedListServiceAttachmentsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance */ - AggregatedListSslCertificatesRequest.prototype.filter = null; + AggregatedListServiceAttachmentsRequest.prototype.filter = null; /** - * AggregatedListSslCertificatesRequest includeAllScopes. + * AggregatedListServiceAttachmentsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance */ - AggregatedListSslCertificatesRequest.prototype.includeAllScopes = null; + AggregatedListServiceAttachmentsRequest.prototype.includeAllScopes = null; /** - * AggregatedListSslCertificatesRequest maxResults. + * AggregatedListServiceAttachmentsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance */ - AggregatedListSslCertificatesRequest.prototype.maxResults = null; + AggregatedListServiceAttachmentsRequest.prototype.maxResults = null; /** - * AggregatedListSslCertificatesRequest orderBy. + * AggregatedListServiceAttachmentsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance */ - AggregatedListSslCertificatesRequest.prototype.orderBy = null; + AggregatedListServiceAttachmentsRequest.prototype.orderBy = null; /** - * AggregatedListSslCertificatesRequest pageToken. + * AggregatedListServiceAttachmentsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance */ - AggregatedListSslCertificatesRequest.prototype.pageToken = null; + AggregatedListServiceAttachmentsRequest.prototype.pageToken = null; /** - * AggregatedListSslCertificatesRequest project. + * AggregatedListServiceAttachmentsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance */ - AggregatedListSslCertificatesRequest.prototype.project = ""; + AggregatedListServiceAttachmentsRequest.prototype.project = ""; /** - * AggregatedListSslCertificatesRequest returnPartialSuccess. + * AggregatedListServiceAttachmentsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance */ - AggregatedListSslCertificatesRequest.prototype.returnPartialSuccess = null; + AggregatedListServiceAttachmentsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * AggregatedListSslCertificatesRequest _filter. + * AggregatedListServiceAttachmentsRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance */ - Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSslCertificatesRequest _includeAllScopes. + * AggregatedListServiceAttachmentsRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance */ - Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSslCertificatesRequest _maxResults. + * AggregatedListServiceAttachmentsRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance */ - Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSslCertificatesRequest _orderBy. + * AggregatedListServiceAttachmentsRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance */ - Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSslCertificatesRequest _pageToken. + * AggregatedListServiceAttachmentsRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance */ - Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSslCertificatesRequest _returnPartialSuccess. + * AggregatedListServiceAttachmentsRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance */ - Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListServiceAttachmentsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListSslCertificatesRequest instance using the specified properties. + * Creates a new AggregatedListServiceAttachmentsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSslCertificatesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListSslCertificatesRequest} AggregatedListSslCertificatesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListServiceAttachmentsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest} AggregatedListServiceAttachmentsRequest instance */ - AggregatedListSslCertificatesRequest.create = function create(properties) { - return new AggregatedListSslCertificatesRequest(properties); + AggregatedListServiceAttachmentsRequest.create = function create(properties) { + return new AggregatedListServiceAttachmentsRequest(properties); }; /** - * Encodes the specified AggregatedListSslCertificatesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSslCertificatesRequest.verify|verify} messages. + * Encodes the specified AggregatedListServiceAttachmentsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSslCertificatesRequest} message AggregatedListSslCertificatesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListServiceAttachmentsRequest} message AggregatedListServiceAttachmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListSslCertificatesRequest.encode = function encode(message, writer) { + AggregatedListServiceAttachmentsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -23781,33 +23781,33 @@ }; /** - * Encodes the specified AggregatedListSslCertificatesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSslCertificatesRequest.verify|verify} messages. + * Encodes the specified AggregatedListServiceAttachmentsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSslCertificatesRequest} message AggregatedListSslCertificatesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListServiceAttachmentsRequest} message AggregatedListServiceAttachmentsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListSslCertificatesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListServiceAttachmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListSslCertificatesRequest message from the specified reader or buffer. + * Decodes an AggregatedListServiceAttachmentsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @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.AggregatedListSslCertificatesRequest} AggregatedListSslCertificatesRequest + * @returns {google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest} AggregatedListServiceAttachmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListSslCertificatesRequest.decode = function decode(reader, length) { + AggregatedListServiceAttachmentsRequest.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.AggregatedListSslCertificatesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -23848,30 +23848,30 @@ }; /** - * Decodes an AggregatedListSslCertificatesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListServiceAttachmentsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListSslCertificatesRequest} AggregatedListSslCertificatesRequest + * @returns {google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest} AggregatedListServiceAttachmentsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListSslCertificatesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListServiceAttachmentsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListSslCertificatesRequest message. + * Verifies an AggregatedListServiceAttachmentsRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListSslCertificatesRequest.verify = function verify(message) { + AggregatedListServiceAttachmentsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -23912,17 +23912,17 @@ }; /** - * Creates an AggregatedListSslCertificatesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListServiceAttachmentsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListSslCertificatesRequest} AggregatedListSslCertificatesRequest + * @returns {google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest} AggregatedListServiceAttachmentsRequest */ - AggregatedListSslCertificatesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListSslCertificatesRequest) + AggregatedListServiceAttachmentsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListSslCertificatesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -23941,15 +23941,15 @@ }; /** - * Creates a plain object from an AggregatedListSslCertificatesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListServiceAttachmentsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @static - * @param {google.cloud.compute.v1.AggregatedListSslCertificatesRequest} message AggregatedListSslCertificatesRequest + * @param {google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest} message AggregatedListServiceAttachmentsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListSslCertificatesRequest.toObject = function toObject(message, options) { + AggregatedListServiceAttachmentsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -23991,58 +23991,58 @@ }; /** - * Converts this AggregatedListSslCertificatesRequest to JSON. + * Converts this AggregatedListServiceAttachmentsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListSslCertificatesRequest.prototype.toJSON = function toJSON() { + AggregatedListServiceAttachmentsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListSslCertificatesRequest + * Gets the default type url for AggregatedListServiceAttachmentsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest + * @memberof google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListSslCertificatesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListServiceAttachmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListSslCertificatesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListServiceAttachmentsRequest"; }; - return AggregatedListSslCertificatesRequest; + return AggregatedListServiceAttachmentsRequest; })(); - v1.AggregatedListSslPoliciesRequest = (function() { + v1.AggregatedListSslCertificatesRequest = (function() { /** - * Properties of an AggregatedListSslPoliciesRequest. + * Properties of an AggregatedListSslCertificatesRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListSslPoliciesRequest - * @property {string|null} [filter] AggregatedListSslPoliciesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListSslPoliciesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListSslPoliciesRequest maxResults - * @property {string|null} [orderBy] AggregatedListSslPoliciesRequest orderBy - * @property {string|null} [pageToken] AggregatedListSslPoliciesRequest pageToken - * @property {string|null} [project] AggregatedListSslPoliciesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListSslPoliciesRequest returnPartialSuccess + * @interface IAggregatedListSslCertificatesRequest + * @property {string|null} [filter] AggregatedListSslCertificatesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListSslCertificatesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListSslCertificatesRequest maxResults + * @property {string|null} [orderBy] AggregatedListSslCertificatesRequest orderBy + * @property {string|null} [pageToken] AggregatedListSslCertificatesRequest pageToken + * @property {string|null} [project] AggregatedListSslCertificatesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListSslCertificatesRequest returnPartialSuccess */ /** - * Constructs a new AggregatedListSslPoliciesRequest. + * Constructs a new AggregatedListSslCertificatesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListSslPoliciesRequest. - * @implements IAggregatedListSslPoliciesRequest + * @classdesc Represents an AggregatedListSslCertificatesRequest. + * @implements IAggregatedListSslCertificatesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListSslPoliciesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListSslCertificatesRequest=} [properties] Properties to set */ - function AggregatedListSslPoliciesRequest(properties) { + function AggregatedListSslCertificatesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -24050,152 +24050,152 @@ } /** - * AggregatedListSslPoliciesRequest filter. + * AggregatedListSslCertificatesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance */ - AggregatedListSslPoliciesRequest.prototype.filter = null; + AggregatedListSslCertificatesRequest.prototype.filter = null; /** - * AggregatedListSslPoliciesRequest includeAllScopes. + * AggregatedListSslCertificatesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance */ - AggregatedListSslPoliciesRequest.prototype.includeAllScopes = null; + AggregatedListSslCertificatesRequest.prototype.includeAllScopes = null; /** - * AggregatedListSslPoliciesRequest maxResults. + * AggregatedListSslCertificatesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance */ - AggregatedListSslPoliciesRequest.prototype.maxResults = null; + AggregatedListSslCertificatesRequest.prototype.maxResults = null; /** - * AggregatedListSslPoliciesRequest orderBy. + * AggregatedListSslCertificatesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance */ - AggregatedListSslPoliciesRequest.prototype.orderBy = null; + AggregatedListSslCertificatesRequest.prototype.orderBy = null; /** - * AggregatedListSslPoliciesRequest pageToken. + * AggregatedListSslCertificatesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance */ - AggregatedListSslPoliciesRequest.prototype.pageToken = null; + AggregatedListSslCertificatesRequest.prototype.pageToken = null; /** - * AggregatedListSslPoliciesRequest project. + * AggregatedListSslCertificatesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance */ - AggregatedListSslPoliciesRequest.prototype.project = ""; + AggregatedListSslCertificatesRequest.prototype.project = ""; /** - * AggregatedListSslPoliciesRequest returnPartialSuccess. + * AggregatedListSslCertificatesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance */ - AggregatedListSslPoliciesRequest.prototype.returnPartialSuccess = null; + AggregatedListSslCertificatesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * AggregatedListSslPoliciesRequest _filter. + * AggregatedListSslCertificatesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance */ - Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSslPoliciesRequest _includeAllScopes. + * AggregatedListSslCertificatesRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance */ - Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSslPoliciesRequest _maxResults. + * AggregatedListSslCertificatesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance */ - Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSslPoliciesRequest _orderBy. + * AggregatedListSslCertificatesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance */ - Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSslPoliciesRequest _pageToken. + * AggregatedListSslCertificatesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance */ - Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSslPoliciesRequest _returnPartialSuccess. + * AggregatedListSslCertificatesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance */ - Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListSslCertificatesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListSslPoliciesRequest instance using the specified properties. + * Creates a new AggregatedListSslCertificatesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSslPoliciesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListSslPoliciesRequest} AggregatedListSslPoliciesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListSslCertificatesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListSslCertificatesRequest} AggregatedListSslCertificatesRequest instance */ - AggregatedListSslPoliciesRequest.create = function create(properties) { - return new AggregatedListSslPoliciesRequest(properties); + AggregatedListSslCertificatesRequest.create = function create(properties) { + return new AggregatedListSslCertificatesRequest(properties); }; /** - * Encodes the specified AggregatedListSslPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSslPoliciesRequest.verify|verify} messages. + * Encodes the specified AggregatedListSslCertificatesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSslCertificatesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSslPoliciesRequest} message AggregatedListSslPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListSslCertificatesRequest} message AggregatedListSslCertificatesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListSslPoliciesRequest.encode = function encode(message, writer) { + AggregatedListSslCertificatesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -24216,33 +24216,33 @@ }; /** - * Encodes the specified AggregatedListSslPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSslPoliciesRequest.verify|verify} messages. + * Encodes the specified AggregatedListSslCertificatesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSslCertificatesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSslPoliciesRequest} message AggregatedListSslPoliciesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListSslCertificatesRequest} message AggregatedListSslCertificatesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListSslPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListSslCertificatesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListSslPoliciesRequest message from the specified reader or buffer. + * Decodes an AggregatedListSslCertificatesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @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.AggregatedListSslPoliciesRequest} AggregatedListSslPoliciesRequest + * @returns {google.cloud.compute.v1.AggregatedListSslCertificatesRequest} AggregatedListSslCertificatesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListSslPoliciesRequest.decode = function decode(reader, length) { + AggregatedListSslCertificatesRequest.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.AggregatedListSslPoliciesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListSslCertificatesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -24283,30 +24283,30 @@ }; /** - * Decodes an AggregatedListSslPoliciesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListSslCertificatesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListSslPoliciesRequest} AggregatedListSslPoliciesRequest + * @returns {google.cloud.compute.v1.AggregatedListSslCertificatesRequest} AggregatedListSslCertificatesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListSslPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListSslCertificatesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListSslPoliciesRequest message. + * Verifies an AggregatedListSslCertificatesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListSslPoliciesRequest.verify = function verify(message) { + AggregatedListSslCertificatesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -24347,17 +24347,17 @@ }; /** - * Creates an AggregatedListSslPoliciesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListSslCertificatesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListSslPoliciesRequest} AggregatedListSslPoliciesRequest + * @returns {google.cloud.compute.v1.AggregatedListSslCertificatesRequest} AggregatedListSslCertificatesRequest */ - AggregatedListSslPoliciesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListSslPoliciesRequest) + AggregatedListSslCertificatesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListSslCertificatesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListSslPoliciesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListSslCertificatesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -24376,15 +24376,15 @@ }; /** - * Creates a plain object from an AggregatedListSslPoliciesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListSslCertificatesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListSslPoliciesRequest} message AggregatedListSslPoliciesRequest + * @param {google.cloud.compute.v1.AggregatedListSslCertificatesRequest} message AggregatedListSslCertificatesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListSslPoliciesRequest.toObject = function toObject(message, options) { + AggregatedListSslCertificatesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -24426,58 +24426,58 @@ }; /** - * Converts this AggregatedListSslPoliciesRequest to JSON. + * Converts this AggregatedListSslCertificatesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListSslPoliciesRequest.prototype.toJSON = function toJSON() { + AggregatedListSslCertificatesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListSslPoliciesRequest + * Gets the default type url for AggregatedListSslCertificatesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest + * @memberof google.cloud.compute.v1.AggregatedListSslCertificatesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListSslPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListSslCertificatesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListSslPoliciesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListSslCertificatesRequest"; }; - return AggregatedListSslPoliciesRequest; + return AggregatedListSslCertificatesRequest; })(); - v1.AggregatedListSubnetworksRequest = (function() { + v1.AggregatedListSslPoliciesRequest = (function() { /** - * Properties of an AggregatedListSubnetworksRequest. + * Properties of an AggregatedListSslPoliciesRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListSubnetworksRequest - * @property {string|null} [filter] AggregatedListSubnetworksRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListSubnetworksRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListSubnetworksRequest maxResults - * @property {string|null} [orderBy] AggregatedListSubnetworksRequest orderBy - * @property {string|null} [pageToken] AggregatedListSubnetworksRequest pageToken - * @property {string|null} [project] AggregatedListSubnetworksRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListSubnetworksRequest returnPartialSuccess + * @interface IAggregatedListSslPoliciesRequest + * @property {string|null} [filter] AggregatedListSslPoliciesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListSslPoliciesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListSslPoliciesRequest maxResults + * @property {string|null} [orderBy] AggregatedListSslPoliciesRequest orderBy + * @property {string|null} [pageToken] AggregatedListSslPoliciesRequest pageToken + * @property {string|null} [project] AggregatedListSslPoliciesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListSslPoliciesRequest returnPartialSuccess */ /** - * Constructs a new AggregatedListSubnetworksRequest. + * Constructs a new AggregatedListSslPoliciesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListSubnetworksRequest. - * @implements IAggregatedListSubnetworksRequest + * @classdesc Represents an AggregatedListSslPoliciesRequest. + * @implements IAggregatedListSslPoliciesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListSubnetworksRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListSslPoliciesRequest=} [properties] Properties to set */ - function AggregatedListSubnetworksRequest(properties) { + function AggregatedListSslPoliciesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -24485,152 +24485,152 @@ } /** - * AggregatedListSubnetworksRequest filter. + * AggregatedListSslPoliciesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - AggregatedListSubnetworksRequest.prototype.filter = null; + AggregatedListSslPoliciesRequest.prototype.filter = null; /** - * AggregatedListSubnetworksRequest includeAllScopes. + * AggregatedListSslPoliciesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - AggregatedListSubnetworksRequest.prototype.includeAllScopes = null; + AggregatedListSslPoliciesRequest.prototype.includeAllScopes = null; /** - * AggregatedListSubnetworksRequest maxResults. + * AggregatedListSslPoliciesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - AggregatedListSubnetworksRequest.prototype.maxResults = null; + AggregatedListSslPoliciesRequest.prototype.maxResults = null; /** - * AggregatedListSubnetworksRequest orderBy. + * AggregatedListSslPoliciesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - AggregatedListSubnetworksRequest.prototype.orderBy = null; + AggregatedListSslPoliciesRequest.prototype.orderBy = null; /** - * AggregatedListSubnetworksRequest pageToken. + * AggregatedListSslPoliciesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - AggregatedListSubnetworksRequest.prototype.pageToken = null; + AggregatedListSslPoliciesRequest.prototype.pageToken = null; /** - * AggregatedListSubnetworksRequest project. + * AggregatedListSslPoliciesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - AggregatedListSubnetworksRequest.prototype.project = ""; + AggregatedListSslPoliciesRequest.prototype.project = ""; /** - * AggregatedListSubnetworksRequest returnPartialSuccess. + * AggregatedListSslPoliciesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - AggregatedListSubnetworksRequest.prototype.returnPartialSuccess = null; + AggregatedListSslPoliciesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * AggregatedListSubnetworksRequest _filter. + * AggregatedListSslPoliciesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSubnetworksRequest _includeAllScopes. + * AggregatedListSslPoliciesRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSubnetworksRequest _maxResults. + * AggregatedListSslPoliciesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSubnetworksRequest _orderBy. + * AggregatedListSslPoliciesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSubnetworksRequest _pageToken. + * AggregatedListSslPoliciesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListSubnetworksRequest _returnPartialSuccess. + * AggregatedListSslPoliciesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance */ - Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListSslPoliciesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListSubnetworksRequest instance using the specified properties. + * Creates a new AggregatedListSslPoliciesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSubnetworksRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListSubnetworksRequest} AggregatedListSubnetworksRequest instance + * @param {google.cloud.compute.v1.IAggregatedListSslPoliciesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListSslPoliciesRequest} AggregatedListSslPoliciesRequest instance */ - AggregatedListSubnetworksRequest.create = function create(properties) { - return new AggregatedListSubnetworksRequest(properties); + AggregatedListSslPoliciesRequest.create = function create(properties) { + return new AggregatedListSslPoliciesRequest(properties); }; /** - * Encodes the specified AggregatedListSubnetworksRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSubnetworksRequest.verify|verify} messages. + * Encodes the specified AggregatedListSslPoliciesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSslPoliciesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSubnetworksRequest} message AggregatedListSubnetworksRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListSslPoliciesRequest} message AggregatedListSslPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListSubnetworksRequest.encode = function encode(message, writer) { + AggregatedListSslPoliciesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -24651,33 +24651,33 @@ }; /** - * Encodes the specified AggregatedListSubnetworksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSubnetworksRequest.verify|verify} messages. + * Encodes the specified AggregatedListSslPoliciesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSslPoliciesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListSubnetworksRequest} message AggregatedListSubnetworksRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListSslPoliciesRequest} message AggregatedListSslPoliciesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListSubnetworksRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListSslPoliciesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListSubnetworksRequest message from the specified reader or buffer. + * Decodes an AggregatedListSslPoliciesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @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.AggregatedListSubnetworksRequest} AggregatedListSubnetworksRequest + * @returns {google.cloud.compute.v1.AggregatedListSslPoliciesRequest} AggregatedListSslPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListSubnetworksRequest.decode = function decode(reader, length) { + AggregatedListSslPoliciesRequest.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.AggregatedListSubnetworksRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListSslPoliciesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -24718,30 +24718,30 @@ }; /** - * Decodes an AggregatedListSubnetworksRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListSslPoliciesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListSubnetworksRequest} AggregatedListSubnetworksRequest + * @returns {google.cloud.compute.v1.AggregatedListSslPoliciesRequest} AggregatedListSslPoliciesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListSubnetworksRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListSslPoliciesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListSubnetworksRequest message. + * Verifies an AggregatedListSslPoliciesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListSubnetworksRequest.verify = function verify(message) { + AggregatedListSslPoliciesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -24782,17 +24782,17 @@ }; /** - * Creates an AggregatedListSubnetworksRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListSslPoliciesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListSubnetworksRequest} AggregatedListSubnetworksRequest + * @returns {google.cloud.compute.v1.AggregatedListSslPoliciesRequest} AggregatedListSslPoliciesRequest */ - AggregatedListSubnetworksRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListSubnetworksRequest) + AggregatedListSslPoliciesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListSslPoliciesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListSubnetworksRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListSslPoliciesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -24811,15 +24811,15 @@ }; /** - * Creates a plain object from an AggregatedListSubnetworksRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListSslPoliciesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListSubnetworksRequest} message AggregatedListSubnetworksRequest + * @param {google.cloud.compute.v1.AggregatedListSslPoliciesRequest} message AggregatedListSslPoliciesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListSubnetworksRequest.toObject = function toObject(message, options) { + AggregatedListSslPoliciesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -24861,58 +24861,58 @@ }; /** - * Converts this AggregatedListSubnetworksRequest to JSON. + * Converts this AggregatedListSslPoliciesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListSubnetworksRequest.prototype.toJSON = function toJSON() { + AggregatedListSslPoliciesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListSubnetworksRequest + * Gets the default type url for AggregatedListSslPoliciesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest + * @memberof google.cloud.compute.v1.AggregatedListSslPoliciesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListSubnetworksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListSslPoliciesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListSubnetworksRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListSslPoliciesRequest"; }; - return AggregatedListSubnetworksRequest; + return AggregatedListSslPoliciesRequest; })(); - v1.AggregatedListTargetHttpProxiesRequest = (function() { + v1.AggregatedListSubnetworksRequest = (function() { /** - * Properties of an AggregatedListTargetHttpProxiesRequest. + * Properties of an AggregatedListSubnetworksRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListTargetHttpProxiesRequest - * @property {string|null} [filter] AggregatedListTargetHttpProxiesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListTargetHttpProxiesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListTargetHttpProxiesRequest maxResults - * @property {string|null} [orderBy] AggregatedListTargetHttpProxiesRequest orderBy - * @property {string|null} [pageToken] AggregatedListTargetHttpProxiesRequest pageToken - * @property {string|null} [project] AggregatedListTargetHttpProxiesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListTargetHttpProxiesRequest returnPartialSuccess + * @interface IAggregatedListSubnetworksRequest + * @property {string|null} [filter] AggregatedListSubnetworksRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListSubnetworksRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListSubnetworksRequest maxResults + * @property {string|null} [orderBy] AggregatedListSubnetworksRequest orderBy + * @property {string|null} [pageToken] AggregatedListSubnetworksRequest pageToken + * @property {string|null} [project] AggregatedListSubnetworksRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListSubnetworksRequest returnPartialSuccess */ /** - * Constructs a new AggregatedListTargetHttpProxiesRequest. + * Constructs a new AggregatedListSubnetworksRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListTargetHttpProxiesRequest. - * @implements IAggregatedListTargetHttpProxiesRequest + * @classdesc Represents an AggregatedListSubnetworksRequest. + * @implements IAggregatedListSubnetworksRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListTargetHttpProxiesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListSubnetworksRequest=} [properties] Properties to set */ - function AggregatedListTargetHttpProxiesRequest(properties) { + function AggregatedListSubnetworksRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -24920,152 +24920,152 @@ } /** - * AggregatedListTargetHttpProxiesRequest filter. + * AggregatedListSubnetworksRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance */ - AggregatedListTargetHttpProxiesRequest.prototype.filter = null; + AggregatedListSubnetworksRequest.prototype.filter = null; /** - * AggregatedListTargetHttpProxiesRequest includeAllScopes. + * AggregatedListSubnetworksRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance */ - AggregatedListTargetHttpProxiesRequest.prototype.includeAllScopes = null; + AggregatedListSubnetworksRequest.prototype.includeAllScopes = null; /** - * AggregatedListTargetHttpProxiesRequest maxResults. + * AggregatedListSubnetworksRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance */ - AggregatedListTargetHttpProxiesRequest.prototype.maxResults = null; + AggregatedListSubnetworksRequest.prototype.maxResults = null; /** - * AggregatedListTargetHttpProxiesRequest orderBy. + * AggregatedListSubnetworksRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance */ - AggregatedListTargetHttpProxiesRequest.prototype.orderBy = null; + AggregatedListSubnetworksRequest.prototype.orderBy = null; /** - * AggregatedListTargetHttpProxiesRequest pageToken. + * AggregatedListSubnetworksRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance */ - AggregatedListTargetHttpProxiesRequest.prototype.pageToken = null; + AggregatedListSubnetworksRequest.prototype.pageToken = null; /** - * AggregatedListTargetHttpProxiesRequest project. + * AggregatedListSubnetworksRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance */ - AggregatedListTargetHttpProxiesRequest.prototype.project = ""; + AggregatedListSubnetworksRequest.prototype.project = ""; /** - * AggregatedListTargetHttpProxiesRequest returnPartialSuccess. + * AggregatedListSubnetworksRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance */ - AggregatedListTargetHttpProxiesRequest.prototype.returnPartialSuccess = null; + AggregatedListSubnetworksRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * AggregatedListTargetHttpProxiesRequest _filter. + * AggregatedListSubnetworksRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance */ - Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetHttpProxiesRequest _includeAllScopes. + * AggregatedListSubnetworksRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance */ - Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetHttpProxiesRequest _maxResults. + * AggregatedListSubnetworksRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance */ - Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetHttpProxiesRequest _orderBy. + * AggregatedListSubnetworksRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance */ - Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetHttpProxiesRequest _pageToken. + * AggregatedListSubnetworksRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance */ - Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetHttpProxiesRequest _returnPartialSuccess. + * AggregatedListSubnetworksRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance */ - Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListSubnetworksRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListTargetHttpProxiesRequest instance using the specified properties. + * Creates a new AggregatedListSubnetworksRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetHttpProxiesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest} AggregatedListTargetHttpProxiesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListSubnetworksRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListSubnetworksRequest} AggregatedListSubnetworksRequest instance */ - AggregatedListTargetHttpProxiesRequest.create = function create(properties) { - return new AggregatedListTargetHttpProxiesRequest(properties); + AggregatedListSubnetworksRequest.create = function create(properties) { + return new AggregatedListSubnetworksRequest(properties); }; /** - * Encodes the specified AggregatedListTargetHttpProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest.verify|verify} messages. + * Encodes the specified AggregatedListSubnetworksRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSubnetworksRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetHttpProxiesRequest} message AggregatedListTargetHttpProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListSubnetworksRequest} message AggregatedListSubnetworksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetHttpProxiesRequest.encode = function encode(message, writer) { + AggregatedListSubnetworksRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -25086,33 +25086,33 @@ }; /** - * Encodes the specified AggregatedListTargetHttpProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest.verify|verify} messages. + * Encodes the specified AggregatedListSubnetworksRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListSubnetworksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetHttpProxiesRequest} message AggregatedListTargetHttpProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListSubnetworksRequest} message AggregatedListSubnetworksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetHttpProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListSubnetworksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListTargetHttpProxiesRequest message from the specified reader or buffer. + * Decodes an AggregatedListSubnetworksRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @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.AggregatedListTargetHttpProxiesRequest} AggregatedListTargetHttpProxiesRequest + * @returns {google.cloud.compute.v1.AggregatedListSubnetworksRequest} AggregatedListSubnetworksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListTargetHttpProxiesRequest.decode = function decode(reader, length) { + AggregatedListSubnetworksRequest.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.AggregatedListTargetHttpProxiesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListSubnetworksRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -25153,30 +25153,30 @@ }; /** - * Decodes an AggregatedListTargetHttpProxiesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListSubnetworksRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest} AggregatedListTargetHttpProxiesRequest + * @returns {google.cloud.compute.v1.AggregatedListSubnetworksRequest} AggregatedListSubnetworksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListTargetHttpProxiesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListSubnetworksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListTargetHttpProxiesRequest message. + * Verifies an AggregatedListSubnetworksRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListTargetHttpProxiesRequest.verify = function verify(message) { + AggregatedListSubnetworksRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -25217,17 +25217,17 @@ }; /** - * Creates an AggregatedListTargetHttpProxiesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListSubnetworksRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest} AggregatedListTargetHttpProxiesRequest + * @returns {google.cloud.compute.v1.AggregatedListSubnetworksRequest} AggregatedListSubnetworksRequest */ - AggregatedListTargetHttpProxiesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest) + AggregatedListSubnetworksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListSubnetworksRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListSubnetworksRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -25246,15 +25246,15 @@ }; /** - * Creates a plain object from an AggregatedListTargetHttpProxiesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListSubnetworksRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @static - * @param {google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest} message AggregatedListTargetHttpProxiesRequest + * @param {google.cloud.compute.v1.AggregatedListSubnetworksRequest} message AggregatedListSubnetworksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListTargetHttpProxiesRequest.toObject = function toObject(message, options) { + AggregatedListSubnetworksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -25296,58 +25296,58 @@ }; /** - * Converts this AggregatedListTargetHttpProxiesRequest to JSON. + * Converts this AggregatedListSubnetworksRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @instance * @returns {Object.} JSON object */ - AggregatedListTargetHttpProxiesRequest.prototype.toJSON = function toJSON() { + AggregatedListSubnetworksRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListTargetHttpProxiesRequest + * Gets the default type url for AggregatedListSubnetworksRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListSubnetworksRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListTargetHttpProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListSubnetworksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListSubnetworksRequest"; }; - return AggregatedListTargetHttpProxiesRequest; + return AggregatedListSubnetworksRequest; })(); - v1.AggregatedListTargetHttpsProxiesRequest = (function() { + v1.AggregatedListTargetHttpProxiesRequest = (function() { /** - * Properties of an AggregatedListTargetHttpsProxiesRequest. + * Properties of an AggregatedListTargetHttpProxiesRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListTargetHttpsProxiesRequest - * @property {string|null} [filter] AggregatedListTargetHttpsProxiesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListTargetHttpsProxiesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListTargetHttpsProxiesRequest maxResults - * @property {string|null} [orderBy] AggregatedListTargetHttpsProxiesRequest orderBy - * @property {string|null} [pageToken] AggregatedListTargetHttpsProxiesRequest pageToken - * @property {string|null} [project] AggregatedListTargetHttpsProxiesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListTargetHttpsProxiesRequest returnPartialSuccess + * @interface IAggregatedListTargetHttpProxiesRequest + * @property {string|null} [filter] AggregatedListTargetHttpProxiesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListTargetHttpProxiesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListTargetHttpProxiesRequest maxResults + * @property {string|null} [orderBy] AggregatedListTargetHttpProxiesRequest orderBy + * @property {string|null} [pageToken] AggregatedListTargetHttpProxiesRequest pageToken + * @property {string|null} [project] AggregatedListTargetHttpProxiesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListTargetHttpProxiesRequest returnPartialSuccess */ /** - * Constructs a new AggregatedListTargetHttpsProxiesRequest. + * Constructs a new AggregatedListTargetHttpProxiesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListTargetHttpsProxiesRequest. - * @implements IAggregatedListTargetHttpsProxiesRequest + * @classdesc Represents an AggregatedListTargetHttpProxiesRequest. + * @implements IAggregatedListTargetHttpProxiesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListTargetHttpsProxiesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListTargetHttpProxiesRequest=} [properties] Properties to set */ - function AggregatedListTargetHttpsProxiesRequest(properties) { + function AggregatedListTargetHttpProxiesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -25355,152 +25355,152 @@ } /** - * AggregatedListTargetHttpsProxiesRequest filter. + * AggregatedListTargetHttpProxiesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance */ - AggregatedListTargetHttpsProxiesRequest.prototype.filter = null; + AggregatedListTargetHttpProxiesRequest.prototype.filter = null; /** - * AggregatedListTargetHttpsProxiesRequest includeAllScopes. + * AggregatedListTargetHttpProxiesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance */ - AggregatedListTargetHttpsProxiesRequest.prototype.includeAllScopes = null; + AggregatedListTargetHttpProxiesRequest.prototype.includeAllScopes = null; /** - * AggregatedListTargetHttpsProxiesRequest maxResults. + * AggregatedListTargetHttpProxiesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance */ - AggregatedListTargetHttpsProxiesRequest.prototype.maxResults = null; + AggregatedListTargetHttpProxiesRequest.prototype.maxResults = null; /** - * AggregatedListTargetHttpsProxiesRequest orderBy. + * AggregatedListTargetHttpProxiesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance */ - AggregatedListTargetHttpsProxiesRequest.prototype.orderBy = null; + AggregatedListTargetHttpProxiesRequest.prototype.orderBy = null; /** - * AggregatedListTargetHttpsProxiesRequest pageToken. + * AggregatedListTargetHttpProxiesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance */ - AggregatedListTargetHttpsProxiesRequest.prototype.pageToken = null; + AggregatedListTargetHttpProxiesRequest.prototype.pageToken = null; /** - * AggregatedListTargetHttpsProxiesRequest project. + * AggregatedListTargetHttpProxiesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance */ - AggregatedListTargetHttpsProxiesRequest.prototype.project = ""; + AggregatedListTargetHttpProxiesRequest.prototype.project = ""; /** - * AggregatedListTargetHttpsProxiesRequest returnPartialSuccess. + * AggregatedListTargetHttpProxiesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance */ - AggregatedListTargetHttpsProxiesRequest.prototype.returnPartialSuccess = null; + AggregatedListTargetHttpProxiesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * AggregatedListTargetHttpsProxiesRequest _filter. + * AggregatedListTargetHttpProxiesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance */ - Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetHttpsProxiesRequest _includeAllScopes. + * AggregatedListTargetHttpProxiesRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance */ - Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetHttpsProxiesRequest _maxResults. + * AggregatedListTargetHttpProxiesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance */ - Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetHttpsProxiesRequest _orderBy. + * AggregatedListTargetHttpProxiesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance */ - Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetHttpsProxiesRequest _pageToken. + * AggregatedListTargetHttpProxiesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance */ - Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetHttpsProxiesRequest _returnPartialSuccess. + * AggregatedListTargetHttpProxiesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance */ - Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListTargetHttpProxiesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListTargetHttpsProxiesRequest instance using the specified properties. + * Creates a new AggregatedListTargetHttpProxiesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetHttpsProxiesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest} AggregatedListTargetHttpsProxiesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListTargetHttpProxiesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest} AggregatedListTargetHttpProxiesRequest instance */ - AggregatedListTargetHttpsProxiesRequest.create = function create(properties) { - return new AggregatedListTargetHttpsProxiesRequest(properties); + AggregatedListTargetHttpProxiesRequest.create = function create(properties) { + return new AggregatedListTargetHttpProxiesRequest(properties); }; /** - * Encodes the specified AggregatedListTargetHttpsProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest.verify|verify} messages. + * Encodes the specified AggregatedListTargetHttpProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetHttpsProxiesRequest} message AggregatedListTargetHttpsProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListTargetHttpProxiesRequest} message AggregatedListTargetHttpProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetHttpsProxiesRequest.encode = function encode(message, writer) { + AggregatedListTargetHttpProxiesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -25521,33 +25521,33 @@ }; /** - * Encodes the specified AggregatedListTargetHttpsProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest.verify|verify} messages. + * Encodes the specified AggregatedListTargetHttpProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetHttpsProxiesRequest} message AggregatedListTargetHttpsProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListTargetHttpProxiesRequest} message AggregatedListTargetHttpProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetHttpsProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListTargetHttpProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListTargetHttpsProxiesRequest message from the specified reader or buffer. + * Decodes an AggregatedListTargetHttpProxiesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @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.AggregatedListTargetHttpsProxiesRequest} AggregatedListTargetHttpsProxiesRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest} AggregatedListTargetHttpProxiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListTargetHttpsProxiesRequest.decode = function decode(reader, length) { + AggregatedListTargetHttpProxiesRequest.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.AggregatedListTargetHttpsProxiesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -25588,30 +25588,30 @@ }; /** - * Decodes an AggregatedListTargetHttpsProxiesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListTargetHttpProxiesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest} AggregatedListTargetHttpsProxiesRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest} AggregatedListTargetHttpProxiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListTargetHttpsProxiesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListTargetHttpProxiesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListTargetHttpsProxiesRequest message. + * Verifies an AggregatedListTargetHttpProxiesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListTargetHttpsProxiesRequest.verify = function verify(message) { + AggregatedListTargetHttpProxiesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -25652,17 +25652,17 @@ }; /** - * Creates an AggregatedListTargetHttpsProxiesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListTargetHttpProxiesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest} AggregatedListTargetHttpsProxiesRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest} AggregatedListTargetHttpProxiesRequest */ - AggregatedListTargetHttpsProxiesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest) + AggregatedListTargetHttpProxiesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -25681,15 +25681,15 @@ }; /** - * Creates a plain object from an AggregatedListTargetHttpsProxiesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListTargetHttpProxiesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest} message AggregatedListTargetHttpsProxiesRequest + * @param {google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest} message AggregatedListTargetHttpProxiesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListTargetHttpsProxiesRequest.toObject = function toObject(message, options) { + AggregatedListTargetHttpProxiesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -25731,58 +25731,58 @@ }; /** - * Converts this AggregatedListTargetHttpsProxiesRequest to JSON. + * Converts this AggregatedListTargetHttpProxiesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListTargetHttpsProxiesRequest.prototype.toJSON = function toJSON() { + AggregatedListTargetHttpProxiesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListTargetHttpsProxiesRequest + * Gets the default type url for AggregatedListTargetHttpProxiesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListTargetHttpsProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListTargetHttpProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetHttpProxiesRequest"; }; - return AggregatedListTargetHttpsProxiesRequest; + return AggregatedListTargetHttpProxiesRequest; })(); - v1.AggregatedListTargetInstancesRequest = (function() { + v1.AggregatedListTargetHttpsProxiesRequest = (function() { /** - * Properties of an AggregatedListTargetInstancesRequest. + * Properties of an AggregatedListTargetHttpsProxiesRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListTargetInstancesRequest - * @property {string|null} [filter] AggregatedListTargetInstancesRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListTargetInstancesRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListTargetInstancesRequest maxResults - * @property {string|null} [orderBy] AggregatedListTargetInstancesRequest orderBy - * @property {string|null} [pageToken] AggregatedListTargetInstancesRequest pageToken - * @property {string|null} [project] AggregatedListTargetInstancesRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListTargetInstancesRequest returnPartialSuccess + * @interface IAggregatedListTargetHttpsProxiesRequest + * @property {string|null} [filter] AggregatedListTargetHttpsProxiesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListTargetHttpsProxiesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListTargetHttpsProxiesRequest maxResults + * @property {string|null} [orderBy] AggregatedListTargetHttpsProxiesRequest orderBy + * @property {string|null} [pageToken] AggregatedListTargetHttpsProxiesRequest pageToken + * @property {string|null} [project] AggregatedListTargetHttpsProxiesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListTargetHttpsProxiesRequest returnPartialSuccess */ /** - * Constructs a new AggregatedListTargetInstancesRequest. + * Constructs a new AggregatedListTargetHttpsProxiesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListTargetInstancesRequest. - * @implements IAggregatedListTargetInstancesRequest + * @classdesc Represents an AggregatedListTargetHttpsProxiesRequest. + * @implements IAggregatedListTargetHttpsProxiesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListTargetInstancesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListTargetHttpsProxiesRequest=} [properties] Properties to set */ - function AggregatedListTargetInstancesRequest(properties) { + function AggregatedListTargetHttpsProxiesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -25790,152 +25790,152 @@ } /** - * AggregatedListTargetInstancesRequest filter. + * AggregatedListTargetHttpsProxiesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance */ - AggregatedListTargetInstancesRequest.prototype.filter = null; + AggregatedListTargetHttpsProxiesRequest.prototype.filter = null; /** - * AggregatedListTargetInstancesRequest includeAllScopes. + * AggregatedListTargetHttpsProxiesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance */ - AggregatedListTargetInstancesRequest.prototype.includeAllScopes = null; + AggregatedListTargetHttpsProxiesRequest.prototype.includeAllScopes = null; /** - * AggregatedListTargetInstancesRequest maxResults. + * AggregatedListTargetHttpsProxiesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance */ - AggregatedListTargetInstancesRequest.prototype.maxResults = null; + AggregatedListTargetHttpsProxiesRequest.prototype.maxResults = null; /** - * AggregatedListTargetInstancesRequest orderBy. + * AggregatedListTargetHttpsProxiesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance */ - AggregatedListTargetInstancesRequest.prototype.orderBy = null; + AggregatedListTargetHttpsProxiesRequest.prototype.orderBy = null; /** - * AggregatedListTargetInstancesRequest pageToken. + * AggregatedListTargetHttpsProxiesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance */ - AggregatedListTargetInstancesRequest.prototype.pageToken = null; + AggregatedListTargetHttpsProxiesRequest.prototype.pageToken = null; /** - * AggregatedListTargetInstancesRequest project. + * AggregatedListTargetHttpsProxiesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance */ - AggregatedListTargetInstancesRequest.prototype.project = ""; + AggregatedListTargetHttpsProxiesRequest.prototype.project = ""; /** - * AggregatedListTargetInstancesRequest returnPartialSuccess. + * AggregatedListTargetHttpsProxiesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance */ - AggregatedListTargetInstancesRequest.prototype.returnPartialSuccess = null; + AggregatedListTargetHttpsProxiesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * AggregatedListTargetInstancesRequest _filter. + * AggregatedListTargetHttpsProxiesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance */ - Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetInstancesRequest _includeAllScopes. + * AggregatedListTargetHttpsProxiesRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance */ - Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetInstancesRequest _maxResults. + * AggregatedListTargetHttpsProxiesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance */ - Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetInstancesRequest _orderBy. + * AggregatedListTargetHttpsProxiesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance */ - Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetInstancesRequest _pageToken. + * AggregatedListTargetHttpsProxiesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance */ - Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetInstancesRequest _returnPartialSuccess. + * AggregatedListTargetHttpsProxiesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance */ - Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListTargetHttpsProxiesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListTargetInstancesRequest instance using the specified properties. + * Creates a new AggregatedListTargetHttpsProxiesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetInstancesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListTargetInstancesRequest} AggregatedListTargetInstancesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListTargetHttpsProxiesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest} AggregatedListTargetHttpsProxiesRequest instance */ - AggregatedListTargetInstancesRequest.create = function create(properties) { - return new AggregatedListTargetInstancesRequest(properties); + AggregatedListTargetHttpsProxiesRequest.create = function create(properties) { + return new AggregatedListTargetHttpsProxiesRequest(properties); }; /** - * Encodes the specified AggregatedListTargetInstancesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetInstancesRequest.verify|verify} messages. + * Encodes the specified AggregatedListTargetHttpsProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetInstancesRequest} message AggregatedListTargetInstancesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListTargetHttpsProxiesRequest} message AggregatedListTargetHttpsProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetInstancesRequest.encode = function encode(message, writer) { + AggregatedListTargetHttpsProxiesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -25956,33 +25956,33 @@ }; /** - * Encodes the specified AggregatedListTargetInstancesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetInstancesRequest.verify|verify} messages. + * Encodes the specified AggregatedListTargetHttpsProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetInstancesRequest} message AggregatedListTargetInstancesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListTargetHttpsProxiesRequest} message AggregatedListTargetHttpsProxiesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetInstancesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListTargetHttpsProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListTargetInstancesRequest message from the specified reader or buffer. + * Decodes an AggregatedListTargetHttpsProxiesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @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.AggregatedListTargetInstancesRequest} AggregatedListTargetInstancesRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest} AggregatedListTargetHttpsProxiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListTargetInstancesRequest.decode = function decode(reader, length) { + AggregatedListTargetHttpsProxiesRequest.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.AggregatedListTargetInstancesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -26023,30 +26023,30 @@ }; /** - * Decodes an AggregatedListTargetInstancesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListTargetHttpsProxiesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListTargetInstancesRequest} AggregatedListTargetInstancesRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest} AggregatedListTargetHttpsProxiesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListTargetInstancesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListTargetHttpsProxiesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListTargetInstancesRequest message. + * Verifies an AggregatedListTargetHttpsProxiesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListTargetInstancesRequest.verify = function verify(message) { + AggregatedListTargetHttpsProxiesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -26087,17 +26087,17 @@ }; /** - * Creates an AggregatedListTargetInstancesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListTargetHttpsProxiesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListTargetInstancesRequest} AggregatedListTargetInstancesRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest} AggregatedListTargetHttpsProxiesRequest */ - AggregatedListTargetInstancesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetInstancesRequest) + AggregatedListTargetHttpsProxiesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListTargetInstancesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -26116,15 +26116,15 @@ }; /** - * Creates a plain object from an AggregatedListTargetInstancesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListTargetHttpsProxiesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListTargetInstancesRequest} message AggregatedListTargetInstancesRequest + * @param {google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest} message AggregatedListTargetHttpsProxiesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListTargetInstancesRequest.toObject = function toObject(message, options) { + AggregatedListTargetHttpsProxiesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -26166,58 +26166,58 @@ }; /** - * Converts this AggregatedListTargetInstancesRequest to JSON. + * Converts this AggregatedListTargetHttpsProxiesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListTargetInstancesRequest.prototype.toJSON = function toJSON() { + AggregatedListTargetHttpsProxiesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListTargetInstancesRequest + * Gets the default type url for AggregatedListTargetHttpsProxiesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListTargetInstancesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListTargetHttpsProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetInstancesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetHttpsProxiesRequest"; }; - return AggregatedListTargetInstancesRequest; + return AggregatedListTargetHttpsProxiesRequest; })(); - v1.AggregatedListTargetPoolsRequest = (function() { + v1.AggregatedListTargetInstancesRequest = (function() { /** - * Properties of an AggregatedListTargetPoolsRequest. + * Properties of an AggregatedListTargetInstancesRequest. * @memberof google.cloud.compute.v1 - * @interface IAggregatedListTargetPoolsRequest - * @property {string|null} [filter] AggregatedListTargetPoolsRequest filter - * @property {boolean|null} [includeAllScopes] AggregatedListTargetPoolsRequest includeAllScopes - * @property {number|null} [maxResults] AggregatedListTargetPoolsRequest maxResults - * @property {string|null} [orderBy] AggregatedListTargetPoolsRequest orderBy - * @property {string|null} [pageToken] AggregatedListTargetPoolsRequest pageToken - * @property {string|null} [project] AggregatedListTargetPoolsRequest project - * @property {boolean|null} [returnPartialSuccess] AggregatedListTargetPoolsRequest returnPartialSuccess + * @interface IAggregatedListTargetInstancesRequest + * @property {string|null} [filter] AggregatedListTargetInstancesRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListTargetInstancesRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListTargetInstancesRequest maxResults + * @property {string|null} [orderBy] AggregatedListTargetInstancesRequest orderBy + * @property {string|null} [pageToken] AggregatedListTargetInstancesRequest pageToken + * @property {string|null} [project] AggregatedListTargetInstancesRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListTargetInstancesRequest returnPartialSuccess */ /** - * Constructs a new AggregatedListTargetPoolsRequest. + * Constructs a new AggregatedListTargetInstancesRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListTargetPoolsRequest. - * @implements IAggregatedListTargetPoolsRequest + * @classdesc Represents an AggregatedListTargetInstancesRequest. + * @implements IAggregatedListTargetInstancesRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListTargetPoolsRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListTargetInstancesRequest=} [properties] Properties to set */ - function AggregatedListTargetPoolsRequest(properties) { + function AggregatedListTargetInstancesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -26225,152 +26225,152 @@ } /** - * AggregatedListTargetPoolsRequest filter. + * AggregatedListTargetInstancesRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance */ - AggregatedListTargetPoolsRequest.prototype.filter = null; + AggregatedListTargetInstancesRequest.prototype.filter = null; /** - * AggregatedListTargetPoolsRequest includeAllScopes. + * AggregatedListTargetInstancesRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance */ - AggregatedListTargetPoolsRequest.prototype.includeAllScopes = null; + AggregatedListTargetInstancesRequest.prototype.includeAllScopes = null; /** - * AggregatedListTargetPoolsRequest maxResults. + * AggregatedListTargetInstancesRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance */ - AggregatedListTargetPoolsRequest.prototype.maxResults = null; + AggregatedListTargetInstancesRequest.prototype.maxResults = null; /** - * AggregatedListTargetPoolsRequest orderBy. + * AggregatedListTargetInstancesRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance */ - AggregatedListTargetPoolsRequest.prototype.orderBy = null; + AggregatedListTargetInstancesRequest.prototype.orderBy = null; /** - * AggregatedListTargetPoolsRequest pageToken. + * AggregatedListTargetInstancesRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance */ - AggregatedListTargetPoolsRequest.prototype.pageToken = null; + AggregatedListTargetInstancesRequest.prototype.pageToken = null; /** - * AggregatedListTargetPoolsRequest project. + * AggregatedListTargetInstancesRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance */ - AggregatedListTargetPoolsRequest.prototype.project = ""; + AggregatedListTargetInstancesRequest.prototype.project = ""; /** - * AggregatedListTargetPoolsRequest returnPartialSuccess. + * AggregatedListTargetInstancesRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance */ - AggregatedListTargetPoolsRequest.prototype.returnPartialSuccess = null; + AggregatedListTargetInstancesRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * AggregatedListTargetPoolsRequest _filter. + * AggregatedListTargetInstancesRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance */ - Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetPoolsRequest _includeAllScopes. + * AggregatedListTargetInstancesRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance */ - Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetPoolsRequest _maxResults. + * AggregatedListTargetInstancesRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance */ - Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetPoolsRequest _orderBy. + * AggregatedListTargetInstancesRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance */ - Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetPoolsRequest _pageToken. + * AggregatedListTargetInstancesRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance */ - Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetPoolsRequest _returnPartialSuccess. + * AggregatedListTargetInstancesRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance */ - Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListTargetInstancesRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListTargetPoolsRequest instance using the specified properties. + * Creates a new AggregatedListTargetInstancesRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetPoolsRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListTargetPoolsRequest} AggregatedListTargetPoolsRequest instance + * @param {google.cloud.compute.v1.IAggregatedListTargetInstancesRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListTargetInstancesRequest} AggregatedListTargetInstancesRequest instance */ - AggregatedListTargetPoolsRequest.create = function create(properties) { - return new AggregatedListTargetPoolsRequest(properties); + AggregatedListTargetInstancesRequest.create = function create(properties) { + return new AggregatedListTargetInstancesRequest(properties); }; /** - * Encodes the specified AggregatedListTargetPoolsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetPoolsRequest.verify|verify} messages. + * Encodes the specified AggregatedListTargetInstancesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetInstancesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetPoolsRequest} message AggregatedListTargetPoolsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListTargetInstancesRequest} message AggregatedListTargetInstancesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetPoolsRequest.encode = function encode(message, writer) { + AggregatedListTargetInstancesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) @@ -26391,33 +26391,33 @@ }; /** - * Encodes the specified AggregatedListTargetPoolsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetPoolsRequest.verify|verify} messages. + * Encodes the specified AggregatedListTargetInstancesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetInstancesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetPoolsRequest} message AggregatedListTargetPoolsRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListTargetInstancesRequest} message AggregatedListTargetInstancesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetPoolsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListTargetInstancesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListTargetPoolsRequest message from the specified reader or buffer. + * Decodes an AggregatedListTargetInstancesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @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.AggregatedListTargetPoolsRequest} AggregatedListTargetPoolsRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetInstancesRequest} AggregatedListTargetInstancesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListTargetPoolsRequest.decode = function decode(reader, length) { + AggregatedListTargetInstancesRequest.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.AggregatedListTargetPoolsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListTargetInstancesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -26458,30 +26458,30 @@ }; /** - * Decodes an AggregatedListTargetPoolsRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListTargetInstancesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListTargetPoolsRequest} AggregatedListTargetPoolsRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetInstancesRequest} AggregatedListTargetInstancesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListTargetPoolsRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListTargetInstancesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListTargetPoolsRequest message. + * Verifies an AggregatedListTargetInstancesRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListTargetPoolsRequest.verify = function verify(message) { + AggregatedListTargetInstancesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -26522,17 +26522,17 @@ }; /** - * Creates an AggregatedListTargetPoolsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListTargetInstancesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListTargetPoolsRequest} AggregatedListTargetPoolsRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetInstancesRequest} AggregatedListTargetInstancesRequest */ - AggregatedListTargetPoolsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetPoolsRequest) + AggregatedListTargetInstancesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetInstancesRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListTargetPoolsRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListTargetInstancesRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -26551,15 +26551,15 @@ }; /** - * Creates a plain object from an AggregatedListTargetPoolsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListTargetInstancesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @static - * @param {google.cloud.compute.v1.AggregatedListTargetPoolsRequest} message AggregatedListTargetPoolsRequest + * @param {google.cloud.compute.v1.AggregatedListTargetInstancesRequest} message AggregatedListTargetInstancesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListTargetPoolsRequest.toObject = function toObject(message, options) { + AggregatedListTargetInstancesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -26601,58 +26601,58 @@ }; /** - * Converts this AggregatedListTargetPoolsRequest to JSON. + * Converts this AggregatedListTargetInstancesRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @instance * @returns {Object.} JSON object */ - AggregatedListTargetPoolsRequest.prototype.toJSON = function toJSON() { + AggregatedListTargetInstancesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListTargetPoolsRequest + * Gets the default type url for AggregatedListTargetInstancesRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetInstancesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListTargetPoolsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListTargetInstancesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetPoolsRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetInstancesRequest"; }; - return AggregatedListTargetPoolsRequest; + return AggregatedListTargetInstancesRequest; })(); - v1.AggregatedListTargetTcpProxiesRequest = (function() { + v1.AggregatedListTargetPoolsRequest = (function() { /** - * Properties of an AggregatedListTargetTcpProxiesRequest. + * Properties of an AggregatedListTargetPoolsRequest. * @memberof google.cloud.compute.v1 - * @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 + * @interface IAggregatedListTargetPoolsRequest + * @property {string|null} [filter] AggregatedListTargetPoolsRequest filter + * @property {boolean|null} [includeAllScopes] AggregatedListTargetPoolsRequest includeAllScopes + * @property {number|null} [maxResults] AggregatedListTargetPoolsRequest maxResults + * @property {string|null} [orderBy] AggregatedListTargetPoolsRequest orderBy + * @property {string|null} [pageToken] AggregatedListTargetPoolsRequest pageToken + * @property {string|null} [project] AggregatedListTargetPoolsRequest project + * @property {boolean|null} [returnPartialSuccess] AggregatedListTargetPoolsRequest returnPartialSuccess */ /** - * Constructs a new AggregatedListTargetTcpProxiesRequest. + * Constructs a new AggregatedListTargetPoolsRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents an AggregatedListTargetTcpProxiesRequest. - * @implements IAggregatedListTargetTcpProxiesRequest + * @classdesc Represents an AggregatedListTargetPoolsRequest. + * @implements IAggregatedListTargetPoolsRequest * @constructor - * @param {google.cloud.compute.v1.IAggregatedListTargetTcpProxiesRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.IAggregatedListTargetPoolsRequest=} [properties] Properties to set */ - function AggregatedListTargetTcpProxiesRequest(properties) { + function AggregatedListTargetPoolsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -26660,152 +26660,152 @@ } /** - * AggregatedListTargetTcpProxiesRequest filter. + * AggregatedListTargetPoolsRequest filter. * @member {string|null|undefined} filter - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance */ - AggregatedListTargetTcpProxiesRequest.prototype.filter = null; + AggregatedListTargetPoolsRequest.prototype.filter = null; /** - * AggregatedListTargetTcpProxiesRequest includeAllScopes. + * AggregatedListTargetPoolsRequest includeAllScopes. * @member {boolean|null|undefined} includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance */ - AggregatedListTargetTcpProxiesRequest.prototype.includeAllScopes = null; + AggregatedListTargetPoolsRequest.prototype.includeAllScopes = null; /** - * AggregatedListTargetTcpProxiesRequest maxResults. + * AggregatedListTargetPoolsRequest maxResults. * @member {number|null|undefined} maxResults - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance */ - AggregatedListTargetTcpProxiesRequest.prototype.maxResults = null; + AggregatedListTargetPoolsRequest.prototype.maxResults = null; /** - * AggregatedListTargetTcpProxiesRequest orderBy. + * AggregatedListTargetPoolsRequest orderBy. * @member {string|null|undefined} orderBy - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance */ - AggregatedListTargetTcpProxiesRequest.prototype.orderBy = null; + AggregatedListTargetPoolsRequest.prototype.orderBy = null; /** - * AggregatedListTargetTcpProxiesRequest pageToken. + * AggregatedListTargetPoolsRequest pageToken. * @member {string|null|undefined} pageToken - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance */ - AggregatedListTargetTcpProxiesRequest.prototype.pageToken = null; + AggregatedListTargetPoolsRequest.prototype.pageToken = null; /** - * AggregatedListTargetTcpProxiesRequest project. + * AggregatedListTargetPoolsRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance */ - AggregatedListTargetTcpProxiesRequest.prototype.project = ""; + AggregatedListTargetPoolsRequest.prototype.project = ""; /** - * AggregatedListTargetTcpProxiesRequest returnPartialSuccess. + * AggregatedListTargetPoolsRequest returnPartialSuccess. * @member {boolean|null|undefined} returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance */ - AggregatedListTargetTcpProxiesRequest.prototype.returnPartialSuccess = null; + AggregatedListTargetPoolsRequest.prototype.returnPartialSuccess = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * AggregatedListTargetTcpProxiesRequest _filter. + * AggregatedListTargetPoolsRequest _filter. * @member {"filter"|undefined} _filter - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance */ - Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_filter", { + Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_filter", { get: $util.oneOfGetter($oneOfFields = ["filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetTcpProxiesRequest _includeAllScopes. + * AggregatedListTargetPoolsRequest _includeAllScopes. * @member {"includeAllScopes"|undefined} _includeAllScopes - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance */ - Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_includeAllScopes", { + Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_includeAllScopes", { get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetTcpProxiesRequest _maxResults. + * AggregatedListTargetPoolsRequest _maxResults. * @member {"maxResults"|undefined} _maxResults - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance */ - Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_maxResults", { + Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_maxResults", { get: $util.oneOfGetter($oneOfFields = ["maxResults"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetTcpProxiesRequest _orderBy. + * AggregatedListTargetPoolsRequest _orderBy. * @member {"orderBy"|undefined} _orderBy - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance */ - Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_orderBy", { + Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_orderBy", { get: $util.oneOfGetter($oneOfFields = ["orderBy"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetTcpProxiesRequest _pageToken. + * AggregatedListTargetPoolsRequest _pageToken. * @member {"pageToken"|undefined} _pageToken - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance */ - Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_pageToken", { + Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_pageToken", { get: $util.oneOfGetter($oneOfFields = ["pageToken"]), set: $util.oneOfSetter($oneOfFields) }); /** - * AggregatedListTargetTcpProxiesRequest _returnPartialSuccess. + * AggregatedListTargetPoolsRequest _returnPartialSuccess. * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance */ - Object.defineProperty(AggregatedListTargetTcpProxiesRequest.prototype, "_returnPartialSuccess", { + Object.defineProperty(AggregatedListTargetPoolsRequest.prototype, "_returnPartialSuccess", { get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new AggregatedListTargetTcpProxiesRequest instance using the specified properties. + * Creates a new AggregatedListTargetPoolsRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetTcpProxiesRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest} AggregatedListTargetTcpProxiesRequest instance + * @param {google.cloud.compute.v1.IAggregatedListTargetPoolsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListTargetPoolsRequest} AggregatedListTargetPoolsRequest instance */ - AggregatedListTargetTcpProxiesRequest.create = function create(properties) { - return new AggregatedListTargetTcpProxiesRequest(properties); + AggregatedListTargetPoolsRequest.create = function create(properties) { + return new AggregatedListTargetPoolsRequest(properties); }; /** - * Encodes the specified AggregatedListTargetTcpProxiesRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest.verify|verify} messages. + * Encodes the specified AggregatedListTargetPoolsRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetPoolsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetTcpProxiesRequest} message AggregatedListTargetTcpProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListTargetPoolsRequest} message AggregatedListTargetPoolsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetTcpProxiesRequest.encode = function encode(message, writer) { + AggregatedListTargetPoolsRequest.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 AggregatedListTargetTcpProxiesRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest.verify|verify} messages. + * Encodes the specified AggregatedListTargetPoolsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListTargetPoolsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @static - * @param {google.cloud.compute.v1.IAggregatedListTargetTcpProxiesRequest} message AggregatedListTargetTcpProxiesRequest message or plain object to encode + * @param {google.cloud.compute.v1.IAggregatedListTargetPoolsRequest} message AggregatedListTargetPoolsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AggregatedListTargetTcpProxiesRequest.encodeDelimited = function encodeDelimited(message, writer) { + AggregatedListTargetPoolsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AggregatedListTargetTcpProxiesRequest message from the specified reader or buffer. + * Decodes an AggregatedListTargetPoolsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @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.AggregatedListTargetTcpProxiesRequest} AggregatedListTargetTcpProxiesRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetPoolsRequest} AggregatedListTargetPoolsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListTargetTcpProxiesRequest.decode = function decode(reader, length) { + AggregatedListTargetPoolsRequest.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.AggregatedListTargetTcpProxiesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.AggregatedListTargetPoolsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -26893,30 +26893,30 @@ }; /** - * Decodes an AggregatedListTargetTcpProxiesRequest message from the specified reader or buffer, length delimited. + * Decodes an AggregatedListTargetPoolsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest} AggregatedListTargetTcpProxiesRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetPoolsRequest} AggregatedListTargetPoolsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AggregatedListTargetTcpProxiesRequest.decodeDelimited = function decodeDelimited(reader) { + AggregatedListTargetPoolsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AggregatedListTargetTcpProxiesRequest message. + * Verifies an AggregatedListTargetPoolsRequest message. * @function verify - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AggregatedListTargetTcpProxiesRequest.verify = function verify(message) { + AggregatedListTargetPoolsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; @@ -26957,17 +26957,17 @@ }; /** - * Creates an AggregatedListTargetTcpProxiesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AggregatedListTargetPoolsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest} AggregatedListTargetTcpProxiesRequest + * @returns {google.cloud.compute.v1.AggregatedListTargetPoolsRequest} AggregatedListTargetPoolsRequest */ - AggregatedListTargetTcpProxiesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest) + AggregatedListTargetPoolsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListTargetPoolsRequest) return object; - var message = new $root.google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest(); + var message = new $root.google.cloud.compute.v1.AggregatedListTargetPoolsRequest(); if (object.filter != null) message.filter = String(object.filter); if (object.includeAllScopes != null) @@ -26986,15 +26986,15 @@ }; /** - * Creates a plain object from an AggregatedListTargetTcpProxiesRequest message. Also converts values to other types if specified. + * Creates a plain object from an AggregatedListTargetPoolsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @static - * @param {google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest} message AggregatedListTargetTcpProxiesRequest + * @param {google.cloud.compute.v1.AggregatedListTargetPoolsRequest} message AggregatedListTargetPoolsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AggregatedListTargetTcpProxiesRequest.toObject = function toObject(message, options) { + AggregatedListTargetPoolsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -27036,58 +27036,58 @@ }; /** - * Converts this AggregatedListTargetTcpProxiesRequest to JSON. + * Converts this AggregatedListTargetPoolsRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @instance * @returns {Object.} JSON object */ - AggregatedListTargetTcpProxiesRequest.prototype.toJSON = function toJSON() { + AggregatedListTargetPoolsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AggregatedListTargetTcpProxiesRequest + * Gets the default type url for AggregatedListTargetPoolsRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest + * @memberof google.cloud.compute.v1.AggregatedListTargetPoolsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AggregatedListTargetTcpProxiesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AggregatedListTargetPoolsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetTcpProxiesRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListTargetPoolsRequest"; }; - return AggregatedListTargetTcpProxiesRequest; + 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) @@ -27095,152 +27095,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")) @@ -27261,33 +27261,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) { @@ -27328,30 +27328,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 = {}; @@ -27392,17 +27392,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) @@ -27421,15 +27421,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 = {}; @@ -27471,58 +27471,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) @@ -27530,152 +27530,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")) @@ -27696,33 +27696,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) { @@ -27763,30 +27763,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 = {}; @@ -27827,17 +27827,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) @@ -27856,15 +27856,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 = {}; @@ -27906,58 +27906,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) @@ -27965,152 +27965,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")) @@ -28131,33 +28131,468 @@ }; /** - * 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) { + 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 AggregatedListUrlMapsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + AggregatedListUrlMapsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AggregatedListUrlMapsRequest message. + * @function verify + * @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 + */ + AggregatedListUrlMapsRequest.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 AggregatedListUrlMapsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.AggregatedListUrlMapsRequest} AggregatedListUrlMapsRequest + */ + AggregatedListUrlMapsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.AggregatedListUrlMapsRequest) + return object; + var message = new $root.google.cloud.compute.v1.AggregatedListUrlMapsRequest(); + 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 AggregatedListUrlMapsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @static + * @param {google.cloud.compute.v1.AggregatedListUrlMapsRequest} message AggregatedListUrlMapsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AggregatedListUrlMapsRequest.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 AggregatedListUrlMapsRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @instance + * @returns {Object.} JSON object + */ + AggregatedListUrlMapsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for AggregatedListUrlMapsRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.AggregatedListUrlMapsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AggregatedListUrlMapsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.AggregatedListUrlMapsRequest"; + }; + + return AggregatedListUrlMapsRequest; + })(); + + v1.AggregatedListVpnGatewaysRequest = (function() { + + /** + * Properties of an AggregatedListVpnGatewaysRequest. + * @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 + */ + + /** + * Constructs a new AggregatedListVpnGatewaysRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an AggregatedListVpnGatewaysRequest. + * @implements IAggregatedListVpnGatewaysRequest + * @constructor + * @param {google.cloud.compute.v1.IAggregatedListVpnGatewaysRequest=} [properties] Properties to set + */ + function AggregatedListVpnGatewaysRequest(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]]; + } + + /** + * AggregatedListVpnGatewaysRequest filter. + * @member {string|null|undefined} filter + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @instance + */ + AggregatedListVpnGatewaysRequest.prototype.filter = null; + + /** + * AggregatedListVpnGatewaysRequest includeAllScopes. + * @member {boolean|null|undefined} includeAllScopes + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @instance + */ + AggregatedListVpnGatewaysRequest.prototype.includeAllScopes = null; + + /** + * AggregatedListVpnGatewaysRequest maxResults. + * @member {number|null|undefined} maxResults + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @instance + */ + AggregatedListVpnGatewaysRequest.prototype.maxResults = null; + + /** + * AggregatedListVpnGatewaysRequest orderBy. + * @member {string|null|undefined} orderBy + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @instance + */ + AggregatedListVpnGatewaysRequest.prototype.orderBy = null; + + /** + * AggregatedListVpnGatewaysRequest pageToken. + * @member {string|null|undefined} pageToken + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @instance + */ + AggregatedListVpnGatewaysRequest.prototype.pageToken = null; + + /** + * AggregatedListVpnGatewaysRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @instance + */ + AggregatedListVpnGatewaysRequest.prototype.project = ""; + + /** + * AggregatedListVpnGatewaysRequest returnPartialSuccess. + * @member {boolean|null|undefined} returnPartialSuccess + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @instance + */ + AggregatedListVpnGatewaysRequest.prototype.returnPartialSuccess = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * AggregatedListVpnGatewaysRequest _filter. + * @member {"filter"|undefined} _filter + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @instance + */ + Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_filter", { + get: $util.oneOfGetter($oneOfFields = ["filter"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * AggregatedListVpnGatewaysRequest _includeAllScopes. + * @member {"includeAllScopes"|undefined} _includeAllScopes + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @instance + */ + Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_includeAllScopes", { + get: $util.oneOfGetter($oneOfFields = ["includeAllScopes"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * AggregatedListVpnGatewaysRequest _maxResults. + * @member {"maxResults"|undefined} _maxResults + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @instance + */ + Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_maxResults", { + get: $util.oneOfGetter($oneOfFields = ["maxResults"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * AggregatedListVpnGatewaysRequest _orderBy. + * @member {"orderBy"|undefined} _orderBy + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @instance + */ + Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_orderBy", { + get: $util.oneOfGetter($oneOfFields = ["orderBy"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * AggregatedListVpnGatewaysRequest _pageToken. + * @member {"pageToken"|undefined} _pageToken + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @instance + */ + Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_pageToken", { + get: $util.oneOfGetter($oneOfFields = ["pageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * AggregatedListVpnGatewaysRequest _returnPartialSuccess. + * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @instance + */ + Object.defineProperty(AggregatedListVpnGatewaysRequest.prototype, "_returnPartialSuccess", { + get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new AggregatedListVpnGatewaysRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @static + * @param {google.cloud.compute.v1.IAggregatedListVpnGatewaysRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.AggregatedListVpnGatewaysRequest} AggregatedListVpnGatewaysRequest instance + */ + AggregatedListVpnGatewaysRequest.create = function create(properties) { + return new AggregatedListVpnGatewaysRequest(properties); + }; + + /** + * Encodes the specified AggregatedListVpnGatewaysRequest message. Does not implicitly {@link google.cloud.compute.v1.AggregatedListVpnGatewaysRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @static + * @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 + */ + AggregatedListVpnGatewaysRequest.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 AggregatedListVpnGatewaysRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.AggregatedListVpnGatewaysRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.AggregatedListVpnGatewaysRequest + * @static + * @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 + */ + AggregatedListVpnGatewaysRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AggregatedListVpnGatewaysRequest message from the specified reader or buffer. + * @function decode + * @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.AggregatedListVpnGatewaysRequest} AggregatedListVpnGatewaysRequest + * @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) { + 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(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -69149,6 +69584,298 @@ return DeleteMachineImageRequest; })(); + v1.DeleteNetworkAttachmentRequest = (function() { + + /** + * Properties of a DeleteNetworkAttachmentRequest. + * @memberof google.cloud.compute.v1 + * @interface IDeleteNetworkAttachmentRequest + * @property {string|null} [networkAttachment] DeleteNetworkAttachmentRequest networkAttachment + * @property {string|null} [project] DeleteNetworkAttachmentRequest project + * @property {string|null} [region] DeleteNetworkAttachmentRequest region + * @property {string|null} [requestId] DeleteNetworkAttachmentRequest requestId + */ + + /** + * Constructs a new DeleteNetworkAttachmentRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a DeleteNetworkAttachmentRequest. + * @implements IDeleteNetworkAttachmentRequest + * @constructor + * @param {google.cloud.compute.v1.IDeleteNetworkAttachmentRequest=} [properties] Properties to set + */ + function DeleteNetworkAttachmentRequest(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]]; + } + + /** + * DeleteNetworkAttachmentRequest networkAttachment. + * @member {string} networkAttachment + * @memberof google.cloud.compute.v1.DeleteNetworkAttachmentRequest + * @instance + */ + DeleteNetworkAttachmentRequest.prototype.networkAttachment = ""; + + /** + * DeleteNetworkAttachmentRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.DeleteNetworkAttachmentRequest + * @instance + */ + DeleteNetworkAttachmentRequest.prototype.project = ""; + + /** + * DeleteNetworkAttachmentRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.DeleteNetworkAttachmentRequest + * @instance + */ + DeleteNetworkAttachmentRequest.prototype.region = ""; + + /** + * DeleteNetworkAttachmentRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1.DeleteNetworkAttachmentRequest + * @instance + */ + DeleteNetworkAttachmentRequest.prototype.requestId = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * DeleteNetworkAttachmentRequest _requestId. + * @member {"requestId"|undefined} _requestId + * @memberof google.cloud.compute.v1.DeleteNetworkAttachmentRequest + * @instance + */ + Object.defineProperty(DeleteNetworkAttachmentRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new DeleteNetworkAttachmentRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.DeleteNetworkAttachmentRequest + * @static + * @param {google.cloud.compute.v1.IDeleteNetworkAttachmentRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.DeleteNetworkAttachmentRequest} DeleteNetworkAttachmentRequest instance + */ + DeleteNetworkAttachmentRequest.create = function create(properties) { + return new DeleteNetworkAttachmentRequest(properties); + }; + + /** + * Encodes the specified DeleteNetworkAttachmentRequest message. Does not implicitly {@link google.cloud.compute.v1.DeleteNetworkAttachmentRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.DeleteNetworkAttachmentRequest + * @static + * @param {google.cloud.compute.v1.IDeleteNetworkAttachmentRequest} message DeleteNetworkAttachmentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteNetworkAttachmentRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.networkAttachment != null && Object.hasOwnProperty.call(message, "networkAttachment")) + writer.uint32(/* id 224644052, wireType 2 =*/1797152418).string(message.networkAttachment); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + return writer; + }; + + /** + * Encodes the specified DeleteNetworkAttachmentRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.DeleteNetworkAttachmentRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.DeleteNetworkAttachmentRequest + * @static + * @param {google.cloud.compute.v1.IDeleteNetworkAttachmentRequest} message DeleteNetworkAttachmentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteNetworkAttachmentRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteNetworkAttachmentRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.DeleteNetworkAttachmentRequest + * @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.DeleteNetworkAttachmentRequest} DeleteNetworkAttachmentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteNetworkAttachmentRequest.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.DeleteNetworkAttachmentRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 224644052: { + message.networkAttachment = reader.string(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + case 37109963: { + message.requestId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeleteNetworkAttachmentRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.DeleteNetworkAttachmentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.DeleteNetworkAttachmentRequest} DeleteNetworkAttachmentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteNetworkAttachmentRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteNetworkAttachmentRequest message. + * @function verify + * @memberof google.cloud.compute.v1.DeleteNetworkAttachmentRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteNetworkAttachmentRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.networkAttachment != null && message.hasOwnProperty("networkAttachment")) + if (!$util.isString(message.networkAttachment)) + return "networkAttachment: string expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) { + properties._requestId = 1; + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + } + return null; + }; + + /** + * Creates a DeleteNetworkAttachmentRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.DeleteNetworkAttachmentRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.DeleteNetworkAttachmentRequest} DeleteNetworkAttachmentRequest + */ + DeleteNetworkAttachmentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.DeleteNetworkAttachmentRequest) + return object; + var message = new $root.google.cloud.compute.v1.DeleteNetworkAttachmentRequest(); + if (object.networkAttachment != null) + message.networkAttachment = String(object.networkAttachment); + if (object.project != null) + message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); + if (object.requestId != null) + message.requestId = String(object.requestId); + return message; + }; + + /** + * Creates a plain object from a DeleteNetworkAttachmentRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.DeleteNetworkAttachmentRequest + * @static + * @param {google.cloud.compute.v1.DeleteNetworkAttachmentRequest} message DeleteNetworkAttachmentRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteNetworkAttachmentRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.networkAttachment = ""; + object.project = ""; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) { + object.requestId = message.requestId; + if (options.oneofs) + object._requestId = "requestId"; + } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.networkAttachment != null && message.hasOwnProperty("networkAttachment")) + object.networkAttachment = message.networkAttachment; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + return object; + }; + + /** + * Converts this DeleteNetworkAttachmentRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.DeleteNetworkAttachmentRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteNetworkAttachmentRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeleteNetworkAttachmentRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.DeleteNetworkAttachmentRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteNetworkAttachmentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.DeleteNetworkAttachmentRequest"; + }; + + return DeleteNetworkAttachmentRequest; + })(); + v1.DeleteNetworkEdgeSecurityServiceRequest = (function() { /** @@ -117585,6 +118312,298 @@ return GetIamPolicyMachineImageRequest; })(); + v1.GetIamPolicyNetworkAttachmentRequest = (function() { + + /** + * Properties of a GetIamPolicyNetworkAttachmentRequest. + * @memberof google.cloud.compute.v1 + * @interface IGetIamPolicyNetworkAttachmentRequest + * @property {number|null} [optionsRequestedPolicyVersion] GetIamPolicyNetworkAttachmentRequest optionsRequestedPolicyVersion + * @property {string|null} [project] GetIamPolicyNetworkAttachmentRequest project + * @property {string|null} [region] GetIamPolicyNetworkAttachmentRequest region + * @property {string|null} [resource] GetIamPolicyNetworkAttachmentRequest resource + */ + + /** + * Constructs a new GetIamPolicyNetworkAttachmentRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a GetIamPolicyNetworkAttachmentRequest. + * @implements IGetIamPolicyNetworkAttachmentRequest + * @constructor + * @param {google.cloud.compute.v1.IGetIamPolicyNetworkAttachmentRequest=} [properties] Properties to set + */ + function GetIamPolicyNetworkAttachmentRequest(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]]; + } + + /** + * GetIamPolicyNetworkAttachmentRequest optionsRequestedPolicyVersion. + * @member {number|null|undefined} optionsRequestedPolicyVersion + * @memberof google.cloud.compute.v1.GetIamPolicyNetworkAttachmentRequest + * @instance + */ + GetIamPolicyNetworkAttachmentRequest.prototype.optionsRequestedPolicyVersion = null; + + /** + * GetIamPolicyNetworkAttachmentRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.GetIamPolicyNetworkAttachmentRequest + * @instance + */ + GetIamPolicyNetworkAttachmentRequest.prototype.project = ""; + + /** + * GetIamPolicyNetworkAttachmentRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.GetIamPolicyNetworkAttachmentRequest + * @instance + */ + GetIamPolicyNetworkAttachmentRequest.prototype.region = ""; + + /** + * GetIamPolicyNetworkAttachmentRequest resource. + * @member {string} resource + * @memberof google.cloud.compute.v1.GetIamPolicyNetworkAttachmentRequest + * @instance + */ + GetIamPolicyNetworkAttachmentRequest.prototype.resource = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * GetIamPolicyNetworkAttachmentRequest _optionsRequestedPolicyVersion. + * @member {"optionsRequestedPolicyVersion"|undefined} _optionsRequestedPolicyVersion + * @memberof google.cloud.compute.v1.GetIamPolicyNetworkAttachmentRequest + * @instance + */ + Object.defineProperty(GetIamPolicyNetworkAttachmentRequest.prototype, "_optionsRequestedPolicyVersion", { + get: $util.oneOfGetter($oneOfFields = ["optionsRequestedPolicyVersion"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new GetIamPolicyNetworkAttachmentRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.GetIamPolicyNetworkAttachmentRequest + * @static + * @param {google.cloud.compute.v1.IGetIamPolicyNetworkAttachmentRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.GetIamPolicyNetworkAttachmentRequest} GetIamPolicyNetworkAttachmentRequest instance + */ + GetIamPolicyNetworkAttachmentRequest.create = function create(properties) { + return new GetIamPolicyNetworkAttachmentRequest(properties); + }; + + /** + * Encodes the specified GetIamPolicyNetworkAttachmentRequest message. Does not implicitly {@link google.cloud.compute.v1.GetIamPolicyNetworkAttachmentRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.GetIamPolicyNetworkAttachmentRequest + * @static + * @param {google.cloud.compute.v1.IGetIamPolicyNetworkAttachmentRequest} message GetIamPolicyNetworkAttachmentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetIamPolicyNetworkAttachmentRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) + writer.uint32(/* id 195806222, wireType 2 =*/1566449778).string(message.resource); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.optionsRequestedPolicyVersion != null && Object.hasOwnProperty.call(message, "optionsRequestedPolicyVersion")) + writer.uint32(/* id 499220029, wireType 0 =*/3993760232).int32(message.optionsRequestedPolicyVersion); + return writer; + }; + + /** + * Encodes the specified GetIamPolicyNetworkAttachmentRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.GetIamPolicyNetworkAttachmentRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.GetIamPolicyNetworkAttachmentRequest + * @static + * @param {google.cloud.compute.v1.IGetIamPolicyNetworkAttachmentRequest} message GetIamPolicyNetworkAttachmentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetIamPolicyNetworkAttachmentRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetIamPolicyNetworkAttachmentRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.GetIamPolicyNetworkAttachmentRequest + * @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.GetIamPolicyNetworkAttachmentRequest} GetIamPolicyNetworkAttachmentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetIamPolicyNetworkAttachmentRequest.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.GetIamPolicyNetworkAttachmentRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 499220029: { + message.optionsRequestedPolicyVersion = reader.int32(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + case 195806222: { + message.resource = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetIamPolicyNetworkAttachmentRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.GetIamPolicyNetworkAttachmentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.GetIamPolicyNetworkAttachmentRequest} GetIamPolicyNetworkAttachmentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetIamPolicyNetworkAttachmentRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetIamPolicyNetworkAttachmentRequest message. + * @function verify + * @memberof google.cloud.compute.v1.GetIamPolicyNetworkAttachmentRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetIamPolicyNetworkAttachmentRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.optionsRequestedPolicyVersion != null && message.hasOwnProperty("optionsRequestedPolicyVersion")) { + properties._optionsRequestedPolicyVersion = 1; + if (!$util.isInteger(message.optionsRequestedPolicyVersion)) + return "optionsRequestedPolicyVersion: integer expected"; + } + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; + if (message.resource != null && message.hasOwnProperty("resource")) + if (!$util.isString(message.resource)) + return "resource: string expected"; + return null; + }; + + /** + * Creates a GetIamPolicyNetworkAttachmentRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.GetIamPolicyNetworkAttachmentRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.GetIamPolicyNetworkAttachmentRequest} GetIamPolicyNetworkAttachmentRequest + */ + GetIamPolicyNetworkAttachmentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.GetIamPolicyNetworkAttachmentRequest) + return object; + var message = new $root.google.cloud.compute.v1.GetIamPolicyNetworkAttachmentRequest(); + if (object.optionsRequestedPolicyVersion != null) + message.optionsRequestedPolicyVersion = object.optionsRequestedPolicyVersion | 0; + if (object.project != null) + message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); + if (object.resource != null) + message.resource = String(object.resource); + return message; + }; + + /** + * Creates a plain object from a GetIamPolicyNetworkAttachmentRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.GetIamPolicyNetworkAttachmentRequest + * @static + * @param {google.cloud.compute.v1.GetIamPolicyNetworkAttachmentRequest} message GetIamPolicyNetworkAttachmentRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetIamPolicyNetworkAttachmentRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.resource = ""; + object.project = ""; + } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.resource != null && message.hasOwnProperty("resource")) + object.resource = message.resource; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.optionsRequestedPolicyVersion != null && message.hasOwnProperty("optionsRequestedPolicyVersion")) { + object.optionsRequestedPolicyVersion = message.optionsRequestedPolicyVersion; + if (options.oneofs) + object._optionsRequestedPolicyVersion = "optionsRequestedPolicyVersion"; + } + return object; + }; + + /** + * Converts this GetIamPolicyNetworkAttachmentRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.GetIamPolicyNetworkAttachmentRequest + * @instance + * @returns {Object.} JSON object + */ + GetIamPolicyNetworkAttachmentRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetIamPolicyNetworkAttachmentRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.GetIamPolicyNetworkAttachmentRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetIamPolicyNetworkAttachmentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.GetIamPolicyNetworkAttachmentRequest"; + }; + + return GetIamPolicyNetworkAttachmentRequest; + })(); + v1.GetIamPolicyNetworkFirewallPolicyRequest = (function() { /** @@ -124284,6 +125303,256 @@ return GetNatMappingInfoRoutersRequest; })(); + v1.GetNetworkAttachmentRequest = (function() { + + /** + * Properties of a GetNetworkAttachmentRequest. + * @memberof google.cloud.compute.v1 + * @interface IGetNetworkAttachmentRequest + * @property {string|null} [networkAttachment] GetNetworkAttachmentRequest networkAttachment + * @property {string|null} [project] GetNetworkAttachmentRequest project + * @property {string|null} [region] GetNetworkAttachmentRequest region + */ + + /** + * Constructs a new GetNetworkAttachmentRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a GetNetworkAttachmentRequest. + * @implements IGetNetworkAttachmentRequest + * @constructor + * @param {google.cloud.compute.v1.IGetNetworkAttachmentRequest=} [properties] Properties to set + */ + function GetNetworkAttachmentRequest(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]]; + } + + /** + * GetNetworkAttachmentRequest networkAttachment. + * @member {string} networkAttachment + * @memberof google.cloud.compute.v1.GetNetworkAttachmentRequest + * @instance + */ + GetNetworkAttachmentRequest.prototype.networkAttachment = ""; + + /** + * GetNetworkAttachmentRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.GetNetworkAttachmentRequest + * @instance + */ + GetNetworkAttachmentRequest.prototype.project = ""; + + /** + * GetNetworkAttachmentRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.GetNetworkAttachmentRequest + * @instance + */ + GetNetworkAttachmentRequest.prototype.region = ""; + + /** + * Creates a new GetNetworkAttachmentRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.GetNetworkAttachmentRequest + * @static + * @param {google.cloud.compute.v1.IGetNetworkAttachmentRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.GetNetworkAttachmentRequest} GetNetworkAttachmentRequest instance + */ + GetNetworkAttachmentRequest.create = function create(properties) { + return new GetNetworkAttachmentRequest(properties); + }; + + /** + * Encodes the specified GetNetworkAttachmentRequest message. Does not implicitly {@link google.cloud.compute.v1.GetNetworkAttachmentRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.GetNetworkAttachmentRequest + * @static + * @param {google.cloud.compute.v1.IGetNetworkAttachmentRequest} message GetNetworkAttachmentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetNetworkAttachmentRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.networkAttachment != null && Object.hasOwnProperty.call(message, "networkAttachment")) + writer.uint32(/* id 224644052, wireType 2 =*/1797152418).string(message.networkAttachment); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + return writer; + }; + + /** + * Encodes the specified GetNetworkAttachmentRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.GetNetworkAttachmentRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.GetNetworkAttachmentRequest + * @static + * @param {google.cloud.compute.v1.IGetNetworkAttachmentRequest} message GetNetworkAttachmentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetNetworkAttachmentRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetNetworkAttachmentRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.GetNetworkAttachmentRequest + * @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.GetNetworkAttachmentRequest} GetNetworkAttachmentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetNetworkAttachmentRequest.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.GetNetworkAttachmentRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 224644052: { + message.networkAttachment = reader.string(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetNetworkAttachmentRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.GetNetworkAttachmentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.GetNetworkAttachmentRequest} GetNetworkAttachmentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetNetworkAttachmentRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetNetworkAttachmentRequest message. + * @function verify + * @memberof google.cloud.compute.v1.GetNetworkAttachmentRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetNetworkAttachmentRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.networkAttachment != null && message.hasOwnProperty("networkAttachment")) + if (!$util.isString(message.networkAttachment)) + return "networkAttachment: string expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; + return null; + }; + + /** + * Creates a GetNetworkAttachmentRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.GetNetworkAttachmentRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.GetNetworkAttachmentRequest} GetNetworkAttachmentRequest + */ + GetNetworkAttachmentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.GetNetworkAttachmentRequest) + return object; + var message = new $root.google.cloud.compute.v1.GetNetworkAttachmentRequest(); + if (object.networkAttachment != null) + message.networkAttachment = String(object.networkAttachment); + if (object.project != null) + message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); + return message; + }; + + /** + * Creates a plain object from a GetNetworkAttachmentRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.GetNetworkAttachmentRequest + * @static + * @param {google.cloud.compute.v1.GetNetworkAttachmentRequest} message GetNetworkAttachmentRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetNetworkAttachmentRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.networkAttachment = ""; + object.project = ""; + } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.networkAttachment != null && message.hasOwnProperty("networkAttachment")) + object.networkAttachment = message.networkAttachment; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + return object; + }; + + /** + * Converts this GetNetworkAttachmentRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.GetNetworkAttachmentRequest + * @instance + * @returns {Object.} JSON object + */ + GetNetworkAttachmentRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetNetworkAttachmentRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.GetNetworkAttachmentRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetNetworkAttachmentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.GetNetworkAttachmentRequest"; + }; + + return GetNetworkAttachmentRequest; + })(); + v1.GetNetworkEdgeSecurityServiceRequest = (function() { /** @@ -164103,6 +165372,303 @@ return InsertMachineImageRequest; })(); + v1.InsertNetworkAttachmentRequest = (function() { + + /** + * Properties of an InsertNetworkAttachmentRequest. + * @memberof google.cloud.compute.v1 + * @interface IInsertNetworkAttachmentRequest + * @property {google.cloud.compute.v1.INetworkAttachment|null} [networkAttachmentResource] InsertNetworkAttachmentRequest networkAttachmentResource + * @property {string|null} [project] InsertNetworkAttachmentRequest project + * @property {string|null} [region] InsertNetworkAttachmentRequest region + * @property {string|null} [requestId] InsertNetworkAttachmentRequest requestId + */ + + /** + * Constructs a new InsertNetworkAttachmentRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents an InsertNetworkAttachmentRequest. + * @implements IInsertNetworkAttachmentRequest + * @constructor + * @param {google.cloud.compute.v1.IInsertNetworkAttachmentRequest=} [properties] Properties to set + */ + function InsertNetworkAttachmentRequest(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]]; + } + + /** + * InsertNetworkAttachmentRequest networkAttachmentResource. + * @member {google.cloud.compute.v1.INetworkAttachment|null|undefined} networkAttachmentResource + * @memberof google.cloud.compute.v1.InsertNetworkAttachmentRequest + * @instance + */ + InsertNetworkAttachmentRequest.prototype.networkAttachmentResource = null; + + /** + * InsertNetworkAttachmentRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.InsertNetworkAttachmentRequest + * @instance + */ + InsertNetworkAttachmentRequest.prototype.project = ""; + + /** + * InsertNetworkAttachmentRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.InsertNetworkAttachmentRequest + * @instance + */ + InsertNetworkAttachmentRequest.prototype.region = ""; + + /** + * InsertNetworkAttachmentRequest requestId. + * @member {string|null|undefined} requestId + * @memberof google.cloud.compute.v1.InsertNetworkAttachmentRequest + * @instance + */ + InsertNetworkAttachmentRequest.prototype.requestId = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * InsertNetworkAttachmentRequest _requestId. + * @member {"requestId"|undefined} _requestId + * @memberof google.cloud.compute.v1.InsertNetworkAttachmentRequest + * @instance + */ + Object.defineProperty(InsertNetworkAttachmentRequest.prototype, "_requestId", { + get: $util.oneOfGetter($oneOfFields = ["requestId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InsertNetworkAttachmentRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.InsertNetworkAttachmentRequest + * @static + * @param {google.cloud.compute.v1.IInsertNetworkAttachmentRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.InsertNetworkAttachmentRequest} InsertNetworkAttachmentRequest instance + */ + InsertNetworkAttachmentRequest.create = function create(properties) { + return new InsertNetworkAttachmentRequest(properties); + }; + + /** + * Encodes the specified InsertNetworkAttachmentRequest message. Does not implicitly {@link google.cloud.compute.v1.InsertNetworkAttachmentRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.InsertNetworkAttachmentRequest + * @static + * @param {google.cloud.compute.v1.IInsertNetworkAttachmentRequest} message InsertNetworkAttachmentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InsertNetworkAttachmentRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.requestId != null && Object.hasOwnProperty.call(message, "requestId")) + writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.networkAttachmentResource != null && Object.hasOwnProperty.call(message, "networkAttachmentResource")) + $root.google.cloud.compute.v1.NetworkAttachment.encode(message.networkAttachmentResource, writer.uint32(/* id 210974745, wireType 2 =*/1687797962).fork()).ldelim(); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + return writer; + }; + + /** + * Encodes the specified InsertNetworkAttachmentRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.InsertNetworkAttachmentRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.InsertNetworkAttachmentRequest + * @static + * @param {google.cloud.compute.v1.IInsertNetworkAttachmentRequest} message InsertNetworkAttachmentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InsertNetworkAttachmentRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InsertNetworkAttachmentRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.InsertNetworkAttachmentRequest + * @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.InsertNetworkAttachmentRequest} InsertNetworkAttachmentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InsertNetworkAttachmentRequest.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.InsertNetworkAttachmentRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 210974745: { + message.networkAttachmentResource = $root.google.cloud.compute.v1.NetworkAttachment.decode(reader, reader.uint32()); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + case 37109963: { + message.requestId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InsertNetworkAttachmentRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.InsertNetworkAttachmentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.InsertNetworkAttachmentRequest} InsertNetworkAttachmentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InsertNetworkAttachmentRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InsertNetworkAttachmentRequest message. + * @function verify + * @memberof google.cloud.compute.v1.InsertNetworkAttachmentRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InsertNetworkAttachmentRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.networkAttachmentResource != null && message.hasOwnProperty("networkAttachmentResource")) { + var error = $root.google.cloud.compute.v1.NetworkAttachment.verify(message.networkAttachmentResource); + if (error) + return "networkAttachmentResource." + error; + } + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) { + properties._requestId = 1; + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + } + return null; + }; + + /** + * Creates an InsertNetworkAttachmentRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.InsertNetworkAttachmentRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.InsertNetworkAttachmentRequest} InsertNetworkAttachmentRequest + */ + InsertNetworkAttachmentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.InsertNetworkAttachmentRequest) + return object; + var message = new $root.google.cloud.compute.v1.InsertNetworkAttachmentRequest(); + if (object.networkAttachmentResource != null) { + if (typeof object.networkAttachmentResource !== "object") + throw TypeError(".google.cloud.compute.v1.InsertNetworkAttachmentRequest.networkAttachmentResource: object expected"); + message.networkAttachmentResource = $root.google.cloud.compute.v1.NetworkAttachment.fromObject(object.networkAttachmentResource); + } + if (object.project != null) + message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); + if (object.requestId != null) + message.requestId = String(object.requestId); + return message; + }; + + /** + * Creates a plain object from an InsertNetworkAttachmentRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.InsertNetworkAttachmentRequest + * @static + * @param {google.cloud.compute.v1.InsertNetworkAttachmentRequest} message InsertNetworkAttachmentRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InsertNetworkAttachmentRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.networkAttachmentResource = null; + object.project = ""; + } + if (message.requestId != null && message.hasOwnProperty("requestId")) { + object.requestId = message.requestId; + if (options.oneofs) + object._requestId = "requestId"; + } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.networkAttachmentResource != null && message.hasOwnProperty("networkAttachmentResource")) + object.networkAttachmentResource = $root.google.cloud.compute.v1.NetworkAttachment.toObject(message.networkAttachmentResource, options); + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + return object; + }; + + /** + * Converts this InsertNetworkAttachmentRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.InsertNetworkAttachmentRequest + * @instance + * @returns {Object.} JSON object + */ + InsertNetworkAttachmentRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InsertNetworkAttachmentRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.InsertNetworkAttachmentRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InsertNetworkAttachmentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.InsertNetworkAttachmentRequest"; + }; + + return InsertNetworkAttachmentRequest; + })(); + v1.InsertNetworkEdgeSecurityServiceRequest = (function() { /** @@ -205570,6 +207136,8 @@ * @memberof google.cloud.compute.v1 * @interface IInterconnectDiagnostics * @property {Array.|null} [arpCaches] InterconnectDiagnostics arpCaches + * @property {string|null} [bundleAggregationType] InterconnectDiagnostics bundleAggregationType + * @property {string|null} [bundleOperationalStatus] InterconnectDiagnostics bundleOperationalStatus * @property {Array.|null} [links] InterconnectDiagnostics links * @property {string|null} [macAddress] InterconnectDiagnostics macAddress */ @@ -205599,6 +207167,22 @@ */ InterconnectDiagnostics.prototype.arpCaches = $util.emptyArray; + /** + * InterconnectDiagnostics bundleAggregationType. + * @member {string|null|undefined} bundleAggregationType + * @memberof google.cloud.compute.v1.InterconnectDiagnostics + * @instance + */ + InterconnectDiagnostics.prototype.bundleAggregationType = null; + + /** + * InterconnectDiagnostics bundleOperationalStatus. + * @member {string|null|undefined} bundleOperationalStatus + * @memberof google.cloud.compute.v1.InterconnectDiagnostics + * @instance + */ + InterconnectDiagnostics.prototype.bundleOperationalStatus = null; + /** * InterconnectDiagnostics links. * @member {Array.} links @@ -205618,6 +207202,28 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; + /** + * InterconnectDiagnostics _bundleAggregationType. + * @member {"bundleAggregationType"|undefined} _bundleAggregationType + * @memberof google.cloud.compute.v1.InterconnectDiagnostics + * @instance + */ + Object.defineProperty(InterconnectDiagnostics.prototype, "_bundleAggregationType", { + get: $util.oneOfGetter($oneOfFields = ["bundleAggregationType"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * InterconnectDiagnostics _bundleOperationalStatus. + * @member {"bundleOperationalStatus"|undefined} _bundleOperationalStatus + * @memberof google.cloud.compute.v1.InterconnectDiagnostics + * @instance + */ + Object.defineProperty(InterconnectDiagnostics.prototype, "_bundleOperationalStatus", { + get: $util.oneOfGetter($oneOfFields = ["bundleOperationalStatus"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * InterconnectDiagnostics _macAddress. * @member {"macAddress"|undefined} _macAddress @@ -205656,11 +207262,15 @@ if (message.links != null && message.links.length) for (var i = 0; i < message.links.length; ++i) $root.google.cloud.compute.v1.InterconnectDiagnosticsLinkStatus.encode(message.links[i], writer.uint32(/* id 102977465, wireType 2 =*/823819722).fork()).ldelim(); + if (message.bundleOperationalStatus != null && Object.hasOwnProperty.call(message, "bundleOperationalStatus")) + writer.uint32(/* id 106433500, wireType 2 =*/851468002).string(message.bundleOperationalStatus); if (message.macAddress != null && Object.hasOwnProperty.call(message, "macAddress")) writer.uint32(/* id 332540164, wireType 2 =*/2660321314).string(message.macAddress); if (message.arpCaches != null && message.arpCaches.length) for (var i = 0; i < message.arpCaches.length; ++i) $root.google.cloud.compute.v1.InterconnectDiagnosticsARPEntry.encode(message.arpCaches[i], writer.uint32(/* id 414591761, wireType 2 =*/3316734090).fork()).ldelim(); + if (message.bundleAggregationType != null && Object.hasOwnProperty.call(message, "bundleAggregationType")) + writer.uint32(/* id 434939028, wireType 2 =*/3479512226).string(message.bundleAggregationType); return writer; }; @@ -205701,6 +207311,14 @@ message.arpCaches.push($root.google.cloud.compute.v1.InterconnectDiagnosticsARPEntry.decode(reader, reader.uint32())); break; } + case 434939028: { + message.bundleAggregationType = reader.string(); + break; + } + case 106433500: { + message.bundleOperationalStatus = reader.string(); + break; + } case 102977465: { if (!(message.links && message.links.length)) message.links = []; @@ -205756,6 +207374,16 @@ return "arpCaches." + error; } } + if (message.bundleAggregationType != null && message.hasOwnProperty("bundleAggregationType")) { + properties._bundleAggregationType = 1; + if (!$util.isString(message.bundleAggregationType)) + return "bundleAggregationType: string expected"; + } + if (message.bundleOperationalStatus != null && message.hasOwnProperty("bundleOperationalStatus")) { + properties._bundleOperationalStatus = 1; + if (!$util.isString(message.bundleOperationalStatus)) + return "bundleOperationalStatus: string expected"; + } if (message.links != null && message.hasOwnProperty("links")) { if (!Array.isArray(message.links)) return "links: array expected"; @@ -205795,6 +207423,10 @@ message.arpCaches[i] = $root.google.cloud.compute.v1.InterconnectDiagnosticsARPEntry.fromObject(object.arpCaches[i]); } } + if (object.bundleAggregationType != null) + message.bundleAggregationType = String(object.bundleAggregationType); + if (object.bundleOperationalStatus != null) + message.bundleOperationalStatus = String(object.bundleOperationalStatus); if (object.links) { if (!Array.isArray(object.links)) throw TypeError(".google.cloud.compute.v1.InterconnectDiagnostics.links: array expected"); @@ -205832,6 +207464,11 @@ for (var j = 0; j < message.links.length; ++j) object.links[j] = $root.google.cloud.compute.v1.InterconnectDiagnosticsLinkStatus.toObject(message.links[j], options); } + if (message.bundleOperationalStatus != null && message.hasOwnProperty("bundleOperationalStatus")) { + object.bundleOperationalStatus = message.bundleOperationalStatus; + if (options.oneofs) + object._bundleOperationalStatus = "bundleOperationalStatus"; + } if (message.macAddress != null && message.hasOwnProperty("macAddress")) { object.macAddress = message.macAddress; if (options.oneofs) @@ -205842,6 +207479,11 @@ for (var j = 0; j < message.arpCaches.length; ++j) object.arpCaches[j] = $root.google.cloud.compute.v1.InterconnectDiagnosticsARPEntry.toObject(message.arpCaches[j], options); } + if (message.bundleAggregationType != null && message.hasOwnProperty("bundleAggregationType")) { + object.bundleAggregationType = message.bundleAggregationType; + if (options.oneofs) + object._bundleAggregationType = "bundleAggregationType"; + } return object; }; @@ -205871,6 +207513,38 @@ return typeUrlPrefix + "/google.cloud.compute.v1.InterconnectDiagnostics"; }; + /** + * BundleAggregationType enum. + * @name google.cloud.compute.v1.InterconnectDiagnostics.BundleAggregationType + * @enum {number} + * @property {number} UNDEFINED_BUNDLE_AGGREGATION_TYPE=0 UNDEFINED_BUNDLE_AGGREGATION_TYPE value + * @property {number} BUNDLE_AGGREGATION_TYPE_LACP=27758925 BUNDLE_AGGREGATION_TYPE_LACP value + * @property {number} BUNDLE_AGGREGATION_TYPE_STATIC=50678873 BUNDLE_AGGREGATION_TYPE_STATIC value + */ + InterconnectDiagnostics.BundleAggregationType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_BUNDLE_AGGREGATION_TYPE"] = 0; + values[valuesById[27758925] = "BUNDLE_AGGREGATION_TYPE_LACP"] = 27758925; + values[valuesById[50678873] = "BUNDLE_AGGREGATION_TYPE_STATIC"] = 50678873; + return values; + })(); + + /** + * BundleOperationalStatus enum. + * @name google.cloud.compute.v1.InterconnectDiagnostics.BundleOperationalStatus + * @enum {number} + * @property {number} UNDEFINED_BUNDLE_OPERATIONAL_STATUS=0 UNDEFINED_BUNDLE_OPERATIONAL_STATUS value + * @property {number} BUNDLE_OPERATIONAL_STATUS_DOWN=453842693 BUNDLE_OPERATIONAL_STATUS_DOWN value + * @property {number} BUNDLE_OPERATIONAL_STATUS_UP=161366462 BUNDLE_OPERATIONAL_STATUS_UP value + */ + InterconnectDiagnostics.BundleOperationalStatus = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_BUNDLE_OPERATIONAL_STATUS"] = 0; + values[valuesById[453842693] = "BUNDLE_OPERATIONAL_STATUS_DOWN"] = 453842693; + values[valuesById[161366462] = "BUNDLE_OPERATIONAL_STATUS_UP"] = 161366462; + return values; + })(); + return InterconnectDiagnostics; })(); @@ -206737,6 +208411,7 @@ * @property {string|null} [circuitId] InterconnectDiagnosticsLinkStatus circuitId * @property {string|null} [googleDemarc] InterconnectDiagnosticsLinkStatus googleDemarc * @property {google.cloud.compute.v1.IInterconnectDiagnosticsLinkLACPStatus|null} [lacpStatus] InterconnectDiagnosticsLinkStatus lacpStatus + * @property {string|null} [operationalStatus] InterconnectDiagnosticsLinkStatus operationalStatus * @property {google.cloud.compute.v1.IInterconnectDiagnosticsLinkOpticalPower|null} [receivingOpticalPower] InterconnectDiagnosticsLinkStatus receivingOpticalPower * @property {google.cloud.compute.v1.IInterconnectDiagnosticsLinkOpticalPower|null} [transmittingOpticalPower] InterconnectDiagnosticsLinkStatus transmittingOpticalPower */ @@ -206789,6 +208464,14 @@ */ InterconnectDiagnosticsLinkStatus.prototype.lacpStatus = null; + /** + * InterconnectDiagnosticsLinkStatus operationalStatus. + * @member {string|null|undefined} operationalStatus + * @memberof google.cloud.compute.v1.InterconnectDiagnosticsLinkStatus + * @instance + */ + InterconnectDiagnosticsLinkStatus.prototype.operationalStatus = null; + /** * InterconnectDiagnosticsLinkStatus receivingOpticalPower. * @member {google.cloud.compute.v1.IInterconnectDiagnosticsLinkOpticalPower|null|undefined} receivingOpticalPower @@ -206841,6 +208524,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * InterconnectDiagnosticsLinkStatus _operationalStatus. + * @member {"operationalStatus"|undefined} _operationalStatus + * @memberof google.cloud.compute.v1.InterconnectDiagnosticsLinkStatus + * @instance + */ + Object.defineProperty(InterconnectDiagnosticsLinkStatus.prototype, "_operationalStatus", { + get: $util.oneOfGetter($oneOfFields = ["operationalStatus"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * InterconnectDiagnosticsLinkStatus _receivingOpticalPower. * @member {"receivingOpticalPower"|undefined} _receivingOpticalPower @@ -206889,6 +208583,8 @@ writer = $Writer.create(); if (message.googleDemarc != null && Object.hasOwnProperty.call(message, "googleDemarc")) writer.uint32(/* id 51084, wireType 2 =*/408674).string(message.googleDemarc); + if (message.operationalStatus != null && Object.hasOwnProperty.call(message, "operationalStatus")) + writer.uint32(/* id 201070847, wireType 2 =*/1608566778).string(message.operationalStatus); if (message.circuitId != null && Object.hasOwnProperty.call(message, "circuitId")) writer.uint32(/* id 225180977, wireType 2 =*/1801447818).string(message.circuitId); if (message.receivingOpticalPower != null && Object.hasOwnProperty.call(message, "receivingOpticalPower")) @@ -206952,6 +208648,10 @@ message.lacpStatus = $root.google.cloud.compute.v1.InterconnectDiagnosticsLinkLACPStatus.decode(reader, reader.uint32()); break; } + case 201070847: { + message.operationalStatus = reader.string(); + break; + } case 244717279: { message.receivingOpticalPower = $root.google.cloud.compute.v1.InterconnectDiagnosticsLinkOpticalPower.decode(reader, reader.uint32()); break; @@ -207023,6 +208723,11 @@ return "lacpStatus." + error; } } + if (message.operationalStatus != null && message.hasOwnProperty("operationalStatus")) { + properties._operationalStatus = 1; + if (!$util.isString(message.operationalStatus)) + return "operationalStatus: string expected"; + } if (message.receivingOpticalPower != null && message.hasOwnProperty("receivingOpticalPower")) { properties._receivingOpticalPower = 1; { @@ -207073,6 +208778,8 @@ throw TypeError(".google.cloud.compute.v1.InterconnectDiagnosticsLinkStatus.lacpStatus: object expected"); message.lacpStatus = $root.google.cloud.compute.v1.InterconnectDiagnosticsLinkLACPStatus.fromObject(object.lacpStatus); } + if (object.operationalStatus != null) + message.operationalStatus = String(object.operationalStatus); if (object.receivingOpticalPower != null) { if (typeof object.receivingOpticalPower !== "object") throw TypeError(".google.cloud.compute.v1.InterconnectDiagnosticsLinkStatus.receivingOpticalPower: object expected"); @@ -207106,6 +208813,11 @@ if (options.oneofs) object._googleDemarc = "googleDemarc"; } + if (message.operationalStatus != null && message.hasOwnProperty("operationalStatus")) { + object.operationalStatus = message.operationalStatus; + if (options.oneofs) + object._operationalStatus = "operationalStatus"; + } if (message.circuitId != null && message.hasOwnProperty("circuitId")) { object.circuitId = message.circuitId; if (options.oneofs) @@ -207160,6 +208872,22 @@ return typeUrlPrefix + "/google.cloud.compute.v1.InterconnectDiagnosticsLinkStatus"; }; + /** + * OperationalStatus enum. + * @name google.cloud.compute.v1.InterconnectDiagnosticsLinkStatus.OperationalStatus + * @enum {number} + * @property {number} UNDEFINED_OPERATIONAL_STATUS=0 UNDEFINED_OPERATIONAL_STATUS value + * @property {number} LINK_OPERATIONAL_STATUS_DOWN=281653885 LINK_OPERATIONAL_STATUS_DOWN value + * @property {number} LINK_OPERATIONAL_STATUS_UP=305879862 LINK_OPERATIONAL_STATUS_UP value + */ + InterconnectDiagnosticsLinkStatus.OperationalStatus = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_OPERATIONAL_STATUS"] = 0; + values[valuesById[281653885] = "LINK_OPERATIONAL_STATUS_DOWN"] = 281653885; + values[valuesById[305879862] = "LINK_OPERATIONAL_STATUS_UP"] = 305879862; + return values; + })(); + return InterconnectDiagnosticsLinkStatus; })(); @@ -228472,6 +230200,427 @@ return ListManagedInstancesRegionInstanceGroupManagersRequest; })(); + v1.ListNetworkAttachmentsRequest = (function() { + + /** + * Properties of a ListNetworkAttachmentsRequest. + * @memberof google.cloud.compute.v1 + * @interface IListNetworkAttachmentsRequest + * @property {string|null} [filter] ListNetworkAttachmentsRequest filter + * @property {number|null} [maxResults] ListNetworkAttachmentsRequest maxResults + * @property {string|null} [orderBy] ListNetworkAttachmentsRequest orderBy + * @property {string|null} [pageToken] ListNetworkAttachmentsRequest pageToken + * @property {string|null} [project] ListNetworkAttachmentsRequest project + * @property {string|null} [region] ListNetworkAttachmentsRequest region + * @property {boolean|null} [returnPartialSuccess] ListNetworkAttachmentsRequest returnPartialSuccess + */ + + /** + * Constructs a new ListNetworkAttachmentsRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a ListNetworkAttachmentsRequest. + * @implements IListNetworkAttachmentsRequest + * @constructor + * @param {google.cloud.compute.v1.IListNetworkAttachmentsRequest=} [properties] Properties to set + */ + function ListNetworkAttachmentsRequest(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]]; + } + + /** + * ListNetworkAttachmentsRequest filter. + * @member {string|null|undefined} filter + * @memberof google.cloud.compute.v1.ListNetworkAttachmentsRequest + * @instance + */ + ListNetworkAttachmentsRequest.prototype.filter = null; + + /** + * ListNetworkAttachmentsRequest maxResults. + * @member {number|null|undefined} maxResults + * @memberof google.cloud.compute.v1.ListNetworkAttachmentsRequest + * @instance + */ + ListNetworkAttachmentsRequest.prototype.maxResults = null; + + /** + * ListNetworkAttachmentsRequest orderBy. + * @member {string|null|undefined} orderBy + * @memberof google.cloud.compute.v1.ListNetworkAttachmentsRequest + * @instance + */ + ListNetworkAttachmentsRequest.prototype.orderBy = null; + + /** + * ListNetworkAttachmentsRequest pageToken. + * @member {string|null|undefined} pageToken + * @memberof google.cloud.compute.v1.ListNetworkAttachmentsRequest + * @instance + */ + ListNetworkAttachmentsRequest.prototype.pageToken = null; + + /** + * ListNetworkAttachmentsRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.ListNetworkAttachmentsRequest + * @instance + */ + ListNetworkAttachmentsRequest.prototype.project = ""; + + /** + * ListNetworkAttachmentsRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.ListNetworkAttachmentsRequest + * @instance + */ + ListNetworkAttachmentsRequest.prototype.region = ""; + + /** + * ListNetworkAttachmentsRequest returnPartialSuccess. + * @member {boolean|null|undefined} returnPartialSuccess + * @memberof google.cloud.compute.v1.ListNetworkAttachmentsRequest + * @instance + */ + ListNetworkAttachmentsRequest.prototype.returnPartialSuccess = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ListNetworkAttachmentsRequest _filter. + * @member {"filter"|undefined} _filter + * @memberof google.cloud.compute.v1.ListNetworkAttachmentsRequest + * @instance + */ + Object.defineProperty(ListNetworkAttachmentsRequest.prototype, "_filter", { + get: $util.oneOfGetter($oneOfFields = ["filter"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * ListNetworkAttachmentsRequest _maxResults. + * @member {"maxResults"|undefined} _maxResults + * @memberof google.cloud.compute.v1.ListNetworkAttachmentsRequest + * @instance + */ + Object.defineProperty(ListNetworkAttachmentsRequest.prototype, "_maxResults", { + get: $util.oneOfGetter($oneOfFields = ["maxResults"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * ListNetworkAttachmentsRequest _orderBy. + * @member {"orderBy"|undefined} _orderBy + * @memberof google.cloud.compute.v1.ListNetworkAttachmentsRequest + * @instance + */ + Object.defineProperty(ListNetworkAttachmentsRequest.prototype, "_orderBy", { + get: $util.oneOfGetter($oneOfFields = ["orderBy"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * ListNetworkAttachmentsRequest _pageToken. + * @member {"pageToken"|undefined} _pageToken + * @memberof google.cloud.compute.v1.ListNetworkAttachmentsRequest + * @instance + */ + Object.defineProperty(ListNetworkAttachmentsRequest.prototype, "_pageToken", { + get: $util.oneOfGetter($oneOfFields = ["pageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * ListNetworkAttachmentsRequest _returnPartialSuccess. + * @member {"returnPartialSuccess"|undefined} _returnPartialSuccess + * @memberof google.cloud.compute.v1.ListNetworkAttachmentsRequest + * @instance + */ + Object.defineProperty(ListNetworkAttachmentsRequest.prototype, "_returnPartialSuccess", { + get: $util.oneOfGetter($oneOfFields = ["returnPartialSuccess"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ListNetworkAttachmentsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.ListNetworkAttachmentsRequest + * @static + * @param {google.cloud.compute.v1.IListNetworkAttachmentsRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.ListNetworkAttachmentsRequest} ListNetworkAttachmentsRequest instance + */ + ListNetworkAttachmentsRequest.create = function create(properties) { + return new ListNetworkAttachmentsRequest(properties); + }; + + /** + * Encodes the specified ListNetworkAttachmentsRequest message. Does not implicitly {@link google.cloud.compute.v1.ListNetworkAttachmentsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.ListNetworkAttachmentsRequest + * @static + * @param {google.cloud.compute.v1.IListNetworkAttachmentsRequest} message ListNetworkAttachmentsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListNetworkAttachmentsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 19994697, wireType 2 =*/159957578).string(message.pageToken); + if (message.maxResults != null && Object.hasOwnProperty.call(message, "maxResults")) + writer.uint32(/* id 54715419, wireType 0 =*/437723352).uint32(message.maxResults); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 160562920, wireType 2 =*/1284503362).string(message.orderBy); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 336120696, wireType 2 =*/2688965570).string(message.filter); + if (message.returnPartialSuccess != null && Object.hasOwnProperty.call(message, "returnPartialSuccess")) + writer.uint32(/* id 517198390, wireType 0 =*/4137587120).bool(message.returnPartialSuccess); + return writer; + }; + + /** + * Encodes the specified ListNetworkAttachmentsRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.ListNetworkAttachmentsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.ListNetworkAttachmentsRequest + * @static + * @param {google.cloud.compute.v1.IListNetworkAttachmentsRequest} message ListNetworkAttachmentsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListNetworkAttachmentsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListNetworkAttachmentsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.ListNetworkAttachmentsRequest + * @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.ListNetworkAttachmentsRequest} ListNetworkAttachmentsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListNetworkAttachmentsRequest.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.ListNetworkAttachmentsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 336120696: { + message.filter = reader.string(); + break; + } + case 54715419: { + message.maxResults = reader.uint32(); + break; + } + case 160562920: { + message.orderBy = reader.string(); + break; + } + case 19994697: { + message.pageToken = reader.string(); + break; + } + case 227560217: { + message.project = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + case 517198390: { + message.returnPartialSuccess = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListNetworkAttachmentsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.ListNetworkAttachmentsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.ListNetworkAttachmentsRequest} ListNetworkAttachmentsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListNetworkAttachmentsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListNetworkAttachmentsRequest message. + * @function verify + * @memberof google.cloud.compute.v1.ListNetworkAttachmentsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListNetworkAttachmentsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.filter != null && message.hasOwnProperty("filter")) { + properties._filter = 1; + if (!$util.isString(message.filter)) + return "filter: string expected"; + } + if (message.maxResults != null && message.hasOwnProperty("maxResults")) { + properties._maxResults = 1; + if (!$util.isInteger(message.maxResults)) + return "maxResults: integer expected"; + } + if (message.orderBy != null && message.hasOwnProperty("orderBy")) { + properties._orderBy = 1; + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; + } + if (message.pageToken != null && message.hasOwnProperty("pageToken")) { + properties._pageToken = 1; + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + } + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; + if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { + properties._returnPartialSuccess = 1; + if (typeof message.returnPartialSuccess !== "boolean") + return "returnPartialSuccess: boolean expected"; + } + return null; + }; + + /** + * Creates a ListNetworkAttachmentsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.ListNetworkAttachmentsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.ListNetworkAttachmentsRequest} ListNetworkAttachmentsRequest + */ + ListNetworkAttachmentsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.ListNetworkAttachmentsRequest) + return object; + var message = new $root.google.cloud.compute.v1.ListNetworkAttachmentsRequest(); + if (object.filter != null) + message.filter = String(object.filter); + if (object.maxResults != null) + message.maxResults = object.maxResults >>> 0; + if (object.orderBy != null) + message.orderBy = String(object.orderBy); + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.project != null) + message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); + if (object.returnPartialSuccess != null) + message.returnPartialSuccess = Boolean(object.returnPartialSuccess); + return message; + }; + + /** + * Creates a plain object from a ListNetworkAttachmentsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.ListNetworkAttachmentsRequest + * @static + * @param {google.cloud.compute.v1.ListNetworkAttachmentsRequest} message ListNetworkAttachmentsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListNetworkAttachmentsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.project = ""; + } + if (message.pageToken != null && message.hasOwnProperty("pageToken")) { + object.pageToken = message.pageToken; + if (options.oneofs) + object._pageToken = "pageToken"; + } + if (message.maxResults != null && message.hasOwnProperty("maxResults")) { + object.maxResults = message.maxResults; + if (options.oneofs) + object._maxResults = "maxResults"; + } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) { + object.orderBy = message.orderBy; + if (options.oneofs) + object._orderBy = "orderBy"; + } + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.filter != null && message.hasOwnProperty("filter")) { + object.filter = message.filter; + if (options.oneofs) + object._filter = "filter"; + } + if (message.returnPartialSuccess != null && message.hasOwnProperty("returnPartialSuccess")) { + object.returnPartialSuccess = message.returnPartialSuccess; + if (options.oneofs) + object._returnPartialSuccess = "returnPartialSuccess"; + } + return object; + }; + + /** + * Converts this ListNetworkAttachmentsRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.ListNetworkAttachmentsRequest + * @instance + * @returns {Object.} JSON object + */ + ListNetworkAttachmentsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListNetworkAttachmentsRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.ListNetworkAttachmentsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListNetworkAttachmentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.ListNetworkAttachmentsRequest"; + }; + + return ListNetworkAttachmentsRequest; + })(); + v1.ListNetworkEndpointGroupsRequest = (function() { /** @@ -265174,6 +267323,2338 @@ return Network; })(); + v1.NetworkAttachment = (function() { + + /** + * Properties of a NetworkAttachment. + * @memberof google.cloud.compute.v1 + * @interface INetworkAttachment + * @property {Array.|null} [connectionEndpoints] NetworkAttachment connectionEndpoints + * @property {string|null} [connectionPreference] NetworkAttachment connectionPreference + * @property {string|null} [creationTimestamp] NetworkAttachment creationTimestamp + * @property {string|null} [description] NetworkAttachment description + * @property {string|null} [fingerprint] NetworkAttachment fingerprint + * @property {number|Long|null} [id] NetworkAttachment id + * @property {string|null} [kind] NetworkAttachment kind + * @property {string|null} [name] NetworkAttachment name + * @property {string|null} [network] NetworkAttachment network + * @property {Array.|null} [producerAcceptLists] NetworkAttachment producerAcceptLists + * @property {Array.|null} [producerRejectLists] NetworkAttachment producerRejectLists + * @property {string|null} [region] NetworkAttachment region + * @property {string|null} [selfLink] NetworkAttachment selfLink + * @property {string|null} [selfLinkWithId] NetworkAttachment selfLinkWithId + * @property {Array.|null} [subnetworks] NetworkAttachment subnetworks + */ + + /** + * Constructs a new NetworkAttachment. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a NetworkAttachment. + * @implements INetworkAttachment + * @constructor + * @param {google.cloud.compute.v1.INetworkAttachment=} [properties] Properties to set + */ + function NetworkAttachment(properties) { + this.connectionEndpoints = []; + this.producerAcceptLists = []; + this.producerRejectLists = []; + this.subnetworks = []; + 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]]; + } + + /** + * NetworkAttachment connectionEndpoints. + * @member {Array.} connectionEndpoints + * @memberof google.cloud.compute.v1.NetworkAttachment + * @instance + */ + NetworkAttachment.prototype.connectionEndpoints = $util.emptyArray; + + /** + * NetworkAttachment connectionPreference. + * @member {string|null|undefined} connectionPreference + * @memberof google.cloud.compute.v1.NetworkAttachment + * @instance + */ + NetworkAttachment.prototype.connectionPreference = null; + + /** + * NetworkAttachment creationTimestamp. + * @member {string|null|undefined} creationTimestamp + * @memberof google.cloud.compute.v1.NetworkAttachment + * @instance + */ + NetworkAttachment.prototype.creationTimestamp = null; + + /** + * NetworkAttachment description. + * @member {string|null|undefined} description + * @memberof google.cloud.compute.v1.NetworkAttachment + * @instance + */ + NetworkAttachment.prototype.description = null; + + /** + * NetworkAttachment fingerprint. + * @member {string|null|undefined} fingerprint + * @memberof google.cloud.compute.v1.NetworkAttachment + * @instance + */ + NetworkAttachment.prototype.fingerprint = null; + + /** + * NetworkAttachment id. + * @member {number|Long|null|undefined} id + * @memberof google.cloud.compute.v1.NetworkAttachment + * @instance + */ + NetworkAttachment.prototype.id = null; + + /** + * NetworkAttachment kind. + * @member {string|null|undefined} kind + * @memberof google.cloud.compute.v1.NetworkAttachment + * @instance + */ + NetworkAttachment.prototype.kind = null; + + /** + * NetworkAttachment name. + * @member {string|null|undefined} name + * @memberof google.cloud.compute.v1.NetworkAttachment + * @instance + */ + NetworkAttachment.prototype.name = null; + + /** + * NetworkAttachment network. + * @member {string|null|undefined} network + * @memberof google.cloud.compute.v1.NetworkAttachment + * @instance + */ + NetworkAttachment.prototype.network = null; + + /** + * NetworkAttachment producerAcceptLists. + * @member {Array.} producerAcceptLists + * @memberof google.cloud.compute.v1.NetworkAttachment + * @instance + */ + NetworkAttachment.prototype.producerAcceptLists = $util.emptyArray; + + /** + * NetworkAttachment producerRejectLists. + * @member {Array.} producerRejectLists + * @memberof google.cloud.compute.v1.NetworkAttachment + * @instance + */ + NetworkAttachment.prototype.producerRejectLists = $util.emptyArray; + + /** + * NetworkAttachment region. + * @member {string|null|undefined} region + * @memberof google.cloud.compute.v1.NetworkAttachment + * @instance + */ + NetworkAttachment.prototype.region = null; + + /** + * NetworkAttachment selfLink. + * @member {string|null|undefined} selfLink + * @memberof google.cloud.compute.v1.NetworkAttachment + * @instance + */ + NetworkAttachment.prototype.selfLink = null; + + /** + * NetworkAttachment selfLinkWithId. + * @member {string|null|undefined} selfLinkWithId + * @memberof google.cloud.compute.v1.NetworkAttachment + * @instance + */ + NetworkAttachment.prototype.selfLinkWithId = null; + + /** + * NetworkAttachment subnetworks. + * @member {Array.} subnetworks + * @memberof google.cloud.compute.v1.NetworkAttachment + * @instance + */ + NetworkAttachment.prototype.subnetworks = $util.emptyArray; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * NetworkAttachment _connectionPreference. + * @member {"connectionPreference"|undefined} _connectionPreference + * @memberof google.cloud.compute.v1.NetworkAttachment + * @instance + */ + Object.defineProperty(NetworkAttachment.prototype, "_connectionPreference", { + get: $util.oneOfGetter($oneOfFields = ["connectionPreference"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * NetworkAttachment _creationTimestamp. + * @member {"creationTimestamp"|undefined} _creationTimestamp + * @memberof google.cloud.compute.v1.NetworkAttachment + * @instance + */ + Object.defineProperty(NetworkAttachment.prototype, "_creationTimestamp", { + get: $util.oneOfGetter($oneOfFields = ["creationTimestamp"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * NetworkAttachment _description. + * @member {"description"|undefined} _description + * @memberof google.cloud.compute.v1.NetworkAttachment + * @instance + */ + Object.defineProperty(NetworkAttachment.prototype, "_description", { + get: $util.oneOfGetter($oneOfFields = ["description"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * NetworkAttachment _fingerprint. + * @member {"fingerprint"|undefined} _fingerprint + * @memberof google.cloud.compute.v1.NetworkAttachment + * @instance + */ + Object.defineProperty(NetworkAttachment.prototype, "_fingerprint", { + get: $util.oneOfGetter($oneOfFields = ["fingerprint"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * NetworkAttachment _id. + * @member {"id"|undefined} _id + * @memberof google.cloud.compute.v1.NetworkAttachment + * @instance + */ + Object.defineProperty(NetworkAttachment.prototype, "_id", { + get: $util.oneOfGetter($oneOfFields = ["id"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * NetworkAttachment _kind. + * @member {"kind"|undefined} _kind + * @memberof google.cloud.compute.v1.NetworkAttachment + * @instance + */ + Object.defineProperty(NetworkAttachment.prototype, "_kind", { + get: $util.oneOfGetter($oneOfFields = ["kind"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * NetworkAttachment _name. + * @member {"name"|undefined} _name + * @memberof google.cloud.compute.v1.NetworkAttachment + * @instance + */ + Object.defineProperty(NetworkAttachment.prototype, "_name", { + get: $util.oneOfGetter($oneOfFields = ["name"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * NetworkAttachment _network. + * @member {"network"|undefined} _network + * @memberof google.cloud.compute.v1.NetworkAttachment + * @instance + */ + Object.defineProperty(NetworkAttachment.prototype, "_network", { + get: $util.oneOfGetter($oneOfFields = ["network"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * NetworkAttachment _region. + * @member {"region"|undefined} _region + * @memberof google.cloud.compute.v1.NetworkAttachment + * @instance + */ + Object.defineProperty(NetworkAttachment.prototype, "_region", { + get: $util.oneOfGetter($oneOfFields = ["region"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * NetworkAttachment _selfLink. + * @member {"selfLink"|undefined} _selfLink + * @memberof google.cloud.compute.v1.NetworkAttachment + * @instance + */ + Object.defineProperty(NetworkAttachment.prototype, "_selfLink", { + get: $util.oneOfGetter($oneOfFields = ["selfLink"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * NetworkAttachment _selfLinkWithId. + * @member {"selfLinkWithId"|undefined} _selfLinkWithId + * @memberof google.cloud.compute.v1.NetworkAttachment + * @instance + */ + Object.defineProperty(NetworkAttachment.prototype, "_selfLinkWithId", { + get: $util.oneOfGetter($oneOfFields = ["selfLinkWithId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new NetworkAttachment instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.NetworkAttachment + * @static + * @param {google.cloud.compute.v1.INetworkAttachment=} [properties] Properties to set + * @returns {google.cloud.compute.v1.NetworkAttachment} NetworkAttachment instance + */ + NetworkAttachment.create = function create(properties) { + return new NetworkAttachment(properties); + }; + + /** + * Encodes the specified NetworkAttachment message. Does not implicitly {@link google.cloud.compute.v1.NetworkAttachment.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.NetworkAttachment + * @static + * @param {google.cloud.compute.v1.INetworkAttachment} message NetworkAttachment message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NetworkAttachment.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 3355, wireType 0 =*/26840).uint64(message.id); + if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) + writer.uint32(/* id 3292052, wireType 2 =*/26336418).string(message.kind); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 3373707, wireType 2 =*/26989658).string(message.name); + if (message.producerRejectLists != null && message.producerRejectLists.length) + for (var i = 0; i < message.producerRejectLists.length; ++i) + writer.uint32(/* id 4112002, wireType 2 =*/32896018).string(message.producerRejectLists[i]); + if (message.creationTimestamp != null && Object.hasOwnProperty.call(message, "creationTimestamp")) + writer.uint32(/* id 30525366, wireType 2 =*/244202930).string(message.creationTimestamp); + if (message.selfLinkWithId != null && Object.hasOwnProperty.call(message, "selfLinkWithId")) + writer.uint32(/* id 44520962, wireType 2 =*/356167698).string(message.selfLinkWithId); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.producerAcceptLists != null && message.producerAcceptLists.length) + for (var i = 0; i < message.producerAcceptLists.length; ++i) + writer.uint32(/* id 202804523, wireType 2 =*/1622436186).string(message.producerAcceptLists[i]); + if (message.network != null && Object.hasOwnProperty.call(message, "network")) + writer.uint32(/* id 232872494, wireType 2 =*/1862979954).string(message.network); + if (message.fingerprint != null && Object.hasOwnProperty.call(message, "fingerprint")) + writer.uint32(/* id 234678500, wireType 2 =*/1877428002).string(message.fingerprint); + if (message.connectionPreference != null && Object.hasOwnProperty.call(message, "connectionPreference")) + writer.uint32(/* id 285818076, wireType 2 =*/2286544610).string(message.connectionPreference); + if (message.connectionEndpoints != null && message.connectionEndpoints.length) + for (var i = 0; i < message.connectionEndpoints.length; ++i) + $root.google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint.encode(message.connectionEndpoints[i], writer.uint32(/* id 326078813, wireType 2 =*/2608630506).fork()).ldelim(); + if (message.subnetworks != null && message.subnetworks.length) + for (var i = 0; i < message.subnetworks.length; ++i) + writer.uint32(/* id 415853125, wireType 2 =*/3326825002).string(message.subnetworks[i]); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 422937596, wireType 2 =*/3383500770).string(message.description); + if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) + writer.uint32(/* id 456214797, wireType 2 =*/3649718378).string(message.selfLink); + return writer; + }; + + /** + * Encodes the specified NetworkAttachment message, length delimited. Does not implicitly {@link google.cloud.compute.v1.NetworkAttachment.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.NetworkAttachment + * @static + * @param {google.cloud.compute.v1.INetworkAttachment} message NetworkAttachment message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NetworkAttachment.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NetworkAttachment message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.NetworkAttachment + * @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.NetworkAttachment} NetworkAttachment + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NetworkAttachment.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.NetworkAttachment(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 326078813: { + if (!(message.connectionEndpoints && message.connectionEndpoints.length)) + message.connectionEndpoints = []; + message.connectionEndpoints.push($root.google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint.decode(reader, reader.uint32())); + break; + } + case 285818076: { + message.connectionPreference = reader.string(); + break; + } + case 30525366: { + message.creationTimestamp = reader.string(); + break; + } + case 422937596: { + message.description = reader.string(); + break; + } + case 234678500: { + message.fingerprint = reader.string(); + break; + } + case 3355: { + message.id = reader.uint64(); + break; + } + case 3292052: { + message.kind = reader.string(); + break; + } + case 3373707: { + message.name = reader.string(); + break; + } + case 232872494: { + message.network = reader.string(); + break; + } + case 202804523: { + if (!(message.producerAcceptLists && message.producerAcceptLists.length)) + message.producerAcceptLists = []; + message.producerAcceptLists.push(reader.string()); + break; + } + case 4112002: { + if (!(message.producerRejectLists && message.producerRejectLists.length)) + message.producerRejectLists = []; + message.producerRejectLists.push(reader.string()); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + case 456214797: { + message.selfLink = reader.string(); + break; + } + case 44520962: { + message.selfLinkWithId = reader.string(); + break; + } + case 415853125: { + if (!(message.subnetworks && message.subnetworks.length)) + message.subnetworks = []; + message.subnetworks.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a NetworkAttachment message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.NetworkAttachment + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.NetworkAttachment} NetworkAttachment + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NetworkAttachment.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NetworkAttachment message. + * @function verify + * @memberof google.cloud.compute.v1.NetworkAttachment + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NetworkAttachment.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.connectionEndpoints != null && message.hasOwnProperty("connectionEndpoints")) { + if (!Array.isArray(message.connectionEndpoints)) + return "connectionEndpoints: array expected"; + for (var i = 0; i < message.connectionEndpoints.length; ++i) { + var error = $root.google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint.verify(message.connectionEndpoints[i]); + if (error) + return "connectionEndpoints." + error; + } + } + if (message.connectionPreference != null && message.hasOwnProperty("connectionPreference")) { + properties._connectionPreference = 1; + if (!$util.isString(message.connectionPreference)) + return "connectionPreference: string expected"; + } + if (message.creationTimestamp != null && message.hasOwnProperty("creationTimestamp")) { + properties._creationTimestamp = 1; + if (!$util.isString(message.creationTimestamp)) + return "creationTimestamp: string expected"; + } + if (message.description != null && message.hasOwnProperty("description")) { + properties._description = 1; + if (!$util.isString(message.description)) + return "description: string expected"; + } + if (message.fingerprint != null && message.hasOwnProperty("fingerprint")) { + properties._fingerprint = 1; + if (!$util.isString(message.fingerprint)) + return "fingerprint: string expected"; + } + if (message.id != null && message.hasOwnProperty("id")) { + properties._id = 1; + if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high))) + return "id: integer|Long expected"; + } + if (message.kind != null && message.hasOwnProperty("kind")) { + properties._kind = 1; + if (!$util.isString(message.kind)) + return "kind: string expected"; + } + if (message.name != null && message.hasOwnProperty("name")) { + properties._name = 1; + if (!$util.isString(message.name)) + return "name: string expected"; + } + if (message.network != null && message.hasOwnProperty("network")) { + properties._network = 1; + if (!$util.isString(message.network)) + return "network: string expected"; + } + if (message.producerAcceptLists != null && message.hasOwnProperty("producerAcceptLists")) { + if (!Array.isArray(message.producerAcceptLists)) + return "producerAcceptLists: array expected"; + for (var i = 0; i < message.producerAcceptLists.length; ++i) + if (!$util.isString(message.producerAcceptLists[i])) + return "producerAcceptLists: string[] expected"; + } + if (message.producerRejectLists != null && message.hasOwnProperty("producerRejectLists")) { + if (!Array.isArray(message.producerRejectLists)) + return "producerRejectLists: array expected"; + for (var i = 0; i < message.producerRejectLists.length; ++i) + if (!$util.isString(message.producerRejectLists[i])) + return "producerRejectLists: string[] expected"; + } + if (message.region != null && message.hasOwnProperty("region")) { + properties._region = 1; + if (!$util.isString(message.region)) + return "region: string expected"; + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + properties._selfLink = 1; + if (!$util.isString(message.selfLink)) + return "selfLink: string expected"; + } + if (message.selfLinkWithId != null && message.hasOwnProperty("selfLinkWithId")) { + properties._selfLinkWithId = 1; + if (!$util.isString(message.selfLinkWithId)) + return "selfLinkWithId: string expected"; + } + if (message.subnetworks != null && message.hasOwnProperty("subnetworks")) { + if (!Array.isArray(message.subnetworks)) + return "subnetworks: array expected"; + for (var i = 0; i < message.subnetworks.length; ++i) + if (!$util.isString(message.subnetworks[i])) + return "subnetworks: string[] expected"; + } + return null; + }; + + /** + * Creates a NetworkAttachment message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.NetworkAttachment + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.NetworkAttachment} NetworkAttachment + */ + NetworkAttachment.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.NetworkAttachment) + return object; + var message = new $root.google.cloud.compute.v1.NetworkAttachment(); + if (object.connectionEndpoints) { + if (!Array.isArray(object.connectionEndpoints)) + throw TypeError(".google.cloud.compute.v1.NetworkAttachment.connectionEndpoints: array expected"); + message.connectionEndpoints = []; + for (var i = 0; i < object.connectionEndpoints.length; ++i) { + if (typeof object.connectionEndpoints[i] !== "object") + throw TypeError(".google.cloud.compute.v1.NetworkAttachment.connectionEndpoints: object expected"); + message.connectionEndpoints[i] = $root.google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint.fromObject(object.connectionEndpoints[i]); + } + } + if (object.connectionPreference != null) + message.connectionPreference = String(object.connectionPreference); + if (object.creationTimestamp != null) + message.creationTimestamp = String(object.creationTimestamp); + if (object.description != null) + message.description = String(object.description); + if (object.fingerprint != null) + message.fingerprint = String(object.fingerprint); + if (object.id != null) + if ($util.Long) + (message.id = $util.Long.fromValue(object.id)).unsigned = true; + else if (typeof object.id === "string") + message.id = parseInt(object.id, 10); + else if (typeof object.id === "number") + message.id = object.id; + else if (typeof object.id === "object") + message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber(true); + if (object.kind != null) + message.kind = String(object.kind); + if (object.name != null) + message.name = String(object.name); + if (object.network != null) + message.network = String(object.network); + if (object.producerAcceptLists) { + if (!Array.isArray(object.producerAcceptLists)) + throw TypeError(".google.cloud.compute.v1.NetworkAttachment.producerAcceptLists: array expected"); + message.producerAcceptLists = []; + for (var i = 0; i < object.producerAcceptLists.length; ++i) + message.producerAcceptLists[i] = String(object.producerAcceptLists[i]); + } + if (object.producerRejectLists) { + if (!Array.isArray(object.producerRejectLists)) + throw TypeError(".google.cloud.compute.v1.NetworkAttachment.producerRejectLists: array expected"); + message.producerRejectLists = []; + for (var i = 0; i < object.producerRejectLists.length; ++i) + message.producerRejectLists[i] = String(object.producerRejectLists[i]); + } + if (object.region != null) + message.region = String(object.region); + if (object.selfLink != null) + message.selfLink = String(object.selfLink); + if (object.selfLinkWithId != null) + message.selfLinkWithId = String(object.selfLinkWithId); + if (object.subnetworks) { + if (!Array.isArray(object.subnetworks)) + throw TypeError(".google.cloud.compute.v1.NetworkAttachment.subnetworks: array expected"); + message.subnetworks = []; + for (var i = 0; i < object.subnetworks.length; ++i) + message.subnetworks[i] = String(object.subnetworks[i]); + } + return message; + }; + + /** + * Creates a plain object from a NetworkAttachment message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.NetworkAttachment + * @static + * @param {google.cloud.compute.v1.NetworkAttachment} message NetworkAttachment + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NetworkAttachment.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.producerRejectLists = []; + object.producerAcceptLists = []; + object.connectionEndpoints = []; + object.subnetworks = []; + } + if (message.id != null && message.hasOwnProperty("id")) { + if (typeof message.id === "number") + object.id = options.longs === String ? String(message.id) : message.id; + else + object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber(true) : message.id; + if (options.oneofs) + object._id = "id"; + } + if (message.kind != null && message.hasOwnProperty("kind")) { + object.kind = message.kind; + if (options.oneofs) + object._kind = "kind"; + } + if (message.name != null && message.hasOwnProperty("name")) { + object.name = message.name; + if (options.oneofs) + object._name = "name"; + } + if (message.producerRejectLists && message.producerRejectLists.length) { + object.producerRejectLists = []; + for (var j = 0; j < message.producerRejectLists.length; ++j) + object.producerRejectLists[j] = message.producerRejectLists[j]; + } + if (message.creationTimestamp != null && message.hasOwnProperty("creationTimestamp")) { + object.creationTimestamp = message.creationTimestamp; + if (options.oneofs) + object._creationTimestamp = "creationTimestamp"; + } + if (message.selfLinkWithId != null && message.hasOwnProperty("selfLinkWithId")) { + object.selfLinkWithId = message.selfLinkWithId; + if (options.oneofs) + object._selfLinkWithId = "selfLinkWithId"; + } + if (message.region != null && message.hasOwnProperty("region")) { + object.region = message.region; + if (options.oneofs) + object._region = "region"; + } + if (message.producerAcceptLists && message.producerAcceptLists.length) { + object.producerAcceptLists = []; + for (var j = 0; j < message.producerAcceptLists.length; ++j) + object.producerAcceptLists[j] = message.producerAcceptLists[j]; + } + if (message.network != null && message.hasOwnProperty("network")) { + object.network = message.network; + if (options.oneofs) + object._network = "network"; + } + if (message.fingerprint != null && message.hasOwnProperty("fingerprint")) { + object.fingerprint = message.fingerprint; + if (options.oneofs) + object._fingerprint = "fingerprint"; + } + if (message.connectionPreference != null && message.hasOwnProperty("connectionPreference")) { + object.connectionPreference = message.connectionPreference; + if (options.oneofs) + object._connectionPreference = "connectionPreference"; + } + if (message.connectionEndpoints && message.connectionEndpoints.length) { + object.connectionEndpoints = []; + for (var j = 0; j < message.connectionEndpoints.length; ++j) + object.connectionEndpoints[j] = $root.google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint.toObject(message.connectionEndpoints[j], options); + } + if (message.subnetworks && message.subnetworks.length) { + object.subnetworks = []; + for (var j = 0; j < message.subnetworks.length; ++j) + object.subnetworks[j] = message.subnetworks[j]; + } + if (message.description != null && message.hasOwnProperty("description")) { + object.description = message.description; + if (options.oneofs) + object._description = "description"; + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + object.selfLink = message.selfLink; + if (options.oneofs) + object._selfLink = "selfLink"; + } + return object; + }; + + /** + * Converts this NetworkAttachment to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.NetworkAttachment + * @instance + * @returns {Object.} JSON object + */ + NetworkAttachment.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for NetworkAttachment + * @function getTypeUrl + * @memberof google.cloud.compute.v1.NetworkAttachment + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NetworkAttachment.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.NetworkAttachment"; + }; + + /** + * ConnectionPreference enum. + * @name google.cloud.compute.v1.NetworkAttachment.ConnectionPreference + * @enum {number} + * @property {number} UNDEFINED_CONNECTION_PREFERENCE=0 UNDEFINED_CONNECTION_PREFERENCE value + * @property {number} ACCEPT_AUTOMATIC=75250580 ACCEPT_AUTOMATIC value + * @property {number} ACCEPT_MANUAL=373061341 ACCEPT_MANUAL value + * @property {number} INVALID=530283991 INVALID value + */ + NetworkAttachment.ConnectionPreference = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_CONNECTION_PREFERENCE"] = 0; + values[valuesById[75250580] = "ACCEPT_AUTOMATIC"] = 75250580; + values[valuesById[373061341] = "ACCEPT_MANUAL"] = 373061341; + values[valuesById[530283991] = "INVALID"] = 530283991; + return values; + })(); + + return NetworkAttachment; + })(); + + v1.NetworkAttachmentAggregatedList = (function() { + + /** + * Properties of a NetworkAttachmentAggregatedList. + * @memberof google.cloud.compute.v1 + * @interface INetworkAttachmentAggregatedList + * @property {string|null} [id] NetworkAttachmentAggregatedList id + * @property {Object.|null} [items] NetworkAttachmentAggregatedList items + * @property {string|null} [kind] NetworkAttachmentAggregatedList kind + * @property {string|null} [nextPageToken] NetworkAttachmentAggregatedList nextPageToken + * @property {string|null} [selfLink] NetworkAttachmentAggregatedList selfLink + * @property {google.cloud.compute.v1.IWarning|null} [warning] NetworkAttachmentAggregatedList warning + */ + + /** + * Constructs a new NetworkAttachmentAggregatedList. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a NetworkAttachmentAggregatedList. + * @implements INetworkAttachmentAggregatedList + * @constructor + * @param {google.cloud.compute.v1.INetworkAttachmentAggregatedList=} [properties] Properties to set + */ + function NetworkAttachmentAggregatedList(properties) { + this.items = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NetworkAttachmentAggregatedList id. + * @member {string|null|undefined} id + * @memberof google.cloud.compute.v1.NetworkAttachmentAggregatedList + * @instance + */ + NetworkAttachmentAggregatedList.prototype.id = null; + + /** + * NetworkAttachmentAggregatedList items. + * @member {Object.} items + * @memberof google.cloud.compute.v1.NetworkAttachmentAggregatedList + * @instance + */ + NetworkAttachmentAggregatedList.prototype.items = $util.emptyObject; + + /** + * NetworkAttachmentAggregatedList kind. + * @member {string|null|undefined} kind + * @memberof google.cloud.compute.v1.NetworkAttachmentAggregatedList + * @instance + */ + NetworkAttachmentAggregatedList.prototype.kind = null; + + /** + * NetworkAttachmentAggregatedList nextPageToken. + * @member {string|null|undefined} nextPageToken + * @memberof google.cloud.compute.v1.NetworkAttachmentAggregatedList + * @instance + */ + NetworkAttachmentAggregatedList.prototype.nextPageToken = null; + + /** + * NetworkAttachmentAggregatedList selfLink. + * @member {string|null|undefined} selfLink + * @memberof google.cloud.compute.v1.NetworkAttachmentAggregatedList + * @instance + */ + NetworkAttachmentAggregatedList.prototype.selfLink = null; + + /** + * NetworkAttachmentAggregatedList warning. + * @member {google.cloud.compute.v1.IWarning|null|undefined} warning + * @memberof google.cloud.compute.v1.NetworkAttachmentAggregatedList + * @instance + */ + NetworkAttachmentAggregatedList.prototype.warning = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * NetworkAttachmentAggregatedList _id. + * @member {"id"|undefined} _id + * @memberof google.cloud.compute.v1.NetworkAttachmentAggregatedList + * @instance + */ + Object.defineProperty(NetworkAttachmentAggregatedList.prototype, "_id", { + get: $util.oneOfGetter($oneOfFields = ["id"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * NetworkAttachmentAggregatedList _kind. + * @member {"kind"|undefined} _kind + * @memberof google.cloud.compute.v1.NetworkAttachmentAggregatedList + * @instance + */ + Object.defineProperty(NetworkAttachmentAggregatedList.prototype, "_kind", { + get: $util.oneOfGetter($oneOfFields = ["kind"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * NetworkAttachmentAggregatedList _nextPageToken. + * @member {"nextPageToken"|undefined} _nextPageToken + * @memberof google.cloud.compute.v1.NetworkAttachmentAggregatedList + * @instance + */ + Object.defineProperty(NetworkAttachmentAggregatedList.prototype, "_nextPageToken", { + get: $util.oneOfGetter($oneOfFields = ["nextPageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * NetworkAttachmentAggregatedList _selfLink. + * @member {"selfLink"|undefined} _selfLink + * @memberof google.cloud.compute.v1.NetworkAttachmentAggregatedList + * @instance + */ + Object.defineProperty(NetworkAttachmentAggregatedList.prototype, "_selfLink", { + get: $util.oneOfGetter($oneOfFields = ["selfLink"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * NetworkAttachmentAggregatedList _warning. + * @member {"warning"|undefined} _warning + * @memberof google.cloud.compute.v1.NetworkAttachmentAggregatedList + * @instance + */ + Object.defineProperty(NetworkAttachmentAggregatedList.prototype, "_warning", { + get: $util.oneOfGetter($oneOfFields = ["warning"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new NetworkAttachmentAggregatedList instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.NetworkAttachmentAggregatedList + * @static + * @param {google.cloud.compute.v1.INetworkAttachmentAggregatedList=} [properties] Properties to set + * @returns {google.cloud.compute.v1.NetworkAttachmentAggregatedList} NetworkAttachmentAggregatedList instance + */ + NetworkAttachmentAggregatedList.create = function create(properties) { + return new NetworkAttachmentAggregatedList(properties); + }; + + /** + * Encodes the specified NetworkAttachmentAggregatedList message. Does not implicitly {@link google.cloud.compute.v1.NetworkAttachmentAggregatedList.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.NetworkAttachmentAggregatedList + * @static + * @param {google.cloud.compute.v1.INetworkAttachmentAggregatedList} message NetworkAttachmentAggregatedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NetworkAttachmentAggregatedList.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.NetworkAttachmentsScopedList.encode(message.items[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) + writer.uint32(/* id 456214797, wireType 2 =*/3649718378).string(message.selfLink); + return writer; + }; + + /** + * Encodes the specified NetworkAttachmentAggregatedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1.NetworkAttachmentAggregatedList.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.NetworkAttachmentAggregatedList + * @static + * @param {google.cloud.compute.v1.INetworkAttachmentAggregatedList} message NetworkAttachmentAggregatedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NetworkAttachmentAggregatedList.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NetworkAttachmentAggregatedList message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.NetworkAttachmentAggregatedList + * @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.NetworkAttachmentAggregatedList} NetworkAttachmentAggregatedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NetworkAttachmentAggregatedList.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.NetworkAttachmentAggregatedList(), 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.NetworkAttachmentsScopedList.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 50704284: { + message.warning = $root.google.cloud.compute.v1.Warning.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a NetworkAttachmentAggregatedList message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.NetworkAttachmentAggregatedList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.NetworkAttachmentAggregatedList} NetworkAttachmentAggregatedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NetworkAttachmentAggregatedList.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NetworkAttachmentAggregatedList message. + * @function verify + * @memberof google.cloud.compute.v1.NetworkAttachmentAggregatedList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NetworkAttachmentAggregatedList.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.NetworkAttachmentsScopedList.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.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 NetworkAttachmentAggregatedList message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.NetworkAttachmentAggregatedList + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.NetworkAttachmentAggregatedList} NetworkAttachmentAggregatedList + */ + NetworkAttachmentAggregatedList.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.NetworkAttachmentAggregatedList) + return object; + var message = new $root.google.cloud.compute.v1.NetworkAttachmentAggregatedList(); + if (object.id != null) + message.id = String(object.id); + if (object.items) { + if (typeof object.items !== "object") + throw TypeError(".google.cloud.compute.v1.NetworkAttachmentAggregatedList.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.NetworkAttachmentAggregatedList.items: object expected"); + message.items[keys[i]] = $root.google.cloud.compute.v1.NetworkAttachmentsScopedList.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.warning != null) { + if (typeof object.warning !== "object") + throw TypeError(".google.cloud.compute.v1.NetworkAttachmentAggregatedList.warning: object expected"); + message.warning = $root.google.cloud.compute.v1.Warning.fromObject(object.warning); + } + return message; + }; + + /** + * Creates a plain object from a NetworkAttachmentAggregatedList message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.NetworkAttachmentAggregatedList + * @static + * @param {google.cloud.compute.v1.NetworkAttachmentAggregatedList} message NetworkAttachmentAggregatedList + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NetworkAttachmentAggregatedList.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + 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.NetworkAttachmentsScopedList.toObject(message.items[keys2[j]], options); + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + object.selfLink = message.selfLink; + if (options.oneofs) + object._selfLink = "selfLink"; + } + return object; + }; + + /** + * Converts this NetworkAttachmentAggregatedList to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.NetworkAttachmentAggregatedList + * @instance + * @returns {Object.} JSON object + */ + NetworkAttachmentAggregatedList.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for NetworkAttachmentAggregatedList + * @function getTypeUrl + * @memberof google.cloud.compute.v1.NetworkAttachmentAggregatedList + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NetworkAttachmentAggregatedList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.NetworkAttachmentAggregatedList"; + }; + + return NetworkAttachmentAggregatedList; + })(); + + v1.NetworkAttachmentConnectedEndpoint = (function() { + + /** + * Properties of a NetworkAttachmentConnectedEndpoint. + * @memberof google.cloud.compute.v1 + * @interface INetworkAttachmentConnectedEndpoint + * @property {string|null} [ipAddress] NetworkAttachmentConnectedEndpoint ipAddress + * @property {string|null} [projectIdOrNum] NetworkAttachmentConnectedEndpoint projectIdOrNum + * @property {Array.|null} [secondaryIpCidrRanges] NetworkAttachmentConnectedEndpoint secondaryIpCidrRanges + * @property {string|null} [status] NetworkAttachmentConnectedEndpoint status + * @property {string|null} [subnetwork] NetworkAttachmentConnectedEndpoint subnetwork + */ + + /** + * Constructs a new NetworkAttachmentConnectedEndpoint. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a NetworkAttachmentConnectedEndpoint. + * @implements INetworkAttachmentConnectedEndpoint + * @constructor + * @param {google.cloud.compute.v1.INetworkAttachmentConnectedEndpoint=} [properties] Properties to set + */ + function NetworkAttachmentConnectedEndpoint(properties) { + this.secondaryIpCidrRanges = []; + 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]]; + } + + /** + * NetworkAttachmentConnectedEndpoint ipAddress. + * @member {string|null|undefined} ipAddress + * @memberof google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint + * @instance + */ + NetworkAttachmentConnectedEndpoint.prototype.ipAddress = null; + + /** + * NetworkAttachmentConnectedEndpoint projectIdOrNum. + * @member {string|null|undefined} projectIdOrNum + * @memberof google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint + * @instance + */ + NetworkAttachmentConnectedEndpoint.prototype.projectIdOrNum = null; + + /** + * NetworkAttachmentConnectedEndpoint secondaryIpCidrRanges. + * @member {Array.} secondaryIpCidrRanges + * @memberof google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint + * @instance + */ + NetworkAttachmentConnectedEndpoint.prototype.secondaryIpCidrRanges = $util.emptyArray; + + /** + * NetworkAttachmentConnectedEndpoint status. + * @member {string|null|undefined} status + * @memberof google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint + * @instance + */ + NetworkAttachmentConnectedEndpoint.prototype.status = null; + + /** + * NetworkAttachmentConnectedEndpoint subnetwork. + * @member {string|null|undefined} subnetwork + * @memberof google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint + * @instance + */ + NetworkAttachmentConnectedEndpoint.prototype.subnetwork = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * NetworkAttachmentConnectedEndpoint _ipAddress. + * @member {"ipAddress"|undefined} _ipAddress + * @memberof google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint + * @instance + */ + Object.defineProperty(NetworkAttachmentConnectedEndpoint.prototype, "_ipAddress", { + get: $util.oneOfGetter($oneOfFields = ["ipAddress"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * NetworkAttachmentConnectedEndpoint _projectIdOrNum. + * @member {"projectIdOrNum"|undefined} _projectIdOrNum + * @memberof google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint + * @instance + */ + Object.defineProperty(NetworkAttachmentConnectedEndpoint.prototype, "_projectIdOrNum", { + get: $util.oneOfGetter($oneOfFields = ["projectIdOrNum"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * NetworkAttachmentConnectedEndpoint _status. + * @member {"status"|undefined} _status + * @memberof google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint + * @instance + */ + Object.defineProperty(NetworkAttachmentConnectedEndpoint.prototype, "_status", { + get: $util.oneOfGetter($oneOfFields = ["status"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * NetworkAttachmentConnectedEndpoint _subnetwork. + * @member {"subnetwork"|undefined} _subnetwork + * @memberof google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint + * @instance + */ + Object.defineProperty(NetworkAttachmentConnectedEndpoint.prototype, "_subnetwork", { + get: $util.oneOfGetter($oneOfFields = ["subnetwork"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new NetworkAttachmentConnectedEndpoint instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint + * @static + * @param {google.cloud.compute.v1.INetworkAttachmentConnectedEndpoint=} [properties] Properties to set + * @returns {google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint} NetworkAttachmentConnectedEndpoint instance + */ + NetworkAttachmentConnectedEndpoint.create = function create(properties) { + return new NetworkAttachmentConnectedEndpoint(properties); + }; + + /** + * Encodes the specified NetworkAttachmentConnectedEndpoint message. Does not implicitly {@link google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint + * @static + * @param {google.cloud.compute.v1.INetworkAttachmentConnectedEndpoint} message NetworkAttachmentConnectedEndpoint message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NetworkAttachmentConnectedEndpoint.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.secondaryIpCidrRanges != null && message.secondaryIpCidrRanges.length) + for (var i = 0; i < message.secondaryIpCidrRanges.length; ++i) + writer.uint32(/* id 117184788, wireType 2 =*/937478306).string(message.secondaryIpCidrRanges[i]); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + writer.uint32(/* id 181260274, wireType 2 =*/1450082194).string(message.status); + if (message.subnetwork != null && Object.hasOwnProperty.call(message, "subnetwork")) + writer.uint32(/* id 307827694, wireType 2 =*/2462621554).string(message.subnetwork); + if (message.projectIdOrNum != null && Object.hasOwnProperty.call(message, "projectIdOrNum")) + writer.uint32(/* id 349783336, wireType 2 =*/2798266690).string(message.projectIdOrNum); + if (message.ipAddress != null && Object.hasOwnProperty.call(message, "ipAddress")) + writer.uint32(/* id 406272220, wireType 2 =*/3250177762).string(message.ipAddress); + return writer; + }; + + /** + * Encodes the specified NetworkAttachmentConnectedEndpoint message, length delimited. Does not implicitly {@link google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint + * @static + * @param {google.cloud.compute.v1.INetworkAttachmentConnectedEndpoint} message NetworkAttachmentConnectedEndpoint message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NetworkAttachmentConnectedEndpoint.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NetworkAttachmentConnectedEndpoint message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint + * @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.NetworkAttachmentConnectedEndpoint} NetworkAttachmentConnectedEndpoint + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NetworkAttachmentConnectedEndpoint.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.NetworkAttachmentConnectedEndpoint(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 406272220: { + message.ipAddress = reader.string(); + break; + } + case 349783336: { + message.projectIdOrNum = reader.string(); + break; + } + case 117184788: { + if (!(message.secondaryIpCidrRanges && message.secondaryIpCidrRanges.length)) + message.secondaryIpCidrRanges = []; + message.secondaryIpCidrRanges.push(reader.string()); + break; + } + case 181260274: { + message.status = reader.string(); + break; + } + case 307827694: { + message.subnetwork = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a NetworkAttachmentConnectedEndpoint message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint} NetworkAttachmentConnectedEndpoint + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NetworkAttachmentConnectedEndpoint.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NetworkAttachmentConnectedEndpoint message. + * @function verify + * @memberof google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NetworkAttachmentConnectedEndpoint.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.ipAddress != null && message.hasOwnProperty("ipAddress")) { + properties._ipAddress = 1; + if (!$util.isString(message.ipAddress)) + return "ipAddress: string expected"; + } + if (message.projectIdOrNum != null && message.hasOwnProperty("projectIdOrNum")) { + properties._projectIdOrNum = 1; + if (!$util.isString(message.projectIdOrNum)) + return "projectIdOrNum: string expected"; + } + if (message.secondaryIpCidrRanges != null && message.hasOwnProperty("secondaryIpCidrRanges")) { + if (!Array.isArray(message.secondaryIpCidrRanges)) + return "secondaryIpCidrRanges: array expected"; + for (var i = 0; i < message.secondaryIpCidrRanges.length; ++i) + if (!$util.isString(message.secondaryIpCidrRanges[i])) + return "secondaryIpCidrRanges: string[] expected"; + } + if (message.status != null && message.hasOwnProperty("status")) { + properties._status = 1; + if (!$util.isString(message.status)) + return "status: string expected"; + } + if (message.subnetwork != null && message.hasOwnProperty("subnetwork")) { + properties._subnetwork = 1; + if (!$util.isString(message.subnetwork)) + return "subnetwork: string expected"; + } + return null; + }; + + /** + * Creates a NetworkAttachmentConnectedEndpoint message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint} NetworkAttachmentConnectedEndpoint + */ + NetworkAttachmentConnectedEndpoint.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint) + return object; + var message = new $root.google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint(); + if (object.ipAddress != null) + message.ipAddress = String(object.ipAddress); + if (object.projectIdOrNum != null) + message.projectIdOrNum = String(object.projectIdOrNum); + if (object.secondaryIpCidrRanges) { + if (!Array.isArray(object.secondaryIpCidrRanges)) + throw TypeError(".google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint.secondaryIpCidrRanges: array expected"); + message.secondaryIpCidrRanges = []; + for (var i = 0; i < object.secondaryIpCidrRanges.length; ++i) + message.secondaryIpCidrRanges[i] = String(object.secondaryIpCidrRanges[i]); + } + if (object.status != null) + message.status = String(object.status); + if (object.subnetwork != null) + message.subnetwork = String(object.subnetwork); + return message; + }; + + /** + * Creates a plain object from a NetworkAttachmentConnectedEndpoint message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint + * @static + * @param {google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint} message NetworkAttachmentConnectedEndpoint + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NetworkAttachmentConnectedEndpoint.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.secondaryIpCidrRanges = []; + if (message.secondaryIpCidrRanges && message.secondaryIpCidrRanges.length) { + object.secondaryIpCidrRanges = []; + for (var j = 0; j < message.secondaryIpCidrRanges.length; ++j) + object.secondaryIpCidrRanges[j] = message.secondaryIpCidrRanges[j]; + } + if (message.status != null && message.hasOwnProperty("status")) { + object.status = message.status; + if (options.oneofs) + object._status = "status"; + } + if (message.subnetwork != null && message.hasOwnProperty("subnetwork")) { + object.subnetwork = message.subnetwork; + if (options.oneofs) + object._subnetwork = "subnetwork"; + } + if (message.projectIdOrNum != null && message.hasOwnProperty("projectIdOrNum")) { + object.projectIdOrNum = message.projectIdOrNum; + if (options.oneofs) + object._projectIdOrNum = "projectIdOrNum"; + } + if (message.ipAddress != null && message.hasOwnProperty("ipAddress")) { + object.ipAddress = message.ipAddress; + if (options.oneofs) + object._ipAddress = "ipAddress"; + } + return object; + }; + + /** + * Converts this NetworkAttachmentConnectedEndpoint to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint + * @instance + * @returns {Object.} JSON object + */ + NetworkAttachmentConnectedEndpoint.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for NetworkAttachmentConnectedEndpoint + * @function getTypeUrl + * @memberof google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NetworkAttachmentConnectedEndpoint.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint"; + }; + + /** + * Status enum. + * @name google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint.Status + * @enum {number} + * @property {number} UNDEFINED_STATUS=0 UNDEFINED_STATUS value + * @property {number} ACCEPTED=246714279 ACCEPTED value + * @property {number} CLOSED=380163436 CLOSED value + * @property {number} NEEDS_ATTENTION=344491452 NEEDS_ATTENTION value + * @property {number} PENDING=35394935 PENDING value + * @property {number} REJECTED=174130302 REJECTED value + * @property {number} STATUS_UNSPECIFIED=42133066 STATUS_UNSPECIFIED value + */ + NetworkAttachmentConnectedEndpoint.Status = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_STATUS"] = 0; + values[valuesById[246714279] = "ACCEPTED"] = 246714279; + values[valuesById[380163436] = "CLOSED"] = 380163436; + values[valuesById[344491452] = "NEEDS_ATTENTION"] = 344491452; + values[valuesById[35394935] = "PENDING"] = 35394935; + values[valuesById[174130302] = "REJECTED"] = 174130302; + values[valuesById[42133066] = "STATUS_UNSPECIFIED"] = 42133066; + return values; + })(); + + return NetworkAttachmentConnectedEndpoint; + })(); + + v1.NetworkAttachmentList = (function() { + + /** + * Properties of a NetworkAttachmentList. + * @memberof google.cloud.compute.v1 + * @interface INetworkAttachmentList + * @property {string|null} [id] NetworkAttachmentList id + * @property {Array.|null} [items] NetworkAttachmentList items + * @property {string|null} [kind] NetworkAttachmentList kind + * @property {string|null} [nextPageToken] NetworkAttachmentList nextPageToken + * @property {string|null} [selfLink] NetworkAttachmentList selfLink + * @property {google.cloud.compute.v1.IWarning|null} [warning] NetworkAttachmentList warning + */ + + /** + * Constructs a new NetworkAttachmentList. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a NetworkAttachmentList. + * @implements INetworkAttachmentList + * @constructor + * @param {google.cloud.compute.v1.INetworkAttachmentList=} [properties] Properties to set + */ + function NetworkAttachmentList(properties) { + this.items = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NetworkAttachmentList id. + * @member {string|null|undefined} id + * @memberof google.cloud.compute.v1.NetworkAttachmentList + * @instance + */ + NetworkAttachmentList.prototype.id = null; + + /** + * NetworkAttachmentList items. + * @member {Array.} items + * @memberof google.cloud.compute.v1.NetworkAttachmentList + * @instance + */ + NetworkAttachmentList.prototype.items = $util.emptyArray; + + /** + * NetworkAttachmentList kind. + * @member {string|null|undefined} kind + * @memberof google.cloud.compute.v1.NetworkAttachmentList + * @instance + */ + NetworkAttachmentList.prototype.kind = null; + + /** + * NetworkAttachmentList nextPageToken. + * @member {string|null|undefined} nextPageToken + * @memberof google.cloud.compute.v1.NetworkAttachmentList + * @instance + */ + NetworkAttachmentList.prototype.nextPageToken = null; + + /** + * NetworkAttachmentList selfLink. + * @member {string|null|undefined} selfLink + * @memberof google.cloud.compute.v1.NetworkAttachmentList + * @instance + */ + NetworkAttachmentList.prototype.selfLink = null; + + /** + * NetworkAttachmentList warning. + * @member {google.cloud.compute.v1.IWarning|null|undefined} warning + * @memberof google.cloud.compute.v1.NetworkAttachmentList + * @instance + */ + NetworkAttachmentList.prototype.warning = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * NetworkAttachmentList _id. + * @member {"id"|undefined} _id + * @memberof google.cloud.compute.v1.NetworkAttachmentList + * @instance + */ + Object.defineProperty(NetworkAttachmentList.prototype, "_id", { + get: $util.oneOfGetter($oneOfFields = ["id"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * NetworkAttachmentList _kind. + * @member {"kind"|undefined} _kind + * @memberof google.cloud.compute.v1.NetworkAttachmentList + * @instance + */ + Object.defineProperty(NetworkAttachmentList.prototype, "_kind", { + get: $util.oneOfGetter($oneOfFields = ["kind"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * NetworkAttachmentList _nextPageToken. + * @member {"nextPageToken"|undefined} _nextPageToken + * @memberof google.cloud.compute.v1.NetworkAttachmentList + * @instance + */ + Object.defineProperty(NetworkAttachmentList.prototype, "_nextPageToken", { + get: $util.oneOfGetter($oneOfFields = ["nextPageToken"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * NetworkAttachmentList _selfLink. + * @member {"selfLink"|undefined} _selfLink + * @memberof google.cloud.compute.v1.NetworkAttachmentList + * @instance + */ + Object.defineProperty(NetworkAttachmentList.prototype, "_selfLink", { + get: $util.oneOfGetter($oneOfFields = ["selfLink"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * NetworkAttachmentList _warning. + * @member {"warning"|undefined} _warning + * @memberof google.cloud.compute.v1.NetworkAttachmentList + * @instance + */ + Object.defineProperty(NetworkAttachmentList.prototype, "_warning", { + get: $util.oneOfGetter($oneOfFields = ["warning"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new NetworkAttachmentList instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.NetworkAttachmentList + * @static + * @param {google.cloud.compute.v1.INetworkAttachmentList=} [properties] Properties to set + * @returns {google.cloud.compute.v1.NetworkAttachmentList} NetworkAttachmentList instance + */ + NetworkAttachmentList.create = function create(properties) { + return new NetworkAttachmentList(properties); + }; + + /** + * Encodes the specified NetworkAttachmentList message. Does not implicitly {@link google.cloud.compute.v1.NetworkAttachmentList.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.NetworkAttachmentList + * @static + * @param {google.cloud.compute.v1.INetworkAttachmentList} message NetworkAttachmentList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NetworkAttachmentList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 3355, wireType 2 =*/26842).string(message.id); + if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) + writer.uint32(/* id 3292052, wireType 2 =*/26336418).string(message.kind); + if (message.warning != null && Object.hasOwnProperty.call(message, "warning")) + $root.google.cloud.compute.v1.Warning.encode(message.warning, writer.uint32(/* id 50704284, wireType 2 =*/405634274).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 79797525, wireType 2 =*/638380202).string(message.nextPageToken); + if (message.items != null && message.items.length) + for (var i = 0; i < message.items.length; ++i) + $root.google.cloud.compute.v1.NetworkAttachment.encode(message.items[i], writer.uint32(/* id 100526016, wireType 2 =*/804208130).fork()).ldelim(); + if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) + writer.uint32(/* id 456214797, wireType 2 =*/3649718378).string(message.selfLink); + return writer; + }; + + /** + * Encodes the specified NetworkAttachmentList message, length delimited. Does not implicitly {@link google.cloud.compute.v1.NetworkAttachmentList.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.NetworkAttachmentList + * @static + * @param {google.cloud.compute.v1.INetworkAttachmentList} message NetworkAttachmentList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NetworkAttachmentList.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NetworkAttachmentList message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.NetworkAttachmentList + * @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.NetworkAttachmentList} NetworkAttachmentList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NetworkAttachmentList.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.NetworkAttachmentList(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 3355: { + message.id = reader.string(); + break; + } + case 100526016: { + if (!(message.items && message.items.length)) + message.items = []; + message.items.push($root.google.cloud.compute.v1.NetworkAttachment.decode(reader, reader.uint32())); + break; + } + case 3292052: { + message.kind = reader.string(); + break; + } + case 79797525: { + message.nextPageToken = reader.string(); + break; + } + case 456214797: { + message.selfLink = reader.string(); + break; + } + case 50704284: { + message.warning = $root.google.cloud.compute.v1.Warning.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a NetworkAttachmentList message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.NetworkAttachmentList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.NetworkAttachmentList} NetworkAttachmentList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NetworkAttachmentList.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NetworkAttachmentList message. + * @function verify + * @memberof google.cloud.compute.v1.NetworkAttachmentList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NetworkAttachmentList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.id != null && message.hasOwnProperty("id")) { + properties._id = 1; + if (!$util.isString(message.id)) + return "id: string expected"; + } + if (message.items != null && message.hasOwnProperty("items")) { + if (!Array.isArray(message.items)) + return "items: array expected"; + for (var i = 0; i < message.items.length; ++i) { + var error = $root.google.cloud.compute.v1.NetworkAttachment.verify(message.items[i]); + if (error) + return "items." + error; + } + } + if (message.kind != null && message.hasOwnProperty("kind")) { + properties._kind = 1; + if (!$util.isString(message.kind)) + return "kind: string expected"; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) { + properties._nextPageToken = 1; + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + properties._selfLink = 1; + if (!$util.isString(message.selfLink)) + return "selfLink: string expected"; + } + if (message.warning != null && message.hasOwnProperty("warning")) { + properties._warning = 1; + { + var error = $root.google.cloud.compute.v1.Warning.verify(message.warning); + if (error) + return "warning." + error; + } + } + return null; + }; + + /** + * Creates a NetworkAttachmentList message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.NetworkAttachmentList + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.NetworkAttachmentList} NetworkAttachmentList + */ + NetworkAttachmentList.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.NetworkAttachmentList) + return object; + var message = new $root.google.cloud.compute.v1.NetworkAttachmentList(); + if (object.id != null) + message.id = String(object.id); + if (object.items) { + if (!Array.isArray(object.items)) + throw TypeError(".google.cloud.compute.v1.NetworkAttachmentList.items: array expected"); + message.items = []; + for (var i = 0; i < object.items.length; ++i) { + if (typeof object.items[i] !== "object") + throw TypeError(".google.cloud.compute.v1.NetworkAttachmentList.items: object expected"); + message.items[i] = $root.google.cloud.compute.v1.NetworkAttachment.fromObject(object.items[i]); + } + } + if (object.kind != null) + message.kind = String(object.kind); + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + if (object.selfLink != null) + message.selfLink = String(object.selfLink); + if (object.warning != null) { + if (typeof object.warning !== "object") + throw TypeError(".google.cloud.compute.v1.NetworkAttachmentList.warning: object expected"); + message.warning = $root.google.cloud.compute.v1.Warning.fromObject(object.warning); + } + return message; + }; + + /** + * Creates a plain object from a NetworkAttachmentList message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.NetworkAttachmentList + * @static + * @param {google.cloud.compute.v1.NetworkAttachmentList} message NetworkAttachmentList + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NetworkAttachmentList.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.items = []; + if (message.id != null && message.hasOwnProperty("id")) { + object.id = message.id; + if (options.oneofs) + object._id = "id"; + } + if (message.kind != null && message.hasOwnProperty("kind")) { + object.kind = message.kind; + if (options.oneofs) + object._kind = "kind"; + } + if (message.warning != null && message.hasOwnProperty("warning")) { + object.warning = $root.google.cloud.compute.v1.Warning.toObject(message.warning, options); + if (options.oneofs) + object._warning = "warning"; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) { + object.nextPageToken = message.nextPageToken; + if (options.oneofs) + object._nextPageToken = "nextPageToken"; + } + if (message.items && message.items.length) { + object.items = []; + for (var j = 0; j < message.items.length; ++j) + object.items[j] = $root.google.cloud.compute.v1.NetworkAttachment.toObject(message.items[j], options); + } + if (message.selfLink != null && message.hasOwnProperty("selfLink")) { + object.selfLink = message.selfLink; + if (options.oneofs) + object._selfLink = "selfLink"; + } + return object; + }; + + /** + * Converts this NetworkAttachmentList to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.NetworkAttachmentList + * @instance + * @returns {Object.} JSON object + */ + NetworkAttachmentList.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for NetworkAttachmentList + * @function getTypeUrl + * @memberof google.cloud.compute.v1.NetworkAttachmentList + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NetworkAttachmentList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.NetworkAttachmentList"; + }; + + return NetworkAttachmentList; + })(); + + v1.NetworkAttachmentsScopedList = (function() { + + /** + * Properties of a NetworkAttachmentsScopedList. + * @memberof google.cloud.compute.v1 + * @interface INetworkAttachmentsScopedList + * @property {Array.|null} [networkAttachments] NetworkAttachmentsScopedList networkAttachments + * @property {google.cloud.compute.v1.IWarning|null} [warning] NetworkAttachmentsScopedList warning + */ + + /** + * Constructs a new NetworkAttachmentsScopedList. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a NetworkAttachmentsScopedList. + * @implements INetworkAttachmentsScopedList + * @constructor + * @param {google.cloud.compute.v1.INetworkAttachmentsScopedList=} [properties] Properties to set + */ + function NetworkAttachmentsScopedList(properties) { + this.networkAttachments = []; + 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]]; + } + + /** + * NetworkAttachmentsScopedList networkAttachments. + * @member {Array.} networkAttachments + * @memberof google.cloud.compute.v1.NetworkAttachmentsScopedList + * @instance + */ + NetworkAttachmentsScopedList.prototype.networkAttachments = $util.emptyArray; + + /** + * NetworkAttachmentsScopedList warning. + * @member {google.cloud.compute.v1.IWarning|null|undefined} warning + * @memberof google.cloud.compute.v1.NetworkAttachmentsScopedList + * @instance + */ + NetworkAttachmentsScopedList.prototype.warning = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * NetworkAttachmentsScopedList _warning. + * @member {"warning"|undefined} _warning + * @memberof google.cloud.compute.v1.NetworkAttachmentsScopedList + * @instance + */ + Object.defineProperty(NetworkAttachmentsScopedList.prototype, "_warning", { + get: $util.oneOfGetter($oneOfFields = ["warning"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new NetworkAttachmentsScopedList instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.NetworkAttachmentsScopedList + * @static + * @param {google.cloud.compute.v1.INetworkAttachmentsScopedList=} [properties] Properties to set + * @returns {google.cloud.compute.v1.NetworkAttachmentsScopedList} NetworkAttachmentsScopedList instance + */ + NetworkAttachmentsScopedList.create = function create(properties) { + return new NetworkAttachmentsScopedList(properties); + }; + + /** + * Encodes the specified NetworkAttachmentsScopedList message. Does not implicitly {@link google.cloud.compute.v1.NetworkAttachmentsScopedList.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.NetworkAttachmentsScopedList + * @static + * @param {google.cloud.compute.v1.INetworkAttachmentsScopedList} message NetworkAttachmentsScopedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NetworkAttachmentsScopedList.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.networkAttachments != null && message.networkAttachments.length) + for (var i = 0; i < message.networkAttachments.length; ++i) + $root.google.cloud.compute.v1.NetworkAttachment.encode(message.networkAttachments[i], writer.uint32(/* id 521514783, wireType 2 =*/4172118266).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified NetworkAttachmentsScopedList message, length delimited. Does not implicitly {@link google.cloud.compute.v1.NetworkAttachmentsScopedList.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.NetworkAttachmentsScopedList + * @static + * @param {google.cloud.compute.v1.INetworkAttachmentsScopedList} message NetworkAttachmentsScopedList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NetworkAttachmentsScopedList.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NetworkAttachmentsScopedList message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.NetworkAttachmentsScopedList + * @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.NetworkAttachmentsScopedList} NetworkAttachmentsScopedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NetworkAttachmentsScopedList.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.NetworkAttachmentsScopedList(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 521514783: { + if (!(message.networkAttachments && message.networkAttachments.length)) + message.networkAttachments = []; + message.networkAttachments.push($root.google.cloud.compute.v1.NetworkAttachment.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 NetworkAttachmentsScopedList message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.NetworkAttachmentsScopedList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.NetworkAttachmentsScopedList} NetworkAttachmentsScopedList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NetworkAttachmentsScopedList.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NetworkAttachmentsScopedList message. + * @function verify + * @memberof google.cloud.compute.v1.NetworkAttachmentsScopedList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NetworkAttachmentsScopedList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.networkAttachments != null && message.hasOwnProperty("networkAttachments")) { + if (!Array.isArray(message.networkAttachments)) + return "networkAttachments: array expected"; + for (var i = 0; i < message.networkAttachments.length; ++i) { + var error = $root.google.cloud.compute.v1.NetworkAttachment.verify(message.networkAttachments[i]); + if (error) + return "networkAttachments." + 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 NetworkAttachmentsScopedList message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.NetworkAttachmentsScopedList + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.NetworkAttachmentsScopedList} NetworkAttachmentsScopedList + */ + NetworkAttachmentsScopedList.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.NetworkAttachmentsScopedList) + return object; + var message = new $root.google.cloud.compute.v1.NetworkAttachmentsScopedList(); + if (object.networkAttachments) { + if (!Array.isArray(object.networkAttachments)) + throw TypeError(".google.cloud.compute.v1.NetworkAttachmentsScopedList.networkAttachments: array expected"); + message.networkAttachments = []; + for (var i = 0; i < object.networkAttachments.length; ++i) { + if (typeof object.networkAttachments[i] !== "object") + throw TypeError(".google.cloud.compute.v1.NetworkAttachmentsScopedList.networkAttachments: object expected"); + message.networkAttachments[i] = $root.google.cloud.compute.v1.NetworkAttachment.fromObject(object.networkAttachments[i]); + } + } + if (object.warning != null) { + if (typeof object.warning !== "object") + throw TypeError(".google.cloud.compute.v1.NetworkAttachmentsScopedList.warning: object expected"); + message.warning = $root.google.cloud.compute.v1.Warning.fromObject(object.warning); + } + return message; + }; + + /** + * Creates a plain object from a NetworkAttachmentsScopedList message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.NetworkAttachmentsScopedList + * @static + * @param {google.cloud.compute.v1.NetworkAttachmentsScopedList} message NetworkAttachmentsScopedList + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NetworkAttachmentsScopedList.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.networkAttachments = []; + 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.networkAttachments && message.networkAttachments.length) { + object.networkAttachments = []; + for (var j = 0; j < message.networkAttachments.length; ++j) + object.networkAttachments[j] = $root.google.cloud.compute.v1.NetworkAttachment.toObject(message.networkAttachments[j], options); + } + return object; + }; + + /** + * Converts this NetworkAttachmentsScopedList to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.NetworkAttachmentsScopedList + * @instance + * @returns {Object.} JSON object + */ + NetworkAttachmentsScopedList.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for NetworkAttachmentsScopedList + * @function getTypeUrl + * @memberof google.cloud.compute.v1.NetworkAttachmentsScopedList + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NetworkAttachmentsScopedList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.NetworkAttachmentsScopedList"; + }; + + return NetworkAttachmentsScopedList; + })(); + v1.NetworkEdgeSecurityService = (function() { /** @@ -309465,6 +313946,7 @@ * @property {Array.|null} [quotas] Project quotas * @property {string|null} [selfLink] Project selfLink * @property {google.cloud.compute.v1.IUsageExportLocation|null} [usageExportLocation] Project usageExportLocation + * @property {string|null} [vmDnsSetting] Project vmDnsSetting * @property {string|null} [xpnProjectStatus] Project xpnProjectStatus */ @@ -309581,6 +314063,14 @@ */ Project.prototype.usageExportLocation = null; + /** + * Project vmDnsSetting. + * @member {string|null|undefined} vmDnsSetting + * @memberof google.cloud.compute.v1.Project + * @instance + */ + Project.prototype.vmDnsSetting = null; + /** * Project xpnProjectStatus. * @member {string|null|undefined} xpnProjectStatus @@ -309702,6 +314192,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * Project _vmDnsSetting. + * @member {"vmDnsSetting"|undefined} _vmDnsSetting + * @memberof google.cloud.compute.v1.Project + * @instance + */ + Object.defineProperty(Project.prototype, "_vmDnsSetting", { + get: $util.oneOfGetter($oneOfFields = ["vmDnsSetting"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Project _xpnProjectStatus. * @member {"xpnProjectStatus"|undefined} _xpnProjectStatus @@ -309745,6 +314246,8 @@ writer.uint32(/* id 3373707, wireType 2 =*/26989658).string(message.name); if (message.creationTimestamp != null && Object.hasOwnProperty.call(message, "creationTimestamp")) writer.uint32(/* id 30525366, wireType 2 =*/244202930).string(message.creationTimestamp); + if (message.vmDnsSetting != null && Object.hasOwnProperty.call(message, "vmDnsSetting")) + writer.uint32(/* id 58856370, wireType 2 =*/470850962).string(message.vmDnsSetting); if (message.quotas != null && message.quotas.length) for (var i = 0; i < message.quotas.length; ++i) $root.google.cloud.compute.v1.Quota.encode(message.quotas[i], writer.uint32(/* id 125341947, wireType 2 =*/1002735578).fork()).ldelim(); @@ -309851,6 +314354,10 @@ message.usageExportLocation = $root.google.cloud.compute.v1.UsageExportLocation.decode(reader, reader.uint32()); break; } + case 58856370: { + message.vmDnsSetting = reader.string(); + break; + } case 228419265: { message.xpnProjectStatus = reader.string(); break; @@ -309963,6 +314470,11 @@ return "usageExportLocation." + error; } } + if (message.vmDnsSetting != null && message.hasOwnProperty("vmDnsSetting")) { + properties._vmDnsSetting = 1; + if (!$util.isString(message.vmDnsSetting)) + return "vmDnsSetting: string expected"; + } if (message.xpnProjectStatus != null && message.hasOwnProperty("xpnProjectStatus")) { properties._xpnProjectStatus = 1; if (!$util.isString(message.xpnProjectStatus)) @@ -310033,6 +314545,8 @@ throw TypeError(".google.cloud.compute.v1.Project.usageExportLocation: object expected"); message.usageExportLocation = $root.google.cloud.compute.v1.UsageExportLocation.fromObject(object.usageExportLocation); } + if (object.vmDnsSetting != null) + message.vmDnsSetting = String(object.vmDnsSetting); if (object.xpnProjectStatus != null) message.xpnProjectStatus = String(object.xpnProjectStatus); return message; @@ -310078,6 +314592,11 @@ if (options.oneofs) object._creationTimestamp = "creationTimestamp"; } + if (message.vmDnsSetting != null && message.hasOwnProperty("vmDnsSetting")) { + object.vmDnsSetting = message.vmDnsSetting; + if (options.oneofs) + object._vmDnsSetting = "vmDnsSetting"; + } if (message.quotas && message.quotas.length) { object.quotas = []; for (var j = 0; j < message.quotas.length; ++j) @@ -310172,6 +314691,26 @@ return values; })(); + /** + * VmDnsSetting enum. + * @name google.cloud.compute.v1.Project.VmDnsSetting + * @enum {number} + * @property {number} UNDEFINED_VM_DNS_SETTING=0 UNDEFINED_VM_DNS_SETTING value + * @property {number} GLOBAL_DEFAULT=345419141 GLOBAL_DEFAULT value + * @property {number} UNSPECIFIED_VM_DNS_SETTING=35691930 UNSPECIFIED_VM_DNS_SETTING value + * @property {number} ZONAL_DEFAULT=368475782 ZONAL_DEFAULT value + * @property {number} ZONAL_ONLY=521198951 ZONAL_ONLY value + */ + Project.VmDnsSetting = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED_VM_DNS_SETTING"] = 0; + values[valuesById[345419141] = "GLOBAL_DEFAULT"] = 345419141; + values[valuesById[35691930] = "UNSPECIFIED_VM_DNS_SETTING"] = 35691930; + values[valuesById[368475782] = "ZONAL_DEFAULT"] = 368475782; + values[valuesById[521198951] = "ZONAL_ONLY"] = 521198951; + return values; + })(); + /** * XpnProjectStatus enum. * @name google.cloud.compute.v1.Project.XpnProjectStatus @@ -315628,8 +320167,12 @@ * @property {number} EXTERNAL_VPN_GATEWAYS=272457134 EXTERNAL_VPN_GATEWAYS value * @property {number} FIREWALLS=374485843 FIREWALLS value * @property {number} FORWARDING_RULES=432668949 FORWARDING_RULES value + * @property {number} GLOBAL_EXTERNAL_MANAGED_BACKEND_SERVICES=164566753 GLOBAL_EXTERNAL_MANAGED_BACKEND_SERVICES value * @property {number} GLOBAL_EXTERNAL_MANAGED_FORWARDING_RULES=327611949 GLOBAL_EXTERNAL_MANAGED_FORWARDING_RULES value + * @property {number} GLOBAL_EXTERNAL_PROXY_LB_BACKEND_SERVICES=400256169 GLOBAL_EXTERNAL_PROXY_LB_BACKEND_SERVICES value * @property {number} GLOBAL_INTERNAL_ADDRESSES=42738332 GLOBAL_INTERNAL_ADDRESSES value + * @property {number} GLOBAL_INTERNAL_MANAGED_BACKEND_SERVICES=256608303 GLOBAL_INTERNAL_MANAGED_BACKEND_SERVICES value + * @property {number} GLOBAL_INTERNAL_TRAFFIC_DIRECTOR_BACKEND_SERVICES=323514196 GLOBAL_INTERNAL_TRAFFIC_DIRECTOR_BACKEND_SERVICES value * @property {number} GPUS_ALL_REGIONS=39387177 GPUS_ALL_REGIONS value * @property {number} HEALTH_CHECKS=289347502 HEALTH_CHECKS value * @property {number} IMAGES=15562360 IMAGES value @@ -315689,7 +320232,11 @@ * @property {number} PUBLIC_ADVERTISED_PREFIXES=471371980 PUBLIC_ADVERTISED_PREFIXES value * @property {number} PUBLIC_DELEGATED_PREFIXES=532465974 PUBLIC_DELEGATED_PREFIXES value * @property {number} REGIONAL_AUTOSCALERS=29363772 REGIONAL_AUTOSCALERS value + * @property {number} REGIONAL_EXTERNAL_MANAGED_BACKEND_SERVICES=4240989 REGIONAL_EXTERNAL_MANAGED_BACKEND_SERVICES value + * @property {number} REGIONAL_EXTERNAL_NETWORK_LB_BACKEND_SERVICES=409564525 REGIONAL_EXTERNAL_NETWORK_LB_BACKEND_SERVICES value * @property {number} REGIONAL_INSTANCE_GROUP_MANAGERS=37543696 REGIONAL_INSTANCE_GROUP_MANAGERS value + * @property {number} REGIONAL_INTERNAL_LB_BACKEND_SERVICES=137983760 REGIONAL_INTERNAL_LB_BACKEND_SERVICES value + * @property {number} REGIONAL_INTERNAL_MANAGED_BACKEND_SERVICES=96282539 REGIONAL_INTERNAL_MANAGED_BACKEND_SERVICES value * @property {number} RESERVATIONS=32644647 RESERVATIONS value * @property {number} RESOURCE_POLICIES=83955297 RESOURCE_POLICIES value * @property {number} ROUTERS=493018666 ROUTERS value @@ -315765,8 +320312,12 @@ values[valuesById[272457134] = "EXTERNAL_VPN_GATEWAYS"] = 272457134; values[valuesById[374485843] = "FIREWALLS"] = 374485843; values[valuesById[432668949] = "FORWARDING_RULES"] = 432668949; + values[valuesById[164566753] = "GLOBAL_EXTERNAL_MANAGED_BACKEND_SERVICES"] = 164566753; values[valuesById[327611949] = "GLOBAL_EXTERNAL_MANAGED_FORWARDING_RULES"] = 327611949; + values[valuesById[400256169] = "GLOBAL_EXTERNAL_PROXY_LB_BACKEND_SERVICES"] = 400256169; values[valuesById[42738332] = "GLOBAL_INTERNAL_ADDRESSES"] = 42738332; + values[valuesById[256608303] = "GLOBAL_INTERNAL_MANAGED_BACKEND_SERVICES"] = 256608303; + values[valuesById[323514196] = "GLOBAL_INTERNAL_TRAFFIC_DIRECTOR_BACKEND_SERVICES"] = 323514196; values[valuesById[39387177] = "GPUS_ALL_REGIONS"] = 39387177; values[valuesById[289347502] = "HEALTH_CHECKS"] = 289347502; values[valuesById[15562360] = "IMAGES"] = 15562360; @@ -315826,7 +320377,11 @@ values[valuesById[471371980] = "PUBLIC_ADVERTISED_PREFIXES"] = 471371980; values[valuesById[532465974] = "PUBLIC_DELEGATED_PREFIXES"] = 532465974; values[valuesById[29363772] = "REGIONAL_AUTOSCALERS"] = 29363772; + values[valuesById[4240989] = "REGIONAL_EXTERNAL_MANAGED_BACKEND_SERVICES"] = 4240989; + values[valuesById[409564525] = "REGIONAL_EXTERNAL_NETWORK_LB_BACKEND_SERVICES"] = 409564525; values[valuesById[37543696] = "REGIONAL_INSTANCE_GROUP_MANAGERS"] = 37543696; + values[valuesById[137983760] = "REGIONAL_INTERNAL_LB_BACKEND_SERVICES"] = 137983760; + values[valuesById[96282539] = "REGIONAL_INTERNAL_MANAGED_BACKEND_SERVICES"] = 96282539; values[valuesById[32644647] = "RESERVATIONS"] = 32644647; values[valuesById[83955297] = "RESOURCE_POLICIES"] = 83955297; values[valuesById[493018666] = "ROUTERS"] = 493018666; @@ -331402,6 +335957,7 @@ * @property {number|Long|null} [id] Reservation id * @property {string|null} [kind] Reservation kind * @property {string|null} [name] Reservation name + * @property {Object.|null} [resourcePolicies] Reservation resourcePolicies * @property {boolean|null} [satisfiesPzs] Reservation satisfiesPzs * @property {string|null} [selfLink] Reservation selfLink * @property {google.cloud.compute.v1.IShareSettings|null} [shareSettings] Reservation shareSettings @@ -331420,6 +335976,7 @@ * @param {google.cloud.compute.v1.IReservation=} [properties] Properties to set */ function Reservation(properties) { + this.resourcePolicies = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -331474,6 +336031,14 @@ */ Reservation.prototype.name = null; + /** + * Reservation resourcePolicies. + * @member {Object.} resourcePolicies + * @memberof google.cloud.compute.v1.Reservation + * @instance + */ + Reservation.prototype.resourcePolicies = $util.emptyObject; + /** * Reservation satisfiesPzs. * @member {boolean|null|undefined} satisfiesPzs @@ -331708,6 +336273,9 @@ writer.uint32(/* id 3373707, wireType 2 =*/26989658).string(message.name); if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 3744684, wireType 2 =*/29957474).string(message.zone); + if (message.resourcePolicies != null && Object.hasOwnProperty.call(message, "resourcePolicies")) + for (var keys = Object.keys(message.resourcePolicies), i = 0; i < keys.length; ++i) + writer.uint32(/* id 22220385, wireType 2 =*/177763082).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.resourcePolicies[keys[i]]).ldelim(); if (message.creationTimestamp != null && Object.hasOwnProperty.call(message, "creationTimestamp")) writer.uint32(/* id 30525366, wireType 2 =*/244202930).string(message.creationTimestamp); if (message.status != null && Object.hasOwnProperty.call(message, "status")) @@ -331756,7 +336324,7 @@ Reservation.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.Reservation(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.Reservation(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -331784,6 +336352,29 @@ message.name = reader.string(); break; } + case 22220385: { + if (message.resourcePolicies === $util.emptyObject) + message.resourcePolicies = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.resourcePolicies[key] = value; + break; + } case 480964267: { message.satisfiesPzs = reader.bool(); break; @@ -331878,6 +336469,14 @@ if (!$util.isString(message.name)) return "name: string expected"; } + if (message.resourcePolicies != null && message.hasOwnProperty("resourcePolicies")) { + if (!$util.isObject(message.resourcePolicies)) + return "resourcePolicies: object expected"; + var key = Object.keys(message.resourcePolicies); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.resourcePolicies[key[i]])) + return "resourcePolicies: string{k:string} expected"; + } if (message.satisfiesPzs != null && message.hasOwnProperty("satisfiesPzs")) { properties._satisfiesPzs = 1; if (typeof message.satisfiesPzs !== "boolean") @@ -331953,6 +336552,13 @@ message.kind = String(object.kind); if (object.name != null) message.name = String(object.name); + if (object.resourcePolicies) { + if (typeof object.resourcePolicies !== "object") + throw TypeError(".google.cloud.compute.v1.Reservation.resourcePolicies: object expected"); + message.resourcePolicies = {}; + for (var keys = Object.keys(object.resourcePolicies), i = 0; i < keys.length; ++i) + message.resourcePolicies[keys[i]] = String(object.resourcePolicies[keys[i]]); + } if (object.satisfiesPzs != null) message.satisfiesPzs = Boolean(object.satisfiesPzs); if (object.selfLink != null) @@ -331989,6 +336595,8 @@ if (!options) options = {}; var object = {}; + if (options.objects || options.defaults) + object.resourcePolicies = {}; if (message.id != null && message.hasOwnProperty("id")) { if (typeof message.id === "number") object.id = options.longs === String ? String(message.id) : message.id; @@ -332012,6 +336620,12 @@ if (options.oneofs) object._zone = "zone"; } + var keys2; + if (message.resourcePolicies && (keys2 = Object.keys(message.resourcePolicies)).length) { + object.resourcePolicies = {}; + for (var j = 0; j < keys2.length; ++j) + object.resourcePolicies[keys2[j]] = message.resourcePolicies[keys2[j]]; + } if (message.creationTimestamp != null && message.hasOwnProperty("creationTimestamp")) { object.creationTimestamp = message.creationTimestamp; if (options.oneofs) @@ -367764,6 +372378,7 @@ * @memberof google.cloud.compute.v1 * @interface IServiceAttachmentConsumerProjectLimit * @property {number|null} [connectionLimit] ServiceAttachmentConsumerProjectLimit connectionLimit + * @property {string|null} [networkUrl] ServiceAttachmentConsumerProjectLimit networkUrl * @property {string|null} [projectIdOrNum] ServiceAttachmentConsumerProjectLimit projectIdOrNum */ @@ -367790,6 +372405,14 @@ */ ServiceAttachmentConsumerProjectLimit.prototype.connectionLimit = null; + /** + * ServiceAttachmentConsumerProjectLimit networkUrl. + * @member {string|null|undefined} networkUrl + * @memberof google.cloud.compute.v1.ServiceAttachmentConsumerProjectLimit + * @instance + */ + ServiceAttachmentConsumerProjectLimit.prototype.networkUrl = null; + /** * ServiceAttachmentConsumerProjectLimit projectIdOrNum. * @member {string|null|undefined} projectIdOrNum @@ -367812,6 +372435,17 @@ set: $util.oneOfSetter($oneOfFields) }); + /** + * ServiceAttachmentConsumerProjectLimit _networkUrl. + * @member {"networkUrl"|undefined} _networkUrl + * @memberof google.cloud.compute.v1.ServiceAttachmentConsumerProjectLimit + * @instance + */ + Object.defineProperty(ServiceAttachmentConsumerProjectLimit.prototype, "_networkUrl", { + get: $util.oneOfGetter($oneOfFields = ["networkUrl"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * ServiceAttachmentConsumerProjectLimit _projectIdOrNum. * @member {"projectIdOrNum"|undefined} _projectIdOrNum @@ -367849,6 +372483,8 @@ writer = $Writer.create(); if (message.connectionLimit != null && Object.hasOwnProperty.call(message, "connectionLimit")) writer.uint32(/* id 131403546, wireType 0 =*/1051228368).uint32(message.connectionLimit); + if (message.networkUrl != null && Object.hasOwnProperty.call(message, "networkUrl")) + writer.uint32(/* id 207194078, wireType 2 =*/1657552626).string(message.networkUrl); if (message.projectIdOrNum != null && Object.hasOwnProperty.call(message, "projectIdOrNum")) writer.uint32(/* id 349783336, wireType 2 =*/2798266690).string(message.projectIdOrNum); return writer; @@ -367889,6 +372525,10 @@ message.connectionLimit = reader.uint32(); break; } + case 207194078: { + message.networkUrl = reader.string(); + break; + } case 349783336: { message.projectIdOrNum = reader.string(); break; @@ -367934,6 +372574,11 @@ if (!$util.isInteger(message.connectionLimit)) return "connectionLimit: integer expected"; } + if (message.networkUrl != null && message.hasOwnProperty("networkUrl")) { + properties._networkUrl = 1; + if (!$util.isString(message.networkUrl)) + return "networkUrl: string expected"; + } if (message.projectIdOrNum != null && message.hasOwnProperty("projectIdOrNum")) { properties._projectIdOrNum = 1; if (!$util.isString(message.projectIdOrNum)) @@ -367956,6 +372601,8 @@ var message = new $root.google.cloud.compute.v1.ServiceAttachmentConsumerProjectLimit(); if (object.connectionLimit != null) message.connectionLimit = object.connectionLimit >>> 0; + if (object.networkUrl != null) + message.networkUrl = String(object.networkUrl); if (object.projectIdOrNum != null) message.projectIdOrNum = String(object.projectIdOrNum); return message; @@ -367979,6 +372626,11 @@ if (options.oneofs) object._connectionLimit = "connectionLimit"; } + if (message.networkUrl != null && message.hasOwnProperty("networkUrl")) { + object.networkUrl = message.networkUrl; + if (options.oneofs) + object._networkUrl = "networkUrl"; + } if (message.projectIdOrNum != null && message.hasOwnProperty("projectIdOrNum")) { object.projectIdOrNum = message.projectIdOrNum; if (options.oneofs) @@ -374131,6 +378783,284 @@ return SetIamPolicyMachineImageRequest; })(); + v1.SetIamPolicyNetworkAttachmentRequest = (function() { + + /** + * Properties of a SetIamPolicyNetworkAttachmentRequest. + * @memberof google.cloud.compute.v1 + * @interface ISetIamPolicyNetworkAttachmentRequest + * @property {string|null} [project] SetIamPolicyNetworkAttachmentRequest project + * @property {string|null} [region] SetIamPolicyNetworkAttachmentRequest region + * @property {google.cloud.compute.v1.IRegionSetPolicyRequest|null} [regionSetPolicyRequestResource] SetIamPolicyNetworkAttachmentRequest regionSetPolicyRequestResource + * @property {string|null} [resource] SetIamPolicyNetworkAttachmentRequest resource + */ + + /** + * Constructs a new SetIamPolicyNetworkAttachmentRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a SetIamPolicyNetworkAttachmentRequest. + * @implements ISetIamPolicyNetworkAttachmentRequest + * @constructor + * @param {google.cloud.compute.v1.ISetIamPolicyNetworkAttachmentRequest=} [properties] Properties to set + */ + function SetIamPolicyNetworkAttachmentRequest(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]]; + } + + /** + * SetIamPolicyNetworkAttachmentRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.SetIamPolicyNetworkAttachmentRequest + * @instance + */ + SetIamPolicyNetworkAttachmentRequest.prototype.project = ""; + + /** + * SetIamPolicyNetworkAttachmentRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.SetIamPolicyNetworkAttachmentRequest + * @instance + */ + SetIamPolicyNetworkAttachmentRequest.prototype.region = ""; + + /** + * SetIamPolicyNetworkAttachmentRequest regionSetPolicyRequestResource. + * @member {google.cloud.compute.v1.IRegionSetPolicyRequest|null|undefined} regionSetPolicyRequestResource + * @memberof google.cloud.compute.v1.SetIamPolicyNetworkAttachmentRequest + * @instance + */ + SetIamPolicyNetworkAttachmentRequest.prototype.regionSetPolicyRequestResource = null; + + /** + * SetIamPolicyNetworkAttachmentRequest resource. + * @member {string} resource + * @memberof google.cloud.compute.v1.SetIamPolicyNetworkAttachmentRequest + * @instance + */ + SetIamPolicyNetworkAttachmentRequest.prototype.resource = ""; + + /** + * Creates a new SetIamPolicyNetworkAttachmentRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.SetIamPolicyNetworkAttachmentRequest + * @static + * @param {google.cloud.compute.v1.ISetIamPolicyNetworkAttachmentRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.SetIamPolicyNetworkAttachmentRequest} SetIamPolicyNetworkAttachmentRequest instance + */ + SetIamPolicyNetworkAttachmentRequest.create = function create(properties) { + return new SetIamPolicyNetworkAttachmentRequest(properties); + }; + + /** + * Encodes the specified SetIamPolicyNetworkAttachmentRequest message. Does not implicitly {@link google.cloud.compute.v1.SetIamPolicyNetworkAttachmentRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.SetIamPolicyNetworkAttachmentRequest + * @static + * @param {google.cloud.compute.v1.ISetIamPolicyNetworkAttachmentRequest} message SetIamPolicyNetworkAttachmentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetIamPolicyNetworkAttachmentRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); + if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) + writer.uint32(/* id 195806222, wireType 2 =*/1566449778).string(message.resource); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.regionSetPolicyRequestResource != null && Object.hasOwnProperty.call(message, "regionSetPolicyRequestResource")) + $root.google.cloud.compute.v1.RegionSetPolicyRequest.encode(message.regionSetPolicyRequestResource, writer.uint32(/* id 276489091, wireType 2 =*/2211912730).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified SetIamPolicyNetworkAttachmentRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.SetIamPolicyNetworkAttachmentRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.SetIamPolicyNetworkAttachmentRequest + * @static + * @param {google.cloud.compute.v1.ISetIamPolicyNetworkAttachmentRequest} message SetIamPolicyNetworkAttachmentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetIamPolicyNetworkAttachmentRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SetIamPolicyNetworkAttachmentRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.SetIamPolicyNetworkAttachmentRequest + * @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.SetIamPolicyNetworkAttachmentRequest} SetIamPolicyNetworkAttachmentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SetIamPolicyNetworkAttachmentRequest.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.SetIamPolicyNetworkAttachmentRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 227560217: { + message.project = reader.string(); + break; + } + case 138946292: { + message.region = reader.string(); + break; + } + case 276489091: { + message.regionSetPolicyRequestResource = $root.google.cloud.compute.v1.RegionSetPolicyRequest.decode(reader, reader.uint32()); + break; + } + case 195806222: { + message.resource = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SetIamPolicyNetworkAttachmentRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.SetIamPolicyNetworkAttachmentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.SetIamPolicyNetworkAttachmentRequest} SetIamPolicyNetworkAttachmentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SetIamPolicyNetworkAttachmentRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SetIamPolicyNetworkAttachmentRequest message. + * @function verify + * @memberof google.cloud.compute.v1.SetIamPolicyNetworkAttachmentRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SetIamPolicyNetworkAttachmentRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; + if (message.regionSetPolicyRequestResource != null && message.hasOwnProperty("regionSetPolicyRequestResource")) { + var error = $root.google.cloud.compute.v1.RegionSetPolicyRequest.verify(message.regionSetPolicyRequestResource); + if (error) + return "regionSetPolicyRequestResource." + error; + } + if (message.resource != null && message.hasOwnProperty("resource")) + if (!$util.isString(message.resource)) + return "resource: string expected"; + return null; + }; + + /** + * Creates a SetIamPolicyNetworkAttachmentRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.SetIamPolicyNetworkAttachmentRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.SetIamPolicyNetworkAttachmentRequest} SetIamPolicyNetworkAttachmentRequest + */ + SetIamPolicyNetworkAttachmentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.SetIamPolicyNetworkAttachmentRequest) + return object; + var message = new $root.google.cloud.compute.v1.SetIamPolicyNetworkAttachmentRequest(); + if (object.project != null) + message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); + if (object.regionSetPolicyRequestResource != null) { + if (typeof object.regionSetPolicyRequestResource !== "object") + throw TypeError(".google.cloud.compute.v1.SetIamPolicyNetworkAttachmentRequest.regionSetPolicyRequestResource: object expected"); + message.regionSetPolicyRequestResource = $root.google.cloud.compute.v1.RegionSetPolicyRequest.fromObject(object.regionSetPolicyRequestResource); + } + if (object.resource != null) + message.resource = String(object.resource); + return message; + }; + + /** + * Creates a plain object from a SetIamPolicyNetworkAttachmentRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.SetIamPolicyNetworkAttachmentRequest + * @static + * @param {google.cloud.compute.v1.SetIamPolicyNetworkAttachmentRequest} message SetIamPolicyNetworkAttachmentRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SetIamPolicyNetworkAttachmentRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.region = ""; + object.resource = ""; + object.project = ""; + object.regionSetPolicyRequestResource = null; + } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; + if (message.resource != null && message.hasOwnProperty("resource")) + object.resource = message.resource; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.regionSetPolicyRequestResource != null && message.hasOwnProperty("regionSetPolicyRequestResource")) + object.regionSetPolicyRequestResource = $root.google.cloud.compute.v1.RegionSetPolicyRequest.toObject(message.regionSetPolicyRequestResource, options); + return object; + }; + + /** + * Converts this SetIamPolicyNetworkAttachmentRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.SetIamPolicyNetworkAttachmentRequest + * @instance + * @returns {Object.} JSON object + */ + SetIamPolicyNetworkAttachmentRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SetIamPolicyNetworkAttachmentRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.SetIamPolicyNetworkAttachmentRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SetIamPolicyNetworkAttachmentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.SetIamPolicyNetworkAttachmentRequest"; + }; + + return SetIamPolicyNetworkAttachmentRequest; + })(); + v1.SetIamPolicyNetworkFirewallPolicyRequest = (function() { /** @@ -403308,6 +408238,7 @@ * Properties of a StopInstanceRequest. * @memberof google.cloud.compute.v1 * @interface IStopInstanceRequest + * @property {boolean|null} [discardLocalSsd] StopInstanceRequest discardLocalSsd * @property {string|null} [instance] StopInstanceRequest instance * @property {string|null} [project] StopInstanceRequest project * @property {string|null} [requestId] StopInstanceRequest requestId @@ -403329,6 +408260,14 @@ this[keys[i]] = properties[keys[i]]; } + /** + * StopInstanceRequest discardLocalSsd. + * @member {boolean|null|undefined} discardLocalSsd + * @memberof google.cloud.compute.v1.StopInstanceRequest + * @instance + */ + StopInstanceRequest.prototype.discardLocalSsd = null; + /** * StopInstanceRequest instance. * @member {string} instance @@ -403364,6 +408303,17 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; + /** + * StopInstanceRequest _discardLocalSsd. + * @member {"discardLocalSsd"|undefined} _discardLocalSsd + * @memberof google.cloud.compute.v1.StopInstanceRequest + * @instance + */ + Object.defineProperty(StopInstanceRequest.prototype, "_discardLocalSsd", { + get: $util.oneOfGetter($oneOfFields = ["discardLocalSsd"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * StopInstanceRequest _requestId. * @member {"requestId"|undefined} _requestId @@ -403407,6 +408357,8 @@ writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); if (message.project != null && Object.hasOwnProperty.call(message, "project")) writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.discardLocalSsd != null && Object.hasOwnProperty.call(message, "discardLocalSsd")) + writer.uint32(/* id 319517903, wireType 0 =*/2556143224).bool(message.discardLocalSsd); return writer; }; @@ -403441,6 +408393,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 319517903: { + message.discardLocalSsd = reader.bool(); + break; + } case 18257045: { message.instance = reader.string(); break; @@ -403493,6 +408449,11 @@ if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; + if (message.discardLocalSsd != null && message.hasOwnProperty("discardLocalSsd")) { + properties._discardLocalSsd = 1; + if (typeof message.discardLocalSsd !== "boolean") + return "discardLocalSsd: boolean expected"; + } if (message.instance != null && message.hasOwnProperty("instance")) if (!$util.isString(message.instance)) return "instance: string expected"; @@ -403522,6 +408483,8 @@ if (object instanceof $root.google.cloud.compute.v1.StopInstanceRequest) return object; var message = new $root.google.cloud.compute.v1.StopInstanceRequest(); + if (object.discardLocalSsd != null) + message.discardLocalSsd = Boolean(object.discardLocalSsd); if (object.instance != null) message.instance = String(object.instance); if (object.project != null) @@ -403562,6 +408525,11 @@ } if (message.project != null && message.hasOwnProperty("project")) object.project = message.project; + if (message.discardLocalSsd != null && message.hasOwnProperty("discardLocalSsd")) { + object.discardLocalSsd = message.discardLocalSsd; + if (options.oneofs) + object._discardLocalSsd = "discardLocalSsd"; + } return object; }; @@ -407400,6 +412368,7 @@ * Properties of a SuspendInstanceRequest. * @memberof google.cloud.compute.v1 * @interface ISuspendInstanceRequest + * @property {boolean|null} [discardLocalSsd] SuspendInstanceRequest discardLocalSsd * @property {string|null} [instance] SuspendInstanceRequest instance * @property {string|null} [project] SuspendInstanceRequest project * @property {string|null} [requestId] SuspendInstanceRequest requestId @@ -407421,6 +412390,14 @@ this[keys[i]] = properties[keys[i]]; } + /** + * SuspendInstanceRequest discardLocalSsd. + * @member {boolean|null|undefined} discardLocalSsd + * @memberof google.cloud.compute.v1.SuspendInstanceRequest + * @instance + */ + SuspendInstanceRequest.prototype.discardLocalSsd = null; + /** * SuspendInstanceRequest instance. * @member {string} instance @@ -407456,6 +412433,17 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; + /** + * SuspendInstanceRequest _discardLocalSsd. + * @member {"discardLocalSsd"|undefined} _discardLocalSsd + * @memberof google.cloud.compute.v1.SuspendInstanceRequest + * @instance + */ + Object.defineProperty(SuspendInstanceRequest.prototype, "_discardLocalSsd", { + get: $util.oneOfGetter($oneOfFields = ["discardLocalSsd"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * SuspendInstanceRequest _requestId. * @member {"requestId"|undefined} _requestId @@ -407499,6 +412487,8 @@ writer.uint32(/* id 37109963, wireType 2 =*/296879706).string(message.requestId); if (message.project != null && Object.hasOwnProperty.call(message, "project")) writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.discardLocalSsd != null && Object.hasOwnProperty.call(message, "discardLocalSsd")) + writer.uint32(/* id 319517903, wireType 0 =*/2556143224).bool(message.discardLocalSsd); return writer; }; @@ -407533,6 +412523,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 319517903: { + message.discardLocalSsd = reader.bool(); + break; + } case 18257045: { message.instance = reader.string(); break; @@ -407585,6 +412579,11 @@ if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; + if (message.discardLocalSsd != null && message.hasOwnProperty("discardLocalSsd")) { + properties._discardLocalSsd = 1; + if (typeof message.discardLocalSsd !== "boolean") + return "discardLocalSsd: boolean expected"; + } if (message.instance != null && message.hasOwnProperty("instance")) if (!$util.isString(message.instance)) return "instance: string expected"; @@ -407614,6 +412613,8 @@ if (object instanceof $root.google.cloud.compute.v1.SuspendInstanceRequest) return object; var message = new $root.google.cloud.compute.v1.SuspendInstanceRequest(); + if (object.discardLocalSsd != null) + message.discardLocalSsd = Boolean(object.discardLocalSsd); if (object.instance != null) message.instance = String(object.instance); if (object.project != null) @@ -407654,6 +412655,11 @@ } if (message.project != null && message.hasOwnProperty("project")) object.project = message.project; + if (message.discardLocalSsd != null && message.hasOwnProperty("discardLocalSsd")) { + object.discardLocalSsd = message.discardLocalSsd; + if (options.oneofs) + object._discardLocalSsd = "discardLocalSsd"; + } return object; }; @@ -427532,30 +432538,285 @@ }; /** - * Decodes a TestIamPermissionsLicenseRequest message from the specified reader or buffer, length delimited. + * Decodes a TestIamPermissionsLicenseRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.compute.v1.TestIamPermissionsLicenseRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.compute.v1.TestIamPermissionsLicenseRequest} TestIamPermissionsLicenseRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TestIamPermissionsLicenseRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TestIamPermissionsLicenseRequest message. + * @function verify + * @memberof google.cloud.compute.v1.TestIamPermissionsLicenseRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TestIamPermissionsLicenseRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.resource != null && message.hasOwnProperty("resource")) + if (!$util.isString(message.resource)) + return "resource: string expected"; + if (message.testPermissionsRequestResource != null && message.hasOwnProperty("testPermissionsRequestResource")) { + var error = $root.google.cloud.compute.v1.TestPermissionsRequest.verify(message.testPermissionsRequestResource); + if (error) + return "testPermissionsRequestResource." + error; + } + return null; + }; + + /** + * Creates a TestIamPermissionsLicenseRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.compute.v1.TestIamPermissionsLicenseRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.compute.v1.TestIamPermissionsLicenseRequest} TestIamPermissionsLicenseRequest + */ + TestIamPermissionsLicenseRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.TestIamPermissionsLicenseRequest) + return object; + var message = new $root.google.cloud.compute.v1.TestIamPermissionsLicenseRequest(); + if (object.project != null) + message.project = String(object.project); + if (object.resource != null) + message.resource = String(object.resource); + if (object.testPermissionsRequestResource != null) { + if (typeof object.testPermissionsRequestResource !== "object") + throw TypeError(".google.cloud.compute.v1.TestIamPermissionsLicenseRequest.testPermissionsRequestResource: object expected"); + message.testPermissionsRequestResource = $root.google.cloud.compute.v1.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); + } + return message; + }; + + /** + * Creates a plain object from a TestIamPermissionsLicenseRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.compute.v1.TestIamPermissionsLicenseRequest + * @static + * @param {google.cloud.compute.v1.TestIamPermissionsLicenseRequest} message TestIamPermissionsLicenseRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TestIamPermissionsLicenseRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.resource = ""; + object.project = ""; + object.testPermissionsRequestResource = null; + } + if (message.resource != null && message.hasOwnProperty("resource")) + object.resource = message.resource; + if (message.project != null && message.hasOwnProperty("project")) + object.project = message.project; + if (message.testPermissionsRequestResource != null && message.hasOwnProperty("testPermissionsRequestResource")) + object.testPermissionsRequestResource = $root.google.cloud.compute.v1.TestPermissionsRequest.toObject(message.testPermissionsRequestResource, options); + return object; + }; + + /** + * Converts this TestIamPermissionsLicenseRequest to JSON. + * @function toJSON + * @memberof google.cloud.compute.v1.TestIamPermissionsLicenseRequest + * @instance + * @returns {Object.} JSON object + */ + TestIamPermissionsLicenseRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for TestIamPermissionsLicenseRequest + * @function getTypeUrl + * @memberof google.cloud.compute.v1.TestIamPermissionsLicenseRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TestIamPermissionsLicenseRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.compute.v1.TestIamPermissionsLicenseRequest"; + }; + + return TestIamPermissionsLicenseRequest; + })(); + + v1.TestIamPermissionsMachineImageRequest = (function() { + + /** + * Properties of a TestIamPermissionsMachineImageRequest. + * @memberof google.cloud.compute.v1 + * @interface ITestIamPermissionsMachineImageRequest + * @property {string|null} [project] TestIamPermissionsMachineImageRequest project + * @property {string|null} [resource] TestIamPermissionsMachineImageRequest resource + * @property {google.cloud.compute.v1.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsMachineImageRequest testPermissionsRequestResource + */ + + /** + * Constructs a new TestIamPermissionsMachineImageRequest. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a TestIamPermissionsMachineImageRequest. + * @implements ITestIamPermissionsMachineImageRequest + * @constructor + * @param {google.cloud.compute.v1.ITestIamPermissionsMachineImageRequest=} [properties] Properties to set + */ + function TestIamPermissionsMachineImageRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TestIamPermissionsMachineImageRequest project. + * @member {string} project + * @memberof google.cloud.compute.v1.TestIamPermissionsMachineImageRequest + * @instance + */ + TestIamPermissionsMachineImageRequest.prototype.project = ""; + + /** + * TestIamPermissionsMachineImageRequest resource. + * @member {string} resource + * @memberof google.cloud.compute.v1.TestIamPermissionsMachineImageRequest + * @instance + */ + TestIamPermissionsMachineImageRequest.prototype.resource = ""; + + /** + * TestIamPermissionsMachineImageRequest testPermissionsRequestResource. + * @member {google.cloud.compute.v1.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource + * @memberof google.cloud.compute.v1.TestIamPermissionsMachineImageRequest + * @instance + */ + TestIamPermissionsMachineImageRequest.prototype.testPermissionsRequestResource = null; + + /** + * Creates a new TestIamPermissionsMachineImageRequest instance using the specified properties. + * @function create + * @memberof google.cloud.compute.v1.TestIamPermissionsMachineImageRequest + * @static + * @param {google.cloud.compute.v1.ITestIamPermissionsMachineImageRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.TestIamPermissionsMachineImageRequest} TestIamPermissionsMachineImageRequest instance + */ + TestIamPermissionsMachineImageRequest.create = function create(properties) { + return new TestIamPermissionsMachineImageRequest(properties); + }; + + /** + * Encodes the specified TestIamPermissionsMachineImageRequest message. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsMachineImageRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.compute.v1.TestIamPermissionsMachineImageRequest + * @static + * @param {google.cloud.compute.v1.ITestIamPermissionsMachineImageRequest} message TestIamPermissionsMachineImageRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TestIamPermissionsMachineImageRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) + writer.uint32(/* id 195806222, wireType 2 =*/1566449778).string(message.resource); + if (message.project != null && Object.hasOwnProperty.call(message, "project")) + writer.uint32(/* id 227560217, wireType 2 =*/1820481738).string(message.project); + if (message.testPermissionsRequestResource != null && Object.hasOwnProperty.call(message, "testPermissionsRequestResource")) + $root.google.cloud.compute.v1.TestPermissionsRequest.encode(message.testPermissionsRequestResource, writer.uint32(/* id 439214758, wireType 2 =*/3513718066).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified TestIamPermissionsMachineImageRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsMachineImageRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.compute.v1.TestIamPermissionsMachineImageRequest + * @static + * @param {google.cloud.compute.v1.ITestIamPermissionsMachineImageRequest} message TestIamPermissionsMachineImageRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TestIamPermissionsMachineImageRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TestIamPermissionsMachineImageRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.compute.v1.TestIamPermissionsMachineImageRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.compute.v1.TestIamPermissionsMachineImageRequest} TestIamPermissionsMachineImageRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TestIamPermissionsMachineImageRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.TestIamPermissionsMachineImageRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 227560217: { + message.project = reader.string(); + break; + } + case 195806222: { + message.resource = reader.string(); + break; + } + case 439214758: { + message.testPermissionsRequestResource = $root.google.cloud.compute.v1.TestPermissionsRequest.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TestIamPermissionsMachineImageRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.TestIamPermissionsLicenseRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsMachineImageRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.TestIamPermissionsLicenseRequest} TestIamPermissionsLicenseRequest + * @returns {google.cloud.compute.v1.TestIamPermissionsMachineImageRequest} TestIamPermissionsMachineImageRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsLicenseRequest.decodeDelimited = function decodeDelimited(reader) { + TestIamPermissionsMachineImageRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestIamPermissionsLicenseRequest message. + * Verifies a TestIamPermissionsMachineImageRequest message. * @function verify - * @memberof google.cloud.compute.v1.TestIamPermissionsLicenseRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsMachineImageRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestIamPermissionsLicenseRequest.verify = function verify(message) { + TestIamPermissionsMachineImageRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) @@ -427573,39 +432834,39 @@ }; /** - * Creates a TestIamPermissionsLicenseRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestIamPermissionsMachineImageRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.TestIamPermissionsLicenseRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsMachineImageRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.TestIamPermissionsLicenseRequest} TestIamPermissionsLicenseRequest + * @returns {google.cloud.compute.v1.TestIamPermissionsMachineImageRequest} TestIamPermissionsMachineImageRequest */ - TestIamPermissionsLicenseRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.TestIamPermissionsLicenseRequest) + TestIamPermissionsMachineImageRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.TestIamPermissionsMachineImageRequest) return object; - var message = new $root.google.cloud.compute.v1.TestIamPermissionsLicenseRequest(); + var message = new $root.google.cloud.compute.v1.TestIamPermissionsMachineImageRequest(); if (object.project != null) message.project = String(object.project); if (object.resource != null) message.resource = String(object.resource); if (object.testPermissionsRequestResource != null) { if (typeof object.testPermissionsRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1.TestIamPermissionsLicenseRequest.testPermissionsRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1.TestIamPermissionsMachineImageRequest.testPermissionsRequestResource: object expected"); message.testPermissionsRequestResource = $root.google.cloud.compute.v1.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); } return message; }; /** - * Creates a plain object from a TestIamPermissionsLicenseRequest message. Also converts values to other types if specified. + * Creates a plain object from a TestIamPermissionsMachineImageRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.TestIamPermissionsLicenseRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsMachineImageRequest * @static - * @param {google.cloud.compute.v1.TestIamPermissionsLicenseRequest} message TestIamPermissionsLicenseRequest + * @param {google.cloud.compute.v1.TestIamPermissionsMachineImageRequest} message TestIamPermissionsMachineImageRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestIamPermissionsLicenseRequest.toObject = function toObject(message, options) { + TestIamPermissionsMachineImageRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -427624,54 +432885,55 @@ }; /** - * Converts this TestIamPermissionsLicenseRequest to JSON. + * Converts this TestIamPermissionsMachineImageRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.TestIamPermissionsLicenseRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsMachineImageRequest * @instance * @returns {Object.} JSON object */ - TestIamPermissionsLicenseRequest.prototype.toJSON = function toJSON() { + TestIamPermissionsMachineImageRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TestIamPermissionsLicenseRequest + * Gets the default type url for TestIamPermissionsMachineImageRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.TestIamPermissionsLicenseRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsMachineImageRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestIamPermissionsLicenseRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestIamPermissionsMachineImageRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.TestIamPermissionsLicenseRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.TestIamPermissionsMachineImageRequest"; }; - return TestIamPermissionsLicenseRequest; + return TestIamPermissionsMachineImageRequest; })(); - v1.TestIamPermissionsMachineImageRequest = (function() { + v1.TestIamPermissionsNetworkAttachmentRequest = (function() { /** - * Properties of a TestIamPermissionsMachineImageRequest. + * Properties of a TestIamPermissionsNetworkAttachmentRequest. * @memberof google.cloud.compute.v1 - * @interface ITestIamPermissionsMachineImageRequest - * @property {string|null} [project] TestIamPermissionsMachineImageRequest project - * @property {string|null} [resource] TestIamPermissionsMachineImageRequest resource - * @property {google.cloud.compute.v1.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsMachineImageRequest testPermissionsRequestResource + * @interface ITestIamPermissionsNetworkAttachmentRequest + * @property {string|null} [project] TestIamPermissionsNetworkAttachmentRequest project + * @property {string|null} [region] TestIamPermissionsNetworkAttachmentRequest region + * @property {string|null} [resource] TestIamPermissionsNetworkAttachmentRequest resource + * @property {google.cloud.compute.v1.ITestPermissionsRequest|null} [testPermissionsRequestResource] TestIamPermissionsNetworkAttachmentRequest testPermissionsRequestResource */ /** - * Constructs a new TestIamPermissionsMachineImageRequest. + * Constructs a new TestIamPermissionsNetworkAttachmentRequest. * @memberof google.cloud.compute.v1 - * @classdesc Represents a TestIamPermissionsMachineImageRequest. - * @implements ITestIamPermissionsMachineImageRequest + * @classdesc Represents a TestIamPermissionsNetworkAttachmentRequest. + * @implements ITestIamPermissionsNetworkAttachmentRequest * @constructor - * @param {google.cloud.compute.v1.ITestIamPermissionsMachineImageRequest=} [properties] Properties to set + * @param {google.cloud.compute.v1.ITestIamPermissionsNetworkAttachmentRequest=} [properties] Properties to set */ - function TestIamPermissionsMachineImageRequest(properties) { + function TestIamPermissionsNetworkAttachmentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -427679,53 +432941,63 @@ } /** - * TestIamPermissionsMachineImageRequest project. + * TestIamPermissionsNetworkAttachmentRequest project. * @member {string} project - * @memberof google.cloud.compute.v1.TestIamPermissionsMachineImageRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsNetworkAttachmentRequest * @instance */ - TestIamPermissionsMachineImageRequest.prototype.project = ""; + TestIamPermissionsNetworkAttachmentRequest.prototype.project = ""; /** - * TestIamPermissionsMachineImageRequest resource. + * TestIamPermissionsNetworkAttachmentRequest region. + * @member {string} region + * @memberof google.cloud.compute.v1.TestIamPermissionsNetworkAttachmentRequest + * @instance + */ + TestIamPermissionsNetworkAttachmentRequest.prototype.region = ""; + + /** + * TestIamPermissionsNetworkAttachmentRequest resource. * @member {string} resource - * @memberof google.cloud.compute.v1.TestIamPermissionsMachineImageRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsNetworkAttachmentRequest * @instance */ - TestIamPermissionsMachineImageRequest.prototype.resource = ""; + TestIamPermissionsNetworkAttachmentRequest.prototype.resource = ""; /** - * TestIamPermissionsMachineImageRequest testPermissionsRequestResource. + * TestIamPermissionsNetworkAttachmentRequest testPermissionsRequestResource. * @member {google.cloud.compute.v1.ITestPermissionsRequest|null|undefined} testPermissionsRequestResource - * @memberof google.cloud.compute.v1.TestIamPermissionsMachineImageRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsNetworkAttachmentRequest * @instance */ - TestIamPermissionsMachineImageRequest.prototype.testPermissionsRequestResource = null; + TestIamPermissionsNetworkAttachmentRequest.prototype.testPermissionsRequestResource = null; /** - * Creates a new TestIamPermissionsMachineImageRequest instance using the specified properties. + * Creates a new TestIamPermissionsNetworkAttachmentRequest instance using the specified properties. * @function create - * @memberof google.cloud.compute.v1.TestIamPermissionsMachineImageRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsNetworkAttachmentRequest * @static - * @param {google.cloud.compute.v1.ITestIamPermissionsMachineImageRequest=} [properties] Properties to set - * @returns {google.cloud.compute.v1.TestIamPermissionsMachineImageRequest} TestIamPermissionsMachineImageRequest instance + * @param {google.cloud.compute.v1.ITestIamPermissionsNetworkAttachmentRequest=} [properties] Properties to set + * @returns {google.cloud.compute.v1.TestIamPermissionsNetworkAttachmentRequest} TestIamPermissionsNetworkAttachmentRequest instance */ - TestIamPermissionsMachineImageRequest.create = function create(properties) { - return new TestIamPermissionsMachineImageRequest(properties); + TestIamPermissionsNetworkAttachmentRequest.create = function create(properties) { + return new TestIamPermissionsNetworkAttachmentRequest(properties); }; /** - * Encodes the specified TestIamPermissionsMachineImageRequest message. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsMachineImageRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsNetworkAttachmentRequest message. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsNetworkAttachmentRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.compute.v1.TestIamPermissionsMachineImageRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsNetworkAttachmentRequest * @static - * @param {google.cloud.compute.v1.ITestIamPermissionsMachineImageRequest} message TestIamPermissionsMachineImageRequest message or plain object to encode + * @param {google.cloud.compute.v1.ITestIamPermissionsNetworkAttachmentRequest} message TestIamPermissionsNetworkAttachmentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsMachineImageRequest.encode = function encode(message, writer) { + TestIamPermissionsNetworkAttachmentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.region != null && Object.hasOwnProperty.call(message, "region")) + writer.uint32(/* id 138946292, wireType 2 =*/1111570338).string(message.region); if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) writer.uint32(/* id 195806222, wireType 2 =*/1566449778).string(message.resource); if (message.project != null && Object.hasOwnProperty.call(message, "project")) @@ -427736,33 +433008,33 @@ }; /** - * Encodes the specified TestIamPermissionsMachineImageRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsMachineImageRequest.verify|verify} messages. + * Encodes the specified TestIamPermissionsNetworkAttachmentRequest message, length delimited. Does not implicitly {@link google.cloud.compute.v1.TestIamPermissionsNetworkAttachmentRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.compute.v1.TestIamPermissionsMachineImageRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsNetworkAttachmentRequest * @static - * @param {google.cloud.compute.v1.ITestIamPermissionsMachineImageRequest} message TestIamPermissionsMachineImageRequest message or plain object to encode + * @param {google.cloud.compute.v1.ITestIamPermissionsNetworkAttachmentRequest} message TestIamPermissionsNetworkAttachmentRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TestIamPermissionsMachineImageRequest.encodeDelimited = function encodeDelimited(message, writer) { + TestIamPermissionsNetworkAttachmentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TestIamPermissionsMachineImageRequest message from the specified reader or buffer. + * Decodes a TestIamPermissionsNetworkAttachmentRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.compute.v1.TestIamPermissionsMachineImageRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsNetworkAttachmentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.compute.v1.TestIamPermissionsMachineImageRequest} TestIamPermissionsMachineImageRequest + * @returns {google.cloud.compute.v1.TestIamPermissionsNetworkAttachmentRequest} TestIamPermissionsNetworkAttachmentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsMachineImageRequest.decode = function decode(reader, length) { + TestIamPermissionsNetworkAttachmentRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.TestIamPermissionsMachineImageRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.compute.v1.TestIamPermissionsNetworkAttachmentRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -427770,6 +433042,10 @@ message.project = reader.string(); break; } + case 138946292: { + message.region = reader.string(); + break; + } case 195806222: { message.resource = reader.string(); break; @@ -427787,35 +433063,38 @@ }; /** - * Decodes a TestIamPermissionsMachineImageRequest message from the specified reader or buffer, length delimited. + * Decodes a TestIamPermissionsNetworkAttachmentRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.compute.v1.TestIamPermissionsMachineImageRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsNetworkAttachmentRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.compute.v1.TestIamPermissionsMachineImageRequest} TestIamPermissionsMachineImageRequest + * @returns {google.cloud.compute.v1.TestIamPermissionsNetworkAttachmentRequest} TestIamPermissionsNetworkAttachmentRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TestIamPermissionsMachineImageRequest.decodeDelimited = function decodeDelimited(reader) { + TestIamPermissionsNetworkAttachmentRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TestIamPermissionsMachineImageRequest message. + * Verifies a TestIamPermissionsNetworkAttachmentRequest message. * @function verify - * @memberof google.cloud.compute.v1.TestIamPermissionsMachineImageRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsNetworkAttachmentRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TestIamPermissionsMachineImageRequest.verify = function verify(message) { + TestIamPermissionsNetworkAttachmentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.project != null && message.hasOwnProperty("project")) if (!$util.isString(message.project)) return "project: string expected"; + if (message.region != null && message.hasOwnProperty("region")) + if (!$util.isString(message.region)) + return "region: string expected"; if (message.resource != null && message.hasOwnProperty("resource")) if (!$util.isString(message.resource)) return "resource: string expected"; @@ -427828,47 +433107,52 @@ }; /** - * Creates a TestIamPermissionsMachineImageRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TestIamPermissionsNetworkAttachmentRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.compute.v1.TestIamPermissionsMachineImageRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsNetworkAttachmentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.compute.v1.TestIamPermissionsMachineImageRequest} TestIamPermissionsMachineImageRequest + * @returns {google.cloud.compute.v1.TestIamPermissionsNetworkAttachmentRequest} TestIamPermissionsNetworkAttachmentRequest */ - TestIamPermissionsMachineImageRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.compute.v1.TestIamPermissionsMachineImageRequest) + TestIamPermissionsNetworkAttachmentRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.compute.v1.TestIamPermissionsNetworkAttachmentRequest) return object; - var message = new $root.google.cloud.compute.v1.TestIamPermissionsMachineImageRequest(); + var message = new $root.google.cloud.compute.v1.TestIamPermissionsNetworkAttachmentRequest(); if (object.project != null) message.project = String(object.project); + if (object.region != null) + message.region = String(object.region); if (object.resource != null) message.resource = String(object.resource); if (object.testPermissionsRequestResource != null) { if (typeof object.testPermissionsRequestResource !== "object") - throw TypeError(".google.cloud.compute.v1.TestIamPermissionsMachineImageRequest.testPermissionsRequestResource: object expected"); + throw TypeError(".google.cloud.compute.v1.TestIamPermissionsNetworkAttachmentRequest.testPermissionsRequestResource: object expected"); message.testPermissionsRequestResource = $root.google.cloud.compute.v1.TestPermissionsRequest.fromObject(object.testPermissionsRequestResource); } return message; }; /** - * Creates a plain object from a TestIamPermissionsMachineImageRequest message. Also converts values to other types if specified. + * Creates a plain object from a TestIamPermissionsNetworkAttachmentRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.compute.v1.TestIamPermissionsMachineImageRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsNetworkAttachmentRequest * @static - * @param {google.cloud.compute.v1.TestIamPermissionsMachineImageRequest} message TestIamPermissionsMachineImageRequest + * @param {google.cloud.compute.v1.TestIamPermissionsNetworkAttachmentRequest} message TestIamPermissionsNetworkAttachmentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TestIamPermissionsMachineImageRequest.toObject = function toObject(message, options) { + TestIamPermissionsNetworkAttachmentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { + object.region = ""; object.resource = ""; object.project = ""; object.testPermissionsRequestResource = null; } + if (message.region != null && message.hasOwnProperty("region")) + object.region = message.region; if (message.resource != null && message.hasOwnProperty("resource")) object.resource = message.resource; if (message.project != null && message.hasOwnProperty("project")) @@ -427879,32 +433163,32 @@ }; /** - * Converts this TestIamPermissionsMachineImageRequest to JSON. + * Converts this TestIamPermissionsNetworkAttachmentRequest to JSON. * @function toJSON - * @memberof google.cloud.compute.v1.TestIamPermissionsMachineImageRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsNetworkAttachmentRequest * @instance * @returns {Object.} JSON object */ - TestIamPermissionsMachineImageRequest.prototype.toJSON = function toJSON() { + TestIamPermissionsNetworkAttachmentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TestIamPermissionsMachineImageRequest + * Gets the default type url for TestIamPermissionsNetworkAttachmentRequest * @function getTypeUrl - * @memberof google.cloud.compute.v1.TestIamPermissionsMachineImageRequest + * @memberof google.cloud.compute.v1.TestIamPermissionsNetworkAttachmentRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TestIamPermissionsMachineImageRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TestIamPermissionsNetworkAttachmentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.compute.v1.TestIamPermissionsMachineImageRequest"; + return typeUrlPrefix + "/google.cloud.compute.v1.TestIamPermissionsNetworkAttachmentRequest"; }; - return TestIamPermissionsMachineImageRequest; + return TestIamPermissionsNetworkAttachmentRequest; })(); v1.TestIamPermissionsNetworkEndpointGroupRequest = (function() { @@ -466894,6 +472178,305 @@ return MachineTypes; })(); + v1.NetworkAttachments = (function() { + + /** + * Constructs a new NetworkAttachments service. + * @memberof google.cloud.compute.v1 + * @classdesc Represents a NetworkAttachments + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function NetworkAttachments(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (NetworkAttachments.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = NetworkAttachments; + + /** + * Creates new NetworkAttachments service using the specified rpc implementation. + * @function create + * @memberof google.cloud.compute.v1.NetworkAttachments + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {NetworkAttachments} RPC service. Useful where requests and/or responses are streamed. + */ + NetworkAttachments.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.compute.v1.NetworkAttachments|aggregatedList}. + * @memberof google.cloud.compute.v1.NetworkAttachments + * @typedef AggregatedListCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.NetworkAttachmentAggregatedList} [response] NetworkAttachmentAggregatedList + */ + + /** + * Calls AggregatedList. + * @function aggregatedList + * @memberof google.cloud.compute.v1.NetworkAttachments + * @instance + * @param {google.cloud.compute.v1.IAggregatedListNetworkAttachmentsRequest} request AggregatedListNetworkAttachmentsRequest message or plain object + * @param {google.cloud.compute.v1.NetworkAttachments.AggregatedListCallback} callback Node-style callback called with the error, if any, and NetworkAttachmentAggregatedList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(NetworkAttachments.prototype.aggregatedList = function aggregatedList(request, callback) { + return this.rpcCall(aggregatedList, $root.google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest, $root.google.cloud.compute.v1.NetworkAttachmentAggregatedList, request, callback); + }, "name", { value: "AggregatedList" }); + + /** + * Calls AggregatedList. + * @function aggregatedList + * @memberof google.cloud.compute.v1.NetworkAttachments + * @instance + * @param {google.cloud.compute.v1.IAggregatedListNetworkAttachmentsRequest} request AggregatedListNetworkAttachmentsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.NetworkAttachments|delete_}. + * @memberof google.cloud.compute.v1.NetworkAttachments + * @typedef DeleteCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.Operation} [response] Operation + */ + + /** + * Calls Delete. + * @function delete + * @memberof google.cloud.compute.v1.NetworkAttachments + * @instance + * @param {google.cloud.compute.v1.IDeleteNetworkAttachmentRequest} request DeleteNetworkAttachmentRequest message or plain object + * @param {google.cloud.compute.v1.NetworkAttachments.DeleteCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(NetworkAttachments.prototype["delete"] = function delete_(request, callback) { + return this.rpcCall(delete_, $root.google.cloud.compute.v1.DeleteNetworkAttachmentRequest, $root.google.cloud.compute.v1.Operation, request, callback); + }, "name", { value: "Delete" }); + + /** + * Calls Delete. + * @function delete + * @memberof google.cloud.compute.v1.NetworkAttachments + * @instance + * @param {google.cloud.compute.v1.IDeleteNetworkAttachmentRequest} request DeleteNetworkAttachmentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.NetworkAttachments|get}. + * @memberof google.cloud.compute.v1.NetworkAttachments + * @typedef GetCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.NetworkAttachment} [response] NetworkAttachment + */ + + /** + * Calls Get. + * @function get + * @memberof google.cloud.compute.v1.NetworkAttachments + * @instance + * @param {google.cloud.compute.v1.IGetNetworkAttachmentRequest} request GetNetworkAttachmentRequest message or plain object + * @param {google.cloud.compute.v1.NetworkAttachments.GetCallback} callback Node-style callback called with the error, if any, and NetworkAttachment + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(NetworkAttachments.prototype.get = function get(request, callback) { + return this.rpcCall(get, $root.google.cloud.compute.v1.GetNetworkAttachmentRequest, $root.google.cloud.compute.v1.NetworkAttachment, request, callback); + }, "name", { value: "Get" }); + + /** + * Calls Get. + * @function get + * @memberof google.cloud.compute.v1.NetworkAttachments + * @instance + * @param {google.cloud.compute.v1.IGetNetworkAttachmentRequest} request GetNetworkAttachmentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.NetworkAttachments|getIamPolicy}. + * @memberof google.cloud.compute.v1.NetworkAttachments + * @typedef GetIamPolicyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.Policy} [response] Policy + */ + + /** + * Calls GetIamPolicy. + * @function getIamPolicy + * @memberof google.cloud.compute.v1.NetworkAttachments + * @instance + * @param {google.cloud.compute.v1.IGetIamPolicyNetworkAttachmentRequest} request GetIamPolicyNetworkAttachmentRequest message or plain object + * @param {google.cloud.compute.v1.NetworkAttachments.GetIamPolicyCallback} callback Node-style callback called with the error, if any, and Policy + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(NetworkAttachments.prototype.getIamPolicy = function getIamPolicy(request, callback) { + return this.rpcCall(getIamPolicy, $root.google.cloud.compute.v1.GetIamPolicyNetworkAttachmentRequest, $root.google.cloud.compute.v1.Policy, request, callback); + }, "name", { value: "GetIamPolicy" }); + + /** + * Calls GetIamPolicy. + * @function getIamPolicy + * @memberof google.cloud.compute.v1.NetworkAttachments + * @instance + * @param {google.cloud.compute.v1.IGetIamPolicyNetworkAttachmentRequest} request GetIamPolicyNetworkAttachmentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.NetworkAttachments|insert}. + * @memberof google.cloud.compute.v1.NetworkAttachments + * @typedef InsertCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.Operation} [response] Operation + */ + + /** + * Calls Insert. + * @function insert + * @memberof google.cloud.compute.v1.NetworkAttachments + * @instance + * @param {google.cloud.compute.v1.IInsertNetworkAttachmentRequest} request InsertNetworkAttachmentRequest message or plain object + * @param {google.cloud.compute.v1.NetworkAttachments.InsertCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(NetworkAttachments.prototype.insert = function insert(request, callback) { + return this.rpcCall(insert, $root.google.cloud.compute.v1.InsertNetworkAttachmentRequest, $root.google.cloud.compute.v1.Operation, request, callback); + }, "name", { value: "Insert" }); + + /** + * Calls Insert. + * @function insert + * @memberof google.cloud.compute.v1.NetworkAttachments + * @instance + * @param {google.cloud.compute.v1.IInsertNetworkAttachmentRequest} request InsertNetworkAttachmentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.NetworkAttachments|list}. + * @memberof google.cloud.compute.v1.NetworkAttachments + * @typedef ListCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.NetworkAttachmentList} [response] NetworkAttachmentList + */ + + /** + * Calls List. + * @function list + * @memberof google.cloud.compute.v1.NetworkAttachments + * @instance + * @param {google.cloud.compute.v1.IListNetworkAttachmentsRequest} request ListNetworkAttachmentsRequest message or plain object + * @param {google.cloud.compute.v1.NetworkAttachments.ListCallback} callback Node-style callback called with the error, if any, and NetworkAttachmentList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(NetworkAttachments.prototype.list = function list(request, callback) { + return this.rpcCall(list, $root.google.cloud.compute.v1.ListNetworkAttachmentsRequest, $root.google.cloud.compute.v1.NetworkAttachmentList, request, callback); + }, "name", { value: "List" }); + + /** + * Calls List. + * @function list + * @memberof google.cloud.compute.v1.NetworkAttachments + * @instance + * @param {google.cloud.compute.v1.IListNetworkAttachmentsRequest} request ListNetworkAttachmentsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.NetworkAttachments|setIamPolicy}. + * @memberof google.cloud.compute.v1.NetworkAttachments + * @typedef SetIamPolicyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.Policy} [response] Policy + */ + + /** + * Calls SetIamPolicy. + * @function setIamPolicy + * @memberof google.cloud.compute.v1.NetworkAttachments + * @instance + * @param {google.cloud.compute.v1.ISetIamPolicyNetworkAttachmentRequest} request SetIamPolicyNetworkAttachmentRequest message or plain object + * @param {google.cloud.compute.v1.NetworkAttachments.SetIamPolicyCallback} callback Node-style callback called with the error, if any, and Policy + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(NetworkAttachments.prototype.setIamPolicy = function setIamPolicy(request, callback) { + return this.rpcCall(setIamPolicy, $root.google.cloud.compute.v1.SetIamPolicyNetworkAttachmentRequest, $root.google.cloud.compute.v1.Policy, request, callback); + }, "name", { value: "SetIamPolicy" }); + + /** + * Calls SetIamPolicy. + * @function setIamPolicy + * @memberof google.cloud.compute.v1.NetworkAttachments + * @instance + * @param {google.cloud.compute.v1.ISetIamPolicyNetworkAttachmentRequest} request SetIamPolicyNetworkAttachmentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.compute.v1.NetworkAttachments|testIamPermissions}. + * @memberof google.cloud.compute.v1.NetworkAttachments + * @typedef TestIamPermissionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.compute.v1.TestPermissionsResponse} [response] TestPermissionsResponse + */ + + /** + * Calls TestIamPermissions. + * @function testIamPermissions + * @memberof google.cloud.compute.v1.NetworkAttachments + * @instance + * @param {google.cloud.compute.v1.ITestIamPermissionsNetworkAttachmentRequest} request TestIamPermissionsNetworkAttachmentRequest message or plain object + * @param {google.cloud.compute.v1.NetworkAttachments.TestIamPermissionsCallback} callback Node-style callback called with the error, if any, and TestPermissionsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(NetworkAttachments.prototype.testIamPermissions = function testIamPermissions(request, callback) { + return this.rpcCall(testIamPermissions, $root.google.cloud.compute.v1.TestIamPermissionsNetworkAttachmentRequest, $root.google.cloud.compute.v1.TestPermissionsResponse, request, callback); + }, "name", { value: "TestIamPermissions" }); + + /** + * Calls TestIamPermissions. + * @function testIamPermissions + * @memberof google.cloud.compute.v1.NetworkAttachments + * @instance + * @param {google.cloud.compute.v1.ITestIamPermissionsNetworkAttachmentRequest} request TestIamPermissionsNetworkAttachmentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return NetworkAttachments; + })(); + v1.NetworkEdgeSecurityServices = (function() { /** diff --git a/packages/google-cloud-compute/protos/protos.json b/packages/google-cloud-compute/protos/protos.json index afa1306e6c5..d08c1ea0823 100644 --- a/packages/google-cloud-compute/protos/protos.json +++ b/packages/google-cloud-compute/protos/protos.json @@ -3147,6 +3147,91 @@ } } }, + "AggregatedListNetworkAttachmentsRequest": { + "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 + } + } + } + }, "AggregatedListNetworkEdgeSecurityServicesRequest": { "oneofs": { "_filter": { @@ -11732,6 +11817,47 @@ } } }, + "DeleteNetworkAttachmentRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "networkAttachment": { + "type": "string", + "id": 224644052, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "project" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "region" + } + }, + "requestId": { + "type": "string", + "id": 37109963, + "options": { + "proto3_optional": true + } + } + } + }, "DeleteNetworkEdgeSecurityServiceRequest": { "oneofs": { "_requestId": { @@ -18544,78 +18670,7 @@ } } }, - "GetIamPolicyNetworkFirewallPolicyRequest": { - "oneofs": { - "_optionsRequestedPolicyVersion": { - "oneof": [ - "optionsRequestedPolicyVersion" - ] - } - }, - "fields": { - "optionsRequestedPolicyVersion": { - "type": "int32", - "id": 499220029, - "options": { - "proto3_optional": true - } - }, - "project": { - "type": "string", - "id": 227560217, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "resource": { - "type": "string", - "id": 195806222, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "GetIamPolicyNodeGroupRequest": { - "oneofs": { - "_optionsRequestedPolicyVersion": { - "oneof": [ - "optionsRequestedPolicyVersion" - ] - } - }, - "fields": { - "optionsRequestedPolicyVersion": { - "type": "int32", - "id": 499220029, - "options": { - "proto3_optional": true - } - }, - "project": { - "type": "string", - "id": 227560217, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "resource": { - "type": "string", - "id": 195806222, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "zone": { - "type": "string", - "id": 3744684, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "GetIamPolicyNodeTemplateRequest": { + "GetIamPolicyNetworkAttachmentRequest": { "oneofs": { "_optionsRequestedPolicyVersion": { "oneof": [ @@ -18654,7 +18709,7 @@ } } }, - "GetIamPolicyRegionBackendServiceRequest": { + "GetIamPolicyNetworkFirewallPolicyRequest": { "oneofs": { "_optionsRequestedPolicyVersion": { "oneof": [ @@ -18677,13 +18732,6 @@ "(google.api.field_behavior)": "REQUIRED" } }, - "region": { - "type": "string", - "id": 138946292, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, "resource": { "type": "string", "id": 195806222, @@ -18693,7 +18741,7 @@ } } }, - "GetIamPolicyRegionDiskRequest": { + "GetIamPolicyNodeGroupRequest": { "oneofs": { "_optionsRequestedPolicyVersion": { "oneof": [ @@ -18716,23 +18764,23 @@ "(google.api.field_behavior)": "REQUIRED" } }, - "region": { + "resource": { "type": "string", - "id": 138946292, + "id": 195806222, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "resource": { + "zone": { "type": "string", - "id": 195806222, + "id": 3744684, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, - "GetIamPolicyRegionNetworkFirewallPolicyRequest": { + "GetIamPolicyNodeTemplateRequest": { "oneofs": { "_optionsRequestedPolicyVersion": { "oneof": [ @@ -18771,46 +18819,7 @@ } } }, - "GetIamPolicyReservationRequest": { - "oneofs": { - "_optionsRequestedPolicyVersion": { - "oneof": [ - "optionsRequestedPolicyVersion" - ] - } - }, - "fields": { - "optionsRequestedPolicyVersion": { - "type": "int32", - "id": 499220029, - "options": { - "proto3_optional": true - } - }, - "project": { - "type": "string", - "id": 227560217, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "resource": { - "type": "string", - "id": 195806222, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "zone": { - "type": "string", - "id": 3744684, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - } - } - }, - "GetIamPolicyResourcePolicyRequest": { + "GetIamPolicyRegionBackendServiceRequest": { "oneofs": { "_optionsRequestedPolicyVersion": { "oneof": [ @@ -18849,7 +18858,163 @@ } } }, - "GetIamPolicyServiceAttachmentRequest": { + "GetIamPolicyRegionDiskRequest": { + "oneofs": { + "_optionsRequestedPolicyVersion": { + "oneof": [ + "optionsRequestedPolicyVersion" + ] + } + }, + "fields": { + "optionsRequestedPolicyVersion": { + "type": "int32", + "id": 499220029, + "options": { + "proto3_optional": true + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "resource": { + "type": "string", + "id": 195806222, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "GetIamPolicyRegionNetworkFirewallPolicyRequest": { + "oneofs": { + "_optionsRequestedPolicyVersion": { + "oneof": [ + "optionsRequestedPolicyVersion" + ] + } + }, + "fields": { + "optionsRequestedPolicyVersion": { + "type": "int32", + "id": 499220029, + "options": { + "proto3_optional": true + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "resource": { + "type": "string", + "id": 195806222, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "GetIamPolicyReservationRequest": { + "oneofs": { + "_optionsRequestedPolicyVersion": { + "oneof": [ + "optionsRequestedPolicyVersion" + ] + } + }, + "fields": { + "optionsRequestedPolicyVersion": { + "type": "int32", + "id": 499220029, + "options": { + "proto3_optional": true + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "resource": { + "type": "string", + "id": 195806222, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "zone": { + "type": "string", + "id": 3744684, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "GetIamPolicyResourcePolicyRequest": { + "oneofs": { + "_optionsRequestedPolicyVersion": { + "oneof": [ + "optionsRequestedPolicyVersion" + ] + } + }, + "fields": { + "optionsRequestedPolicyVersion": { + "type": "int32", + "id": 499220029, + "options": { + "proto3_optional": true + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "resource": { + "type": "string", + "id": 195806222, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "GetIamPolicyServiceAttachmentRequest": { "oneofs": { "_optionsRequestedPolicyVersion": { "oneof": [ @@ -19322,6 +19487,31 @@ } } }, + "GetNetworkAttachmentRequest": { + "fields": { + "networkAttachment": { + "type": "string", + "id": 224644052, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "GetNetworkEdgeSecurityServiceRequest": { "fields": { "networkEdgeSecurityService": { @@ -24568,6 +24758,47 @@ } } }, + "InsertNetworkAttachmentRequest": { + "oneofs": { + "_requestId": { + "oneof": [ + "requestId" + ] + } + }, + "fields": { + "networkAttachmentResource": { + "type": "NetworkAttachment", + "id": 210974745, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "project" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.cloud.operation_request_field)": "region" + } + }, + "requestId": { + "type": "string", + "id": 37109963, + "options": { + "proto3_optional": true + } + } + } + }, "InsertNetworkEdgeSecurityServiceRequest": { "oneofs": { "_requestId": { @@ -30843,6 +31074,16 @@ }, "InterconnectDiagnostics": { "oneofs": { + "_bundleAggregationType": { + "oneof": [ + "bundleAggregationType" + ] + }, + "_bundleOperationalStatus": { + "oneof": [ + "bundleOperationalStatus" + ] + }, "_macAddress": { "oneof": [ "macAddress" @@ -30855,6 +31096,20 @@ "type": "InterconnectDiagnosticsARPEntry", "id": 414591761 }, + "bundleAggregationType": { + "type": "string", + "id": 434939028, + "options": { + "proto3_optional": true + } + }, + "bundleOperationalStatus": { + "type": "string", + "id": 106433500, + "options": { + "proto3_optional": true + } + }, "links": { "rule": "repeated", "type": "InterconnectDiagnosticsLinkStatus", @@ -30867,6 +31122,22 @@ "proto3_optional": true } } + }, + "nested": { + "BundleAggregationType": { + "values": { + "UNDEFINED_BUNDLE_AGGREGATION_TYPE": 0, + "BUNDLE_AGGREGATION_TYPE_LACP": 27758925, + "BUNDLE_AGGREGATION_TYPE_STATIC": 50678873 + } + }, + "BundleOperationalStatus": { + "values": { + "UNDEFINED_BUNDLE_OPERATIONAL_STATUS": 0, + "BUNDLE_OPERATIONAL_STATUS_DOWN": 453842693, + "BUNDLE_OPERATIONAL_STATUS_UP": 161366462 + } + } } }, "InterconnectDiagnosticsARPEntry": { @@ -31009,6 +31280,11 @@ "lacpStatus" ] }, + "_operationalStatus": { + "oneof": [ + "operationalStatus" + ] + }, "_receivingOpticalPower": { "oneof": [ "receivingOpticalPower" @@ -31047,6 +31323,13 @@ "proto3_optional": true } }, + "operationalStatus": { + "type": "string", + "id": 201070847, + "options": { + "proto3_optional": true + } + }, "receivingOpticalPower": { "type": "InterconnectDiagnosticsLinkOpticalPower", "id": 244717279, @@ -31061,6 +31344,15 @@ "proto3_optional": true } } + }, + "nested": { + "OperationalStatus": { + "values": { + "UNDEFINED_OPERATIONAL_STATUS": 0, + "LINK_OPERATIONAL_STATUS_DOWN": 281653885, + "LINK_OPERATIONAL_STATUS_UP": 305879862 + } + } } }, "InterconnectList": { @@ -35001,6 +35293,86 @@ } } }, + "ListNetworkAttachmentsRequest": { + "oneofs": { + "_filter": { + "oneof": [ + "filter" + ] + }, + "_maxResults": { + "oneof": [ + "maxResults" + ] + }, + "_orderBy": { + "oneof": [ + "orderBy" + ] + }, + "_pageToken": { + "oneof": [ + "pageToken" + ] + }, + "_returnPartialSuccess": { + "oneof": [ + "returnPartialSuccess" + ] + } + }, + "fields": { + "filter": { + "type": "string", + "id": 336120696, + "options": { + "proto3_optional": true + } + }, + "maxResults": { + "type": "uint32", + "id": 54715419, + "options": { + "proto3_optional": true + } + }, + "orderBy": { + "type": "string", + "id": 160562920, + "options": { + "proto3_optional": true + } + }, + "pageToken": { + "type": "string", + "id": 19994697, + "options": { + "proto3_optional": true + } + }, + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "returnPartialSuccess": { + "type": "bool", + "id": 517198390, + "options": { + "proto3_optional": true + } + } + } + }, "ListNetworkEndpointGroupsRequest": { "oneofs": { "_filter": { @@ -41639,8 +42011,13 @@ } } }, - "NetworkEdgeSecurityService": { + "NetworkAttachment": { "oneofs": { + "_connectionPreference": { + "oneof": [ + "connectionPreference" + ] + }, "_creationTimestamp": { "oneof": [ "creationTimestamp" @@ -41671,14 +42048,14 @@ "name" ] }, - "_region": { + "_network": { "oneof": [ - "region" + "network" ] }, - "_securityPolicy": { + "_region": { "oneof": [ - "securityPolicy" + "region" ] }, "_selfLink": { @@ -41693,6 +42070,18 @@ } }, "fields": { + "connectionEndpoints": { + "rule": "repeated", + "type": "NetworkAttachmentConnectedEndpoint", + "id": 326078813 + }, + "connectionPreference": { + "type": "string", + "id": 285818076, + "options": { + "proto3_optional": true + } + }, "creationTimestamp": { "type": "string", "id": 30525366, @@ -41735,16 +42124,26 @@ "proto3_optional": true } }, - "region": { + "network": { "type": "string", - "id": 138946292, + "id": 232872494, "options": { "proto3_optional": true } }, - "securityPolicy": { + "producerAcceptLists": { + "rule": "repeated", "type": "string", - "id": 171082513, + "id": 202804523 + }, + "producerRejectLists": { + "rule": "repeated", + "type": "string", + "id": 4112002 + }, + "region": { + "type": "string", + "id": 138946292, "options": { "proto3_optional": true } @@ -41762,14 +42161,392 @@ "options": { "proto3_optional": true } + }, + "subnetworks": { + "rule": "repeated", + "type": "string", + "id": 415853125 + } + }, + "nested": { + "ConnectionPreference": { + "values": { + "UNDEFINED_CONNECTION_PREFERENCE": 0, + "ACCEPT_AUTOMATIC": 75250580, + "ACCEPT_MANUAL": 373061341, + "INVALID": 530283991 + } } } }, - "NetworkEdgeSecurityServiceAggregatedList": { + "NetworkAttachmentAggregatedList": { "oneofs": { - "_etag": { + "_id": { "oneof": [ - "etag" + "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": "NetworkAttachmentsScopedList", + "id": 100526016 + }, + "kind": { + "type": "string", + "id": 3292052, + "options": { + "proto3_optional": true + } + }, + "nextPageToken": { + "type": "string", + "id": 79797525, + "options": { + "proto3_optional": true + } + }, + "selfLink": { + "type": "string", + "id": 456214797, + "options": { + "proto3_optional": true + } + }, + "warning": { + "type": "Warning", + "id": 50704284, + "options": { + "proto3_optional": true + } + } + } + }, + "NetworkAttachmentConnectedEndpoint": { + "oneofs": { + "_ipAddress": { + "oneof": [ + "ipAddress" + ] + }, + "_projectIdOrNum": { + "oneof": [ + "projectIdOrNum" + ] + }, + "_status": { + "oneof": [ + "status" + ] + }, + "_subnetwork": { + "oneof": [ + "subnetwork" + ] + } + }, + "fields": { + "ipAddress": { + "type": "string", + "id": 406272220, + "options": { + "proto3_optional": true + } + }, + "projectIdOrNum": { + "type": "string", + "id": 349783336, + "options": { + "proto3_optional": true + } + }, + "secondaryIpCidrRanges": { + "rule": "repeated", + "type": "string", + "id": 117184788 + }, + "status": { + "type": "string", + "id": 181260274, + "options": { + "proto3_optional": true + } + }, + "subnetwork": { + "type": "string", + "id": 307827694, + "options": { + "proto3_optional": true + } + } + }, + "nested": { + "Status": { + "values": { + "UNDEFINED_STATUS": 0, + "ACCEPTED": 246714279, + "CLOSED": 380163436, + "NEEDS_ATTENTION": 344491452, + "PENDING": 35394935, + "REJECTED": 174130302, + "STATUS_UNSPECIFIED": 42133066 + } + } + } + }, + "NetworkAttachmentList": { + "oneofs": { + "_id": { + "oneof": [ + "id" + ] + }, + "_kind": { + "oneof": [ + "kind" + ] + }, + "_nextPageToken": { + "oneof": [ + "nextPageToken" + ] + }, + "_selfLink": { + "oneof": [ + "selfLink" + ] + }, + "_warning": { + "oneof": [ + "warning" + ] + } + }, + "fields": { + "id": { + "type": "string", + "id": 3355, + "options": { + "proto3_optional": true + } + }, + "items": { + "rule": "repeated", + "type": "NetworkAttachment", + "id": 100526016 + }, + "kind": { + "type": "string", + "id": 3292052, + "options": { + "proto3_optional": true + } + }, + "nextPageToken": { + "type": "string", + "id": 79797525, + "options": { + "proto3_optional": true + } + }, + "selfLink": { + "type": "string", + "id": 456214797, + "options": { + "proto3_optional": true + } + }, + "warning": { + "type": "Warning", + "id": 50704284, + "options": { + "proto3_optional": true + } + } + } + }, + "NetworkAttachmentsScopedList": { + "oneofs": { + "_warning": { + "oneof": [ + "warning" + ] + } + }, + "fields": { + "networkAttachments": { + "rule": "repeated", + "type": "NetworkAttachment", + "id": 521514783 + }, + "warning": { + "type": "Warning", + "id": 50704284, + "options": { + "proto3_optional": true + } + } + } + }, + "NetworkEdgeSecurityService": { + "oneofs": { + "_creationTimestamp": { + "oneof": [ + "creationTimestamp" + ] + }, + "_description": { + "oneof": [ + "description" + ] + }, + "_fingerprint": { + "oneof": [ + "fingerprint" + ] + }, + "_id": { + "oneof": [ + "id" + ] + }, + "_kind": { + "oneof": [ + "kind" + ] + }, + "_name": { + "oneof": [ + "name" + ] + }, + "_region": { + "oneof": [ + "region" + ] + }, + "_securityPolicy": { + "oneof": [ + "securityPolicy" + ] + }, + "_selfLink": { + "oneof": [ + "selfLink" + ] + }, + "_selfLinkWithId": { + "oneof": [ + "selfLinkWithId" + ] + } + }, + "fields": { + "creationTimestamp": { + "type": "string", + "id": 30525366, + "options": { + "proto3_optional": true + } + }, + "description": { + "type": "string", + "id": 422937596, + "options": { + "proto3_optional": true + } + }, + "fingerprint": { + "type": "string", + "id": 234678500, + "options": { + "proto3_optional": true + } + }, + "id": { + "type": "uint64", + "id": 3355, + "options": { + "proto3_optional": true + } + }, + "kind": { + "type": "string", + "id": 3292052, + "options": { + "proto3_optional": true + } + }, + "name": { + "type": "string", + "id": 3373707, + "options": { + "proto3_optional": true + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "proto3_optional": true + } + }, + "securityPolicy": { + "type": "string", + "id": 171082513, + "options": { + "proto3_optional": true + } + }, + "selfLink": { + "type": "string", + "id": 456214797, + "options": { + "proto3_optional": true + } + }, + "selfLinkWithId": { + "type": "string", + "id": 44520962, + "options": { + "proto3_optional": true + } + } + } + }, + "NetworkEdgeSecurityServiceAggregatedList": { + "oneofs": { + "_etag": { + "oneof": [ + "etag" ] }, "_id": { @@ -48724,6 +49501,11 @@ "usageExportLocation" ] }, + "_vmDnsSetting": { + "oneof": [ + "vmDnsSetting" + ] + }, "_xpnProjectStatus": { "oneof": [ "xpnProjectStatus" @@ -48811,6 +49593,13 @@ "proto3_optional": true } }, + "vmDnsSetting": { + "type": "string", + "id": 58856370, + "options": { + "proto3_optional": true + } + }, "xpnProjectStatus": { "type": "string", "id": 228419265, @@ -48829,6 +49618,15 @@ "STANDARD_OVERRIDES_FIXED_STANDARD": 465847234 } }, + "VmDnsSetting": { + "values": { + "UNDEFINED_VM_DNS_SETTING": 0, + "GLOBAL_DEFAULT": 345419141, + "UNSPECIFIED_VM_DNS_SETTING": 35691930, + "ZONAL_DEFAULT": 368475782, + "ZONAL_ONLY": 521198951 + } + }, "XpnProjectStatus": { "values": { "UNDEFINED_XPN_PROJECT_STATUS": 0, @@ -49783,8 +50581,12 @@ "EXTERNAL_VPN_GATEWAYS": 272457134, "FIREWALLS": 374485843, "FORWARDING_RULES": 432668949, + "GLOBAL_EXTERNAL_MANAGED_BACKEND_SERVICES": 164566753, "GLOBAL_EXTERNAL_MANAGED_FORWARDING_RULES": 327611949, + "GLOBAL_EXTERNAL_PROXY_LB_BACKEND_SERVICES": 400256169, "GLOBAL_INTERNAL_ADDRESSES": 42738332, + "GLOBAL_INTERNAL_MANAGED_BACKEND_SERVICES": 256608303, + "GLOBAL_INTERNAL_TRAFFIC_DIRECTOR_BACKEND_SERVICES": 323514196, "GPUS_ALL_REGIONS": 39387177, "HEALTH_CHECKS": 289347502, "IMAGES": 15562360, @@ -49844,7 +50646,11 @@ "PUBLIC_ADVERTISED_PREFIXES": 471371980, "PUBLIC_DELEGATED_PREFIXES": 532465974, "REGIONAL_AUTOSCALERS": 29363772, + "REGIONAL_EXTERNAL_MANAGED_BACKEND_SERVICES": 4240989, + "REGIONAL_EXTERNAL_NETWORK_LB_BACKEND_SERVICES": 409564525, "REGIONAL_INSTANCE_GROUP_MANAGERS": 37543696, + "REGIONAL_INTERNAL_LB_BACKEND_SERVICES": 137983760, + "REGIONAL_INTERNAL_MANAGED_BACKEND_SERVICES": 96282539, "RESERVATIONS": 32644647, "RESOURCE_POLICIES": 83955297, "ROUTERS": 493018666, @@ -51958,6 +52764,11 @@ "proto3_optional": true } }, + "resourcePolicies": { + "keyType": "string", + "type": "string", + "id": 22220385 + }, "satisfiesPzs": { "type": "bool", "id": 480964267, @@ -57708,6 +58519,11 @@ "connectionLimit" ] }, + "_networkUrl": { + "oneof": [ + "networkUrl" + ] + }, "_projectIdOrNum": { "oneof": [ "projectIdOrNum" @@ -57722,6 +58538,13 @@ "proto3_optional": true } }, + "networkUrl": { + "type": "string", + "id": 207194078, + "options": { + "proto3_optional": true + } + }, "projectIdOrNum": { "type": "string", "id": 349783336, @@ -58506,6 +59329,38 @@ } } }, + "SetIamPolicyNetworkAttachmentRequest": { + "fields": { + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "regionSetPolicyRequestResource": { + "type": "RegionSetPolicyRequest", + "id": 276489091, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "resource": { + "type": "string", + "id": 195806222, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "SetIamPolicyNetworkFirewallPolicyRequest": { "fields": { "globalSetPolicyRequestResource": { @@ -62683,6 +63538,11 @@ }, "StopInstanceRequest": { "oneofs": { + "_discardLocalSsd": { + "oneof": [ + "discardLocalSsd" + ] + }, "_requestId": { "oneof": [ "requestId" @@ -62690,6 +63550,13 @@ } }, "fields": { + "discardLocalSsd": { + "type": "bool", + "id": 319517903, + "options": { + "proto3_optional": true + } + }, "instance": { "type": "string", "id": 18257045, @@ -63416,6 +64283,11 @@ }, "SuspendInstanceRequest": { "oneofs": { + "_discardLocalSsd": { + "oneof": [ + "discardLocalSsd" + ] + }, "_requestId": { "oneof": [ "requestId" @@ -63423,6 +64295,13 @@ } }, "fields": { + "discardLocalSsd": { + "type": "bool", + "id": 319517903, + "options": { + "proto3_optional": true + } + }, "instance": { "type": "string", "id": 18257045, @@ -66492,6 +67371,38 @@ } } }, + "TestIamPermissionsNetworkAttachmentRequest": { + "fields": { + "project": { + "type": "string", + "id": 227560217, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "region": { + "type": "string", + "id": 138946292, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "resource": { + "type": "string", + "id": 195806222, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "testPermissionsRequestResource": { + "type": "TestPermissionsRequest", + "id": 439214758, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "TestIamPermissionsNetworkEndpointGroupRequest": { "fields": { "project": { @@ -76523,6 +77434,172 @@ } } }, + "NetworkAttachments": { + "options": { + "(google.api.default_host)": "compute.googleapis.com", + "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/compute,https://www.googleapis.com/auth/cloud-platform" + }, + "methods": { + "AggregatedList": { + "requestType": "AggregatedListNetworkAttachmentsRequest", + "responseType": "NetworkAttachmentAggregatedList", + "options": { + "(google.api.http).get": "/compute/v1/projects/{project}/aggregated/networkAttachments", + "(google.api.method_signature)": "project" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/v1/projects/{project}/aggregated/networkAttachments" + } + }, + { + "(google.api.method_signature)": "project" + } + ] + }, + "Delete": { + "requestType": "DeleteNetworkAttachmentRequest", + "responseType": "Operation", + "options": { + "(google.api.http).delete": "/compute/v1/projects/{project}/regions/{region}/networkAttachments/{network_attachment}", + "(google.api.method_signature)": "project,region,network_attachment", + "(google.cloud.operation_service)": "RegionOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/compute/v1/projects/{project}/regions/{region}/networkAttachments/{network_attachment}" + } + }, + { + "(google.api.method_signature)": "project,region,network_attachment" + }, + { + "(google.cloud.operation_service)": "RegionOperations" + } + ] + }, + "Get": { + "requestType": "GetNetworkAttachmentRequest", + "responseType": "NetworkAttachment", + "options": { + "(google.api.http).get": "/compute/v1/projects/{project}/regions/{region}/networkAttachments/{network_attachment}", + "(google.api.method_signature)": "project,region,network_attachment" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/v1/projects/{project}/regions/{region}/networkAttachments/{network_attachment}" + } + }, + { + "(google.api.method_signature)": "project,region,network_attachment" + } + ] + }, + "GetIamPolicy": { + "requestType": "GetIamPolicyNetworkAttachmentRequest", + "responseType": "Policy", + "options": { + "(google.api.http).get": "/compute/v1/projects/{project}/regions/{region}/networkAttachments/{resource}/getIamPolicy", + "(google.api.method_signature)": "project,region,resource" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/v1/projects/{project}/regions/{region}/networkAttachments/{resource}/getIamPolicy" + } + }, + { + "(google.api.method_signature)": "project,region,resource" + } + ] + }, + "Insert": { + "requestType": "InsertNetworkAttachmentRequest", + "responseType": "Operation", + "options": { + "(google.api.http).body": "network_attachment_resource", + "(google.api.http).post": "/compute/v1/projects/{project}/regions/{region}/networkAttachments", + "(google.api.method_signature)": "project,region,network_attachment_resource", + "(google.cloud.operation_service)": "RegionOperations" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "network_attachment_resource", + "post": "/compute/v1/projects/{project}/regions/{region}/networkAttachments" + } + }, + { + "(google.api.method_signature)": "project,region,network_attachment_resource" + }, + { + "(google.cloud.operation_service)": "RegionOperations" + } + ] + }, + "List": { + "requestType": "ListNetworkAttachmentsRequest", + "responseType": "NetworkAttachmentList", + "options": { + "(google.api.http).get": "/compute/v1/projects/{project}/regions/{region}/networkAttachments", + "(google.api.method_signature)": "project,region" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/compute/v1/projects/{project}/regions/{region}/networkAttachments" + } + }, + { + "(google.api.method_signature)": "project,region" + } + ] + }, + "SetIamPolicy": { + "requestType": "SetIamPolicyNetworkAttachmentRequest", + "responseType": "Policy", + "options": { + "(google.api.http).body": "region_set_policy_request_resource", + "(google.api.http).post": "/compute/v1/projects/{project}/regions/{region}/networkAttachments/{resource}/setIamPolicy", + "(google.api.method_signature)": "project,region,resource,region_set_policy_request_resource" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "region_set_policy_request_resource", + "post": "/compute/v1/projects/{project}/regions/{region}/networkAttachments/{resource}/setIamPolicy" + } + }, + { + "(google.api.method_signature)": "project,region,resource,region_set_policy_request_resource" + } + ] + }, + "TestIamPermissions": { + "requestType": "TestIamPermissionsNetworkAttachmentRequest", + "responseType": "TestPermissionsResponse", + "options": { + "(google.api.http).body": "test_permissions_request_resource", + "(google.api.http).post": "/compute/v1/projects/{project}/regions/{region}/networkAttachments/{resource}/testIamPermissions", + "(google.api.method_signature)": "project,region,resource,test_permissions_request_resource" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "body": "test_permissions_request_resource", + "post": "/compute/v1/projects/{project}/regions/{region}/networkAttachments/{resource}/testIamPermissions" + } + }, + { + "(google.api.method_signature)": "project,region,resource,test_permissions_request_resource" + } + ] + } + } + }, "NetworkEdgeSecurityServices": { "options": { "(google.api.default_host)": "compute.googleapis.com", diff --git a/packages/google-cloud-compute/samples/README.md b/packages/google-cloud-compute/samples/README.md index 2836657f4bb..2b00ae92f07 100644 --- a/packages/google-cloud-compute/samples/README.md +++ b/packages/google-cloud-compute/samples/README.md @@ -272,6 +272,14 @@ * [Machine_types.aggregated_list](#machine_types.aggregated_list) * [Machine_types.get](#machine_types.get) * [Machine_types.list](#machine_types.list) + * [Network_attachments.aggregated_list](#network_attachments.aggregated_list) + * [Network_attachments.delete](#network_attachments.delete) + * [Network_attachments.get](#network_attachments.get) + * [Network_attachments.get_iam_policy](#network_attachments.get_iam_policy) + * [Network_attachments.insert](#network_attachments.insert) + * [Network_attachments.list](#network_attachments.list) + * [Network_attachments.set_iam_policy](#network_attachments.set_iam_policy) + * [Network_attachments.test_iam_permissions](#network_attachments.test_iam_permissions) * [Network_edge_security_services.aggregated_list](#network_edge_security_services.aggregated_list) * [Network_edge_security_services.delete](#network_edge_security_services.delete) * [Network_edge_security_services.get](#network_edge_security_services.get) @@ -5125,6 +5133,142 @@ __Usage:__ +### Network_attachments.aggregated_list + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/network_attachments.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/network_attachments.aggregated_list.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-compute/samples/generated/v1/network_attachments.aggregated_list.js` + + +----- + + + + +### Network_attachments.delete + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/network_attachments.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/network_attachments.delete.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-compute/samples/generated/v1/network_attachments.delete.js` + + +----- + + + + +### Network_attachments.get + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/network_attachments.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/network_attachments.get.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-compute/samples/generated/v1/network_attachments.get.js` + + +----- + + + + +### Network_attachments.get_iam_policy + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/network_attachments.get_iam_policy.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/network_attachments.get_iam_policy.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-compute/samples/generated/v1/network_attachments.get_iam_policy.js` + + +----- + + + + +### Network_attachments.insert + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/network_attachments.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/network_attachments.insert.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-compute/samples/generated/v1/network_attachments.insert.js` + + +----- + + + + +### Network_attachments.list + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/network_attachments.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/network_attachments.list.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-compute/samples/generated/v1/network_attachments.list.js` + + +----- + + + + +### Network_attachments.set_iam_policy + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/network_attachments.set_iam_policy.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/network_attachments.set_iam_policy.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-compute/samples/generated/v1/network_attachments.set_iam_policy.js` + + +----- + + + + +### Network_attachments.test_iam_permissions + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/network_attachments.test_iam_permissions.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-compute/samples/generated/v1/network_attachments.test_iam_permissions.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-compute/samples/generated/v1/network_attachments.test_iam_permissions.js` + + +----- + + + + ### Network_edge_security_services.aggregated_list View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-compute/samples/generated/v1/network_edge_security_services.aggregated_list.js). diff --git a/packages/google-cloud-compute/samples/generated/v1/instances.stop.js b/packages/google-cloud-compute/samples/generated/v1/instances.stop.js index a9b69befd09..905cc61b18b 100644 --- a/packages/google-cloud-compute/samples/generated/v1/instances.stop.js +++ b/packages/google-cloud-compute/samples/generated/v1/instances.stop.js @@ -28,6 +28,10 @@ function main(instance, project, zone) { * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ + /** + * If true, discard the contents of any attached localSSD partitions. Default value is false. + */ + // const discardLocalSsd = true /** * Name of the instance resource to stop. */ diff --git a/packages/google-cloud-compute/samples/generated/v1/instances.suspend.js b/packages/google-cloud-compute/samples/generated/v1/instances.suspend.js index b34b73f337b..893e4c05dcb 100644 --- a/packages/google-cloud-compute/samples/generated/v1/instances.suspend.js +++ b/packages/google-cloud-compute/samples/generated/v1/instances.suspend.js @@ -28,6 +28,10 @@ function main(instance, project, zone) { * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ + /** + * If true, discard the contents of any attached localSSD partitions. Default value is false. + */ + // const discardLocalSsd = true /** * Name of the instance resource to suspend. */ diff --git a/packages/google-cloud-compute/samples/generated/v1/network_attachments.aggregated_list.js b/packages/google-cloud-compute/samples/generated/v1/network_attachments.aggregated_list.js new file mode 100644 index 00000000000..8fd57fca482 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/network_attachments.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_NetworkAttachments_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' + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + */ + // const returnPartialSuccess = true + + // Imports the Compute library + const {NetworkAttachmentsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new NetworkAttachmentsClient(); + + 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_NetworkAttachments_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/samples/generated/v1/network_attachments.delete.js b/packages/google-cloud-compute/samples/generated/v1/network_attachments.delete.js new file mode 100644 index 00000000000..ceb0e6d2bb0 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/network_attachments.delete.js @@ -0,0 +1,75 @@ +// 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(networkAttachment, project, region) { + // [START compute_v1_generated_NetworkAttachments_Delete_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Name of the NetworkAttachment resource to delete. + */ + // const networkAttachment = 'abc123' + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * Name of the region of this request. + */ + // const region = 'us-central1' + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + */ + // const requestId = 'abc123' + + // Imports the Compute library + const {NetworkAttachmentsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new NetworkAttachmentsClient(); + + async function callDelete() { + // Construct request + const request = { + networkAttachment, + project, + region, + }; + + // Run request + const response = await computeClient.delete(request); + console.log(response); + } + + callDelete(); + // [END compute_v1_generated_NetworkAttachments_Delete_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1/network_attachments.get.js b/packages/google-cloud-compute/samples/generated/v1/network_attachments.get.js new file mode 100644 index 00000000000..821fcad76ba --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/network_attachments.get.js @@ -0,0 +1,71 @@ +// 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(networkAttachment, project, region) { + // [START compute_v1_generated_NetworkAttachments_Get_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Name of the NetworkAttachment resource to return. + */ + // const networkAttachment = 'abc123' + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * Name of the region of this request. + */ + // const region = 'us-central1' + + // Imports the Compute library + const {NetworkAttachmentsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new NetworkAttachmentsClient(); + + async function callGet() { + // Construct request + const request = { + networkAttachment, + project, + region, + }; + + // Run request + const response = await computeClient.get(request); + console.log(response); + } + + callGet(); + // [END compute_v1_generated_NetworkAttachments_Get_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1/network_attachments.get_iam_policy.js b/packages/google-cloud-compute/samples/generated/v1/network_attachments.get_iam_policy.js new file mode 100644 index 00000000000..297d1701da9 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/network_attachments.get_iam_policy.js @@ -0,0 +1,75 @@ +// 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, region, resource) { + // [START compute_v1_generated_NetworkAttachments_GetIamPolicy_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. + */ + /** + * Requested IAM Policy version. + */ + // const optionsRequestedPolicyVersion = 1234 + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * The name of the region for this request. + */ + // const region = 'us-central1' + /** + * Name or id of the resource for this request. + */ + // const resource = 'abc123' + + // Imports the Compute library + const {NetworkAttachmentsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new NetworkAttachmentsClient(); + + async function callGetIamPolicy() { + // Construct request + const request = { + project, + region, + resource, + }; + + // Run request + const response = await computeClient.getIamPolicy(request); + console.log(response); + } + + callGetIamPolicy(); + // [END compute_v1_generated_NetworkAttachments_GetIamPolicy_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1/network_attachments.insert.js b/packages/google-cloud-compute/samples/generated/v1/network_attachments.insert.js new file mode 100644 index 00000000000..1960037f355 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/network_attachments.insert.js @@ -0,0 +1,75 @@ +// 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(networkAttachmentResource, project, region) { + // [START compute_v1_generated_NetworkAttachments_Insert_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. + */ + /** + * The body resource for this request + */ + // const networkAttachmentResource = {} + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * Name of the region of this request. + */ + // const region = 'us-central1' + /** + * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + */ + // const requestId = 'abc123' + + // Imports the Compute library + const {NetworkAttachmentsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new NetworkAttachmentsClient(); + + async function callInsert() { + // Construct request + const request = { + networkAttachmentResource, + project, + region, + }; + + // Run request + const response = await computeClient.insert(request); + console.log(response); + } + + callInsert(); + // [END compute_v1_generated_NetworkAttachments_Insert_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1/network_attachments.list.js b/packages/google-cloud-compute/samples/generated/v1/network_attachments.list.js new file mode 100644 index 00000000000..c7f4cd86aa1 --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/network_attachments.list.js @@ -0,0 +1,88 @@ +// 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, region) { + // [START compute_v1_generated_NetworkAttachments_List_async] + /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. 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' + /** + * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + */ + // const maxResults = 1234 + /** + * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + */ + // const orderBy = 'abc123' + /** + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + */ + // const pageToken = 'abc123' + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * Name of the region of this request. + */ + // const region = 'us-central1' + /** + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + */ + // const returnPartialSuccess = true + + // Imports the Compute library + const {NetworkAttachmentsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new NetworkAttachmentsClient(); + + async function callList() { + // Construct request + const request = { + project, + region, + }; + + // Run request + const iterable = await computeClient.listAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callList(); + // [END compute_v1_generated_NetworkAttachments_List_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1/network_attachments.set_iam_policy.js b/packages/google-cloud-compute/samples/generated/v1/network_attachments.set_iam_policy.js new file mode 100644 index 00000000000..52707f8c3da --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/network_attachments.set_iam_policy.js @@ -0,0 +1,76 @@ +// 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, region, regionSetPolicyRequestResource, resource) { + // [START compute_v1_generated_NetworkAttachments_SetIamPolicy_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. + */ + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * The name of the region for this request. + */ + // const region = 'us-central1' + /** + * The body resource for this request + */ + // const regionSetPolicyRequestResource = {} + /** + * Name or id of the resource for this request. + */ + // const resource = 'abc123' + + // Imports the Compute library + const {NetworkAttachmentsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new NetworkAttachmentsClient(); + + async function callSetIamPolicy() { + // Construct request + const request = { + project, + region, + regionSetPolicyRequestResource, + resource, + }; + + // Run request + const response = await computeClient.setIamPolicy(request); + console.log(response); + } + + callSetIamPolicy(); + // [END compute_v1_generated_NetworkAttachments_SetIamPolicy_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1/network_attachments.test_iam_permissions.js b/packages/google-cloud-compute/samples/generated/v1/network_attachments.test_iam_permissions.js new file mode 100644 index 00000000000..7a0578779ee --- /dev/null +++ b/packages/google-cloud-compute/samples/generated/v1/network_attachments.test_iam_permissions.js @@ -0,0 +1,76 @@ +// 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, region, resource, testPermissionsRequestResource) { + // [START compute_v1_generated_NetworkAttachments_TestIamPermissions_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. + */ + /** + * Project ID for this request. + */ + // const project = 'my-project' + /** + * The name of the region for this request. + */ + // const region = 'us-central1' + /** + * Name or id of the resource for this request. + */ + // const resource = 'abc123' + /** + * The body resource for this request + */ + // const testPermissionsRequestResource = {} + + // Imports the Compute library + const {NetworkAttachmentsClient} = require('@google-cloud/compute').v1; + + // Instantiates a client + const computeClient = new NetworkAttachmentsClient(); + + async function callTestIamPermissions() { + // Construct request + const request = { + project, + region, + resource, + testPermissionsRequestResource, + }; + + // Run request + const response = await computeClient.testIamPermissions(request); + console.log(response); + } + + callTestIamPermissions(); + // [END compute_v1_generated_NetworkAttachments_TestIamPermissions_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-cloud-compute/samples/generated/v1/snippet_metadata.google.cloud.compute.v1.json b/packages/google-cloud-compute/samples/generated/v1/snippet_metadata.google.cloud.compute.v1.json index e1887a68826..6d58f8aca49 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 @@ -11198,7 +11198,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 71, "type": "FULL" } ], @@ -11207,6 +11207,10 @@ "fullName": "google.cloud.compute.v1.Instances.Stop", "async": true, "parameters": [ + { + "name": "discard_local_ssd", + "type": "TYPE_BOOL" + }, { "name": "instance", "type": "TYPE_STRING" @@ -11250,7 +11254,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 71, "type": "FULL" } ], @@ -11259,6 +11263,10 @@ "fullName": "google.cloud.compute.v1.Instances.Suspend", "async": true, "parameters": [ + { + "name": "discard_local_ssd", + "type": "TYPE_BOOL" + }, { "name": "instance", "type": "TYPE_STRING" @@ -12487,7 +12495,7 @@ "regionTag": "compute_v1_generated_Interconnects_Delete_async", "title": "AcceleratorTypes delete Sample", "origin": "API_DEFINITION", - "description": " Deletes the specified interconnect.", + "description": " Deletes the specified Interconnect.", "canonical": true, "file": "interconnects.delete.js", "language": "JAVASCRIPT", @@ -12535,7 +12543,7 @@ "regionTag": "compute_v1_generated_Interconnects_Get_async", "title": "AcceleratorTypes get Sample", "origin": "API_DEFINITION", - "description": " Returns the specified interconnect. Get a list of available interconnects by making a list() request.", + "description": " Returns the specified Interconnect. Get a list of available Interconnects by making a list() request.", "canonical": true, "file": "interconnects.get.js", "language": "JAVASCRIPT", @@ -12579,7 +12587,7 @@ "regionTag": "compute_v1_generated_Interconnects_GetDiagnostics_async", "title": "AcceleratorTypes getDiagnostics Sample", "origin": "API_DEFINITION", - "description": " Returns the interconnectDiagnostics for the specified interconnect.", + "description": " Returns the interconnectDiagnostics for the specified Interconnect.", "canonical": true, "file": "interconnects.get_diagnostics.js", "language": "JAVASCRIPT", @@ -12623,7 +12631,7 @@ "regionTag": "compute_v1_generated_Interconnects_Insert_async", "title": "AcceleratorTypes insert Sample", "origin": "API_DEFINITION", - "description": " Creates a Interconnect in the specified project using the data included in the request.", + "description": " Creates an Interconnect in the specified project using the data included in the request.", "canonical": true, "file": "interconnects.insert.js", "language": "JAVASCRIPT", @@ -12671,7 +12679,7 @@ "regionTag": "compute_v1_generated_Interconnects_List_async", "title": "AcceleratorTypes list Sample", "origin": "API_DEFINITION", - "description": " Retrieves the list of interconnect available to the specified project.", + "description": " Retrieves the list of Interconnects available to the specified project.", "canonical": true, "file": "interconnects.list.js", "language": "JAVASCRIPT", @@ -12731,7 +12739,7 @@ "regionTag": "compute_v1_generated_Interconnects_Patch_async", "title": "AcceleratorTypes patch Sample", "origin": "API_DEFINITION", - "description": " Updates the specified interconnect with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.", + "description": " Updates the specified Interconnect with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.", "canonical": true, "file": "interconnects.patch.js", "language": "JAVASCRIPT", @@ -13787,6 +13795,442 @@ } } }, + { + "regionTag": "compute_v1_generated_NetworkAttachments_AggregatedList_async", + "title": "AcceleratorTypes aggregatedList Sample", + "origin": "API_DEFINITION", + "description": " Retrieves the list of all NetworkAttachment resources, regional and global, available to the specified project.", + "canonical": true, + "file": "network_attachments.aggregated_list.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 79, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "AggregatedList", + "fullName": "google.cloud.compute.v1.NetworkAttachments.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.NetworkAttachmentAggregatedList", + "client": { + "shortName": "NetworkAttachmentsClient", + "fullName": "google.cloud.compute.v1.NetworkAttachmentsClient" + }, + "method": { + "shortName": "AggregatedList", + "fullName": "google.cloud.compute.v1.NetworkAttachments.AggregatedList", + "service": { + "shortName": "NetworkAttachments", + "fullName": "google.cloud.compute.v1.NetworkAttachments" + } + } + } + }, + { + "regionTag": "compute_v1_generated_NetworkAttachments_Delete_async", + "title": "AcceleratorTypes delete Sample", + "origin": "API_DEFINITION", + "description": " Deletes the specified NetworkAttachment in the given scope", + "canonical": true, + "file": "network_attachments.delete.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 67, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Delete", + "fullName": "google.cloud.compute.v1.NetworkAttachments.Delete", + "async": true, + "parameters": [ + { + "name": "network_attachment", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.Operation", + "client": { + "shortName": "NetworkAttachmentsClient", + "fullName": "google.cloud.compute.v1.NetworkAttachmentsClient" + }, + "method": { + "shortName": "Delete", + "fullName": "google.cloud.compute.v1.NetworkAttachments.Delete", + "service": { + "shortName": "NetworkAttachments", + "fullName": "google.cloud.compute.v1.NetworkAttachments" + } + } + } + }, + { + "regionTag": "compute_v1_generated_NetworkAttachments_Get_async", + "title": "AcceleratorTypes get Sample", + "origin": "API_DEFINITION", + "description": " Returns the specified NetworkAttachment resource in the given scope.", + "canonical": true, + "file": "network_attachments.get.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 63, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Get", + "fullName": "google.cloud.compute.v1.NetworkAttachments.Get", + "async": true, + "parameters": [ + { + "name": "network_attachment", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.NetworkAttachment", + "client": { + "shortName": "NetworkAttachmentsClient", + "fullName": "google.cloud.compute.v1.NetworkAttachmentsClient" + }, + "method": { + "shortName": "Get", + "fullName": "google.cloud.compute.v1.NetworkAttachments.Get", + "service": { + "shortName": "NetworkAttachments", + "fullName": "google.cloud.compute.v1.NetworkAttachments" + } + } + } + }, + { + "regionTag": "compute_v1_generated_NetworkAttachments_GetIamPolicy_async", + "title": "AcceleratorTypes getIamPolicy Sample", + "origin": "API_DEFINITION", + "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", + "canonical": true, + "file": "network_attachments.get_iam_policy.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 67, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.compute.v1.NetworkAttachments.GetIamPolicy", + "async": true, + "parameters": [ + { + "name": "options_requested_policy_version", + "type": "TYPE_INT32" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "resource", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.Policy", + "client": { + "shortName": "NetworkAttachmentsClient", + "fullName": "google.cloud.compute.v1.NetworkAttachmentsClient" + }, + "method": { + "shortName": "GetIamPolicy", + "fullName": "google.cloud.compute.v1.NetworkAttachments.GetIamPolicy", + "service": { + "shortName": "NetworkAttachments", + "fullName": "google.cloud.compute.v1.NetworkAttachments" + } + } + } + }, + { + "regionTag": "compute_v1_generated_NetworkAttachments_Insert_async", + "title": "AcceleratorTypes insert Sample", + "origin": "API_DEFINITION", + "description": " Creates a NetworkAttachment in the specified project in the given scope using the parameters that are included in the request.", + "canonical": true, + "file": "network_attachments.insert.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 67, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "Insert", + "fullName": "google.cloud.compute.v1.NetworkAttachments.Insert", + "async": true, + "parameters": [ + { + "name": "network_attachment_resource", + "type": ".google.cloud.compute.v1.NetworkAttachment" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "request_id", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.Operation", + "client": { + "shortName": "NetworkAttachmentsClient", + "fullName": "google.cloud.compute.v1.NetworkAttachmentsClient" + }, + "method": { + "shortName": "Insert", + "fullName": "google.cloud.compute.v1.NetworkAttachments.Insert", + "service": { + "shortName": "NetworkAttachments", + "fullName": "google.cloud.compute.v1.NetworkAttachments" + } + } + } + }, + { + "regionTag": "compute_v1_generated_NetworkAttachments_List_async", + "title": "AcceleratorTypes list Sample", + "origin": "API_DEFINITION", + "description": " Lists the NetworkAttachments for a project in the given scope.", + "canonical": true, + "file": "network_attachments.list.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 80, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "List", + "fullName": "google.cloud.compute.v1.NetworkAttachments.List", + "async": true, + "parameters": [ + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "max_results", + "type": "TYPE_UINT32" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "return_partial_success", + "type": "TYPE_BOOL" + } + ], + "resultType": ".google.cloud.compute.v1.NetworkAttachmentList", + "client": { + "shortName": "NetworkAttachmentsClient", + "fullName": "google.cloud.compute.v1.NetworkAttachmentsClient" + }, + "method": { + "shortName": "List", + "fullName": "google.cloud.compute.v1.NetworkAttachments.List", + "service": { + "shortName": "NetworkAttachments", + "fullName": "google.cloud.compute.v1.NetworkAttachments" + } + } + } + }, + { + "regionTag": "compute_v1_generated_NetworkAttachments_SetIamPolicy_async", + "title": "AcceleratorTypes setIamPolicy Sample", + "origin": "API_DEFINITION", + "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", + "canonical": true, + "file": "network_attachments.set_iam_policy.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 68, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.compute.v1.NetworkAttachments.SetIamPolicy", + "async": true, + "parameters": [ + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "region_set_policy_request_resource", + "type": ".google.cloud.compute.v1.RegionSetPolicyRequest" + }, + { + "name": "resource", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.compute.v1.Policy", + "client": { + "shortName": "NetworkAttachmentsClient", + "fullName": "google.cloud.compute.v1.NetworkAttachmentsClient" + }, + "method": { + "shortName": "SetIamPolicy", + "fullName": "google.cloud.compute.v1.NetworkAttachments.SetIamPolicy", + "service": { + "shortName": "NetworkAttachments", + "fullName": "google.cloud.compute.v1.NetworkAttachments" + } + } + } + }, + { + "regionTag": "compute_v1_generated_NetworkAttachments_TestIamPermissions_async", + "title": "AcceleratorTypes testIamPermissions Sample", + "origin": "API_DEFINITION", + "description": " Returns permissions that a caller has on the specified resource.", + "canonical": true, + "file": "network_attachments.test_iam_permissions.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 68, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.compute.v1.NetworkAttachments.TestIamPermissions", + "async": true, + "parameters": [ + { + "name": "project", + "type": "TYPE_STRING" + }, + { + "name": "region", + "type": "TYPE_STRING" + }, + { + "name": "resource", + "type": "TYPE_STRING" + }, + { + "name": "test_permissions_request_resource", + "type": ".google.cloud.compute.v1.TestPermissionsRequest" + } + ], + "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", + "client": { + "shortName": "NetworkAttachmentsClient", + "fullName": "google.cloud.compute.v1.NetworkAttachmentsClient" + }, + "method": { + "shortName": "TestIamPermissions", + "fullName": "google.cloud.compute.v1.NetworkAttachments.TestIamPermissions", + "service": { + "shortName": "NetworkAttachments", + "fullName": "google.cloud.compute.v1.NetworkAttachments" + } + } + } + }, { "regionTag": "compute_v1_generated_NetworkEdgeSecurityServices_AggregatedList_async", "title": "AcceleratorTypes aggregatedList Sample", diff --git a/packages/google-cloud-compute/src/index.ts b/packages/google-cloud-compute/src/index.ts index 88c5134f8bd..4ad8abb22e0 100644 --- a/packages/google-cloud-compute/src/index.ts +++ b/packages/google-cloud-compute/src/index.ts @@ -84,6 +84,8 @@ const MachineImagesClient = v1.MachineImagesClient; type MachineImagesClient = v1.MachineImagesClient; const MachineTypesClient = v1.MachineTypesClient; type MachineTypesClient = v1.MachineTypesClient; +const NetworkAttachmentsClient = v1.NetworkAttachmentsClient; +type NetworkAttachmentsClient = v1.NetworkAttachmentsClient; const NetworkEdgeSecurityServicesClient = v1.NetworkEdgeSecurityServicesClient; type NetworkEdgeSecurityServicesClient = v1.NetworkEdgeSecurityServicesClient; const NetworkEndpointGroupsClient = v1.NetworkEndpointGroupsClient; @@ -233,6 +235,7 @@ export { LicensesClient, MachineImagesClient, MachineTypesClient, + NetworkAttachmentsClient, NetworkEdgeSecurityServicesClient, NetworkEndpointGroupsClient, NetworkFirewallPoliciesClient, @@ -324,6 +327,7 @@ export default { LicensesClient, MachineImagesClient, MachineTypesClient, + NetworkAttachmentsClient, NetworkEdgeSecurityServicesClient, NetworkEndpointGroupsClient, NetworkFirewallPoliciesClient, diff --git a/packages/google-cloud-compute/src/v1/gapic_metadata.json b/packages/google-cloud-compute/src/v1/gapic_metadata.json index 65048de71e5..f7fee32af4c 100644 --- a/packages/google-cloud-compute/src/v1/gapic_metadata.json +++ b/packages/google-cloud-compute/src/v1/gapic_metadata.json @@ -3235,6 +3235,108 @@ } } }, + "NetworkAttachments": { + "clients": { + "grpc": { + "libraryClient": "NetworkAttachmentsClient", + "rpcs": { + "Delete": { + "methods": [ + "delete" + ] + }, + "Get": { + "methods": [ + "get" + ] + }, + "GetIamPolicy": { + "methods": [ + "getIamPolicy" + ] + }, + "Insert": { + "methods": [ + "insert" + ] + }, + "SetIamPolicy": { + "methods": [ + "setIamPolicy" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + }, + "AggregatedList": { + "methods": [ + "aggregatedList", + "aggregatedListStream", + "aggregatedListAsync" + ] + }, + "List": { + "methods": [ + "list", + "listStream", + "listAsync" + ] + } + } + }, + "grpc-fallback": { + "libraryClient": "NetworkAttachmentsClient", + "rpcs": { + "Delete": { + "methods": [ + "delete" + ] + }, + "Get": { + "methods": [ + "get" + ] + }, + "GetIamPolicy": { + "methods": [ + "getIamPolicy" + ] + }, + "Insert": { + "methods": [ + "insert" + ] + }, + "SetIamPolicy": { + "methods": [ + "setIamPolicy" + ] + }, + "TestIamPermissions": { + "methods": [ + "testIamPermissions" + ] + }, + "AggregatedList": { + "methods": [ + "aggregatedList", + "aggregatedListStream", + "aggregatedListAsync" + ] + }, + "List": { + "methods": [ + "list", + "listStream", + "listAsync" + ] + } + } + } + } + }, "NetworkEdgeSecurityServices": { "clients": { "grpc": { diff --git a/packages/google-cloud-compute/src/v1/index.ts b/packages/google-cloud-compute/src/v1/index.ts index 2df83267d33..c3e552e9e8c 100644 --- a/packages/google-cloud-compute/src/v1/index.ts +++ b/packages/google-cloud-compute/src/v1/index.ts @@ -47,6 +47,7 @@ export {LicenseCodesClient} from './license_codes_client'; export {LicensesClient} from './licenses_client'; export {MachineImagesClient} from './machine_images_client'; export {MachineTypesClient} from './machine_types_client'; +export {NetworkAttachmentsClient} from './network_attachments_client'; export {NetworkEdgeSecurityServicesClient} from './network_edge_security_services_client'; export {NetworkEndpointGroupsClient} from './network_endpoint_groups_client'; export {NetworkFirewallPoliciesClient} from './network_firewall_policies_client'; diff --git a/packages/google-cloud-compute/src/v1/instances_client.ts b/packages/google-cloud-compute/src/v1/instances_client.ts index 61174a8ed5d..70957f4b3ef 100644 --- a/packages/google-cloud-compute/src/v1/instances_client.ts +++ b/packages/google-cloud-compute/src/v1/instances_client.ts @@ -4406,6 +4406,8 @@ export class InstancesClient { * * @param {Object} request * The request object that will be sent. + * @param {boolean} request.discardLocalSsd + * If true, discard the contents of any attached localSSD partitions. Default value is false. * @param {string} request.instance * Name of the instance resource to stop. * @param {string} request.project @@ -4524,6 +4526,8 @@ export class InstancesClient { * * @param {Object} request * The request object that will be sent. + * @param {boolean} request.discardLocalSsd + * If true, discard the contents of any attached localSSD partitions. Default value is false. * @param {string} request.instance * Name of the instance resource to suspend. * @param {string} request.project diff --git a/packages/google-cloud-compute/src/v1/interconnects_client.ts b/packages/google-cloud-compute/src/v1/interconnects_client.ts index c07580e8a33..88fff57d36c 100644 --- a/packages/google-cloud-compute/src/v1/interconnects_client.ts +++ b/packages/google-cloud-compute/src/v1/interconnects_client.ts @@ -329,7 +329,7 @@ export class InterconnectsClient { // -- Service calls -- // ------------------- /** - * Deletes the specified interconnect. + * Deletes the specified Interconnect. * * @param {Object} request * The request object that will be sent. @@ -450,7 +450,7 @@ export class InterconnectsClient { ); } /** - * Returns the specified interconnect. Get a list of available interconnects by making a list() request. + * Returns the specified Interconnect. Get a list of available Interconnects by making a list() request. * * @param {Object} request * The request object that will be sent. @@ -538,7 +538,7 @@ export class InterconnectsClient { return this.innerApiCalls.get(request, options, callback); } /** - * Returns the interconnectDiagnostics for the specified interconnect. + * Returns the interconnectDiagnostics for the specified Interconnect. * * @param {Object} request * The request object that will be sent. @@ -638,7 +638,7 @@ export class InterconnectsClient { return this.innerApiCalls.getDiagnostics(request, options, callback); } /** - * Creates a Interconnect in the specified project using the data included in the request. + * Creates an Interconnect in the specified project using the data included in the request. * * @param {Object} request * The request object that will be sent. @@ -758,7 +758,7 @@ export class InterconnectsClient { ); } /** - * Updates the specified interconnect with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. + * Updates the specified Interconnect with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. * * @param {Object} request * The request object that will be sent. @@ -1003,7 +1003,7 @@ export class InterconnectsClient { } /** - * Retrieves the list of interconnect available to the specified project. + * Retrieves the list of Interconnects available to the specified project. * * @param {Object} request * The request object that will be sent. diff --git a/packages/google-cloud-compute/src/v1/network_attachments_client.ts b/packages/google-cloud-compute/src/v1/network_attachments_client.ts new file mode 100644 index 00000000000..151c28d04a8 --- /dev/null +++ b/packages/google-cloud-compute/src/v1/network_attachments_client.ts @@ -0,0 +1,1281 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +/* global window */ +import type * as gax from 'google-gax'; +import type { + Callback, + CallOptions, + Descriptors, + ClientOptions, + LROperation, + PaginationCallback, + GaxCall, +} from 'google-gax'; +import {Transform} from 'stream'; +import * as protos from '../../protos/protos'; +import jsonProtos = require('../../protos/protos.json'); +/** + * Client JSON configuration object, loaded from + * `src/v1/network_attachments_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ +import * as gapicConfig from './network_attachments_client_config.json'; +const version = require('../../../package.json').version; + +/** + * The NetworkAttachments API. + * @class + * @memberof v1 + */ +export class NetworkAttachmentsClient { + private _terminated = false; + private _opts: ClientOptions; + private _providedCustomServicePath: boolean; + private _gaxModule: typeof gax | typeof gax.fallback; + private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; + private _protos: {}; + private _defaults: {[method: string]: gax.CallSettings}; + auth: gax.GoogleAuth; + descriptors: Descriptors = { + page: {}, + stream: {}, + longrunning: {}, + batching: {}, + }; + warn: (code: string, message: string, warnType?: string) => void; + innerApiCalls: {[name: string]: Function}; + networkAttachmentsStub?: Promise<{[name: string]: Function}>; + + /** + * Construct an instance of NetworkAttachmentsClient. + * + * @param {object} [options] - The configuration object. + * The options accepted by the constructor are described in detail + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). + * The common options are: + * @param {object} [options.credentials] - Credentials object. + * @param {string} [options.credentials.client_email] + * @param {string} [options.credentials.private_key] + * @param {string} [options.email] - Account email address. Required when + * using a .pem or .p12 keyFilename. + * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or + * .p12 key downloaded from the Google Developers Console. If you provide + * a path to a JSON file, the projectId option below is not necessary. + * NOTE: .pem and .p12 require you to specify options.email as well. + * @param {number} [options.port] - The port on which to connect to + * the remote host. + * @param {string} [options.projectId] - The project ID from the Google + * Developer's Console, e.g. 'grape-spaceship-123'. We will also check + * the environment variable GCLOUD_PROJECT for your project ID. If your + * app is running in an environment which supports + * {@link https://developers.google.com/identity/protocols/application-default-credentials Application Default Credentials}, + * your project ID will be detected automatically. + * @param {string} [options.apiEndpoint] - The domain name of the + * API remote host. + * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. + * Follows the structure of {@link gapicConfig}. + * @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. + * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new NetworkAttachmentsClient({fallback: 'rest'}, gax); + * ``` + */ + constructor( + opts?: ClientOptions, + gaxInstance?: typeof gax | typeof gax.fallback + ) { + // Ensure that options include all the required fields. + const staticMembers = this.constructor as typeof NetworkAttachmentsClient; + const servicePath = + opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + this._providedCustomServicePath = !!( + opts?.servicePath || opts?.apiEndpoint + ); + const port = opts?.port || staticMembers.port; + const clientConfig = opts?.clientConfig ?? {}; + // Implicitely set 'rest' value for the apis use rest as transport (eg. googleapis-discovery apis). + if (!opts) { + opts = {fallback: 'rest'}; + } else { + opts.fallback = opts.fallback ?? 'rest'; + } + const fallback = + opts?.fallback ?? + (typeof window !== 'undefined' && typeof window?.fetch === 'function'); + opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); + + // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. + if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + opts['scopes'] = staticMembers.scopes; + } + + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + + // Choose either gRPC or proto-over-HTTP implementation of google-gax. + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; + + // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. + this._gaxGrpc = new this._gaxModule.GrpcClient(opts); + + // Save options to use in initialize() method. + this._opts = opts; + + // Save the auth object to the client, for use by other methods. + this.auth = this._gaxGrpc.auth as gax.GoogleAuth; + + // Set defaultServicePath on the auth object. + this.auth.defaultServicePath = staticMembers.servicePath; + + // Set the default scopes in auth client if needed. + if (servicePath === staticMembers.servicePath) { + this.auth.defaultScopes = staticMembers.scopes; + } + + // Determine the client header string. + const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; + if (typeof process !== 'undefined' && 'versions' in process) { + clientHeader.push(`gl-node/${process.versions.node}`); + } else { + clientHeader.push(`gl-web/${this._gaxModule.version}`); + } + if (!opts.fallback) { + clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`); + } else if (opts.fallback === 'rest') { + clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`); + } + if (opts.libName && opts.libVersion) { + clientHeader.push(`${opts.libName}/${opts.libVersion}`); + } + // Load the applicable protos. + this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos); + + // Some of the methods on this service return "paged" results, + // (e.g. 50 results at a time, with tokens to get subsequent + // pages). Denote the keys used for pagination and results. + this.descriptors.page = { + aggregatedList: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'items' + ), + list: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'items' + ), + }; + + // Put together the default options sent with requests. + this._defaults = this._gaxGrpc.constructSettings( + 'google.cloud.compute.v1.NetworkAttachments', + gapicConfig as gax.ClientConfig, + opts.clientConfig || {}, + {'x-goog-api-client': clientHeader.join(' ')} + ); + + // Set up a dictionary of "inner API calls"; the core implementation + // of calling the API is handled in `google-gax`, with this code + // merely providing the destination and request information. + this.innerApiCalls = {}; + + // Add a warn function to the client constructor so it can be easily tested. + this.warn = this._gaxModule.warn; + } + + /** + * Initialize the client. + * Performs asynchronous operations (such as authentication) and prepares the client. + * This function will be called automatically when any class method is called for the + * first time, but if you need to initialize it before calling an actual method, + * feel free to call initialize() directly. + * + * You can await on this method if you want to make sure the client is initialized. + * + * @returns {Promise} A promise that resolves to an authenticated service stub. + */ + initialize() { + // If the client stub promise is already initialized, return immediately. + if (this.networkAttachmentsStub) { + return this.networkAttachmentsStub; + } + + // Put together the "service stub" for + // google.cloud.compute.v1.NetworkAttachments. + this.networkAttachmentsStub = this._gaxGrpc.createStub( + this._opts.fallback + ? (this._protos as protobuf.Root).lookupService( + 'google.cloud.compute.v1.NetworkAttachments' + ) + : // eslint-disable-next-line @typescript-eslint/no-explicit-any + (this._protos as any).google.cloud.compute.v1.NetworkAttachments, + this._opts, + this._providedCustomServicePath + ) as Promise<{[method: string]: Function}>; + + // Iterate over each of the methods that the service provides + // and create an API call method for each. + const networkAttachmentsStubMethods = [ + 'aggregatedList', + 'delete', + 'get', + 'getIamPolicy', + 'insert', + 'list', + 'setIamPolicy', + 'testIamPermissions', + ]; + for (const methodName of networkAttachmentsStubMethods) { + const callPromise = this.networkAttachmentsStub.then( + stub => + (...args: Array<{}>) => { + if (this._terminated) { + return Promise.reject('The client has already been closed.'); + } + const func = stub[methodName]; + return func.apply(stub, args); + }, + (err: Error | null | undefined) => () => { + throw err; + } + ); + + const descriptor = this.descriptors.page[methodName] || undefined; + const apiCall = this._gaxModule.createApiCall( + callPromise, + this._defaults[methodName], + descriptor, + this._opts.fallback + ); + + this.innerApiCalls[methodName] = apiCall; + } + + return this.networkAttachmentsStub; + } + + /** + * The DNS address for this API service. + * @returns {string} The DNS address for this service. + */ + static get servicePath() { + return 'compute.googleapis.com'; + } + + /** + * The DNS address for this API service - same as servicePath(), + * exists for compatibility reasons. + * @returns {string} The DNS address for this service. + */ + static get apiEndpoint() { + return 'compute.googleapis.com'; + } + + /** + * The port for this API service. + * @returns {number} The default port for this service. + */ + static get port() { + return 443; + } + + /** + * The scopes needed to make gRPC calls for every method defined + * in this service. + * @returns {string[]} List of default scopes. + */ + static get scopes() { + return [ + 'https://www.googleapis.com/auth/compute', + 'https://www.googleapis.com/auth/cloud-platform', + ]; + } + + getProjectId(): Promise; + getProjectId(callback: Callback): void; + /** + * Return the project ID used by this class. + * @returns {Promise} A promise that resolves to string containing the project ID. + */ + getProjectId( + callback?: Callback + ): Promise | void { + if (callback) { + this.auth.getProjectId(callback); + return; + } + return this.auth.getProjectId(); + } + + // ------------------- + // -- Service calls -- + // ------------------- + /** + * Deletes the specified NetworkAttachment in the given scope + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.networkAttachment + * Name of the NetworkAttachment resource to delete. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * Name of the region of this request. + * @param {string} request.requestId + * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * for more details and examples. + * This method is considered to be in beta. This means while + * stable it is still a work-in-progress and under active development, + * and might get backwards-incompatible changes at any time. + * `.promise()` is not supported yet. + * @example include:samples/generated/v1/network_attachments.delete.js + * region_tag:compute_v1_generated_NetworkAttachments_Delete_async + */ + delete( + request?: protos.google.cloud.compute.v1.IDeleteNetworkAttachmentRequest, + options?: CallOptions + ): Promise< + [ + LROperation, + protos.google.cloud.compute.v1.IOperation | undefined, + {} | undefined + ] + >; + delete( + request: protos.google.cloud.compute.v1.IDeleteNetworkAttachmentRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.IDeleteNetworkAttachmentRequest + | null + | undefined, + {} | null | undefined + > + ): void; + delete( + request: protos.google.cloud.compute.v1.IDeleteNetworkAttachmentRequest, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.IDeleteNetworkAttachmentRequest + | null + | undefined, + {} | null | undefined + > + ): void; + delete( + request?: protos.google.cloud.compute.v1.IDeleteNetworkAttachmentRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.IDeleteNetworkAttachmentRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.IDeleteNetworkAttachmentRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation, + protos.google.cloud.compute.v1.IOperation | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + project: request.project ?? '', + region: request.region ?? '', + network_attachment: request.networkAttachment ?? '', + }); + this.initialize(); + return this.innerApiCalls + .delete(request, options, callback) + .then( + ([response, operation, rawResponse]: [ + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IOperation + ]) => { + return [ + { + latestResponse: response, + done: false, + name: response.id, + metadata: null, + result: {}, + }, + operation, + rawResponse, + ]; + } + ); + } + /** + * Returns the specified NetworkAttachment resource in the given scope. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.networkAttachment + * Name of the NetworkAttachment resource to return. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * Name of the region of this request. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [NetworkAttachment]{@link google.cloud.compute.v1.NetworkAttachment}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1/network_attachments.get.js + * region_tag:compute_v1_generated_NetworkAttachments_Get_async + */ + get( + request?: protos.google.cloud.compute.v1.IGetNetworkAttachmentRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.compute.v1.INetworkAttachment, + protos.google.cloud.compute.v1.IGetNetworkAttachmentRequest | undefined, + {} | undefined + ] + >; + get( + request: protos.google.cloud.compute.v1.IGetNetworkAttachmentRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.INetworkAttachment, + | protos.google.cloud.compute.v1.IGetNetworkAttachmentRequest + | null + | undefined, + {} | null | undefined + > + ): void; + get( + request: protos.google.cloud.compute.v1.IGetNetworkAttachmentRequest, + callback: Callback< + protos.google.cloud.compute.v1.INetworkAttachment, + | protos.google.cloud.compute.v1.IGetNetworkAttachmentRequest + | null + | undefined, + {} | null | undefined + > + ): void; + get( + request?: protos.google.cloud.compute.v1.IGetNetworkAttachmentRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.compute.v1.INetworkAttachment, + | protos.google.cloud.compute.v1.IGetNetworkAttachmentRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.compute.v1.INetworkAttachment, + | protos.google.cloud.compute.v1.IGetNetworkAttachmentRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.compute.v1.INetworkAttachment, + protos.google.cloud.compute.v1.IGetNetworkAttachmentRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + project: request.project ?? '', + region: request.region ?? '', + network_attachment: request.networkAttachment ?? '', + }); + this.initialize(); + return this.innerApiCalls.get(request, options, callback); + } + /** + * Gets the access control policy for a resource. May be empty if no such policy or resource exists. + * + * @param {Object} request + * The request object that will be sent. + * @param {number} request.optionsRequestedPolicyVersion + * Requested IAM Policy version. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * The name of the region for this request. + * @param {string} request.resource + * Name or id of the resource for this request. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Policy]{@link google.cloud.compute.v1.Policy}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1/network_attachments.get_iam_policy.js + * region_tag:compute_v1_generated_NetworkAttachments_GetIamPolicy_async + */ + getIamPolicy( + request?: protos.google.cloud.compute.v1.IGetIamPolicyNetworkAttachmentRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.compute.v1.IPolicy, + ( + | protos.google.cloud.compute.v1.IGetIamPolicyNetworkAttachmentRequest + | undefined + ), + {} | undefined + ] + >; + getIamPolicy( + request: protos.google.cloud.compute.v1.IGetIamPolicyNetworkAttachmentRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IPolicy, + | protos.google.cloud.compute.v1.IGetIamPolicyNetworkAttachmentRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getIamPolicy( + request: protos.google.cloud.compute.v1.IGetIamPolicyNetworkAttachmentRequest, + callback: Callback< + protos.google.cloud.compute.v1.IPolicy, + | protos.google.cloud.compute.v1.IGetIamPolicyNetworkAttachmentRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getIamPolicy( + request?: protos.google.cloud.compute.v1.IGetIamPolicyNetworkAttachmentRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.compute.v1.IPolicy, + | protos.google.cloud.compute.v1.IGetIamPolicyNetworkAttachmentRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.compute.v1.IPolicy, + | protos.google.cloud.compute.v1.IGetIamPolicyNetworkAttachmentRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.compute.v1.IPolicy, + ( + | protos.google.cloud.compute.v1.IGetIamPolicyNetworkAttachmentRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + project: request.project ?? '', + region: request.region ?? '', + resource: request.resource ?? '', + }); + this.initialize(); + return this.innerApiCalls.getIamPolicy(request, options, callback); + } + /** + * Creates a NetworkAttachment in the specified project in the given scope using the parameters that are included in the request. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.cloud.compute.v1.NetworkAttachment} request.networkAttachmentResource + * The body resource for this request + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * Name of the region of this request. + * @param {string} request.requestId + * An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * for more details and examples. + * This method is considered to be in beta. This means while + * stable it is still a work-in-progress and under active development, + * and might get backwards-incompatible changes at any time. + * `.promise()` is not supported yet. + * @example include:samples/generated/v1/network_attachments.insert.js + * region_tag:compute_v1_generated_NetworkAttachments_Insert_async + */ + insert( + request?: protos.google.cloud.compute.v1.IInsertNetworkAttachmentRequest, + options?: CallOptions + ): Promise< + [ + LROperation, + protos.google.cloud.compute.v1.IOperation | undefined, + {} | undefined + ] + >; + insert( + request: protos.google.cloud.compute.v1.IInsertNetworkAttachmentRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.IInsertNetworkAttachmentRequest + | null + | undefined, + {} | null | undefined + > + ): void; + insert( + request: protos.google.cloud.compute.v1.IInsertNetworkAttachmentRequest, + callback: Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.IInsertNetworkAttachmentRequest + | null + | undefined, + {} | null | undefined + > + ): void; + insert( + request?: protos.google.cloud.compute.v1.IInsertNetworkAttachmentRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.IInsertNetworkAttachmentRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.compute.v1.IOperation, + | protos.google.cloud.compute.v1.IInsertNetworkAttachmentRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation, + protos.google.cloud.compute.v1.IOperation | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + project: request.project ?? '', + region: request.region ?? '', + }); + this.initialize(); + return this.innerApiCalls + .insert(request, options, callback) + .then( + ([response, operation, rawResponse]: [ + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IOperation, + protos.google.cloud.compute.v1.IOperation + ]) => { + return [ + { + latestResponse: response, + done: false, + name: response.id, + metadata: null, + result: {}, + }, + operation, + rawResponse, + ]; + } + ); + } + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * The name of the region for this request. + * @param {google.cloud.compute.v1.RegionSetPolicyRequest} request.regionSetPolicyRequestResource + * The body resource for this request + * @param {string} request.resource + * Name or id of the resource for this request. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Policy]{@link google.cloud.compute.v1.Policy}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1/network_attachments.set_iam_policy.js + * region_tag:compute_v1_generated_NetworkAttachments_SetIamPolicy_async + */ + setIamPolicy( + request?: protos.google.cloud.compute.v1.ISetIamPolicyNetworkAttachmentRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.compute.v1.IPolicy, + ( + | protos.google.cloud.compute.v1.ISetIamPolicyNetworkAttachmentRequest + | undefined + ), + {} | undefined + ] + >; + setIamPolicy( + request: protos.google.cloud.compute.v1.ISetIamPolicyNetworkAttachmentRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.IPolicy, + | protos.google.cloud.compute.v1.ISetIamPolicyNetworkAttachmentRequest + | null + | undefined, + {} | null | undefined + > + ): void; + setIamPolicy( + request: protos.google.cloud.compute.v1.ISetIamPolicyNetworkAttachmentRequest, + callback: Callback< + protos.google.cloud.compute.v1.IPolicy, + | protos.google.cloud.compute.v1.ISetIamPolicyNetworkAttachmentRequest + | null + | undefined, + {} | null | undefined + > + ): void; + setIamPolicy( + request?: protos.google.cloud.compute.v1.ISetIamPolicyNetworkAttachmentRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.compute.v1.IPolicy, + | protos.google.cloud.compute.v1.ISetIamPolicyNetworkAttachmentRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.compute.v1.IPolicy, + | protos.google.cloud.compute.v1.ISetIamPolicyNetworkAttachmentRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.compute.v1.IPolicy, + ( + | protos.google.cloud.compute.v1.ISetIamPolicyNetworkAttachmentRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + project: request.project ?? '', + region: request.region ?? '', + resource: request.resource ?? '', + }); + this.initialize(); + return this.innerApiCalls.setIamPolicy(request, options, callback); + } + /** + * Returns permissions that a caller has on the specified resource. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * The name of the region for this request. + * @param {string} request.resource + * Name or id of the resource for this request. + * @param {google.cloud.compute.v1.TestPermissionsRequest} request.testPermissionsRequestResource + * The body resource for this request + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestPermissionsResponse]{@link google.cloud.compute.v1.TestPermissionsResponse}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1/network_attachments.test_iam_permissions.js + * region_tag:compute_v1_generated_NetworkAttachments_TestIamPermissions_async + */ + testIamPermissions( + request?: protos.google.cloud.compute.v1.ITestIamPermissionsNetworkAttachmentRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.compute.v1.ITestPermissionsResponse, + ( + | protos.google.cloud.compute.v1.ITestIamPermissionsNetworkAttachmentRequest + | undefined + ), + {} | undefined + ] + >; + testIamPermissions( + request: protos.google.cloud.compute.v1.ITestIamPermissionsNetworkAttachmentRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.compute.v1.ITestPermissionsResponse, + | protos.google.cloud.compute.v1.ITestIamPermissionsNetworkAttachmentRequest + | null + | undefined, + {} | null | undefined + > + ): void; + testIamPermissions( + request: protos.google.cloud.compute.v1.ITestIamPermissionsNetworkAttachmentRequest, + callback: Callback< + protos.google.cloud.compute.v1.ITestPermissionsResponse, + | protos.google.cloud.compute.v1.ITestIamPermissionsNetworkAttachmentRequest + | null + | undefined, + {} | null | undefined + > + ): void; + testIamPermissions( + request?: protos.google.cloud.compute.v1.ITestIamPermissionsNetworkAttachmentRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.compute.v1.ITestPermissionsResponse, + | protos.google.cloud.compute.v1.ITestIamPermissionsNetworkAttachmentRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.compute.v1.ITestPermissionsResponse, + | protos.google.cloud.compute.v1.ITestIamPermissionsNetworkAttachmentRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.compute.v1.ITestPermissionsResponse, + ( + | protos.google.cloud.compute.v1.ITestIamPermissionsNetworkAttachmentRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + project: request.project ?? '', + region: request.region ?? '', + resource: request.resource ?? '', + }); + this.initialize(); + return this.innerApiCalls.testIamPermissions(request, options, callback); + } + + /** + * Retrieves the list of all NetworkAttachment 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 + * Project ID for this request. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * as tuple [string, [NetworkAttachmentsScopedList]{@link google.cloud.compute.v1.NetworkAttachmentsScopedList}]. 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/network_attachments.aggregated_list.js + * region_tag:compute_v1_generated_NetworkAttachments_AggregatedList_async + */ + aggregatedListAsync( + request?: protos.google.cloud.compute.v1.IAggregatedListNetworkAttachmentsRequest, + options?: CallOptions + ): AsyncIterable< + [string, protos.google.cloud.compute.v1.INetworkAttachmentsScopedList] + > { + 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.INetworkAttachmentsScopedList] + >; + } + /** + * Lists the NetworkAttachments for a project in the given scope. + * + * @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 {number} request.maxResults + * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * Name of the region of this request. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [NetworkAttachment]{@link google.cloud.compute.v1.NetworkAttachment}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + list( + request?: protos.google.cloud.compute.v1.IListNetworkAttachmentsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.compute.v1.INetworkAttachment[], + protos.google.cloud.compute.v1.IListNetworkAttachmentsRequest | null, + protos.google.cloud.compute.v1.INetworkAttachmentList + ] + >; + list( + request: protos.google.cloud.compute.v1.IListNetworkAttachmentsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.compute.v1.IListNetworkAttachmentsRequest, + protos.google.cloud.compute.v1.INetworkAttachmentList | null | undefined, + protos.google.cloud.compute.v1.INetworkAttachment + > + ): void; + list( + request: protos.google.cloud.compute.v1.IListNetworkAttachmentsRequest, + callback: PaginationCallback< + protos.google.cloud.compute.v1.IListNetworkAttachmentsRequest, + protos.google.cloud.compute.v1.INetworkAttachmentList | null | undefined, + protos.google.cloud.compute.v1.INetworkAttachment + > + ): void; + list( + request?: protos.google.cloud.compute.v1.IListNetworkAttachmentsRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.compute.v1.IListNetworkAttachmentsRequest, + | protos.google.cloud.compute.v1.INetworkAttachmentList + | null + | undefined, + protos.google.cloud.compute.v1.INetworkAttachment + >, + callback?: PaginationCallback< + protos.google.cloud.compute.v1.IListNetworkAttachmentsRequest, + protos.google.cloud.compute.v1.INetworkAttachmentList | null | undefined, + protos.google.cloud.compute.v1.INetworkAttachment + > + ): Promise< + [ + protos.google.cloud.compute.v1.INetworkAttachment[], + protos.google.cloud.compute.v1.IListNetworkAttachmentsRequest | null, + protos.google.cloud.compute.v1.INetworkAttachmentList + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + project: request.project ?? '', + region: request.region ?? '', + }); + this.initialize(); + return this.innerApiCalls.list(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. 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 {number} request.maxResults + * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * Name of the region of this request. + * @param {boolean} request.returnPartialSuccess + * Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [NetworkAttachment]{@link google.cloud.compute.v1.NetworkAttachment} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listStream( + request?: protos.google.cloud.compute.v1.IListNetworkAttachmentsRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + project: request.project ?? '', + region: request.region ?? '', + }); + const defaultCallSettings = this._defaults['list']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.list.createStream( + this.innerApiCalls.list as GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `list`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. 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 {number} request.maxResults + * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) + * @param {string} request.orderBy + * Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * @param {string} request.pageToken + * Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. + * @param {string} request.project + * Project ID for this request. + * @param {string} request.region + * Name of the region of 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 + * [NetworkAttachment]{@link google.cloud.compute.v1.NetworkAttachment}. 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/network_attachments.list.js + * region_tag:compute_v1_generated_NetworkAttachments_List_async + */ + listAsync( + request?: protos.google.cloud.compute.v1.IListNetworkAttachmentsRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + project: request.project ?? '', + region: request.region ?? '', + }); + const defaultCallSettings = this._defaults['list']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.list.asyncIterate( + this.innerApiCalls['list'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + + /** + * Terminate the gRPC channel and close the client. + * + * The client will no longer be usable and all future behavior is undefined. + * @returns {Promise} A promise that resolves when the client is closed. + */ + close(): Promise { + if (this.networkAttachmentsStub && !this._terminated) { + return this.networkAttachmentsStub.then(stub => { + this._terminated = true; + stub.close(); + }); + } + return Promise.resolve(); + } +} diff --git a/packages/google-cloud-compute/src/v1/network_attachments_client_config.json b/packages/google-cloud-compute/src/v1/network_attachments_client_config.json new file mode 100644 index 00000000000..755fe197862 --- /dev/null +++ b/packages/google-cloud-compute/src/v1/network_attachments_client_config.json @@ -0,0 +1,58 @@ +{ + "interfaces": { + "google.cloud.compute.v1.NetworkAttachments": { + "retry_codes": { + "non_idempotent": [], + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 600000 + } + }, + "methods": { + "AggregatedList": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "Delete": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "Get": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetIamPolicy": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "Insert": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "List": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "SetIamPolicy": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "TestIamPermissions": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/packages/google-cloud-compute/src/v1/network_attachments_proto_list.json b/packages/google-cloud-compute/src/v1/network_attachments_proto_list.json new file mode 100644 index 00000000000..4ad01aef24b --- /dev/null +++ b/packages/google-cloud-compute/src/v1/network_attachments_proto_list.json @@ -0,0 +1,3 @@ +[ + "../../protos/google/cloud/compute/v1/compute.proto" +] diff --git a/packages/google-cloud-compute/system-test/fixtures/sample/src/index.js b/packages/google-cloud-compute/system-test/fixtures/sample/src/index.js index bb69ec2a043..1c7e7adbf05 100644 --- a/packages/google-cloud-compute/system-test/fixtures/sample/src/index.js +++ b/packages/google-cloud-compute/system-test/fixtures/sample/src/index.js @@ -55,6 +55,7 @@ function main() { const licensesClient = new compute.LicensesClient(); const machineImagesClient = new compute.MachineImagesClient(); const machineTypesClient = new compute.MachineTypesClient(); + const networkAttachmentsClient = new compute.NetworkAttachmentsClient(); const networkEdgeSecurityServicesClient = new compute.NetworkEdgeSecurityServicesClient(); const networkEndpointGroupsClient = new compute.NetworkEndpointGroupsClient(); diff --git a/packages/google-cloud-compute/system-test/fixtures/sample/src/index.ts b/packages/google-cloud-compute/system-test/fixtures/sample/src/index.ts index ee45f1689f7..3175e279b88 100644 --- a/packages/google-cloud-compute/system-test/fixtures/sample/src/index.ts +++ b/packages/google-cloud-compute/system-test/fixtures/sample/src/index.ts @@ -48,6 +48,7 @@ import { LicensesClient, MachineImagesClient, MachineTypesClient, + NetworkAttachmentsClient, NetworkEdgeSecurityServicesClient, NetworkEndpointGroupsClient, NetworkFirewallPoliciesClient, @@ -216,6 +217,9 @@ function doStuffWithMachineImagesClient(client: MachineImagesClient) { function doStuffWithMachineTypesClient(client: MachineTypesClient) { client.close(); } +function doStuffWithNetworkAttachmentsClient(client: NetworkAttachmentsClient) { + client.close(); +} function doStuffWithNetworkEdgeSecurityServicesClient( client: NetworkEdgeSecurityServicesClient ) { @@ -523,6 +527,9 @@ function main() { const machineTypesClient = new MachineTypesClient(); doStuffWithMachineTypesClient(machineTypesClient); // check that the client instance can be created + const networkAttachmentsClient = new NetworkAttachmentsClient(); + doStuffWithNetworkAttachmentsClient(networkAttachmentsClient); + // check that the client instance can be created const networkEdgeSecurityServicesClient = new NetworkEdgeSecurityServicesClient(); doStuffWithNetworkEdgeSecurityServicesClient( diff --git a/packages/google-cloud-compute/test/gapic_network_attachments_v1.ts b/packages/google-cloud-compute/test/gapic_network_attachments_v1.ts new file mode 100644 index 00000000000..013a6802ba2 --- /dev/null +++ b/packages/google-cloud-compute/test/gapic_network_attachments_v1.ts @@ -0,0 +1,1692 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +import * as protos from '../protos/protos'; +import * as assert from 'assert'; +import * as sinon from 'sinon'; +import {SinonStub} from 'sinon'; +import {describe, it, beforeEach, afterEach} from 'mocha'; +import * as networkattachmentsModule from '../src'; + +import {PassThrough} from 'stream'; + +import {GoogleAuth, protobuf} from 'google-gax'; + +// Dynamically loaded proto JSON is needed to get the type information +// to fill in default values for request objects +const root = protobuf.Root.fromJSON( + require('../protos/protos.json') +).resolveAll(); + +// eslint-disable-next-line @typescript-eslint/no-unused-vars +function getTypeDefaultValue(typeName: string, fields: string[]) { + let type = root.lookupType(typeName) as protobuf.Type; + for (const field of fields.slice(0, -1)) { + type = type.fields[field]?.resolvedType as protobuf.Type; + } + return type.fields[fields[fields.length - 1]]?.defaultValue; +} + +function generateSampleMessage(instance: T) { + const filledObject = ( + instance.constructor as typeof protobuf.Message + ).toObject(instance as protobuf.Message, {defaults: true}); + return (instance.constructor as typeof protobuf.Message).fromObject( + filledObject + ) as T; +} + +function stubSimpleCall(response?: ResponseType, error?: Error) { + return error + ? sinon.stub().rejects(error) + : sinon.stub().resolves([response]); +} + +function stubSimpleCallWithCallback( + response?: ResponseType, + error?: Error +) { + return error + ? sinon.stub().callsArgWith(2, error) + : sinon.stub().callsArgWith(2, null, response); +} + +function stubPageStreamingCall( + responses?: ResponseType[], + error?: Error +) { + const pagingStub = sinon.stub(); + if (responses) { + for (let i = 0; i < responses.length; ++i) { + pagingStub.onCall(i).callsArgWith(2, null, responses[i]); + } + } + const transformStub = error + ? sinon.stub().callsArgWith(2, error) + : pagingStub; + const mockStream = new PassThrough({ + objectMode: true, + transform: transformStub, + }); + // trigger as many responses as needed + if (responses) { + for (let i = 0; i < responses.length; ++i) { + setImmediate(() => { + mockStream.write({}); + }); + } + setImmediate(() => { + mockStream.end(); + }); + } else { + setImmediate(() => { + mockStream.write({}); + }); + setImmediate(() => { + mockStream.end(); + }); + } + return sinon.stub().returns(mockStream); +} + +function stubAsyncIterationCall( + responses?: ResponseType[], + error?: Error +) { + let counter = 0; + const asyncIterable = { + [Symbol.asyncIterator]() { + return { + async next() { + if (error) { + return Promise.reject(error); + } + if (counter >= responses!.length) { + return Promise.resolve({done: true, value: undefined}); + } + return Promise.resolve({done: false, value: responses![counter++]}); + }, + }; + }, + }; + return sinon.stub().returns(asyncIterable); +} + +describe('v1.NetworkAttachmentsClient', () => { + let googleAuth: GoogleAuth; + beforeEach(() => { + googleAuth = { + getClient: sinon.stub().resolves({ + getRequestHeaders: sinon + .stub() + .resolves({Authorization: 'Bearer SOME_TOKEN'}), + }), + } as unknown as GoogleAuth; + }); + afterEach(() => { + sinon.restore(); + }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + networkattachmentsModule.v1.NetworkAttachmentsClient.servicePath; + assert(servicePath); + }); + + it('has apiEndpoint', () => { + const apiEndpoint = + networkattachmentsModule.v1.NetworkAttachmentsClient.apiEndpoint; + assert(apiEndpoint); + }); + + it('has port', () => { + const port = networkattachmentsModule.v1.NetworkAttachmentsClient.port; + assert(port); + assert(typeof port === 'number'); + }); + + it('should create a client with no option', () => { + const client = new networkattachmentsModule.v1.NetworkAttachmentsClient(); + assert(client); + }); + + it('should create a client with gRPC fallback', () => { + const client = new networkattachmentsModule.v1.NetworkAttachmentsClient({ + fallback: true, + }); + assert(client); + }); + + it('has initialize method and supports deferred initialization', async () => { + const client = new networkattachmentsModule.v1.NetworkAttachmentsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.networkAttachmentsStub, undefined); + await client.initialize(); + assert(client.networkAttachmentsStub); + }); + + it('has close method for the initialized client', done => { + const client = new networkattachmentsModule.v1.NetworkAttachmentsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + assert(client.networkAttachmentsStub); + client.close().then(() => { + done(); + }); + }); + + it('has close method for the non-initialized client', done => { + const client = new networkattachmentsModule.v1.NetworkAttachmentsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + assert.strictEqual(client.networkAttachmentsStub, undefined); + client.close().then(() => { + done(); + }); + }); + + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new networkattachmentsModule.v1.NetworkAttachmentsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); + }); + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new networkattachmentsModule.v1.NetworkAttachmentsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); + }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); + }); + }); + + describe('delete', () => { + it('invokes delete without error', async () => { + const client = new networkattachmentsModule.v1.NetworkAttachmentsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.DeleteNetworkAttachmentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.DeleteNetworkAttachmentRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.DeleteNetworkAttachmentRequest', + ['region'] + ); + request.region = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.DeleteNetworkAttachmentRequest', + ['networkAttachment'] + ); + request.networkAttachment = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}&network_attachment=${defaultValue3}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.delete = stubSimpleCall(expectedResponse); + const [response] = await client.delete(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + const actualRequest = (client.innerApiCalls.delete as SinonStub).getCall( + 0 + ).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.delete as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes delete without error using callback', async () => { + const client = new networkattachmentsModule.v1.NetworkAttachmentsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.DeleteNetworkAttachmentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.DeleteNetworkAttachmentRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.DeleteNetworkAttachmentRequest', + ['region'] + ); + request.region = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.DeleteNetworkAttachmentRequest', + ['networkAttachment'] + ); + request.networkAttachment = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}&network_attachment=${defaultValue3}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.delete = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.delete( + request, + ( + err?: Error | null, + result?: protos.google.cloud.compute.v1.IOperation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.delete as SinonStub).getCall( + 0 + ).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.delete as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes delete with error', async () => { + const client = new networkattachmentsModule.v1.NetworkAttachmentsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.DeleteNetworkAttachmentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.DeleteNetworkAttachmentRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.DeleteNetworkAttachmentRequest', + ['region'] + ); + request.region = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.DeleteNetworkAttachmentRequest', + ['networkAttachment'] + ); + request.networkAttachment = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}&network_attachment=${defaultValue3}`; + const expectedError = new Error('expected'); + client.innerApiCalls.delete = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.delete(request), expectedError); + const actualRequest = (client.innerApiCalls.delete as SinonStub).getCall( + 0 + ).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.delete as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes delete with closed client', async () => { + const client = new networkattachmentsModule.v1.NetworkAttachmentsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.DeleteNetworkAttachmentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.DeleteNetworkAttachmentRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.DeleteNetworkAttachmentRequest', + ['region'] + ); + request.region = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.DeleteNetworkAttachmentRequest', + ['networkAttachment'] + ); + request.networkAttachment = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.delete(request), expectedError); + }); + }); + + describe('get', () => { + it('invokes get without error', async () => { + const client = new networkattachmentsModule.v1.NetworkAttachmentsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetNetworkAttachmentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetNetworkAttachmentRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetNetworkAttachmentRequest', + ['region'] + ); + request.region = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetNetworkAttachmentRequest', + ['networkAttachment'] + ); + request.networkAttachment = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}&network_attachment=${defaultValue3}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.NetworkAttachment() + ); + client.innerApiCalls.get = stubSimpleCall(expectedResponse); + const [response] = await client.get(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.get as SinonStub).getCall(0) + .args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.get as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes get without error using callback', async () => { + const client = new networkattachmentsModule.v1.NetworkAttachmentsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetNetworkAttachmentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetNetworkAttachmentRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetNetworkAttachmentRequest', + ['region'] + ); + request.region = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetNetworkAttachmentRequest', + ['networkAttachment'] + ); + request.networkAttachment = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}&network_attachment=${defaultValue3}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.NetworkAttachment() + ); + client.innerApiCalls.get = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.get( + request, + ( + err?: Error | null, + result?: protos.google.cloud.compute.v1.INetworkAttachment | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.get as SinonStub).getCall(0) + .args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.get as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes get with error', async () => { + const client = new networkattachmentsModule.v1.NetworkAttachmentsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetNetworkAttachmentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetNetworkAttachmentRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetNetworkAttachmentRequest', + ['region'] + ); + request.region = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetNetworkAttachmentRequest', + ['networkAttachment'] + ); + request.networkAttachment = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}&network_attachment=${defaultValue3}`; + const expectedError = new Error('expected'); + client.innerApiCalls.get = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.get(request), expectedError); + const actualRequest = (client.innerApiCalls.get as SinonStub).getCall(0) + .args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.get as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes get with closed client', async () => { + const client = new networkattachmentsModule.v1.NetworkAttachmentsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetNetworkAttachmentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetNetworkAttachmentRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetNetworkAttachmentRequest', + ['region'] + ); + request.region = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetNetworkAttachmentRequest', + ['networkAttachment'] + ); + request.networkAttachment = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.get(request), expectedError); + }); + }); + + describe('getIamPolicy', () => { + it('invokes getIamPolicy without error', async () => { + const client = new networkattachmentsModule.v1.NetworkAttachmentsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetIamPolicyNetworkAttachmentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetIamPolicyNetworkAttachmentRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetIamPolicyNetworkAttachmentRequest', + ['region'] + ); + request.region = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetIamPolicyNetworkAttachmentRequest', + ['resource'] + ); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}&resource=${defaultValue3}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Policy() + ); + client.innerApiCalls.getIamPolicy = stubSimpleCall(expectedResponse); + const [response] = await client.getIamPolicy(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getIamPolicy as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getIamPolicy as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getIamPolicy without error using callback', async () => { + const client = new networkattachmentsModule.v1.NetworkAttachmentsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetIamPolicyNetworkAttachmentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetIamPolicyNetworkAttachmentRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetIamPolicyNetworkAttachmentRequest', + ['region'] + ); + request.region = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetIamPolicyNetworkAttachmentRequest', + ['resource'] + ); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}&resource=${defaultValue3}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Policy() + ); + client.innerApiCalls.getIamPolicy = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getIamPolicy( + request, + ( + err?: Error | null, + result?: protos.google.cloud.compute.v1.IPolicy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getIamPolicy as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getIamPolicy as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getIamPolicy with error', async () => { + const client = new networkattachmentsModule.v1.NetworkAttachmentsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetIamPolicyNetworkAttachmentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetIamPolicyNetworkAttachmentRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetIamPolicyNetworkAttachmentRequest', + ['region'] + ); + request.region = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetIamPolicyNetworkAttachmentRequest', + ['resource'] + ); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}&resource=${defaultValue3}`; + const expectedError = new Error('expected'); + client.innerApiCalls.getIamPolicy = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.getIamPolicy(request), expectedError); + const actualRequest = ( + client.innerApiCalls.getIamPolicy as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getIamPolicy as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getIamPolicy with closed client', async () => { + const client = new networkattachmentsModule.v1.NetworkAttachmentsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.GetIamPolicyNetworkAttachmentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetIamPolicyNetworkAttachmentRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetIamPolicyNetworkAttachmentRequest', + ['region'] + ); + request.region = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.GetIamPolicyNetworkAttachmentRequest', + ['resource'] + ); + request.resource = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getIamPolicy(request), expectedError); + }); + }); + + describe('insert', () => { + it('invokes insert without error', async () => { + const client = new networkattachmentsModule.v1.NetworkAttachmentsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.InsertNetworkAttachmentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.InsertNetworkAttachmentRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.InsertNetworkAttachmentRequest', + ['region'] + ); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.insert = stubSimpleCall(expectedResponse); + const [response] = await client.insert(request); + assert.deepStrictEqual(response.latestResponse, expectedResponse); + const actualRequest = (client.innerApiCalls.insert as SinonStub).getCall( + 0 + ).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.insert as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes insert without error using callback', async () => { + const client = new networkattachmentsModule.v1.NetworkAttachmentsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.InsertNetworkAttachmentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.InsertNetworkAttachmentRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.InsertNetworkAttachmentRequest', + ['region'] + ); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Operation() + ); + client.innerApiCalls.insert = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.insert( + request, + ( + err?: Error | null, + result?: protos.google.cloud.compute.v1.IOperation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.insert as SinonStub).getCall( + 0 + ).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.insert as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes insert with error', async () => { + const client = new networkattachmentsModule.v1.NetworkAttachmentsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.InsertNetworkAttachmentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.InsertNetworkAttachmentRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.InsertNetworkAttachmentRequest', + ['region'] + ); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}`; + const expectedError = new Error('expected'); + client.innerApiCalls.insert = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.insert(request), expectedError); + const actualRequest = (client.innerApiCalls.insert as SinonStub).getCall( + 0 + ).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.insert as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes insert with closed client', async () => { + const client = new networkattachmentsModule.v1.NetworkAttachmentsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.InsertNetworkAttachmentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.InsertNetworkAttachmentRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.InsertNetworkAttachmentRequest', + ['region'] + ); + request.region = defaultValue2; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.insert(request), expectedError); + }); + }); + + describe('setIamPolicy', () => { + it('invokes setIamPolicy without error', async () => { + const client = new networkattachmentsModule.v1.NetworkAttachmentsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SetIamPolicyNetworkAttachmentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetIamPolicyNetworkAttachmentRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetIamPolicyNetworkAttachmentRequest', + ['region'] + ); + request.region = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetIamPolicyNetworkAttachmentRequest', + ['resource'] + ); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}&resource=${defaultValue3}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Policy() + ); + client.innerApiCalls.setIamPolicy = stubSimpleCall(expectedResponse); + const [response] = await client.setIamPolicy(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.setIamPolicy as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.setIamPolicy as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes setIamPolicy without error using callback', async () => { + const client = new networkattachmentsModule.v1.NetworkAttachmentsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SetIamPolicyNetworkAttachmentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetIamPolicyNetworkAttachmentRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetIamPolicyNetworkAttachmentRequest', + ['region'] + ); + request.region = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetIamPolicyNetworkAttachmentRequest', + ['resource'] + ); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}&resource=${defaultValue3}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.Policy() + ); + client.innerApiCalls.setIamPolicy = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.setIamPolicy( + request, + ( + err?: Error | null, + result?: protos.google.cloud.compute.v1.IPolicy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.setIamPolicy as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.setIamPolicy as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes setIamPolicy with error', async () => { + const client = new networkattachmentsModule.v1.NetworkAttachmentsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SetIamPolicyNetworkAttachmentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetIamPolicyNetworkAttachmentRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetIamPolicyNetworkAttachmentRequest', + ['region'] + ); + request.region = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetIamPolicyNetworkAttachmentRequest', + ['resource'] + ); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}&resource=${defaultValue3}`; + const expectedError = new Error('expected'); + client.innerApiCalls.setIamPolicy = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.setIamPolicy(request), expectedError); + const actualRequest = ( + client.innerApiCalls.setIamPolicy as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.setIamPolicy as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes setIamPolicy with closed client', async () => { + const client = new networkattachmentsModule.v1.NetworkAttachmentsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.SetIamPolicyNetworkAttachmentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetIamPolicyNetworkAttachmentRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetIamPolicyNetworkAttachmentRequest', + ['region'] + ); + request.region = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.SetIamPolicyNetworkAttachmentRequest', + ['resource'] + ); + request.resource = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.setIamPolicy(request), expectedError); + }); + }); + + describe('testIamPermissions', () => { + it('invokes testIamPermissions without error', async () => { + const client = new networkattachmentsModule.v1.NetworkAttachmentsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.TestIamPermissionsNetworkAttachmentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.TestIamPermissionsNetworkAttachmentRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.TestIamPermissionsNetworkAttachmentRequest', + ['region'] + ); + request.region = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.TestIamPermissionsNetworkAttachmentRequest', + ['resource'] + ); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}&resource=${defaultValue3}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.TestPermissionsResponse() + ); + client.innerApiCalls.testIamPermissions = + stubSimpleCall(expectedResponse); + const [response] = await client.testIamPermissions(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.testIamPermissions as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.testIamPermissions as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes testIamPermissions without error using callback', async () => { + const client = new networkattachmentsModule.v1.NetworkAttachmentsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.TestIamPermissionsNetworkAttachmentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.TestIamPermissionsNetworkAttachmentRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.TestIamPermissionsNetworkAttachmentRequest', + ['region'] + ); + request.region = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.TestIamPermissionsNetworkAttachmentRequest', + ['resource'] + ); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}&resource=${defaultValue3}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.compute.v1.TestPermissionsResponse() + ); + client.innerApiCalls.testIamPermissions = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.testIamPermissions( + request, + ( + err?: Error | null, + result?: protos.google.cloud.compute.v1.ITestPermissionsResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.testIamPermissions as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.testIamPermissions as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes testIamPermissions with error', async () => { + const client = new networkattachmentsModule.v1.NetworkAttachmentsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.TestIamPermissionsNetworkAttachmentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.TestIamPermissionsNetworkAttachmentRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.TestIamPermissionsNetworkAttachmentRequest', + ['region'] + ); + request.region = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.TestIamPermissionsNetworkAttachmentRequest', + ['resource'] + ); + request.resource = defaultValue3; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}&resource=${defaultValue3}`; + const expectedError = new Error('expected'); + client.innerApiCalls.testIamPermissions = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.testIamPermissions(request), expectedError); + const actualRequest = ( + client.innerApiCalls.testIamPermissions as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.testIamPermissions as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes testIamPermissions with closed client', async () => { + const client = new networkattachmentsModule.v1.NetworkAttachmentsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.TestIamPermissionsNetworkAttachmentRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.TestIamPermissionsNetworkAttachmentRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.TestIamPermissionsNetworkAttachmentRequest', + ['region'] + ); + request.region = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.cloud.compute.v1.TestIamPermissionsNetworkAttachmentRequest', + ['resource'] + ); + request.resource = defaultValue3; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.testIamPermissions(request), expectedError); + }); + }); + + describe('aggregatedList', () => { + it('uses async iteration with aggregatedList without error', async () => { + const client = new networkattachmentsModule.v1.NetworkAttachmentsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest', + ['project'] + ); + request.project = defaultValue1; + const expectedHeaderRequestParams = `project=${defaultValue1}`; + const expectedResponse = [ + [ + 'tuple_key_1', + generateSampleMessage( + new protos.google.cloud.compute.v1.NetworkAttachmentsScopedList() + ), + ], + [ + 'tuple_key_2', + generateSampleMessage( + new protos.google.cloud.compute.v1.NetworkAttachmentsScopedList() + ), + ], + [ + 'tuple_key_3', + generateSampleMessage( + new protos.google.cloud.compute.v1.NetworkAttachmentsScopedList() + ), + ], + ]; + client.descriptors.page.aggregatedList.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: Array< + [string, protos.google.cloud.compute.v1.INetworkAttachmentsScopedList] + > = []; + 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 networkattachmentsModule.v1.NetworkAttachmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.AggregatedListNetworkAttachmentsRequest', + ['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.INetworkAttachmentsScopedList] + > = []; + 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 networkattachmentsModule.v1.NetworkAttachmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListNetworkAttachmentsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListNetworkAttachmentsRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListNetworkAttachmentsRequest', + ['region'] + ); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.compute.v1.NetworkAttachment() + ), + generateSampleMessage( + new protos.google.cloud.compute.v1.NetworkAttachment() + ), + generateSampleMessage( + new protos.google.cloud.compute.v1.NetworkAttachment() + ), + ]; + client.innerApiCalls.list = stubSimpleCall(expectedResponse); + const [response] = await client.list(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.list as SinonStub).getCall(0) + .args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.list as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes list without error using callback', async () => { + const client = new networkattachmentsModule.v1.NetworkAttachmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListNetworkAttachmentsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListNetworkAttachmentsRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListNetworkAttachmentsRequest', + ['region'] + ); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.compute.v1.NetworkAttachment() + ), + generateSampleMessage( + new protos.google.cloud.compute.v1.NetworkAttachment() + ), + generateSampleMessage( + new protos.google.cloud.compute.v1.NetworkAttachment() + ), + ]; + client.innerApiCalls.list = stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.list( + request, + ( + err?: Error | null, + result?: protos.google.cloud.compute.v1.INetworkAttachment[] | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = (client.innerApiCalls.list as SinonStub).getCall(0) + .args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.list as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes list with error', async () => { + const client = new networkattachmentsModule.v1.NetworkAttachmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListNetworkAttachmentsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListNetworkAttachmentsRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListNetworkAttachmentsRequest', + ['region'] + ); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}`; + const expectedError = new Error('expected'); + client.innerApiCalls.list = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.list(request), expectedError); + const actualRequest = (client.innerApiCalls.list as SinonStub).getCall(0) + .args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.list as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listStream without error', async () => { + const client = new networkattachmentsModule.v1.NetworkAttachmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListNetworkAttachmentsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListNetworkAttachmentsRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListNetworkAttachmentsRequest', + ['region'] + ); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.compute.v1.NetworkAttachment() + ), + generateSampleMessage( + new protos.google.cloud.compute.v1.NetworkAttachment() + ), + generateSampleMessage( + new protos.google.cloud.compute.v1.NetworkAttachment() + ), + ]; + client.descriptors.page.list.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.compute.v1.NetworkAttachment[] = + []; + stream.on( + 'data', + (response: protos.google.cloud.compute.v1.NetworkAttachment) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.list.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.list, request) + ); + assert( + (client.descriptors.page.list.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes listStream with error', async () => { + const client = new networkattachmentsModule.v1.NetworkAttachmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListNetworkAttachmentsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListNetworkAttachmentsRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListNetworkAttachmentsRequest', + ['region'] + ); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}`; + const expectedError = new Error('expected'); + client.descriptors.page.list.createStream = stubPageStreamingCall( + undefined, + expectedError + ); + const stream = client.listStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.compute.v1.NetworkAttachment[] = + []; + stream.on( + 'data', + (response: protos.google.cloud.compute.v1.NetworkAttachment) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.list.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.list, request) + ); + assert( + (client.descriptors.page.list.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with list without error', async () => { + const client = new networkattachmentsModule.v1.NetworkAttachmentsClient({ + auth: googleAuth, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListNetworkAttachmentsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListNetworkAttachmentsRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListNetworkAttachmentsRequest', + ['region'] + ); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.compute.v1.NetworkAttachment() + ), + generateSampleMessage( + new protos.google.cloud.compute.v1.NetworkAttachment() + ), + generateSampleMessage( + new protos.google.cloud.compute.v1.NetworkAttachment() + ), + ]; + client.descriptors.page.list.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.compute.v1.INetworkAttachment[] = []; + const iterable = client.listAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + (client.descriptors.page.list.asyncIterate as SinonStub).getCall(0) + .args[1], + request + ); + assert( + (client.descriptors.page.list.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with list with error', async () => { + const client = new networkattachmentsModule.v1.NetworkAttachmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.compute.v1.ListNetworkAttachmentsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListNetworkAttachmentsRequest', + ['project'] + ); + request.project = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + '.google.cloud.compute.v1.ListNetworkAttachmentsRequest', + ['region'] + ); + request.region = defaultValue2; + const expectedHeaderRequestParams = `project=${defaultValue1}®ion=${defaultValue2}`; + const expectedError = new Error('expected'); + client.descriptors.page.list.asyncIterate = stubAsyncIterationCall( + undefined, + expectedError + ); + const iterable = client.listAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.compute.v1.INetworkAttachment[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + (client.descriptors.page.list.asyncIterate as SinonStub).getCall(0) + .args[1], + request + ); + assert( + (client.descriptors.page.list.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); +});