@maxim_mazurok/gapi.client.compute-alpha 0.0.20230327 → 0.0.20230418
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 +68 -25
- package/package.json +1 -1
- package/tests.ts +2869 -4002
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: 20230418
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -620,6 +620,12 @@ declare namespace gapi.client {
|
|
|
620
620
|
sourceSnapshot?: string;
|
|
621
621
|
/** The customer-supplied encryption key of the source snapshot. */
|
|
622
622
|
sourceSnapshotEncryptionKey?: CustomerEncryptionKey;
|
|
623
|
+
/**
|
|
624
|
+
* The storage pool in which the new disk is created. You can provide this as a partial or full URL to the resource. For example, the following are valid values: -
|
|
625
|
+
* https://www.googleapis.com/compute/v1/projects/project/zones/zone /storagePools/storagePool - projects/project/zones/zone/storagePools/storagePool -
|
|
626
|
+
* zones/zone/storagePools/storagePool
|
|
627
|
+
*/
|
|
628
|
+
storagePool?: string;
|
|
623
629
|
}
|
|
624
630
|
interface AuditConfig {
|
|
625
631
|
/** The configuration for logging of each type of permission. */
|
|
@@ -1786,8 +1792,6 @@ declare namespace gapi.client {
|
|
|
1786
1792
|
interface BulkInsertInstanceResource {
|
|
1787
1793
|
/** The maximum number of instances to create. */
|
|
1788
1794
|
count?: string;
|
|
1789
|
-
/** DEPRECATED: Please use instance_properties instead. */
|
|
1790
|
-
instance?: Instance;
|
|
1791
1795
|
/** The instance properties defining the VM instances to be created. Required if sourceInstanceTemplate is not provided. */
|
|
1792
1796
|
instanceProperties?: InstanceProperties;
|
|
1793
1797
|
/** Policy for chosing target zone. For more information, see Create VMs in bulk . */
|
|
@@ -1824,6 +1828,18 @@ declare namespace gapi.client {
|
|
|
1824
1828
|
/** This field is only temporary. It will be removed. Do not use it. */
|
|
1825
1829
|
name?: string;
|
|
1826
1830
|
}
|
|
1831
|
+
interface BulkInsertOperationStatus {
|
|
1832
|
+
/** [Output Only] Count of VMs successfully created so far. */
|
|
1833
|
+
createdVmCount?: number;
|
|
1834
|
+
/** [Output Only] Count of VMs that got deleted during rollback. */
|
|
1835
|
+
deletedVmCount?: number;
|
|
1836
|
+
/** [Output Only] Count of VMs that started creating but encountered an error. */
|
|
1837
|
+
failedToCreateVmCount?: number;
|
|
1838
|
+
/** [Output Only] Creation status of BulkInsert operation - information if the flow is rolling forward or rolling back. */
|
|
1839
|
+
status?: string;
|
|
1840
|
+
/** [Output Only] Count of VMs originally planned to be created. */
|
|
1841
|
+
targetVmCount?: number;
|
|
1842
|
+
}
|
|
1827
1843
|
interface BundledLocalSsds {
|
|
1828
1844
|
/** The default disk interface if the interface is not specified. */
|
|
1829
1845
|
defaultInterface?: string;
|
|
@@ -2409,6 +2425,12 @@ declare namespace gapi.client {
|
|
|
2409
2425
|
* ready for use. - DELETING: Disk is deleting.
|
|
2410
2426
|
*/
|
|
2411
2427
|
status?: string;
|
|
2428
|
+
/**
|
|
2429
|
+
* The storage pool in which the new disk is created. You can provide this as a partial or full URL to the resource. For example, the following are valid values: -
|
|
2430
|
+
* https://www.googleapis.com/compute/v1/projects/project/zones/zone /storagePools/storagePool - projects/project/zones/zone/storagePools/storagePool -
|
|
2431
|
+
* zones/zone/storagePools/storagePool
|
|
2432
|
+
*/
|
|
2433
|
+
storagePool?: string;
|
|
2412
2434
|
/** [Deprecated] Storage type of the persistent disk. */
|
|
2413
2435
|
storageType?: string;
|
|
2414
2436
|
/**
|
|
@@ -3398,8 +3420,8 @@ declare namespace gapi.client {
|
|
|
3398
3420
|
name?: string;
|
|
3399
3421
|
/**
|
|
3400
3422
|
* This field is not used for external load balancing. For Internal TCP/UDP Load Balancing, this field identifies the network that the load balanced IP should belong to for this
|
|
3401
|
-
* Forwarding Rule. If
|
|
3402
|
-
* be provided.
|
|
3423
|
+
* Forwarding Rule. If the subnetwork is specified, the network of the subnetwork will be used. If neither subnetwork nor this field is specified, the default network will be used. For
|
|
3424
|
+
* Private Service Connect forwarding rules that forward traffic to Google APIs, a network must be provided.
|
|
3403
3425
|
*/
|
|
3404
3426
|
network?: string;
|
|
3405
3427
|
/**
|
|
@@ -6210,6 +6232,10 @@ declare namespace gapi.client {
|
|
|
6210
6232
|
/** Resource policies to be added to this instance. */
|
|
6211
6233
|
resourcePolicies?: string[];
|
|
6212
6234
|
}
|
|
6235
|
+
interface InstancesBulkInsertOperationMetadata {
|
|
6236
|
+
/** Status information per location (location name is key). Example key: zones/us-central1-a */
|
|
6237
|
+
perLocationStatus?: { [P in string]: BulkInsertOperationStatus };
|
|
6238
|
+
}
|
|
6213
6239
|
interface InstanceSettings {
|
|
6214
6240
|
/** Email address of the service account. */
|
|
6215
6241
|
email?: string;
|
|
@@ -8183,7 +8209,7 @@ declare namespace gapi.client {
|
|
|
8183
8209
|
ipAddress?: string;
|
|
8184
8210
|
/** The project id or number of the interface to which the IP was assigned. */
|
|
8185
8211
|
projectIdOrNum?: string;
|
|
8186
|
-
/** Alias IP ranges from the same subnetwork */
|
|
8212
|
+
/** Alias IP ranges from the same subnetwork. */
|
|
8187
8213
|
secondaryIpCidrRanges?: string[];
|
|
8188
8214
|
/** The status of a connected endpoint to this network attachment. */
|
|
8189
8215
|
status?: string;
|
|
@@ -9526,6 +9552,7 @@ declare namespace gapi.client {
|
|
|
9526
9552
|
id?: string;
|
|
9527
9553
|
/** [Output Only] The time that this operation was requested. This value is in RFC3339 text format. */
|
|
9528
9554
|
insertTime?: string;
|
|
9555
|
+
instancesBulkInsertOperationMetadata?: InstancesBulkInsertOperationMetadata;
|
|
9529
9556
|
/** [Output Only] Type of the resource. Always `compute#operation` for Operation resources. */
|
|
9530
9557
|
kind?: string;
|
|
9531
9558
|
/** [Output Only] Name of the operation. */
|
|
@@ -11625,7 +11652,6 @@ declare namespace gapi.client {
|
|
|
11625
11652
|
scheduling?: ResourceStatusScheduling;
|
|
11626
11653
|
/** [Output Only] Represents the status of the service integration specs defined by the user in instance.serviceIntegrationSpecs. */
|
|
11627
11654
|
serviceIntegrationStatuses?: { [P in string]: ResourceStatusServiceIntegrationStatus };
|
|
11628
|
-
upcomingMaintenance?: ResourceStatusUpcomingMaintenance;
|
|
11629
11655
|
}
|
|
11630
11656
|
interface ResourceStatusScheduling {
|
|
11631
11657
|
/**
|
|
@@ -11645,10 +11671,6 @@ declare namespace gapi.client {
|
|
|
11645
11671
|
/** Enum representing the registration state of a Backup and DR backup plan for the instance. */
|
|
11646
11672
|
state?: string;
|
|
11647
11673
|
}
|
|
11648
|
-
interface ResourceStatusUpcomingMaintenance {
|
|
11649
|
-
/** Indicates if the maintenance can be customer triggered. See go/sf-ctm-design for more details */
|
|
11650
|
-
canReschedule?: boolean;
|
|
11651
|
-
}
|
|
11652
11674
|
interface RolloutPolicy {
|
|
11653
11675
|
/** An optional RFC3339 timestamp on or after which the update is considered rolled out to any zone that is not explicitly stated. */
|
|
11654
11676
|
defaultRolloutTime?: string;
|
|
@@ -12643,9 +12665,12 @@ declare namespace gapi.client {
|
|
|
12643
12665
|
loadThreshold?: number;
|
|
12644
12666
|
}
|
|
12645
12667
|
interface SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig {
|
|
12646
|
-
/** If set to true, enables CAAP for L7 DDoS detection. */
|
|
12668
|
+
/** If set to true, enables CAAP for L7 DDoS detection. This field is only supported in Global Security Policies of type CLOUD_ARMOR. */
|
|
12647
12669
|
enable?: boolean;
|
|
12648
|
-
/**
|
|
12670
|
+
/**
|
|
12671
|
+
* Rule visibility can be one of the following: STANDARD - opaque rules. (default) PREMIUM - transparent rules. This field is only supported in Global Security Policies of type
|
|
12672
|
+
* CLOUD_ARMOR.
|
|
12673
|
+
*/
|
|
12649
12674
|
ruleVisibility?: string;
|
|
12650
12675
|
}
|
|
12651
12676
|
interface SecurityPolicyAdvancedOptionsConfig {
|
|
@@ -12717,7 +12742,8 @@ declare namespace gapi.client {
|
|
|
12717
12742
|
interface SecurityPolicyRecaptchaOptionsConfig {
|
|
12718
12743
|
/**
|
|
12719
12744
|
* An optional field to supply a reCAPTCHA site key to be used for all the rules using the redirect action with the type of GOOGLE_RECAPTCHA under the security policy. The specified
|
|
12720
|
-
* site key needs to be created from the reCAPTCHA API. The user is responsible for the validity of the specified site key. If not specified, a Google-managed site key is used.
|
|
12745
|
+
* site key needs to be created from the reCAPTCHA API. The user is responsible for the validity of the specified site key. If not specified, a Google-managed site key is used. This
|
|
12746
|
+
* field is only supported in Global Security Policies of type CLOUD_ARMOR.
|
|
12721
12747
|
*/
|
|
12722
12748
|
redirectSiteKey?: string;
|
|
12723
12749
|
}
|
|
@@ -12729,8 +12755,9 @@ declare namespace gapi.client {
|
|
|
12729
12755
|
* 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
|
|
12730
12756
|
* 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
|
|
12731
12757
|
* 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
|
|
12732
|
-
* be an internal reCAPTCHA redirect, or an external URL-based redirect via a 302 response. Parameters for this action can be configured via redirectOptions.
|
|
12733
|
-
* traffic to the configured threshold. Configure parameters for this action in rateLimitOptions.
|
|
12758
|
+
* be an internal reCAPTCHA redirect, or an external URL-based redirect via a 302 response. Parameters for this action can be configured via redirectOptions. This action is only
|
|
12759
|
+
* supported in Global Security Policies of type CLOUD_ARMOR. - throttle: limit client traffic to the configured threshold. Configure parameters for this action in rateLimitOptions.
|
|
12760
|
+
* Requires rate_limit_options to be set for this.
|
|
12734
12761
|
*/
|
|
12735
12762
|
action?: string;
|
|
12736
12763
|
/** An optional description of this resource. Provide this property when you create the resource. */
|
|
@@ -12742,7 +12769,7 @@ declare namespace gapi.client {
|
|
|
12742
12769
|
* BigQuery or Pub/Sub. Note: you cannot enable logging on "goto_next" rules. This field may only be specified when the versioned_expr is set to FIREWALL.
|
|
12743
12770
|
*/
|
|
12744
12771
|
enableLogging?: boolean;
|
|
12745
|
-
/** Optional, additional actions that are performed on headers. */
|
|
12772
|
+
/** Optional, additional actions that are performed on headers. This field is only supported in Global Security Policies of type CLOUD_ARMOR. */
|
|
12746
12773
|
headerAction?: SecurityPolicyRuleHttpHeaderAction;
|
|
12747
12774
|
/** [Output only] Type of the resource. Always compute#securityPolicyRule for security policy rules */
|
|
12748
12775
|
kind?: string;
|
|
@@ -12774,7 +12801,7 @@ declare namespace gapi.client {
|
|
|
12774
12801
|
priority?: number;
|
|
12775
12802
|
/** Must be specified if the action is "rate_based_ban" or "throttle". Cannot be specified for any other actions. */
|
|
12776
12803
|
rateLimitOptions?: SecurityPolicyRuleRateLimitOptions;
|
|
12777
|
-
/** Parameters defining the redirect action. Cannot be specified for any other actions. */
|
|
12804
|
+
/** Parameters defining the redirect action. Cannot be specified for any other actions. This field is only supported in Global Security Policies of type CLOUD_ARMOR. */
|
|
12778
12805
|
redirectOptions?: SecurityPolicyRuleRedirectOptions;
|
|
12779
12806
|
/** This must be specified for redirect actions. Cannot be specified for any other actions. */
|
|
12780
12807
|
redirectTarget?: string;
|
|
@@ -12811,7 +12838,11 @@ declare namespace gapi.client {
|
|
|
12811
12838
|
* specified.
|
|
12812
12839
|
*/
|
|
12813
12840
|
config?: SecurityPolicyRuleMatcherConfig;
|
|
12814
|
-
/**
|
|
12841
|
+
/**
|
|
12842
|
+
* User defined CEVAL expression. A CEVAL expression is used to specify match criteria such as origin.ip, source.region_code and contents in the request header. Expressions containing
|
|
12843
|
+
* `evaluateThreatIntelligence` require Cloud Armor Managed Protection Plus tier and are not supported in Edge Policies nor in Regional Policies. Expressions containing
|
|
12844
|
+
* `evaluatePreconfiguredExpr('sourceiplist-*')` require Cloud Armor Managed Protection Plus tier and are only supported in Global Security Policies.
|
|
12845
|
+
*/
|
|
12815
12846
|
expr?: Expr;
|
|
12816
12847
|
/**
|
|
12817
12848
|
* Preconfigured versioned expression. If this field is specified, config must also be specified. Available preconfigured expressions along with their requirements are: SRC_IPS_V1 -
|
|
@@ -12948,12 +12979,16 @@ declare namespace gapi.client {
|
|
|
12948
12979
|
enforceOnKeyName?: string;
|
|
12949
12980
|
/**
|
|
12950
12981
|
* 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
|
|
12951
|
-
* 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.
|
|
12982
|
+
* 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. The
|
|
12983
|
+
* `redirect` action is only supported in Global Security Policies of type CLOUD_ARMOR.
|
|
12952
12984
|
*/
|
|
12953
12985
|
exceedAction?: string;
|
|
12954
12986
|
/** Specified gRPC response status for proxyless gRPC requests that are above the configured rate limit threshold */
|
|
12955
12987
|
exceedActionRpcStatus?: SecurityPolicyRuleRateLimitOptionsRpcStatus;
|
|
12956
|
-
/**
|
|
12988
|
+
/**
|
|
12989
|
+
* Parameters defining the redirect action that is used as the exceed action. Cannot be specified if the exceed action is not redirect. This field is only supported in Global Security
|
|
12990
|
+
* Policies of type CLOUD_ARMOR.
|
|
12991
|
+
*/
|
|
12957
12992
|
exceedRedirectOptions?: SecurityPolicyRuleRedirectOptions;
|
|
12958
12993
|
/** Threshold at which to begin ratelimiting. */
|
|
12959
12994
|
rateLimitThreshold?: SecurityPolicyRuleRateLimitOptionsThreshold;
|
|
@@ -13430,6 +13465,8 @@ declare namespace gapi.client {
|
|
|
13430
13465
|
sourceDisk?: string;
|
|
13431
13466
|
/** The customer-supplied encryption key of the source disk. Required if the source disk is protected by a customer-supplied encryption key. */
|
|
13432
13467
|
sourceDiskEncryptionKey?: CustomerEncryptionKey;
|
|
13468
|
+
/** The source disk whose recovery checkpoint will be used to create this snapshot. */
|
|
13469
|
+
sourceDiskForRecoveryCheckpoint?: string;
|
|
13433
13470
|
/**
|
|
13434
13471
|
* [Output Only] The ID value of the disk used to create this snapshot. This value may be used to determine whether the snapshot was taken from the current or a previous instance of a
|
|
13435
13472
|
* given disk name.
|
|
@@ -14607,7 +14644,10 @@ declare namespace gapi.client {
|
|
|
14607
14644
|
};
|
|
14608
14645
|
}
|
|
14609
14646
|
interface TargetHttpsProxiesSetCertificateMapRequest {
|
|
14610
|
-
/**
|
|
14647
|
+
/**
|
|
14648
|
+
* URL of the Certificate Map to associate with this TargetHttpsProxy. Accepted format is //certificatemanager.googleapis.com/projects/{project
|
|
14649
|
+
* }/locations/{location}/certificateMaps/{resourceName}.
|
|
14650
|
+
*/
|
|
14611
14651
|
certificateMap?: string;
|
|
14612
14652
|
}
|
|
14613
14653
|
interface TargetHttpsProxiesSetQuicOverrideRequest {
|
|
@@ -14634,7 +14674,7 @@ declare namespace gapi.client {
|
|
|
14634
14674
|
authorizationPolicy?: string;
|
|
14635
14675
|
/**
|
|
14636
14676
|
* URL of a certificate map that identifies a certificate map associated with the given target proxy. This field can only be set for global target proxies. If set, sslCertificates will
|
|
14637
|
-
* be ignored.
|
|
14677
|
+
* be ignored. Accepted format is //certificatemanager.googleapis.com/projects/{project }/locations/{location}/certificateMaps/{resourceName}.
|
|
14638
14678
|
*/
|
|
14639
14679
|
certificateMap?: string;
|
|
14640
14680
|
/** [Output Only] Creation timestamp in RFC3339 text format. */
|
|
@@ -15081,7 +15121,10 @@ declare namespace gapi.client {
|
|
|
15081
15121
|
service?: string;
|
|
15082
15122
|
}
|
|
15083
15123
|
interface TargetSslProxiesSetCertificateMapRequest {
|
|
15084
|
-
/**
|
|
15124
|
+
/**
|
|
15125
|
+
* URL of the Certificate Map to associate with this TargetSslProxy. Accepted format is //certificatemanager.googleapis.com/projects/{project
|
|
15126
|
+
* }/locations/{location}/certificateMaps/{resourceName}.
|
|
15127
|
+
*/
|
|
15085
15128
|
certificateMap?: string;
|
|
15086
15129
|
}
|
|
15087
15130
|
interface TargetSslProxiesSetProxyHeaderRequest {
|
|
@@ -15098,7 +15141,7 @@ declare namespace gapi.client {
|
|
|
15098
15141
|
interface TargetSslProxy {
|
|
15099
15142
|
/**
|
|
15100
15143
|
* URL of a certificate map that identifies a certificate map associated with the given target proxy. This field can only be set for global target proxies. If set, sslCertificates will
|
|
15101
|
-
* be ignored.
|
|
15144
|
+
* be ignored. Accepted format is //certificatemanager.googleapis.com/projects/{project }/locations/{location}/certificateMaps/{resourceName}.
|
|
15102
15145
|
*/
|
|
15103
15146
|
certificateMap?: string;
|
|
15104
15147
|
/** [Output Only] Creation timestamp in RFC3339 text format. */
|