@maxim_mazurok/gapi.client.compute-alpha 0.0.20240827 → 0.0.20240903

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 +228 -4
  2. package/package.json +1 -1
  3. package/readme.md +32 -2
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: 20240827
12
+ // Revision: 20240903
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -3861,6 +3861,8 @@ declare namespace gapi.client {
3861
3861
  kind?: string;
3862
3862
  /** Pagination behavior of the listManagedInstances API method for this managed instance group. */
3863
3863
  listManagedInstancesResults?: string;
3864
+ /** URL to the multi-MIG that this Managed Instance Group belongs to. */
3865
+ multiMig?: string;
3864
3866
  /** The name of the managed instance group. The name must be 1-63 characters long, and comply with RFC1035. */
3865
3867
  name?: string;
3866
3868
  /** Named ports configured for the Instance Groups complementary to this Instance Group Manager. */
@@ -6055,6 +6057,7 @@ declare namespace gapi.client {
6055
6057
  allInstancesConfig?: ManagedInstanceAllInstancesConfig;
6056
6058
  /** [Output Only] The current action that the managed instance group has scheduled for the instance. Possible values: - NONE The instance is running, and the managed instance group does not have any scheduled actions for this instance. - CREATING The managed instance group is creating this instance. If the group fails to create this instance, it will try again until it is successful. - CREATING_WITHOUT_RETRIES The managed instance group is attempting to create this instance only once. If the group fails to create this instance, it does not try again and the group's targetSize value is decreased instead. - RECREATING The managed instance group is recreating this instance. - DELETING The managed instance group is permanently deleting this instance. - ABANDONING The managed instance group is abandoning this instance. The instance will be removed from the instance group and from any target pools that are associated with this group. - RESTARTING The managed instance group is restarting the instance. - REFRESHING The managed instance group is applying configuration changes to the instance without stopping it. For example, the group can update the target pool list for an instance without stopping that instance. - VERIFYING The managed instance group has created the instance and it is in the process of being verified. */
6057
6059
  currentAction?: string;
6060
+ currentActionDetails?: ManagedInstanceCurrentActionDetails;
6058
6061
  /** [Output only] The unique identifier for this resource. This field is empty when instance does not exist. */
6059
6062
  id?: string;
6060
6063
  /** [Output Only] The URL of the instance. The URL can exist even if the instance has not yet been created. */
@@ -6090,6 +6093,11 @@ declare namespace gapi.client {
6090
6093
  /** [Output Only] Current all-instances configuration revision. This value is in RFC3339 text format. */
6091
6094
  revision?: string;
6092
6095
  }
6096
+ interface ManagedInstanceCurrentActionDetails {
6097
+ methodName?: string;
6098
+ /** [Output Only] Details of the current action that the managed instance group has scheduled for the instance. Contains trigger for the current action, and methodName in case it was triggered by API call. Possible values for trigger: - API Any API call. - PROACTIVE_UPDATE Proactive updater scheduled an update on this managed instance. - AUTOSCALING Instance being deleted/created after a decision from the Autoscaler. - REDISTRIBUTION The regional managed instance group is moving instances between zones to restore balance. - STANDBY_REFILL The managed instance group is refilling the Standby Pool (stopped/suspended virtual machines) after scale up. - MAINTENANCE Manual maintenance. - FAILED_CREATION The managed instance group is handling failed instance creation. - INSTANCE_FAILURE The managed instance group is handling instance failure, according to the Instance Lifecycle Policy. - FAILED_HEALTH_CHECK The managed instance group is handling failed health check, according to the Instance Lifecycle Policy. - TERMINATION_TIMESTAMP Instance reached termination time, thus managed instance group stops/deletes it. */
6099
+ trigger?: string;
6100
+ }
6093
6101
  interface ManagedInstanceInstanceFlexibilityOverride {
6094
6102
  /** The machine type to be used for this instance. */
6095
6103
  machineType?: string;
@@ -9387,6 +9395,8 @@ declare namespace gapi.client {
9387
9395
  };
9388
9396
  }
9389
9397
  interface RoutePolicy {
9398
+ /** An optional description of route policy. */
9399
+ description?: string;
9390
9400
  /** A fingerprint for the Route Policy being applied to this Router, which is essentially a hash of the Route Policy used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update Route Policy. You must always provide an up-to-date fingerprint hash in order to update or change labels. To see the latest fingerprint, make a getRoutePolicy() request to retrieve a Route Policy. */
9391
9401
  fingerprint?: string;
9392
9402
  /** Route Policy name, which must be a resource ID segment and unique within all the router's Route Policies. Name should conform to RFC1035. */
@@ -11590,7 +11600,7 @@ declare namespace gapi.client {
11590
11600
  gatewayAddress?: string;
11591
11601
  /** [Output Only] The unique identifier for the resource. This identifier is defined by the server. */
11592
11602
  id?: string;
11593
- /** [Output Only] The internal IPv6 address range that is assigned to this subnetwork. */
11603
+ /** The internal IPv6 address range that is owned by this subnetwork. */
11594
11604
  internalIpv6Prefix?: string;
11595
11605
  /** The range of internal addresses that are owned by this subnetwork. Provide this property when you create the subnetwork. For example, 10.0.0.0/8 or 100.64.0.0/10. Ranges must be unique and non-overlapping within a network. Only IPv4 is supported. This field is set at resource creation time. The range can be any range listed in the Valid ranges list. The range can be expanded after creation using expandIpCidrRange. */
11596
11606
  ipCidrRange?: string;
@@ -15244,7 +15254,7 @@ declare namespace gapi.client {
15244
15254
  /** Legacy name for parameter that has been superseded by `quotaUser`. */
15245
15255
  userIp?: string;
15246
15256
  }): Request<BackendServiceList>;
15247
- /** Retrieves an aggregated list of all usable backend services in the specified project. */
15257
+ /** Retrieves a list of all usable backend services in the specified project. */
15248
15258
  listUsable(request?: {
15249
15259
  /** V1 error format. */
15250
15260
  '$.xgafv'?: string;
@@ -28512,6 +28522,41 @@ declare namespace gapi.client {
28512
28522
  /** The name of the zone for this request. */
28513
28523
  zone: string;
28514
28524
  }): Request<InstantSnapshotGroup>;
28525
+ /** Gets the access control policy for a resource. May be empty if no such policy or resource exists. */
28526
+ getIamPolicy(request?: {
28527
+ /** V1 error format. */
28528
+ '$.xgafv'?: string;
28529
+ /** OAuth access token. */
28530
+ access_token?: string;
28531
+ /** Data format for response. */
28532
+ alt?: string;
28533
+ /** JSONP */
28534
+ callback?: string;
28535
+ /** Selector specifying which fields to include in a partial response. */
28536
+ fields?: string;
28537
+ /** 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. */
28538
+ key?: string;
28539
+ /** OAuth 2.0 token for the current user. */
28540
+ oauth_token?: string;
28541
+ /** Requested IAM Policy version. */
28542
+ optionsRequestedPolicyVersion?: number;
28543
+ /** Returns response with indentations and line breaks. */
28544
+ prettyPrint?: boolean;
28545
+ /** Project ID for this request. */
28546
+ project: string;
28547
+ /** 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. */
28548
+ quotaUser?: string;
28549
+ /** Name or id of the resource for this request. */
28550
+ resource: string;
28551
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
28552
+ upload_protocol?: string;
28553
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
28554
+ uploadType?: string;
28555
+ /** Legacy name for parameter that has been superseded by `quotaUser`. */
28556
+ userIp?: string;
28557
+ /** The name of the zone for this request. */
28558
+ zone: string;
28559
+ }): Request<Policy>;
28515
28560
  /** inserts a Zonal InstantSnapshotGroup resource */
28516
28561
  insert(request: {
28517
28562
  /** V1 error format. */
@@ -28627,6 +28672,78 @@ declare namespace gapi.client {
28627
28672
  /** The name of the zone for this request. */
28628
28673
  zone: string;
28629
28674
  }): Request<ListInstantSnapshotGroups>;
28675
+ /** Sets the access control policy on the specified resource. Replaces any existing policy. */
28676
+ setIamPolicy(
28677
+ request: {
28678
+ /** V1 error format. */
28679
+ '$.xgafv'?: string;
28680
+ /** OAuth access token. */
28681
+ access_token?: string;
28682
+ /** Data format for response. */
28683
+ alt?: string;
28684
+ /** JSONP */
28685
+ callback?: string;
28686
+ /** Selector specifying which fields to include in a partial response. */
28687
+ fields?: string;
28688
+ /** 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. */
28689
+ key?: string;
28690
+ /** OAuth 2.0 token for the current user. */
28691
+ oauth_token?: string;
28692
+ /** Returns response with indentations and line breaks. */
28693
+ prettyPrint?: boolean;
28694
+ /** Project ID for this request. */
28695
+ project: string;
28696
+ /** 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. */
28697
+ quotaUser?: string;
28698
+ /** Name or id of the resource for this request. */
28699
+ resource: string;
28700
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
28701
+ upload_protocol?: string;
28702
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
28703
+ uploadType?: string;
28704
+ /** Legacy name for parameter that has been superseded by `quotaUser`. */
28705
+ userIp?: string;
28706
+ /** The name of the zone for this request. */
28707
+ zone: string;
28708
+ },
28709
+ body: ZoneSetPolicyRequest
28710
+ ): Request<Policy>;
28711
+ /** Returns permissions that a caller has on the specified resource. */
28712
+ testIamPermissions(
28713
+ request: {
28714
+ /** V1 error format. */
28715
+ '$.xgafv'?: string;
28716
+ /** OAuth access token. */
28717
+ access_token?: string;
28718
+ /** Data format for response. */
28719
+ alt?: string;
28720
+ /** JSONP */
28721
+ callback?: string;
28722
+ /** Selector specifying which fields to include in a partial response. */
28723
+ fields?: string;
28724
+ /** 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. */
28725
+ key?: string;
28726
+ /** OAuth 2.0 token for the current user. */
28727
+ oauth_token?: string;
28728
+ /** Returns response with indentations and line breaks. */
28729
+ prettyPrint?: boolean;
28730
+ /** Project ID for this request. */
28731
+ project: string;
28732
+ /** 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. */
28733
+ quotaUser?: string;
28734
+ /** Name or id of the resource for this request. */
28735
+ resource: string;
28736
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
28737
+ upload_protocol?: string;
28738
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
28739
+ uploadType?: string;
28740
+ /** Legacy name for parameter that has been superseded by `quotaUser`. */
28741
+ userIp?: string;
28742
+ /** The name of the zone for this request. */
28743
+ zone: string;
28744
+ },
28745
+ body: TestPermissionsRequest
28746
+ ): Request<TestPermissionsResponse>;
28630
28747
  }
28631
28748
  interface InstantSnapshotsResource {
28632
28749
  /** Retrieves an aggregated list of instantSnapshots. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`. */
@@ -38354,7 +38471,7 @@ declare namespace gapi.client {
38354
38471
  /** Legacy name for parameter that has been superseded by `quotaUser`. */
38355
38472
  userIp?: string;
38356
38473
  }): Request<BackendServiceList>;
38357
- /** Retrieves an aggregated list of all usable backend services in the specified project in the given region. */
38474
+ /** Retrieves a list of all usable backend services in the specified project in the given region. */
38358
38475
  listUsable(request?: {
38359
38476
  /** V1 error format. */
38360
38477
  '$.xgafv'?: string;
@@ -43517,6 +43634,41 @@ declare namespace gapi.client {
43517
43634
  /** Legacy name for parameter that has been superseded by `quotaUser`. */
43518
43635
  userIp?: string;
43519
43636
  }): Request<InstantSnapshotGroup>;
43637
+ /** Gets the access control policy for a resource. May be empty if no such policy or resource exists. */
43638
+ getIamPolicy(request?: {
43639
+ /** V1 error format. */
43640
+ '$.xgafv'?: string;
43641
+ /** OAuth access token. */
43642
+ access_token?: string;
43643
+ /** Data format for response. */
43644
+ alt?: string;
43645
+ /** JSONP */
43646
+ callback?: string;
43647
+ /** Selector specifying which fields to include in a partial response. */
43648
+ fields?: string;
43649
+ /** 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. */
43650
+ key?: string;
43651
+ /** OAuth 2.0 token for the current user. */
43652
+ oauth_token?: string;
43653
+ /** Requested IAM Policy version. */
43654
+ optionsRequestedPolicyVersion?: number;
43655
+ /** Returns response with indentations and line breaks. */
43656
+ prettyPrint?: boolean;
43657
+ /** Project ID for this request. */
43658
+ project: string;
43659
+ /** 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. */
43660
+ quotaUser?: string;
43661
+ /** The name of the region for this request. */
43662
+ region: string;
43663
+ /** Name or id of the resource for this request. */
43664
+ resource: string;
43665
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
43666
+ upload_protocol?: string;
43667
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
43668
+ uploadType?: string;
43669
+ /** Legacy name for parameter that has been superseded by `quotaUser`. */
43670
+ userIp?: string;
43671
+ }): Request<Policy>;
43520
43672
  /** creates a Regional InstantSnapshotGroup resource */
43521
43673
  insert(request: {
43522
43674
  /** V1 error format. */
@@ -43632,6 +43784,78 @@ declare namespace gapi.client {
43632
43784
  /** Legacy name for parameter that has been superseded by `quotaUser`. */
43633
43785
  userIp?: string;
43634
43786
  }): Request<ListInstantSnapshotGroups>;
43787
+ /** Sets the access control policy on the specified resource. Replaces any existing policy. */
43788
+ setIamPolicy(
43789
+ request: {
43790
+ /** V1 error format. */
43791
+ '$.xgafv'?: string;
43792
+ /** OAuth access token. */
43793
+ access_token?: string;
43794
+ /** Data format for response. */
43795
+ alt?: string;
43796
+ /** JSONP */
43797
+ callback?: string;
43798
+ /** Selector specifying which fields to include in a partial response. */
43799
+ fields?: string;
43800
+ /** 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. */
43801
+ key?: string;
43802
+ /** OAuth 2.0 token for the current user. */
43803
+ oauth_token?: string;
43804
+ /** Returns response with indentations and line breaks. */
43805
+ prettyPrint?: boolean;
43806
+ /** Project ID for this request. */
43807
+ project: string;
43808
+ /** 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. */
43809
+ quotaUser?: string;
43810
+ /** The name of the region for this request. */
43811
+ region: string;
43812
+ /** Name or id of the resource for this request. */
43813
+ resource: string;
43814
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
43815
+ upload_protocol?: string;
43816
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
43817
+ uploadType?: string;
43818
+ /** Legacy name for parameter that has been superseded by `quotaUser`. */
43819
+ userIp?: string;
43820
+ },
43821
+ body: RegionSetPolicyRequest
43822
+ ): Request<Policy>;
43823
+ /** Returns permissions that a caller has on the specified resource. */
43824
+ testIamPermissions(
43825
+ request: {
43826
+ /** V1 error format. */
43827
+ '$.xgafv'?: string;
43828
+ /** OAuth access token. */
43829
+ access_token?: string;
43830
+ /** Data format for response. */
43831
+ alt?: string;
43832
+ /** JSONP */
43833
+ callback?: string;
43834
+ /** Selector specifying which fields to include in a partial response. */
43835
+ fields?: string;
43836
+ /** 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. */
43837
+ key?: string;
43838
+ /** OAuth 2.0 token for the current user. */
43839
+ oauth_token?: string;
43840
+ /** Returns response with indentations and line breaks. */
43841
+ prettyPrint?: boolean;
43842
+ /** Project ID for this request. */
43843
+ project: string;
43844
+ /** 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. */
43845
+ quotaUser?: string;
43846
+ /** The name of the region for this request. */
43847
+ region: string;
43848
+ /** Name or id of the resource for this request. */
43849
+ resource: string;
43850
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
43851
+ upload_protocol?: string;
43852
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
43853
+ uploadType?: string;
43854
+ /** Legacy name for parameter that has been superseded by `quotaUser`. */
43855
+ userIp?: string;
43856
+ },
43857
+ body: TestPermissionsRequest
43858
+ ): Request<TestPermissionsResponse>;
43635
43859
  }
43636
43860
  interface RegionInstantSnapshotsResource {
43637
43861
  /** Deletes the specified InstantSnapshot resource. Keep in mind that deleting a single instantSnapshot might not necessarily delete all the data on that instantSnapshot. If any data on the instantSnapshot that is marked for deletion is needed for subsequent instantSnapshots, the data will be moved to the next corresponding instantSnapshot. For more information, see Deleting instantSnapshots. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.compute-alpha",
3
- "version": "0.0.20240827",
3
+ "version": "0.0.20240903",
4
4
  "description": "TypeScript typings for Compute Engine API alpha",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -291,7 +291,7 @@ Retrieves the list of BackendService resources available to the specified projec
291
291
  await gapi.client.compute.backendServices.list({ project: "project", });
292
292
 
293
293
  /*
294
- Retrieves an aggregated list of all usable backend services in the specified project.
294
+ Retrieves a list of all usable backend services in the specified project.
295
295
  */
296
296
  await gapi.client.compute.backendServices.listUsable({ project: "project", });
297
297
 
@@ -1595,6 +1595,11 @@ returns the specified InstantSnapshotGroup resource in the specified zone.
1595
1595
  */
1596
1596
  await gapi.client.compute.instantSnapshotGroups.get({ instantSnapshotGroup: "instantSnapshotGroup", project: "project", zone: "zone", });
1597
1597
 
1598
+ /*
1599
+ Gets the access control policy for a resource. May be empty if no such policy or resource exists.
1600
+ */
1601
+ await gapi.client.compute.instantSnapshotGroups.getIamPolicy({ project: "project", resource: "resource", zone: "zone", });
1602
+
1598
1603
  /*
1599
1604
  inserts a Zonal InstantSnapshotGroup resource
1600
1605
  */
@@ -1605,6 +1610,16 @@ retrieves the list of InstantSnapshotGroup resources contained within the specif
1605
1610
  */
1606
1611
  await gapi.client.compute.instantSnapshotGroups.list({ project: "project", zone: "zone", });
1607
1612
 
1613
+ /*
1614
+ Sets the access control policy on the specified resource. Replaces any existing policy.
1615
+ */
1616
+ await gapi.client.compute.instantSnapshotGroups.setIamPolicy({ project: "project", resource: "resource", zone: "zone", });
1617
+
1618
+ /*
1619
+ Returns permissions that a caller has on the specified resource.
1620
+ */
1621
+ await gapi.client.compute.instantSnapshotGroups.testIamPermissions({ project: "project", resource: "resource", zone: "zone", });
1622
+
1608
1623
  /*
1609
1624
  Retrieves an aggregated list of instantSnapshots. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
1610
1625
  */
@@ -2651,7 +2666,7 @@ Retrieves the list of regional BackendService resources available to the specifi
2651
2666
  await gapi.client.compute.regionBackendServices.list({ project: "project", region: "region", });
2652
2667
 
2653
2668
  /*
2654
- Retrieves an aggregated list of all usable backend services in the specified project in the given region.
2669
+ Retrieves a list of all usable backend services in the specified project in the given region.
2655
2670
  */
2656
2671
  await gapi.client.compute.regionBackendServices.listUsable({ project: "project", region: "region", });
2657
2672
 
@@ -3120,6 +3135,11 @@ returns the specified InstantSnapshotGroup resource in the specified region.
3120
3135
  */
3121
3136
  await gapi.client.compute.regionInstantSnapshotGroups.get({ instantSnapshotGroup: "instantSnapshotGroup", project: "project", region: "region", });
3122
3137
 
3138
+ /*
3139
+ Gets the access control policy for a resource. May be empty if no such policy or resource exists.
3140
+ */
3141
+ await gapi.client.compute.regionInstantSnapshotGroups.getIamPolicy({ project: "project", region: "region", resource: "resource", });
3142
+
3123
3143
  /*
3124
3144
  creates a Regional InstantSnapshotGroup resource
3125
3145
  */
@@ -3130,6 +3150,16 @@ retrieves the list of InstantSnapshotGroup resources contained within the specif
3130
3150
  */
3131
3151
  await gapi.client.compute.regionInstantSnapshotGroups.list({ project: "project", region: "region", });
3132
3152
 
3153
+ /*
3154
+ Sets the access control policy on the specified resource. Replaces any existing policy.
3155
+ */
3156
+ await gapi.client.compute.regionInstantSnapshotGroups.setIamPolicy({ project: "project", region: "region", resource: "resource", });
3157
+
3158
+ /*
3159
+ Returns permissions that a caller has on the specified resource.
3160
+ */
3161
+ await gapi.client.compute.regionInstantSnapshotGroups.testIamPermissions({ project: "project", region: "region", resource: "resource", });
3162
+
3133
3163
  /*
3134
3164
  Deletes the specified InstantSnapshot resource. Keep in mind that deleting a single instantSnapshot might not necessarily delete all the data on that instantSnapshot. If any data on the instantSnapshot that is marked for deletion is needed for subsequent instantSnapshots, the data will be moved to the next corresponding instantSnapshot. For more information, see Deleting instantSnapshots.
3135
3165
  */