@maxim_mazurok/gapi.client.compute-alpha 0.0.20230606 → 0.0.20230620

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 (3) hide show
  1. package/index.d.ts +61 -22
  2. package/package.json +1 -1
  3. package/tests.ts +49 -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: 20230606
12
+ // Revision: 20230620
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -268,7 +268,7 @@ declare namespace gapi.client {
268
268
  */
269
269
  ipv6EndpointType?:
270
270
  string;
271
- /** 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. */
271
+ /** The IP version that will be used by this address. Valid options are IPV4 or IPV6. */
272
272
  ipVersion?:
273
273
  string;
274
274
  /** [Output Only] Type of the resource. Always compute#address for addresses. */
@@ -1723,8 +1723,8 @@ declare namespace gapi.client {
1723
1723
  serviceBindings?:
1724
1724
  string[];
1725
1725
  /**
1726
- * URL to networkservices.ServiceLbPolicy resource. Can only be set if load balancing scheme is EXTERNAL, INTERNAL_MANAGED or INTERNAL_SELF_MANAGED. If used with a backend service,
1727
- * must reference a global policy. If used with a regional backend service, must reference a regional policy.
1726
+ * URL to networkservices.ServiceLbPolicy resource. Can only be set if load balancing scheme is EXTERNAL, EXTERNAL_MANAGED, INTERNAL_MANAGED or INTERNAL_SELF_MANAGED and the scope is
1727
+ * global.
1728
1728
  */
1729
1729
  serviceLbPolicy?:
1730
1730
  string;
@@ -4307,8 +4307,9 @@ declare namespace gapi.client {
4307
4307
  }
4308
4308
  interface ForwardingRule {
4309
4309
  /**
4310
- * This field is used along with the backend_service field for internal load balancing or with the target field for internal TargetInstance. If the field is set to TRUE, clients can
4311
- * access ILB from all regions. Otherwise only allows access from clients in the same region as the internal load balancer.
4310
+ * This field is used along with the backend_service field for internal load balancing or with the target field for internal TargetInstance. If set to true, clients can access the
4311
+ * Internal TCP/UDP Load Balancer, Internal HTTP(S) and TCP Proxy Load Balancer from all regions. If false, only allows access from the local region the load balancer is located at.
4312
+ * Note that for INTERNAL_MANAGED forwarding rules, this field cannot be changed after the forwarding rule is created.
4312
4313
  */
4313
4314
  allowGlobalAccess?:
4314
4315
  boolean;
@@ -4643,6 +4644,22 @@ declare namespace gapi.client {
4643
4644
  };
4644
4645
  }
4645
4646
  interface FutureReservation {
4647
+ /** Future timestamp when the FR auto-created reservations will be deleted by GCE. Format of this field must be a valid href="https://www.ietf.org/rfc/rfc3339.txt">RFC3339 value. */
4648
+ autoCreatedReservationsDeleteTime?:
4649
+ string;
4650
+ /**
4651
+ * Specifies the duration of auto-created reservations. It represents relative time to future reservation start_time when auto-created reservations will be automatically deleted by
4652
+ * GCE. Duration time unit is represented as a count of seconds and fractions of seconds at nanosecond resolution.
4653
+ */
4654
+ autoCreatedReservationsDuration?:
4655
+ Duration;
4656
+ /**
4657
+ * Setting for enabling or disabling automatic deletion for auto-created reservation. If omitted or set to true, auto-created reservations will be deleted at Future Reservation's end
4658
+ * time (default) or at user's defined timestamp if any of the [auto_created_reservations_delete_time, auto_created_reservations_duration] values is specified. For keeping auto-created
4659
+ * reservation indefinitely, this value should be set to false.
4660
+ */
4661
+ autoDeleteAutoCreatedReservations?:
4662
+ boolean;
4646
4663
  /** [Output Only] The creation timestamp for this future reservation in RFC3339 text format. */
4647
4664
  creationTimestamp?:
4648
4665
  string;
@@ -7037,6 +7054,12 @@ declare namespace gapi.client {
7037
7054
  */
7038
7055
  creatingAtomically?:
7039
7056
  number;
7057
+ /**
7058
+ * [Output Only] The number of instances that the managed instance group will attempt to create in bulk. If the desired count of instances cannot be created, entire batch will be
7059
+ * deleted and the group will decrease its targetSize value accordingly.
7060
+ */
7061
+ creatingInBulk?:
7062
+ number;
7040
7063
  /**
7041
7064
  * [Output Only] The number of instances that the managed instance group will attempt to create. The group attempts to create each instance only once. If the group fails to create any
7042
7065
  * of these instances, it decreases the group's targetSize value accordingly.
@@ -7192,7 +7215,11 @@ declare namespace gapi.client {
7192
7215
  number;
7193
7216
  }
7194
7217
  interface InstanceGroupManagerInstanceLifecyclePolicy {
7195
- /** Defines behaviour for all instance or failures */
7218
+ /**
7219
+ * The action that a MIG performs on a failed or an unhealthy VM. A VM is marked as unhealthy when the application running on that VM fails a health check. Valid values are - REPAIR
7220
+ * (default): MIG automatically repairs a failed or an unhealthy VM by recreating it. For more information, see About repairing VMs in a MIG. - DO_NOTHING: MIG does not repair a failed
7221
+ * or an unhealthy VM.
7222
+ */
7196
7223
  defaultActionOnFailure?:
7197
7224
  string;
7198
7225
  /**
@@ -7399,15 +7426,15 @@ declare namespace gapi.client {
7399
7426
  string;
7400
7427
  /**
7401
7428
  * The minimal action that you want to perform on each instance during the update: - REPLACE: At minimum, delete the instance and create it again. - RESTART: Stop the instance and
7402
- * start it again. - REFRESH: Do not stop the instance. - NONE: Do not disrupt the instance at all. By default, the minimum action is NONE. If your update requires a more disruptive
7403
- * action than you set with this flag, the necessary action is performed to execute the update.
7429
+ * start it again. - REFRESH: Do not stop the instance and limit disruption as much as possible. - NONE: Do not disrupt the instance at all. By default, the minimum action is NONE. If
7430
+ * your update requires a more disruptive action than you set with this flag, the necessary action is performed to execute the update.
7404
7431
  */
7405
7432
  minimalAction?:
7406
7433
  string;
7407
7434
  /**
7408
7435
  * The most disruptive action that you want to perform on each instance during the update: - REPLACE: Delete the instance and create it again. - RESTART: Stop the instance and start it
7409
- * again. - REFRESH: Do not stop the instance. - NONE: Do not disrupt the instance at all. By default, the most disruptive allowed action is REPLACE. If your update requires a more
7410
- * disruptive action than you set with this flag, the update request will fail.
7436
+ * again. - REFRESH: Do not stop the instance and limit disruption as much as possible. - NONE: Do not disrupt the instance at all. By default, the most disruptive allowed action is
7437
+ * REPLACE. If your update requires a more disruptive action than you set with this flag, the update request will fail.
7411
7438
  */
7412
7439
  mostDisruptiveAllowedAction?:
7413
7440
  string;
@@ -7418,6 +7445,9 @@ declare namespace gapi.client {
7418
7445
  PerInstanceConfig[];
7419
7446
  }
7420
7447
  interface InstanceGroupManagersDeleteInstancesRequest {
7448
+ /** The list of instance names to delete. Queued instances do not have URL and can be deleted only by name. You cannot specify both URLs and names in a single request. */
7449
+ instanceNames?:
7450
+ string[];
7421
7451
  /**
7422
7452
  * The URLs of one or more instances to delete. This can be a full URL or a partial URL, such as zones/[ZONE]/instances/[INSTANCE_NAME]. Queued instances do not have URL and can be
7423
7453
  * deleted only by name. One cannot specify both URLs and names in a single request.
@@ -7712,9 +7742,9 @@ declare namespace gapi.client {
7712
7742
  minReadySec?:
7713
7743
  number;
7714
7744
  /**
7715
- * Most disruptive action that is allowed to be taken on an instance. You can specify either NONE to forbid any actions, REFRESH to allow actions that do not need instance restart,
7716
- * RESTART to allow actions that can be applied without instance replacing or REPLACE to allow all possible actions. If the Updater determines that the minimal update action needed is
7717
- * more disruptive than most disruptive allowed action you specify it will not perform the update at all.
7745
+ * Most disruptive action that is allowed to be taken on an instance. You can specify either NONE to forbid any actions, REFRESH to avoid restarting the VM and to limit disruption as
7746
+ * much as possible. RESTART to allow actions that can be applied without instance replacing or REPLACE to allow all possible actions. If the Updater determines that the minimal update
7747
+ * action needed is more disruptive than most disruptive allowed action you specify it will not perform the update at all.
7718
7748
  */
7719
7749
  mostDisruptiveAllowedAction?:
7720
7750
  string;
@@ -13517,7 +13547,7 @@ declare namespace gapi.client {
13517
13547
  /** An optional description of this resource. Provide this property when you create the resource. */
13518
13548
  description?:
13519
13549
  string;
13520
- /** The IPv4 address to be used for reverse DNS verification. */
13550
+ /** The address to be used for reverse DNS verification. */
13521
13551
  dnsVerificationIp?:
13522
13552
  string;
13523
13553
  /**
@@ -13530,7 +13560,7 @@ declare namespace gapi.client {
13530
13560
  /** [Output Only] The unique identifier for the resource type. The server generates this identifier. */
13531
13561
  id?:
13532
13562
  string;
13533
- /** The IPv4 address range, in CIDR format, represented by this public advertised prefix. */
13563
+ /** The address range, in CIDR format, represented by this public advertised prefix. */
13534
13564
  ipCidrRange?:
13535
13565
  string;
13536
13566
  /** [Output Only] Type of the resource. Always compute#publicAdvertisedPrefix for public advertised prefixes. */
@@ -13651,7 +13681,7 @@ declare namespace gapi.client {
13651
13681
  /** [Output Only] The unique identifier for the resource type. The server generates this identifier. */
13652
13682
  id?:
13653
13683
  string;
13654
- /** The IPv4 address range, in CIDR format, represented by this public delegated prefix. */
13684
+ /** The IP address range, in CIDR format, represented by this public delegated prefix. */
13655
13685
  ipCidrRange?:
13656
13686
  string;
13657
13687
  /** If true, the prefix will be live migrated. */
@@ -13820,7 +13850,7 @@ declare namespace gapi.client {
13820
13850
  /** An optional description of this resource. Provide this property when you create the resource. */
13821
13851
  description?:
13822
13852
  string;
13823
- /** The IPv4 address range, in CIDR format, represented by this sub public delegated prefix. */
13853
+ /** The IP address range, in CIDR format, represented by this sub public delegated prefix. */
13824
13854
  ipCidrRange?:
13825
13855
  string;
13826
13856
  /** Whether the sub prefix is delegated to create Address resources in the delegatee project. */
@@ -14401,15 +14431,15 @@ declare namespace gapi.client {
14401
14431
  string;
14402
14432
  /**
14403
14433
  * The minimal action that you want to perform on each instance during the update: - REPLACE: At minimum, delete the instance and create it again. - RESTART: Stop the instance and
14404
- * start it again. - REFRESH: Do not stop the instance. - NONE: Do not disrupt the instance at all. By default, the minimum action is NONE. If your update requires a more disruptive
14405
- * action than you set with this flag, the necessary action is performed to execute the update.
14434
+ * start it again. - REFRESH: Do not stop the instance and limit disruption as much as possible. - NONE: Do not disrupt the instance at all. By default, the minimum action is NONE. If
14435
+ * your update requires a more disruptive action than you set with this flag, the necessary action is performed to execute the update.
14406
14436
  */
14407
14437
  minimalAction?:
14408
14438
  string;
14409
14439
  /**
14410
14440
  * The most disruptive action that you want to perform on each instance during the update: - REPLACE: Delete the instance and create it again. - RESTART: Stop the instance and start it
14411
- * again. - REFRESH: Do not stop the instance. - NONE: Do not disrupt the instance at all. By default, the most disruptive allowed action is REPLACE. If your update requires a more
14412
- * disruptive action than you set with this flag, the update request will fail.
14441
+ * again. - REFRESH: Do not stop the instance and limit disruption as much as possible. - NONE: Do not disrupt the instance at all. By default, the most disruptive allowed action is
14442
+ * REPLACE. If your update requires a more disruptive action than you set with this flag, the update request will fail.
14413
14443
  */
14414
14444
  mostDisruptiveAllowedAction?:
14415
14445
  string;
@@ -14773,6 +14803,12 @@ declare namespace gapi.client {
14773
14803
  /** [Output Only] Creation timestamp in RFC3339 text format. */
14774
14804
  creationTimestamp?:
14775
14805
  string;
14806
+ /** Duration time relative to reservation creation when GCE will automatically delete this resource. */
14807
+ deleteAfterDuration?:
14808
+ Duration;
14809
+ /** Absolute time in future when the reservation will be auto-deleted by GCE. Timestamp is represented in RFC3339 text format. */
14810
+ deleteAtTime?:
14811
+ string;
14776
14812
  /** An optional description of this resource. Provide this property when you create the resource. */
14777
14813
  description?:
14778
14814
  string;
@@ -17411,6 +17447,9 @@ declare namespace gapi.client {
17411
17447
  };
17412
17448
  }
17413
17449
  interface ServiceAttachmentConnectedEndpoint {
17450
+ /** The url of the consumer network. */
17451
+ consumerNetwork?:
17452
+ string;
17414
17453
  /** The url of a connected endpoint. */
17415
17454
  endpoint?:
17416
17455
  string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.compute-alpha",
3
- "version": "0.0.20230606",
3
+ "version": "0.0.20230620",
4
4
  "description": "TypeScript typings for Compute Engine API alpha",
5
5
  "license": "MIT",
6
6
  "author": {
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: 20230606
6
+ // Revision: 20230620
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -3915,6 +3915,12 @@ gapi.load('client', async () => {
3915
3915
  requestId: "Test string",
3916
3916
  zone: "Test string",
3917
3917
  }, {
3918
+ autoCreatedReservationsDeleteTime: "Test string",
3919
+ autoCreatedReservationsDuration: {
3920
+ nanos: 42,
3921
+ seconds: "Test string",
3922
+ },
3923
+ autoDeleteAutoCreatedReservations: true,
3918
3924
  creationTimestamp: "Test string",
3919
3925
  description: "Test string",
3920
3926
  id: "Test string",
@@ -4058,6 +4064,12 @@ gapi.load('client', async () => {
4058
4064
  updateMask: "Test string",
4059
4065
  zone: "Test string",
4060
4066
  }, {
4067
+ autoCreatedReservationsDeleteTime: "Test string",
4068
+ autoCreatedReservationsDuration: {
4069
+ nanos: 42,
4070
+ seconds: "Test string",
4071
+ },
4072
+ autoDeleteAutoCreatedReservations: true,
4061
4073
  creationTimestamp: "Test string",
4062
4074
  description: "Test string",
4063
4075
  id: "Test string",
@@ -5853,6 +5865,9 @@ gapi.load('client', async () => {
5853
5865
  requestId: "Test string",
5854
5866
  zone: "Test string",
5855
5867
  }, {
5868
+ instanceNames: [
5869
+ "Test string"
5870
+ ],
5856
5871
  instances: [
5857
5872
  "Test string"
5858
5873
  ],
@@ -5915,6 +5930,7 @@ gapi.load('client', async () => {
5915
5930
  abandoning: 42,
5916
5931
  creating: 42,
5917
5932
  creatingAtomically: 42,
5933
+ creatingInBulk: 42,
5918
5934
  creatingWithoutRetries: 42,
5919
5935
  deleting: 42,
5920
5936
  none: 42,
@@ -6141,6 +6157,7 @@ gapi.load('client', async () => {
6141
6157
  abandoning: 42,
6142
6158
  creating: 42,
6143
6159
  creatingAtomically: 42,
6160
+ creatingInBulk: 42,
6144
6161
  creatingWithoutRetries: 42,
6145
6162
  deleting: 42,
6146
6163
  none: 42,
@@ -6547,6 +6564,7 @@ gapi.load('client', async () => {
6547
6564
  abandoning: 42,
6548
6565
  creating: 42,
6549
6566
  creatingAtomically: 42,
6567
+ creatingInBulk: 42,
6550
6568
  creatingWithoutRetries: 42,
6551
6569
  deleting: 42,
6552
6570
  none: 42,
@@ -16257,6 +16275,11 @@ gapi.load('client', async () => {
16257
16275
  },
16258
16276
  commitment: "Test string",
16259
16277
  creationTimestamp: "Test string",
16278
+ deleteAfterDuration: {
16279
+ nanos: 42,
16280
+ seconds: "Test string",
16281
+ },
16282
+ deleteAtTime: "Test string",
16260
16283
  description: "Test string",
16261
16284
  id: "Test string",
16262
16285
  kind: "Test string",
@@ -16428,6 +16451,11 @@ gapi.load('client', async () => {
16428
16451
  },
16429
16452
  commitment: "Test string",
16430
16453
  creationTimestamp: "Test string",
16454
+ deleteAfterDuration: {
16455
+ nanos: 42,
16456
+ seconds: "Test string",
16457
+ },
16458
+ deleteAtTime: "Test string",
16431
16459
  description: "Test string",
16432
16460
  id: "Test string",
16433
16461
  kind: "Test string",
@@ -16556,6 +16584,11 @@ gapi.load('client', async () => {
16556
16584
  },
16557
16585
  commitment: "Test string",
16558
16586
  creationTimestamp: "Test string",
16587
+ deleteAfterDuration: {
16588
+ nanos: 42,
16589
+ seconds: "Test string",
16590
+ },
16591
+ deleteAtTime: "Test string",
16559
16592
  description: "Test string",
16560
16593
  id: "Test string",
16561
16594
  kind: "Test string",
@@ -17776,6 +17809,7 @@ gapi.load('client', async () => {
17776
17809
  abandoning: 42,
17777
17810
  creating: 42,
17778
17811
  creatingAtomically: 42,
17812
+ creatingInBulk: 42,
17779
17813
  creatingWithoutRetries: 42,
17780
17814
  deleting: 42,
17781
17815
  none: 42,
@@ -18001,6 +18035,7 @@ gapi.load('client', async () => {
18001
18035
  abandoning: 42,
18002
18036
  creating: 42,
18003
18037
  creatingAtomically: 42,
18038
+ creatingInBulk: 42,
18004
18039
  creatingWithoutRetries: 42,
18005
18040
  deleting: 42,
18006
18041
  none: 42,
@@ -18398,6 +18433,7 @@ gapi.load('client', async () => {
18398
18433
  abandoning: 42,
18399
18434
  creating: 42,
18400
18435
  creatingAtomically: 42,
18436
+ creatingInBulk: 42,
18401
18437
  creatingWithoutRetries: 42,
18402
18438
  deleting: 42,
18403
18439
  none: 42,
@@ -24432,6 +24468,11 @@ gapi.load('client', async () => {
24432
24468
  },
24433
24469
  commitment: "Test string",
24434
24470
  creationTimestamp: "Test string",
24471
+ deleteAfterDuration: {
24472
+ nanos: 42,
24473
+ seconds: "Test string",
24474
+ },
24475
+ deleteAtTime: "Test string",
24435
24476
  description: "Test string",
24436
24477
  id: "Test string",
24437
24478
  kind: "Test string",
@@ -24660,6 +24701,11 @@ gapi.load('client', async () => {
24660
24701
  },
24661
24702
  commitment: "Test string",
24662
24703
  creationTimestamp: "Test string",
24704
+ deleteAfterDuration: {
24705
+ nanos: 42,
24706
+ seconds: "Test string",
24707
+ },
24708
+ deleteAtTime: "Test string",
24663
24709
  description: "Test string",
24664
24710
  id: "Test string",
24665
24711
  kind: "Test string",
@@ -26810,6 +26856,7 @@ gapi.load('client', async () => {
26810
26856
  }, {
26811
26857
  connectedEndpoints: [
26812
26858
  {
26859
+ consumerNetwork: "Test string",
26813
26860
  endpoint: "Test string",
26814
26861
  pscConnectionId: "Test string",
26815
26862
  status: "Test string",
@@ -26868,6 +26915,7 @@ gapi.load('client', async () => {
26868
26915
  }, {
26869
26916
  connectedEndpoints: [
26870
26917
  {
26918
+ consumerNetwork: "Test string",
26871
26919
  endpoint: "Test string",
26872
26920
  pscConnectionId: "Test string",
26873
26921
  status: "Test string",