@maxim_mazurok/gapi.client.compute-alpha 0.0.20220831 → 0.0.20220918

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/index.d.ts +334 -54
  2. package/package.json +1 -1
  3. package/readme.md +5 -0
  4. package/tests.ts +511 -1
package/index.d.ts CHANGED
@@ -4,13 +4,12 @@
4
4
  // Nick Amoscato <https://github.com/namoscato>
5
5
  // Declan Vong <https://github.com/declanvong>
6
6
  // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
7
- // TypeScript Version: 2.8
8
7
 
9
8
  // IMPORTANT
10
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
11
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
12
11
  // Generated from: https://www.googleapis.com/discovery/v1/apis/compute/alpha/rest
13
- // Revision: 20220831
12
+ // Revision: 20220918
14
13
 
15
14
  /// <reference types="gapi.client" />
16
15
 
@@ -177,6 +176,8 @@ declare namespace gapi.client {
177
176
  * a default PTR record will be createc for first IP in associated external IPv6 range.
178
177
  */
179
178
  publicPtrDomainName?: string;
179
+ /** [Output Only] The resource URL for the security policy associated with this access config. */
180
+ securityPolicy?: string;
180
181
  /** Specifies whether a public DNS 'A' record should be created for the external IP address of this access configuration. */
181
182
  setPublicDns?: boolean;
182
183
  /**
@@ -198,7 +199,10 @@ declare namespace gapi.client {
198
199
  description?: string;
199
200
  /** [Output Only] The unique identifier for the resource. This identifier is defined by the server. */
200
201
  id?: string;
201
- /** The endpoint type of this address, which should be VM. This is used for deciding which endpoint this address will be assigned to during the IPv6 external IP address reservation. */
202
+ /**
203
+ * The endpoint type of this address, which should be VM or NETLB. This is used for deciding which type of endpoint this address can be used after the external IPv6 address
204
+ * reservation.
205
+ */
202
206
  ipv6EndpointType?: string;
203
207
  /** The IP version that will be used by this address. Valid options are IPV4 or IPV6. This can only be specified for a global address. */
204
208
  ipVersion?: string;
@@ -1741,6 +1745,12 @@ declare namespace gapi.client {
1741
1745
  /** This field is only temporary. It will be removed. Do not use it. */
1742
1746
  name?: string;
1743
1747
  }
1748
+ interface BundledLocalSsds {
1749
+ /** The default disk interface if the interface is not specified. */
1750
+ defaultInterface?: string;
1751
+ /** The number of partitions. */
1752
+ partitionCount?: number;
1753
+ }
1744
1754
  interface CacheInvalidationRule {
1745
1755
  /** If set, this invalidation rule will only apply to requests with a Host header matching host. */
1746
1756
  host?: string;
@@ -3138,7 +3148,7 @@ declare namespace gapi.client {
3138
3148
  interface FirewallPolicyRuleMatcher {
3139
3149
  /** Address groups which should be matched against the traffic destination. Maximum number of destination address groups is 10. */
3140
3150
  destAddressGroups?: string[];
3141
- /** Fully Qualified Domain Name (FQDN) which should be matched against traffic destination. Maximum number of destination fqdn allowed is 1000. */
3151
+ /** Fully Qualified Domain Name (FQDN) which should be matched against traffic destination. Maximum number of destination fqdn allowed is 100. */
3142
3152
  destFqdns?: string[];
3143
3153
  /** CIDR IP address range. Maximum number of destination CIDR IP ranges allowed is 5000. */
3144
3154
  destIpRanges?: string[];
@@ -3153,7 +3163,7 @@ declare namespace gapi.client {
3153
3163
  layer4Configs?: FirewallPolicyRuleMatcherLayer4Config[];
3154
3164
  /** Address groups which should be matched against the traffic source. Maximum number of source address groups is 10. */
3155
3165
  srcAddressGroups?: string[];
3156
- /** Fully Qualified Domain Name (FQDN) which should be matched against traffic source. Maximum number of source fqdn allowed is 1000. */
3166
+ /** Fully Qualified Domain Name (FQDN) which should be matched against traffic source. Maximum number of source fqdn allowed is 100. */
3157
3167
  srcFqdns?: string[];
3158
3168
  /** CIDR IP address range. Maximum number of source CIDR IP ranges allowed is 5000. */
3159
3169
  srcIpRanges?: string[];
@@ -3347,6 +3357,12 @@ declare namespace gapi.client {
3347
3357
  * forwarding rule with IPv6.
3348
3358
  */
3349
3359
  subnetwork?: string;
3360
+ /**
3361
+ * The URL of the target resource to receive the matched traffic. For regional forwarding rules, this target must be in the same region as the forwarding rule. For global forwarding
3362
+ * rules, this target must be a global load balancing resource. The forwarded traffic must be of a type appropriate to the target object. For more information, see the "Target" column
3363
+ * in [Port specifications](https://cloud.google.com/load-balancing/docs/forwarding-rule-concepts#ip_address_specifications). For Private Service Connect forwarding rules that forward
3364
+ * traffic to Google APIs, provide the name of a supported Google API bundle: - vpc-sc - APIs that support VPC Service Controls. - all-apis - All supported Google APIs.
3365
+ */
3350
3366
  target?: string;
3351
3367
  }
3352
3368
  interface ForwardingRuleAggregatedList {
@@ -3680,17 +3696,19 @@ declare namespace gapi.client {
3680
3696
  * ASCII.
3681
3697
  */
3682
3698
  grpcServiceName?: string;
3683
- /**
3684
- * The port number for the health check request. Must be specified if port_name and port_specification are not set or if port_specification is USE_FIXED_PORT. Valid values are 1
3685
- * through 65535.
3686
- */
3699
+ /** The TCP port number to which the health check prober sends packets. Valid values are 1 through 65535. */
3687
3700
  port?: number;
3688
- /** Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence. The port_name should conform to RFC1035. */
3701
+ /** Not supported. */
3689
3702
  portName?: string;
3690
3703
  /**
3691
- * Specifies how port is selected for health checking, can be one of following values: USE_FIXED_PORT: The port number in port is used for health checking. USE_NAMED_PORT: The portName
3692
- * is used for health checking. USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or
3693
- * named port specified in the Backend Service is used for health checking. If not specified, gRPC health check follows behavior specified in port and portName fields.
3704
+ * Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health
3705
+ * check. Supported by backend services for pass-through load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all
3706
+ * backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and
3707
+ * instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only
3708
+ * supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for pass-through load balancers. Supports all backends that
3709
+ * can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the
3710
+ * port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend
3711
+ * service's named port in the instance group's list of named ports.
3694
3712
  */
3695
3713
  portSpecification?: string;
3696
3714
  }
@@ -4081,23 +4099,35 @@ declare namespace gapi.client {
4081
4099
  pathMatcher?: string;
4082
4100
  }
4083
4101
  interface HTTP2HealthCheck {
4084
- /** The value of the host header in the HTTP/2 health check request. If left empty (default value), the IP on behalf of which this health check is performed will be used. */
4102
+ /**
4103
+ * The value of the host header in the HTTP/2 health check request. If left empty (default value), the host header is set to the destination IP address to which health check packets
4104
+ * are sent. The destination IP address depends on the type of load balancer. For details, see: https://cloud.google.com/load-balancing/docs/health-check-concepts#hc-packet-dest
4105
+ */
4085
4106
  host?: string;
4086
- /** The TCP port number for the health check request. The default value is 443. Valid values are 1 through 65535. */
4107
+ /** The TCP port number to which the health check prober sends packets. The default value is 443. Valid values are 1 through 65535. */
4087
4108
  port?: number;
4088
- /** Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence. */
4109
+ /** Not supported. */
4089
4110
  portName?: string;
4090
4111
  /**
4091
- * Specifies how port is selected for health checking, can be one of following values: USE_FIXED_PORT: The port number in port is used for health checking. USE_NAMED_PORT: The portName
4092
- * is used for health checking. USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or
4093
- * named port specified in the Backend Service is used for health checking. If not specified, HTTP2 health check follows behavior specified in port and portName fields.
4112
+ * Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health
4113
+ * check. Supported by backend services for pass-through load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all
4114
+ * backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and
4115
+ * instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only
4116
+ * supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for pass-through load balancers. Supports all backends that
4117
+ * can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the
4118
+ * port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend
4119
+ * service's named port in the instance group's list of named ports.
4094
4120
  */
4095
4121
  portSpecification?: string;
4096
4122
  /** Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE. */
4097
4123
  proxyHeader?: string;
4098
4124
  /** The request path of the HTTP/2 health check request. The default value is /. */
4099
4125
  requestPath?: string;
4100
- /** The string to match anywhere in the first 1024 bytes of the response body. If left empty (the default value), the status code determines health. The response data can only be ASCII. */
4126
+ /**
4127
+ * Creates a content-based HTTP/2 health check. In addition to the required HTTP 200 (OK) status code, you can configure the health check to pass only when the backend sends this
4128
+ * specific ASCII response string within the first 1024 bytes of the HTTP response body. For details, see:
4129
+ * https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-http
4130
+ */
4101
4131
  response?: string;
4102
4132
  /** Weight report mode. used for weighted Load Balancing. */
4103
4133
  weightReportMode?: string;
@@ -4228,23 +4258,35 @@ declare namespace gapi.client {
4228
4258
  unhealthyThreshold?: number;
4229
4259
  }
4230
4260
  interface HTTPHealthCheck {
4231
- /** The value of the host header in the HTTP health check request. If left empty (default value), the IP on behalf of which this health check is performed will be used. */
4261
+ /**
4262
+ * The value of the host header in the HTTP health check request. If left empty (default value), the host header is set to the destination IP address to which health check packets are
4263
+ * sent. The destination IP address depends on the type of load balancer. For details, see: https://cloud.google.com/load-balancing/docs/health-check-concepts#hc-packet-dest
4264
+ */
4232
4265
  host?: string;
4233
- /** The TCP port number for the health check request. The default value is 80. Valid values are 1 through 65535. */
4266
+ /** The TCP port number to which the health check prober sends packets. The default value is 80. Valid values are 1 through 65535. */
4234
4267
  port?: number;
4235
- /** Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence. */
4268
+ /** Not supported. */
4236
4269
  portName?: string;
4237
4270
  /**
4238
- * Specifies how port is selected for health checking, can be one of following values: USE_FIXED_PORT: The port number in port is used for health checking. USE_NAMED_PORT: The portName
4239
- * is used for health checking. USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or
4240
- * named port specified in the Backend Service is used for health checking. If not specified, HTTP health check follows behavior specified in port and portName fields.
4271
+ * Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health
4272
+ * check. Supported by backend services for pass-through load balancers and backend services for proxy load balancers. Also supported in legacy HTTP health checks for target pools. The
4273
+ * health check supports all backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT
4274
+ * network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring
4275
+ * to the backend service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for pass-through load
4276
+ * balancers. Supports all backends that can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint
4277
+ * group backends, the health check uses the port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number
4278
+ * determined by looking up the backend service's named port in the instance group's list of named ports.
4241
4279
  */
4242
4280
  portSpecification?: string;
4243
4281
  /** Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE. */
4244
4282
  proxyHeader?: string;
4245
4283
  /** The request path of the HTTP health check request. The default value is /. */
4246
4284
  requestPath?: string;
4247
- /** The string to match anywhere in the first 1024 bytes of the response body. If left empty (the default value), the status code determines health. The response data can only be ASCII. */
4285
+ /**
4286
+ * Creates a content-based HTTP health check. In addition to the required HTTP 200 (OK) status code, you can configure the health check to pass only when the backend sends this
4287
+ * specific ASCII response string within the first 1024 bytes of the HTTP response body. For details, see:
4288
+ * https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-http
4289
+ */
4248
4290
  response?: string;
4249
4291
  /** Weight report mode. used for weighted Load Balancing. */
4250
4292
  weightReportMode?: string;
@@ -4541,23 +4583,35 @@ declare namespace gapi.client {
4541
4583
  unhealthyThreshold?: number;
4542
4584
  }
4543
4585
  interface HTTPSHealthCheck {
4544
- /** The value of the host header in the HTTPS health check request. If left empty (default value), the IP on behalf of which this health check is performed will be used. */
4586
+ /**
4587
+ * The value of the host header in the HTTPS health check request. If left empty (default value), the host header is set to the destination IP address to which health check packets are
4588
+ * sent. The destination IP address depends on the type of load balancer. For details, see: https://cloud.google.com/load-balancing/docs/health-check-concepts#hc-packet-dest
4589
+ */
4545
4590
  host?: string;
4546
- /** The TCP port number for the health check request. The default value is 443. Valid values are 1 through 65535. */
4591
+ /** The TCP port number to which the health check prober sends packets. The default value is 443. Valid values are 1 through 65535. */
4547
4592
  port?: number;
4548
- /** Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence. */
4593
+ /** Not supported. */
4549
4594
  portName?: string;
4550
4595
  /**
4551
- * Specifies how port is selected for health checking, can be one of following values: USE_FIXED_PORT: The port number in port is used for health checking. USE_NAMED_PORT: The portName
4552
- * is used for health checking. USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or
4553
- * named port specified in the Backend Service is used for health checking. If not specified, HTTPS health check follows behavior specified in port and portName fields.
4596
+ * Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health
4597
+ * check. Supported by backend services for pass-through load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all
4598
+ * backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and
4599
+ * instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only
4600
+ * supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for pass-through load balancers. Supports all backends that
4601
+ * can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the
4602
+ * port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend
4603
+ * service's named port in the instance group's list of named ports.
4554
4604
  */
4555
4605
  portSpecification?: string;
4556
4606
  /** Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE. */
4557
4607
  proxyHeader?: string;
4558
4608
  /** The request path of the HTTPS health check request. The default value is /. */
4559
4609
  requestPath?: string;
4560
- /** The string to match anywhere in the first 1024 bytes of the response body. If left empty (the default value), the status code determines health. The response data can only be ASCII. */
4610
+ /**
4611
+ * Creates a content-based HTTPS health check. In addition to the required HTTP 200 (OK) status code, you can configure the health check to pass only when the backend sends this
4612
+ * specific ASCII response string within the first 1024 bytes of the HTTP response body. For details, see:
4613
+ * https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-http
4614
+ */
4561
4615
  response?: string;
4562
4616
  /** Weight report mode. used for weighted Load Balancing. */
4563
4617
  weightReportMode?: string;
@@ -5424,6 +5478,28 @@ declare namespace gapi.client {
5424
5478
  };
5425
5479
  }
5426
5480
  interface InstanceGroupManagerResizeRequestStatus {
5481
+ /** Errors encountered during the queueing or provisioning phases of the ResizeRequest. */
5482
+ error?: {
5483
+ /** [Output Only] The array of errors encountered while processing this operation. */
5484
+ errors?: Array<{
5485
+ /** [Output Only] The error type identifier for this error. */
5486
+ code?: string;
5487
+ /**
5488
+ * [Output Only] An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the
5489
+ * error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED.
5490
+ */
5491
+ errorDetails?: Array<{
5492
+ errorInfo?: ErrorInfo;
5493
+ help?: Help;
5494
+ localizedMessage?: LocalizedMessage;
5495
+ quotaInfo?: QuotaExceededInfo;
5496
+ }>;
5497
+ /** [Output Only] Indicates the field in the request that caused the error. This property is optional. */
5498
+ location?: string;
5499
+ /** [Output Only] An optional, human-readable error message. */
5500
+ message?: string;
5501
+ }>;
5502
+ };
5427
5503
  /** Constraints for the time when the instances start provisioning. Always exposed as absolute time. */
5428
5504
  queuingPolicy?: QueuingPolicy;
5429
5505
  }
@@ -7477,6 +7553,8 @@ declare namespace gapi.client {
7477
7553
  }>;
7478
7554
  /** [Output Only] The architecture of the machine type. */
7479
7555
  architecture?: string;
7556
+ /** [Output Only] The configuration of bundled local SSD for the machine type. */
7557
+ bundledLocalSsds?: BundledLocalSsds;
7480
7558
  /** [Output Only] Creation timestamp in RFC3339 text format. */
7481
7559
  creationTimestamp?: string;
7482
7560
  /** [Output Only] The deprecation status associated with this machine type. Only applicable if the machine type is unavailable. */
@@ -11676,6 +11754,8 @@ declare namespace gapi.client {
11676
11754
  name?: string;
11677
11755
  }
11678
11756
  interface RouterNat {
11757
+ /** The network tier to use when automatically reserving IP addresses. Must be one of: PREMIUM, STANDARD. If not specified, PREMIUM tier will be used. */
11758
+ autoNetworkTier?: string;
11679
11759
  /**
11680
11760
  * A list of URLs of the IP resources to be drained. These IPs must be valid static external IPs that have been assigned to the NAT. These IPs should be used for updating/patching a
11681
11761
  * NAT only.
@@ -12198,6 +12278,12 @@ declare namespace gapi.client {
12198
12278
  * filter requests before the request is served from the application. This field can be set only at resource creation time.
12199
12279
  */
12200
12280
  type?: string;
12281
+ /**
12282
+ * Definitions of user-defined fields for CLOUD_ARMOR_NETWORK policies. A user-defined field consists of up to 4 bytes extracted from a fixed offset in the packet, relative to the
12283
+ * IPv4, IPv6, TCP, or UDP header, with an optional mask to select certain bits. Rules may then specify matching values for these fields. Example: userDefinedFields: - name:
12284
+ * "ipv4_fragment_offset" base: IPV4 offset: 6 size: 2 mask: "0x1fff"
12285
+ */
12286
+ userDefinedFields?: SecurityPolicyUserDefinedField[];
12201
12287
  }
12202
12288
  interface SecurityPolicyAdaptiveProtectionConfig {
12203
12289
  autoDeployConfig?: SecurityPolicyAdaptiveProtectionConfigAutoDeployConfig;
@@ -12314,6 +12400,17 @@ declare namespace gapi.client {
12314
12400
  kind?: string;
12315
12401
  /** A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding 'action' is enforced. */
12316
12402
  match?: SecurityPolicyRuleMatcher;
12403
+ /**
12404
+ * A match condition that incoming packets are evaluated against for CLOUD_ARMOR_NETWORK security policies. If it matches, the corresponding 'action' is enforced. The match criteria
12405
+ * for a rule consists of built-in match fields (like 'srcIpRanges') and potentially multiple user-defined match fields ('userDefinedFields'). Field values may be extracted directly
12406
+ * from the packet or derived from it (e.g. 'srcRegionCodes'). Some fields may not be present in every packet (e.g. 'srcPorts'). A user-defined field is only present if the base header
12407
+ * is found in the packet and the entire field is in bounds. Each match field may specify which values can match it, listing one or more ranges, prefixes, or exact values that are
12408
+ * considered a match for the field. A field value must be present in order to match a specified match field. If no match values are specified for a match field, then any field value
12409
+ * is considered to match it, and it's not required to be present. For a packet to match a rule, all specified match fields must match the corresponding field values derived from the
12410
+ * packet. Example: networkMatch: srcIpRanges: - "192.0.2.0/24" - "198.51.100.0/24" userDefinedFields: - name: "ipv4_fragment_offset" values: - "1-0x1fff" The above match condition
12411
+ * matches packets with a source IP in 192.0.2.0/24 or 198.51.100.0/24 and a user-defined field named "ipv4_fragment_offset" with a value between 1 and 0x1fff inclusive.
12412
+ */
12413
+ networkMatch?: SecurityPolicyRuleNetworkMatcher;
12317
12414
  /**
12318
12415
  * Preconfigured WAF configuration to be applied for the rule. If the rule does not evaluate preconfigured WAF rules, i.e., if evaluatePreconfiguredWaf() is not used, this field will
12319
12416
  * have no effect.
@@ -12409,6 +12506,33 @@ declare namespace gapi.client {
12409
12506
  */
12410
12507
  ports?: string[];
12411
12508
  }
12509
+ interface SecurityPolicyRuleNetworkMatcher {
12510
+ /** Destination IPv4/IPv6 addresses or CIDR prefixes, in standard text format. */
12511
+ destIpRanges?: string[];
12512
+ /** Destination port numbers for TCP/UDP/SCTP. Each element can be a 16-bit unsigned decimal number (e.g. "80") or range (e.g. "0-1023"). */
12513
+ destPorts?: string[];
12514
+ /**
12515
+ * IPv4 protocol / IPv6 next header (after extension headers). Each element can be an 8-bit unsigned decimal number (e.g. "6"), range (e.g. "253-254"), or one of the following protocol
12516
+ * names: "tcp", "udp", "icmp", "esp", "ah", "ipip", or "sctp".
12517
+ */
12518
+ ipProtocols?: string[];
12519
+ /** BGP Autonomous System Number associated with the source IP address. */
12520
+ srcAsns?: number[];
12521
+ /** Source IPv4/IPv6 addresses or CIDR prefixes, in standard text format. */
12522
+ srcIpRanges?: string[];
12523
+ /** Source port numbers for TCP/UDP/SCTP. Each element can be a 16-bit unsigned decimal number (e.g. "80") or range (e.g. "0-1023"). */
12524
+ srcPorts?: string[];
12525
+ /** Two-letter ISO 3166-1 alpha-2 country code associated with the source IP address. */
12526
+ srcRegionCodes?: string[];
12527
+ /** User-defined fields. Each element names a defined field and lists the matching values for that field. */
12528
+ userDefinedFields?: SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch[];
12529
+ }
12530
+ interface SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch {
12531
+ /** Name of the user-defined field, as given in the definition. */
12532
+ name?: string;
12533
+ /** Matching values of the field. Each element can be a 32-bit unsigned decimal or hexadecimal (starting with "0x") number (e.g. "64") or range (e.g. "0x400-0x7ff"). */
12534
+ values?: string[];
12535
+ }
12412
12536
  interface SecurityPolicyRulePreconfiguredWafConfig {
12413
12537
  /** A list of exclusions to apply during preconfigured WAF evaluation. */
12414
12538
  exclusions?: SecurityPolicyRulePreconfiguredWafConfigExclusion[];
@@ -12497,6 +12621,25 @@ declare namespace gapi.client {
12497
12621
  /** Type of the redirect action. */
12498
12622
  type?: string;
12499
12623
  }
12624
+ interface SecurityPolicyUserDefinedField {
12625
+ /**
12626
+ * The base relative to which 'offset' is measured. Possible values are: - IPV4: Points to the beginning of the IPv4 header. - IPV6: Points to the beginning of the IPv6 header. - TCP:
12627
+ * Points to the beginning of the TCP header, skipping over any IPv4 options or IPv6 extension headers. Not present for non-first fragments. - UDP: Points to the beginning of the UDP
12628
+ * header, skipping over any IPv4 options or IPv6 extension headers. Not present for non-first fragments. required
12629
+ */
12630
+ base?: string;
12631
+ /**
12632
+ * If specified, apply this mask (bitwise AND) to the field to ignore bits before matching. Encoded as a hexadecimal number (starting with "0x"). The last byte of the field (in network
12633
+ * byte order) corresponds to the least significant byte of the mask.
12634
+ */
12635
+ mask?: string;
12636
+ /** The name of this field. Must be unique within the policy. */
12637
+ name?: string;
12638
+ /** Offset of the first byte of the field (in network byte order) relative to 'base'. */
12639
+ offset?: number;
12640
+ /** Size of the field in bytes. Valid values: 1-4. */
12641
+ size?: number;
12642
+ }
12500
12643
  interface SecuritySettings {
12501
12644
  /** [Deprecated] Use clientTlsPolicy instead. */
12502
12645
  authentication?: string;
@@ -13164,24 +13307,29 @@ declare namespace gapi.client {
13164
13307
  };
13165
13308
  }
13166
13309
  interface SSLHealthCheck {
13167
- /** The TCP port number for the health check request. The default value is 443. Valid values are 1 through 65535. */
13310
+ /** The TCP port number to which the health check prober sends packets. The default value is 443. Valid values are 1 through 65535. */
13168
13311
  port?: number;
13169
- /** Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence. */
13312
+ /** Not supported. */
13170
13313
  portName?: string;
13171
13314
  /**
13172
- * Specifies how port is selected for health checking, can be one of following values: USE_FIXED_PORT: The port number in port is used for health checking. USE_NAMED_PORT: The portName
13173
- * is used for health checking. USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or
13174
- * named port specified in the Backend Service is used for health checking. If not specified, SSL health check follows behavior specified in port and portName fields.
13315
+ * Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health
13316
+ * check. Supported by backend services for pass-through load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all
13317
+ * backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and
13318
+ * instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only
13319
+ * supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for pass-through load balancers. Supports all backends that
13320
+ * can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the
13321
+ * port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend
13322
+ * service's named port in the instance group's list of named ports.
13175
13323
  */
13176
13324
  portSpecification?: string;
13177
13325
  /** Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE. */
13178
13326
  proxyHeader?: string;
13327
+ /** Instructs the health check prober to send this exact ASCII string, up to 1024 bytes in length, after establishing the TCP connection and SSL handshake. */
13328
+ request?: string;
13179
13329
  /**
13180
- * The application data to send once the SSL connection has been established (default value is empty). If both request and response are empty, the connection establishment alone will
13181
- * indicate health. The request data can only be ASCII.
13330
+ * Creates a content-based SSL health check. In addition to establishing a TCP connection and the TLS handshake, you can configure the health check to pass only when the backend sends
13331
+ * this exact response ASCII string, up to 1024 bytes in length. For details, see: https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-ssl-tcp
13182
13332
  */
13183
- request?: string;
13184
- /** The bytes to match against the beginning of the response data. If left empty (the default value), any response will indicate health. The response data can only be ASCII. */
13185
13333
  response?: string;
13186
13334
  }
13187
13335
  interface SslPoliciesAggregatedList {
@@ -14073,6 +14221,8 @@ declare namespace gapi.client {
14073
14221
  natPolicy?: string;
14074
14222
  /** The URL of the network this target instance uses to forward traffic. If not specified, the traffic will be forwarded to the network that the default network interface belongs to. */
14075
14223
  network?: string;
14224
+ /** [Output Only] The resource URL for the security policy associated with this target instance. */
14225
+ securityPolicy?: string;
14076
14226
  /** [Output Only] Server-defined URL for the resource. */
14077
14227
  selfLink?: string;
14078
14228
  /** [Output Only] Server-defined URL for this resource with the resource id. */
@@ -14210,6 +14360,8 @@ declare namespace gapi.client {
14210
14360
  name?: string;
14211
14361
  /** [Output Only] URL of the region where the target pool resides. */
14212
14362
  region?: string;
14363
+ /** [Output Only] The resource URL for the security policy associated with this target pool. */
14364
+ securityPolicy?: string;
14213
14365
  /** [Output Only] Server-defined URL for the resource. */
14214
14366
  selfLink?: string;
14215
14367
  /** [Output Only] Server-defined URL for this resource with the resource id. */
@@ -14428,6 +14580,28 @@ declare namespace gapi.client {
14428
14580
  message?: string;
14429
14581
  };
14430
14582
  }
14583
+ interface TargetTcpProxiesScopedList {
14584
+ /** A list of TargetTcpProxies contained in this scope. */
14585
+ targetTcpProxies?: TargetTcpProxy[];
14586
+ /** Informational warning which replaces the list of backend services when the list is empty. */
14587
+ warning?: {
14588
+ /** [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. */
14589
+ code?: string;
14590
+ /** [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } */
14591
+ data?: Array<{
14592
+ /**
14593
+ * [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone,
14594
+ * this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning
14595
+ * about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
14596
+ */
14597
+ key?: string;
14598
+ /** [Output Only] A warning data value corresponding to the key. */
14599
+ value?: string;
14600
+ }>;
14601
+ /** [Output Only] A human-readable description of the warning code. */
14602
+ message?: string;
14603
+ };
14604
+ }
14431
14605
  interface TargetTcpProxiesSetBackendServiceRequest {
14432
14606
  /** The URL of the new BackendService resource for the targetTcpProxy. */
14433
14607
  service?: string;
@@ -14467,6 +14641,41 @@ declare namespace gapi.client {
14467
14641
  /** URL to the BackendService resource. */
14468
14642
  service?: string;
14469
14643
  }
14644
+ interface TargetTcpProxyAggregatedList {
14645
+ /** [Output Only] Unique identifier for the resource; defined by the server. */
14646
+ id?: string;
14647
+ /** A list of TargetTcpProxiesScopedList resources. */
14648
+ items?: { [P in string]: TargetTcpProxiesScopedList };
14649
+ /** [Output Only] Type of resource. Always compute#targetTcpProxyAggregatedList for lists of Target TCP Proxies. */
14650
+ kind?: string;
14651
+ /**
14652
+ * [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
14653
+ * query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
14654
+ */
14655
+ nextPageToken?: string;
14656
+ /** [Output Only] Server-defined URL for this resource. */
14657
+ selfLink?: string;
14658
+ /** [Output Only] Unreachable resources. */
14659
+ unreachables?: string[];
14660
+ /** [Output Only] Informational warning message. */
14661
+ warning?: {
14662
+ /** [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. */
14663
+ code?: string;
14664
+ /** [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } */
14665
+ data?: Array<{
14666
+ /**
14667
+ * [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone,
14668
+ * this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning
14669
+ * about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
14670
+ */
14671
+ key?: string;
14672
+ /** [Output Only] A warning data value corresponding to the key. */
14673
+ value?: string;
14674
+ }>;
14675
+ /** [Output Only] A human-readable description of the warning code. */
14676
+ message?: string;
14677
+ };
14678
+ }
14470
14679
  interface TargetTcpProxyList {
14471
14680
  /** [Output Only] Unique identifier for the resource; defined by the server. */
14472
14681
  id?: string;
@@ -14627,24 +14836,29 @@ declare namespace gapi.client {
14627
14836
  };
14628
14837
  }
14629
14838
  interface TCPHealthCheck {
14630
- /** The TCP port number for the health check request. The default value is 80. Valid values are 1 through 65535. */
14839
+ /** The TCP port number to which the health check prober sends packets. The default value is 80. Valid values are 1 through 65535. */
14631
14840
  port?: number;
14632
- /** Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence. */
14841
+ /** Not supported. */
14633
14842
  portName?: string;
14634
14843
  /**
14635
- * Specifies how port is selected for health checking, can be one of following values: USE_FIXED_PORT: The port number in port is used for health checking. USE_NAMED_PORT: The portName
14636
- * is used for health checking. USE_SERVING_PORT: For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or
14637
- * named port specified in the Backend Service is used for health checking. If not specified, TCP health check follows behavior specified in port and portName fields.
14844
+ * Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health
14845
+ * check. Supported by backend services for pass-through load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all
14846
+ * backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and
14847
+ * instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only
14848
+ * supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for pass-through load balancers. Supports all backends that
14849
+ * can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the
14850
+ * port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend
14851
+ * service's named port in the instance group's list of named ports.
14638
14852
  */
14639
14853
  portSpecification?: string;
14640
14854
  /** Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE. */
14641
14855
  proxyHeader?: string;
14856
+ /** Instructs the health check prober to send this exact ASCII string, up to 1024 bytes in length, after establishing the TCP connection. */
14857
+ request?: string;
14642
14858
  /**
14643
- * The application data to send once the TCP connection has been established (default value is empty). If both request and response are empty, the connection establishment alone will
14644
- * indicate health. The request data can only be ASCII.
14859
+ * Creates a content-based TCP health check. In addition to establishing a TCP connection, you can configure the health check to pass only when the backend sends this exact response
14860
+ * ASCII string, up to 1024 bytes in length. For details, see: https://cloud.google.com/load-balancing/docs/health-check-concepts#criteria-protocol-ssl-tcp
14645
14861
  */
14646
- request?: string;
14647
- /** The bytes to match against the beginning of the response data. If left empty (the default value), any response will indicate health. The response data can only be ASCII. */
14648
14862
  response?: string;
14649
14863
  }
14650
14864
  interface TestFailure {
@@ -14707,9 +14921,9 @@ declare namespace gapi.client {
14707
14921
  validationSource?: string;
14708
14922
  }
14709
14923
  interface UDPHealthCheck {
14710
- /** The UDP port number for the health check request. Valid values are 1 through 65535. */
14924
+ /** The UDP port number to which the health check prober sends packets. Valid values are 1 through 65535. */
14711
14925
  port?: number;
14712
- /** Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence. */
14926
+ /** Not supported. */
14713
14927
  portName?: string;
14714
14928
  /** Raw data of request to send in payload of UDP packet. It is an error if this is empty. The request data can only be ASCII. */
14715
14929
  request?: string;
@@ -61132,6 +61346,72 @@ declare namespace gapi.client {
61132
61346
  body: TestPermissionsRequest): Request<TestPermissionsResponse>;
61133
61347
  }
61134
61348
  interface TargetTcpProxiesResource {
61349
+ /** Retrieves the list of all TargetTcpProxy resources, regional and global, available to the specified project. */
61350
+ aggregatedList(request?: {
61351
+ /** V1 error format. */
61352
+ "$.xgafv"?: string;
61353
+ /** OAuth access token. */
61354
+ access_token?: string;
61355
+ /** Data format for response. */
61356
+ alt?: string;
61357
+ /** JSONP */
61358
+ callback?: string;
61359
+ /** Selector specifying which fields to include in a partial response. */
61360
+ fields?: string;
61361
+ /**
61362
+ * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions
61363
+ * 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
61364
+ * to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering
61365
+ * Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match
61366
+ * substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects
61367
+ * with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only
61368
+ * if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each
61369
+ * separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
61370
+ * expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND
61371
+ * (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
61372
+ * with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double
61373
+ * 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
61374
+ * must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`.
61375
+ */
61376
+ filter?: string;
61377
+ /**
61378
+ * 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
61379
+ * 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
61380
+ * false, only scopes of the scope types where the resource type is expected to be found will be included.
61381
+ */
61382
+ includeAllScopes?: boolean;
61383
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
61384
+ key?: string;
61385
+ /**
61386
+ * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can
61387
+ * be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
61388
+ */
61389
+ maxResults?: number;
61390
+ /** OAuth 2.0 token for the current user. */
61391
+ oauth_token?: string;
61392
+ /**
61393
+ * 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
61394
+ * on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result
61395
+ * 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.
61396
+ */
61397
+ orderBy?: string;
61398
+ /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. */
61399
+ pageToken?: string;
61400
+ /** Returns response with indentations and line breaks. */
61401
+ prettyPrint?: boolean;
61402
+ /** Name of the project scoping this request. */
61403
+ project: string;
61404
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
61405
+ quotaUser?: string;
61406
+ /** Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. */
61407
+ returnPartialSuccess?: boolean;
61408
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
61409
+ upload_protocol?: string;
61410
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
61411
+ uploadType?: string;
61412
+ /** Legacy name for parameter that has been superseded by `quotaUser`. */
61413
+ userIp?: string;
61414
+ }): Request<TargetTcpProxyAggregatedList>;
61135
61415
  /** Deletes the specified TargetTcpProxy resource. */
61136
61416
  delete(request?: {
61137
61417
  /** V1 error format. */