@databricks/sdk-uc-metastores 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/src/v1/client.ts CHANGED
@@ -18,42 +18,42 @@ import {
18
18
  import pkgJson from '../../package.json' with {type: 'json'};
19
19
  import type {
20
20
  AccountsCreateMetastoreAssignmentRequest,
21
- AccountsCreateMetastoreAssignmentRequest_Response,
21
+ AccountsCreateMetastoreAssignmentResponse,
22
22
  AccountsCreateMetastoreRequest,
23
- AccountsCreateMetastoreRequest_Response,
23
+ AccountsCreateMetastoreResponse,
24
24
  AccountsDeleteMetastoreAssignmentRequest,
25
- AccountsDeleteMetastoreAssignmentRequest_Response,
25
+ AccountsDeleteMetastoreAssignmentResponse,
26
26
  AccountsDeleteMetastoreRequest,
27
- AccountsDeleteMetastoreRequest_Response,
27
+ AccountsDeleteMetastoreResponse,
28
28
  AccountsGetMetastoreAssignmentRequest,
29
- AccountsGetMetastoreAssignmentRequest_Response,
29
+ AccountsGetMetastoreAssignmentResponse,
30
30
  AccountsGetMetastoreRequest,
31
- AccountsGetMetastoreRequest_Response,
31
+ AccountsGetMetastoreResponse,
32
32
  AccountsListMetastoresRequest,
33
- AccountsListMetastoresRequest_Response,
33
+ AccountsListMetastoresResponse,
34
34
  AccountsListWorkspaceIdsForMetastoreRequest,
35
- AccountsListWorkspaceIdsForMetastoreRequest_Response,
35
+ AccountsListWorkspaceIdsForMetastoreResponse,
36
36
  AccountsUpdateMetastoreAssignmentRequest,
37
- AccountsUpdateMetastoreAssignmentRequest_Response,
37
+ AccountsUpdateMetastoreAssignmentResponse,
38
38
  AccountsUpdateMetastoreRequest,
39
- AccountsUpdateMetastoreRequest_Response,
39
+ AccountsUpdateMetastoreResponse,
40
40
  CreateMetastoreAssignmentRequest,
41
- CreateMetastoreAssignmentRequest_Response,
41
+ CreateMetastoreAssignmentResponse,
42
42
  CreateMetastoreRequest,
43
43
  DeleteMetastoreAssignmentRequest,
44
- DeleteMetastoreAssignmentRequest_Response,
44
+ DeleteMetastoreAssignmentResponse,
45
45
  DeleteMetastoreRequest,
46
- DeleteMetastoreRequest_Response,
46
+ DeleteMetastoreResponse,
47
47
  GetCurrentMetastoreAssignmentRequest,
48
48
  GetMetastoreRequest,
49
49
  GetMetastoreSummaryRequest,
50
- GetMetastoreSummaryRequest_Response,
50
+ GetMetastoreSummaryResponse,
51
51
  ListMetastoresRequest,
52
- ListMetastoresRequest_Response,
52
+ ListMetastoresResponse,
53
53
  MetastoreAssignment,
54
54
  MetastoreInfo,
55
55
  UpdateMetastoreAssignmentRequest,
56
- UpdateMetastoreAssignmentRequest_Response,
56
+ UpdateMetastoreAssignmentResponse,
57
57
  UpdateMetastoreRequest,
58
58
  } from './model';
59
59
  import {
@@ -65,24 +65,24 @@ import {
65
65
  marshalCreateMetastoreRequestSchema,
66
66
  marshalUpdateMetastoreAssignmentRequestSchema,
67
67
  marshalUpdateMetastoreRequestSchema,
68
- unmarshalAccountsCreateMetastoreAssignmentRequest_ResponseSchema,
69
- unmarshalAccountsCreateMetastoreRequest_ResponseSchema,
70
- unmarshalAccountsDeleteMetastoreAssignmentRequest_ResponseSchema,
71
- unmarshalAccountsDeleteMetastoreRequest_ResponseSchema,
72
- unmarshalAccountsGetMetastoreAssignmentRequest_ResponseSchema,
73
- unmarshalAccountsGetMetastoreRequest_ResponseSchema,
74
- unmarshalAccountsListMetastoresRequest_ResponseSchema,
75
- unmarshalAccountsListWorkspaceIdsForMetastoreRequest_ResponseSchema,
76
- unmarshalAccountsUpdateMetastoreAssignmentRequest_ResponseSchema,
77
- unmarshalAccountsUpdateMetastoreRequest_ResponseSchema,
78
- unmarshalCreateMetastoreAssignmentRequest_ResponseSchema,
79
- unmarshalDeleteMetastoreAssignmentRequest_ResponseSchema,
80
- unmarshalDeleteMetastoreRequest_ResponseSchema,
81
- unmarshalGetMetastoreSummaryRequest_ResponseSchema,
82
- unmarshalListMetastoresRequest_ResponseSchema,
68
+ unmarshalAccountsCreateMetastoreAssignmentResponseSchema,
69
+ unmarshalAccountsCreateMetastoreResponseSchema,
70
+ unmarshalAccountsDeleteMetastoreAssignmentResponseSchema,
71
+ unmarshalAccountsDeleteMetastoreResponseSchema,
72
+ unmarshalAccountsGetMetastoreAssignmentResponseSchema,
73
+ unmarshalAccountsGetMetastoreResponseSchema,
74
+ unmarshalAccountsListMetastoresResponseSchema,
75
+ unmarshalAccountsListWorkspaceIdsForMetastoreResponseSchema,
76
+ unmarshalAccountsUpdateMetastoreAssignmentResponseSchema,
77
+ unmarshalAccountsUpdateMetastoreResponseSchema,
78
+ unmarshalCreateMetastoreAssignmentResponseSchema,
79
+ unmarshalDeleteMetastoreAssignmentResponseSchema,
80
+ unmarshalDeleteMetastoreResponseSchema,
81
+ unmarshalGetMetastoreSummaryResponseSchema,
82
+ unmarshalListMetastoresResponseSchema,
83
83
  unmarshalMetastoreAssignmentSchema,
84
84
  unmarshalMetastoreInfoSchema,
85
- unmarshalUpdateMetastoreAssignmentRequest_ResponseSchema,
85
+ unmarshalUpdateMetastoreAssignmentResponseSchema,
86
86
  } from './model';
87
87
 
88
88
  // Package identity segment for this client to be used in the User-Agent header.
@@ -127,13 +127,13 @@ export class MetastoresClient {
127
127
  async createAccountsMetastore(
128
128
  req: AccountsCreateMetastoreRequest,
129
129
  options?: CallOptions
130
- ): Promise<AccountsCreateMetastoreRequest_Response> {
130
+ ): Promise<AccountsCreateMetastoreResponse> {
131
131
  const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/metastores`;
132
132
  const body = marshalRequest(
133
133
  req,
134
134
  marshalAccountsCreateMetastoreRequestSchema
135
135
  );
136
- let resp: AccountsCreateMetastoreRequest_Response | undefined;
136
+ let resp: AccountsCreateMetastoreResponse | undefined;
137
137
  const call = async (callSignal?: AbortSignal): Promise<void> => {
138
138
  const headers = new Headers({'Content-Type': 'application/json'});
139
139
  headers.set('User-Agent', this.userAgent);
@@ -145,7 +145,7 @@ export class MetastoresClient {
145
145
  });
146
146
  resp = parseResponse(
147
147
  respBody,
148
- unmarshalAccountsCreateMetastoreRequest_ResponseSchema
148
+ unmarshalAccountsCreateMetastoreResponseSchema
149
149
  );
150
150
  };
151
151
  await executeCall(call, options);
@@ -159,13 +159,13 @@ export class MetastoresClient {
159
159
  async createAccountsMetastoreAssignment(
160
160
  req: AccountsCreateMetastoreAssignmentRequest,
161
161
  options?: CallOptions
162
- ): Promise<AccountsCreateMetastoreAssignmentRequest_Response> {
162
+ ): Promise<AccountsCreateMetastoreAssignmentResponse> {
163
163
  const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/workspaces/${String(req.workspaceId ?? '')}/metastores/${req.metastoreId ?? ''}`;
164
164
  const body = marshalRequest(
165
165
  req,
166
166
  marshalAccountsCreateMetastoreAssignmentRequestSchema
167
167
  );
168
- let resp: AccountsCreateMetastoreAssignmentRequest_Response | undefined;
168
+ let resp: AccountsCreateMetastoreAssignmentResponse | undefined;
169
169
  const call = async (callSignal?: AbortSignal): Promise<void> => {
170
170
  const headers = new Headers({'Content-Type': 'application/json'});
171
171
  headers.set('User-Agent', this.userAgent);
@@ -177,7 +177,7 @@ export class MetastoresClient {
177
177
  });
178
178
  resp = parseResponse(
179
179
  respBody,
180
- unmarshalAccountsCreateMetastoreAssignmentRequest_ResponseSchema
180
+ unmarshalAccountsCreateMetastoreAssignmentResponseSchema
181
181
  );
182
182
  };
183
183
  await executeCall(call, options);
@@ -191,7 +191,7 @@ export class MetastoresClient {
191
191
  async deleteAccountsMetastore(
192
192
  req: AccountsDeleteMetastoreRequest,
193
193
  options?: CallOptions
194
- ): Promise<AccountsDeleteMetastoreRequest_Response> {
194
+ ): Promise<AccountsDeleteMetastoreResponse> {
195
195
  const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/metastores/${req.metastoreId ?? ''}`;
196
196
  const params = new URLSearchParams();
197
197
  if (req.force !== undefined) {
@@ -199,7 +199,7 @@ export class MetastoresClient {
199
199
  }
200
200
  const query = params.toString();
201
201
  const fullUrl = query !== '' ? `${url}?${query}` : url;
202
- let resp: AccountsDeleteMetastoreRequest_Response | undefined;
202
+ let resp: AccountsDeleteMetastoreResponse | undefined;
203
203
  const call = async (callSignal?: AbortSignal): Promise<void> => {
204
204
  const headers = new Headers();
205
205
  headers.set('User-Agent', this.userAgent);
@@ -211,7 +211,7 @@ export class MetastoresClient {
211
211
  });
212
212
  resp = parseResponse(
213
213
  respBody,
214
- unmarshalAccountsDeleteMetastoreRequest_ResponseSchema
214
+ unmarshalAccountsDeleteMetastoreResponseSchema
215
215
  );
216
216
  };
217
217
  await executeCall(call, options);
@@ -225,9 +225,9 @@ export class MetastoresClient {
225
225
  async deleteAccountsMetastoreAssignment(
226
226
  req: AccountsDeleteMetastoreAssignmentRequest,
227
227
  options?: CallOptions
228
- ): Promise<AccountsDeleteMetastoreAssignmentRequest_Response> {
228
+ ): Promise<AccountsDeleteMetastoreAssignmentResponse> {
229
229
  const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/workspaces/${String(req.workspaceId ?? '')}/metastores/${req.metastoreId ?? ''}`;
230
- let resp: AccountsDeleteMetastoreAssignmentRequest_Response | undefined;
230
+ let resp: AccountsDeleteMetastoreAssignmentResponse | undefined;
231
231
  const call = async (callSignal?: AbortSignal): Promise<void> => {
232
232
  const headers = new Headers();
233
233
  headers.set('User-Agent', this.userAgent);
@@ -239,7 +239,7 @@ export class MetastoresClient {
239
239
  });
240
240
  resp = parseResponse(
241
241
  respBody,
242
- unmarshalAccountsDeleteMetastoreAssignmentRequest_ResponseSchema
242
+ unmarshalAccountsDeleteMetastoreAssignmentResponseSchema
243
243
  );
244
244
  };
245
245
  await executeCall(call, options);
@@ -253,9 +253,9 @@ export class MetastoresClient {
253
253
  async getAccountsMetastore(
254
254
  req: AccountsGetMetastoreRequest,
255
255
  options?: CallOptions
256
- ): Promise<AccountsGetMetastoreRequest_Response> {
256
+ ): Promise<AccountsGetMetastoreResponse> {
257
257
  const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/metastores/${req.metastoreId ?? ''}`;
258
- let resp: AccountsGetMetastoreRequest_Response | undefined;
258
+ let resp: AccountsGetMetastoreResponse | undefined;
259
259
  const call = async (callSignal?: AbortSignal): Promise<void> => {
260
260
  const headers = new Headers();
261
261
  headers.set('User-Agent', this.userAgent);
@@ -267,7 +267,7 @@ export class MetastoresClient {
267
267
  });
268
268
  resp = parseResponse(
269
269
  respBody,
270
- unmarshalAccountsGetMetastoreRequest_ResponseSchema
270
+ unmarshalAccountsGetMetastoreResponseSchema
271
271
  );
272
272
  };
273
273
  await executeCall(call, options);
@@ -286,9 +286,9 @@ export class MetastoresClient {
286
286
  async getMetastoreAssignment(
287
287
  req: AccountsGetMetastoreAssignmentRequest,
288
288
  options?: CallOptions
289
- ): Promise<AccountsGetMetastoreAssignmentRequest_Response> {
289
+ ): Promise<AccountsGetMetastoreAssignmentResponse> {
290
290
  const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/workspaces/${String(req.workspaceId ?? '')}/metastore`;
291
- let resp: AccountsGetMetastoreAssignmentRequest_Response | undefined;
291
+ let resp: AccountsGetMetastoreAssignmentResponse | undefined;
292
292
  const call = async (callSignal?: AbortSignal): Promise<void> => {
293
293
  const headers = new Headers();
294
294
  headers.set('User-Agent', this.userAgent);
@@ -300,7 +300,7 @@ export class MetastoresClient {
300
300
  });
301
301
  resp = parseResponse(
302
302
  respBody,
303
- unmarshalAccountsGetMetastoreAssignmentRequest_ResponseSchema
303
+ unmarshalAccountsGetMetastoreAssignmentResponseSchema
304
304
  );
305
305
  };
306
306
  await executeCall(call, options);
@@ -314,9 +314,9 @@ export class MetastoresClient {
314
314
  async listAccountsMetastores(
315
315
  req: AccountsListMetastoresRequest,
316
316
  options?: CallOptions
317
- ): Promise<AccountsListMetastoresRequest_Response> {
317
+ ): Promise<AccountsListMetastoresResponse> {
318
318
  const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/metastores`;
319
- let resp: AccountsListMetastoresRequest_Response | undefined;
319
+ let resp: AccountsListMetastoresResponse | undefined;
320
320
  const call = async (callSignal?: AbortSignal): Promise<void> => {
321
321
  const headers = new Headers();
322
322
  headers.set('User-Agent', this.userAgent);
@@ -328,7 +328,7 @@ export class MetastoresClient {
328
328
  });
329
329
  resp = parseResponse(
330
330
  respBody,
331
- unmarshalAccountsListMetastoresRequest_ResponseSchema
331
+ unmarshalAccountsListMetastoresResponseSchema
332
332
  );
333
333
  };
334
334
  await executeCall(call, options);
@@ -342,9 +342,9 @@ export class MetastoresClient {
342
342
  async listMetastoreAssignments(
343
343
  req: AccountsListWorkspaceIdsForMetastoreRequest,
344
344
  options?: CallOptions
345
- ): Promise<AccountsListWorkspaceIdsForMetastoreRequest_Response> {
345
+ ): Promise<AccountsListWorkspaceIdsForMetastoreResponse> {
346
346
  const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/metastores/${req.metastoreId ?? ''}/workspaces`;
347
- let resp: AccountsListWorkspaceIdsForMetastoreRequest_Response | undefined;
347
+ let resp: AccountsListWorkspaceIdsForMetastoreResponse | undefined;
348
348
  const call = async (callSignal?: AbortSignal): Promise<void> => {
349
349
  const headers = new Headers();
350
350
  headers.set('User-Agent', this.userAgent);
@@ -356,7 +356,7 @@ export class MetastoresClient {
356
356
  });
357
357
  resp = parseResponse(
358
358
  respBody,
359
- unmarshalAccountsListWorkspaceIdsForMetastoreRequest_ResponseSchema
359
+ unmarshalAccountsListWorkspaceIdsForMetastoreResponseSchema
360
360
  );
361
361
  };
362
362
  await executeCall(call, options);
@@ -370,13 +370,13 @@ export class MetastoresClient {
370
370
  async updateAccountsMetastore(
371
371
  req: AccountsUpdateMetastoreRequest,
372
372
  options?: CallOptions
373
- ): Promise<AccountsUpdateMetastoreRequest_Response> {
373
+ ): Promise<AccountsUpdateMetastoreResponse> {
374
374
  const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/metastores/${req.metastoreId ?? ''}`;
375
375
  const body = marshalRequest(
376
376
  req,
377
377
  marshalAccountsUpdateMetastoreRequestSchema
378
378
  );
379
- let resp: AccountsUpdateMetastoreRequest_Response | undefined;
379
+ let resp: AccountsUpdateMetastoreResponse | undefined;
380
380
  const call = async (callSignal?: AbortSignal): Promise<void> => {
381
381
  const headers = new Headers({'Content-Type': 'application/json'});
382
382
  headers.set('User-Agent', this.userAgent);
@@ -388,7 +388,7 @@ export class MetastoresClient {
388
388
  });
389
389
  resp = parseResponse(
390
390
  respBody,
391
- unmarshalAccountsUpdateMetastoreRequest_ResponseSchema
391
+ unmarshalAccountsUpdateMetastoreResponseSchema
392
392
  );
393
393
  };
394
394
  await executeCall(call, options);
@@ -402,13 +402,13 @@ export class MetastoresClient {
402
402
  async updateAccountsMetastoreAssignment(
403
403
  req: AccountsUpdateMetastoreAssignmentRequest,
404
404
  options?: CallOptions
405
- ): Promise<AccountsUpdateMetastoreAssignmentRequest_Response> {
405
+ ): Promise<AccountsUpdateMetastoreAssignmentResponse> {
406
406
  const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/workspaces/${String(req.workspaceId ?? '')}/metastores/${req.metastoreId ?? ''}`;
407
407
  const body = marshalRequest(
408
408
  req,
409
409
  marshalAccountsUpdateMetastoreAssignmentRequestSchema
410
410
  );
411
- let resp: AccountsUpdateMetastoreAssignmentRequest_Response | undefined;
411
+ let resp: AccountsUpdateMetastoreAssignmentResponse | undefined;
412
412
  const call = async (callSignal?: AbortSignal): Promise<void> => {
413
413
  const headers = new Headers({'Content-Type': 'application/json'});
414
414
  headers.set('User-Agent', this.userAgent);
@@ -420,7 +420,7 @@ export class MetastoresClient {
420
420
  });
421
421
  resp = parseResponse(
422
422
  respBody,
423
- unmarshalAccountsUpdateMetastoreAssignmentRequest_ResponseSchema
423
+ unmarshalAccountsUpdateMetastoreAssignmentResponseSchema
424
424
  );
425
425
  };
426
426
  await executeCall(call, options);
@@ -472,13 +472,13 @@ export class MetastoresClient {
472
472
  async createMetastoreAssignment(
473
473
  req: CreateMetastoreAssignmentRequest,
474
474
  options?: CallOptions
475
- ): Promise<CreateMetastoreAssignmentRequest_Response> {
475
+ ): Promise<CreateMetastoreAssignmentResponse> {
476
476
  const url = `${this.host}/api/2.1/unity-catalog/workspaces/${String(req.workspaceId ?? '')}/metastore`;
477
477
  const body = marshalRequest(
478
478
  req,
479
479
  marshalCreateMetastoreAssignmentRequestSchema
480
480
  );
481
- let resp: CreateMetastoreAssignmentRequest_Response | undefined;
481
+ let resp: CreateMetastoreAssignmentResponse | undefined;
482
482
  const call = async (callSignal?: AbortSignal): Promise<void> => {
483
483
  const headers = new Headers({'Content-Type': 'application/json'});
484
484
  if (this.workspaceId !== undefined) {
@@ -493,7 +493,7 @@ export class MetastoresClient {
493
493
  });
494
494
  resp = parseResponse(
495
495
  respBody,
496
- unmarshalCreateMetastoreAssignmentRequest_ResponseSchema
496
+ unmarshalCreateMetastoreAssignmentResponseSchema
497
497
  );
498
498
  };
499
499
  await executeCall(call, options);
@@ -507,7 +507,7 @@ export class MetastoresClient {
507
507
  async deleteMetastore(
508
508
  req: DeleteMetastoreRequest,
509
509
  options?: CallOptions
510
- ): Promise<DeleteMetastoreRequest_Response> {
510
+ ): Promise<DeleteMetastoreResponse> {
511
511
  const url = `${this.host}/api/2.1/unity-catalog/metastores/${req.id ?? ''}`;
512
512
  const params = new URLSearchParams();
513
513
  if (req.force !== undefined) {
@@ -515,7 +515,7 @@ export class MetastoresClient {
515
515
  }
516
516
  const query = params.toString();
517
517
  const fullUrl = query !== '' ? `${url}?${query}` : url;
518
- let resp: DeleteMetastoreRequest_Response | undefined;
518
+ let resp: DeleteMetastoreResponse | undefined;
519
519
  const call = async (callSignal?: AbortSignal): Promise<void> => {
520
520
  const headers = new Headers();
521
521
  if (this.workspaceId !== undefined) {
@@ -528,10 +528,7 @@ export class MetastoresClient {
528
528
  httpClient: this.httpClient,
529
529
  logger: this.logger,
530
530
  });
531
- resp = parseResponse(
532
- respBody,
533
- unmarshalDeleteMetastoreRequest_ResponseSchema
534
- );
531
+ resp = parseResponse(respBody, unmarshalDeleteMetastoreResponseSchema);
535
532
  };
536
533
  await executeCall(call, options);
537
534
  if (resp === undefined) {
@@ -544,7 +541,7 @@ export class MetastoresClient {
544
541
  async deleteMetastoreAssignment(
545
542
  req: DeleteMetastoreAssignmentRequest,
546
543
  options?: CallOptions
547
- ): Promise<DeleteMetastoreAssignmentRequest_Response> {
544
+ ): Promise<DeleteMetastoreAssignmentResponse> {
548
545
  const url = `${this.host}/api/2.1/unity-catalog/workspaces/${String(req.workspaceId ?? '')}/metastore`;
549
546
  const params = new URLSearchParams();
550
547
  if (req.metastoreId !== undefined) {
@@ -552,7 +549,7 @@ export class MetastoresClient {
552
549
  }
553
550
  const query = params.toString();
554
551
  const fullUrl = query !== '' ? `${url}?${query}` : url;
555
- let resp: DeleteMetastoreAssignmentRequest_Response | undefined;
552
+ let resp: DeleteMetastoreAssignmentResponse | undefined;
556
553
  const call = async (callSignal?: AbortSignal): Promise<void> => {
557
554
  const headers = new Headers();
558
555
  if (this.workspaceId !== undefined) {
@@ -567,7 +564,7 @@ export class MetastoresClient {
567
564
  });
568
565
  resp = parseResponse(
569
566
  respBody,
570
- unmarshalDeleteMetastoreAssignmentRequest_ResponseSchema
567
+ unmarshalDeleteMetastoreAssignmentResponseSchema
571
568
  );
572
569
  };
573
570
  await executeCall(call, options);
@@ -640,9 +637,9 @@ export class MetastoresClient {
640
637
  async getMetastoreSummary(
641
638
  _req: GetMetastoreSummaryRequest,
642
639
  options?: CallOptions
643
- ): Promise<GetMetastoreSummaryRequest_Response> {
640
+ ): Promise<GetMetastoreSummaryResponse> {
644
641
  const url = `${this.host}/api/2.1/unity-catalog/metastore_summary`;
645
- let resp: GetMetastoreSummaryRequest_Response | undefined;
642
+ let resp: GetMetastoreSummaryResponse | undefined;
646
643
  const call = async (callSignal?: AbortSignal): Promise<void> => {
647
644
  const headers = new Headers();
648
645
  if (this.workspaceId !== undefined) {
@@ -657,7 +654,7 @@ export class MetastoresClient {
657
654
  });
658
655
  resp = parseResponse(
659
656
  respBody,
660
- unmarshalGetMetastoreSummaryRequest_ResponseSchema
657
+ unmarshalGetMetastoreSummaryResponseSchema
661
658
  );
662
659
  };
663
660
  await executeCall(call, options);
@@ -679,7 +676,7 @@ export class MetastoresClient {
679
676
  async listMetastores(
680
677
  req: ListMetastoresRequest,
681
678
  options?: CallOptions
682
- ): Promise<ListMetastoresRequest_Response> {
679
+ ): Promise<ListMetastoresResponse> {
683
680
  const url = `${this.host}/api/2.1/unity-catalog/metastores`;
684
681
  const params = new URLSearchParams();
685
682
  if (req.maxResults !== undefined) {
@@ -690,7 +687,7 @@ export class MetastoresClient {
690
687
  }
691
688
  const query = params.toString();
692
689
  const fullUrl = query !== '' ? `${url}?${query}` : url;
693
- let resp: ListMetastoresRequest_Response | undefined;
690
+ let resp: ListMetastoresResponse | undefined;
694
691
  const call = async (callSignal?: AbortSignal): Promise<void> => {
695
692
  const headers = new Headers();
696
693
  if (this.workspaceId !== undefined) {
@@ -703,10 +700,7 @@ export class MetastoresClient {
703
700
  httpClient: this.httpClient,
704
701
  logger: this.logger,
705
702
  });
706
- resp = parseResponse(
707
- respBody,
708
- unmarshalListMetastoresRequest_ResponseSchema
709
- );
703
+ resp = parseResponse(respBody, unmarshalListMetastoresResponseSchema);
710
704
  };
711
705
  await executeCall(call, options);
712
706
  if (resp === undefined) {
@@ -773,13 +767,13 @@ export class MetastoresClient {
773
767
  async updateMetastoreAssignment(
774
768
  req: UpdateMetastoreAssignmentRequest,
775
769
  options?: CallOptions
776
- ): Promise<UpdateMetastoreAssignmentRequest_Response> {
770
+ ): Promise<UpdateMetastoreAssignmentResponse> {
777
771
  const url = `${this.host}/api/2.1/unity-catalog/workspaces/${String(req.workspaceId ?? '')}/metastore`;
778
772
  const body = marshalRequest(
779
773
  req,
780
774
  marshalUpdateMetastoreAssignmentRequestSchema
781
775
  );
782
- let resp: UpdateMetastoreAssignmentRequest_Response | undefined;
776
+ let resp: UpdateMetastoreAssignmentResponse | undefined;
783
777
  const call = async (callSignal?: AbortSignal): Promise<void> => {
784
778
  const headers = new Headers({'Content-Type': 'application/json'});
785
779
  if (this.workspaceId !== undefined) {
@@ -794,7 +788,7 @@ export class MetastoresClient {
794
788
  });
795
789
  resp = parseResponse(
796
790
  respBody,
797
- unmarshalUpdateMetastoreAssignmentRequest_ResponseSchema
791
+ unmarshalUpdateMetastoreAssignmentResponseSchema
798
792
  );
799
793
  };
800
794
  await executeCall(call, options);
package/src/v1/index.ts CHANGED
@@ -6,44 +6,44 @@ export {DeltaSharingScope_Enum} from './model';
6
6
 
7
7
  export type {
8
8
  AccountsCreateMetastoreAssignmentRequest,
9
- AccountsCreateMetastoreAssignmentRequest_Response,
9
+ AccountsCreateMetastoreAssignmentResponse,
10
10
  AccountsCreateMetastoreRequest,
11
- AccountsCreateMetastoreRequest_Response,
11
+ AccountsCreateMetastoreResponse,
12
12
  AccountsDeleteMetastoreAssignmentRequest,
13
- AccountsDeleteMetastoreAssignmentRequest_Response,
13
+ AccountsDeleteMetastoreAssignmentResponse,
14
14
  AccountsDeleteMetastoreRequest,
15
- AccountsDeleteMetastoreRequest_Response,
15
+ AccountsDeleteMetastoreResponse,
16
16
  AccountsGetMetastoreAssignmentRequest,
17
- AccountsGetMetastoreAssignmentRequest_Response,
17
+ AccountsGetMetastoreAssignmentResponse,
18
18
  AccountsGetMetastoreRequest,
19
- AccountsGetMetastoreRequest_Response,
19
+ AccountsGetMetastoreResponse,
20
20
  AccountsListMetastoresRequest,
21
- AccountsListMetastoresRequest_Response,
21
+ AccountsListMetastoresResponse,
22
22
  AccountsListWorkspaceIdsForMetastoreRequest,
23
- AccountsListWorkspaceIdsForMetastoreRequest_Response,
23
+ AccountsListWorkspaceIdsForMetastoreResponse,
24
24
  AccountsUpdateMetastoreAssignmentRequest,
25
- AccountsUpdateMetastoreAssignmentRequest_Response,
25
+ AccountsUpdateMetastoreAssignmentResponse,
26
26
  AccountsUpdateMetastoreRequest,
27
- AccountsUpdateMetastoreRequest_Response,
27
+ AccountsUpdateMetastoreResponse,
28
28
  CreateAccountsMetastore,
29
29
  CreateMetastoreAssignmentRequest,
30
- CreateMetastoreAssignmentRequest_Response,
30
+ CreateMetastoreAssignmentResponse,
31
31
  CreateMetastoreRequest,
32
32
  DeleteMetastoreAssignmentRequest,
33
- DeleteMetastoreAssignmentRequest_Response,
33
+ DeleteMetastoreAssignmentResponse,
34
34
  DeleteMetastoreRequest,
35
- DeleteMetastoreRequest_Response,
35
+ DeleteMetastoreResponse,
36
36
  DeltaSharingScope,
37
37
  GetCurrentMetastoreAssignmentRequest,
38
38
  GetMetastoreRequest,
39
39
  GetMetastoreSummaryRequest,
40
- GetMetastoreSummaryRequest_Response,
40
+ GetMetastoreSummaryResponse,
41
41
  ListMetastoresRequest,
42
- ListMetastoresRequest_Response,
42
+ ListMetastoresResponse,
43
43
  MetastoreAssignment,
44
44
  MetastoreInfo,
45
45
  UpdateAccountsMetastore,
46
46
  UpdateMetastoreAssignmentRequest,
47
- UpdateMetastoreAssignmentRequest_Response,
47
+ UpdateMetastoreAssignmentResponse,
48
48
  UpdateMetastoreRequest,
49
49
  } from './model';