@databricks/sdk-uc-credentials 0.1.0-dev.2 → 0.1.0-dev.3
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/dist/v1/client.d.ts +14 -14
- package/dist/v1/client.d.ts.map +1 -1
- package/dist/v1/client.js +14 -14
- package/dist/v1/client.js.map +1 -1
- package/dist/v1/index.d.ts +1 -1
- package/dist/v1/index.d.ts.map +1 -1
- package/dist/v1/model.d.ts +37 -37
- package/dist/v1/model.d.ts.map +1 -1
- package/dist/v1/model.js +26 -39
- package/dist/v1/model.js.map +1 -1
- package/package.json +6 -5
- package/src/v1/client.ts +65 -71
- package/src/v1/index.ts +13 -13
- package/src/v1/model.ts +59 -82
package/src/v1/client.ts
CHANGED
|
@@ -19,32 +19,32 @@ import pkgJson from '../../package.json' with {type: 'json'};
|
|
|
19
19
|
import {z} from 'zod';
|
|
20
20
|
import type {
|
|
21
21
|
AccountsCreateStorageCredentialRequest,
|
|
22
|
-
|
|
22
|
+
AccountsCreateStorageCredentialResponse,
|
|
23
23
|
AccountsDeleteStorageCredentialRequest,
|
|
24
|
-
|
|
24
|
+
AccountsDeleteStorageCredentialResponse,
|
|
25
25
|
AccountsGetStorageCredentialRequest,
|
|
26
|
-
|
|
26
|
+
AccountsGetStorageCredentialResponse,
|
|
27
27
|
AccountsListStorageCredentialsRequest,
|
|
28
|
-
|
|
28
|
+
AccountsListStorageCredentialsResponse,
|
|
29
29
|
AccountsUpdateStorageCredentialRequest,
|
|
30
|
-
|
|
30
|
+
AccountsUpdateStorageCredentialResponse,
|
|
31
31
|
CreateCredentialRequest,
|
|
32
32
|
CreateCredentialsRequest,
|
|
33
33
|
CreateStorageCredentialRequest,
|
|
34
34
|
CredentialInfo,
|
|
35
35
|
Credentials,
|
|
36
36
|
DeleteCredentialRequest,
|
|
37
|
-
|
|
37
|
+
DeleteCredentialResponse,
|
|
38
38
|
DeleteCredentialsRequest,
|
|
39
39
|
DeleteStorageCredentialRequest,
|
|
40
|
-
|
|
40
|
+
DeleteStorageCredentialResponse,
|
|
41
41
|
GenerateTemporaryPathCredentialRequest,
|
|
42
|
-
|
|
42
|
+
GenerateTemporaryPathCredentialResponse,
|
|
43
43
|
GenerateTemporaryServiceCredentialRequest,
|
|
44
44
|
GenerateTemporaryTableCredentialRequest,
|
|
45
|
-
|
|
45
|
+
GenerateTemporaryTableCredentialResponse,
|
|
46
46
|
GenerateTemporaryVolumeCredentialRequest,
|
|
47
|
-
|
|
47
|
+
GenerateTemporaryVolumeCredentialResponse,
|
|
48
48
|
GetCredentialRequest,
|
|
49
49
|
GetCredentialsRequest,
|
|
50
50
|
GetStorageCredentialRequest,
|
|
@@ -53,15 +53,15 @@ import type {
|
|
|
53
53
|
ListCredentialsRequest_Response,
|
|
54
54
|
ListCredentialsResponse,
|
|
55
55
|
ListStorageCredentialsRequest,
|
|
56
|
-
|
|
56
|
+
ListStorageCredentialsResponse,
|
|
57
57
|
StorageCredentialInfo,
|
|
58
58
|
TemporaryCredentials,
|
|
59
59
|
UpdateCredentialRequest,
|
|
60
60
|
UpdateStorageCredentialRequest,
|
|
61
61
|
ValidateCredentialRequest,
|
|
62
|
-
|
|
62
|
+
ValidateCredentialResponse,
|
|
63
63
|
ValidateStorageCredentialRequest,
|
|
64
|
-
|
|
64
|
+
ValidateStorageCredentialResponse,
|
|
65
65
|
} from './model';
|
|
66
66
|
import {
|
|
67
67
|
marshalAccountsCreateStorageCredentialRequestSchema,
|
|
@@ -77,23 +77,23 @@ import {
|
|
|
77
77
|
marshalUpdateStorageCredentialRequestSchema,
|
|
78
78
|
marshalValidateCredentialRequestSchema,
|
|
79
79
|
marshalValidateStorageCredentialRequestSchema,
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
80
|
+
unmarshalAccountsCreateStorageCredentialResponseSchema,
|
|
81
|
+
unmarshalAccountsDeleteStorageCredentialResponseSchema,
|
|
82
|
+
unmarshalAccountsGetStorageCredentialResponseSchema,
|
|
83
|
+
unmarshalAccountsListStorageCredentialsResponseSchema,
|
|
84
|
+
unmarshalAccountsUpdateStorageCredentialResponseSchema,
|
|
85
85
|
unmarshalCredentialsSchema,
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
86
|
+
unmarshalDeleteCredentialResponseSchema,
|
|
87
|
+
unmarshalDeleteStorageCredentialResponseSchema,
|
|
88
|
+
unmarshalGenerateTemporaryPathCredentialResponseSchema,
|
|
89
|
+
unmarshalGenerateTemporaryTableCredentialResponseSchema,
|
|
90
|
+
unmarshalGenerateTemporaryVolumeCredentialResponseSchema,
|
|
91
91
|
unmarshalListCredentialsRequest_ResponseSchema,
|
|
92
|
-
|
|
92
|
+
unmarshalListStorageCredentialsResponseSchema,
|
|
93
93
|
unmarshalStorageCredentialInfoSchema,
|
|
94
94
|
unmarshalTemporaryCredentialsSchema,
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
unmarshalValidateCredentialResponseSchema,
|
|
96
|
+
unmarshalValidateStorageCredentialResponseSchema,
|
|
97
97
|
} from './model';
|
|
98
98
|
|
|
99
99
|
// Package identity segment for this client to be used in the User-Agent header.
|
|
@@ -145,13 +145,13 @@ export class CredentialsClient {
|
|
|
145
145
|
async createAccountsStorageCredential(
|
|
146
146
|
req: AccountsCreateStorageCredentialRequest,
|
|
147
147
|
options?: CallOptions
|
|
148
|
-
): Promise<
|
|
148
|
+
): Promise<AccountsCreateStorageCredentialResponse> {
|
|
149
149
|
const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/metastores/${req.metastoreId ?? ''}/storage-credentials`;
|
|
150
150
|
const body = marshalRequest(
|
|
151
151
|
req,
|
|
152
152
|
marshalAccountsCreateStorageCredentialRequestSchema
|
|
153
153
|
);
|
|
154
|
-
let resp:
|
|
154
|
+
let resp: AccountsCreateStorageCredentialResponse | undefined;
|
|
155
155
|
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
156
156
|
const headers = new Headers({'Content-Type': 'application/json'});
|
|
157
157
|
headers.set('User-Agent', this.userAgent);
|
|
@@ -163,7 +163,7 @@ export class CredentialsClient {
|
|
|
163
163
|
});
|
|
164
164
|
resp = parseResponse(
|
|
165
165
|
respBody,
|
|
166
|
-
|
|
166
|
+
unmarshalAccountsCreateStorageCredentialResponseSchema
|
|
167
167
|
);
|
|
168
168
|
};
|
|
169
169
|
await executeCall(call, options);
|
|
@@ -177,7 +177,7 @@ export class CredentialsClient {
|
|
|
177
177
|
async deleteAccountsStorageCredential(
|
|
178
178
|
req: AccountsDeleteStorageCredentialRequest,
|
|
179
179
|
options?: CallOptions
|
|
180
|
-
): Promise<
|
|
180
|
+
): Promise<AccountsDeleteStorageCredentialResponse> {
|
|
181
181
|
const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/metastores/${req.metastoreId ?? ''}/storage-credentials/${req.nameArg ?? ''}`;
|
|
182
182
|
const params = new URLSearchParams();
|
|
183
183
|
if (req.force !== undefined) {
|
|
@@ -185,7 +185,7 @@ export class CredentialsClient {
|
|
|
185
185
|
}
|
|
186
186
|
const query = params.toString();
|
|
187
187
|
const fullUrl = query !== '' ? `${url}?${query}` : url;
|
|
188
|
-
let resp:
|
|
188
|
+
let resp: AccountsDeleteStorageCredentialResponse | undefined;
|
|
189
189
|
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
190
190
|
const headers = new Headers();
|
|
191
191
|
headers.set('User-Agent', this.userAgent);
|
|
@@ -197,7 +197,7 @@ export class CredentialsClient {
|
|
|
197
197
|
});
|
|
198
198
|
resp = parseResponse(
|
|
199
199
|
respBody,
|
|
200
|
-
|
|
200
|
+
unmarshalAccountsDeleteStorageCredentialResponseSchema
|
|
201
201
|
);
|
|
202
202
|
};
|
|
203
203
|
await executeCall(call, options);
|
|
@@ -214,9 +214,9 @@ export class CredentialsClient {
|
|
|
214
214
|
async getAccountsStorageCredential(
|
|
215
215
|
req: AccountsGetStorageCredentialRequest,
|
|
216
216
|
options?: CallOptions
|
|
217
|
-
): Promise<
|
|
217
|
+
): Promise<AccountsGetStorageCredentialResponse> {
|
|
218
218
|
const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/metastores/${req.metastoreId ?? ''}/storage-credentials/${req.nameArg ?? ''}`;
|
|
219
|
-
let resp:
|
|
219
|
+
let resp: AccountsGetStorageCredentialResponse | undefined;
|
|
220
220
|
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
221
221
|
const headers = new Headers();
|
|
222
222
|
headers.set('User-Agent', this.userAgent);
|
|
@@ -228,7 +228,7 @@ export class CredentialsClient {
|
|
|
228
228
|
});
|
|
229
229
|
resp = parseResponse(
|
|
230
230
|
respBody,
|
|
231
|
-
|
|
231
|
+
unmarshalAccountsGetStorageCredentialResponseSchema
|
|
232
232
|
);
|
|
233
233
|
};
|
|
234
234
|
await executeCall(call, options);
|
|
@@ -242,9 +242,9 @@ export class CredentialsClient {
|
|
|
242
242
|
async listAccountsStorageCredentials(
|
|
243
243
|
req: AccountsListStorageCredentialsRequest,
|
|
244
244
|
options?: CallOptions
|
|
245
|
-
): Promise<
|
|
245
|
+
): Promise<AccountsListStorageCredentialsResponse> {
|
|
246
246
|
const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/metastores/${req.metastoreId ?? ''}/storage-credentials`;
|
|
247
|
-
let resp:
|
|
247
|
+
let resp: AccountsListStorageCredentialsResponse | undefined;
|
|
248
248
|
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
249
249
|
const headers = new Headers();
|
|
250
250
|
headers.set('User-Agent', this.userAgent);
|
|
@@ -256,7 +256,7 @@ export class CredentialsClient {
|
|
|
256
256
|
});
|
|
257
257
|
resp = parseResponse(
|
|
258
258
|
respBody,
|
|
259
|
-
|
|
259
|
+
unmarshalAccountsListStorageCredentialsResponseSchema
|
|
260
260
|
);
|
|
261
261
|
};
|
|
262
262
|
await executeCall(call, options);
|
|
@@ -273,13 +273,13 @@ export class CredentialsClient {
|
|
|
273
273
|
async updateAccountsStorageCredential(
|
|
274
274
|
req: AccountsUpdateStorageCredentialRequest,
|
|
275
275
|
options?: CallOptions
|
|
276
|
-
): Promise<
|
|
276
|
+
): Promise<AccountsUpdateStorageCredentialResponse> {
|
|
277
277
|
const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/metastores/${req.metastoreId ?? ''}/storage-credentials/${req.nameArg ?? ''}`;
|
|
278
278
|
const body = marshalRequest(
|
|
279
279
|
req,
|
|
280
280
|
marshalAccountsUpdateStorageCredentialRequestSchema
|
|
281
281
|
);
|
|
282
|
-
let resp:
|
|
282
|
+
let resp: AccountsUpdateStorageCredentialResponse | undefined;
|
|
283
283
|
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
284
284
|
const headers = new Headers({'Content-Type': 'application/json'});
|
|
285
285
|
headers.set('User-Agent', this.userAgent);
|
|
@@ -291,7 +291,7 @@ export class CredentialsClient {
|
|
|
291
291
|
});
|
|
292
292
|
resp = parseResponse(
|
|
293
293
|
respBody,
|
|
294
|
-
|
|
294
|
+
unmarshalAccountsUpdateStorageCredentialResponseSchema
|
|
295
295
|
);
|
|
296
296
|
};
|
|
297
297
|
await executeCall(call, options);
|
|
@@ -376,7 +376,7 @@ export class CredentialsClient {
|
|
|
376
376
|
async deleteCredential(
|
|
377
377
|
req: DeleteCredentialRequest,
|
|
378
378
|
options?: CallOptions
|
|
379
|
-
): Promise<
|
|
379
|
+
): Promise<DeleteCredentialResponse> {
|
|
380
380
|
const url = `${this.host}/api/2.1/unity-catalog/credentials/${req.nameArg ?? ''}`;
|
|
381
381
|
const params = new URLSearchParams();
|
|
382
382
|
if (req.force !== undefined) {
|
|
@@ -384,7 +384,7 @@ export class CredentialsClient {
|
|
|
384
384
|
}
|
|
385
385
|
const query = params.toString();
|
|
386
386
|
const fullUrl = query !== '' ? `${url}?${query}` : url;
|
|
387
|
-
let resp:
|
|
387
|
+
let resp: DeleteCredentialResponse | undefined;
|
|
388
388
|
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
389
389
|
const headers = new Headers();
|
|
390
390
|
if (this.workspaceId !== undefined) {
|
|
@@ -397,10 +397,7 @@ export class CredentialsClient {
|
|
|
397
397
|
httpClient: this.httpClient,
|
|
398
398
|
logger: this.logger,
|
|
399
399
|
});
|
|
400
|
-
resp = parseResponse(
|
|
401
|
-
respBody,
|
|
402
|
-
unmarshalDeleteCredentialRequest_ResponseSchema
|
|
403
|
-
);
|
|
400
|
+
resp = parseResponse(respBody, unmarshalDeleteCredentialResponseSchema);
|
|
404
401
|
};
|
|
405
402
|
await executeCall(call, options);
|
|
406
403
|
if (resp === undefined) {
|
|
@@ -413,7 +410,7 @@ export class CredentialsClient {
|
|
|
413
410
|
async deleteStorageCredential(
|
|
414
411
|
req: DeleteStorageCredentialRequest,
|
|
415
412
|
options?: CallOptions
|
|
416
|
-
): Promise<
|
|
413
|
+
): Promise<DeleteStorageCredentialResponse> {
|
|
417
414
|
const url = `${this.host}/api/2.1/unity-catalog/storage-credentials/${req.nameArg ?? ''}`;
|
|
418
415
|
const params = new URLSearchParams();
|
|
419
416
|
if (req.force !== undefined) {
|
|
@@ -421,7 +418,7 @@ export class CredentialsClient {
|
|
|
421
418
|
}
|
|
422
419
|
const query = params.toString();
|
|
423
420
|
const fullUrl = query !== '' ? `${url}?${query}` : url;
|
|
424
|
-
let resp:
|
|
421
|
+
let resp: DeleteStorageCredentialResponse | undefined;
|
|
425
422
|
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
426
423
|
const headers = new Headers();
|
|
427
424
|
if (this.workspaceId !== undefined) {
|
|
@@ -436,7 +433,7 @@ export class CredentialsClient {
|
|
|
436
433
|
});
|
|
437
434
|
resp = parseResponse(
|
|
438
435
|
respBody,
|
|
439
|
-
|
|
436
|
+
unmarshalDeleteStorageCredentialResponseSchema
|
|
440
437
|
);
|
|
441
438
|
};
|
|
442
439
|
await executeCall(call, options);
|
|
@@ -459,13 +456,13 @@ export class CredentialsClient {
|
|
|
459
456
|
async generateTemporaryPathCredential(
|
|
460
457
|
req: GenerateTemporaryPathCredentialRequest,
|
|
461
458
|
options?: CallOptions
|
|
462
|
-
): Promise<
|
|
459
|
+
): Promise<GenerateTemporaryPathCredentialResponse> {
|
|
463
460
|
const url = `${this.host}/api/2.0/unity-catalog/temporary-path-credentials`;
|
|
464
461
|
const body = marshalRequest(
|
|
465
462
|
req,
|
|
466
463
|
marshalGenerateTemporaryPathCredentialRequestSchema
|
|
467
464
|
);
|
|
468
|
-
let resp:
|
|
465
|
+
let resp: GenerateTemporaryPathCredentialResponse | undefined;
|
|
469
466
|
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
470
467
|
const headers = new Headers({'Content-Type': 'application/json'});
|
|
471
468
|
if (this.workspaceId !== undefined) {
|
|
@@ -480,7 +477,7 @@ export class CredentialsClient {
|
|
|
480
477
|
});
|
|
481
478
|
resp = parseResponse(
|
|
482
479
|
respBody,
|
|
483
|
-
|
|
480
|
+
unmarshalGenerateTemporaryPathCredentialResponseSchema
|
|
484
481
|
);
|
|
485
482
|
};
|
|
486
483
|
await executeCall(call, options);
|
|
@@ -534,13 +531,13 @@ export class CredentialsClient {
|
|
|
534
531
|
async generateTemporaryTableCredential(
|
|
535
532
|
req: GenerateTemporaryTableCredentialRequest,
|
|
536
533
|
options?: CallOptions
|
|
537
|
-
): Promise<
|
|
534
|
+
): Promise<GenerateTemporaryTableCredentialResponse> {
|
|
538
535
|
const url = `${this.host}/api/2.0/unity-catalog/temporary-table-credentials`;
|
|
539
536
|
const body = marshalRequest(
|
|
540
537
|
req,
|
|
541
538
|
marshalGenerateTemporaryTableCredentialRequestSchema
|
|
542
539
|
);
|
|
543
|
-
let resp:
|
|
540
|
+
let resp: GenerateTemporaryTableCredentialResponse | undefined;
|
|
544
541
|
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
545
542
|
const headers = new Headers({'Content-Type': 'application/json'});
|
|
546
543
|
if (this.workspaceId !== undefined) {
|
|
@@ -555,7 +552,7 @@ export class CredentialsClient {
|
|
|
555
552
|
});
|
|
556
553
|
resp = parseResponse(
|
|
557
554
|
respBody,
|
|
558
|
-
|
|
555
|
+
unmarshalGenerateTemporaryTableCredentialResponseSchema
|
|
559
556
|
);
|
|
560
557
|
};
|
|
561
558
|
await executeCall(call, options);
|
|
@@ -574,13 +571,13 @@ export class CredentialsClient {
|
|
|
574
571
|
async generateTemporaryVolumeCredential(
|
|
575
572
|
req: GenerateTemporaryVolumeCredentialRequest,
|
|
576
573
|
options?: CallOptions
|
|
577
|
-
): Promise<
|
|
574
|
+
): Promise<GenerateTemporaryVolumeCredentialResponse> {
|
|
578
575
|
const url = `${this.host}/api/2.0/unity-catalog/temporary-volume-credentials`;
|
|
579
576
|
const body = marshalRequest(
|
|
580
577
|
req,
|
|
581
578
|
marshalGenerateTemporaryVolumeCredentialRequestSchema
|
|
582
579
|
);
|
|
583
|
-
let resp:
|
|
580
|
+
let resp: GenerateTemporaryVolumeCredentialResponse | undefined;
|
|
584
581
|
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
585
582
|
const headers = new Headers({'Content-Type': 'application/json'});
|
|
586
583
|
if (this.workspaceId !== undefined) {
|
|
@@ -595,7 +592,7 @@ export class CredentialsClient {
|
|
|
595
592
|
});
|
|
596
593
|
resp = parseResponse(
|
|
597
594
|
respBody,
|
|
598
|
-
|
|
595
|
+
unmarshalGenerateTemporaryVolumeCredentialResponseSchema
|
|
599
596
|
);
|
|
600
597
|
};
|
|
601
598
|
await executeCall(call, options);
|
|
@@ -750,7 +747,7 @@ export class CredentialsClient {
|
|
|
750
747
|
async listStorageCredentials(
|
|
751
748
|
req: ListStorageCredentialsRequest,
|
|
752
749
|
options?: CallOptions
|
|
753
|
-
): Promise<
|
|
750
|
+
): Promise<ListStorageCredentialsResponse> {
|
|
754
751
|
const url = `${this.host}/api/2.1/unity-catalog/storage-credentials`;
|
|
755
752
|
const params = new URLSearchParams();
|
|
756
753
|
if (req.includeUnbound !== undefined) {
|
|
@@ -764,7 +761,7 @@ export class CredentialsClient {
|
|
|
764
761
|
}
|
|
765
762
|
const query = params.toString();
|
|
766
763
|
const fullUrl = query !== '' ? `${url}?${query}` : url;
|
|
767
|
-
let resp:
|
|
764
|
+
let resp: ListStorageCredentialsResponse | undefined;
|
|
768
765
|
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
769
766
|
const headers = new Headers();
|
|
770
767
|
if (this.workspaceId !== undefined) {
|
|
@@ -779,7 +776,7 @@ export class CredentialsClient {
|
|
|
779
776
|
});
|
|
780
777
|
resp = parseResponse(
|
|
781
778
|
respBody,
|
|
782
|
-
|
|
779
|
+
unmarshalListStorageCredentialsResponseSchema
|
|
783
780
|
);
|
|
784
781
|
};
|
|
785
782
|
await executeCall(call, options);
|
|
@@ -894,10 +891,10 @@ export class CredentialsClient {
|
|
|
894
891
|
async validateCredential(
|
|
895
892
|
req: ValidateCredentialRequest,
|
|
896
893
|
options?: CallOptions
|
|
897
|
-
): Promise<
|
|
894
|
+
): Promise<ValidateCredentialResponse> {
|
|
898
895
|
const url = `${this.host}/api/2.1/unity-catalog/validate-credentials`;
|
|
899
896
|
const body = marshalRequest(req, marshalValidateCredentialRequestSchema);
|
|
900
|
-
let resp:
|
|
897
|
+
let resp: ValidateCredentialResponse | undefined;
|
|
901
898
|
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
902
899
|
const headers = new Headers({'Content-Type': 'application/json'});
|
|
903
900
|
if (this.workspaceId !== undefined) {
|
|
@@ -910,10 +907,7 @@ export class CredentialsClient {
|
|
|
910
907
|
httpClient: this.httpClient,
|
|
911
908
|
logger: this.logger,
|
|
912
909
|
});
|
|
913
|
-
resp = parseResponse(
|
|
914
|
-
respBody,
|
|
915
|
-
unmarshalValidateCredentialRequest_ResponseSchema
|
|
916
|
-
);
|
|
910
|
+
resp = parseResponse(respBody, unmarshalValidateCredentialResponseSchema);
|
|
917
911
|
};
|
|
918
912
|
await executeCall(call, options);
|
|
919
913
|
if (resp === undefined) {
|
|
@@ -936,13 +930,13 @@ export class CredentialsClient {
|
|
|
936
930
|
async validateStorageCredential(
|
|
937
931
|
req: ValidateStorageCredentialRequest,
|
|
938
932
|
options?: CallOptions
|
|
939
|
-
): Promise<
|
|
933
|
+
): Promise<ValidateStorageCredentialResponse> {
|
|
940
934
|
const url = `${this.host}/api/2.1/unity-catalog/validate-storage-credentials`;
|
|
941
935
|
const body = marshalRequest(
|
|
942
936
|
req,
|
|
943
937
|
marshalValidateStorageCredentialRequestSchema
|
|
944
938
|
);
|
|
945
|
-
let resp:
|
|
939
|
+
let resp: ValidateStorageCredentialResponse | undefined;
|
|
946
940
|
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
947
941
|
const headers = new Headers({'Content-Type': 'application/json'});
|
|
948
942
|
if (this.workspaceId !== undefined) {
|
|
@@ -957,7 +951,7 @@ export class CredentialsClient {
|
|
|
957
951
|
});
|
|
958
952
|
resp = parseResponse(
|
|
959
953
|
respBody,
|
|
960
|
-
|
|
954
|
+
unmarshalValidateStorageCredentialResponseSchema
|
|
961
955
|
);
|
|
962
956
|
};
|
|
963
957
|
await executeCall(call, options);
|
package/src/v1/index.ts
CHANGED
|
@@ -14,15 +14,15 @@ export {
|
|
|
14
14
|
|
|
15
15
|
export type {
|
|
16
16
|
AccountsCreateStorageCredentialRequest,
|
|
17
|
-
|
|
17
|
+
AccountsCreateStorageCredentialResponse,
|
|
18
18
|
AccountsDeleteStorageCredentialRequest,
|
|
19
|
-
|
|
19
|
+
AccountsDeleteStorageCredentialResponse,
|
|
20
20
|
AccountsGetStorageCredentialRequest,
|
|
21
|
-
|
|
21
|
+
AccountsGetStorageCredentialResponse,
|
|
22
22
|
AccountsListStorageCredentialsRequest,
|
|
23
|
-
|
|
23
|
+
AccountsListStorageCredentialsResponse,
|
|
24
24
|
AccountsUpdateStorageCredentialRequest,
|
|
25
|
-
|
|
25
|
+
AccountsUpdateStorageCredentialResponse,
|
|
26
26
|
AwsCredentials,
|
|
27
27
|
AwsCredentials_StsRole,
|
|
28
28
|
AwsIamRole,
|
|
@@ -40,21 +40,21 @@ export type {
|
|
|
40
40
|
Credentials,
|
|
41
41
|
DatabricksGcpServiceAccount,
|
|
42
42
|
DeleteCredentialRequest,
|
|
43
|
-
|
|
43
|
+
DeleteCredentialResponse,
|
|
44
44
|
DeleteCredentialsRequest,
|
|
45
45
|
DeleteStorageCredentialRequest,
|
|
46
|
-
|
|
46
|
+
DeleteStorageCredentialResponse,
|
|
47
47
|
GcpOauthToken,
|
|
48
48
|
GcpServiceAccountKey,
|
|
49
49
|
GenerateTemporaryPathCredentialRequest,
|
|
50
|
-
|
|
50
|
+
GenerateTemporaryPathCredentialResponse,
|
|
51
51
|
GenerateTemporaryServiceCredentialRequest,
|
|
52
52
|
GenerateTemporaryServiceCredentialRequest_AzureOptions,
|
|
53
53
|
GenerateTemporaryServiceCredentialRequest_GcpOptions,
|
|
54
54
|
GenerateTemporaryTableCredentialRequest,
|
|
55
|
-
|
|
55
|
+
GenerateTemporaryTableCredentialResponse,
|
|
56
56
|
GenerateTemporaryVolumeCredentialRequest,
|
|
57
|
-
|
|
57
|
+
GenerateTemporaryVolumeCredentialResponse,
|
|
58
58
|
GetCredentialRequest,
|
|
59
59
|
GetCredentialsRequest,
|
|
60
60
|
GetStorageCredentialRequest,
|
|
@@ -63,7 +63,7 @@ export type {
|
|
|
63
63
|
ListCredentialsRequest_Response,
|
|
64
64
|
ListCredentialsResponse,
|
|
65
65
|
ListStorageCredentialsRequest,
|
|
66
|
-
|
|
66
|
+
ListStorageCredentialsResponse,
|
|
67
67
|
R2Credentials,
|
|
68
68
|
StorageCredentialInfo,
|
|
69
69
|
TemporaryAwsCredentials,
|
|
@@ -72,9 +72,9 @@ export type {
|
|
|
72
72
|
UpdateCredentialRequest,
|
|
73
73
|
UpdateStorageCredentialRequest,
|
|
74
74
|
ValidateCredentialRequest,
|
|
75
|
-
ValidateCredentialRequest_Response,
|
|
76
75
|
ValidateCredentialRequest_ValidationResult,
|
|
76
|
+
ValidateCredentialResponse,
|
|
77
77
|
ValidateStorageCredentialRequest,
|
|
78
|
-
ValidateStorageCredentialRequest_Response,
|
|
79
78
|
ValidateStorageCredentialRequest_ValidationResult,
|
|
79
|
+
ValidateStorageCredentialResponse,
|
|
80
80
|
} from './model';
|