@maxim_mazurok/gapi.client.compute-alpha 0.0.20221224 → 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 +279 -20
  2. package/package.json +1 -1
  3. package/readme.md +15 -0
  4. package/tests.ts +82 -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: 20221224
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). */
@@ -8591,6 +8606,8 @@ declare namespace gapi.client {
8591
8606
  networkIP?: string;
8592
8607
  /** The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet. */
8593
8608
  nicType?: string;
8609
+ /** Name of the parent network interface of a VLAN based nic. If this field is specified, vlan must be set. */
8610
+ parentNicName?: string;
8594
8611
  /** The networking queue count that's specified by users for the network interface. Both Rx and Tx queues will be set to this number. It'll be empty if not specified by the users. */
8595
8612
  queueCount?: number;
8596
8613
  /**
@@ -8610,6 +8627,8 @@ declare namespace gapi.client {
8610
8627
  * regions/region/subnetworks/subnetwork
8611
8628
  */
8612
8629
  subnetwork?: string;
8630
+ /** VLAN tag of a VLAN based network interface, must be in range from 2 to 4094 inclusively. This field is mandatory if the parent network interface name is set. */
8631
+ vlan?: number;
8613
8632
  }
8614
8633
  interface NetworkInterfaceSubInterface {
8615
8634
  /** An IPv4 internal IP address to assign to the instance for this subinterface. If specified, ip_allocation_mode should be set to ALLOCATE_IP. */
@@ -11033,6 +11052,14 @@ declare namespace gapi.client {
11033
11052
  message?: string;
11034
11053
  };
11035
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
+ }
11036
11063
  interface RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse {
11037
11064
  /** Effective firewalls from firewall policy. */
11038
11065
  firewallPolicys?: RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewallPolicy[];
@@ -12590,11 +12617,11 @@ declare namespace gapi.client {
12590
12617
  }
12591
12618
  interface SecurityPolicyRule {
12592
12619
  /**
12593
- * 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
12594
- * 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
12595
- * 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,
12596
- * 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.
12597
- * 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.
12598
12625
  */
12599
12626
  action?: string;
12600
12627
  /** An optional description of this resource. Provide this property when you create the resource. */
@@ -12812,7 +12839,7 @@ declare namespace gapi.client {
12812
12839
  enforceOnKeyName?: string;
12813
12840
  /**
12814
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
12815
- * 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.
12816
12843
  */
12817
12844
  exceedAction?: string;
12818
12845
  /** Specified gRPC response status for proxyless gRPC requests that are above the configured rate limit threshold */
@@ -13358,8 +13385,8 @@ declare namespace gapi.client {
13358
13385
  }
13359
13386
  interface SourceInstanceParams {
13360
13387
  /**
13361
- * Attached disks configuration. If not provided, defaults are applied: For boot disk and any other R/W disks, new custom images will be created from each disk. For read-only disks,
13362
- * they will be attached in read-only mode. Local SSD disks will be created as blank volumes.
13388
+ * Attached disks configuration. If not provided, defaults are applied: For boot disk and any other R/W disks, the source images for each disk will be used. For read-only disks, they
13389
+ * will be attached in read-only mode. Local SSD disks will be created as blank volumes.
13363
13390
  */
13364
13391
  diskConfigs?: DiskInstantiationConfig[];
13365
13392
  }
@@ -15981,6 +16008,8 @@ declare namespace gapi.client {
15981
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
15982
16009
  */
15983
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;
15984
16013
  }
15985
16014
  interface WeightedBackendService {
15986
16015
  /**
@@ -49312,6 +49341,88 @@ declare namespace gapi.client {
49312
49341
  body: TestPermissionsRequest): Request<TestPermissionsResponse>;
49313
49342
  }
49314
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>;
49315
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. */
49316
49427
  delete(request?: {
49317
49428
  /** V1 error format. */
@@ -49352,6 +49463,90 @@ declare namespace gapi.client {
49352
49463
  /** Legacy name for parameter that has been superseded by `quotaUser`. */
49353
49464
  userIp?: string;
49354
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>;
49355
49550
  /** Returns the specified network endpoint group. Gets a list of available network endpoint groups by making a list() request. */
49356
49551
  get(request?: {
49357
49552
  /** V1 error format. */
@@ -49525,6 +49720,70 @@ declare namespace gapi.client {
49525
49720
  /** Legacy name for parameter that has been superseded by `quotaUser`. */
49526
49721
  userIp?: string;
49527
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>;
49528
49787
  }
49529
49788
  interface RegionNetworkFirewallPoliciesResource {
49530
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.20221224",
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: 20221224
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: [
@@ -7037,6 +7040,7 @@ gapi.load('client', async () => {
7037
7040
  networkAttachment: "Test string",
7038
7041
  networkIP: "Test string",
7039
7042
  nicType: "Test string",
7043
+ parentNicName: "Test string",
7040
7044
  queueCount: 42,
7041
7045
  stackType: "Test string",
7042
7046
  subinterfaces: [
@@ -7048,6 +7052,7 @@ gapi.load('client', async () => {
7048
7052
  }
7049
7053
  ],
7050
7054
  subnetwork: "Test string",
7055
+ vlan: 42,
7051
7056
  }
7052
7057
  ],
7053
7058
  networkPerformanceConfig: {
@@ -7388,6 +7393,7 @@ gapi.load('client', async () => {
7388
7393
  networkAttachment: "Test string",
7389
7394
  networkIP: "Test string",
7390
7395
  nicType: "Test string",
7396
+ parentNicName: "Test string",
7391
7397
  queueCount: 42,
7392
7398
  stackType: "Test string",
7393
7399
  subinterfaces: [
@@ -7399,6 +7405,7 @@ gapi.load('client', async () => {
7399
7405
  }
7400
7406
  ],
7401
7407
  subnetwork: "Test string",
7408
+ vlan: 42,
7402
7409
  }
7403
7410
  ],
7404
7411
  networkPerformanceConfig: {
@@ -7815,6 +7822,7 @@ gapi.load('client', async () => {
7815
7822
  networkAttachment: "Test string",
7816
7823
  networkIP: "Test string",
7817
7824
  nicType: "Test string",
7825
+ parentNicName: "Test string",
7818
7826
  queueCount: 42,
7819
7827
  stackType: "Test string",
7820
7828
  subinterfaces: [
@@ -7826,6 +7834,7 @@ gapi.load('client', async () => {
7826
7834
  }
7827
7835
  ],
7828
7836
  subnetwork: "Test string",
7837
+ vlan: 42,
7829
7838
  }
7830
7839
  ],
7831
7840
  networkPerformanceConfig: {
@@ -8638,6 +8647,7 @@ gapi.load('client', async () => {
8638
8647
  networkAttachment: "Test string",
8639
8648
  networkIP: "Test string",
8640
8649
  nicType: "Test string",
8650
+ parentNicName: "Test string",
8641
8651
  queueCount: 42,
8642
8652
  stackType: "Test string",
8643
8653
  subinterfaces: [
@@ -8649,6 +8659,7 @@ gapi.load('client', async () => {
8649
8659
  }
8650
8660
  ],
8651
8661
  subnetwork: "Test string",
8662
+ vlan: 42,
8652
8663
  }
8653
8664
  ],
8654
8665
  networkPerformanceConfig: {
@@ -8882,6 +8893,7 @@ gapi.load('client', async () => {
8882
8893
  networkAttachment: "Test string",
8883
8894
  networkIP: "Test string",
8884
8895
  nicType: "Test string",
8896
+ parentNicName: "Test string",
8885
8897
  queueCount: 42,
8886
8898
  stackType: "Test string",
8887
8899
  subinterfaces: [
@@ -8893,6 +8905,7 @@ gapi.load('client', async () => {
8893
8905
  }
8894
8906
  ],
8895
8907
  subnetwork: "Test string",
8908
+ vlan: 42,
8896
8909
  });
8897
8910
  /**
8898
8911
  * Updates the Shielded Instance config for an instance. You can only use this method on a stopped instance. This method supports PATCH semantics and uses the JSON merge patch format and
@@ -9167,6 +9180,7 @@ gapi.load('client', async () => {
9167
9180
  networkAttachment: "Test string",
9168
9181
  networkIP: "Test string",
9169
9182
  nicType: "Test string",
9183
+ parentNicName: "Test string",
9170
9184
  queueCount: 42,
9171
9185
  stackType: "Test string",
9172
9186
  subinterfaces: [
@@ -9178,6 +9192,7 @@ gapi.load('client', async () => {
9178
9192
  }
9179
9193
  ],
9180
9194
  subnetwork: "Test string",
9195
+ vlan: 42,
9181
9196
  }
9182
9197
  ],
9183
9198
  networkPerformanceConfig: {
@@ -10822,6 +10837,7 @@ gapi.load('client', async () => {
10822
10837
  networkAttachment: "Test string",
10823
10838
  networkIP: "Test string",
10824
10839
  nicType: "Test string",
10840
+ parentNicName: "Test string",
10825
10841
  queueCount: 42,
10826
10842
  stackType: "Test string",
10827
10843
  subinterfaces: [
@@ -10833,6 +10849,7 @@ gapi.load('client', async () => {
10833
10849
  }
10834
10850
  ],
10835
10851
  subnetwork: "Test string",
10852
+ vlan: 42,
10836
10853
  }
10837
10854
  ],
10838
10855
  networkPerformanceConfig: {
@@ -11061,6 +11078,7 @@ gapi.load('client', async () => {
11061
11078
  networkAttachment: "Test string",
11062
11079
  networkIP: "Test string",
11063
11080
  nicType: "Test string",
11081
+ parentNicName: "Test string",
11064
11082
  queueCount: 42,
11065
11083
  stackType: "Test string",
11066
11084
  subinterfaces: [
@@ -11072,6 +11090,7 @@ gapi.load('client', async () => {
11072
11090
  }
11073
11091
  ],
11074
11092
  subnetwork: "Test string",
11093
+ vlan: 42,
11075
11094
  }
11076
11095
  ],
11077
11096
  postKeyRevocationActionType: "Test string",
@@ -14762,6 +14781,7 @@ gapi.load('client', async () => {
14762
14781
  oauth2ClientSecretSha256: "Test string",
14763
14782
  },
14764
14783
  id: "Test string",
14784
+ ipAddressSelectionPolicy: "Test string",
14765
14785
  kind: "Test string",
14766
14786
  loadBalancingScheme: "Test string",
14767
14787
  localityLbPolicies: [
@@ -15198,6 +15218,7 @@ gapi.load('client', async () => {
15198
15218
  oauth2ClientSecretSha256: "Test string",
15199
15219
  },
15200
15220
  id: "Test string",
15221
+ ipAddressSelectionPolicy: "Test string",
15201
15222
  kind: "Test string",
15202
15223
  loadBalancingScheme: "Test string",
15203
15224
  localityLbPolicies: [
@@ -15748,6 +15769,7 @@ gapi.load('client', async () => {
15748
15769
  oauth2ClientSecretSha256: "Test string",
15749
15770
  },
15750
15771
  id: "Test string",
15772
+ ipAddressSelectionPolicy: "Test string",
15751
15773
  kind: "Test string",
15752
15774
  loadBalancingScheme: "Test string",
15753
15775
  localityLbPolicies: [
@@ -18595,6 +18617,7 @@ gapi.load('client', async () => {
18595
18617
  networkAttachment: "Test string",
18596
18618
  networkIP: "Test string",
18597
18619
  nicType: "Test string",
18620
+ parentNicName: "Test string",
18598
18621
  queueCount: 42,
18599
18622
  stackType: "Test string",
18600
18623
  subinterfaces: [
@@ -18606,6 +18629,7 @@ gapi.load('client', async () => {
18606
18629
  }
18607
18630
  ],
18608
18631
  subnetwork: "Test string",
18632
+ vlan: 42,
18609
18633
  }
18610
18634
  ],
18611
18635
  networkPerformanceConfig: {
@@ -18946,6 +18970,7 @@ gapi.load('client', async () => {
18946
18970
  networkAttachment: "Test string",
18947
18971
  networkIP: "Test string",
18948
18972
  nicType: "Test string",
18973
+ parentNicName: "Test string",
18949
18974
  queueCount: 42,
18950
18975
  stackType: "Test string",
18951
18976
  subinterfaces: [
@@ -18957,6 +18982,7 @@ gapi.load('client', async () => {
18957
18982
  }
18958
18983
  ],
18959
18984
  subnetwork: "Test string",
18985
+ vlan: 42,
18960
18986
  }
18961
18987
  ],
18962
18988
  networkPerformanceConfig: {
@@ -19292,6 +19318,7 @@ gapi.load('client', async () => {
19292
19318
  networkAttachment: "Test string",
19293
19319
  networkIP: "Test string",
19294
19320
  nicType: "Test string",
19321
+ parentNicName: "Test string",
19295
19322
  queueCount: 42,
19296
19323
  stackType: "Test string",
19297
19324
  subinterfaces: [
@@ -19303,6 +19330,7 @@ gapi.load('client', async () => {
19303
19330
  }
19304
19331
  ],
19305
19332
  subnetwork: "Test string",
19333
+ vlan: 42,
19306
19334
  }
19307
19335
  ],
19308
19336
  networkPerformanceConfig: {
@@ -19629,6 +19657,25 @@ gapi.load('client', async () => {
19629
19657
  "Test string"
19630
19658
  ],
19631
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
+ });
19632
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. */
19633
19680
  await gapi.client.compute.regionNetworkEndpointGroups.delete({
19634
19681
  networkEndpointGroup: "Test string",
@@ -19636,6 +19683,25 @@ gapi.load('client', async () => {
19636
19683
  region: "Test string",
19637
19684
  requestId: "Test string",
19638
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
+ });
19639
19705
  /** Returns the specified network endpoint group. Gets a list of available network endpoint groups by making a list() request. */
19640
19706
  await gapi.client.compute.regionNetworkEndpointGroups.get({
19641
19707
  networkEndpointGroup: "Test string",
@@ -19709,6 +19775,17 @@ gapi.load('client', async () => {
19709
19775
  region: "Test string",
19710
19776
  returnPartialSuccess: true,
19711
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
+ });
19712
19789
  /** Inserts an association for the specified network firewall policy. */
19713
19790
  await gapi.client.compute.regionNetworkFirewallPolicies.addAssociation({
19714
19791
  firewallPolicy: "Test string",
@@ -31461,6 +31538,7 @@ gapi.load('client', async () => {
31461
31538
  networkAttachment: "Test string",
31462
31539
  networkIP: "Test string",
31463
31540
  nicType: "Test string",
31541
+ parentNicName: "Test string",
31464
31542
  queueCount: 42,
31465
31543
  stackType: "Test string",
31466
31544
  subinterfaces: [
@@ -31472,6 +31550,7 @@ gapi.load('client', async () => {
31472
31550
  }
31473
31551
  ],
31474
31552
  subnetwork: "Test string",
31553
+ vlan: 42,
31475
31554
  }
31476
31555
  ],
31477
31556
  networkPerformanceConfig: {
@@ -31812,6 +31891,7 @@ gapi.load('client', async () => {
31812
31891
  networkAttachment: "Test string",
31813
31892
  networkIP: "Test string",
31814
31893
  nicType: "Test string",
31894
+ parentNicName: "Test string",
31815
31895
  queueCount: 42,
31816
31896
  stackType: "Test string",
31817
31897
  subinterfaces: [
@@ -31823,6 +31903,7 @@ gapi.load('client', async () => {
31823
31903
  }
31824
31904
  ],
31825
31905
  subnetwork: "Test string",
31906
+ vlan: 42,
31826
31907
  }
31827
31908
  ],
31828
31909
  networkPerformanceConfig: {