@maxim_mazurok/gapi.client.compute-alpha 0.0.20240917 → 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.
Files changed (3) hide show
  1. package/index.d.ts +83 -2
  2. package/package.json +1 -1
  3. 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: 20240917
12
+ // Revision: 20240919
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -1325,7 +1325,7 @@ declare namespace gapi.client {
1325
1325
  count?: string;
1326
1326
  /** The instance properties defining the VM instances to be created. Required if sourceInstanceTemplate is not provided. */
1327
1327
  instanceProperties?: InstanceProperties;
1328
- /** Policy for chosing target zone. For more information, see Create VMs in bulk . */
1328
+ /** Policy for choosing target zone. For more information, see Create VMs in bulk. */
1329
1329
  locationPolicy?: LocationPolicy;
1330
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. */
1331
1331
  minCount?: string;
@@ -4676,6 +4676,13 @@ declare namespace gapi.client {
4676
4676
  /** Resource policies to be removed from this instance. */
4677
4677
  resourcePolicies?: string[];
4678
4678
  }
4679
+ interface InstancesReportHostAsFaultyRequest {
4680
+ faultReasons?: InstancesReportHostAsFaultyRequestFaultReason[];
4681
+ }
4682
+ interface InstancesReportHostAsFaultyRequestFaultReason {
4683
+ behavior?: string;
4684
+ description?: string;
4685
+ }
4679
4686
  interface InstancesResumeRequest {
4680
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. */
4681
4688
  disks?: CustomerEncryptionKeyProtectedDisk[];
@@ -26170,6 +26177,80 @@ declare namespace gapi.client {
26170
26177
  },
26171
26178
  body: InstancesRemoveResourcePoliciesRequest
26172
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>;
26173
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. */
26174
26255
  reset(request?: {
26175
26256
  /** V1 error format. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.compute-alpha",
3
- "version": "0.0.20240917",
3
+ "version": "0.0.20240919",
4
4
  "description": "TypeScript typings for Compute Engine API alpha",
5
5
  "repository": {
6
6
  "type": "git",
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
  */