@maxim_mazurok/gapi.client.batch-v1 0.0.20230329 → 0.0.20230412
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 +17 -1
- package/package.json +1 -1
- package/tests.ts +8 -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:
|
|
12
|
+
// Revision: 20230412
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -111,6 +111,8 @@ declare namespace gapi.client {
|
|
|
111
111
|
location?: LocationPolicy;
|
|
112
112
|
/** The network policy. */
|
|
113
113
|
network?: NetworkPolicy;
|
|
114
|
+
/** The placement policy. */
|
|
115
|
+
placement?: PlacementPolicy;
|
|
114
116
|
/** Service account that VMs will run as. */
|
|
115
117
|
serviceAccount?: ServiceAccount;
|
|
116
118
|
}
|
|
@@ -438,6 +440,18 @@ declare namespace gapi.client {
|
|
|
438
440
|
/** Output only. Name of the verb executed by the operation. */
|
|
439
441
|
verb?: string;
|
|
440
442
|
}
|
|
443
|
+
interface PlacementPolicy {
|
|
444
|
+
/**
|
|
445
|
+
* UNSPECIFIED vs. COLLOCATED (default UNSPECIFIED). Use COLLOCATED when you want VMs to be located close to each other for low network latency between the VMs. No placement policy
|
|
446
|
+
* will be generated when collocation is UNSPECIFIED.
|
|
447
|
+
*/
|
|
448
|
+
collocation?: string;
|
|
449
|
+
/**
|
|
450
|
+
* When specified, causes the job to fail if more than max_distance logical switches are required between VMs. Batch uses the most compact possible placement of VMs even when
|
|
451
|
+
* max_distance is not specified. An explicit max_distance makes that level of compactness a strict requirement. Not yet implemented
|
|
452
|
+
*/
|
|
453
|
+
maxDistance?: string;
|
|
454
|
+
}
|
|
441
455
|
interface ReportAgentStateRequest {
|
|
442
456
|
/** Agent info. */
|
|
443
457
|
agentInfo?: AgentInfo;
|
|
@@ -474,6 +488,8 @@ declare namespace gapi.client {
|
|
|
474
488
|
environment?: Environment;
|
|
475
489
|
/** Normally, a non-zero exit status causes the Task to fail. This flag allows execution of other Runnables to continue instead. */
|
|
476
490
|
ignoreExitStatus?: boolean;
|
|
491
|
+
/** Labels for this Runnable. */
|
|
492
|
+
labels?: { [P in string]: string };
|
|
477
493
|
/** Script runnable. */
|
|
478
494
|
script?: Script;
|
|
479
495
|
/** Timeout for this Runnable. */
|
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: 20230412
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -102,6 +102,10 @@ gapi.load('client', async () => {
|
|
|
102
102
|
}
|
|
103
103
|
],
|
|
104
104
|
},
|
|
105
|
+
placement: {
|
|
106
|
+
collocation: "Test string",
|
|
107
|
+
maxDistance: "Test string",
|
|
108
|
+
},
|
|
105
109
|
serviceAccount: {
|
|
106
110
|
email: "Test string",
|
|
107
111
|
scopes: [
|
|
@@ -254,6 +258,9 @@ gapi.load('client', async () => {
|
|
|
254
258
|
},
|
|
255
259
|
},
|
|
256
260
|
ignoreExitStatus: true,
|
|
261
|
+
labels: {
|
|
262
|
+
A: "Test string"
|
|
263
|
+
},
|
|
257
264
|
script: {
|
|
258
265
|
path: "Test string",
|
|
259
266
|
text: "Test string",
|