@maxim_mazurok/gapi.client.compute-alpha 0.0.20231011 → 0.0.20231017
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 +85 -14
- package/package.json +1 -1
- package/readme.md +5 -0
- package/tests.ts +24 -8
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: 20231017
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -1612,13 +1612,14 @@ declare namespace gapi.client {
|
|
|
1612
1612
|
id?:
|
|
1613
1613
|
string;
|
|
1614
1614
|
/**
|
|
1615
|
-
* Specifies preference
|
|
1616
|
-
* of the
|
|
1617
|
-
* the health of the backends. This is the default setting. - PREFER_IPV6: Prioritize the connection to the
|
|
1618
|
-
* IPv6 address). - IPV6_ONLY: Only send IPv6 traffic to the backends of the
|
|
1619
|
-
* the client to the proxy. Only IPv6 health
|
|
1620
|
-
* (load balancing scheme EXTERNAL_MANAGED), - Regional External HTTPS Load Balancing, - Internal TCP Proxy (load balancing scheme
|
|
1621
|
-
* Balancing (load balancing scheme INTERNAL_MANAGED), - Traffic Director with Envoy proxies and proxyless gRPC (load balancing scheme
|
|
1615
|
+
* Specifies a preference for traffic sent from the proxy to the backend (or from the client to the backend for proxyless gRPC). The possible values are: - IPV4_ONLY: Only send IPv4
|
|
1616
|
+
* traffic to the backends of the backend service (Instance Group, Managed Instance Group, Network Endpoint Group), regardless of traffic from the client to the proxy. Only IPv4 health
|
|
1617
|
+
* checks are used to check the health of the backends. This is the default setting. - PREFER_IPV6: Prioritize the connection to the endpoint's IPv6 address over its IPv4 address
|
|
1618
|
+
* (provided there is a healthy IPv6 address). - IPV6_ONLY: Only send IPv6 traffic to the backends of the backend service (Instance Group, Managed Instance Group, Network Endpoint
|
|
1619
|
+
* Group), regardless of traffic from the client to the proxy. Only IPv6 health checks are used to check the health of the backends. This field is applicable to either: - Advanced
|
|
1620
|
+
* Global External HTTPS Load Balancing (load balancing scheme EXTERNAL_MANAGED), - Regional External HTTPS Load Balancing, - Internal TCP Proxy (load balancing scheme
|
|
1621
|
+
* INTERNAL_MANAGED), - Regional Internal HTTPS Load Balancing (load balancing scheme INTERNAL_MANAGED), - Traffic Director with Envoy proxies and proxyless gRPC (load balancing scheme
|
|
1622
|
+
* INTERNAL_SELF_MANAGED).
|
|
1622
1623
|
*/
|
|
1623
1624
|
ipAddressSelectionPolicy?:
|
|
1624
1625
|
string;
|
|
@@ -2582,6 +2583,12 @@ declare namespace gapi.client {
|
|
|
2582
2583
|
/** [Output Only] Commitment end time in RFC3339 text format. */
|
|
2583
2584
|
endTimestamp?:
|
|
2584
2585
|
string;
|
|
2586
|
+
/**
|
|
2587
|
+
* Specifies the already existing reservations to attach to the Commitment. This field is optional, and it can be a full or partial URL. For example, the following are valid URLs to an
|
|
2588
|
+
* reservation: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /reservations/reservation - projects/project/zones/zone/reservations/reservation
|
|
2589
|
+
*/
|
|
2590
|
+
existingReservations?:
|
|
2591
|
+
string[];
|
|
2585
2592
|
/** [Output Only] The unique identifier for the resource. This identifier is defined by the server. */
|
|
2586
2593
|
id?:
|
|
2587
2594
|
string;
|
|
@@ -11197,12 +11204,6 @@ declare namespace gapi.client {
|
|
|
11197
11204
|
/** Optional port number of network endpoint. If not specified, the defaultPort for the network endpoint group will be used. */
|
|
11198
11205
|
port?:
|
|
11199
11206
|
number;
|
|
11200
|
-
/**
|
|
11201
|
-
* The name of the zone where the instance hosting the network endpoint is located (valid only for regional GCE_VM_IP_PORT NEGs). It should comply with RFC1035. The zone must belong to
|
|
11202
|
-
* the region of the Network Endpoint Group.
|
|
11203
|
-
*/
|
|
11204
|
-
zone?:
|
|
11205
|
-
string;
|
|
11206
11207
|
}
|
|
11207
11208
|
interface NetworkEndpointGroup {
|
|
11208
11209
|
/** Metadata defined as annotations on the network endpoint group. */
|
|
@@ -15596,6 +15597,9 @@ declare namespace gapi.client {
|
|
|
15596
15597
|
string;
|
|
15597
15598
|
}
|
|
15598
15599
|
interface ResourceStatus {
|
|
15600
|
+
/** [Output Only] Contains last termination details why the instance was terminated. */
|
|
15601
|
+
lastInstanceTerminationDetails?:
|
|
15602
|
+
ResourceStatusLastInstanceTerminationDetails;
|
|
15599
15603
|
/** [Output Only] An opaque ID of the host on which the VM is running. */
|
|
15600
15604
|
physicalHost?:
|
|
15601
15605
|
string;
|
|
@@ -15605,6 +15609,11 @@ declare namespace gapi.client {
|
|
|
15605
15609
|
serviceIntegrationStatuses?:
|
|
15606
15610
|
{ [P in string]: ResourceStatusServiceIntegrationStatus };
|
|
15607
15611
|
}
|
|
15612
|
+
interface ResourceStatusLastInstanceTerminationDetails {
|
|
15613
|
+
/** Reason for termination */
|
|
15614
|
+
terminationReason?:
|
|
15615
|
+
string;
|
|
15616
|
+
}
|
|
15608
15617
|
interface ResourceStatusScheduling {
|
|
15609
15618
|
/**
|
|
15610
15619
|
* Specifies the availability domain (AD), which this instance should be scheduled on. The AD belongs to the spread GroupPlacementPolicy resource policy that has been assigned to the
|
|
@@ -41594,6 +41603,68 @@ declare namespace gapi.client {
|
|
|
41594
41603
|
zone:
|
|
41595
41604
|
string;
|
|
41596
41605
|
}): Request<Operation>;
|
|
41606
|
+
/**
|
|
41607
|
+
* Deletes one network interface from an active instance. InstancesDeleteNetworkInterfaceRequest indicates: - instance from which to delete, using project+zone+resource_id fields; -
|
|
41608
|
+
* network interface to be deleted, using network_interface_name field; Only VLAN interface deletion is supported for now.
|
|
41609
|
+
*/
|
|
41610
|
+
deleteNetworkInterface(request?: {
|
|
41611
|
+
/** V1 error format. */
|
|
41612
|
+
"$.xgafv"?:
|
|
41613
|
+
string;
|
|
41614
|
+
/** OAuth access token. */
|
|
41615
|
+
access_token?:
|
|
41616
|
+
string;
|
|
41617
|
+
/** Data format for response. */
|
|
41618
|
+
alt?:
|
|
41619
|
+
string;
|
|
41620
|
+
/** JSONP */
|
|
41621
|
+
callback?:
|
|
41622
|
+
string;
|
|
41623
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
41624
|
+
fields?:
|
|
41625
|
+
string;
|
|
41626
|
+
/** The instance name for this request stored as resource_id. Name should conform to RFC1035 or be an unsigned long integer. */
|
|
41627
|
+
instance:
|
|
41628
|
+
string;
|
|
41629
|
+
/** 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. */
|
|
41630
|
+
key?:
|
|
41631
|
+
string;
|
|
41632
|
+
/** The name of the network interface to be deleted from the instance. Only VLAN network interface deletion is supported. */
|
|
41633
|
+
networkInterfaceName:
|
|
41634
|
+
string;
|
|
41635
|
+
/** OAuth 2.0 token for the current user. */
|
|
41636
|
+
oauth_token?:
|
|
41637
|
+
string;
|
|
41638
|
+
/** Returns response with indentations and line breaks. */
|
|
41639
|
+
prettyPrint?:
|
|
41640
|
+
boolean;
|
|
41641
|
+
/** Project ID for this request. */
|
|
41642
|
+
project:
|
|
41643
|
+
string;
|
|
41644
|
+
/** 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. */
|
|
41645
|
+
quotaUser?:
|
|
41646
|
+
string;
|
|
41647
|
+
/**
|
|
41648
|
+
* 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
|
|
41649
|
+
* 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
|
|
41650
|
+
* 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
|
|
41651
|
+
* commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
|
41652
|
+
*/
|
|
41653
|
+
requestId?:
|
|
41654
|
+
string;
|
|
41655
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
41656
|
+
upload_protocol?:
|
|
41657
|
+
string;
|
|
41658
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
41659
|
+
uploadType?:
|
|
41660
|
+
string;
|
|
41661
|
+
/** Legacy name for parameter that has been superseded by `quotaUser`. */
|
|
41662
|
+
userIp?:
|
|
41663
|
+
string;
|
|
41664
|
+
/** The name of the zone for this request. */
|
|
41665
|
+
zone:
|
|
41666
|
+
string;
|
|
41667
|
+
}): Request<Operation>;
|
|
41597
41668
|
/** Detaches a disk from an instance. */
|
|
41598
41669
|
detachDisk(request?: {
|
|
41599
41670
|
/** V1 error format. */
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -1266,6 +1266,11 @@ Deletes an access config from an instance's network interface.
|
|
|
1266
1266
|
*/
|
|
1267
1267
|
await gapi.client.compute.instances.deleteAccessConfig({ accessConfig: "accessConfig", instance: "instance", networkInterface: "networkInterface", project: "project", zone: "zone", });
|
|
1268
1268
|
|
|
1269
|
+
/*
|
|
1270
|
+
Deletes one network interface from an active instance. InstancesDeleteNetworkInterfaceRequest indicates: - instance from which to delete, using project+zone+resource_id fields; - network interface to be deleted, using network_interface_name field; Only VLAN interface deletion is supported for now.
|
|
1271
|
+
*/
|
|
1272
|
+
await gapi.client.compute.instances.deleteNetworkInterface({ instance: "instance", networkInterfaceName: "networkInterfaceName", project: "project", zone: "zone", });
|
|
1273
|
+
|
|
1269
1274
|
/*
|
|
1270
1275
|
Detaches a disk from an instance.
|
|
1271
1276
|
*/
|
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: 20231017
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -4517,7 +4517,6 @@ gapi.load('client', async () => {
|
|
|
4517
4517
|
ipAddress: "Test string",
|
|
4518
4518
|
ipv6Address: "Test string",
|
|
4519
4519
|
port: 42,
|
|
4520
|
-
zone: "Test string",
|
|
4521
4520
|
}
|
|
4522
4521
|
],
|
|
4523
4522
|
});
|
|
@@ -4544,7 +4543,6 @@ gapi.load('client', async () => {
|
|
|
4544
4543
|
ipAddress: "Test string",
|
|
4545
4544
|
ipv6Address: "Test string",
|
|
4546
4545
|
port: 42,
|
|
4547
|
-
zone: "Test string",
|
|
4548
4546
|
}
|
|
4549
4547
|
],
|
|
4550
4548
|
});
|
|
@@ -7508,6 +7506,17 @@ gapi.load('client', async () => {
|
|
|
7508
7506
|
requestId: "Test string",
|
|
7509
7507
|
zone: "Test string",
|
|
7510
7508
|
});
|
|
7509
|
+
/**
|
|
7510
|
+
* Deletes one network interface from an active instance. InstancesDeleteNetworkInterfaceRequest indicates: - instance from which to delete, using project+zone+resource_id fields; -
|
|
7511
|
+
* network interface to be deleted, using network_interface_name field; Only VLAN interface deletion is supported for now.
|
|
7512
|
+
*/
|
|
7513
|
+
await gapi.client.compute.instances.deleteNetworkInterface({
|
|
7514
|
+
instance: "Test string",
|
|
7515
|
+
networkInterfaceName: "Test string",
|
|
7516
|
+
project: "Test string",
|
|
7517
|
+
requestId: "Test string",
|
|
7518
|
+
zone: "Test string",
|
|
7519
|
+
});
|
|
7511
7520
|
/** Detaches a disk from an instance. */
|
|
7512
7521
|
await gapi.client.compute.instances.detachDisk({
|
|
7513
7522
|
deviceName: "Test string",
|
|
@@ -7854,6 +7863,9 @@ gapi.load('client', async () => {
|
|
|
7854
7863
|
"Test string"
|
|
7855
7864
|
],
|
|
7856
7865
|
resourceStatus: {
|
|
7866
|
+
lastInstanceTerminationDetails: {
|
|
7867
|
+
terminationReason: "Test string",
|
|
7868
|
+
},
|
|
7857
7869
|
physicalHost: "Test string",
|
|
7858
7870
|
scheduling: {
|
|
7859
7871
|
availabilityDomain: 42,
|
|
@@ -8726,6 +8738,9 @@ gapi.load('client', async () => {
|
|
|
8726
8738
|
"Test string"
|
|
8727
8739
|
],
|
|
8728
8740
|
resourceStatus: {
|
|
8741
|
+
lastInstanceTerminationDetails: {
|
|
8742
|
+
terminationReason: "Test string",
|
|
8743
|
+
},
|
|
8729
8744
|
physicalHost: "Test string",
|
|
8730
8745
|
scheduling: {
|
|
8731
8746
|
availabilityDomain: 42,
|
|
@@ -11747,7 +11762,6 @@ gapi.load('client', async () => {
|
|
|
11747
11762
|
ipAddress: "Test string",
|
|
11748
11763
|
ipv6Address: "Test string",
|
|
11749
11764
|
port: 42,
|
|
11750
|
-
zone: "Test string",
|
|
11751
11765
|
}
|
|
11752
11766
|
],
|
|
11753
11767
|
});
|
|
@@ -11779,7 +11793,6 @@ gapi.load('client', async () => {
|
|
|
11779
11793
|
ipAddress: "Test string",
|
|
11780
11794
|
ipv6Address: "Test string",
|
|
11781
11795
|
port: 42,
|
|
11782
|
-
zone: "Test string",
|
|
11783
11796
|
}
|
|
11784
11797
|
],
|
|
11785
11798
|
});
|
|
@@ -11880,7 +11893,6 @@ gapi.load('client', async () => {
|
|
|
11880
11893
|
ipAddress: "Test string",
|
|
11881
11894
|
ipv6Address: "Test string",
|
|
11882
11895
|
port: 42,
|
|
11883
|
-
zone: "Test string",
|
|
11884
11896
|
},
|
|
11885
11897
|
}
|
|
11886
11898
|
],
|
|
@@ -16452,6 +16464,9 @@ gapi.load('client', async () => {
|
|
|
16452
16464
|
creationTimestamp: "Test string",
|
|
16453
16465
|
description: "Test string",
|
|
16454
16466
|
endTimestamp: "Test string",
|
|
16467
|
+
existingReservations: [
|
|
16468
|
+
"Test string"
|
|
16469
|
+
],
|
|
16455
16470
|
id: "Test string",
|
|
16456
16471
|
kind: "Test string",
|
|
16457
16472
|
licenseResource: {
|
|
@@ -16628,6 +16643,9 @@ gapi.load('client', async () => {
|
|
|
16628
16643
|
creationTimestamp: "Test string",
|
|
16629
16644
|
description: "Test string",
|
|
16630
16645
|
endTimestamp: "Test string",
|
|
16646
|
+
existingReservations: [
|
|
16647
|
+
"Test string"
|
|
16648
|
+
],
|
|
16631
16649
|
id: "Test string",
|
|
16632
16650
|
kind: "Test string",
|
|
16633
16651
|
licenseResource: {
|
|
@@ -19858,7 +19876,6 @@ gapi.load('client', async () => {
|
|
|
19858
19876
|
ipAddress: "Test string",
|
|
19859
19877
|
ipv6Address: "Test string",
|
|
19860
19878
|
port: 42,
|
|
19861
|
-
zone: "Test string",
|
|
19862
19879
|
}
|
|
19863
19880
|
],
|
|
19864
19881
|
});
|
|
@@ -19887,7 +19904,6 @@ gapi.load('client', async () => {
|
|
|
19887
19904
|
ipAddress: "Test string",
|
|
19888
19905
|
ipv6Address: "Test string",
|
|
19889
19906
|
port: 42,
|
|
19890
|
-
zone: "Test string",
|
|
19891
19907
|
}
|
|
19892
19908
|
],
|
|
19893
19909
|
});
|