@maxim_mazurok/gapi.client.compute-alpha 0.0.20230119 → 0.0.20230201
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 +50 -16
- package/package.json +1 -1
- package/tests.ts +40 -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:
|
|
12
|
+
// Revision: 20230201
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -148,8 +148,8 @@ declare namespace gapi.client {
|
|
|
148
148
|
}
|
|
149
149
|
interface AccessConfig {
|
|
150
150
|
/**
|
|
151
|
-
* The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig.
|
|
152
|
-
*
|
|
151
|
+
* The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. To use a static external IP
|
|
152
|
+
* address, it must be unused and in the same region as the instance's zone. If not specified, GCP will automatically assign an external IPv6 address from the instance's subnetwork.
|
|
153
153
|
*/
|
|
154
154
|
externalIpv6?: string;
|
|
155
155
|
/** The prefix length of the external IPv6 range. */
|
|
@@ -1756,14 +1756,14 @@ declare namespace gapi.client {
|
|
|
1756
1756
|
* Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example,
|
|
1757
1757
|
* `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service
|
|
1758
1758
|
* account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. *
|
|
1759
|
-
* `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `
|
|
1760
|
-
*
|
|
1761
|
-
* `
|
|
1762
|
-
*
|
|
1763
|
-
*
|
|
1764
|
-
*
|
|
1765
|
-
* `
|
|
1766
|
-
*
|
|
1759
|
+
* `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the
|
|
1760
|
+
* users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has
|
|
1761
|
+
* been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains
|
|
1762
|
+
* the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently
|
|
1763
|
+
* deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and
|
|
1764
|
+
* the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that
|
|
1765
|
+
* has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group
|
|
1766
|
+
* retains the role in the binding.
|
|
1767
1767
|
*/
|
|
1768
1768
|
members?: string[];
|
|
1769
1769
|
/** Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. */
|
|
@@ -2863,6 +2863,12 @@ declare namespace gapi.client {
|
|
|
2863
2863
|
* it cannot be an IP address from Google Compute Engine.
|
|
2864
2864
|
*/
|
|
2865
2865
|
ipAddress?: string;
|
|
2866
|
+
/**
|
|
2867
|
+
* IPv6 address of the interface in the external VPN gateway. This IPv6 address can be either from your on-premise gateway or another Cloud provider's VPN gateway, it cannot be an IP
|
|
2868
|
+
* address from Google Compute Engine. Must specify an IPv6 address (not IPV4-mapped) using any format described in RFC 4291 (e.g. 2001:db8:0:0:2d9:51:0:0). The output format is RFC
|
|
2869
|
+
* 5952 format (e.g. 2001:db8::2d9:51:0:0).
|
|
2870
|
+
*/
|
|
2871
|
+
ipv6Address?: string;
|
|
2866
2872
|
}
|
|
2867
2873
|
interface ExternalVpnGatewayList {
|
|
2868
2874
|
etag?: string;
|
|
@@ -3210,6 +3216,8 @@ declare namespace gapi.client {
|
|
|
3210
3216
|
targetSecureTags?: FirewallPolicyRuleSecureTag[];
|
|
3211
3217
|
/** A list of service accounts indicating the sets of instances that are applied with this rule. */
|
|
3212
3218
|
targetServiceAccounts?: string[];
|
|
3219
|
+
/** Boolean flag indicating if the traffic should be TLS decrypted. Can be set only if action = 'apply_security_profile_group' and cannot be set for other actions. */
|
|
3220
|
+
tlsInspect?: boolean;
|
|
3213
3221
|
}
|
|
3214
3222
|
interface FirewallPolicyRuleMatcher {
|
|
3215
3223
|
/** Address groups which should be matched against the traffic destination. Maximum number of destination address groups is 10. */
|
|
@@ -5536,7 +5544,7 @@ declare namespace gapi.client {
|
|
|
5536
5544
|
* could have either valid_until_time or valid_until_duration. ResizeRequest.status.queuing_policy always contains absolute time as calculated by the server when the request is queued.
|
|
5537
5545
|
*/
|
|
5538
5546
|
status?: InstanceGroupManagerResizeRequestStatus;
|
|
5539
|
-
/** [Output Only] The URL of a zone where the resize request is located. */
|
|
5547
|
+
/** [Output Only] The URL of a zone where the resize request is located. Populated only for zonal resize requests. */
|
|
5540
5548
|
zone?: string;
|
|
5541
5549
|
}
|
|
5542
5550
|
interface InstanceGroupManagerResizeRequestsListResponse {
|
|
@@ -8581,7 +8589,10 @@ declare namespace gapi.client {
|
|
|
8581
8589
|
* IPV4_IPV6.
|
|
8582
8590
|
*/
|
|
8583
8591
|
ipv6AccessType?: string;
|
|
8584
|
-
/**
|
|
8592
|
+
/**
|
|
8593
|
+
* An IPv6 internal network address for this network interface. To use a static internal IP address, it must be unused and in the same region as the instance's zone. If not specified,
|
|
8594
|
+
* GCP will automatically assign an internal IPv6 address from the instance's subnetwork.
|
|
8595
|
+
*/
|
|
8585
8596
|
ipv6Address?: string;
|
|
8586
8597
|
/** [Output Only] Type of the resource. Always compute#networkInterface for network interfaces. */
|
|
8587
8598
|
kind?: string;
|
|
@@ -11833,6 +11844,13 @@ declare namespace gapi.client {
|
|
|
11833
11844
|
advertiseMode?: string;
|
|
11834
11845
|
/** BFD configuration for the BGP peering. */
|
|
11835
11846
|
bfd?: RouterBgpPeerBfd;
|
|
11847
|
+
/** User-defined Custom Learned Route IP range list for a BGP session. */
|
|
11848
|
+
customLearnedIpRanges?: RouterBgpPeerCustomLearnedIpRange[];
|
|
11849
|
+
/**
|
|
11850
|
+
* User-defined Custom Learned Route Priority for a BGP session. This will be applied to all Custom Learned Route ranges of the BGP session, if not given, google-managed priority of
|
|
11851
|
+
* 100 is used.
|
|
11852
|
+
*/
|
|
11853
|
+
customLearnedRoutePriority?: number;
|
|
11836
11854
|
/**
|
|
11837
11855
|
* The status of the BGP peer connection. If set to FALSE, any active session with the peer is terminated and all associated routing information is removed. If set to TRUE, the peer
|
|
11838
11856
|
* connection can be established with routing information. The default is TRUE.
|
|
@@ -11909,6 +11927,13 @@ declare namespace gapi.client {
|
|
|
11909
11927
|
*/
|
|
11910
11928
|
slowTimerInterval?: number;
|
|
11911
11929
|
}
|
|
11930
|
+
interface RouterBgpPeerCustomLearnedIpRange {
|
|
11931
|
+
/**
|
|
11932
|
+
* The Custom Learned Route IP range. Must be a valid CIDR-formatted prefix. If an IP is provided without a subnet mask, it is interpreted as a /32 singular IP range for IPv4, and /128
|
|
11933
|
+
* for IPv6.
|
|
11934
|
+
*/
|
|
11935
|
+
range?: string;
|
|
11936
|
+
}
|
|
11912
11937
|
interface RouterInterface {
|
|
11913
11938
|
/**
|
|
11914
11939
|
* IP address and range of the interface. The IP range must be in the RFC3927 link-local IP address space. The value must be a CIDR-formatted string, for example: 169.254.0.1/30. NOTE:
|
|
@@ -12514,7 +12539,9 @@ declare namespace gapi.client {
|
|
|
12514
12539
|
* services. They filter requests before they hit the origin servers. - CLOUD_ARMOR_EDGE: Cloud Armor edge security policies can be configured to filter incoming HTTP requests
|
|
12515
12540
|
* targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. -
|
|
12516
12541
|
* CLOUD_ARMOR_INTERNAL_SERVICE: Cloud Armor internal service policies can be configured to filter HTTP requests targeting services managed by Traffic Director in a service mesh. They
|
|
12517
|
-
* filter requests before the request is served from the application.
|
|
12542
|
+
* filter requests before the request is served from the application. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can be configured to filter packets targeting network load
|
|
12543
|
+
* balancing resources such as backend services, target pools, target instances, and instances with external IPs. They filter requests before the request is served from the
|
|
12544
|
+
* application. This field can be set only at resource creation time.
|
|
12518
12545
|
*/
|
|
12519
12546
|
type?: string;
|
|
12520
12547
|
/**
|
|
@@ -15649,6 +15676,8 @@ declare namespace gapi.client {
|
|
|
15649
15676
|
creationTimestamp?: string;
|
|
15650
15677
|
/** An optional description of this resource. Provide this property when you create the resource. */
|
|
15651
15678
|
description?: string;
|
|
15679
|
+
/** The IP family of the gateway IPs for the HA-VPN gateway interfaces. If not specified, IPV4 will be used. */
|
|
15680
|
+
gatewayIpVersion?: string;
|
|
15652
15681
|
/** [Output Only] The unique identifier for the resource. This identifier is defined by the server. */
|
|
15653
15682
|
id?: string;
|
|
15654
15683
|
/** [Output Only] Type of resource. Always compute#vpnGateway for VPN gateways. */
|
|
@@ -15656,7 +15685,7 @@ declare namespace gapi.client {
|
|
|
15656
15685
|
/**
|
|
15657
15686
|
* A fingerprint for the labels being applied to this VpnGateway, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by
|
|
15658
15687
|
* Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the
|
|
15659
|
-
* request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve
|
|
15688
|
+
* request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a VpnGateway.
|
|
15660
15689
|
*/
|
|
15661
15690
|
labelFingerprint?: string;
|
|
15662
15691
|
/** Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty. */
|
|
@@ -15814,6 +15843,11 @@ declare namespace gapi.client {
|
|
|
15814
15843
|
* (non HA VPN over Cloud Interconnect) HA VPN tunnels, the IP address must be a regional external IP address.
|
|
15815
15844
|
*/
|
|
15816
15845
|
ipAddress?: string;
|
|
15846
|
+
/**
|
|
15847
|
+
* [Output Only] IPv6 address for this VPN interface associated with the VPN gateway. The IPv6 address must be a regional external IPv6 address. The format is RFC 5952 format (e.g.
|
|
15848
|
+
* 2001:db8::2d9:51:0:0).
|
|
15849
|
+
*/
|
|
15850
|
+
ipv6Address?: string;
|
|
15817
15851
|
}
|
|
15818
15852
|
interface VpnTunnel {
|
|
15819
15853
|
/** [Output Only] Creation timestamp in RFC3339 text format. */
|
|
@@ -26294,7 +26328,7 @@ declare namespace gapi.client {
|
|
|
26294
26328
|
uploadType?: string;
|
|
26295
26329
|
/** Legacy name for parameter that has been superseded by `quotaUser`. */
|
|
26296
26330
|
userIp?: string;
|
|
26297
|
-
/**
|
|
26331
|
+
/** Name of the href="/compute/docs/regions-zones/#available">zone scoping this request. Name should conform to RFC1035. */
|
|
26298
26332
|
zone: string;
|
|
26299
26333
|
}): Request<InstanceGroupManagerResizeRequest>;
|
|
26300
26334
|
/** Creates a new resize request that starts provisioning VMs immediately or queues VM creation. */
|
package/package.json
CHANGED
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: 20230201
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -2842,6 +2842,7 @@ gapi.load('client', async () => {
|
|
|
2842
2842
|
{
|
|
2843
2843
|
id: 42,
|
|
2844
2844
|
ipAddress: "Test string",
|
|
2845
|
+
ipv6Address: "Test string",
|
|
2845
2846
|
}
|
|
2846
2847
|
],
|
|
2847
2848
|
kind: "Test string",
|
|
@@ -2966,6 +2967,7 @@ gapi.load('client', async () => {
|
|
|
2966
2967
|
targetServiceAccounts: [
|
|
2967
2968
|
"Test string"
|
|
2968
2969
|
],
|
|
2970
|
+
tlsInspect: true,
|
|
2969
2971
|
});
|
|
2970
2972
|
/** Copies rules to the specified firewall policy. */
|
|
2971
2973
|
await gapi.client.compute.firewallPolicies.cloneRules({
|
|
@@ -3090,6 +3092,7 @@ gapi.load('client', async () => {
|
|
|
3090
3092
|
targetServiceAccounts: [
|
|
3091
3093
|
"Test string"
|
|
3092
3094
|
],
|
|
3095
|
+
tlsInspect: true,
|
|
3093
3096
|
}
|
|
3094
3097
|
],
|
|
3095
3098
|
ruleTupleCount: 42,
|
|
@@ -3210,6 +3213,7 @@ gapi.load('client', async () => {
|
|
|
3210
3213
|
targetServiceAccounts: [
|
|
3211
3214
|
"Test string"
|
|
3212
3215
|
],
|
|
3216
|
+
tlsInspect: true,
|
|
3213
3217
|
}
|
|
3214
3218
|
],
|
|
3215
3219
|
ruleTupleCount: 42,
|
|
@@ -3292,6 +3296,7 @@ gapi.load('client', async () => {
|
|
|
3292
3296
|
targetServiceAccounts: [
|
|
3293
3297
|
"Test string"
|
|
3294
3298
|
],
|
|
3299
|
+
tlsInspect: true,
|
|
3295
3300
|
});
|
|
3296
3301
|
/** Removes an association for the specified firewall policy. */
|
|
3297
3302
|
await gapi.client.compute.firewallPolicies.removeAssociation({
|
|
@@ -11809,6 +11814,7 @@ gapi.load('client', async () => {
|
|
|
11809
11814
|
targetServiceAccounts: [
|
|
11810
11815
|
"Test string"
|
|
11811
11816
|
],
|
|
11817
|
+
tlsInspect: true,
|
|
11812
11818
|
});
|
|
11813
11819
|
/** Copies rules to the specified firewall policy. */
|
|
11814
11820
|
await gapi.client.compute.networkFirewallPolicies.cloneRules({
|
|
@@ -11939,6 +11945,7 @@ gapi.load('client', async () => {
|
|
|
11939
11945
|
targetServiceAccounts: [
|
|
11940
11946
|
"Test string"
|
|
11941
11947
|
],
|
|
11948
|
+
tlsInspect: true,
|
|
11942
11949
|
}
|
|
11943
11950
|
],
|
|
11944
11951
|
ruleTupleCount: 42,
|
|
@@ -12050,6 +12057,7 @@ gapi.load('client', async () => {
|
|
|
12050
12057
|
targetServiceAccounts: [
|
|
12051
12058
|
"Test string"
|
|
12052
12059
|
],
|
|
12060
|
+
tlsInspect: true,
|
|
12053
12061
|
}
|
|
12054
12062
|
],
|
|
12055
12063
|
ruleTupleCount: 42,
|
|
@@ -12133,6 +12141,7 @@ gapi.load('client', async () => {
|
|
|
12133
12141
|
targetServiceAccounts: [
|
|
12134
12142
|
"Test string"
|
|
12135
12143
|
],
|
|
12144
|
+
tlsInspect: true,
|
|
12136
12145
|
});
|
|
12137
12146
|
/** Removes an association for the specified firewall policy. */
|
|
12138
12147
|
await gapi.client.compute.networkFirewallPolicies.removeAssociation({
|
|
@@ -19877,6 +19886,7 @@ gapi.load('client', async () => {
|
|
|
19877
19886
|
targetServiceAccounts: [
|
|
19878
19887
|
"Test string"
|
|
19879
19888
|
],
|
|
19889
|
+
tlsInspect: true,
|
|
19880
19890
|
});
|
|
19881
19891
|
/** Copies rules to the specified network firewall policy. */
|
|
19882
19892
|
await gapi.client.compute.regionNetworkFirewallPolicies.cloneRules({
|
|
@@ -20020,6 +20030,7 @@ gapi.load('client', async () => {
|
|
|
20020
20030
|
targetServiceAccounts: [
|
|
20021
20031
|
"Test string"
|
|
20022
20032
|
],
|
|
20033
|
+
tlsInspect: true,
|
|
20023
20034
|
}
|
|
20024
20035
|
],
|
|
20025
20036
|
ruleTupleCount: 42,
|
|
@@ -20133,6 +20144,7 @@ gapi.load('client', async () => {
|
|
|
20133
20144
|
targetServiceAccounts: [
|
|
20134
20145
|
"Test string"
|
|
20135
20146
|
],
|
|
20147
|
+
tlsInspect: true,
|
|
20136
20148
|
}
|
|
20137
20149
|
],
|
|
20138
20150
|
ruleTupleCount: 42,
|
|
@@ -20217,6 +20229,7 @@ gapi.load('client', async () => {
|
|
|
20217
20229
|
targetServiceAccounts: [
|
|
20218
20230
|
"Test string"
|
|
20219
20231
|
],
|
|
20232
|
+
tlsInspect: true,
|
|
20220
20233
|
});
|
|
20221
20234
|
/** Removes an association for the specified network firewall policy. */
|
|
20222
20235
|
await gapi.client.compute.regionNetworkFirewallPolicies.removeAssociation({
|
|
@@ -25165,6 +25178,12 @@ gapi.load('client', async () => {
|
|
|
25165
25178
|
sessionInitializationMode: "Test string",
|
|
25166
25179
|
slowTimerInterval: 42,
|
|
25167
25180
|
},
|
|
25181
|
+
customLearnedIpRanges: [
|
|
25182
|
+
{
|
|
25183
|
+
range: "Test string",
|
|
25184
|
+
}
|
|
25185
|
+
],
|
|
25186
|
+
customLearnedRoutePriority: 42,
|
|
25168
25187
|
enable: "Test string",
|
|
25169
25188
|
enableIpv6: true,
|
|
25170
25189
|
interfaceName: "Test string",
|
|
@@ -25324,6 +25343,12 @@ gapi.load('client', async () => {
|
|
|
25324
25343
|
sessionInitializationMode: "Test string",
|
|
25325
25344
|
slowTimerInterval: 42,
|
|
25326
25345
|
},
|
|
25346
|
+
customLearnedIpRanges: [
|
|
25347
|
+
{
|
|
25348
|
+
range: "Test string",
|
|
25349
|
+
}
|
|
25350
|
+
],
|
|
25351
|
+
customLearnedRoutePriority: 42,
|
|
25327
25352
|
enable: "Test string",
|
|
25328
25353
|
enableIpv6: true,
|
|
25329
25354
|
interfaceName: "Test string",
|
|
@@ -25472,6 +25497,12 @@ gapi.load('client', async () => {
|
|
|
25472
25497
|
sessionInitializationMode: "Test string",
|
|
25473
25498
|
slowTimerInterval: 42,
|
|
25474
25499
|
},
|
|
25500
|
+
customLearnedIpRanges: [
|
|
25501
|
+
{
|
|
25502
|
+
range: "Test string",
|
|
25503
|
+
}
|
|
25504
|
+
],
|
|
25505
|
+
customLearnedRoutePriority: 42,
|
|
25475
25506
|
enable: "Test string",
|
|
25476
25507
|
enableIpv6: true,
|
|
25477
25508
|
interfaceName: "Test string",
|
|
@@ -25634,6 +25665,12 @@ gapi.load('client', async () => {
|
|
|
25634
25665
|
sessionInitializationMode: "Test string",
|
|
25635
25666
|
slowTimerInterval: 42,
|
|
25636
25667
|
},
|
|
25668
|
+
customLearnedIpRanges: [
|
|
25669
|
+
{
|
|
25670
|
+
range: "Test string",
|
|
25671
|
+
}
|
|
25672
|
+
],
|
|
25673
|
+
customLearnedRoutePriority: 42,
|
|
25637
25674
|
enable: "Test string",
|
|
25638
25675
|
enableIpv6: true,
|
|
25639
25676
|
interfaceName: "Test string",
|
|
@@ -31099,6 +31136,7 @@ gapi.load('client', async () => {
|
|
|
31099
31136
|
}, {
|
|
31100
31137
|
creationTimestamp: "Test string",
|
|
31101
31138
|
description: "Test string",
|
|
31139
|
+
gatewayIpVersion: "Test string",
|
|
31102
31140
|
id: "Test string",
|
|
31103
31141
|
kind: "Test string",
|
|
31104
31142
|
labelFingerprint: "Test string",
|
|
@@ -31115,6 +31153,7 @@ gapi.load('client', async () => {
|
|
|
31115
31153
|
id: 42,
|
|
31116
31154
|
interconnectAttachment: "Test string",
|
|
31117
31155
|
ipAddress: "Test string",
|
|
31156
|
+
ipv6Address: "Test string",
|
|
31118
31157
|
}
|
|
31119
31158
|
],
|
|
31120
31159
|
});
|