@maxim_mazurok/gapi.client.compute-alpha 0.0.20230103 → 0.0.20230119

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 +273 -18
  2. package/package.json +1 -1
  3. package/readme.md +15 -0
  4. package/tests.ts +56 -1
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://www.googleapis.com/discovery/v1/apis/compute/alpha/rest
12
- // Revision: 20230103
12
+ // Revision: 20230119
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -575,7 +575,10 @@ declare namespace gapi.client {
575
575
  provisionedIops?: string;
576
576
  /** Indicates how much throughput to provision for the disk. This sets the number of throughput mb per second that the disk can handle. Values must be between 1 and 7,124. */
577
577
  provisionedThroughput?: string;
578
- /** URLs of the zones where the disk should be replicated to. Only applicable for regional resources. Replica zones must have 1 zone same as the instance zone. */
578
+ /**
579
+ * Required for each regional disk associated with the instance. Specify the URLs of the zones where the disk should be replicated to. You must provide exactly two replica zones, and
580
+ * one zone must be the same as the instance zone. You can't use this option with boot disks.
581
+ */
579
582
  replicaZones?: string[];
580
583
  /**
581
584
  * Resource manager tags to be bound to the disk. Tag keys and values have the same definition as resource manager tags. Keys must be in the format `tagKeys/{tag_key_id}`, and values
@@ -1240,14 +1243,25 @@ declare namespace gapi.client {
1240
1243
  iap?: BackendServiceIAP;
1241
1244
  /** [Output Only] The unique identifier for the resource. This identifier is defined by the server. */
1242
1245
  id?: string;
1246
+ /**
1247
+ * Specifies preference of traffic to the backend (from the proxy and from the client for proxyless gRPC). The possible values are: - IPV4_ONLY: Only send IPv4 traffic to the backends
1248
+ * of the Backend Service (Instance Group, Managed Instance Group, Network Endpoint Group) regardless of traffic from the client to the proxy. Only IPv4 health-checks are used to check
1249
+ * the health of the backends. This is the default setting. - PREFER_IPV6: Prioritize the connection to the endpoints IPv6 address over its IPv4 address (provided there is a healthy
1250
+ * IPv6 address). - IPV6_ONLY: Only send IPv6 traffic to the backends of the Backend Service (Instance Group, Managed Instance Group, Network Endpoint Group) regardless of traffic from
1251
+ * the client to the proxy. Only IPv6 health-checks are used to check the health of the backends. This field is applicable to either: - Advanced Global External HTTPS Load Balancing
1252
+ * (load balancing scheme EXTERNAL_MANAGED), - Regional External HTTPS Load Balancing, - Internal TCP Proxy (load balancing scheme INTERNAL_MANAGED), - Regional Internal HTTPS Load
1253
+ * Balancing (load balancing scheme INTERNAL_MANAGED), - Traffic Director with Envoy proxies and proxyless gRPC (load balancing scheme INTERNAL_SELF_MANAGED).
1254
+ */
1255
+ ipAddressSelectionPolicy?: string;
1243
1256
  /** [Output Only] Type of resource. Always compute#backendService for backend services. */
1244
1257
  kind?: string;
1245
1258
  /** Specifies the load balancer type. A backend service created for one type of load balancer cannot be used with another. For more information, refer to Choosing a load balancer. */
1246
1259
  loadBalancingScheme?: string;
1247
1260
  /**
1248
- * A list of locality load balancing policies to be used in order of preference. Either the policy or the customPolicy field should be set. Overrides any value set in the
1249
- * localityLbPolicy field. localityLbPolicies is only supported when the BackendService is referenced by a URL Map that is referenced by a target gRPC proxy that has the
1250
- * validateForProxyless field set to true.
1261
+ * A list of locality load-balancing policies to be used in order of preference. When you use localityLbPolicies, you must set at least one value for either the
1262
+ * localityLbPolicies[].policy or the localityLbPolicies[].customPolicy field. localityLbPolicies overrides any value set in the localityLbPolicy field. For an example of how to use
1263
+ * this field, see Define a list of preferred policies. Caution: This field and its children are intended for use in a service mesh that includes gRPC clients only. Envoy proxies can't
1264
+ * use backend services that have this configuration.
1251
1265
  */
1252
1266
  localityLbPolicies?: BackendServiceLocalityLoadBalancingPolicyConfig[];
1253
1267
  /**
@@ -1581,17 +1595,16 @@ declare namespace gapi.client {
1581
1595
  /** An optional, arbitrary JSON object with configuration data, understood by a locally installed custom policy implementation. */
1582
1596
  data?: string;
1583
1597
  /**
1584
- * Identifies the custom policy. The value should match the type the custom implementation is registered with on the gRPC clients. It should follow protocol buffer message naming
1585
- * conventions and include the full path (e.g. myorg.CustomLbPolicy). The maximum length is 256 characters. Note that specifying the same custom policy more than once for a backend is
1586
- * not a valid configuration and will be rejected.
1598
+ * Identifies the custom policy. The value should match the name of a custom implementation registered on the gRPC clients. It should follow protocol buffer message naming conventions
1599
+ * and include the full path (for example, myorg.CustomLbPolicy). The maximum length is 256 characters. Do not specify the same custom policy more than once for a backend. If you do,
1600
+ * the configuration is rejected. For an example of how to use this field, see Use a custom policy.
1587
1601
  */
1588
1602
  name?: string;
1589
1603
  }
1590
1604
  interface BackendServiceLocalityLoadBalancingPolicyConfigPolicy {
1591
1605
  /**
1592
- * The name of a locality load balancer policy to be used. The value should be one of the predefined ones as supported by localityLbPolicy, although at the moment only ROUND_ROBIN is
1593
- * supported. This field should only be populated when the customPolicy field is not used. Note that specifying the same policy more than once for a backend is not a valid
1594
- * configuration and will be rejected.
1606
+ * The name of a locality load-balancing policy. Valid values include ROUND_ROBIN and, for Java clients, LEAST_REQUEST. For information about these values, see the description of
1607
+ * localityLbPolicy. Do not specify the same policy more than once for a backend. If you do, the configuration is rejected.
1595
1608
  */
1596
1609
  name?: string;
1597
1610
  }
@@ -6816,7 +6829,7 @@ declare namespace gapi.client {
6816
6829
  * Partner Interconnect, created by the customer. - PARTNER_PROVIDER: an attachment to a Partner Interconnect, created by the partner.
6817
6830
  */
6818
6831
  type?: string;
6819
- /** The IEEE 802.1Q VLAN tag for this attachment, in the range 2-4094. Only specified at creation time. */
6832
+ /** The IEEE 802.1Q VLAN tag for this attachment, in the range 2-4093. Only specified at creation time. */
6820
6833
  vlanTag8021q?: number;
6821
6834
  }
6822
6835
  interface InterconnectAttachmentAggregatedList {
@@ -7240,6 +7253,8 @@ declare namespace gapi.client {
7240
7253
  lacp?: string;
7241
7254
  /** [Output Only] The maximum number of 100 Gbps ports supported in a link aggregation group (LAG). When linkType is 100 Gbps, requestedLinkCount cannot exceed max_lag_size_100_gbps. */
7242
7255
  maxLagSize100Gbps?: number;
7256
+ /** [Output Only] The maximum number of 10 Gbps ports supported in a link aggregation group (LAG). When linkType is 10 Gbps, requestedLinkCount cannot exceed max_lag_size_10_gbps. */
7257
+ maxLagSize10Gbps?: number;
7243
7258
  /** [Output Only] Name of the resource. */
7244
7259
  name?: string;
7245
7260
  /** [Output Only] The peeringdb identifier for this facility (corresponding with a netfac type in peeringdb). */
@@ -11037,6 +11052,14 @@ declare namespace gapi.client {
11037
11052
  message?: string;
11038
11053
  };
11039
11054
  }
11055
+ interface RegionNetworkEndpointGroupsAttachEndpointsRequest {
11056
+ /** The list of network endpoints to be attached. */
11057
+ networkEndpoints?: NetworkEndpoint[];
11058
+ }
11059
+ interface RegionNetworkEndpointGroupsDetachEndpointsRequest {
11060
+ /** The list of network endpoints to be detached. */
11061
+ networkEndpoints?: NetworkEndpoint[];
11062
+ }
11040
11063
  interface RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse {
11041
11064
  /** Effective firewalls from firewall policy. */
11042
11065
  firewallPolicys?: RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy[];
@@ -12594,11 +12617,11 @@ declare namespace gapi.client {
12594
12617
  }
12595
12618
  interface SecurityPolicyRule {
12596
12619
  /**
12597
- * The Action to perform when the rule is matched. The following are the valid actions: - allow: allow access to target. - deny(): deny access to target, returns the HTTP response code
12598
- * specified (valid values are 403, 404, and 502). - rate_based_ban: limit client traffic to the configured threshold and ban the client if the traffic exceeds the threshold. Configure
12599
- * parameters for this action in RateLimitOptions. Requires rate_limit_options to be set. - redirect: redirect to a different target. This can either be an internal reCAPTCHA redirect,
12600
- * or an external URL-based redirect via a 302 response. Parameters for this action can be configured via redirectOptions. - throttle: limit client traffic to the configured threshold.
12601
- * Configure parameters for this action in rateLimitOptions. Requires rate_limit_options to be set for this.
12620
+ * The Action to perform when the rule is matched. The following are the valid actions: - allow: allow access to target. - deny(STATUS): deny access to target, returns the HTTP
12621
+ * response code specified. Valid values for `STATUS` are 403, 404, and 502. - rate_based_ban: limit client traffic to the configured threshold and ban the client if the traffic
12622
+ * exceeds the threshold. Configure parameters for this action in RateLimitOptions. Requires rate_limit_options to be set. - redirect: redirect to a different target. This can either
12623
+ * be an internal reCAPTCHA redirect, or an external URL-based redirect via a 302 response. Parameters for this action can be configured via redirectOptions. - throttle: limit client
12624
+ * traffic to the configured threshold. Configure parameters for this action in rateLimitOptions. Requires rate_limit_options to be set for this.
12602
12625
  */
12603
12626
  action?: string;
12604
12627
  /** An optional description of this resource. Provide this property when you create the resource. */
@@ -12816,7 +12839,7 @@ declare namespace gapi.client {
12816
12839
  enforceOnKeyName?: string;
12817
12840
  /**
12818
12841
  * Action to take for requests that are above the configured rate limit threshold, to either deny with a specified HTTP response code, or redirect to a different endpoint. Valid
12819
- * options are "deny(status)", where valid values for status are 403, 404, 429, and 502, and "redirect" where the redirect parameters come from exceedRedirectOptions below.
12842
+ * options are `deny(STATUS)`, where valid values for `STATUS` are 403, 404, 429, and 502, and `redirect`, where the redirect parameters come from `exceedRedirectOptions` below.
12820
12843
  */
12821
12844
  exceedAction?: string;
12822
12845
  /** Specified gRPC response status for proxyless gRPC requests that are above the configured rate limit threshold */
@@ -15985,6 +16008,8 @@ declare namespace gapi.client {
15985
16008
  * used to determine the individual attack definition that has been detected. It could also be used to exclude it from the policy in case of false positive. required
15986
16009
  */
15987
16010
  id?: string;
16011
+ /** The sensitivity value associated with the WAF rule ID. This corresponds to the ModSecurity paranoia level, ranging from 1 to 4. 0 is reserved for opt-in only rules. */
16012
+ sensitivity?: number;
15988
16013
  }
15989
16014
  interface WeightedBackendService {
15990
16015
  /**
@@ -49316,6 +49341,88 @@ declare namespace gapi.client {
49316
49341
  body: TestPermissionsRequest): Request<TestPermissionsResponse>;
49317
49342
  }
49318
49343
  interface RegionNetworkEndpointGroupsResource {
49344
+ /** Attach a list of network endpoints to the specified network endpoint group. */
49345
+ attachNetworkEndpoints(request: {
49346
+ /** V1 error format. */
49347
+ "$.xgafv"?: string;
49348
+ /** OAuth access token. */
49349
+ access_token?: string;
49350
+ /** Data format for response. */
49351
+ alt?: string;
49352
+ /** JSONP */
49353
+ callback?: string;
49354
+ /** Selector specifying which fields to include in a partial response. */
49355
+ fields?: string;
49356
+ /** 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. */
49357
+ key?: string;
49358
+ /** The name of the network endpoint group where you are attaching network endpoints to. It should comply with RFC1035. */
49359
+ networkEndpointGroup: string;
49360
+ /** OAuth 2.0 token for the current user. */
49361
+ oauth_token?: string;
49362
+ /** Returns response with indentations and line breaks. */
49363
+ prettyPrint?: boolean;
49364
+ /** Project ID for this request. */
49365
+ project: string;
49366
+ /** 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. */
49367
+ quotaUser?: string;
49368
+ /** The name of the region where you want to create the network endpoint group. It should comply with RFC1035. */
49369
+ region: string;
49370
+ /**
49371
+ * 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
49372
+ * 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
49373
+ * 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
49374
+ * commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
49375
+ */
49376
+ requestId?: string;
49377
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
49378
+ upload_protocol?: string;
49379
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
49380
+ uploadType?: string;
49381
+ /** Legacy name for parameter that has been superseded by `quotaUser`. */
49382
+ userIp?: string;
49383
+ /** Request body */
49384
+ resource: RegionNetworkEndpointGroupsAttachEndpointsRequest;
49385
+ }): Request<Operation>;
49386
+ attachNetworkEndpoints(request: {
49387
+ /** V1 error format. */
49388
+ "$.xgafv"?: string;
49389
+ /** OAuth access token. */
49390
+ access_token?: string;
49391
+ /** Data format for response. */
49392
+ alt?: string;
49393
+ /** JSONP */
49394
+ callback?: string;
49395
+ /** Selector specifying which fields to include in a partial response. */
49396
+ fields?: string;
49397
+ /** 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. */
49398
+ key?: string;
49399
+ /** The name of the network endpoint group where you are attaching network endpoints to. It should comply with RFC1035. */
49400
+ networkEndpointGroup: string;
49401
+ /** OAuth 2.0 token for the current user. */
49402
+ oauth_token?: string;
49403
+ /** Returns response with indentations and line breaks. */
49404
+ prettyPrint?: boolean;
49405
+ /** Project ID for this request. */
49406
+ project: string;
49407
+ /** 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. */
49408
+ quotaUser?: string;
49409
+ /** The name of the region where you want to create the network endpoint group. It should comply with RFC1035. */
49410
+ region: string;
49411
+ /**
49412
+ * 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
49413
+ * 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
49414
+ * 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
49415
+ * commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
49416
+ */
49417
+ requestId?: string;
49418
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
49419
+ upload_protocol?: string;
49420
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
49421
+ uploadType?: string;
49422
+ /** Legacy name for parameter that has been superseded by `quotaUser`. */
49423
+ userIp?: string;
49424
+ },
49425
+ body: RegionNetworkEndpointGroupsAttachEndpointsRequest): Request<Operation>;
49319
49426
  /** Deletes the specified network endpoint group. Note that the NEG cannot be deleted if it is configured as a backend of a backend service. */
49320
49427
  delete(request?: {
49321
49428
  /** V1 error format. */
@@ -49356,6 +49463,90 @@ declare namespace gapi.client {
49356
49463
  /** Legacy name for parameter that has been superseded by `quotaUser`. */
49357
49464
  userIp?: string;
49358
49465
  }): Request<Operation>;
49466
+ /** Detach the network endpoint from the specified network endpoint group. */
49467
+ detachNetworkEndpoints(request: {
49468
+ /** V1 error format. */
49469
+ "$.xgafv"?: string;
49470
+ /** OAuth access token. */
49471
+ access_token?: string;
49472
+ /** Data format for response. */
49473
+ alt?: string;
49474
+ /** JSONP */
49475
+ callback?: string;
49476
+ /** Selector specifying which fields to include in a partial response. */
49477
+ fields?: string;
49478
+ /** 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. */
49479
+ key?: string;
49480
+ /** The name of the network endpoint group you are detaching network endpoints from. It should comply with RFC1035. */
49481
+ networkEndpointGroup: string;
49482
+ /** OAuth 2.0 token for the current user. */
49483
+ oauth_token?: string;
49484
+ /** Returns response with indentations and line breaks. */
49485
+ prettyPrint?: boolean;
49486
+ /** Project ID for this request. */
49487
+ project: string;
49488
+ /** 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. */
49489
+ quotaUser?: string;
49490
+ /** The name of the region where the network endpoint group is located. It should comply with RFC1035. */
49491
+ region: string;
49492
+ /**
49493
+ * 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
49494
+ * 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
49495
+ * 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
49496
+ * 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:
49497
+ * MixerMutationRequestBuilder
49498
+ */
49499
+ requestId?: string;
49500
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
49501
+ upload_protocol?: string;
49502
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
49503
+ uploadType?: string;
49504
+ /** Legacy name for parameter that has been superseded by `quotaUser`. */
49505
+ userIp?: string;
49506
+ /** Request body */
49507
+ resource: RegionNetworkEndpointGroupsDetachEndpointsRequest;
49508
+ }): Request<Operation>;
49509
+ detachNetworkEndpoints(request: {
49510
+ /** V1 error format. */
49511
+ "$.xgafv"?: string;
49512
+ /** OAuth access token. */
49513
+ access_token?: string;
49514
+ /** Data format for response. */
49515
+ alt?: string;
49516
+ /** JSONP */
49517
+ callback?: string;
49518
+ /** Selector specifying which fields to include in a partial response. */
49519
+ fields?: string;
49520
+ /** 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. */
49521
+ key?: string;
49522
+ /** The name of the network endpoint group you are detaching network endpoints from. It should comply with RFC1035. */
49523
+ networkEndpointGroup: string;
49524
+ /** OAuth 2.0 token for the current user. */
49525
+ oauth_token?: string;
49526
+ /** Returns response with indentations and line breaks. */
49527
+ prettyPrint?: boolean;
49528
+ /** Project ID for this request. */
49529
+ project: string;
49530
+ /** 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. */
49531
+ quotaUser?: string;
49532
+ /** The name of the region where the network endpoint group is located. It should comply with RFC1035. */
49533
+ region: string;
49534
+ /**
49535
+ * 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
49536
+ * 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
49537
+ * 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
49538
+ * 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:
49539
+ * MixerMutationRequestBuilder
49540
+ */
49541
+ requestId?: string;
49542
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
49543
+ upload_protocol?: string;
49544
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
49545
+ uploadType?: string;
49546
+ /** Legacy name for parameter that has been superseded by `quotaUser`. */
49547
+ userIp?: string;
49548
+ },
49549
+ body: RegionNetworkEndpointGroupsDetachEndpointsRequest): Request<Operation>;
49359
49550
  /** Returns the specified network endpoint group. Gets a list of available network endpoint groups by making a list() request. */
49360
49551
  get(request?: {
49361
49552
  /** V1 error format. */
@@ -49529,6 +49720,70 @@ declare namespace gapi.client {
49529
49720
  /** Legacy name for parameter that has been superseded by `quotaUser`. */
49530
49721
  userIp?: string;
49531
49722
  }): Request<NetworkEndpointGroupList>;
49723
+ /** Lists the network endpoints in the specified network endpoint group. */
49724
+ listNetworkEndpoints(request?: {
49725
+ /** V1 error format. */
49726
+ "$.xgafv"?: string;
49727
+ /** OAuth access token. */
49728
+ access_token?: string;
49729
+ /** Data format for response. */
49730
+ alt?: string;
49731
+ /** JSONP */
49732
+ callback?: string;
49733
+ /** Selector specifying which fields to include in a partial response. */
49734
+ fields?: string;
49735
+ /**
49736
+ * A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions
49737
+ * 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
49738
+ * to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering
49739
+ * Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match
49740
+ * substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects
49741
+ * with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only
49742
+ * if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each
49743
+ * separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
49744
+ * expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND
49745
+ * (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
49746
+ * with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double
49747
+ * 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
49748
+ * must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`.
49749
+ */
49750
+ filter?: string;
49751
+ /** 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. */
49752
+ key?: string;
49753
+ /**
49754
+ * The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can
49755
+ * be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
49756
+ */
49757
+ maxResults?: number;
49758
+ /** The name of the network endpoint group from which you want to generate a list of included network endpoints. It should comply with RFC1035. */
49759
+ networkEndpointGroup: string;
49760
+ /** OAuth 2.0 token for the current user. */
49761
+ oauth_token?: string;
49762
+ /**
49763
+ * 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
49764
+ * on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result
49765
+ * 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.
49766
+ */
49767
+ orderBy?: string;
49768
+ /** Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results. */
49769
+ pageToken?: string;
49770
+ /** Returns response with indentations and line breaks. */
49771
+ prettyPrint?: boolean;
49772
+ /** Project ID for this request. */
49773
+ project: string;
49774
+ /** 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. */
49775
+ quotaUser?: string;
49776
+ /** The name of the region where the network endpoint group is located. It should comply with RFC1035. */
49777
+ region: string;
49778
+ /** Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. */
49779
+ returnPartialSuccess?: boolean;
49780
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
49781
+ upload_protocol?: string;
49782
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
49783
+ uploadType?: string;
49784
+ /** Legacy name for parameter that has been superseded by `quotaUser`. */
49785
+ userIp?: string;
49786
+ }): Request<NetworkEndpointGroupsListNetworkEndpoints>;
49532
49787
  }
49533
49788
  interface RegionNetworkFirewallPoliciesResource {
49534
49789
  /** Inserts an association for the specified network firewall policy. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.compute-alpha",
3
- "version": "0.0.20230103",
3
+ "version": "0.0.20230119",
4
4
  "description": "TypeScript typings for Compute Engine API alpha",
5
5
  "license": "MIT",
6
6
  "author": {
package/readme.md CHANGED
@@ -2951,11 +2951,21 @@ Returns permissions that a caller has on the specified resource.
2951
2951
  */
2952
2952
  await gapi.client.compute.regionInstantSnapshots.testIamPermissions({ project: "project", region: "region", resource: "resource", });
2953
2953
 
2954
+ /*
2955
+ Attach a list of network endpoints to the specified network endpoint group.
2956
+ */
2957
+ await gapi.client.compute.regionNetworkEndpointGroups.attachNetworkEndpoints({ networkEndpointGroup: "networkEndpointGroup", project: "project", region: "region", });
2958
+
2954
2959
  /*
2955
2960
  Deletes the specified network endpoint group. Note that the NEG cannot be deleted if it is configured as a backend of a backend service.
2956
2961
  */
2957
2962
  await gapi.client.compute.regionNetworkEndpointGroups.delete({ networkEndpointGroup: "networkEndpointGroup", project: "project", region: "region", });
2958
2963
 
2964
+ /*
2965
+ Detach the network endpoint from the specified network endpoint group.
2966
+ */
2967
+ await gapi.client.compute.regionNetworkEndpointGroups.detachNetworkEndpoints({ networkEndpointGroup: "networkEndpointGroup", project: "project", region: "region", });
2968
+
2959
2969
  /*
2960
2970
  Returns the specified network endpoint group. Gets a list of available network endpoint groups by making a list() request.
2961
2971
  */
@@ -2971,6 +2981,11 @@ Retrieves the list of regional network endpoint groups available to the specifie
2971
2981
  */
2972
2982
  await gapi.client.compute.regionNetworkEndpointGroups.list({ project: "project", region: "region", });
2973
2983
 
2984
+ /*
2985
+ Lists the network endpoints in the specified network endpoint group.
2986
+ */
2987
+ await gapi.client.compute.regionNetworkEndpointGroups.listNetworkEndpoints({ networkEndpointGroup: "networkEndpointGroup", project: "project", region: "region", });
2988
+
2974
2989
  /*
2975
2990
  Inserts an association for the specified network firewall policy.
2976
2991
  */
package/tests.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
4
4
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
5
5
 
6
- // Revision: 20230103
6
+ // Revision: 20230119
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -948,6 +948,7 @@ gapi.load('client', async () => {
948
948
  oauth2ClientSecretSha256: "Test string",
949
949
  },
950
950
  id: "Test string",
951
+ ipAddressSelectionPolicy: "Test string",
951
952
  kind: "Test string",
952
953
  loadBalancingScheme: "Test string",
953
954
  localityLbPolicies: [
@@ -1382,6 +1383,7 @@ gapi.load('client', async () => {
1382
1383
  oauth2ClientSecretSha256: "Test string",
1383
1384
  },
1384
1385
  id: "Test string",
1386
+ ipAddressSelectionPolicy: "Test string",
1385
1387
  kind: "Test string",
1386
1388
  loadBalancingScheme: "Test string",
1387
1389
  localityLbPolicies: [
@@ -1936,6 +1938,7 @@ gapi.load('client', async () => {
1936
1938
  oauth2ClientSecretSha256: "Test string",
1937
1939
  },
1938
1940
  id: "Test string",
1941
+ ipAddressSelectionPolicy: "Test string",
1939
1942
  kind: "Test string",
1940
1943
  loadBalancingScheme: "Test string",
1941
1944
  localityLbPolicies: [
@@ -14778,6 +14781,7 @@ gapi.load('client', async () => {
14778
14781
  oauth2ClientSecretSha256: "Test string",
14779
14782
  },
14780
14783
  id: "Test string",
14784
+ ipAddressSelectionPolicy: "Test string",
14781
14785
  kind: "Test string",
14782
14786
  loadBalancingScheme: "Test string",
14783
14787
  localityLbPolicies: [
@@ -15214,6 +15218,7 @@ gapi.load('client', async () => {
15214
15218
  oauth2ClientSecretSha256: "Test string",
15215
15219
  },
15216
15220
  id: "Test string",
15221
+ ipAddressSelectionPolicy: "Test string",
15217
15222
  kind: "Test string",
15218
15223
  loadBalancingScheme: "Test string",
15219
15224
  localityLbPolicies: [
@@ -15764,6 +15769,7 @@ gapi.load('client', async () => {
15764
15769
  oauth2ClientSecretSha256: "Test string",
15765
15770
  },
15766
15771
  id: "Test string",
15772
+ ipAddressSelectionPolicy: "Test string",
15767
15773
  kind: "Test string",
15768
15774
  loadBalancingScheme: "Test string",
15769
15775
  localityLbPolicies: [
@@ -19651,6 +19657,25 @@ gapi.load('client', async () => {
19651
19657
  "Test string"
19652
19658
  ],
19653
19659
  });
19660
+ /** Attach a list of network endpoints to the specified network endpoint group. */
19661
+ await gapi.client.compute.regionNetworkEndpointGroups.attachNetworkEndpoints({
19662
+ networkEndpointGroup: "Test string",
19663
+ project: "Test string",
19664
+ region: "Test string",
19665
+ requestId: "Test string",
19666
+ }, {
19667
+ networkEndpoints: [
19668
+ {
19669
+ annotations: {
19670
+ A: "Test string"
19671
+ },
19672
+ fqdn: "Test string",
19673
+ instance: "Test string",
19674
+ ipAddress: "Test string",
19675
+ port: 42,
19676
+ }
19677
+ ],
19678
+ });
19654
19679
  /** Deletes the specified network endpoint group. Note that the NEG cannot be deleted if it is configured as a backend of a backend service. */
19655
19680
  await gapi.client.compute.regionNetworkEndpointGroups.delete({
19656
19681
  networkEndpointGroup: "Test string",
@@ -19658,6 +19683,25 @@ gapi.load('client', async () => {
19658
19683
  region: "Test string",
19659
19684
  requestId: "Test string",
19660
19685
  });
19686
+ /** Detach the network endpoint from the specified network endpoint group. */
19687
+ await gapi.client.compute.regionNetworkEndpointGroups.detachNetworkEndpoints({
19688
+ networkEndpointGroup: "Test string",
19689
+ project: "Test string",
19690
+ region: "Test string",
19691
+ requestId: "Test string",
19692
+ }, {
19693
+ networkEndpoints: [
19694
+ {
19695
+ annotations: {
19696
+ A: "Test string"
19697
+ },
19698
+ fqdn: "Test string",
19699
+ instance: "Test string",
19700
+ ipAddress: "Test string",
19701
+ port: 42,
19702
+ }
19703
+ ],
19704
+ });
19661
19705
  /** Returns the specified network endpoint group. Gets a list of available network endpoint groups by making a list() request. */
19662
19706
  await gapi.client.compute.regionNetworkEndpointGroups.get({
19663
19707
  networkEndpointGroup: "Test string",
@@ -19731,6 +19775,17 @@ gapi.load('client', async () => {
19731
19775
  region: "Test string",
19732
19776
  returnPartialSuccess: true,
19733
19777
  });
19778
+ /** Lists the network endpoints in the specified network endpoint group. */
19779
+ await gapi.client.compute.regionNetworkEndpointGroups.listNetworkEndpoints({
19780
+ filter: "Test string",
19781
+ maxResults: 42,
19782
+ networkEndpointGroup: "Test string",
19783
+ orderBy: "Test string",
19784
+ pageToken: "Test string",
19785
+ project: "Test string",
19786
+ region: "Test string",
19787
+ returnPartialSuccess: true,
19788
+ });
19734
19789
  /** Inserts an association for the specified network firewall policy. */
19735
19790
  await gapi.client.compute.regionNetworkFirewallPolicies.addAssociation({
19736
19791
  firewallPolicy: "Test string",