@maxim_mazurok/gapi.client.batch-v1 0.0.20230111 → 0.0.20230130

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 +24 -11
  2. package/package.json +1 -1
  3. package/tests.ts +13 -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://batch.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20230111
12
+ // Revision: 20230130
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -155,14 +155,14 @@ declare namespace gapi.client {
155
155
  * Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example,
156
156
  * `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service
157
157
  * 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]`. *
158
- * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
159
- * identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to
160
- * `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing
161
- * a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value
162
- * reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
163
- * identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to
164
- * `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For
165
- * example, `google.com` or `example.com`.
158
+ * `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
159
+ * 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
160
+ * 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
161
+ * the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently
162
+ * deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and
163
+ * 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
164
+ * 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
165
+ * retains the role in the binding.
166
166
  */
167
167
  members?: string[];
168
168
  /** Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. */
@@ -275,6 +275,8 @@ declare namespace gapi.client {
275
275
  policy?: InstancePolicy;
276
276
  }
277
277
  interface InstanceStatus {
278
+ /** The VM boot disk. */
279
+ bootDisk?: Disk;
278
280
  /** The Compute Engine machine type. */
279
281
  machineType?: string;
280
282
  /** The VM instance provisioning model. */
@@ -547,9 +549,16 @@ declare namespace gapi.client {
547
549
  timeout?: string;
548
550
  }
549
551
  interface Script {
550
- /** Script file path on the host VM. */
552
+ /**
553
+ * Script file path on the host VM. To specify an interpreter, please add a `#!`(also known as [shebang line](https://en.wikipedia.org/wiki/Shebang_(Unix))) as the first line of the
554
+ * file.(For example, to execute the script using bash, `#!/bin/bash` should be the first line of the file. To execute the script using`Python3`, `#!/usr/bin/env python3` should be the
555
+ * first line of the file.) Otherwise, the file will by default be excuted by `/bin/sh`.
556
+ */
551
557
  path?: string;
552
- /** Shell script text. */
558
+ /**
559
+ * Shell script text. To specify an interpreter, please add a `#!\n` at the beginning of the text.(For example, to execute the script using bash, `#!/bin/bash\n` should be added. To
560
+ * execute the script using`Python3`, `#!/usr/bin/env python3\n` should be added.) Otherwise, the script will by default be excuted by `/bin/sh`.
561
+ */
553
562
  text?: string;
554
563
  }
555
564
  interface ServiceAccount {
@@ -558,6 +567,8 @@ declare namespace gapi.client {
558
567
  * account has to be specified in the instance template and it has to match the email field here.
559
568
  */
560
569
  email?: string;
570
+ /** List of scopes to be enabled for this service account on the VM, in addition to the cloud-platform API scope that will be added by default. */
571
+ scopes?: string[];
561
572
  }
562
573
  interface SetIamPolicyRequest {
563
574
  /**
@@ -589,6 +600,8 @@ declare namespace gapi.client {
589
600
  eventTime?: string;
590
601
  /** Task Execution */
591
602
  taskExecution?: TaskExecution;
603
+ /** Task State */
604
+ taskState?: string;
592
605
  /** Type of the event. */
593
606
  type?: string;
594
607
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.batch-v1",
3
- "version": "0.0.20230111",
3
+ "version": "0.0.20230130",
4
4
  "description": "TypeScript typings for Batch API v1",
5
5
  "license": "MIT",
6
6
  "author": {
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: 20230111
6
+ // Revision: 20230130
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -104,6 +104,9 @@ gapi.load('client', async () => {
104
104
  },
105
105
  serviceAccount: {
106
106
  email: "Test string",
107
+ scopes: [
108
+ "Test string"
109
+ ],
107
110
  },
108
111
  },
109
112
  createTime: "Test string",
@@ -136,6 +139,7 @@ gapi.load('client', async () => {
136
139
  taskExecution: {
137
140
  exitCode: 42,
138
141
  },
142
+ taskState: "Test string",
139
143
  type: "Test string",
140
144
  }
141
145
  ],
@@ -146,6 +150,13 @@ gapi.load('client', async () => {
146
150
  },
147
151
  instances: [
148
152
  {
153
+ bootDisk: {
154
+ diskInterface: "Test string",
155
+ image: "Test string",
156
+ sizeGb: "Test string",
157
+ snapshot: "Test string",
158
+ type: "Test string",
159
+ },
149
160
  machineType: "Test string",
150
161
  provisioningModel: "Test string",
151
162
  taskPack: "Test string",
@@ -408,6 +419,7 @@ gapi.load('client', async () => {
408
419
  taskExecution: {
409
420
  exitCode: 42,
410
421
  },
422
+ taskState: "Test string",
411
423
  type: "Test string",
412
424
  }
413
425
  ],