@maxim_mazurok/gapi.client.batch-v1 0.0.20230320 → 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 +19 -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
|
|
|
@@ -80,6 +80,8 @@ declare namespace gapi.client {
|
|
|
80
80
|
status?: TaskStatus;
|
|
81
81
|
/** Task name. */
|
|
82
82
|
task?: string;
|
|
83
|
+
/** TaskSource represents the source of the task. */
|
|
84
|
+
taskSource?: string;
|
|
83
85
|
}
|
|
84
86
|
interface AgentTaskInfo {
|
|
85
87
|
/** The highest index of a runnable started by the agent for this task. The runnables are indexed from 1. Value 0 is undefined. */
|
|
@@ -109,6 +111,8 @@ declare namespace gapi.client {
|
|
|
109
111
|
location?: LocationPolicy;
|
|
110
112
|
/** The network policy. */
|
|
111
113
|
network?: NetworkPolicy;
|
|
114
|
+
/** The placement policy. */
|
|
115
|
+
placement?: PlacementPolicy;
|
|
112
116
|
/** Service account that VMs will run as. */
|
|
113
117
|
serviceAccount?: ServiceAccount;
|
|
114
118
|
}
|
|
@@ -436,6 +440,18 @@ declare namespace gapi.client {
|
|
|
436
440
|
/** Output only. Name of the verb executed by the operation. */
|
|
437
441
|
verb?: string;
|
|
438
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
|
+
}
|
|
439
455
|
interface ReportAgentStateRequest {
|
|
440
456
|
/** Agent info. */
|
|
441
457
|
agentInfo?: AgentInfo;
|
|
@@ -472,6 +488,8 @@ declare namespace gapi.client {
|
|
|
472
488
|
environment?: Environment;
|
|
473
489
|
/** Normally, a non-zero exit status causes the Task to fail. This flag allows execution of other Runnables to continue instead. */
|
|
474
490
|
ignoreExitStatus?: boolean;
|
|
491
|
+
/** Labels for this Runnable. */
|
|
492
|
+
labels?: { [P in string]: string };
|
|
475
493
|
/** Script runnable. */
|
|
476
494
|
script?: Script;
|
|
477
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",
|