@maxim_mazurok/gapi.client.compute-alpha 0.0.20230620 → 0.0.20230701
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.
- package/index.d.ts +258 -40
- package/package.json +1 -1
- package/readme.md +11 -1
- package/tests.ts +89 -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:
|
|
12
|
+
// Revision: 20230701
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -1675,9 +1675,16 @@ declare namespace gapi.client {
|
|
|
1675
1675
|
network?:
|
|
1676
1676
|
string;
|
|
1677
1677
|
/**
|
|
1678
|
-
* Settings controlling the
|
|
1679
|
-
*
|
|
1680
|
-
*
|
|
1678
|
+
* Settings controlling the ejection of unhealthy backend endpoints from the load balancing pool of each individual proxy instance that processes the traffic for the given backend
|
|
1679
|
+
* service. If not set, this feature is considered disabled. Results of the outlier detection algorithm (ejection of endpoints from the load balancing pool and returning them back to
|
|
1680
|
+
* the pool) are executed independently by each proxy instance of the load balancer. In most cases, more than one proxy instance handles the traffic received by a backend service.
|
|
1681
|
+
* Thus, it is possible that an unhealthy endpoint is detected and ejected by only some of the proxies, and while this happens, other proxies may continue to send requests to the same
|
|
1682
|
+
* unhealthy endpoint until they detect and eject the unhealthy endpoint. Applicable backend endpoints can be: - VM instances in an Instance Group - Endpoints in a Zonal NEG
|
|
1683
|
+
* (GCE_VM_IP, GCE_VM_IP_PORT) - Endpoints in a Hybrid Connectivity NEG (NON_GCP_PRIVATE_IP_PORT) - Serverless NEGs, that resolve to Cloud Run, App Engine, or Cloud Functions Services
|
|
1684
|
+
* - Private Service Connect NEGs, that resolve to Google-managed regional API endpoints or managed services published using Private Service Connect Applicable backend service types
|
|
1685
|
+
* can be: - A global backend service with the loadBalancingScheme set to INTERNAL_SELF_MANAGED or EXTERNAL_MANAGED. - A regional backend service with the serviceProtocol set to HTTP,
|
|
1686
|
+
* HTTPS, or HTTP2, and loadBalancingScheme set to INTERNAL_MANAGED or EXTERNAL_MANAGED. Not supported for Serverless NEGs. Not supported when the backend service is referenced by a
|
|
1687
|
+
* URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
|
|
1681
1688
|
*/
|
|
1682
1689
|
outlierDetection?:
|
|
1683
1690
|
OutlierDetection;
|
|
@@ -6259,6 +6266,9 @@ declare namespace gapi.client {
|
|
|
6259
6266
|
/** Size of the image when restored onto a persistent disk (in GB). */
|
|
6260
6267
|
diskSizeGb?:
|
|
6261
6268
|
string;
|
|
6269
|
+
/** Whether this image is created from a confidential compute mode disk. [Output Only]: This field is not set by user, but from source disk. */
|
|
6270
|
+
enableConfidentialCompute?:
|
|
6271
|
+
boolean;
|
|
6262
6272
|
/**
|
|
6263
6273
|
* The name of the image family to which this image belongs. The image family name can be from a publicly managed image family provided by Compute Engine, or from a custom image family
|
|
6264
6274
|
* you create. For example, centos-stream-9 is a publicly available image family. For more information, see Image family best practices. When creating disks, you can specify an image
|
|
@@ -7637,6 +7647,9 @@ declare namespace gapi.client {
|
|
|
7637
7647
|
interface InstanceGroupManagerStandbyPolicy {
|
|
7638
7648
|
initialDelaySec?:
|
|
7639
7649
|
number;
|
|
7650
|
+
/** Defines behaviour of using instances from standby pool to resize MIG. */
|
|
7651
|
+
mode?:
|
|
7652
|
+
string;
|
|
7640
7653
|
}
|
|
7641
7654
|
interface InstanceGroupManagerStatus {
|
|
7642
7655
|
/** [Output only] Status of all-instances configuration on the group. */
|
|
@@ -8156,6 +8169,13 @@ declare namespace gapi.client {
|
|
|
8156
8169
|
/** Email address of the service account. */
|
|
8157
8170
|
email?:
|
|
8158
8171
|
string;
|
|
8172
|
+
/**
|
|
8173
|
+
* Specifies a fingerprint for instance settings, which is essentially a hash of the instance settings resource's contents and used for optimistic locking. The fingerprint is initially
|
|
8174
|
+
* generated by Compute Engine and changes after every request to modify or update the instance settings resource. You must always provide an up-to-date fingerprint hash in order to
|
|
8175
|
+
* update or change the resource, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the resource.
|
|
8176
|
+
*/
|
|
8177
|
+
fingerprint?:
|
|
8178
|
+
string;
|
|
8159
8179
|
/** [Output Only] Type of the resource. Always compute#instance_settings for instance settings. */
|
|
8160
8180
|
kind?:
|
|
8161
8181
|
string;
|
|
@@ -8724,8 +8744,8 @@ declare namespace gapi.client {
|
|
|
8724
8744
|
adminEnabled?:
|
|
8725
8745
|
boolean;
|
|
8726
8746
|
/**
|
|
8727
|
-
* [Output only] List of features available for this
|
|
8728
|
-
* hardware ports. If not present then the interconnect is provisioned on non-MACsec capable ports and MACsec enablement will fail.
|
|
8747
|
+
* [Output only] List of features available for this Interconnect connection, which can take one of the following values: - MACSEC If present then the interconnect was created on
|
|
8748
|
+
* MACsec capable hardware ports. If not present then the interconnect is provisioned on non-MACsec capable ports and MACsec enablement will fail.
|
|
8729
8749
|
*/
|
|
8730
8750
|
availableFeatures?:
|
|
8731
8751
|
string[];
|
|
@@ -8784,10 +8804,10 @@ declare namespace gapi.client {
|
|
|
8784
8804
|
/** URL of the InterconnectLocation object that represents where this connection is to be provisioned. */
|
|
8785
8805
|
location?:
|
|
8786
8806
|
string;
|
|
8787
|
-
/** Configuration to enable Media Access Control security (MACsec) on the Interconnect between Google and your on-premises router. */
|
|
8807
|
+
/** Configuration to enable Media Access Control security (MACsec) on the Interconnect connection between Google and your on-premises router. */
|
|
8788
8808
|
macsec?:
|
|
8789
8809
|
InterconnectMacsec;
|
|
8790
|
-
/** Enable or disable MACsec on this Interconnect. MACsec enablement
|
|
8810
|
+
/** Enable or disable MACsec on this Interconnect connection. MACsec enablement fails if the MACsec object is not specified. */
|
|
8791
8811
|
macsecEnabled?:
|
|
8792
8812
|
boolean;
|
|
8793
8813
|
/**
|
|
@@ -8824,9 +8844,9 @@ declare namespace gapi.client {
|
|
|
8824
8844
|
remoteLocation?:
|
|
8825
8845
|
string;
|
|
8826
8846
|
/**
|
|
8827
|
-
* Optional. List of features requested for this
|
|
8828
|
-
* hardware ports. If not specified, the default value is false, which will allocate non-MACsec capable ports first if available. This parameter can only be provided
|
|
8829
|
-
* interconnect INSERT and cannot be changed using interconnect PATCH.
|
|
8847
|
+
* Optional. List of features requested for this Interconnect connection, which can take one of the following values: - MACSEC If specified then the interconnect will be created on
|
|
8848
|
+
* MACsec capable hardware ports. If not specified, the default value is false, which will allocate non-MACsec capable ports first if available. This parameter can only be provided
|
|
8849
|
+
* during interconnect INSERT and cannot be changed using interconnect PATCH.
|
|
8830
8850
|
*/
|
|
8831
8851
|
requestedFeatures?:
|
|
8832
8852
|
string[];
|
|
@@ -9368,10 +9388,10 @@ declare namespace gapi.client {
|
|
|
9368
9388
|
*/
|
|
9369
9389
|
availabilityZone?:
|
|
9370
9390
|
string;
|
|
9371
|
-
/** [Output only] List of features available at this
|
|
9391
|
+
/** [Output only] List of features available at this InterconnectLocation, which can take one of the following values: - MACSEC */
|
|
9372
9392
|
availableFeatures?:
|
|
9373
9393
|
string[];
|
|
9374
|
-
/** [Output only] List of link types available at this
|
|
9394
|
+
/** [Output only] List of link types available at this InterconnectLocation, which can take one of the following values: - LINK_TYPE_ETHERNET_10G_LR - LINK_TYPE_ETHERNET_100G_LR */
|
|
9375
9395
|
availableLinkTypes?:
|
|
9376
9396
|
string[];
|
|
9377
9397
|
/** [Output Only] Metropolitan area designator that indicates which city an interconnect is located. For example: "Chicago, IL", "Amsterdam, Netherlands". */
|
|
@@ -9483,9 +9503,9 @@ declare namespace gapi.client {
|
|
|
9483
9503
|
}
|
|
9484
9504
|
interface InterconnectMacsec {
|
|
9485
9505
|
/**
|
|
9486
|
-
* If set to true, the Interconnect
|
|
9487
|
-
* cannot be established. By default, the Interconnect
|
|
9488
|
-
* router.
|
|
9506
|
+
* If set to true, the Interconnect connection is configured with a should-secure MACsec security policy, that allows the Google router to fallback to cleartext traffic if the MKA
|
|
9507
|
+
* session cannot be established. By default, the Interconnect connection is configured with a must-secure security policy that drops all traffic if the MKA session cannot be
|
|
9508
|
+
* established with your router.
|
|
9489
9509
|
*/
|
|
9490
9510
|
failOpen?:
|
|
9491
9511
|
boolean;
|
|
@@ -9498,8 +9518,8 @@ declare namespace gapi.client {
|
|
|
9498
9518
|
}
|
|
9499
9519
|
interface InterconnectMacsecConfig {
|
|
9500
9520
|
/**
|
|
9501
|
-
* A keychain placeholder describing a set of named key objects along with their start times. A MACsec CKN/CAK
|
|
9502
|
-
*
|
|
9521
|
+
* A keychain placeholder describing a set of named key objects along with their start times. A MACsec CKN/CAK is generated for each key in the key chain. Google router automatically
|
|
9522
|
+
* picks the key with the most recent startTime when establishing or re-establishing a MACsec secure link.
|
|
9503
9523
|
*/
|
|
9504
9524
|
preSharedKeys?:
|
|
9505
9525
|
InterconnectMacsecConfigPreSharedKey[];
|
|
@@ -12814,64 +12834,69 @@ declare namespace gapi.client {
|
|
|
12814
12834
|
}
|
|
12815
12835
|
interface OutlierDetection {
|
|
12816
12836
|
/**
|
|
12817
|
-
* The base time that a
|
|
12818
|
-
*
|
|
12837
|
+
* The base time that a backend endpoint is ejected for. Defaults to 30000ms or 30s. After a backend endpoint is returned back to the load balancing pool, it can be ejected again in
|
|
12838
|
+
* another ejection analysis. Thus, the total ejection time is equal to the base ejection time multiplied by the number of times the backend endpoint has been ejected. Defaults to
|
|
12839
|
+
* 30000ms or 30s.
|
|
12819
12840
|
*/
|
|
12820
12841
|
baseEjectionTime?:
|
|
12821
12842
|
Duration;
|
|
12822
12843
|
/**
|
|
12823
|
-
* Number of errors before a
|
|
12824
|
-
*
|
|
12844
|
+
* Number of consecutive errors before a backend endpoint is ejected from the load balancing pool. When the backend endpoint is accessed over HTTP, a 5xx return code qualifies as an
|
|
12845
|
+
* error. Defaults to 5.
|
|
12825
12846
|
*/
|
|
12826
12847
|
consecutiveErrors?:
|
|
12827
12848
|
number;
|
|
12828
12849
|
/**
|
|
12829
12850
|
* The number of consecutive gateway failures (502, 503, 504 status or connection errors that are mapped to one of those status codes) before a consecutive gateway failure ejection
|
|
12830
|
-
* occurs. Defaults to 3.
|
|
12851
|
+
* occurs. Defaults to 3.
|
|
12831
12852
|
*/
|
|
12832
12853
|
consecutiveGatewayFailure?:
|
|
12833
12854
|
number;
|
|
12834
12855
|
/**
|
|
12835
|
-
* The percentage chance that a
|
|
12836
|
-
* slowly. Defaults to 0.
|
|
12856
|
+
* The percentage chance that a backend endpoint will be ejected when an outlier status is detected through consecutive 5xx. This setting can be used to disable ejection or to ramp it
|
|
12857
|
+
* up slowly. Defaults to 0.
|
|
12837
12858
|
*/
|
|
12838
12859
|
enforcingConsecutiveErrors?:
|
|
12839
12860
|
number;
|
|
12840
12861
|
/**
|
|
12841
|
-
* The percentage chance that a
|
|
12842
|
-
* to ramp it up slowly. Defaults to 100.
|
|
12843
|
-
* to true.
|
|
12862
|
+
* The percentage chance that a backend endpoint will be ejected when an outlier status is detected through consecutive gateway failures. This setting can be used to disable ejection
|
|
12863
|
+
* or to ramp it up slowly. Defaults to 100.
|
|
12844
12864
|
*/
|
|
12845
12865
|
enforcingConsecutiveGatewayFailure?:
|
|
12846
12866
|
number;
|
|
12847
12867
|
/**
|
|
12848
|
-
* The percentage chance that a
|
|
12849
|
-
* ramp it up slowly. Defaults to 100.
|
|
12868
|
+
* The percentage chance that a backend endpoint will be ejected when an outlier status is detected through success rate statistics. This setting can be used to disable ejection or to
|
|
12869
|
+
* ramp it up slowly. Defaults to 100. Not supported when the backend service uses Serverless NEG.
|
|
12850
12870
|
*/
|
|
12851
12871
|
enforcingSuccessRate?:
|
|
12852
12872
|
number;
|
|
12853
|
-
/**
|
|
12873
|
+
/**
|
|
12874
|
+
* Time interval between ejection analysis sweeps. This can result in both new ejections and backend endpoints being returned to service. The interval is equal to the number of seconds
|
|
12875
|
+
* as defined in outlierDetection.interval.seconds plus the number of nanoseconds as defined in outlierDetection.interval.nanos. Defaults to 1 second.
|
|
12876
|
+
*/
|
|
12854
12877
|
interval?:
|
|
12855
12878
|
Duration;
|
|
12856
|
-
/** Maximum percentage of
|
|
12879
|
+
/** Maximum percentage of backend endpoints in the load balancing pool for the backend service that can be ejected if the ejection conditions are met. Defaults to 50%. */
|
|
12857
12880
|
maxEjectionPercent?:
|
|
12858
12881
|
number;
|
|
12859
12882
|
/**
|
|
12860
|
-
* The number of
|
|
12861
|
-
* success rate statistics is not performed for any
|
|
12883
|
+
* The number of backend endpoints in the load balancing pool that must have enough request volume to detect success rate outliers. If the number of backend endpoints is fewer than
|
|
12884
|
+
* this setting, outlier detection via success rate statistics is not performed for any backend endpoint in the load balancing pool. Defaults to 5. Not supported when the backend
|
|
12885
|
+
* service uses Serverless NEG.
|
|
12862
12886
|
*/
|
|
12863
12887
|
successRateMinimumHosts?:
|
|
12864
12888
|
number;
|
|
12865
12889
|
/**
|
|
12866
|
-
* The minimum number of total requests that must be collected in one interval (as defined by the interval duration above) to include this
|
|
12867
|
-
* If the volume is lower than this setting, outlier detection via success rate statistics is not performed for that
|
|
12890
|
+
* The minimum number of total requests that must be collected in one interval (as defined by the interval duration above) to include this backend endpoint in success rate based
|
|
12891
|
+
* outlier detection. If the volume is lower than this setting, outlier detection via success rate statistics is not performed for that backend endpoint. Defaults to 100. Not supported
|
|
12892
|
+
* when the backend service uses Serverless NEG.
|
|
12868
12893
|
*/
|
|
12869
12894
|
successRateRequestVolume?:
|
|
12870
12895
|
number;
|
|
12871
12896
|
/**
|
|
12872
12897
|
* This factor is used to determine the ejection threshold for success rate outlier ejection. The ejection threshold is the difference between the mean success rate, and the product of
|
|
12873
|
-
* this factor and the standard deviation of the mean success rate: mean - (stdev *
|
|
12874
|
-
* desired factor is 1.9, the runtime value should be 1900. Defaults to 1900.
|
|
12898
|
+
* this factor and the standard deviation of the mean success rate: mean - (stdev * successRateStdevFactor). This factor is divided by a thousand to get a double. That is, if the
|
|
12899
|
+
* desired factor is 1.9, the runtime value should be 1900. Defaults to 1900. Not supported when the backend service uses Serverless NEG.
|
|
12875
12900
|
*/
|
|
12876
12901
|
successRateStdevFactor?:
|
|
12877
12902
|
number;
|
|
@@ -16732,6 +16757,22 @@ declare namespace gapi.client {
|
|
|
16732
16757
|
*/
|
|
16733
16758
|
ruleVisibility?:
|
|
16734
16759
|
string;
|
|
16760
|
+
/** Configuration options for layer7 adaptive protection for various customizable thresholds. */
|
|
16761
|
+
thresholdConfigs?:
|
|
16762
|
+
SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig[];
|
|
16763
|
+
}
|
|
16764
|
+
interface SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig {
|
|
16765
|
+
autoDeployConfidenceThreshold?:
|
|
16766
|
+
number;
|
|
16767
|
+
autoDeployExpirationSec?:
|
|
16768
|
+
number;
|
|
16769
|
+
autoDeployImpactedBaselineThreshold?:
|
|
16770
|
+
number;
|
|
16771
|
+
autoDeployLoadThreshold?:
|
|
16772
|
+
number;
|
|
16773
|
+
/** The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the security policy. */
|
|
16774
|
+
name?:
|
|
16775
|
+
string;
|
|
16735
16776
|
}
|
|
16736
16777
|
interface SecurityPolicyAdvancedOptionsConfig {
|
|
16737
16778
|
/** Custom configuration to apply the JSON parsing. Only applicable when json_parsing is set to STANDARD. */
|
|
@@ -17880,6 +17921,24 @@ declare namespace gapi.client {
|
|
|
17880
17921
|
string;
|
|
17881
17922
|
};
|
|
17882
17923
|
}
|
|
17924
|
+
interface SnapshotSettings {
|
|
17925
|
+
/** Policy of which storage location is going to be resolved, and additional data that particularizes how the policy is going to be carried out. */
|
|
17926
|
+
storageLocation?:
|
|
17927
|
+
SnapshotSettingsStorageLocationSettings;
|
|
17928
|
+
}
|
|
17929
|
+
interface SnapshotSettingsStorageLocationSettings {
|
|
17930
|
+
/** When the policy is SPECIFIC_LOCATIONS, snapshots will be stored in the locations listed in this field. Keys are GCS bucket locations. */
|
|
17931
|
+
locations?:
|
|
17932
|
+
{ [P in string]: SnapshotSettingsStorageLocationSettingsStorageLocationPreference };
|
|
17933
|
+
/** The chosen location policy. */
|
|
17934
|
+
policy?:
|
|
17935
|
+
string;
|
|
17936
|
+
}
|
|
17937
|
+
interface SnapshotSettingsStorageLocationSettingsStorageLocationPreference {
|
|
17938
|
+
/** Name of the location. It should be one of the GCS buckets. */
|
|
17939
|
+
name?:
|
|
17940
|
+
string;
|
|
17941
|
+
}
|
|
17883
17942
|
interface SourceDiskEncryptionKey {
|
|
17884
17943
|
/** The customer-supplied encryption key of the source disk. Required if the source disk is protected by a customer-supplied encryption key. */
|
|
17885
17944
|
diskEncryptionKey?:
|
|
@@ -18701,7 +18760,7 @@ declare namespace gapi.client {
|
|
|
18701
18760
|
};
|
|
18702
18761
|
}
|
|
18703
18762
|
interface StoragePoolResourceStatus {
|
|
18704
|
-
/** [Output Only] Sum of all the
|
|
18763
|
+
/** [Output Only] Sum of all the disks' provisioned IOPS. */
|
|
18705
18764
|
aggregateDiskProvisionedIops?:
|
|
18706
18765
|
string;
|
|
18707
18766
|
/** [Output Only] Sum of all the capacity provisioned in disks in this storage pool. A disk's provisioned capacity is the same as its total capacity. */
|
|
@@ -18722,6 +18781,9 @@ declare namespace gapi.client {
|
|
|
18722
18781
|
/** [Output Only] Space used by compressed and deduped data stored in disks within the storage pool (in bytes). */
|
|
18723
18782
|
usedReducedBytes?:
|
|
18724
18783
|
string;
|
|
18784
|
+
/** [Output Only] Sum of all the disks' provisioned throughput in MB/s. */
|
|
18785
|
+
usedThroughput?:
|
|
18786
|
+
string;
|
|
18725
18787
|
}
|
|
18726
18788
|
interface StoragePoolsScopedList {
|
|
18727
18789
|
/** [Output Only] A list of storage pool contained in this scope. */
|
|
@@ -57807,7 +57869,8 @@ declare namespace gapi.client {
|
|
|
57807
57869
|
body: DiskMoveRequest): Request<Operation>;
|
|
57808
57870
|
/**
|
|
57809
57871
|
* Moves an instance and its attached persistent disks from one zone to another. *Note*: Moving VMs or disks by using this method might cause unexpected behavior. For more information,
|
|
57810
|
-
* see the [known issue](/compute/docs/troubleshooting/known-issues#moving_vms_or_disks_using_the_moveinstance_api_or_the_causes_unexpected_behavior).
|
|
57872
|
+
* see the [known issue](/compute/docs/troubleshooting/known-issues#moving_vms_or_disks_using_the_moveinstance_api_or_the_causes_unexpected_behavior). [Deprecated] This method is
|
|
57873
|
+
* deprecated. See [moving instance across zones](/compute/docs/instances/moving-instance-across-zones) instead.
|
|
57811
57874
|
*/
|
|
57812
57875
|
moveInstance(request: {
|
|
57813
57876
|
/** V1 error format. */
|
|
@@ -80363,6 +80426,159 @@ declare namespace gapi.client {
|
|
|
80363
80426
|
},
|
|
80364
80427
|
body: TestPermissionsRequest): Request<TestPermissionsResponse>;
|
|
80365
80428
|
}
|
|
80429
|
+
interface SnapshotSettingsResource {
|
|
80430
|
+
/** Get snapshot settings. */
|
|
80431
|
+
get(request?: {
|
|
80432
|
+
/** V1 error format. */
|
|
80433
|
+
"$.xgafv"?:
|
|
80434
|
+
string;
|
|
80435
|
+
/** OAuth access token. */
|
|
80436
|
+
access_token?:
|
|
80437
|
+
string;
|
|
80438
|
+
/** Data format for response. */
|
|
80439
|
+
alt?:
|
|
80440
|
+
string;
|
|
80441
|
+
/** JSONP */
|
|
80442
|
+
callback?:
|
|
80443
|
+
string;
|
|
80444
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
80445
|
+
fields?:
|
|
80446
|
+
string;
|
|
80447
|
+
/** 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. */
|
|
80448
|
+
key?:
|
|
80449
|
+
string;
|
|
80450
|
+
/** OAuth 2.0 token for the current user. */
|
|
80451
|
+
oauth_token?:
|
|
80452
|
+
string;
|
|
80453
|
+
/** Returns response with indentations and line breaks. */
|
|
80454
|
+
prettyPrint?:
|
|
80455
|
+
boolean;
|
|
80456
|
+
/** Project ID for this request. */
|
|
80457
|
+
project:
|
|
80458
|
+
string;
|
|
80459
|
+
/** 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. */
|
|
80460
|
+
quotaUser?:
|
|
80461
|
+
string;
|
|
80462
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
80463
|
+
upload_protocol?:
|
|
80464
|
+
string;
|
|
80465
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
80466
|
+
uploadType?:
|
|
80467
|
+
string;
|
|
80468
|
+
/** Legacy name for parameter that has been superseded by `quotaUser`. */
|
|
80469
|
+
userIp?:
|
|
80470
|
+
string;
|
|
80471
|
+
}): Request<SnapshotSettings>;
|
|
80472
|
+
/** Patch snapshot settings. */
|
|
80473
|
+
patch(request: {
|
|
80474
|
+
/** V1 error format. */
|
|
80475
|
+
"$.xgafv"?:
|
|
80476
|
+
string;
|
|
80477
|
+
/** OAuth access token. */
|
|
80478
|
+
access_token?:
|
|
80479
|
+
string;
|
|
80480
|
+
/** Data format for response. */
|
|
80481
|
+
alt?:
|
|
80482
|
+
string;
|
|
80483
|
+
/** JSONP */
|
|
80484
|
+
callback?:
|
|
80485
|
+
string;
|
|
80486
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
80487
|
+
fields?:
|
|
80488
|
+
string;
|
|
80489
|
+
/** 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. */
|
|
80490
|
+
key?:
|
|
80491
|
+
string;
|
|
80492
|
+
/** OAuth 2.0 token for the current user. */
|
|
80493
|
+
oauth_token?:
|
|
80494
|
+
string;
|
|
80495
|
+
/** Returns response with indentations and line breaks. */
|
|
80496
|
+
prettyPrint?:
|
|
80497
|
+
boolean;
|
|
80498
|
+
/** Project ID for this request. */
|
|
80499
|
+
project:
|
|
80500
|
+
string;
|
|
80501
|
+
/** 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. */
|
|
80502
|
+
quotaUser?:
|
|
80503
|
+
string;
|
|
80504
|
+
/**
|
|
80505
|
+
* 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
|
|
80506
|
+
* 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
|
|
80507
|
+
* 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
|
|
80508
|
+
* commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
|
80509
|
+
*/
|
|
80510
|
+
requestId?:
|
|
80511
|
+
string;
|
|
80512
|
+
/** update_mask indicates fields to be updated as part of this request. */
|
|
80513
|
+
updateMask?:
|
|
80514
|
+
string;
|
|
80515
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
80516
|
+
upload_protocol?:
|
|
80517
|
+
string;
|
|
80518
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
80519
|
+
uploadType?:
|
|
80520
|
+
string;
|
|
80521
|
+
/** Legacy name for parameter that has been superseded by `quotaUser`. */
|
|
80522
|
+
userIp?:
|
|
80523
|
+
string;
|
|
80524
|
+
/** Request body */
|
|
80525
|
+
resource:
|
|
80526
|
+
SnapshotSettings;
|
|
80527
|
+
}): Request<Operation>;
|
|
80528
|
+
patch(request: {
|
|
80529
|
+
/** V1 error format. */
|
|
80530
|
+
"$.xgafv"?:
|
|
80531
|
+
string;
|
|
80532
|
+
/** OAuth access token. */
|
|
80533
|
+
access_token?:
|
|
80534
|
+
string;
|
|
80535
|
+
/** Data format for response. */
|
|
80536
|
+
alt?:
|
|
80537
|
+
string;
|
|
80538
|
+
/** JSONP */
|
|
80539
|
+
callback?:
|
|
80540
|
+
string;
|
|
80541
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
80542
|
+
fields?:
|
|
80543
|
+
string;
|
|
80544
|
+
/** 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. */
|
|
80545
|
+
key?:
|
|
80546
|
+
string;
|
|
80547
|
+
/** OAuth 2.0 token for the current user. */
|
|
80548
|
+
oauth_token?:
|
|
80549
|
+
string;
|
|
80550
|
+
/** Returns response with indentations and line breaks. */
|
|
80551
|
+
prettyPrint?:
|
|
80552
|
+
boolean;
|
|
80553
|
+
/** Project ID for this request. */
|
|
80554
|
+
project:
|
|
80555
|
+
string;
|
|
80556
|
+
/** 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. */
|
|
80557
|
+
quotaUser?:
|
|
80558
|
+
string;
|
|
80559
|
+
/**
|
|
80560
|
+
* 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
|
|
80561
|
+
* 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
|
|
80562
|
+
* 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
|
|
80563
|
+
* commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
|
80564
|
+
*/
|
|
80565
|
+
requestId?:
|
|
80566
|
+
string;
|
|
80567
|
+
/** update_mask indicates fields to be updated as part of this request. */
|
|
80568
|
+
updateMask?:
|
|
80569
|
+
string;
|
|
80570
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
80571
|
+
upload_protocol?:
|
|
80572
|
+
string;
|
|
80573
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
80574
|
+
uploadType?:
|
|
80575
|
+
string;
|
|
80576
|
+
/** Legacy name for parameter that has been superseded by `quotaUser`. */
|
|
80577
|
+
userIp?:
|
|
80578
|
+
string;
|
|
80579
|
+
},
|
|
80580
|
+
body: SnapshotSettings): Request<Operation>;
|
|
80581
|
+
}
|
|
80366
80582
|
interface SslCertificatesResource {
|
|
80367
80583
|
/** Retrieves the list of all SslCertificate resources, regional and global, available to the specified project. */
|
|
80368
80584
|
aggregatedList(request?: {
|
|
@@ -91868,6 +92084,8 @@ declare namespace gapi.client {
|
|
|
91868
92084
|
|
|
91869
92085
|
const serviceAttachments: ServiceAttachmentsResource;
|
|
91870
92086
|
|
|
92087
|
+
const snapshotSettings: SnapshotSettingsResource;
|
|
92088
|
+
|
|
91871
92089
|
const snapshots: SnapshotsResource;
|
|
91872
92090
|
|
|
91873
92091
|
const sslCertificates: SslCertificatesResource;
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -2382,7 +2382,7 @@ Moves a persistent disk from one zone to another.
|
|
|
2382
2382
|
await gapi.client.compute.projects.moveDisk({ project: "project", });
|
|
2383
2383
|
|
|
2384
2384
|
/*
|
|
2385
|
-
Moves an instance and its attached persistent disks from one zone to another. *Note*: Moving VMs or disks by using this method might cause unexpected behavior. For more information, see the [known issue](/compute/docs/troubleshooting/known-issues#moving_vms_or_disks_using_the_moveinstance_api_or_the_causes_unexpected_behavior).
|
|
2385
|
+
Moves an instance and its attached persistent disks from one zone to another. *Note*: Moving VMs or disks by using this method might cause unexpected behavior. For more information, see the [known issue](/compute/docs/troubleshooting/known-issues#moving_vms_or_disks_using_the_moveinstance_api_or_the_causes_unexpected_behavior). [Deprecated] This method is deprecated. See [moving instance across zones](/compute/docs/instances/moving-instance-across-zones) instead.
|
|
2386
2386
|
*/
|
|
2387
2387
|
await gapi.client.compute.projects.moveInstance({ project: "project", });
|
|
2388
2388
|
|
|
@@ -3786,6 +3786,16 @@ Returns permissions that a caller has on the specified resource.
|
|
|
3786
3786
|
*/
|
|
3787
3787
|
await gapi.client.compute.snapshots.testIamPermissions({ project: "project", resource: "resource", });
|
|
3788
3788
|
|
|
3789
|
+
/*
|
|
3790
|
+
Get snapshot settings.
|
|
3791
|
+
*/
|
|
3792
|
+
await gapi.client.compute.snapshotSettings.get({ project: "project", });
|
|
3793
|
+
|
|
3794
|
+
/*
|
|
3795
|
+
Patch snapshot settings.
|
|
3796
|
+
*/
|
|
3797
|
+
await gapi.client.compute.snapshotSettings.patch({ project: "project", });
|
|
3798
|
+
|
|
3789
3799
|
/*
|
|
3790
3800
|
Retrieves the list of all SslCertificate resources, regional and global, available to the specified project.
|
|
3791
3801
|
*/
|
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:
|
|
6
|
+
// Revision: 20230701
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -5273,6 +5273,7 @@ gapi.load('client', async () => {
|
|
|
5273
5273
|
},
|
|
5274
5274
|
description: "Test string",
|
|
5275
5275
|
diskSizeGb: "Test string",
|
|
5276
|
+
enableConfidentialCompute: true,
|
|
5276
5277
|
family: "Test string",
|
|
5277
5278
|
guestOsFeatures: [
|
|
5278
5279
|
{
|
|
@@ -5412,6 +5413,7 @@ gapi.load('client', async () => {
|
|
|
5412
5413
|
},
|
|
5413
5414
|
description: "Test string",
|
|
5414
5415
|
diskSizeGb: "Test string",
|
|
5416
|
+
enableConfidentialCompute: true,
|
|
5415
5417
|
family: "Test string",
|
|
5416
5418
|
guestOsFeatures: [
|
|
5417
5419
|
{
|
|
@@ -5990,6 +5992,7 @@ gapi.load('client', async () => {
|
|
|
5990
5992
|
serviceAccount: "Test string",
|
|
5991
5993
|
standbyPolicy: {
|
|
5992
5994
|
initialDelaySec: 42,
|
|
5995
|
+
mode: "Test string",
|
|
5993
5996
|
},
|
|
5994
5997
|
statefulPolicy: {
|
|
5995
5998
|
preservedState: {
|
|
@@ -6217,6 +6220,7 @@ gapi.load('client', async () => {
|
|
|
6217
6220
|
serviceAccount: "Test string",
|
|
6218
6221
|
standbyPolicy: {
|
|
6219
6222
|
initialDelaySec: 42,
|
|
6223
|
+
mode: "Test string",
|
|
6220
6224
|
},
|
|
6221
6225
|
statefulPolicy: {
|
|
6222
6226
|
preservedState: {
|
|
@@ -6624,6 +6628,7 @@ gapi.load('client', async () => {
|
|
|
6624
6628
|
serviceAccount: "Test string",
|
|
6625
6629
|
standbyPolicy: {
|
|
6626
6630
|
initialDelaySec: 42,
|
|
6631
|
+
mode: "Test string",
|
|
6627
6632
|
},
|
|
6628
6633
|
statefulPolicy: {
|
|
6629
6634
|
preservedState: {
|
|
@@ -8898,6 +8903,7 @@ gapi.load('client', async () => {
|
|
|
8898
8903
|
zone: "Test string",
|
|
8899
8904
|
}, {
|
|
8900
8905
|
email: "Test string",
|
|
8906
|
+
fingerprint: "Test string",
|
|
8901
8907
|
kind: "Test string",
|
|
8902
8908
|
zone: "Test string",
|
|
8903
8909
|
});
|
|
@@ -13330,6 +13336,15 @@ gapi.load('client', async () => {
|
|
|
13330
13336
|
layer7DdosDefenseConfig: {
|
|
13331
13337
|
enable: true,
|
|
13332
13338
|
ruleVisibility: "Test string",
|
|
13339
|
+
thresholdConfigs: [
|
|
13340
|
+
{
|
|
13341
|
+
autoDeployConfidenceThreshold: 42,
|
|
13342
|
+
autoDeployExpirationSec: 42,
|
|
13343
|
+
autoDeployImpactedBaselineThreshold: 42,
|
|
13344
|
+
autoDeployLoadThreshold: 42,
|
|
13345
|
+
name: "Test string",
|
|
13346
|
+
}
|
|
13347
|
+
],
|
|
13333
13348
|
},
|
|
13334
13349
|
},
|
|
13335
13350
|
advancedOptionsConfig: {
|
|
@@ -13592,6 +13607,15 @@ gapi.load('client', async () => {
|
|
|
13592
13607
|
layer7DdosDefenseConfig: {
|
|
13593
13608
|
enable: true,
|
|
13594
13609
|
ruleVisibility: "Test string",
|
|
13610
|
+
thresholdConfigs: [
|
|
13611
|
+
{
|
|
13612
|
+
autoDeployConfidenceThreshold: 42,
|
|
13613
|
+
autoDeployExpirationSec: 42,
|
|
13614
|
+
autoDeployImpactedBaselineThreshold: 42,
|
|
13615
|
+
autoDeployLoadThreshold: 42,
|
|
13616
|
+
name: "Test string",
|
|
13617
|
+
}
|
|
13618
|
+
],
|
|
13595
13619
|
},
|
|
13596
13620
|
},
|
|
13597
13621
|
advancedOptionsConfig: {
|
|
@@ -14224,7 +14248,8 @@ gapi.load('client', async () => {
|
|
|
14224
14248
|
});
|
|
14225
14249
|
/**
|
|
14226
14250
|
* Moves an instance and its attached persistent disks from one zone to another. *Note*: Moving VMs or disks by using this method might cause unexpected behavior. For more information, see
|
|
14227
|
-
* the [known issue](/compute/docs/troubleshooting/known-issues#moving_vms_or_disks_using_the_moveinstance_api_or_the_causes_unexpected_behavior).
|
|
14251
|
+
* the [known issue](/compute/docs/troubleshooting/known-issues#moving_vms_or_disks_using_the_moveinstance_api_or_the_causes_unexpected_behavior). [Deprecated] This method is deprecated.
|
|
14252
|
+
* See [moving instance across zones](/compute/docs/instances/moving-instance-across-zones) instead.
|
|
14228
14253
|
*/
|
|
14229
14254
|
await gapi.client.compute.projects.moveInstance({
|
|
14230
14255
|
project: "Test string",
|
|
@@ -17869,6 +17894,7 @@ gapi.load('client', async () => {
|
|
|
17869
17894
|
serviceAccount: "Test string",
|
|
17870
17895
|
standbyPolicy: {
|
|
17871
17896
|
initialDelaySec: 42,
|
|
17897
|
+
mode: "Test string",
|
|
17872
17898
|
},
|
|
17873
17899
|
statefulPolicy: {
|
|
17874
17900
|
preservedState: {
|
|
@@ -18095,6 +18121,7 @@ gapi.load('client', async () => {
|
|
|
18095
18121
|
serviceAccount: "Test string",
|
|
18096
18122
|
standbyPolicy: {
|
|
18097
18123
|
initialDelaySec: 42,
|
|
18124
|
+
mode: "Test string",
|
|
18098
18125
|
},
|
|
18099
18126
|
statefulPolicy: {
|
|
18100
18127
|
preservedState: {
|
|
@@ -18493,6 +18520,7 @@ gapi.load('client', async () => {
|
|
|
18493
18520
|
serviceAccount: "Test string",
|
|
18494
18521
|
standbyPolicy: {
|
|
18495
18522
|
initialDelaySec: 42,
|
|
18523
|
+
mode: "Test string",
|
|
18496
18524
|
},
|
|
18497
18525
|
statefulPolicy: {
|
|
18498
18526
|
preservedState: {
|
|
@@ -20650,6 +20678,15 @@ gapi.load('client', async () => {
|
|
|
20650
20678
|
layer7DdosDefenseConfig: {
|
|
20651
20679
|
enable: true,
|
|
20652
20680
|
ruleVisibility: "Test string",
|
|
20681
|
+
thresholdConfigs: [
|
|
20682
|
+
{
|
|
20683
|
+
autoDeployConfidenceThreshold: 42,
|
|
20684
|
+
autoDeployExpirationSec: 42,
|
|
20685
|
+
autoDeployImpactedBaselineThreshold: 42,
|
|
20686
|
+
autoDeployLoadThreshold: 42,
|
|
20687
|
+
name: "Test string",
|
|
20688
|
+
}
|
|
20689
|
+
],
|
|
20653
20690
|
},
|
|
20654
20691
|
},
|
|
20655
20692
|
advancedOptionsConfig: {
|
|
@@ -20910,6 +20947,15 @@ gapi.load('client', async () => {
|
|
|
20910
20947
|
layer7DdosDefenseConfig: {
|
|
20911
20948
|
enable: true,
|
|
20912
20949
|
ruleVisibility: "Test string",
|
|
20950
|
+
thresholdConfigs: [
|
|
20951
|
+
{
|
|
20952
|
+
autoDeployConfidenceThreshold: 42,
|
|
20953
|
+
autoDeployExpirationSec: 42,
|
|
20954
|
+
autoDeployImpactedBaselineThreshold: 42,
|
|
20955
|
+
autoDeployLoadThreshold: 42,
|
|
20956
|
+
name: "Test string",
|
|
20957
|
+
}
|
|
20958
|
+
],
|
|
20913
20959
|
},
|
|
20914
20960
|
},
|
|
20915
20961
|
advancedOptionsConfig: {
|
|
@@ -26123,6 +26169,15 @@ gapi.load('client', async () => {
|
|
|
26123
26169
|
layer7DdosDefenseConfig: {
|
|
26124
26170
|
enable: true,
|
|
26125
26171
|
ruleVisibility: "Test string",
|
|
26172
|
+
thresholdConfigs: [
|
|
26173
|
+
{
|
|
26174
|
+
autoDeployConfidenceThreshold: 42,
|
|
26175
|
+
autoDeployExpirationSec: 42,
|
|
26176
|
+
autoDeployImpactedBaselineThreshold: 42,
|
|
26177
|
+
autoDeployLoadThreshold: 42,
|
|
26178
|
+
name: "Test string",
|
|
26179
|
+
}
|
|
26180
|
+
],
|
|
26126
26181
|
},
|
|
26127
26182
|
},
|
|
26128
26183
|
advancedOptionsConfig: {
|
|
@@ -26390,6 +26445,15 @@ gapi.load('client', async () => {
|
|
|
26390
26445
|
layer7DdosDefenseConfig: {
|
|
26391
26446
|
enable: true,
|
|
26392
26447
|
ruleVisibility: "Test string",
|
|
26448
|
+
thresholdConfigs: [
|
|
26449
|
+
{
|
|
26450
|
+
autoDeployConfidenceThreshold: 42,
|
|
26451
|
+
autoDeployExpirationSec: 42,
|
|
26452
|
+
autoDeployImpactedBaselineThreshold: 42,
|
|
26453
|
+
autoDeployLoadThreshold: 42,
|
|
26454
|
+
name: "Test string",
|
|
26455
|
+
}
|
|
26456
|
+
],
|
|
26393
26457
|
},
|
|
26394
26458
|
},
|
|
26395
26459
|
advancedOptionsConfig: {
|
|
@@ -27308,6 +27372,25 @@ gapi.load('client', async () => {
|
|
|
27308
27372
|
"Test string"
|
|
27309
27373
|
],
|
|
27310
27374
|
});
|
|
27375
|
+
/** Get snapshot settings. */
|
|
27376
|
+
await gapi.client.compute.snapshotSettings.get({
|
|
27377
|
+
project: "Test string",
|
|
27378
|
+
});
|
|
27379
|
+
/** Patch snapshot settings. */
|
|
27380
|
+
await gapi.client.compute.snapshotSettings.patch({
|
|
27381
|
+
project: "Test string",
|
|
27382
|
+
requestId: "Test string",
|
|
27383
|
+
updateMask: "Test string",
|
|
27384
|
+
}, {
|
|
27385
|
+
storageLocation: {
|
|
27386
|
+
locations: {
|
|
27387
|
+
A: {
|
|
27388
|
+
name: "Test string",
|
|
27389
|
+
}
|
|
27390
|
+
},
|
|
27391
|
+
policy: "Test string",
|
|
27392
|
+
},
|
|
27393
|
+
});
|
|
27311
27394
|
/** Retrieves the list of all SslCertificate resources, regional and global, available to the specified project. */
|
|
27312
27395
|
await gapi.client.compute.sslCertificates.aggregatedList({
|
|
27313
27396
|
filter: "Test string",
|
|
@@ -27672,6 +27755,7 @@ gapi.load('client', async () => {
|
|
|
27672
27755
|
numberOfDisks: "Test string",
|
|
27673
27756
|
usedBytes: "Test string",
|
|
27674
27757
|
usedReducedBytes: "Test string",
|
|
27758
|
+
usedThroughput: "Test string",
|
|
27675
27759
|
},
|
|
27676
27760
|
selfLink: "Test string",
|
|
27677
27761
|
selfLinkWithId: "Test string",
|
|
@@ -27685,6 +27769,7 @@ gapi.load('client', async () => {
|
|
|
27685
27769
|
numberOfDisks: "Test string",
|
|
27686
27770
|
usedBytes: "Test string",
|
|
27687
27771
|
usedReducedBytes: "Test string",
|
|
27772
|
+
usedThroughput: "Test string",
|
|
27688
27773
|
},
|
|
27689
27774
|
storagePoolType: "Test string",
|
|
27690
27775
|
type: "Test string",
|
|
@@ -27871,6 +27956,7 @@ gapi.load('client', async () => {
|
|
|
27871
27956
|
numberOfDisks: "Test string",
|
|
27872
27957
|
usedBytes: "Test string",
|
|
27873
27958
|
usedReducedBytes: "Test string",
|
|
27959
|
+
usedThroughput: "Test string",
|
|
27874
27960
|
},
|
|
27875
27961
|
selfLink: "Test string",
|
|
27876
27962
|
selfLinkWithId: "Test string",
|
|
@@ -27884,6 +27970,7 @@ gapi.load('client', async () => {
|
|
|
27884
27970
|
numberOfDisks: "Test string",
|
|
27885
27971
|
usedBytes: "Test string",
|
|
27886
27972
|
usedReducedBytes: "Test string",
|
|
27973
|
+
usedThroughput: "Test string",
|
|
27887
27974
|
},
|
|
27888
27975
|
storagePoolType: "Test string",
|
|
27889
27976
|
type: "Test string",
|