@maxim_mazurok/gapi.client.compute-alpha 0.0.20240903 → 0.0.20240919
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 +93 -4
- package/package.json +1 -1
- package/readme.md +5 -0
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: 20240919
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -855,6 +855,8 @@ declare namespace gapi.client {
|
|
|
855
855
|
consistentHash?: ConsistentHashLoadBalancerSettings;
|
|
856
856
|
/** [Output Only] Creation timestamp in RFC3339 text format. */
|
|
857
857
|
creationTimestamp?: string;
|
|
858
|
+
/** List of custom metrics that are used for the WEIGHTED_ROUND_ROBIN locality_lb_policy. */
|
|
859
|
+
customMetrics?: BackendServiceCustomMetric[];
|
|
858
860
|
/** Headers that the load balancer adds to proxied requests. See [Creating custom headers](https://cloud.google.com/load-balancing/docs/custom-headers). */
|
|
859
861
|
customRequestHeaders?: string[];
|
|
860
862
|
/** Headers that the load balancer adds to proxied responses. See [Creating custom headers](https://cloud.google.com/load-balancing/docs/custom-headers). */
|
|
@@ -1013,6 +1015,12 @@ declare namespace gapi.client {
|
|
|
1013
1015
|
/** Specifies the key used for connection tracking. There are two options: - PER_CONNECTION: This is the default mode. The Connection Tracking is performed as per the Connection Key (default Hash Method) for the specific protocol. - PER_SESSION: The Connection Tracking is performed as per the configured Session Affinity. It matches the configured Session Affinity. For more details, see [Tracking Mode for Network Load Balancing](https://cloud.google.com/load-balancing/docs/network/networklb-backend-service#tracking-mode) and [Tracking Mode for Internal TCP/UDP Load Balancing](https://cloud.google.com/load-balancing/docs/internal#tracking-mode). */
|
|
1014
1016
|
trackingMode?: string;
|
|
1015
1017
|
}
|
|
1018
|
+
interface BackendServiceCustomMetric {
|
|
1019
|
+
/** If true, the metric data is not used for load balancing. */
|
|
1020
|
+
dryRun?: boolean;
|
|
1021
|
+
/** Name of a custom utilization signal. The name must be 1-64 characters long and match the regular expression [a-z]([-_.a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, period, underscore, lowercase letter, or digit, except the last character, which cannot be a dash, period, or underscore. For usage guidelines, see Custom Metrics balancing mode. This field can only be used for a global or regional backend service with the loadBalancingScheme set to EXTERNAL_MANAGED, INTERNAL_MANAGED INTERNAL_SELF_MANAGED. */
|
|
1022
|
+
name?: string;
|
|
1023
|
+
}
|
|
1016
1024
|
interface BackendServiceFailoverPolicy {
|
|
1017
1025
|
/** This can be set to true only if the protocol is TCP. The default is false. */
|
|
1018
1026
|
disableConnectionDrainOnFailover?: boolean;
|
|
@@ -1317,7 +1325,7 @@ declare namespace gapi.client {
|
|
|
1317
1325
|
count?: string;
|
|
1318
1326
|
/** The instance properties defining the VM instances to be created. Required if sourceInstanceTemplate is not provided. */
|
|
1319
1327
|
instanceProperties?: InstanceProperties;
|
|
1320
|
-
/** Policy for
|
|
1328
|
+
/** Policy for choosing target zone. For more information, see Create VMs in bulk. */
|
|
1321
1329
|
locationPolicy?: LocationPolicy;
|
|
1322
1330
|
/** The minimum number of instances to create. If no min_count is specified then count is used as the default value. If min_count instances cannot be created, then no instances will be created and instances already created will be deleted. */
|
|
1323
1331
|
minCount?: string;
|
|
@@ -4668,6 +4676,13 @@ declare namespace gapi.client {
|
|
|
4668
4676
|
/** Resource policies to be removed from this instance. */
|
|
4669
4677
|
resourcePolicies?: string[];
|
|
4670
4678
|
}
|
|
4679
|
+
interface InstancesReportHostAsFaultyRequest {
|
|
4680
|
+
faultReasons?: InstancesReportHostAsFaultyRequestFaultReason[];
|
|
4681
|
+
}
|
|
4682
|
+
interface InstancesReportHostAsFaultyRequestFaultReason {
|
|
4683
|
+
behavior?: string;
|
|
4684
|
+
description?: string;
|
|
4685
|
+
}
|
|
4671
4686
|
interface InstancesResumeRequest {
|
|
4672
4687
|
/** Array of disks associated with this instance that are protected with a customer-supplied encryption key. In order to resume the instance, the disk url and its corresponding key must be provided. If the disk is not protected with a customer-supplied encryption key it should not be specified. */
|
|
4673
4688
|
disks?: CustomerEncryptionKeyProtectedDisk[];
|
|
@@ -5004,7 +5019,7 @@ declare namespace gapi.client {
|
|
|
5004
5019
|
adminEnabled?: boolean;
|
|
5005
5020
|
/** Configuration for enabling Application Aware Interconnect (AAI) on this Cloud Interconnect connection between Google and your on-premises router. */
|
|
5006
5021
|
applicationAwareInterconnect?: InterconnectApplicationAwareInterconnect;
|
|
5007
|
-
/** [Output only] List of features available for this Interconnect connection, which can take one of the following values: -
|
|
5022
|
+
/** [Output only] List of features available for this Interconnect connection, which can take one of the following values: - IF_MACSEC If present then the Interconnect connection is provisioned on MACsec capable hardware ports. If not present then the Interconnect connection is provisioned on non-MACsec capable ports and MACsec isn't supported and enabling MACsec fails. */
|
|
5008
5023
|
availableFeatures?: string[];
|
|
5009
5024
|
/** [Output Only] A list of CircuitInfo objects, that describe the individual circuits in this LAG. */
|
|
5010
5025
|
circuitInfos?: InterconnectCircuitInfo[];
|
|
@@ -5052,7 +5067,7 @@ declare namespace gapi.client {
|
|
|
5052
5067
|
provisionedLinkCount?: number;
|
|
5053
5068
|
/** Indicates that this is a Cross-Cloud Interconnect. This field specifies the location outside of Google's network that the interconnect is connected to. */
|
|
5054
5069
|
remoteLocation?: string;
|
|
5055
|
-
/** Optional. List of features requested for this Interconnect connection, which can take one of the following values: -
|
|
5070
|
+
/** Optional. List of features requested for this Interconnect connection, which can take one of the following values: - IF_MACSEC If specified then the connection is created on MACsec capable hardware ports. If not specified, the default value is false, which allocates non-MACsec capable ports first if available. This parameter can be provided only with Interconnect INSERT. It isn't valid for Interconnect PATCH. */
|
|
5056
5071
|
requestedFeatures?: string[];
|
|
5057
5072
|
/** Target number of physical links in the link bundle, as requested by the customer. */
|
|
5058
5073
|
requestedLinkCount?: number;
|
|
@@ -26162,6 +26177,80 @@ declare namespace gapi.client {
|
|
|
26162
26177
|
},
|
|
26163
26178
|
body: InstancesRemoveResourcePoliciesRequest
|
|
26164
26179
|
): Request<Operation>;
|
|
26180
|
+
/** Mark the host as faulty and try to restart the instance on a new host. */
|
|
26181
|
+
reportHostAsFaulty(request: {
|
|
26182
|
+
/** V1 error format. */
|
|
26183
|
+
'$.xgafv'?: string;
|
|
26184
|
+
/** OAuth access token. */
|
|
26185
|
+
access_token?: string;
|
|
26186
|
+
/** Data format for response. */
|
|
26187
|
+
alt?: string;
|
|
26188
|
+
/** JSONP */
|
|
26189
|
+
callback?: string;
|
|
26190
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
26191
|
+
fields?: string;
|
|
26192
|
+
/** Name of the instance scoping this request. */
|
|
26193
|
+
instance: string;
|
|
26194
|
+
/** 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. */
|
|
26195
|
+
key?: string;
|
|
26196
|
+
/** OAuth 2.0 token for the current user. */
|
|
26197
|
+
oauth_token?: string;
|
|
26198
|
+
/** Returns response with indentations and line breaks. */
|
|
26199
|
+
prettyPrint?: boolean;
|
|
26200
|
+
/** Project ID for this request. */
|
|
26201
|
+
project: string;
|
|
26202
|
+
/** 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. */
|
|
26203
|
+
quotaUser?: string;
|
|
26204
|
+
/** 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 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 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 commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). */
|
|
26205
|
+
requestId?: string;
|
|
26206
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
26207
|
+
upload_protocol?: string;
|
|
26208
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
26209
|
+
uploadType?: string;
|
|
26210
|
+
/** Legacy name for parameter that has been superseded by `quotaUser`. */
|
|
26211
|
+
userIp?: string;
|
|
26212
|
+
/** The name of the zone for this request. */
|
|
26213
|
+
zone: string;
|
|
26214
|
+
/** Request body */
|
|
26215
|
+
resource: InstancesReportHostAsFaultyRequest;
|
|
26216
|
+
}): Request<Operation>;
|
|
26217
|
+
reportHostAsFaulty(
|
|
26218
|
+
request: {
|
|
26219
|
+
/** V1 error format. */
|
|
26220
|
+
'$.xgafv'?: string;
|
|
26221
|
+
/** OAuth access token. */
|
|
26222
|
+
access_token?: string;
|
|
26223
|
+
/** Data format for response. */
|
|
26224
|
+
alt?: string;
|
|
26225
|
+
/** JSONP */
|
|
26226
|
+
callback?: string;
|
|
26227
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
26228
|
+
fields?: string;
|
|
26229
|
+
/** Name of the instance scoping this request. */
|
|
26230
|
+
instance: string;
|
|
26231
|
+
/** 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. */
|
|
26232
|
+
key?: string;
|
|
26233
|
+
/** OAuth 2.0 token for the current user. */
|
|
26234
|
+
oauth_token?: string;
|
|
26235
|
+
/** Returns response with indentations and line breaks. */
|
|
26236
|
+
prettyPrint?: boolean;
|
|
26237
|
+
/** Project ID for this request. */
|
|
26238
|
+
project: string;
|
|
26239
|
+
/** 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. */
|
|
26240
|
+
quotaUser?: string;
|
|
26241
|
+
/** 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 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 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 commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). */
|
|
26242
|
+
requestId?: string;
|
|
26243
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
26244
|
+
upload_protocol?: string;
|
|
26245
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
26246
|
+
uploadType?: string;
|
|
26247
|
+
/** Legacy name for parameter that has been superseded by `quotaUser`. */
|
|
26248
|
+
userIp?: string;
|
|
26249
|
+
/** The name of the zone for this request. */
|
|
26250
|
+
zone: string;
|
|
26251
|
+
},
|
|
26252
|
+
body: InstancesReportHostAsFaultyRequest
|
|
26253
|
+
): Request<Operation>;
|
|
26165
26254
|
/** Performs a reset on the instance. This is a hard reset. The VM does not do a graceful shutdown. For more information, see Resetting an instance. */
|
|
26166
26255
|
reset(request?: {
|
|
26167
26256
|
/** V1 error format. */
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -1385,6 +1385,11 @@ Removes resource policies from an instance.
|
|
|
1385
1385
|
*/
|
|
1386
1386
|
await gapi.client.compute.instances.removeResourcePolicies({ instance: "instance", project: "project", zone: "zone", });
|
|
1387
1387
|
|
|
1388
|
+
/*
|
|
1389
|
+
Mark the host as faulty and try to restart the instance on a new host.
|
|
1390
|
+
*/
|
|
1391
|
+
await gapi.client.compute.instances.reportHostAsFaulty({ instance: "instance", project: "project", zone: "zone", });
|
|
1392
|
+
|
|
1388
1393
|
/*
|
|
1389
1394
|
Performs a reset on the instance. This is a hard reset. The VM does not do a graceful shutdown. For more information, see Resetting an instance.
|
|
1390
1395
|
*/
|