@maxim_mazurok/gapi.client.dataproc-v1 0.0.20230804 → 0.0.20230814
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 +851 -2
- package/package.json +1 -1
- package/tests.ts +208 -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://dataproc.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230814
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -552,7 +552,7 @@ declare namespace gapi.client {
|
|
|
552
552
|
/**
|
|
553
553
|
* Optional. Applies to sessions only. The duration to keep the session alive while it's idling. Exceeding this threshold causes the session to terminate. This field cannot be set on a
|
|
554
554
|
* batch workload. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)).
|
|
555
|
-
* Defaults to
|
|
555
|
+
* Defaults to 1 hour if not set. If both ttl and idle_ttl are specified for an interactive session, the conditions are treated as OR conditions: the workload will be terminated when
|
|
556
556
|
* it has been idle for idle_ttl or when ttl has been exceeded, whichever occurs first.
|
|
557
557
|
*/
|
|
558
558
|
idleTtl?:
|
|
@@ -897,6 +897,22 @@ declare namespace gapi.client {
|
|
|
897
897
|
credentialsCiphertext?:
|
|
898
898
|
string;
|
|
899
899
|
}
|
|
900
|
+
interface InjectSessionCredentialsRequest {
|
|
901
|
+
/**
|
|
902
|
+
* Required. The encrypted credentials being injected in to the session.The client is responsible for encrypting the credentials in a way that is supported by the session.A wrapped
|
|
903
|
+
* value is used here so that the actual contents of the encrypted credentials are not written to audit logs.
|
|
904
|
+
*/
|
|
905
|
+
credentialsCiphertext?:
|
|
906
|
+
string;
|
|
907
|
+
/**
|
|
908
|
+
* Optional. A unique ID used to identify the request. If the service receives two TerminateSessionRequest
|
|
909
|
+
* (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.TerminateSessionRequest)s with the same ID, the first request is ignored to
|
|
910
|
+
* ensure the most recent credentials are injected.Recommendation: Set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The value must contain only
|
|
911
|
+
* letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
|
|
912
|
+
*/
|
|
913
|
+
requestId?:
|
|
914
|
+
string;
|
|
915
|
+
}
|
|
900
916
|
interface InstanceGroupAutoscalingPolicyConfig {
|
|
901
917
|
/**
|
|
902
918
|
* Required. Maximum number of instances for this group. Required for primary workers. Note that by default, clusters will not use secondary workers. Required for secondary workers if
|
|
@@ -1162,6 +1178,14 @@ declare namespace gapi.client {
|
|
|
1162
1178
|
substate?:
|
|
1163
1179
|
string;
|
|
1164
1180
|
}
|
|
1181
|
+
interface JupyterConfig {
|
|
1182
|
+
/** Optional. Display name, shown in the Jupyter kernelspec card. */
|
|
1183
|
+
displayName?:
|
|
1184
|
+
string;
|
|
1185
|
+
/** Optional. Kernel */
|
|
1186
|
+
kernel?:
|
|
1187
|
+
string;
|
|
1188
|
+
}
|
|
1165
1189
|
interface KerberosConfig {
|
|
1166
1190
|
/** Optional. The admin server (IP or hostname) for the remote trusted realm in a cross realm trust relationship. */
|
|
1167
1191
|
crossRealmTrustAdminServer?:
|
|
@@ -1315,6 +1339,22 @@ declare namespace gapi.client {
|
|
|
1315
1339
|
operations?:
|
|
1316
1340
|
Operation[];
|
|
1317
1341
|
}
|
|
1342
|
+
interface ListSessionsResponse {
|
|
1343
|
+
/** A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages. */
|
|
1344
|
+
nextPageToken?:
|
|
1345
|
+
string;
|
|
1346
|
+
/** Output only. The sessions from the specified collection. */
|
|
1347
|
+
sessions?:
|
|
1348
|
+
Session[];
|
|
1349
|
+
}
|
|
1350
|
+
interface ListSessionTemplatesResponse {
|
|
1351
|
+
/** A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages. */
|
|
1352
|
+
nextPageToken?:
|
|
1353
|
+
string;
|
|
1354
|
+
/** Output only. Session template list */
|
|
1355
|
+
sessionTemplates?:
|
|
1356
|
+
SessionTemplate[];
|
|
1357
|
+
}
|
|
1318
1358
|
interface ListWorkflowTemplatesResponse {
|
|
1319
1359
|
/**
|
|
1320
1360
|
* Output only. This token is included in the response if there are more results to fetch. To fetch additional results, provide this value as the page_token in a subsequent
|
|
@@ -1808,6 +1848,61 @@ declare namespace gapi.client {
|
|
|
1808
1848
|
kerberosConfig?:
|
|
1809
1849
|
KerberosConfig;
|
|
1810
1850
|
}
|
|
1851
|
+
interface Session {
|
|
1852
|
+
/** Output only. The time when the session was created. */
|
|
1853
|
+
createTime?:
|
|
1854
|
+
string;
|
|
1855
|
+
/** Output only. The email address of the user who created the session. */
|
|
1856
|
+
creator?:
|
|
1857
|
+
string;
|
|
1858
|
+
/** Optional. Environment configuration for the session execution. */
|
|
1859
|
+
environmentConfig?:
|
|
1860
|
+
EnvironmentConfig;
|
|
1861
|
+
/** Optional. Jupyter session config. */
|
|
1862
|
+
jupyterSession?:
|
|
1863
|
+
JupyterConfig;
|
|
1864
|
+
/**
|
|
1865
|
+
* Optional. The labels to associate with this session. Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). Label values
|
|
1866
|
+
* may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a
|
|
1867
|
+
* session.
|
|
1868
|
+
*/
|
|
1869
|
+
labels?:
|
|
1870
|
+
{ [P in string]: string };
|
|
1871
|
+
/** Required. The resource name of the session. */
|
|
1872
|
+
name?:
|
|
1873
|
+
string;
|
|
1874
|
+
/** Optional. Runtime configuration for the session execution. */
|
|
1875
|
+
runtimeConfig?:
|
|
1876
|
+
RuntimeConfig;
|
|
1877
|
+
/** Output only. Runtime information about session execution. */
|
|
1878
|
+
runtimeInfo?:
|
|
1879
|
+
RuntimeInfo;
|
|
1880
|
+
/**
|
|
1881
|
+
* Optional. The session template used by the session.Only resource names including project ID and location are valid.Example: *
|
|
1882
|
+
* https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[dataproc_region]/sessionTemplates/[template_id] *
|
|
1883
|
+
* projects/[project_id]/locations/[dataproc_region]/sessionTemplates/[template_id]Note that the template must be in the same project and Dataproc region.
|
|
1884
|
+
*/
|
|
1885
|
+
sessionTemplate?:
|
|
1886
|
+
string;
|
|
1887
|
+
/** Output only. A state of the session. */
|
|
1888
|
+
state?:
|
|
1889
|
+
string;
|
|
1890
|
+
/** Output only. Historical state information for the session. */
|
|
1891
|
+
stateHistory?:
|
|
1892
|
+
SessionStateHistory[];
|
|
1893
|
+
/** Output only. Session state details, such as a failure description if the state is FAILED. */
|
|
1894
|
+
stateMessage?:
|
|
1895
|
+
string;
|
|
1896
|
+
/** Output only. The time when the session entered a current state. */
|
|
1897
|
+
stateTime?:
|
|
1898
|
+
string;
|
|
1899
|
+
/** Optional. The email address of the user who owns the session. */
|
|
1900
|
+
user?:
|
|
1901
|
+
string;
|
|
1902
|
+
/** Output only. A session UUID (Unique Universal Identifier). The service generates this value when it creates the session. */
|
|
1903
|
+
uuid?:
|
|
1904
|
+
string;
|
|
1905
|
+
}
|
|
1811
1906
|
interface SessionOperationMetadata {
|
|
1812
1907
|
/** The time when the operation was created. */
|
|
1813
1908
|
createTime?:
|
|
@@ -1834,6 +1929,50 @@ declare namespace gapi.client {
|
|
|
1834
1929
|
warnings?:
|
|
1835
1930
|
string[];
|
|
1836
1931
|
}
|
|
1932
|
+
interface SessionStateHistory {
|
|
1933
|
+
/** Output only. The state of the session at this point in history. */
|
|
1934
|
+
state?:
|
|
1935
|
+
string;
|
|
1936
|
+
/** Output only. Details about the state at this point in history. */
|
|
1937
|
+
stateMessage?:
|
|
1938
|
+
string;
|
|
1939
|
+
/** Output only. The time when the session entered the historical state. */
|
|
1940
|
+
stateStartTime?:
|
|
1941
|
+
string;
|
|
1942
|
+
}
|
|
1943
|
+
interface SessionTemplate {
|
|
1944
|
+
/** Output only. The time when the template was created. */
|
|
1945
|
+
createTime?:
|
|
1946
|
+
string;
|
|
1947
|
+
/** Output only. The email address of the user who created the template. */
|
|
1948
|
+
creator?:
|
|
1949
|
+
string;
|
|
1950
|
+
/** Optional. Brief description of the template. */
|
|
1951
|
+
description?:
|
|
1952
|
+
string;
|
|
1953
|
+
/** Optional. Environment configuration for session execution. */
|
|
1954
|
+
environmentConfig?:
|
|
1955
|
+
EnvironmentConfig;
|
|
1956
|
+
/** Optional. Jupyter session config. */
|
|
1957
|
+
jupyterSession?:
|
|
1958
|
+
JupyterConfig;
|
|
1959
|
+
/**
|
|
1960
|
+
* Optional. The labels to associate with sessions created using this template. Label keys must contain 1 to 63 characters, and must conform to RFC 1035
|
|
1961
|
+
* (https://www.ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63 characters, and must conform to RFC 1035
|
|
1962
|
+
* (https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be associated with a session.
|
|
1963
|
+
*/
|
|
1964
|
+
labels?:
|
|
1965
|
+
{ [P in string]: string };
|
|
1966
|
+
/** Required. The resource name of the session template. */
|
|
1967
|
+
name?:
|
|
1968
|
+
string;
|
|
1969
|
+
/** Optional. Runtime configuration for session execution. */
|
|
1970
|
+
runtimeConfig?:
|
|
1971
|
+
RuntimeConfig;
|
|
1972
|
+
/** Output only. The time template was last updated. */
|
|
1973
|
+
updateTime?:
|
|
1974
|
+
string;
|
|
1975
|
+
}
|
|
1837
1976
|
interface SetIamPolicyRequest {
|
|
1838
1977
|
/**
|
|
1839
1978
|
* REQUIRED: The complete policy to be applied to the resource. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Google Cloud
|
|
@@ -2133,6 +2272,16 @@ declare namespace gapi.client {
|
|
|
2133
2272
|
validation?:
|
|
2134
2273
|
ParameterValidation;
|
|
2135
2274
|
}
|
|
2275
|
+
interface TerminateSessionRequest {
|
|
2276
|
+
/**
|
|
2277
|
+
* Optional. A unique ID used to identify the request. If the service receives two TerminateSessionRequest
|
|
2278
|
+
* (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.TerminateSessionRequest)s with the same ID, the second request is
|
|
2279
|
+
* ignored.Recommendation: Set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The value must contain only letters (a-z, A-Z), numbers (0-9),
|
|
2280
|
+
* underscores (_), and hyphens (-). The maximum length is 40 characters.
|
|
2281
|
+
*/
|
|
2282
|
+
requestId?:
|
|
2283
|
+
string;
|
|
2284
|
+
}
|
|
2136
2285
|
interface TestIamPermissionsRequest {
|
|
2137
2286
|
/**
|
|
2138
2287
|
* The set of permissions to check for the resource. Permissions with wildcards (such as * or storage.*) are not allowed. For more information see IAM Overview
|
|
@@ -3227,6 +3376,702 @@ declare namespace gapi.client {
|
|
|
3227
3376
|
string;
|
|
3228
3377
|
}): Request<ListOperationsResponse>;
|
|
3229
3378
|
}
|
|
3379
|
+
interface SessionsResource {
|
|
3380
|
+
/** Create an interactive session asynchronously. */
|
|
3381
|
+
create(request: {
|
|
3382
|
+
/** V1 error format. */
|
|
3383
|
+
"$.xgafv"?:
|
|
3384
|
+
string;
|
|
3385
|
+
/** OAuth access token. */
|
|
3386
|
+
access_token?:
|
|
3387
|
+
string;
|
|
3388
|
+
/** Data format for response. */
|
|
3389
|
+
alt?:
|
|
3390
|
+
string;
|
|
3391
|
+
/** JSONP */
|
|
3392
|
+
callback?:
|
|
3393
|
+
string;
|
|
3394
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3395
|
+
fields?:
|
|
3396
|
+
string;
|
|
3397
|
+
/** 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. */
|
|
3398
|
+
key?:
|
|
3399
|
+
string;
|
|
3400
|
+
/** OAuth 2.0 token for the current user. */
|
|
3401
|
+
oauth_token?:
|
|
3402
|
+
string;
|
|
3403
|
+
/** Required. The parent resource where this session will be created. */
|
|
3404
|
+
parent:
|
|
3405
|
+
string;
|
|
3406
|
+
/** Returns response with indentations and line breaks. */
|
|
3407
|
+
prettyPrint?:
|
|
3408
|
+
boolean;
|
|
3409
|
+
/** 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. */
|
|
3410
|
+
quotaUser?:
|
|
3411
|
+
string;
|
|
3412
|
+
/**
|
|
3413
|
+
* Optional. A unique ID used to identify the request. If the service receives two CreateSessionRequest
|
|
3414
|
+
* (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateSessionRequest)s with the same ID, the second request is ignored
|
|
3415
|
+
* and the first Session is created and stored in the backend is returned.Recommendation: Set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The
|
|
3416
|
+
* value must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
|
|
3417
|
+
*/
|
|
3418
|
+
requestId?:
|
|
3419
|
+
string;
|
|
3420
|
+
/** Required. The ID to use for the session, which becomes the final component of the session's resource name.This value must be 4-63 characters. Valid characters are /a-z-/. */
|
|
3421
|
+
sessionId?:
|
|
3422
|
+
string;
|
|
3423
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3424
|
+
upload_protocol?:
|
|
3425
|
+
string;
|
|
3426
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3427
|
+
uploadType?:
|
|
3428
|
+
string;
|
|
3429
|
+
/** Request body */
|
|
3430
|
+
resource:
|
|
3431
|
+
Session;
|
|
3432
|
+
}): Request<Operation>;
|
|
3433
|
+
create(request: {
|
|
3434
|
+
/** V1 error format. */
|
|
3435
|
+
"$.xgafv"?:
|
|
3436
|
+
string;
|
|
3437
|
+
/** OAuth access token. */
|
|
3438
|
+
access_token?:
|
|
3439
|
+
string;
|
|
3440
|
+
/** Data format for response. */
|
|
3441
|
+
alt?:
|
|
3442
|
+
string;
|
|
3443
|
+
/** JSONP */
|
|
3444
|
+
callback?:
|
|
3445
|
+
string;
|
|
3446
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3447
|
+
fields?:
|
|
3448
|
+
string;
|
|
3449
|
+
/** 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. */
|
|
3450
|
+
key?:
|
|
3451
|
+
string;
|
|
3452
|
+
/** OAuth 2.0 token for the current user. */
|
|
3453
|
+
oauth_token?:
|
|
3454
|
+
string;
|
|
3455
|
+
/** Required. The parent resource where this session will be created. */
|
|
3456
|
+
parent:
|
|
3457
|
+
string;
|
|
3458
|
+
/** Returns response with indentations and line breaks. */
|
|
3459
|
+
prettyPrint?:
|
|
3460
|
+
boolean;
|
|
3461
|
+
/** 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. */
|
|
3462
|
+
quotaUser?:
|
|
3463
|
+
string;
|
|
3464
|
+
/**
|
|
3465
|
+
* Optional. A unique ID used to identify the request. If the service receives two CreateSessionRequest
|
|
3466
|
+
* (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateSessionRequest)s with the same ID, the second request is ignored
|
|
3467
|
+
* and the first Session is created and stored in the backend is returned.Recommendation: Set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The
|
|
3468
|
+
* value must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.
|
|
3469
|
+
*/
|
|
3470
|
+
requestId?:
|
|
3471
|
+
string;
|
|
3472
|
+
/** Required. The ID to use for the session, which becomes the final component of the session's resource name.This value must be 4-63 characters. Valid characters are /a-z-/. */
|
|
3473
|
+
sessionId?:
|
|
3474
|
+
string;
|
|
3475
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3476
|
+
upload_protocol?:
|
|
3477
|
+
string;
|
|
3478
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3479
|
+
uploadType?:
|
|
3480
|
+
string;
|
|
3481
|
+
},
|
|
3482
|
+
body: Session): Request<Operation>;
|
|
3483
|
+
/** Deletes the interactive session resource. If the session is not in terminal state, it will be terminated and deleted afterwards. */
|
|
3484
|
+
delete(request?: {
|
|
3485
|
+
/** V1 error format. */
|
|
3486
|
+
"$.xgafv"?:
|
|
3487
|
+
string;
|
|
3488
|
+
/** OAuth access token. */
|
|
3489
|
+
access_token?:
|
|
3490
|
+
string;
|
|
3491
|
+
/** Data format for response. */
|
|
3492
|
+
alt?:
|
|
3493
|
+
string;
|
|
3494
|
+
/** JSONP */
|
|
3495
|
+
callback?:
|
|
3496
|
+
string;
|
|
3497
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3498
|
+
fields?:
|
|
3499
|
+
string;
|
|
3500
|
+
/** 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. */
|
|
3501
|
+
key?:
|
|
3502
|
+
string;
|
|
3503
|
+
/** Required. The name of the session resource to delete. */
|
|
3504
|
+
name:
|
|
3505
|
+
string;
|
|
3506
|
+
/** OAuth 2.0 token for the current user. */
|
|
3507
|
+
oauth_token?:
|
|
3508
|
+
string;
|
|
3509
|
+
/** Returns response with indentations and line breaks. */
|
|
3510
|
+
prettyPrint?:
|
|
3511
|
+
boolean;
|
|
3512
|
+
/** 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. */
|
|
3513
|
+
quotaUser?:
|
|
3514
|
+
string;
|
|
3515
|
+
/**
|
|
3516
|
+
* Optional. A unique ID used to identify the request. If the service receives two DeleteSessionRequest
|
|
3517
|
+
* (https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.DeleteSessionRequest)s with the same ID, the second request is
|
|
3518
|
+
* ignored.Recommendation: Set this value to a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The value must contain only letters (a-z, A-Z), numbers (0-9),
|
|
3519
|
+
* underscores (_), and hyphens (-). The maximum length is 40 characters.
|
|
3520
|
+
*/
|
|
3521
|
+
requestId?:
|
|
3522
|
+
string;
|
|
3523
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3524
|
+
upload_protocol?:
|
|
3525
|
+
string;
|
|
3526
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3527
|
+
uploadType?:
|
|
3528
|
+
string;
|
|
3529
|
+
}): Request<Operation>;
|
|
3530
|
+
/** Gets the resource representation for an interactive session. */
|
|
3531
|
+
get(request?: {
|
|
3532
|
+
/** V1 error format. */
|
|
3533
|
+
"$.xgafv"?:
|
|
3534
|
+
string;
|
|
3535
|
+
/** OAuth access token. */
|
|
3536
|
+
access_token?:
|
|
3537
|
+
string;
|
|
3538
|
+
/** Data format for response. */
|
|
3539
|
+
alt?:
|
|
3540
|
+
string;
|
|
3541
|
+
/** JSONP */
|
|
3542
|
+
callback?:
|
|
3543
|
+
string;
|
|
3544
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3545
|
+
fields?:
|
|
3546
|
+
string;
|
|
3547
|
+
/** 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. */
|
|
3548
|
+
key?:
|
|
3549
|
+
string;
|
|
3550
|
+
/** Required. The name of the session to retrieve. */
|
|
3551
|
+
name:
|
|
3552
|
+
string;
|
|
3553
|
+
/** OAuth 2.0 token for the current user. */
|
|
3554
|
+
oauth_token?:
|
|
3555
|
+
string;
|
|
3556
|
+
/** Returns response with indentations and line breaks. */
|
|
3557
|
+
prettyPrint?:
|
|
3558
|
+
boolean;
|
|
3559
|
+
/** 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. */
|
|
3560
|
+
quotaUser?:
|
|
3561
|
+
string;
|
|
3562
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3563
|
+
upload_protocol?:
|
|
3564
|
+
string;
|
|
3565
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3566
|
+
uploadType?:
|
|
3567
|
+
string;
|
|
3568
|
+
}): Request<Session>;
|
|
3569
|
+
/** Inject Credentials in the interactive session. */
|
|
3570
|
+
injectCredentials(request: {
|
|
3571
|
+
/** V1 error format. */
|
|
3572
|
+
"$.xgafv"?:
|
|
3573
|
+
string;
|
|
3574
|
+
/** OAuth access token. */
|
|
3575
|
+
access_token?:
|
|
3576
|
+
string;
|
|
3577
|
+
/** Data format for response. */
|
|
3578
|
+
alt?:
|
|
3579
|
+
string;
|
|
3580
|
+
/** JSONP */
|
|
3581
|
+
callback?:
|
|
3582
|
+
string;
|
|
3583
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3584
|
+
fields?:
|
|
3585
|
+
string;
|
|
3586
|
+
/** 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. */
|
|
3587
|
+
key?:
|
|
3588
|
+
string;
|
|
3589
|
+
/** OAuth 2.0 token for the current user. */
|
|
3590
|
+
oauth_token?:
|
|
3591
|
+
string;
|
|
3592
|
+
/** Returns response with indentations and line breaks. */
|
|
3593
|
+
prettyPrint?:
|
|
3594
|
+
boolean;
|
|
3595
|
+
/** 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. */
|
|
3596
|
+
quotaUser?:
|
|
3597
|
+
string;
|
|
3598
|
+
/** Required. The name of the session resource to inject credentials to. */
|
|
3599
|
+
session:
|
|
3600
|
+
string;
|
|
3601
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3602
|
+
upload_protocol?:
|
|
3603
|
+
string;
|
|
3604
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3605
|
+
uploadType?:
|
|
3606
|
+
string;
|
|
3607
|
+
/** Request body */
|
|
3608
|
+
resource:
|
|
3609
|
+
InjectSessionCredentialsRequest;
|
|
3610
|
+
}): Request<Operation>;
|
|
3611
|
+
injectCredentials(request: {
|
|
3612
|
+
/** V1 error format. */
|
|
3613
|
+
"$.xgafv"?:
|
|
3614
|
+
string;
|
|
3615
|
+
/** OAuth access token. */
|
|
3616
|
+
access_token?:
|
|
3617
|
+
string;
|
|
3618
|
+
/** Data format for response. */
|
|
3619
|
+
alt?:
|
|
3620
|
+
string;
|
|
3621
|
+
/** JSONP */
|
|
3622
|
+
callback?:
|
|
3623
|
+
string;
|
|
3624
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3625
|
+
fields?:
|
|
3626
|
+
string;
|
|
3627
|
+
/** 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. */
|
|
3628
|
+
key?:
|
|
3629
|
+
string;
|
|
3630
|
+
/** OAuth 2.0 token for the current user. */
|
|
3631
|
+
oauth_token?:
|
|
3632
|
+
string;
|
|
3633
|
+
/** Returns response with indentations and line breaks. */
|
|
3634
|
+
prettyPrint?:
|
|
3635
|
+
boolean;
|
|
3636
|
+
/** 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. */
|
|
3637
|
+
quotaUser?:
|
|
3638
|
+
string;
|
|
3639
|
+
/** Required. The name of the session resource to inject credentials to. */
|
|
3640
|
+
session:
|
|
3641
|
+
string;
|
|
3642
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3643
|
+
upload_protocol?:
|
|
3644
|
+
string;
|
|
3645
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3646
|
+
uploadType?:
|
|
3647
|
+
string;
|
|
3648
|
+
},
|
|
3649
|
+
body: InjectSessionCredentialsRequest): Request<Operation>;
|
|
3650
|
+
/** Lists interactive sessions. */
|
|
3651
|
+
list(request?: {
|
|
3652
|
+
/** V1 error format. */
|
|
3653
|
+
"$.xgafv"?:
|
|
3654
|
+
string;
|
|
3655
|
+
/** OAuth access token. */
|
|
3656
|
+
access_token?:
|
|
3657
|
+
string;
|
|
3658
|
+
/** Data format for response. */
|
|
3659
|
+
alt?:
|
|
3660
|
+
string;
|
|
3661
|
+
/** JSONP */
|
|
3662
|
+
callback?:
|
|
3663
|
+
string;
|
|
3664
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3665
|
+
fields?:
|
|
3666
|
+
string;
|
|
3667
|
+
/**
|
|
3668
|
+
* Optional. A filter for the sessions to return in the response.A filter is a logical expression constraining the values of various fields in each session resource. Filters are
|
|
3669
|
+
* case sensitive, and may contain multiple clauses combined with logical operators (AND/OR). Supported fields are session_id, session_uuid, state, and create_time.e.g. state =
|
|
3670
|
+
* ACTIVE and create_time < "2023-01-01T00:00:00Z" filters for sessions in state ACTIVE that were created before 2023-01-01See https://google.aip.dev/assets/misc/ebnf-filtering.txt
|
|
3671
|
+
* for a detailed description of the filter syntax and a list of supported comparisons.
|
|
3672
|
+
*/
|
|
3673
|
+
filter?:
|
|
3674
|
+
string;
|
|
3675
|
+
/** 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. */
|
|
3676
|
+
key?:
|
|
3677
|
+
string;
|
|
3678
|
+
/** OAuth 2.0 token for the current user. */
|
|
3679
|
+
oauth_token?:
|
|
3680
|
+
string;
|
|
3681
|
+
/** Optional. The maximum number of sessions to return in each response. The service may return fewer than this value. */
|
|
3682
|
+
pageSize?:
|
|
3683
|
+
number;
|
|
3684
|
+
/** Optional. A page token received from a previous ListSessions call. Provide this token to retrieve the subsequent page. */
|
|
3685
|
+
pageToken?:
|
|
3686
|
+
string;
|
|
3687
|
+
/** Required. The parent, which owns this collection of sessions. */
|
|
3688
|
+
parent:
|
|
3689
|
+
string;
|
|
3690
|
+
/** Returns response with indentations and line breaks. */
|
|
3691
|
+
prettyPrint?:
|
|
3692
|
+
boolean;
|
|
3693
|
+
/** 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. */
|
|
3694
|
+
quotaUser?:
|
|
3695
|
+
string;
|
|
3696
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3697
|
+
upload_protocol?:
|
|
3698
|
+
string;
|
|
3699
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3700
|
+
uploadType?:
|
|
3701
|
+
string;
|
|
3702
|
+
}): Request<ListSessionsResponse>;
|
|
3703
|
+
/** Terminates the interactive session. */
|
|
3704
|
+
terminate(request: {
|
|
3705
|
+
/** V1 error format. */
|
|
3706
|
+
"$.xgafv"?:
|
|
3707
|
+
string;
|
|
3708
|
+
/** OAuth access token. */
|
|
3709
|
+
access_token?:
|
|
3710
|
+
string;
|
|
3711
|
+
/** Data format for response. */
|
|
3712
|
+
alt?:
|
|
3713
|
+
string;
|
|
3714
|
+
/** JSONP */
|
|
3715
|
+
callback?:
|
|
3716
|
+
string;
|
|
3717
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3718
|
+
fields?:
|
|
3719
|
+
string;
|
|
3720
|
+
/** 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. */
|
|
3721
|
+
key?:
|
|
3722
|
+
string;
|
|
3723
|
+
/** Required. The name of the session resource to terminate. */
|
|
3724
|
+
name:
|
|
3725
|
+
string;
|
|
3726
|
+
/** OAuth 2.0 token for the current user. */
|
|
3727
|
+
oauth_token?:
|
|
3728
|
+
string;
|
|
3729
|
+
/** Returns response with indentations and line breaks. */
|
|
3730
|
+
prettyPrint?:
|
|
3731
|
+
boolean;
|
|
3732
|
+
/** 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. */
|
|
3733
|
+
quotaUser?:
|
|
3734
|
+
string;
|
|
3735
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3736
|
+
upload_protocol?:
|
|
3737
|
+
string;
|
|
3738
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3739
|
+
uploadType?:
|
|
3740
|
+
string;
|
|
3741
|
+
/** Request body */
|
|
3742
|
+
resource:
|
|
3743
|
+
TerminateSessionRequest;
|
|
3744
|
+
}): Request<Operation>;
|
|
3745
|
+
terminate(request: {
|
|
3746
|
+
/** V1 error format. */
|
|
3747
|
+
"$.xgafv"?:
|
|
3748
|
+
string;
|
|
3749
|
+
/** OAuth access token. */
|
|
3750
|
+
access_token?:
|
|
3751
|
+
string;
|
|
3752
|
+
/** Data format for response. */
|
|
3753
|
+
alt?:
|
|
3754
|
+
string;
|
|
3755
|
+
/** JSONP */
|
|
3756
|
+
callback?:
|
|
3757
|
+
string;
|
|
3758
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3759
|
+
fields?:
|
|
3760
|
+
string;
|
|
3761
|
+
/** 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. */
|
|
3762
|
+
key?:
|
|
3763
|
+
string;
|
|
3764
|
+
/** Required. The name of the session resource to terminate. */
|
|
3765
|
+
name:
|
|
3766
|
+
string;
|
|
3767
|
+
/** OAuth 2.0 token for the current user. */
|
|
3768
|
+
oauth_token?:
|
|
3769
|
+
string;
|
|
3770
|
+
/** Returns response with indentations and line breaks. */
|
|
3771
|
+
prettyPrint?:
|
|
3772
|
+
boolean;
|
|
3773
|
+
/** 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. */
|
|
3774
|
+
quotaUser?:
|
|
3775
|
+
string;
|
|
3776
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3777
|
+
upload_protocol?:
|
|
3778
|
+
string;
|
|
3779
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3780
|
+
uploadType?:
|
|
3781
|
+
string;
|
|
3782
|
+
},
|
|
3783
|
+
body: TerminateSessionRequest): Request<Operation>;
|
|
3784
|
+
}
|
|
3785
|
+
interface SessionTemplatesResource {
|
|
3786
|
+
/** Create an session template, synchronously. */
|
|
3787
|
+
create(request: {
|
|
3788
|
+
/** V1 error format. */
|
|
3789
|
+
"$.xgafv"?:
|
|
3790
|
+
string;
|
|
3791
|
+
/** OAuth access token. */
|
|
3792
|
+
access_token?:
|
|
3793
|
+
string;
|
|
3794
|
+
/** Data format for response. */
|
|
3795
|
+
alt?:
|
|
3796
|
+
string;
|
|
3797
|
+
/** JSONP */
|
|
3798
|
+
callback?:
|
|
3799
|
+
string;
|
|
3800
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3801
|
+
fields?:
|
|
3802
|
+
string;
|
|
3803
|
+
/** 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. */
|
|
3804
|
+
key?:
|
|
3805
|
+
string;
|
|
3806
|
+
/** OAuth 2.0 token for the current user. */
|
|
3807
|
+
oauth_token?:
|
|
3808
|
+
string;
|
|
3809
|
+
/** Required. The parent resource where this session template will be created. */
|
|
3810
|
+
parent:
|
|
3811
|
+
string;
|
|
3812
|
+
/** Returns response with indentations and line breaks. */
|
|
3813
|
+
prettyPrint?:
|
|
3814
|
+
boolean;
|
|
3815
|
+
/** 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. */
|
|
3816
|
+
quotaUser?:
|
|
3817
|
+
string;
|
|
3818
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3819
|
+
upload_protocol?:
|
|
3820
|
+
string;
|
|
3821
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3822
|
+
uploadType?:
|
|
3823
|
+
string;
|
|
3824
|
+
/** Request body */
|
|
3825
|
+
resource:
|
|
3826
|
+
SessionTemplate;
|
|
3827
|
+
}): Request<SessionTemplate>;
|
|
3828
|
+
create(request: {
|
|
3829
|
+
/** V1 error format. */
|
|
3830
|
+
"$.xgafv"?:
|
|
3831
|
+
string;
|
|
3832
|
+
/** OAuth access token. */
|
|
3833
|
+
access_token?:
|
|
3834
|
+
string;
|
|
3835
|
+
/** Data format for response. */
|
|
3836
|
+
alt?:
|
|
3837
|
+
string;
|
|
3838
|
+
/** JSONP */
|
|
3839
|
+
callback?:
|
|
3840
|
+
string;
|
|
3841
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3842
|
+
fields?:
|
|
3843
|
+
string;
|
|
3844
|
+
/** 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. */
|
|
3845
|
+
key?:
|
|
3846
|
+
string;
|
|
3847
|
+
/** OAuth 2.0 token for the current user. */
|
|
3848
|
+
oauth_token?:
|
|
3849
|
+
string;
|
|
3850
|
+
/** Required. The parent resource where this session template will be created. */
|
|
3851
|
+
parent:
|
|
3852
|
+
string;
|
|
3853
|
+
/** Returns response with indentations and line breaks. */
|
|
3854
|
+
prettyPrint?:
|
|
3855
|
+
boolean;
|
|
3856
|
+
/** 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. */
|
|
3857
|
+
quotaUser?:
|
|
3858
|
+
string;
|
|
3859
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3860
|
+
upload_protocol?:
|
|
3861
|
+
string;
|
|
3862
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3863
|
+
uploadType?:
|
|
3864
|
+
string;
|
|
3865
|
+
},
|
|
3866
|
+
body: SessionTemplate): Request<SessionTemplate>;
|
|
3867
|
+
/** Deletes a session template. */
|
|
3868
|
+
delete(request?: {
|
|
3869
|
+
/** V1 error format. */
|
|
3870
|
+
"$.xgafv"?:
|
|
3871
|
+
string;
|
|
3872
|
+
/** OAuth access token. */
|
|
3873
|
+
access_token?:
|
|
3874
|
+
string;
|
|
3875
|
+
/** Data format for response. */
|
|
3876
|
+
alt?:
|
|
3877
|
+
string;
|
|
3878
|
+
/** JSONP */
|
|
3879
|
+
callback?:
|
|
3880
|
+
string;
|
|
3881
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3882
|
+
fields?:
|
|
3883
|
+
string;
|
|
3884
|
+
/** 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. */
|
|
3885
|
+
key?:
|
|
3886
|
+
string;
|
|
3887
|
+
/** Required. The name of the session template resource to delete. */
|
|
3888
|
+
name:
|
|
3889
|
+
string;
|
|
3890
|
+
/** OAuth 2.0 token for the current user. */
|
|
3891
|
+
oauth_token?:
|
|
3892
|
+
string;
|
|
3893
|
+
/** Returns response with indentations and line breaks. */
|
|
3894
|
+
prettyPrint?:
|
|
3895
|
+
boolean;
|
|
3896
|
+
/** 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. */
|
|
3897
|
+
quotaUser?:
|
|
3898
|
+
string;
|
|
3899
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3900
|
+
upload_protocol?:
|
|
3901
|
+
string;
|
|
3902
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3903
|
+
uploadType?:
|
|
3904
|
+
string;
|
|
3905
|
+
}): Request<{}>;
|
|
3906
|
+
/** Gets the resource representation for a session template. */
|
|
3907
|
+
get(request?: {
|
|
3908
|
+
/** V1 error format. */
|
|
3909
|
+
"$.xgafv"?:
|
|
3910
|
+
string;
|
|
3911
|
+
/** OAuth access token. */
|
|
3912
|
+
access_token?:
|
|
3913
|
+
string;
|
|
3914
|
+
/** Data format for response. */
|
|
3915
|
+
alt?:
|
|
3916
|
+
string;
|
|
3917
|
+
/** JSONP */
|
|
3918
|
+
callback?:
|
|
3919
|
+
string;
|
|
3920
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3921
|
+
fields?:
|
|
3922
|
+
string;
|
|
3923
|
+
/** 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. */
|
|
3924
|
+
key?:
|
|
3925
|
+
string;
|
|
3926
|
+
/** Required. The name of the session template to retrieve. */
|
|
3927
|
+
name:
|
|
3928
|
+
string;
|
|
3929
|
+
/** OAuth 2.0 token for the current user. */
|
|
3930
|
+
oauth_token?:
|
|
3931
|
+
string;
|
|
3932
|
+
/** Returns response with indentations and line breaks. */
|
|
3933
|
+
prettyPrint?:
|
|
3934
|
+
boolean;
|
|
3935
|
+
/** 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. */
|
|
3936
|
+
quotaUser?:
|
|
3937
|
+
string;
|
|
3938
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3939
|
+
upload_protocol?:
|
|
3940
|
+
string;
|
|
3941
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3942
|
+
uploadType?:
|
|
3943
|
+
string;
|
|
3944
|
+
}): Request<SessionTemplate>;
|
|
3945
|
+
/** Lists session templates. */
|
|
3946
|
+
list(request?: {
|
|
3947
|
+
/** V1 error format. */
|
|
3948
|
+
"$.xgafv"?:
|
|
3949
|
+
string;
|
|
3950
|
+
/** OAuth access token. */
|
|
3951
|
+
access_token?:
|
|
3952
|
+
string;
|
|
3953
|
+
/** Data format for response. */
|
|
3954
|
+
alt?:
|
|
3955
|
+
string;
|
|
3956
|
+
/** JSONP */
|
|
3957
|
+
callback?:
|
|
3958
|
+
string;
|
|
3959
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3960
|
+
fields?:
|
|
3961
|
+
string;
|
|
3962
|
+
/** Optional. A filter for the session templates to return in the response. Filters are case sensitive and have the following syntax:field = value AND field = value ... */
|
|
3963
|
+
filter?:
|
|
3964
|
+
string;
|
|
3965
|
+
/** 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. */
|
|
3966
|
+
key?:
|
|
3967
|
+
string;
|
|
3968
|
+
/** OAuth 2.0 token for the current user. */
|
|
3969
|
+
oauth_token?:
|
|
3970
|
+
string;
|
|
3971
|
+
/** Optional. The maximum number of sessions to return in each response. The service may return fewer than this value. */
|
|
3972
|
+
pageSize?:
|
|
3973
|
+
number;
|
|
3974
|
+
/** Optional. A page token received from a previous ListSessions call. Provide this token to retrieve the subsequent page. */
|
|
3975
|
+
pageToken?:
|
|
3976
|
+
string;
|
|
3977
|
+
/** Required. The parent, which owns this collection of session templates. */
|
|
3978
|
+
parent:
|
|
3979
|
+
string;
|
|
3980
|
+
/** Returns response with indentations and line breaks. */
|
|
3981
|
+
prettyPrint?:
|
|
3982
|
+
boolean;
|
|
3983
|
+
/** 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. */
|
|
3984
|
+
quotaUser?:
|
|
3985
|
+
string;
|
|
3986
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3987
|
+
upload_protocol?:
|
|
3988
|
+
string;
|
|
3989
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3990
|
+
uploadType?:
|
|
3991
|
+
string;
|
|
3992
|
+
}): Request<ListSessionTemplatesResponse>;
|
|
3993
|
+
/** Updates the session template, synchronously.Disable check for update_mask, because all updates will be full replacements. */
|
|
3994
|
+
patch(request: {
|
|
3995
|
+
/** V1 error format. */
|
|
3996
|
+
"$.xgafv"?:
|
|
3997
|
+
string;
|
|
3998
|
+
/** OAuth access token. */
|
|
3999
|
+
access_token?:
|
|
4000
|
+
string;
|
|
4001
|
+
/** Data format for response. */
|
|
4002
|
+
alt?:
|
|
4003
|
+
string;
|
|
4004
|
+
/** JSONP */
|
|
4005
|
+
callback?:
|
|
4006
|
+
string;
|
|
4007
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
4008
|
+
fields?:
|
|
4009
|
+
string;
|
|
4010
|
+
/** 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. */
|
|
4011
|
+
key?:
|
|
4012
|
+
string;
|
|
4013
|
+
/** Required. The resource name of the session template. */
|
|
4014
|
+
name:
|
|
4015
|
+
string;
|
|
4016
|
+
/** OAuth 2.0 token for the current user. */
|
|
4017
|
+
oauth_token?:
|
|
4018
|
+
string;
|
|
4019
|
+
/** Returns response with indentations and line breaks. */
|
|
4020
|
+
prettyPrint?:
|
|
4021
|
+
boolean;
|
|
4022
|
+
/** 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. */
|
|
4023
|
+
quotaUser?:
|
|
4024
|
+
string;
|
|
4025
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
4026
|
+
upload_protocol?:
|
|
4027
|
+
string;
|
|
4028
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
4029
|
+
uploadType?:
|
|
4030
|
+
string;
|
|
4031
|
+
/** Request body */
|
|
4032
|
+
resource:
|
|
4033
|
+
SessionTemplate;
|
|
4034
|
+
}): Request<SessionTemplate>;
|
|
4035
|
+
patch(request: {
|
|
4036
|
+
/** V1 error format. */
|
|
4037
|
+
"$.xgafv"?:
|
|
4038
|
+
string;
|
|
4039
|
+
/** OAuth access token. */
|
|
4040
|
+
access_token?:
|
|
4041
|
+
string;
|
|
4042
|
+
/** Data format for response. */
|
|
4043
|
+
alt?:
|
|
4044
|
+
string;
|
|
4045
|
+
/** JSONP */
|
|
4046
|
+
callback?:
|
|
4047
|
+
string;
|
|
4048
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
4049
|
+
fields?:
|
|
4050
|
+
string;
|
|
4051
|
+
/** 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. */
|
|
4052
|
+
key?:
|
|
4053
|
+
string;
|
|
4054
|
+
/** Required. The resource name of the session template. */
|
|
4055
|
+
name:
|
|
4056
|
+
string;
|
|
4057
|
+
/** OAuth 2.0 token for the current user. */
|
|
4058
|
+
oauth_token?:
|
|
4059
|
+
string;
|
|
4060
|
+
/** Returns response with indentations and line breaks. */
|
|
4061
|
+
prettyPrint?:
|
|
4062
|
+
boolean;
|
|
4063
|
+
/** 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. */
|
|
4064
|
+
quotaUser?:
|
|
4065
|
+
string;
|
|
4066
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
4067
|
+
upload_protocol?:
|
|
4068
|
+
string;
|
|
4069
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
4070
|
+
uploadType?:
|
|
4071
|
+
string;
|
|
4072
|
+
},
|
|
4073
|
+
body: SessionTemplate): Request<SessionTemplate>;
|
|
4074
|
+
}
|
|
3230
4075
|
interface WorkflowTemplatesResource {
|
|
3231
4076
|
/** Creates new workflow template. */
|
|
3232
4077
|
create(request: {
|
|
@@ -3893,6 +4738,10 @@ declare namespace gapi.client {
|
|
|
3893
4738
|
BatchesResource;
|
|
3894
4739
|
operations:
|
|
3895
4740
|
OperationsResource;
|
|
4741
|
+
sessions:
|
|
4742
|
+
SessionsResource;
|
|
4743
|
+
sessionTemplates:
|
|
4744
|
+
SessionTemplatesResource;
|
|
3896
4745
|
workflowTemplates:
|
|
3897
4746
|
WorkflowTemplatesResource;
|
|
3898
4747
|
}
|
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: 20230814
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -327,6 +327,213 @@ gapi.load('client', async () => {
|
|
|
327
327
|
pageSize: 42,
|
|
328
328
|
pageToken: "Test string",
|
|
329
329
|
});
|
|
330
|
+
/** Create an interactive session asynchronously. */
|
|
331
|
+
await gapi.client.dataproc.projects.locations.sessions.create({
|
|
332
|
+
parent: "Test string",
|
|
333
|
+
requestId: "Test string",
|
|
334
|
+
sessionId: "Test string",
|
|
335
|
+
}, {
|
|
336
|
+
createTime: "Test string",
|
|
337
|
+
creator: "Test string",
|
|
338
|
+
environmentConfig: {
|
|
339
|
+
executionConfig: {
|
|
340
|
+
idleTtl: "Test string",
|
|
341
|
+
kmsKey: "Test string",
|
|
342
|
+
networkTags: [
|
|
343
|
+
"Test string"
|
|
344
|
+
],
|
|
345
|
+
networkUri: "Test string",
|
|
346
|
+
serviceAccount: "Test string",
|
|
347
|
+
stagingBucket: "Test string",
|
|
348
|
+
subnetworkUri: "Test string",
|
|
349
|
+
ttl: "Test string",
|
|
350
|
+
},
|
|
351
|
+
peripheralsConfig: {
|
|
352
|
+
metastoreService: "Test string",
|
|
353
|
+
sparkHistoryServerConfig: {
|
|
354
|
+
dataprocCluster: "Test string",
|
|
355
|
+
},
|
|
356
|
+
},
|
|
357
|
+
},
|
|
358
|
+
jupyterSession: {
|
|
359
|
+
displayName: "Test string",
|
|
360
|
+
kernel: "Test string",
|
|
361
|
+
},
|
|
362
|
+
labels: {
|
|
363
|
+
A: "Test string"
|
|
364
|
+
},
|
|
365
|
+
name: "Test string",
|
|
366
|
+
runtimeConfig: {
|
|
367
|
+
containerImage: "Test string",
|
|
368
|
+
properties: {
|
|
369
|
+
A: "Test string"
|
|
370
|
+
},
|
|
371
|
+
version: "Test string",
|
|
372
|
+
},
|
|
373
|
+
runtimeInfo: {
|
|
374
|
+
approximateUsage: {
|
|
375
|
+
milliDcuSeconds: "Test string",
|
|
376
|
+
shuffleStorageGbSeconds: "Test string",
|
|
377
|
+
},
|
|
378
|
+
currentUsage: {
|
|
379
|
+
milliDcu: "Test string",
|
|
380
|
+
milliDcuPremium: "Test string",
|
|
381
|
+
shuffleStorageGb: "Test string",
|
|
382
|
+
shuffleStorageGbPremium: "Test string",
|
|
383
|
+
snapshotTime: "Test string",
|
|
384
|
+
},
|
|
385
|
+
diagnosticOutputUri: "Test string",
|
|
386
|
+
endpoints: {
|
|
387
|
+
A: "Test string"
|
|
388
|
+
},
|
|
389
|
+
outputUri: "Test string",
|
|
390
|
+
},
|
|
391
|
+
sessionTemplate: "Test string",
|
|
392
|
+
state: "Test string",
|
|
393
|
+
stateHistory: [
|
|
394
|
+
{
|
|
395
|
+
state: "Test string",
|
|
396
|
+
stateMessage: "Test string",
|
|
397
|
+
stateStartTime: "Test string",
|
|
398
|
+
}
|
|
399
|
+
],
|
|
400
|
+
stateMessage: "Test string",
|
|
401
|
+
stateTime: "Test string",
|
|
402
|
+
user: "Test string",
|
|
403
|
+
uuid: "Test string",
|
|
404
|
+
});
|
|
405
|
+
/** Deletes the interactive session resource. If the session is not in terminal state, it will be terminated and deleted afterwards. */
|
|
406
|
+
await gapi.client.dataproc.projects.locations.sessions.delete({
|
|
407
|
+
name: "Test string",
|
|
408
|
+
requestId: "Test string",
|
|
409
|
+
});
|
|
410
|
+
/** Gets the resource representation for an interactive session. */
|
|
411
|
+
await gapi.client.dataproc.projects.locations.sessions.get({
|
|
412
|
+
name: "Test string",
|
|
413
|
+
});
|
|
414
|
+
/** Inject Credentials in the interactive session. */
|
|
415
|
+
await gapi.client.dataproc.projects.locations.sessions.injectCredentials({
|
|
416
|
+
session: "Test string",
|
|
417
|
+
}, {
|
|
418
|
+
credentialsCiphertext: "Test string",
|
|
419
|
+
requestId: "Test string",
|
|
420
|
+
});
|
|
421
|
+
/** Lists interactive sessions. */
|
|
422
|
+
await gapi.client.dataproc.projects.locations.sessions.list({
|
|
423
|
+
filter: "Test string",
|
|
424
|
+
pageSize: 42,
|
|
425
|
+
pageToken: "Test string",
|
|
426
|
+
parent: "Test string",
|
|
427
|
+
});
|
|
428
|
+
/** Terminates the interactive session. */
|
|
429
|
+
await gapi.client.dataproc.projects.locations.sessions.terminate({
|
|
430
|
+
name: "Test string",
|
|
431
|
+
}, {
|
|
432
|
+
requestId: "Test string",
|
|
433
|
+
});
|
|
434
|
+
/** Create an session template, synchronously. */
|
|
435
|
+
await gapi.client.dataproc.projects.locations.sessionTemplates.create({
|
|
436
|
+
parent: "Test string",
|
|
437
|
+
}, {
|
|
438
|
+
createTime: "Test string",
|
|
439
|
+
creator: "Test string",
|
|
440
|
+
description: "Test string",
|
|
441
|
+
environmentConfig: {
|
|
442
|
+
executionConfig: {
|
|
443
|
+
idleTtl: "Test string",
|
|
444
|
+
kmsKey: "Test string",
|
|
445
|
+
networkTags: [
|
|
446
|
+
"Test string"
|
|
447
|
+
],
|
|
448
|
+
networkUri: "Test string",
|
|
449
|
+
serviceAccount: "Test string",
|
|
450
|
+
stagingBucket: "Test string",
|
|
451
|
+
subnetworkUri: "Test string",
|
|
452
|
+
ttl: "Test string",
|
|
453
|
+
},
|
|
454
|
+
peripheralsConfig: {
|
|
455
|
+
metastoreService: "Test string",
|
|
456
|
+
sparkHistoryServerConfig: {
|
|
457
|
+
dataprocCluster: "Test string",
|
|
458
|
+
},
|
|
459
|
+
},
|
|
460
|
+
},
|
|
461
|
+
jupyterSession: {
|
|
462
|
+
displayName: "Test string",
|
|
463
|
+
kernel: "Test string",
|
|
464
|
+
},
|
|
465
|
+
labels: {
|
|
466
|
+
A: "Test string"
|
|
467
|
+
},
|
|
468
|
+
name: "Test string",
|
|
469
|
+
runtimeConfig: {
|
|
470
|
+
containerImage: "Test string",
|
|
471
|
+
properties: {
|
|
472
|
+
A: "Test string"
|
|
473
|
+
},
|
|
474
|
+
version: "Test string",
|
|
475
|
+
},
|
|
476
|
+
updateTime: "Test string",
|
|
477
|
+
});
|
|
478
|
+
/** Deletes a session template. */
|
|
479
|
+
await gapi.client.dataproc.projects.locations.sessionTemplates.delete({
|
|
480
|
+
name: "Test string",
|
|
481
|
+
});
|
|
482
|
+
/** Gets the resource representation for a session template. */
|
|
483
|
+
await gapi.client.dataproc.projects.locations.sessionTemplates.get({
|
|
484
|
+
name: "Test string",
|
|
485
|
+
});
|
|
486
|
+
/** Lists session templates. */
|
|
487
|
+
await gapi.client.dataproc.projects.locations.sessionTemplates.list({
|
|
488
|
+
filter: "Test string",
|
|
489
|
+
pageSize: 42,
|
|
490
|
+
pageToken: "Test string",
|
|
491
|
+
parent: "Test string",
|
|
492
|
+
});
|
|
493
|
+
/** Updates the session template, synchronously.Disable check for update_mask, because all updates will be full replacements. */
|
|
494
|
+
await gapi.client.dataproc.projects.locations.sessionTemplates.patch({
|
|
495
|
+
name: "Test string",
|
|
496
|
+
}, {
|
|
497
|
+
createTime: "Test string",
|
|
498
|
+
creator: "Test string",
|
|
499
|
+
description: "Test string",
|
|
500
|
+
environmentConfig: {
|
|
501
|
+
executionConfig: {
|
|
502
|
+
idleTtl: "Test string",
|
|
503
|
+
kmsKey: "Test string",
|
|
504
|
+
networkTags: [
|
|
505
|
+
"Test string"
|
|
506
|
+
],
|
|
507
|
+
networkUri: "Test string",
|
|
508
|
+
serviceAccount: "Test string",
|
|
509
|
+
stagingBucket: "Test string",
|
|
510
|
+
subnetworkUri: "Test string",
|
|
511
|
+
ttl: "Test string",
|
|
512
|
+
},
|
|
513
|
+
peripheralsConfig: {
|
|
514
|
+
metastoreService: "Test string",
|
|
515
|
+
sparkHistoryServerConfig: {
|
|
516
|
+
dataprocCluster: "Test string",
|
|
517
|
+
},
|
|
518
|
+
},
|
|
519
|
+
},
|
|
520
|
+
jupyterSession: {
|
|
521
|
+
displayName: "Test string",
|
|
522
|
+
kernel: "Test string",
|
|
523
|
+
},
|
|
524
|
+
labels: {
|
|
525
|
+
A: "Test string"
|
|
526
|
+
},
|
|
527
|
+
name: "Test string",
|
|
528
|
+
runtimeConfig: {
|
|
529
|
+
containerImage: "Test string",
|
|
530
|
+
properties: {
|
|
531
|
+
A: "Test string"
|
|
532
|
+
},
|
|
533
|
+
version: "Test string",
|
|
534
|
+
},
|
|
535
|
+
updateTime: "Test string",
|
|
536
|
+
});
|
|
330
537
|
/** Creates new workflow template. */
|
|
331
538
|
await gapi.client.dataproc.projects.locations.workflowTemplates.create({
|
|
332
539
|
parent: "Test string",
|