@databricks/sdk-marketplaces 0.1.0-dev.1 → 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
@@ -1,7 +1,6 @@
1
1
  // Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.
2
2
 
3
3
  import {VERSION as AUTH_VERSION} from '@databricks/sdk-auth';
4
- import type {Call} from '@databricks/sdk-core/api';
5
4
  import {createDefault} from '@databricks/sdk-core/clientinfo';
6
5
  import type {Logger} from '@databricks/sdk-core/logger';
7
6
  import {NoOpLogger} from '@databricks/sdk-core/logger';
@@ -30,64 +29,58 @@ import type {
30
29
  CreateExchangeRequest,
31
30
  CreateExchangeResponse,
32
31
  CreateFileRequest,
33
- CreateFileRequest_Response,
32
+ CreateFileResponse,
33
+ CreateInstallationResponse,
34
34
  CreateListingRequest,
35
- CreateListingRequest_Response,
35
+ CreateListingResponse,
36
36
  CreatePersonalizationRequest,
37
- CreatePersonalizationRequest_Response,
37
+ CreatePersonalizationResponse,
38
38
  CreateProviderAnalyticsDashboardRequest,
39
- CreateProviderAnalyticsDashboardRequest_Response,
39
+ CreateProviderAnalyticsDashboardResponse,
40
40
  CreateProviderRequest,
41
- CreateProviderRequest_Response,
41
+ CreateProviderResponse,
42
42
  DeleteExchangeFilterRequest,
43
43
  DeleteExchangeFilterResponse,
44
44
  DeleteExchangeRequest,
45
45
  DeleteExchangeResponse,
46
46
  DeleteFileRequest,
47
- DeleteFileRequest_Response,
47
+ DeleteFileResponse,
48
+ DeleteInstallationResponse,
48
49
  DeleteListingRequest,
49
- DeleteListingRequest_Response,
50
+ DeleteListingResponse,
50
51
  DeleteProviderRequest,
51
- DeleteProviderRequest_Response,
52
+ DeleteProviderResponse,
52
53
  Exchange,
53
54
  ExchangeFilter,
54
55
  ExchangeListing,
55
56
  FileInfo,
56
- GetAllInstallations,
57
- GetAllInstallations_Response,
58
- GetAllPersonalizationRequestsForConsumer,
59
- GetAllPersonalizationRequestsForConsumer_Response,
57
+ GetAllPersonalizationRequestsForConsumerResponse,
60
58
  GetExchangeRequest,
61
59
  GetExchangeResponse,
62
60
  GetFileRequest,
63
- GetFileRequest_Response,
61
+ GetFileResponse,
64
62
  GetInstallationDetails,
65
- GetInstallationDetails_Response,
66
63
  GetLatestVersionProviderAnalyticsDashboardRequest,
67
- GetLatestVersionProviderAnalyticsDashboardRequest_Response,
64
+ GetLatestVersionProviderAnalyticsDashboardResponse,
68
65
  GetListingContent,
69
- GetListingContent_Response,
70
- GetListingFulfillments,
71
- GetListingFulfillments_Response,
66
+ GetListingContentMetadataResponse,
72
67
  GetListingRequest,
73
- GetListingRequest_Response,
74
- GetListingsRequest,
75
- GetListingsRequest_Response,
68
+ GetListingResponse,
69
+ GetListingsResponse,
76
70
  GetPersonalizationRequestsForConsumer,
77
- GetPersonalizationRequestsForConsumer_Response,
71
+ GetPersonalizationRequestsForConsumerResponse,
78
72
  GetPersonalizationRequestsForProviderRequest,
79
- GetPersonalizationRequestsForProviderRequest_Response,
73
+ GetPersonalizationRequestsForProviderResponse,
80
74
  GetProviderRequest,
81
- GetProviderRequest_Response,
75
+ GetProviderResponse,
82
76
  GetPublishedListingForConsumer,
83
- GetPublishedListingForConsumer_Response,
84
- GetPublishedListingsForConsumer,
85
- GetPublishedListingsForConsumer_Response,
77
+ GetPublishedListingForConsumerResponse,
78
+ GetPublishedListingsForConsumerResponse,
86
79
  GetPublishedProviderForConsumer,
87
- GetPublishedProviderForConsumer_Response,
80
+ GetPublishedProviderForConsumerResponse,
88
81
  InstallListing,
89
- InstallListing_Response,
90
82
  InstallationDetail,
83
+ ListAllInstallationsResponse,
91
84
  ListExchangeFiltersRequest,
92
85
  ListExchangeFiltersResponse,
93
86
  ListExchangesForListingRequest,
@@ -95,15 +88,22 @@ import type {
95
88
  ListExchangesRequest,
96
89
  ListExchangesResponse,
97
90
  ListFilesRequest,
98
- ListFilesRequest_Response,
91
+ ListFilesResponse,
92
+ ListFulfillmentsResponse,
93
+ ListInstallationsRequest,
94
+ ListInstallationsResponse,
95
+ ListListingFulfillmentsRequest,
99
96
  ListListingsForExchangeRequest,
100
97
  ListListingsForExchangeResponse,
98
+ ListListingsRequest,
99
+ ListPersonalizationRequestsForConsumerRequest,
101
100
  ListProviderAnalyticsDashboardRequest,
102
- ListProviderAnalyticsDashboardRequest_Response,
101
+ ListProviderAnalyticsDashboardResponse,
103
102
  ListProvidersRequest,
104
- ListProvidersRequest_Response,
103
+ ListProvidersResponse,
104
+ ListPublishedListingsForConsumerRequest,
105
105
  ListPublishedProvidersForConsumer,
106
- ListPublishedProvidersForConsumer_Response,
106
+ ListPublishedProvidersForConsumerResponse,
107
107
  Listing,
108
108
  ListingFulfillment,
109
109
  PersonalizationRequest,
@@ -111,24 +111,23 @@ import type {
111
111
  RemoveExchangeForListingRequest,
112
112
  RemoveExchangeForListingResponse,
113
113
  SearchPublishedListingsForConsumer,
114
- SearchPublishedListingsForConsumer_Response,
114
+ SearchPublishedListingsForConsumerResponse,
115
115
  SharedDataObject,
116
116
  UninstallListing,
117
- UninstallListing_Response,
118
117
  UpdateExchangeFilterRequest,
119
118
  UpdateExchangeFilterResponse,
120
119
  UpdateExchangeRequest,
121
120
  UpdateExchangeResponse,
122
121
  UpdateInstallationDetail,
123
- UpdateInstallationDetail_Response,
122
+ UpdateInstallationResponse,
124
123
  UpdateListingRequest,
125
- UpdateListingRequest_Response,
124
+ UpdateListingResponse,
126
125
  UpdatePersonalizationRequestStatusRequest,
127
- UpdatePersonalizationRequestStatusRequest_Response,
126
+ UpdatePersonalizationRequestStatusResponse,
128
127
  UpdateProviderAnalyticsDashboardRequest,
129
- UpdateProviderAnalyticsDashboardRequest_Response,
128
+ UpdateProviderAnalyticsDashboardResponse,
130
129
  UpdateProviderRequest,
131
- UpdateProviderRequest_Response,
130
+ UpdateProviderResponse,
132
131
  } from './model';
133
132
  import {
134
133
  marshalAddExchangeForListingRequestSchema,
@@ -154,51 +153,51 @@ import {
154
153
  unmarshalBatchGetProvidersResponseSchema,
155
154
  unmarshalCreateExchangeFilterResponseSchema,
156
155
  unmarshalCreateExchangeResponseSchema,
157
- unmarshalCreateFileRequest_ResponseSchema,
158
- unmarshalCreateListingRequest_ResponseSchema,
159
- unmarshalCreatePersonalizationRequest_ResponseSchema,
160
- unmarshalCreateProviderAnalyticsDashboardRequest_ResponseSchema,
161
- unmarshalCreateProviderRequest_ResponseSchema,
156
+ unmarshalCreateFileResponseSchema,
157
+ unmarshalCreateInstallationResponseSchema,
158
+ unmarshalCreateListingResponseSchema,
159
+ unmarshalCreatePersonalizationResponseSchema,
160
+ unmarshalCreateProviderAnalyticsDashboardResponseSchema,
161
+ unmarshalCreateProviderResponseSchema,
162
162
  unmarshalDeleteExchangeFilterResponseSchema,
163
163
  unmarshalDeleteExchangeResponseSchema,
164
- unmarshalDeleteFileRequest_ResponseSchema,
165
- unmarshalDeleteListingRequest_ResponseSchema,
166
- unmarshalDeleteProviderRequest_ResponseSchema,
167
- unmarshalGetAllInstallations_ResponseSchema,
168
- unmarshalGetAllPersonalizationRequestsForConsumer_ResponseSchema,
164
+ unmarshalDeleteFileResponseSchema,
165
+ unmarshalDeleteInstallationResponseSchema,
166
+ unmarshalDeleteListingResponseSchema,
167
+ unmarshalDeleteProviderResponseSchema,
168
+ unmarshalGetAllPersonalizationRequestsForConsumerResponseSchema,
169
169
  unmarshalGetExchangeResponseSchema,
170
- unmarshalGetFileRequest_ResponseSchema,
171
- unmarshalGetInstallationDetails_ResponseSchema,
172
- unmarshalGetLatestVersionProviderAnalyticsDashboardRequest_ResponseSchema,
173
- unmarshalGetListingContent_ResponseSchema,
174
- unmarshalGetListingFulfillments_ResponseSchema,
175
- unmarshalGetListingRequest_ResponseSchema,
176
- unmarshalGetListingsRequest_ResponseSchema,
177
- unmarshalGetPersonalizationRequestsForConsumer_ResponseSchema,
178
- unmarshalGetPersonalizationRequestsForProviderRequest_ResponseSchema,
179
- unmarshalGetProviderRequest_ResponseSchema,
180
- unmarshalGetPublishedListingForConsumer_ResponseSchema,
181
- unmarshalGetPublishedListingsForConsumer_ResponseSchema,
182
- unmarshalGetPublishedProviderForConsumer_ResponseSchema,
183
- unmarshalInstallListing_ResponseSchema,
170
+ unmarshalGetFileResponseSchema,
171
+ unmarshalGetLatestVersionProviderAnalyticsDashboardResponseSchema,
172
+ unmarshalGetListingContentMetadataResponseSchema,
173
+ unmarshalGetListingResponseSchema,
174
+ unmarshalGetListingsResponseSchema,
175
+ unmarshalGetPersonalizationRequestsForConsumerResponseSchema,
176
+ unmarshalGetPersonalizationRequestsForProviderResponseSchema,
177
+ unmarshalGetProviderResponseSchema,
178
+ unmarshalGetPublishedListingForConsumerResponseSchema,
179
+ unmarshalGetPublishedListingsForConsumerResponseSchema,
180
+ unmarshalGetPublishedProviderForConsumerResponseSchema,
181
+ unmarshalListAllInstallationsResponseSchema,
184
182
  unmarshalListExchangeFiltersResponseSchema,
185
183
  unmarshalListExchangesForListingResponseSchema,
186
184
  unmarshalListExchangesResponseSchema,
187
- unmarshalListFilesRequest_ResponseSchema,
185
+ unmarshalListFilesResponseSchema,
186
+ unmarshalListFulfillmentsResponseSchema,
187
+ unmarshalListInstallationsResponseSchema,
188
188
  unmarshalListListingsForExchangeResponseSchema,
189
- unmarshalListProviderAnalyticsDashboardRequest_ResponseSchema,
190
- unmarshalListProvidersRequest_ResponseSchema,
191
- unmarshalListPublishedProvidersForConsumer_ResponseSchema,
189
+ unmarshalListProviderAnalyticsDashboardResponseSchema,
190
+ unmarshalListProvidersResponseSchema,
191
+ unmarshalListPublishedProvidersForConsumerResponseSchema,
192
192
  unmarshalRemoveExchangeForListingResponseSchema,
193
- unmarshalSearchPublishedListingsForConsumer_ResponseSchema,
194
- unmarshalUninstallListing_ResponseSchema,
193
+ unmarshalSearchPublishedListingsForConsumerResponseSchema,
195
194
  unmarshalUpdateExchangeFilterResponseSchema,
196
195
  unmarshalUpdateExchangeResponseSchema,
197
- unmarshalUpdateInstallationDetail_ResponseSchema,
198
- unmarshalUpdateListingRequest_ResponseSchema,
199
- unmarshalUpdatePersonalizationRequestStatusRequest_ResponseSchema,
200
- unmarshalUpdateProviderAnalyticsDashboardRequest_ResponseSchema,
201
- unmarshalUpdateProviderRequest_ResponseSchema,
196
+ unmarshalUpdateInstallationResponseSchema,
197
+ unmarshalUpdateListingResponseSchema,
198
+ unmarshalUpdatePersonalizationRequestStatusResponseSchema,
199
+ unmarshalUpdateProviderAnalyticsDashboardResponseSchema,
200
+ unmarshalUpdateProviderResponseSchema,
202
201
  } from './model';
203
202
 
204
203
  // Package identity segment for this client to be used in the User-Agent header.
@@ -248,7 +247,7 @@ export class MarketplacesClient {
248
247
  const query = params.toString();
249
248
  const fullUrl = query !== '' ? `${url}?${query}` : url;
250
249
  let resp: BatchGetListingsResponse | undefined;
251
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
250
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
252
251
  const headers = new Headers();
253
252
  if (this.workspaceId !== undefined) {
254
253
  headers.set('X-Databricks-Org-Id', this.workspaceId);
@@ -264,7 +263,7 @@ export class MarketplacesClient {
264
263
  };
265
264
  await executeCall(call, options);
266
265
  if (resp === undefined) {
267
- throw new Error('API call completed without a result.');
266
+ throw new Error('operation completed without a result.');
268
267
  }
269
268
  return resp;
270
269
  }
@@ -282,7 +281,7 @@ export class MarketplacesClient {
282
281
  const query = params.toString();
283
282
  const fullUrl = query !== '' ? `${url}?${query}` : url;
284
283
  let resp: BatchGetProvidersResponse | undefined;
285
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
284
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
286
285
  const headers = new Headers();
287
286
  if (this.workspaceId !== undefined) {
288
287
  headers.set('X-Databricks-Org-Id', this.workspaceId);
@@ -298,7 +297,7 @@ export class MarketplacesClient {
298
297
  };
299
298
  await executeCall(call, options);
300
299
  if (resp === undefined) {
301
- throw new Error('API call completed without a result.');
300
+ throw new Error('operation completed without a result.');
302
301
  }
303
302
  return resp;
304
303
  }
@@ -307,11 +306,11 @@ export class MarketplacesClient {
307
306
  async createPersonalizationRequest(
308
307
  req: CreatePersonalizationRequest,
309
308
  options?: CallOptions
310
- ): Promise<CreatePersonalizationRequest_Response> {
309
+ ): Promise<CreatePersonalizationResponse> {
311
310
  const url = `${this.host}/api/2.0/marketplace-consumer/listings/${req.listingId ?? ''}/personalization-requests`;
312
311
  const body = marshalRequest(req, marshalCreatePersonalizationRequestSchema);
313
- let resp: CreatePersonalizationRequest_Response | undefined;
314
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
312
+ let resp: CreatePersonalizationResponse | undefined;
313
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
315
314
  const headers = new Headers({'Content-Type': 'application/json'});
316
315
  if (this.workspaceId !== undefined) {
317
316
  headers.set('X-Databricks-Org-Id', this.workspaceId);
@@ -325,22 +324,22 @@ export class MarketplacesClient {
325
324
  });
326
325
  resp = parseResponse(
327
326
  respBody,
328
- unmarshalCreatePersonalizationRequest_ResponseSchema
327
+ unmarshalCreatePersonalizationResponseSchema
329
328
  );
330
329
  };
331
330
  await executeCall(call, options);
332
331
  if (resp === undefined) {
333
- throw new Error('API call completed without a result.');
332
+ throw new Error('operation completed without a result.');
334
333
  }
335
334
  return resp;
336
335
  }
337
336
 
338
- /** List all installations across all listings. */
339
- async getAllInstallations(
340
- req: GetAllInstallations,
337
+ /** List all installations for a particular listing. */
338
+ async getInstallationDetails(
339
+ req: GetInstallationDetails,
341
340
  options?: CallOptions
342
- ): Promise<GetAllInstallations_Response> {
343
- const url = `${this.host}/api/2.0/marketplace-consumer/installations`;
341
+ ): Promise<ListInstallationsResponse> {
342
+ const url = `${this.host}/api/2.0/marketplace-consumer/listings/${req.listingId ?? ''}/installations`;
344
343
  const params = new URLSearchParams();
345
344
  if (req.pageToken !== undefined) {
346
345
  params.append('page_token', req.pageToken);
@@ -350,8 +349,8 @@ export class MarketplacesClient {
350
349
  }
351
350
  const query = params.toString();
352
351
  const fullUrl = query !== '' ? `${url}?${query}` : url;
353
- let resp: GetAllInstallations_Response | undefined;
354
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
352
+ let resp: ListInstallationsResponse | undefined;
353
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
355
354
  const headers = new Headers();
356
355
  if (this.workspaceId !== undefined) {
357
356
  headers.set('X-Databricks-Org-Id', this.workspaceId);
@@ -363,25 +362,22 @@ export class MarketplacesClient {
363
362
  httpClient: this.httpClient,
364
363
  logger: this.logger,
365
364
  });
366
- resp = parseResponse(
367
- respBody,
368
- unmarshalGetAllInstallations_ResponseSchema
369
- );
365
+ resp = parseResponse(respBody, unmarshalListInstallationsResponseSchema);
370
366
  };
371
367
  await executeCall(call, options);
372
368
  if (resp === undefined) {
373
- throw new Error('API call completed without a result.');
369
+ throw new Error('operation completed without a result.');
374
370
  }
375
371
  return resp;
376
372
  }
377
373
 
378
- async *getAllInstallationsIter(
379
- req: GetAllInstallations,
374
+ async *getInstallationDetailsIter(
375
+ req: GetInstallationDetails,
380
376
  options?: CallOptions
381
377
  ): AsyncGenerator<InstallationDetail> {
382
- const pageReq: GetAllInstallations = {...req};
378
+ const pageReq: GetInstallationDetails = {...req};
383
379
  for (;;) {
384
- const resp = await this.getAllInstallations(pageReq, options);
380
+ const resp = await this.getInstallationDetails(pageReq, options);
385
381
  for (const item of resp.installations ?? []) {
386
382
  yield item;
387
383
  }
@@ -392,12 +388,12 @@ export class MarketplacesClient {
392
388
  }
393
389
  }
394
390
 
395
- /** List personalization requests for a consumer across all listings. */
396
- async getAllPersonalizationRequestsForConsumer(
397
- req: GetAllPersonalizationRequestsForConsumer,
391
+ /** Get a high level preview of the metadata of listing installable content. */
392
+ async getListingContent(
393
+ req: GetListingContent,
398
394
  options?: CallOptions
399
- ): Promise<GetAllPersonalizationRequestsForConsumer_Response> {
400
- const url = `${this.host}/api/2.0/marketplace-consumer/personalization-requests`;
395
+ ): Promise<GetListingContentMetadataResponse> {
396
+ const url = `${this.host}/api/2.0/marketplace-consumer/listings/${req.listingId ?? ''}/content`;
401
397
  const params = new URLSearchParams();
402
398
  if (req.pageToken !== undefined) {
403
399
  params.append('page_token', req.pageToken);
@@ -407,8 +403,8 @@ export class MarketplacesClient {
407
403
  }
408
404
  const query = params.toString();
409
405
  const fullUrl = query !== '' ? `${url}?${query}` : url;
410
- let resp: GetAllPersonalizationRequestsForConsumer_Response | undefined;
411
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
406
+ let resp: GetListingContentMetadataResponse | undefined;
407
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
412
408
  const headers = new Headers();
413
409
  if (this.workspaceId !== undefined) {
414
410
  headers.set('X-Databricks-Org-Id', this.workspaceId);
@@ -422,27 +418,24 @@ export class MarketplacesClient {
422
418
  });
423
419
  resp = parseResponse(
424
420
  respBody,
425
- unmarshalGetAllPersonalizationRequestsForConsumer_ResponseSchema
421
+ unmarshalGetListingContentMetadataResponseSchema
426
422
  );
427
423
  };
428
424
  await executeCall(call, options);
429
425
  if (resp === undefined) {
430
- throw new Error('API call completed without a result.');
426
+ throw new Error('operation completed without a result.');
431
427
  }
432
428
  return resp;
433
429
  }
434
430
 
435
- async *getAllPersonalizationRequestsForConsumerIter(
436
- req: GetAllPersonalizationRequestsForConsumer,
431
+ async *getListingContentIter(
432
+ req: GetListingContent,
437
433
  options?: CallOptions
438
- ): AsyncGenerator<PersonalizationRequest> {
439
- const pageReq: GetAllPersonalizationRequestsForConsumer = {...req};
434
+ ): AsyncGenerator<SharedDataObject> {
435
+ const pageReq: GetListingContent = {...req};
440
436
  for (;;) {
441
- const resp = await this.getAllPersonalizationRequestsForConsumer(
442
- pageReq,
443
- options
444
- );
445
- for (const item of resp.personalizationRequests ?? []) {
437
+ const resp = await this.getListingContent(pageReq, options);
438
+ for (const item of resp.sharedDataObjects ?? []) {
446
439
  yield item;
447
440
  }
448
441
  if (resp.nextPageToken === undefined || resp.nextPageToken === '') {
@@ -452,29 +445,51 @@ export class MarketplacesClient {
452
445
  }
453
446
  }
454
447
 
455
- /** List all installations for a particular listing. */
456
- async getInstallationDetails(
457
- req: GetInstallationDetails,
448
+ /** Get the personalization request for a listing. Each consumer can make at *most* one personalization request for a listing. */
449
+ async getPersonalizationRequestsForConsumer(
450
+ req: GetPersonalizationRequestsForConsumer,
458
451
  options?: CallOptions
459
- ): Promise<GetInstallationDetails_Response> {
460
- const url = `${this.host}/api/2.0/marketplace-consumer/listings/${req.listingId ?? ''}/installations`;
461
- const params = new URLSearchParams();
462
- if (req.pageToken !== undefined) {
463
- params.append('page_token', req.pageToken);
464
- }
465
- if (req.pageSize !== undefined) {
466
- params.append('page_size', String(req.pageSize));
452
+ ): Promise<GetPersonalizationRequestsForConsumerResponse> {
453
+ const url = `${this.host}/api/2.0/marketplace-consumer/listings/${req.listingId ?? ''}/personalization-requests`;
454
+ let resp: GetPersonalizationRequestsForConsumerResponse | undefined;
455
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
456
+ const headers = new Headers();
457
+ if (this.workspaceId !== undefined) {
458
+ headers.set('X-Databricks-Org-Id', this.workspaceId);
459
+ }
460
+ headers.set('User-Agent', this.userAgent);
461
+ const httpReq = buildHttpRequest('GET', url, headers, callSignal);
462
+ const respBody = await executeHttpCall({
463
+ request: httpReq,
464
+ httpClient: this.httpClient,
465
+ logger: this.logger,
466
+ });
467
+ resp = parseResponse(
468
+ respBody,
469
+ unmarshalGetPersonalizationRequestsForConsumerResponseSchema
470
+ );
471
+ };
472
+ await executeCall(call, options);
473
+ if (resp === undefined) {
474
+ throw new Error('operation completed without a result.');
467
475
  }
468
- const query = params.toString();
469
- const fullUrl = query !== '' ? `${url}?${query}` : url;
470
- let resp: GetInstallationDetails_Response | undefined;
471
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
476
+ return resp;
477
+ }
478
+
479
+ /** Get a published listing in the Databricks Marketplace that the consumer has access to. */
480
+ async getPublishedListingForConsumer(
481
+ req: GetPublishedListingForConsumer,
482
+ options?: CallOptions
483
+ ): Promise<GetPublishedListingForConsumerResponse> {
484
+ const url = `${this.host}/api/2.0/marketplace-consumer/listings/${req.id ?? ''}`;
485
+ let resp: GetPublishedListingForConsumerResponse | undefined;
486
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
472
487
  const headers = new Headers();
473
488
  if (this.workspaceId !== undefined) {
474
489
  headers.set('X-Databricks-Org-Id', this.workspaceId);
475
490
  }
476
491
  headers.set('User-Agent', this.userAgent);
477
- const httpReq = buildHttpRequest('GET', fullUrl, headers, callSignal);
492
+ const httpReq = buildHttpRequest('GET', url, headers, callSignal);
478
493
  const respBody = await executeHttpCall({
479
494
  request: httpReq,
480
495
  httpClient: this.httpClient,
@@ -482,39 +497,82 @@ export class MarketplacesClient {
482
497
  });
483
498
  resp = parseResponse(
484
499
  respBody,
485
- unmarshalGetInstallationDetails_ResponseSchema
500
+ unmarshalGetPublishedListingForConsumerResponseSchema
486
501
  );
487
502
  };
488
503
  await executeCall(call, options);
489
504
  if (resp === undefined) {
490
- throw new Error('API call completed without a result.');
505
+ throw new Error('operation completed without a result.');
491
506
  }
492
507
  return resp;
493
508
  }
494
509
 
495
- async *getInstallationDetailsIter(
496
- req: GetInstallationDetails,
510
+ /** Get a provider in the Databricks Marketplace with at least one visible listing. */
511
+ async getPublishedProviderForConsumer(
512
+ req: GetPublishedProviderForConsumer,
497
513
  options?: CallOptions
498
- ): AsyncGenerator<InstallationDetail> {
499
- const pageReq: GetInstallationDetails = {...req};
500
- for (;;) {
501
- const resp = await this.getInstallationDetails(pageReq, options);
502
- for (const item of resp.installations ?? []) {
503
- yield item;
514
+ ): Promise<GetPublishedProviderForConsumerResponse> {
515
+ const url = `${this.host}/api/2.0/marketplace-consumer/providers/${req.id ?? ''}`;
516
+ let resp: GetPublishedProviderForConsumerResponse | undefined;
517
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
518
+ const headers = new Headers();
519
+ if (this.workspaceId !== undefined) {
520
+ headers.set('X-Databricks-Org-Id', this.workspaceId);
504
521
  }
505
- if (resp.nextPageToken === undefined || resp.nextPageToken === '') {
506
- return;
522
+ headers.set('User-Agent', this.userAgent);
523
+ const httpReq = buildHttpRequest('GET', url, headers, callSignal);
524
+ const respBody = await executeHttpCall({
525
+ request: httpReq,
526
+ httpClient: this.httpClient,
527
+ logger: this.logger,
528
+ });
529
+ resp = parseResponse(
530
+ respBody,
531
+ unmarshalGetPublishedProviderForConsumerResponseSchema
532
+ );
533
+ };
534
+ await executeCall(call, options);
535
+ if (resp === undefined) {
536
+ throw new Error('operation completed without a result.');
537
+ }
538
+ return resp;
539
+ }
540
+
541
+ /** Install payload associated with a Databricks Marketplace listing. */
542
+ async installListing(
543
+ req: InstallListing,
544
+ options?: CallOptions
545
+ ): Promise<CreateInstallationResponse> {
546
+ const url = `${this.host}/api/2.0/marketplace-consumer/listings/${req.listingId ?? ''}/installations`;
547
+ const body = marshalRequest(req, marshalInstallListingSchema);
548
+ let resp: CreateInstallationResponse | undefined;
549
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
550
+ const headers = new Headers({'Content-Type': 'application/json'});
551
+ if (this.workspaceId !== undefined) {
552
+ headers.set('X-Databricks-Org-Id', this.workspaceId);
507
553
  }
508
- pageReq.pageToken = resp.nextPageToken;
554
+ headers.set('User-Agent', this.userAgent);
555
+ const httpReq = buildHttpRequest('POST', url, headers, callSignal, body);
556
+ const respBody = await executeHttpCall({
557
+ request: httpReq,
558
+ httpClient: this.httpClient,
559
+ logger: this.logger,
560
+ });
561
+ resp = parseResponse(respBody, unmarshalCreateInstallationResponseSchema);
562
+ };
563
+ await executeCall(call, options);
564
+ if (resp === undefined) {
565
+ throw new Error('operation completed without a result.');
509
566
  }
567
+ return resp;
510
568
  }
511
569
 
512
- /** Get a high level preview of the metadata of listing installable content. */
513
- async getListingContent(
514
- req: GetListingContent,
570
+ /** List all installations across all listings. */
571
+ async listInstallations(
572
+ req: ListInstallationsRequest,
515
573
  options?: CallOptions
516
- ): Promise<GetListingContent_Response> {
517
- const url = `${this.host}/api/2.0/marketplace-consumer/listings/${req.listingId ?? ''}/content`;
574
+ ): Promise<ListAllInstallationsResponse> {
575
+ const url = `${this.host}/api/2.0/marketplace-consumer/installations`;
518
576
  const params = new URLSearchParams();
519
577
  if (req.pageToken !== undefined) {
520
578
  params.append('page_token', req.pageToken);
@@ -524,8 +582,8 @@ export class MarketplacesClient {
524
582
  }
525
583
  const query = params.toString();
526
584
  const fullUrl = query !== '' ? `${url}?${query}` : url;
527
- let resp: GetListingContent_Response | undefined;
528
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
585
+ let resp: ListAllInstallationsResponse | undefined;
586
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
529
587
  const headers = new Headers();
530
588
  if (this.workspaceId !== undefined) {
531
589
  headers.set('X-Databricks-Org-Id', this.workspaceId);
@@ -537,23 +595,26 @@ export class MarketplacesClient {
537
595
  httpClient: this.httpClient,
538
596
  logger: this.logger,
539
597
  });
540
- resp = parseResponse(respBody, unmarshalGetListingContent_ResponseSchema);
598
+ resp = parseResponse(
599
+ respBody,
600
+ unmarshalListAllInstallationsResponseSchema
601
+ );
541
602
  };
542
603
  await executeCall(call, options);
543
604
  if (resp === undefined) {
544
- throw new Error('API call completed without a result.');
605
+ throw new Error('operation completed without a result.');
545
606
  }
546
607
  return resp;
547
608
  }
548
609
 
549
- async *getListingContentIter(
550
- req: GetListingContent,
610
+ async *listInstallationsIter(
611
+ req: ListInstallationsRequest,
551
612
  options?: CallOptions
552
- ): AsyncGenerator<SharedDataObject> {
553
- const pageReq: GetListingContent = {...req};
613
+ ): AsyncGenerator<InstallationDetail> {
614
+ const pageReq: ListInstallationsRequest = {...req};
554
615
  for (;;) {
555
- const resp = await this.getListingContent(pageReq, options);
556
- for (const item of resp.sharedDataObjects ?? []) {
616
+ const resp = await this.listInstallations(pageReq, options);
617
+ for (const item of resp.installations ?? []) {
557
618
  yield item;
558
619
  }
559
620
  if (resp.nextPageToken === undefined || resp.nextPageToken === '') {
@@ -568,10 +629,10 @@ export class MarketplacesClient {
568
629
  * Standard installations contain metadata about the attached share or git repo. Only one of these fields will be present.
569
630
  * Personalized installations contain metadata about the attached share or git repo, as well as the Delta Sharing recipient type.
570
631
  */
571
- async getListingFulfillments(
572
- req: GetListingFulfillments,
632
+ async listListingFulfillments(
633
+ req: ListListingFulfillmentsRequest,
573
634
  options?: CallOptions
574
- ): Promise<GetListingFulfillments_Response> {
635
+ ): Promise<ListFulfillmentsResponse> {
575
636
  const url = `${this.host}/api/2.0/marketplace-consumer/listings/${req.listingId ?? ''}/fulfillments`;
576
637
  const params = new URLSearchParams();
577
638
  if (req.pageToken !== undefined) {
@@ -582,8 +643,8 @@ export class MarketplacesClient {
582
643
  }
583
644
  const query = params.toString();
584
645
  const fullUrl = query !== '' ? `${url}?${query}` : url;
585
- let resp: GetListingFulfillments_Response | undefined;
586
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
646
+ let resp: ListFulfillmentsResponse | undefined;
647
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
587
648
  const headers = new Headers();
588
649
  if (this.workspaceId !== undefined) {
589
650
  headers.set('X-Databricks-Org-Id', this.workspaceId);
@@ -595,25 +656,22 @@ export class MarketplacesClient {
595
656
  httpClient: this.httpClient,
596
657
  logger: this.logger,
597
658
  });
598
- resp = parseResponse(
599
- respBody,
600
- unmarshalGetListingFulfillments_ResponseSchema
601
- );
659
+ resp = parseResponse(respBody, unmarshalListFulfillmentsResponseSchema);
602
660
  };
603
661
  await executeCall(call, options);
604
662
  if (resp === undefined) {
605
- throw new Error('API call completed without a result.');
663
+ throw new Error('operation completed without a result.');
606
664
  }
607
665
  return resp;
608
666
  }
609
667
 
610
- async *getListingFulfillmentsIter(
611
- req: GetListingFulfillments,
668
+ async *listListingFulfillmentsIter(
669
+ req: ListListingFulfillmentsRequest,
612
670
  options?: CallOptions
613
671
  ): AsyncGenerator<ListingFulfillment> {
614
- const pageReq: GetListingFulfillments = {...req};
672
+ const pageReq: ListListingFulfillmentsRequest = {...req};
615
673
  for (;;) {
616
- const resp = await this.getListingFulfillments(pageReq, options);
674
+ const resp = await this.listListingFulfillments(pageReq, options);
617
675
  for (const item of resp.fulfillments ?? []) {
618
676
  yield item;
619
677
  }
@@ -624,20 +682,29 @@ export class MarketplacesClient {
624
682
  }
625
683
  }
626
684
 
627
- /** Get the personalization request for a listing. Each consumer can make at *most* one personalization request for a listing. */
628
- async getPersonalizationRequestsForConsumer(
629
- req: GetPersonalizationRequestsForConsumer,
685
+ /** List personalization requests for a consumer across all listings. */
686
+ async listPersonalizationRequestsForConsumer(
687
+ req: ListPersonalizationRequestsForConsumerRequest,
630
688
  options?: CallOptions
631
- ): Promise<GetPersonalizationRequestsForConsumer_Response> {
632
- const url = `${this.host}/api/2.0/marketplace-consumer/listings/${req.listingId ?? ''}/personalization-requests`;
633
- let resp: GetPersonalizationRequestsForConsumer_Response | undefined;
634
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
689
+ ): Promise<GetAllPersonalizationRequestsForConsumerResponse> {
690
+ const url = `${this.host}/api/2.0/marketplace-consumer/personalization-requests`;
691
+ const params = new URLSearchParams();
692
+ if (req.pageToken !== undefined) {
693
+ params.append('page_token', req.pageToken);
694
+ }
695
+ if (req.pageSize !== undefined) {
696
+ params.append('page_size', String(req.pageSize));
697
+ }
698
+ const query = params.toString();
699
+ const fullUrl = query !== '' ? `${url}?${query}` : url;
700
+ let resp: GetAllPersonalizationRequestsForConsumerResponse | undefined;
701
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
635
702
  const headers = new Headers();
636
703
  if (this.workspaceId !== undefined) {
637
704
  headers.set('X-Databricks-Org-Id', this.workspaceId);
638
705
  }
639
706
  headers.set('User-Agent', this.userAgent);
640
- const httpReq = buildHttpRequest('GET', url, headers, callSignal);
707
+ const httpReq = buildHttpRequest('GET', fullUrl, headers, callSignal);
641
708
  const respBody = await executeHttpCall({
642
709
  request: httpReq,
643
710
  httpClient: this.httpClient,
@@ -645,52 +712,41 @@ export class MarketplacesClient {
645
712
  });
646
713
  resp = parseResponse(
647
714
  respBody,
648
- unmarshalGetPersonalizationRequestsForConsumer_ResponseSchema
715
+ unmarshalGetAllPersonalizationRequestsForConsumerResponseSchema
649
716
  );
650
717
  };
651
718
  await executeCall(call, options);
652
719
  if (resp === undefined) {
653
- throw new Error('API call completed without a result.');
720
+ throw new Error('operation completed without a result.');
654
721
  }
655
722
  return resp;
656
723
  }
657
724
 
658
- /** Get a published listing in the Databricks Marketplace that the consumer has access to. */
659
- async getPublishedListingForConsumer(
660
- req: GetPublishedListingForConsumer,
725
+ async *listPersonalizationRequestsForConsumerIter(
726
+ req: ListPersonalizationRequestsForConsumerRequest,
661
727
  options?: CallOptions
662
- ): Promise<GetPublishedListingForConsumer_Response> {
663
- const url = `${this.host}/api/2.0/marketplace-consumer/listings/${req.id ?? ''}`;
664
- let resp: GetPublishedListingForConsumer_Response | undefined;
665
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
666
- const headers = new Headers();
667
- if (this.workspaceId !== undefined) {
668
- headers.set('X-Databricks-Org-Id', this.workspaceId);
669
- }
670
- headers.set('User-Agent', this.userAgent);
671
- const httpReq = buildHttpRequest('GET', url, headers, callSignal);
672
- const respBody = await executeHttpCall({
673
- request: httpReq,
674
- httpClient: this.httpClient,
675
- logger: this.logger,
676
- });
677
- resp = parseResponse(
678
- respBody,
679
- unmarshalGetPublishedListingForConsumer_ResponseSchema
728
+ ): AsyncGenerator<PersonalizationRequest> {
729
+ const pageReq: ListPersonalizationRequestsForConsumerRequest = {...req};
730
+ for (;;) {
731
+ const resp = await this.listPersonalizationRequestsForConsumer(
732
+ pageReq,
733
+ options
680
734
  );
681
- };
682
- await executeCall(call, options);
683
- if (resp === undefined) {
684
- throw new Error('API call completed without a result.');
735
+ for (const item of resp.personalizationRequests ?? []) {
736
+ yield item;
737
+ }
738
+ if (resp.nextPageToken === undefined || resp.nextPageToken === '') {
739
+ return;
740
+ }
741
+ pageReq.pageToken = resp.nextPageToken;
685
742
  }
686
- return resp;
687
743
  }
688
744
 
689
745
  /** List all published listings in the Databricks Marketplace that the consumer has access to. */
690
- async getPublishedListingsForConsumer(
691
- req: GetPublishedListingsForConsumer,
746
+ async listPublishedListingsForConsumer(
747
+ req: ListPublishedListingsForConsumerRequest,
692
748
  options?: CallOptions
693
- ): Promise<GetPublishedListingsForConsumer_Response> {
749
+ ): Promise<GetPublishedListingsForConsumerResponse> {
694
750
  const url = `${this.host}/api/2.0/marketplace-consumer/listings`;
695
751
  const params = new URLSearchParams();
696
752
  if (req.pageToken !== undefined) {
@@ -726,8 +782,8 @@ export class MarketplacesClient {
726
782
  }
727
783
  const query = params.toString();
728
784
  const fullUrl = query !== '' ? `${url}?${query}` : url;
729
- let resp: GetPublishedListingsForConsumer_Response | undefined;
730
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
785
+ let resp: GetPublishedListingsForConsumerResponse | undefined;
786
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
731
787
  const headers = new Headers();
732
788
  if (this.workspaceId !== undefined) {
733
789
  headers.set('X-Databricks-Org-Id', this.workspaceId);
@@ -741,23 +797,26 @@ export class MarketplacesClient {
741
797
  });
742
798
  resp = parseResponse(
743
799
  respBody,
744
- unmarshalGetPublishedListingsForConsumer_ResponseSchema
800
+ unmarshalGetPublishedListingsForConsumerResponseSchema
745
801
  );
746
802
  };
747
803
  await executeCall(call, options);
748
804
  if (resp === undefined) {
749
- throw new Error('API call completed without a result.');
805
+ throw new Error('operation completed without a result.');
750
806
  }
751
807
  return resp;
752
808
  }
753
809
 
754
- async *getPublishedListingsForConsumerIter(
755
- req: GetPublishedListingsForConsumer,
810
+ async *listPublishedListingsForConsumerIter(
811
+ req: ListPublishedListingsForConsumerRequest,
756
812
  options?: CallOptions
757
813
  ): AsyncGenerator<Listing> {
758
- const pageReq: GetPublishedListingsForConsumer = {...req};
814
+ const pageReq: ListPublishedListingsForConsumerRequest = {...req};
759
815
  for (;;) {
760
- const resp = await this.getPublishedListingsForConsumer(pageReq, options);
816
+ const resp = await this.listPublishedListingsForConsumer(
817
+ pageReq,
818
+ options
819
+ );
761
820
  for (const item of resp.listings ?? []) {
762
821
  yield item;
763
822
  }
@@ -768,71 +827,11 @@ export class MarketplacesClient {
768
827
  }
769
828
  }
770
829
 
771
- /** Get a provider in the Databricks Marketplace with at least one visible listing. */
772
- async getPublishedProviderForConsumer(
773
- req: GetPublishedProviderForConsumer,
774
- options?: CallOptions
775
- ): Promise<GetPublishedProviderForConsumer_Response> {
776
- const url = `${this.host}/api/2.0/marketplace-consumer/providers/${req.id ?? ''}`;
777
- let resp: GetPublishedProviderForConsumer_Response | undefined;
778
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
779
- const headers = new Headers();
780
- if (this.workspaceId !== undefined) {
781
- headers.set('X-Databricks-Org-Id', this.workspaceId);
782
- }
783
- headers.set('User-Agent', this.userAgent);
784
- const httpReq = buildHttpRequest('GET', url, headers, callSignal);
785
- const respBody = await executeHttpCall({
786
- request: httpReq,
787
- httpClient: this.httpClient,
788
- logger: this.logger,
789
- });
790
- resp = parseResponse(
791
- respBody,
792
- unmarshalGetPublishedProviderForConsumer_ResponseSchema
793
- );
794
- };
795
- await executeCall(call, options);
796
- if (resp === undefined) {
797
- throw new Error('API call completed without a result.');
798
- }
799
- return resp;
800
- }
801
-
802
- /** Install payload associated with a Databricks Marketplace listing. */
803
- async installListing(
804
- req: InstallListing,
805
- options?: CallOptions
806
- ): Promise<InstallListing_Response> {
807
- const url = `${this.host}/api/2.0/marketplace-consumer/listings/${req.listingId ?? ''}/installations`;
808
- const body = marshalRequest(req, marshalInstallListingSchema);
809
- let resp: InstallListing_Response | undefined;
810
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
811
- const headers = new Headers({'Content-Type': 'application/json'});
812
- if (this.workspaceId !== undefined) {
813
- headers.set('X-Databricks-Org-Id', this.workspaceId);
814
- }
815
- headers.set('User-Agent', this.userAgent);
816
- const httpReq = buildHttpRequest('POST', url, headers, callSignal, body);
817
- const respBody = await executeHttpCall({
818
- request: httpReq,
819
- httpClient: this.httpClient,
820
- logger: this.logger,
821
- });
822
- resp = parseResponse(respBody, unmarshalInstallListing_ResponseSchema);
823
- };
824
- await executeCall(call, options);
825
- if (resp === undefined) {
826
- throw new Error('API call completed without a result.');
827
- }
828
- return resp;
829
- }
830
-
831
830
  /** List all providers in the Databricks Marketplace with at least one visible listing. */
832
831
  async listPublishedProvidersForConsumer(
833
832
  req: ListPublishedProvidersForConsumer,
834
833
  options?: CallOptions
835
- ): Promise<ListPublishedProvidersForConsumer_Response> {
834
+ ): Promise<ListPublishedProvidersForConsumerResponse> {
836
835
  const url = `${this.host}/api/2.0/marketplace-consumer/providers`;
837
836
  const params = new URLSearchParams();
838
837
  if (req.pageToken !== undefined) {
@@ -846,8 +845,8 @@ export class MarketplacesClient {
846
845
  }
847
846
  const query = params.toString();
848
847
  const fullUrl = query !== '' ? `${url}?${query}` : url;
849
- let resp: ListPublishedProvidersForConsumer_Response | undefined;
850
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
848
+ let resp: ListPublishedProvidersForConsumerResponse | undefined;
849
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
851
850
  const headers = new Headers();
852
851
  if (this.workspaceId !== undefined) {
853
852
  headers.set('X-Databricks-Org-Id', this.workspaceId);
@@ -861,12 +860,12 @@ export class MarketplacesClient {
861
860
  });
862
861
  resp = parseResponse(
863
862
  respBody,
864
- unmarshalListPublishedProvidersForConsumer_ResponseSchema
863
+ unmarshalListPublishedProvidersForConsumerResponseSchema
865
864
  );
866
865
  };
867
866
  await executeCall(call, options);
868
867
  if (resp === undefined) {
869
- throw new Error('API call completed without a result.');
868
+ throw new Error('operation completed without a result.');
870
869
  }
871
870
  return resp;
872
871
  }
@@ -898,7 +897,7 @@ export class MarketplacesClient {
898
897
  async searchPublishedListingsForConsumer(
899
898
  req: SearchPublishedListingsForConsumer,
900
899
  options?: CallOptions
901
- ): Promise<SearchPublishedListingsForConsumer_Response> {
900
+ ): Promise<SearchPublishedListingsForConsumerResponse> {
902
901
  const url = `${this.host}/api/2.0/marketplace-consumer/search-listings`;
903
902
  const params = new URLSearchParams();
904
903
  if (req.query !== undefined) {
@@ -927,8 +926,8 @@ export class MarketplacesClient {
927
926
  }
928
927
  const query = params.toString();
929
928
  const fullUrl = query !== '' ? `${url}?${query}` : url;
930
- let resp: SearchPublishedListingsForConsumer_Response | undefined;
931
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
929
+ let resp: SearchPublishedListingsForConsumerResponse | undefined;
930
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
932
931
  const headers = new Headers();
933
932
  if (this.workspaceId !== undefined) {
934
933
  headers.set('X-Databricks-Org-Id', this.workspaceId);
@@ -942,12 +941,12 @@ export class MarketplacesClient {
942
941
  });
943
942
  resp = parseResponse(
944
943
  respBody,
945
- unmarshalSearchPublishedListingsForConsumer_ResponseSchema
944
+ unmarshalSearchPublishedListingsForConsumerResponseSchema
946
945
  );
947
946
  };
948
947
  await executeCall(call, options);
949
948
  if (resp === undefined) {
950
- throw new Error('API call completed without a result.');
949
+ throw new Error('operation completed without a result.');
951
950
  }
952
951
  return resp;
953
952
  }
@@ -976,10 +975,10 @@ export class MarketplacesClient {
976
975
  async uninstallListing(
977
976
  req: UninstallListing,
978
977
  options?: CallOptions
979
- ): Promise<UninstallListing_Response> {
978
+ ): Promise<DeleteInstallationResponse> {
980
979
  const url = `${this.host}/api/2.0/marketplace-consumer/listings/${req.listingId ?? ''}/installations/${req.installationId ?? ''}`;
981
- let resp: UninstallListing_Response | undefined;
982
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
980
+ let resp: DeleteInstallationResponse | undefined;
981
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
983
982
  const headers = new Headers();
984
983
  if (this.workspaceId !== undefined) {
985
984
  headers.set('X-Databricks-Org-Id', this.workspaceId);
@@ -991,11 +990,11 @@ export class MarketplacesClient {
991
990
  httpClient: this.httpClient,
992
991
  logger: this.logger,
993
992
  });
994
- resp = parseResponse(respBody, unmarshalUninstallListing_ResponseSchema);
993
+ resp = parseResponse(respBody, unmarshalDeleteInstallationResponseSchema);
995
994
  };
996
995
  await executeCall(call, options);
997
996
  if (resp === undefined) {
998
- throw new Error('API call completed without a result.');
997
+ throw new Error('operation completed without a result.');
999
998
  }
1000
999
  return resp;
1001
1000
  }
@@ -1009,11 +1008,11 @@ export class MarketplacesClient {
1009
1008
  async updateInstallationDetail(
1010
1009
  req: UpdateInstallationDetail,
1011
1010
  options?: CallOptions
1012
- ): Promise<UpdateInstallationDetail_Response> {
1011
+ ): Promise<UpdateInstallationResponse> {
1013
1012
  const url = `${this.host}/api/2.0/marketplace-consumer/listings/${req.listingId ?? ''}/installations/${req.installationId ?? ''}`;
1014
1013
  const body = marshalRequest(req, marshalUpdateInstallationDetailSchema);
1015
- let resp: UpdateInstallationDetail_Response | undefined;
1016
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
1014
+ let resp: UpdateInstallationResponse | undefined;
1015
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
1017
1016
  const headers = new Headers({'Content-Type': 'application/json'});
1018
1017
  if (this.workspaceId !== undefined) {
1019
1018
  headers.set('X-Databricks-Org-Id', this.workspaceId);
@@ -1025,14 +1024,11 @@ export class MarketplacesClient {
1025
1024
  httpClient: this.httpClient,
1026
1025
  logger: this.logger,
1027
1026
  });
1028
- resp = parseResponse(
1029
- respBody,
1030
- unmarshalUpdateInstallationDetail_ResponseSchema
1031
- );
1027
+ resp = parseResponse(respBody, unmarshalUpdateInstallationResponseSchema);
1032
1028
  };
1033
1029
  await executeCall(call, options);
1034
1030
  if (resp === undefined) {
1035
- throw new Error('API call completed without a result.');
1031
+ throw new Error('operation completed without a result.');
1036
1032
  }
1037
1033
  return resp;
1038
1034
  }
@@ -1045,7 +1041,7 @@ export class MarketplacesClient {
1045
1041
  const url = `${this.host}/api/2.0/marketplace-exchange/exchanges-for-listing`;
1046
1042
  const body = marshalRequest(req, marshalAddExchangeForListingRequestSchema);
1047
1043
  let resp: AddExchangeForListingResponse | undefined;
1048
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
1044
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
1049
1045
  const headers = new Headers({'Content-Type': 'application/json'});
1050
1046
  if (this.workspaceId !== undefined) {
1051
1047
  headers.set('X-Databricks-Org-Id', this.workspaceId);
@@ -1064,7 +1060,7 @@ export class MarketplacesClient {
1064
1060
  };
1065
1061
  await executeCall(call, options);
1066
1062
  if (resp === undefined) {
1067
- throw new Error('API call completed without a result.');
1063
+ throw new Error('operation completed without a result.');
1068
1064
  }
1069
1065
  return resp;
1070
1066
  }
@@ -1077,7 +1073,7 @@ export class MarketplacesClient {
1077
1073
  const url = `${this.host}/api/2.0/marketplace-exchange/exchanges`;
1078
1074
  const body = marshalRequest(req, marshalCreateExchangeRequestSchema);
1079
1075
  let resp: CreateExchangeResponse | undefined;
1080
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
1076
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
1081
1077
  const headers = new Headers({'Content-Type': 'application/json'});
1082
1078
  if (this.workspaceId !== undefined) {
1083
1079
  headers.set('X-Databricks-Org-Id', this.workspaceId);
@@ -1093,7 +1089,7 @@ export class MarketplacesClient {
1093
1089
  };
1094
1090
  await executeCall(call, options);
1095
1091
  if (resp === undefined) {
1096
- throw new Error('API call completed without a result.');
1092
+ throw new Error('operation completed without a result.');
1097
1093
  }
1098
1094
  return resp;
1099
1095
  }
@@ -1106,7 +1102,7 @@ export class MarketplacesClient {
1106
1102
  const url = `${this.host}/api/2.0/marketplace-exchange/filters`;
1107
1103
  const body = marshalRequest(req, marshalCreateExchangeFilterRequestSchema);
1108
1104
  let resp: CreateExchangeFilterResponse | undefined;
1109
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
1105
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
1110
1106
  const headers = new Headers({'Content-Type': 'application/json'});
1111
1107
  if (this.workspaceId !== undefined) {
1112
1108
  headers.set('X-Databricks-Org-Id', this.workspaceId);
@@ -1125,7 +1121,7 @@ export class MarketplacesClient {
1125
1121
  };
1126
1122
  await executeCall(call, options);
1127
1123
  if (resp === undefined) {
1128
- throw new Error('API call completed without a result.');
1124
+ throw new Error('operation completed without a result.');
1129
1125
  }
1130
1126
  return resp;
1131
1127
  }
@@ -1134,11 +1130,11 @@ export class MarketplacesClient {
1134
1130
  async createFile(
1135
1131
  req: CreateFileRequest,
1136
1132
  options?: CallOptions
1137
- ): Promise<CreateFileRequest_Response> {
1133
+ ): Promise<CreateFileResponse> {
1138
1134
  const url = `${this.host}/api/2.0/marketplace-provider/files`;
1139
1135
  const body = marshalRequest(req, marshalCreateFileRequestSchema);
1140
- let resp: CreateFileRequest_Response | undefined;
1141
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
1136
+ let resp: CreateFileResponse | undefined;
1137
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
1142
1138
  const headers = new Headers({'Content-Type': 'application/json'});
1143
1139
  if (this.workspaceId !== undefined) {
1144
1140
  headers.set('X-Databricks-Org-Id', this.workspaceId);
@@ -1150,11 +1146,11 @@ export class MarketplacesClient {
1150
1146
  httpClient: this.httpClient,
1151
1147
  logger: this.logger,
1152
1148
  });
1153
- resp = parseResponse(respBody, unmarshalCreateFileRequest_ResponseSchema);
1149
+ resp = parseResponse(respBody, unmarshalCreateFileResponseSchema);
1154
1150
  };
1155
1151
  await executeCall(call, options);
1156
1152
  if (resp === undefined) {
1157
- throw new Error('API call completed without a result.');
1153
+ throw new Error('operation completed without a result.');
1158
1154
  }
1159
1155
  return resp;
1160
1156
  }
@@ -1163,11 +1159,11 @@ export class MarketplacesClient {
1163
1159
  async createListing(
1164
1160
  req: CreateListingRequest,
1165
1161
  options?: CallOptions
1166
- ): Promise<CreateListingRequest_Response> {
1162
+ ): Promise<CreateListingResponse> {
1167
1163
  const url = `${this.host}/api/2.0/marketplace-provider/listing`;
1168
1164
  const body = marshalRequest(req, marshalCreateListingRequestSchema);
1169
- let resp: CreateListingRequest_Response | undefined;
1170
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
1165
+ let resp: CreateListingResponse | undefined;
1166
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
1171
1167
  const headers = new Headers({'Content-Type': 'application/json'});
1172
1168
  if (this.workspaceId !== undefined) {
1173
1169
  headers.set('X-Databricks-Org-Id', this.workspaceId);
@@ -1179,14 +1175,11 @@ export class MarketplacesClient {
1179
1175
  httpClient: this.httpClient,
1180
1176
  logger: this.logger,
1181
1177
  });
1182
- resp = parseResponse(
1183
- respBody,
1184
- unmarshalCreateListingRequest_ResponseSchema
1185
- );
1178
+ resp = parseResponse(respBody, unmarshalCreateListingResponseSchema);
1186
1179
  };
1187
1180
  await executeCall(call, options);
1188
1181
  if (resp === undefined) {
1189
- throw new Error('API call completed without a result.');
1182
+ throw new Error('operation completed without a result.');
1190
1183
  }
1191
1184
  return resp;
1192
1185
  }
@@ -1195,11 +1188,11 @@ export class MarketplacesClient {
1195
1188
  async createProvider(
1196
1189
  req: CreateProviderRequest,
1197
1190
  options?: CallOptions
1198
- ): Promise<CreateProviderRequest_Response> {
1191
+ ): Promise<CreateProviderResponse> {
1199
1192
  const url = `${this.host}/api/2.0/marketplace-provider/provider`;
1200
1193
  const body = marshalRequest(req, marshalCreateProviderRequestSchema);
1201
- let resp: CreateProviderRequest_Response | undefined;
1202
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
1194
+ let resp: CreateProviderResponse | undefined;
1195
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
1203
1196
  const headers = new Headers({'Content-Type': 'application/json'});
1204
1197
  if (this.workspaceId !== undefined) {
1205
1198
  headers.set('X-Databricks-Org-Id', this.workspaceId);
@@ -1211,14 +1204,11 @@ export class MarketplacesClient {
1211
1204
  httpClient: this.httpClient,
1212
1205
  logger: this.logger,
1213
1206
  });
1214
- resp = parseResponse(
1215
- respBody,
1216
- unmarshalCreateProviderRequest_ResponseSchema
1217
- );
1207
+ resp = parseResponse(respBody, unmarshalCreateProviderResponseSchema);
1218
1208
  };
1219
1209
  await executeCall(call, options);
1220
1210
  if (resp === undefined) {
1221
- throw new Error('API call completed without a result.');
1211
+ throw new Error('operation completed without a result.');
1222
1212
  }
1223
1213
  return resp;
1224
1214
  }
@@ -1227,14 +1217,14 @@ export class MarketplacesClient {
1227
1217
  async createProviderAnalyticsDashboard(
1228
1218
  req: CreateProviderAnalyticsDashboardRequest,
1229
1219
  options?: CallOptions
1230
- ): Promise<CreateProviderAnalyticsDashboardRequest_Response> {
1220
+ ): Promise<CreateProviderAnalyticsDashboardResponse> {
1231
1221
  const url = `${this.host}/api/2.0/marketplace-provider/analytics_dashboard`;
1232
1222
  const body = marshalRequest(
1233
1223
  req,
1234
1224
  marshalCreateProviderAnalyticsDashboardRequestSchema
1235
1225
  );
1236
- let resp: CreateProviderAnalyticsDashboardRequest_Response | undefined;
1237
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
1226
+ let resp: CreateProviderAnalyticsDashboardResponse | undefined;
1227
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
1238
1228
  const headers = new Headers({'Content-Type': 'application/json'});
1239
1229
  if (this.workspaceId !== undefined) {
1240
1230
  headers.set('X-Databricks-Org-Id', this.workspaceId);
@@ -1248,12 +1238,12 @@ export class MarketplacesClient {
1248
1238
  });
1249
1239
  resp = parseResponse(
1250
1240
  respBody,
1251
- unmarshalCreateProviderAnalyticsDashboardRequest_ResponseSchema
1241
+ unmarshalCreateProviderAnalyticsDashboardResponseSchema
1252
1242
  );
1253
1243
  };
1254
1244
  await executeCall(call, options);
1255
1245
  if (resp === undefined) {
1256
- throw new Error('API call completed without a result.');
1246
+ throw new Error('operation completed without a result.');
1257
1247
  }
1258
1248
  return resp;
1259
1249
  }
@@ -1265,7 +1255,7 @@ export class MarketplacesClient {
1265
1255
  ): Promise<DeleteExchangeResponse> {
1266
1256
  const url = `${this.host}/api/2.0/marketplace-exchange/exchanges/${req.id ?? ''}`;
1267
1257
  let resp: DeleteExchangeResponse | undefined;
1268
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
1258
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
1269
1259
  const headers = new Headers();
1270
1260
  if (this.workspaceId !== undefined) {
1271
1261
  headers.set('X-Databricks-Org-Id', this.workspaceId);
@@ -1281,7 +1271,7 @@ export class MarketplacesClient {
1281
1271
  };
1282
1272
  await executeCall(call, options);
1283
1273
  if (resp === undefined) {
1284
- throw new Error('API call completed without a result.');
1274
+ throw new Error('operation completed without a result.');
1285
1275
  }
1286
1276
  return resp;
1287
1277
  }
@@ -1293,7 +1283,7 @@ export class MarketplacesClient {
1293
1283
  ): Promise<DeleteExchangeFilterResponse> {
1294
1284
  const url = `${this.host}/api/2.0/marketplace-exchange/filters/${req.id ?? ''}`;
1295
1285
  let resp: DeleteExchangeFilterResponse | undefined;
1296
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
1286
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
1297
1287
  const headers = new Headers();
1298
1288
  if (this.workspaceId !== undefined) {
1299
1289
  headers.set('X-Databricks-Org-Id', this.workspaceId);
@@ -1312,7 +1302,7 @@ export class MarketplacesClient {
1312
1302
  };
1313
1303
  await executeCall(call, options);
1314
1304
  if (resp === undefined) {
1315
- throw new Error('API call completed without a result.');
1305
+ throw new Error('operation completed without a result.');
1316
1306
  }
1317
1307
  return resp;
1318
1308
  }
@@ -1321,10 +1311,10 @@ export class MarketplacesClient {
1321
1311
  async deleteFile(
1322
1312
  req: DeleteFileRequest,
1323
1313
  options?: CallOptions
1324
- ): Promise<DeleteFileRequest_Response> {
1314
+ ): Promise<DeleteFileResponse> {
1325
1315
  const url = `${this.host}/api/2.0/marketplace-provider/files/${req.fileId ?? ''}`;
1326
- let resp: DeleteFileRequest_Response | undefined;
1327
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
1316
+ let resp: DeleteFileResponse | undefined;
1317
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
1328
1318
  const headers = new Headers();
1329
1319
  if (this.workspaceId !== undefined) {
1330
1320
  headers.set('X-Databricks-Org-Id', this.workspaceId);
@@ -1336,11 +1326,11 @@ export class MarketplacesClient {
1336
1326
  httpClient: this.httpClient,
1337
1327
  logger: this.logger,
1338
1328
  });
1339
- resp = parseResponse(respBody, unmarshalDeleteFileRequest_ResponseSchema);
1329
+ resp = parseResponse(respBody, unmarshalDeleteFileResponseSchema);
1340
1330
  };
1341
1331
  await executeCall(call, options);
1342
1332
  if (resp === undefined) {
1343
- throw new Error('API call completed without a result.');
1333
+ throw new Error('operation completed without a result.');
1344
1334
  }
1345
1335
  return resp;
1346
1336
  }
@@ -1349,10 +1339,10 @@ export class MarketplacesClient {
1349
1339
  async deleteListing(
1350
1340
  req: DeleteListingRequest,
1351
1341
  options?: CallOptions
1352
- ): Promise<DeleteListingRequest_Response> {
1342
+ ): Promise<DeleteListingResponse> {
1353
1343
  const url = `${this.host}/api/2.0/marketplace-provider/listings/${req.id ?? ''}`;
1354
- let resp: DeleteListingRequest_Response | undefined;
1355
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
1344
+ let resp: DeleteListingResponse | undefined;
1345
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
1356
1346
  const headers = new Headers();
1357
1347
  if (this.workspaceId !== undefined) {
1358
1348
  headers.set('X-Databricks-Org-Id', this.workspaceId);
@@ -1364,14 +1354,11 @@ export class MarketplacesClient {
1364
1354
  httpClient: this.httpClient,
1365
1355
  logger: this.logger,
1366
1356
  });
1367
- resp = parseResponse(
1368
- respBody,
1369
- unmarshalDeleteListingRequest_ResponseSchema
1370
- );
1357
+ resp = parseResponse(respBody, unmarshalDeleteListingResponseSchema);
1371
1358
  };
1372
1359
  await executeCall(call, options);
1373
1360
  if (resp === undefined) {
1374
- throw new Error('API call completed without a result.');
1361
+ throw new Error('operation completed without a result.');
1375
1362
  }
1376
1363
  return resp;
1377
1364
  }
@@ -1380,10 +1367,10 @@ export class MarketplacesClient {
1380
1367
  async deleteProvider(
1381
1368
  req: DeleteProviderRequest,
1382
1369
  options?: CallOptions
1383
- ): Promise<DeleteProviderRequest_Response> {
1370
+ ): Promise<DeleteProviderResponse> {
1384
1371
  const url = `${this.host}/api/2.0/marketplace-provider/providers/${req.id ?? ''}`;
1385
- let resp: DeleteProviderRequest_Response | undefined;
1386
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
1372
+ let resp: DeleteProviderResponse | undefined;
1373
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
1387
1374
  const headers = new Headers();
1388
1375
  if (this.workspaceId !== undefined) {
1389
1376
  headers.set('X-Databricks-Org-Id', this.workspaceId);
@@ -1395,14 +1382,11 @@ export class MarketplacesClient {
1395
1382
  httpClient: this.httpClient,
1396
1383
  logger: this.logger,
1397
1384
  });
1398
- resp = parseResponse(
1399
- respBody,
1400
- unmarshalDeleteProviderRequest_ResponseSchema
1401
- );
1385
+ resp = parseResponse(respBody, unmarshalDeleteProviderResponseSchema);
1402
1386
  };
1403
1387
  await executeCall(call, options);
1404
1388
  if (resp === undefined) {
1405
- throw new Error('API call completed without a result.');
1389
+ throw new Error('operation completed without a result.');
1406
1390
  }
1407
1391
  return resp;
1408
1392
  }
@@ -1414,7 +1398,7 @@ export class MarketplacesClient {
1414
1398
  ): Promise<GetExchangeResponse> {
1415
1399
  const url = `${this.host}/api/2.0/marketplace-exchange/exchanges/${req.id ?? ''}`;
1416
1400
  let resp: GetExchangeResponse | undefined;
1417
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
1401
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
1418
1402
  const headers = new Headers();
1419
1403
  if (this.workspaceId !== undefined) {
1420
1404
  headers.set('X-Databricks-Org-Id', this.workspaceId);
@@ -1430,7 +1414,7 @@ export class MarketplacesClient {
1430
1414
  };
1431
1415
  await executeCall(call, options);
1432
1416
  if (resp === undefined) {
1433
- throw new Error('API call completed without a result.');
1417
+ throw new Error('operation completed without a result.');
1434
1418
  }
1435
1419
  return resp;
1436
1420
  }
@@ -1439,10 +1423,10 @@ export class MarketplacesClient {
1439
1423
  async getFile(
1440
1424
  req: GetFileRequest,
1441
1425
  options?: CallOptions
1442
- ): Promise<GetFileRequest_Response> {
1426
+ ): Promise<GetFileResponse> {
1443
1427
  const url = `${this.host}/api/2.0/marketplace-provider/files/${req.fileId ?? ''}`;
1444
- let resp: GetFileRequest_Response | undefined;
1445
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
1428
+ let resp: GetFileResponse | undefined;
1429
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
1446
1430
  const headers = new Headers();
1447
1431
  if (this.workspaceId !== undefined) {
1448
1432
  headers.set('X-Databricks-Org-Id', this.workspaceId);
@@ -1454,11 +1438,11 @@ export class MarketplacesClient {
1454
1438
  httpClient: this.httpClient,
1455
1439
  logger: this.logger,
1456
1440
  });
1457
- resp = parseResponse(respBody, unmarshalGetFileRequest_ResponseSchema);
1441
+ resp = parseResponse(respBody, unmarshalGetFileResponseSchema);
1458
1442
  };
1459
1443
  await executeCall(call, options);
1460
1444
  if (resp === undefined) {
1461
- throw new Error('API call completed without a result.');
1445
+ throw new Error('operation completed without a result.');
1462
1446
  }
1463
1447
  return resp;
1464
1448
  }
@@ -1467,12 +1451,10 @@ export class MarketplacesClient {
1467
1451
  async getLatestVersionProviderAnalyticsDashboard(
1468
1452
  _req: GetLatestVersionProviderAnalyticsDashboardRequest,
1469
1453
  options?: CallOptions
1470
- ): Promise<GetLatestVersionProviderAnalyticsDashboardRequest_Response> {
1454
+ ): Promise<GetLatestVersionProviderAnalyticsDashboardResponse> {
1471
1455
  const url = `${this.host}/api/2.0/marketplace-provider/analytics_dashboard/latest`;
1472
- let resp:
1473
- | GetLatestVersionProviderAnalyticsDashboardRequest_Response
1474
- | undefined;
1475
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
1456
+ let resp: GetLatestVersionProviderAnalyticsDashboardResponse | undefined;
1457
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
1476
1458
  const headers = new Headers();
1477
1459
  if (this.workspaceId !== undefined) {
1478
1460
  headers.set('X-Databricks-Org-Id', this.workspaceId);
@@ -1486,12 +1468,12 @@ export class MarketplacesClient {
1486
1468
  });
1487
1469
  resp = parseResponse(
1488
1470
  respBody,
1489
- unmarshalGetLatestVersionProviderAnalyticsDashboardRequest_ResponseSchema
1471
+ unmarshalGetLatestVersionProviderAnalyticsDashboardResponseSchema
1490
1472
  );
1491
1473
  };
1492
1474
  await executeCall(call, options);
1493
1475
  if (resp === undefined) {
1494
- throw new Error('API call completed without a result.');
1476
+ throw new Error('operation completed without a result.');
1495
1477
  }
1496
1478
  return resp;
1497
1479
  }
@@ -1500,10 +1482,10 @@ export class MarketplacesClient {
1500
1482
  async getListing(
1501
1483
  req: GetListingRequest,
1502
1484
  options?: CallOptions
1503
- ): Promise<GetListingRequest_Response> {
1485
+ ): Promise<GetListingResponse> {
1504
1486
  const url = `${this.host}/api/2.0/marketplace-provider/listings/${req.id ?? ''}`;
1505
- let resp: GetListingRequest_Response | undefined;
1506
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
1487
+ let resp: GetListingResponse | undefined;
1488
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
1507
1489
  const headers = new Headers();
1508
1490
  if (this.workspaceId !== undefined) {
1509
1491
  headers.set('X-Databricks-Org-Id', this.workspaceId);
@@ -1515,72 +1497,15 @@ export class MarketplacesClient {
1515
1497
  httpClient: this.httpClient,
1516
1498
  logger: this.logger,
1517
1499
  });
1518
- resp = parseResponse(respBody, unmarshalGetListingRequest_ResponseSchema);
1500
+ resp = parseResponse(respBody, unmarshalGetListingResponseSchema);
1519
1501
  };
1520
1502
  await executeCall(call, options);
1521
1503
  if (resp === undefined) {
1522
- throw new Error('API call completed without a result.');
1504
+ throw new Error('operation completed without a result.');
1523
1505
  }
1524
1506
  return resp;
1525
1507
  }
1526
1508
 
1527
- /** List listings owned by this provider */
1528
- async getListings(
1529
- req: GetListingsRequest,
1530
- options?: CallOptions
1531
- ): Promise<GetListingsRequest_Response> {
1532
- const url = `${this.host}/api/2.0/marketplace-provider/listings`;
1533
- const params = new URLSearchParams();
1534
- if (req.pageToken !== undefined) {
1535
- params.append('page_token', req.pageToken);
1536
- }
1537
- if (req.pageSize !== undefined) {
1538
- params.append('page_size', String(req.pageSize));
1539
- }
1540
- const query = params.toString();
1541
- const fullUrl = query !== '' ? `${url}?${query}` : url;
1542
- let resp: GetListingsRequest_Response | undefined;
1543
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
1544
- const headers = new Headers();
1545
- if (this.workspaceId !== undefined) {
1546
- headers.set('X-Databricks-Org-Id', this.workspaceId);
1547
- }
1548
- headers.set('User-Agent', this.userAgent);
1549
- const httpReq = buildHttpRequest('GET', fullUrl, headers, callSignal);
1550
- const respBody = await executeHttpCall({
1551
- request: httpReq,
1552
- httpClient: this.httpClient,
1553
- logger: this.logger,
1554
- });
1555
- resp = parseResponse(
1556
- respBody,
1557
- unmarshalGetListingsRequest_ResponseSchema
1558
- );
1559
- };
1560
- await executeCall(call, options);
1561
- if (resp === undefined) {
1562
- throw new Error('API call completed without a result.');
1563
- }
1564
- return resp;
1565
- }
1566
-
1567
- async *getListingsIter(
1568
- req: GetListingsRequest,
1569
- options?: CallOptions
1570
- ): AsyncGenerator<Listing> {
1571
- const pageReq: GetListingsRequest = {...req};
1572
- for (;;) {
1573
- const resp = await this.getListings(pageReq, options);
1574
- for (const item of resp.listings ?? []) {
1575
- yield item;
1576
- }
1577
- if (resp.nextPageToken === undefined || resp.nextPageToken === '') {
1578
- return;
1579
- }
1580
- pageReq.pageToken = resp.nextPageToken;
1581
- }
1582
- }
1583
-
1584
1509
  /**
1585
1510
  * List personalization requests to this provider.
1586
1511
  * This will return all personalization requests, regardless of which listing they are for.
@@ -1588,7 +1513,7 @@ export class MarketplacesClient {
1588
1513
  async getPersonalizationRequestsForProvider(
1589
1514
  req: GetPersonalizationRequestsForProviderRequest,
1590
1515
  options?: CallOptions
1591
- ): Promise<GetPersonalizationRequestsForProviderRequest_Response> {
1516
+ ): Promise<GetPersonalizationRequestsForProviderResponse> {
1592
1517
  const url = `${this.host}/api/2.0/marketplace-provider/personalization-requests`;
1593
1518
  const params = new URLSearchParams();
1594
1519
  if (req.pageToken !== undefined) {
@@ -1599,8 +1524,8 @@ export class MarketplacesClient {
1599
1524
  }
1600
1525
  const query = params.toString();
1601
1526
  const fullUrl = query !== '' ? `${url}?${query}` : url;
1602
- let resp: GetPersonalizationRequestsForProviderRequest_Response | undefined;
1603
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
1527
+ let resp: GetPersonalizationRequestsForProviderResponse | undefined;
1528
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
1604
1529
  const headers = new Headers();
1605
1530
  if (this.workspaceId !== undefined) {
1606
1531
  headers.set('X-Databricks-Org-Id', this.workspaceId);
@@ -1614,12 +1539,12 @@ export class MarketplacesClient {
1614
1539
  });
1615
1540
  resp = parseResponse(
1616
1541
  respBody,
1617
- unmarshalGetPersonalizationRequestsForProviderRequest_ResponseSchema
1542
+ unmarshalGetPersonalizationRequestsForProviderResponseSchema
1618
1543
  );
1619
1544
  };
1620
1545
  await executeCall(call, options);
1621
1546
  if (resp === undefined) {
1622
- throw new Error('API call completed without a result.');
1547
+ throw new Error('operation completed without a result.');
1623
1548
  }
1624
1549
  return resp;
1625
1550
  }
@@ -1648,10 +1573,10 @@ export class MarketplacesClient {
1648
1573
  async getProvider(
1649
1574
  req: GetProviderRequest,
1650
1575
  options?: CallOptions
1651
- ): Promise<GetProviderRequest_Response> {
1576
+ ): Promise<GetProviderResponse> {
1652
1577
  const url = `${this.host}/api/2.0/marketplace-provider/providers/${req.id ?? ''}`;
1653
- let resp: GetProviderRequest_Response | undefined;
1654
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
1578
+ let resp: GetProviderResponse | undefined;
1579
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
1655
1580
  const headers = new Headers();
1656
1581
  if (this.workspaceId !== undefined) {
1657
1582
  headers.set('X-Databricks-Org-Id', this.workspaceId);
@@ -1663,14 +1588,11 @@ export class MarketplacesClient {
1663
1588
  httpClient: this.httpClient,
1664
1589
  logger: this.logger,
1665
1590
  });
1666
- resp = parseResponse(
1667
- respBody,
1668
- unmarshalGetProviderRequest_ResponseSchema
1669
- );
1591
+ resp = parseResponse(respBody, unmarshalGetProviderResponseSchema);
1670
1592
  };
1671
1593
  await executeCall(call, options);
1672
1594
  if (resp === undefined) {
1673
- throw new Error('API call completed without a result.');
1595
+ throw new Error('operation completed without a result.');
1674
1596
  }
1675
1597
  return resp;
1676
1598
  }
@@ -1694,7 +1616,7 @@ export class MarketplacesClient {
1694
1616
  const query = params.toString();
1695
1617
  const fullUrl = query !== '' ? `${url}?${query}` : url;
1696
1618
  let resp: ListExchangeFiltersResponse | undefined;
1697
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
1619
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
1698
1620
  const headers = new Headers();
1699
1621
  if (this.workspaceId !== undefined) {
1700
1622
  headers.set('X-Databricks-Org-Id', this.workspaceId);
@@ -1713,7 +1635,7 @@ export class MarketplacesClient {
1713
1635
  };
1714
1636
  await executeCall(call, options);
1715
1637
  if (resp === undefined) {
1716
- throw new Error('API call completed without a result.');
1638
+ throw new Error('operation completed without a result.');
1717
1639
  }
1718
1640
  return resp;
1719
1641
  }
@@ -1751,7 +1673,7 @@ export class MarketplacesClient {
1751
1673
  const query = params.toString();
1752
1674
  const fullUrl = query !== '' ? `${url}?${query}` : url;
1753
1675
  let resp: ListExchangesResponse | undefined;
1754
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
1676
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
1755
1677
  const headers = new Headers();
1756
1678
  if (this.workspaceId !== undefined) {
1757
1679
  headers.set('X-Databricks-Org-Id', this.workspaceId);
@@ -1767,7 +1689,7 @@ export class MarketplacesClient {
1767
1689
  };
1768
1690
  await executeCall(call, options);
1769
1691
  if (resp === undefined) {
1770
- throw new Error('API call completed without a result.');
1692
+ throw new Error('operation completed without a result.');
1771
1693
  }
1772
1694
  return resp;
1773
1695
  }
@@ -1808,7 +1730,7 @@ export class MarketplacesClient {
1808
1730
  const query = params.toString();
1809
1731
  const fullUrl = query !== '' ? `${url}?${query}` : url;
1810
1732
  let resp: ListExchangesForListingResponse | undefined;
1811
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
1733
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
1812
1734
  const headers = new Headers();
1813
1735
  if (this.workspaceId !== undefined) {
1814
1736
  headers.set('X-Databricks-Org-Id', this.workspaceId);
@@ -1827,7 +1749,7 @@ export class MarketplacesClient {
1827
1749
  };
1828
1750
  await executeCall(call, options);
1829
1751
  if (resp === undefined) {
1830
- throw new Error('API call completed without a result.');
1752
+ throw new Error('operation completed without a result.');
1831
1753
  }
1832
1754
  return resp;
1833
1755
  }
@@ -1853,7 +1775,7 @@ export class MarketplacesClient {
1853
1775
  async listFiles(
1854
1776
  req: ListFilesRequest,
1855
1777
  options?: CallOptions
1856
- ): Promise<ListFilesRequest_Response> {
1778
+ ): Promise<ListFilesResponse> {
1857
1779
  const url = `${this.host}/api/2.0/marketplace-provider/files`;
1858
1780
  const params = new URLSearchParams();
1859
1781
  if (req.fileParent !== undefined) {
@@ -1871,8 +1793,8 @@ export class MarketplacesClient {
1871
1793
  }
1872
1794
  const query = params.toString();
1873
1795
  const fullUrl = query !== '' ? `${url}?${query}` : url;
1874
- let resp: ListFilesRequest_Response | undefined;
1875
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
1796
+ let resp: ListFilesResponse | undefined;
1797
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
1876
1798
  const headers = new Headers();
1877
1799
  if (this.workspaceId !== undefined) {
1878
1800
  headers.set('X-Databricks-Org-Id', this.workspaceId);
@@ -1884,11 +1806,11 @@ export class MarketplacesClient {
1884
1806
  httpClient: this.httpClient,
1885
1807
  logger: this.logger,
1886
1808
  });
1887
- resp = parseResponse(respBody, unmarshalListFilesRequest_ResponseSchema);
1809
+ resp = parseResponse(respBody, unmarshalListFilesResponseSchema);
1888
1810
  };
1889
1811
  await executeCall(call, options);
1890
1812
  if (resp === undefined) {
1891
- throw new Error('API call completed without a result.');
1813
+ throw new Error('operation completed without a result.');
1892
1814
  }
1893
1815
  return resp;
1894
1816
  }
@@ -1910,6 +1832,60 @@ export class MarketplacesClient {
1910
1832
  }
1911
1833
  }
1912
1834
 
1835
+ /** List listings owned by this provider */
1836
+ async listListings(
1837
+ req: ListListingsRequest,
1838
+ options?: CallOptions
1839
+ ): Promise<GetListingsResponse> {
1840
+ const url = `${this.host}/api/2.0/marketplace-provider/listings`;
1841
+ const params = new URLSearchParams();
1842
+ if (req.pageToken !== undefined) {
1843
+ params.append('page_token', req.pageToken);
1844
+ }
1845
+ if (req.pageSize !== undefined) {
1846
+ params.append('page_size', String(req.pageSize));
1847
+ }
1848
+ const query = params.toString();
1849
+ const fullUrl = query !== '' ? `${url}?${query}` : url;
1850
+ let resp: GetListingsResponse | undefined;
1851
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
1852
+ const headers = new Headers();
1853
+ if (this.workspaceId !== undefined) {
1854
+ headers.set('X-Databricks-Org-Id', this.workspaceId);
1855
+ }
1856
+ headers.set('User-Agent', this.userAgent);
1857
+ const httpReq = buildHttpRequest('GET', fullUrl, headers, callSignal);
1858
+ const respBody = await executeHttpCall({
1859
+ request: httpReq,
1860
+ httpClient: this.httpClient,
1861
+ logger: this.logger,
1862
+ });
1863
+ resp = parseResponse(respBody, unmarshalGetListingsResponseSchema);
1864
+ };
1865
+ await executeCall(call, options);
1866
+ if (resp === undefined) {
1867
+ throw new Error('operation completed without a result.');
1868
+ }
1869
+ return resp;
1870
+ }
1871
+
1872
+ async *listListingsIter(
1873
+ req: ListListingsRequest,
1874
+ options?: CallOptions
1875
+ ): AsyncGenerator<Listing> {
1876
+ const pageReq: ListListingsRequest = {...req};
1877
+ for (;;) {
1878
+ const resp = await this.listListings(pageReq, options);
1879
+ for (const item of resp.listings ?? []) {
1880
+ yield item;
1881
+ }
1882
+ if (resp.nextPageToken === undefined || resp.nextPageToken === '') {
1883
+ return;
1884
+ }
1885
+ pageReq.pageToken = resp.nextPageToken;
1886
+ }
1887
+ }
1888
+
1913
1889
  /** List listings associated with an exchange */
1914
1890
  async listListingsForExchange(
1915
1891
  req: ListListingsForExchangeRequest,
@@ -1929,7 +1905,7 @@ export class MarketplacesClient {
1929
1905
  const query = params.toString();
1930
1906
  const fullUrl = query !== '' ? `${url}?${query}` : url;
1931
1907
  let resp: ListListingsForExchangeResponse | undefined;
1932
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
1908
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
1933
1909
  const headers = new Headers();
1934
1910
  if (this.workspaceId !== undefined) {
1935
1911
  headers.set('X-Databricks-Org-Id', this.workspaceId);
@@ -1948,7 +1924,7 @@ export class MarketplacesClient {
1948
1924
  };
1949
1925
  await executeCall(call, options);
1950
1926
  if (resp === undefined) {
1951
- throw new Error('API call completed without a result.');
1927
+ throw new Error('operation completed without a result.');
1952
1928
  }
1953
1929
  return resp;
1954
1930
  }
@@ -1974,10 +1950,10 @@ export class MarketplacesClient {
1974
1950
  async listProviderAnalyticsDashboard(
1975
1951
  _req: ListProviderAnalyticsDashboardRequest,
1976
1952
  options?: CallOptions
1977
- ): Promise<ListProviderAnalyticsDashboardRequest_Response> {
1953
+ ): Promise<ListProviderAnalyticsDashboardResponse> {
1978
1954
  const url = `${this.host}/api/2.0/marketplace-provider/analytics_dashboard`;
1979
- let resp: ListProviderAnalyticsDashboardRequest_Response | undefined;
1980
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
1955
+ let resp: ListProviderAnalyticsDashboardResponse | undefined;
1956
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
1981
1957
  const headers = new Headers();
1982
1958
  if (this.workspaceId !== undefined) {
1983
1959
  headers.set('X-Databricks-Org-Id', this.workspaceId);
@@ -1991,12 +1967,12 @@ export class MarketplacesClient {
1991
1967
  });
1992
1968
  resp = parseResponse(
1993
1969
  respBody,
1994
- unmarshalListProviderAnalyticsDashboardRequest_ResponseSchema
1970
+ unmarshalListProviderAnalyticsDashboardResponseSchema
1995
1971
  );
1996
1972
  };
1997
1973
  await executeCall(call, options);
1998
1974
  if (resp === undefined) {
1999
- throw new Error('API call completed without a result.');
1975
+ throw new Error('operation completed without a result.');
2000
1976
  }
2001
1977
  return resp;
2002
1978
  }
@@ -2005,7 +1981,7 @@ export class MarketplacesClient {
2005
1981
  async listProviders(
2006
1982
  req: ListProvidersRequest,
2007
1983
  options?: CallOptions
2008
- ): Promise<ListProvidersRequest_Response> {
1984
+ ): Promise<ListProvidersResponse> {
2009
1985
  const url = `${this.host}/api/2.0/marketplace-provider/providers`;
2010
1986
  const params = new URLSearchParams();
2011
1987
  if (req.pageToken !== undefined) {
@@ -2016,8 +1992,8 @@ export class MarketplacesClient {
2016
1992
  }
2017
1993
  const query = params.toString();
2018
1994
  const fullUrl = query !== '' ? `${url}?${query}` : url;
2019
- let resp: ListProvidersRequest_Response | undefined;
2020
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
1995
+ let resp: ListProvidersResponse | undefined;
1996
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
2021
1997
  const headers = new Headers();
2022
1998
  if (this.workspaceId !== undefined) {
2023
1999
  headers.set('X-Databricks-Org-Id', this.workspaceId);
@@ -2029,14 +2005,11 @@ export class MarketplacesClient {
2029
2005
  httpClient: this.httpClient,
2030
2006
  logger: this.logger,
2031
2007
  });
2032
- resp = parseResponse(
2033
- respBody,
2034
- unmarshalListProvidersRequest_ResponseSchema
2035
- );
2008
+ resp = parseResponse(respBody, unmarshalListProvidersResponseSchema);
2036
2009
  };
2037
2010
  await executeCall(call, options);
2038
2011
  if (resp === undefined) {
2039
- throw new Error('API call completed without a result.');
2012
+ throw new Error('operation completed without a result.');
2040
2013
  }
2041
2014
  return resp;
2042
2015
  }
@@ -2065,7 +2038,7 @@ export class MarketplacesClient {
2065
2038
  ): Promise<RemoveExchangeForListingResponse> {
2066
2039
  const url = `${this.host}/api/2.0/marketplace-exchange/exchanges-for-listing/${req.id ?? ''}`;
2067
2040
  let resp: RemoveExchangeForListingResponse | undefined;
2068
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
2041
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
2069
2042
  const headers = new Headers();
2070
2043
  if (this.workspaceId !== undefined) {
2071
2044
  headers.set('X-Databricks-Org-Id', this.workspaceId);
@@ -2084,7 +2057,7 @@ export class MarketplacesClient {
2084
2057
  };
2085
2058
  await executeCall(call, options);
2086
2059
  if (resp === undefined) {
2087
- throw new Error('API call completed without a result.');
2060
+ throw new Error('operation completed without a result.');
2088
2061
  }
2089
2062
  return resp;
2090
2063
  }
@@ -2097,7 +2070,7 @@ export class MarketplacesClient {
2097
2070
  const url = `${this.host}/api/2.0/marketplace-exchange/exchanges/${req.id ?? ''}`;
2098
2071
  const body = marshalRequest(req, marshalUpdateExchangeRequestSchema);
2099
2072
  let resp: UpdateExchangeResponse | undefined;
2100
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
2073
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
2101
2074
  const headers = new Headers({'Content-Type': 'application/json'});
2102
2075
  if (this.workspaceId !== undefined) {
2103
2076
  headers.set('X-Databricks-Org-Id', this.workspaceId);
@@ -2113,7 +2086,7 @@ export class MarketplacesClient {
2113
2086
  };
2114
2087
  await executeCall(call, options);
2115
2088
  if (resp === undefined) {
2116
- throw new Error('API call completed without a result.');
2089
+ throw new Error('operation completed without a result.');
2117
2090
  }
2118
2091
  return resp;
2119
2092
  }
@@ -2126,7 +2099,7 @@ export class MarketplacesClient {
2126
2099
  const url = `${this.host}/api/2.0/marketplace-exchange/filters/${req.id ?? ''}`;
2127
2100
  const body = marshalRequest(req, marshalUpdateExchangeFilterRequestSchema);
2128
2101
  let resp: UpdateExchangeFilterResponse | undefined;
2129
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
2102
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
2130
2103
  const headers = new Headers({'Content-Type': 'application/json'});
2131
2104
  if (this.workspaceId !== undefined) {
2132
2105
  headers.set('X-Databricks-Org-Id', this.workspaceId);
@@ -2145,7 +2118,7 @@ export class MarketplacesClient {
2145
2118
  };
2146
2119
  await executeCall(call, options);
2147
2120
  if (resp === undefined) {
2148
- throw new Error('API call completed without a result.');
2121
+ throw new Error('operation completed without a result.');
2149
2122
  }
2150
2123
  return resp;
2151
2124
  }
@@ -2154,11 +2127,11 @@ export class MarketplacesClient {
2154
2127
  async updateListing(
2155
2128
  req: UpdateListingRequest,
2156
2129
  options?: CallOptions
2157
- ): Promise<UpdateListingRequest_Response> {
2130
+ ): Promise<UpdateListingResponse> {
2158
2131
  const url = `${this.host}/api/2.0/marketplace-provider/listings/${req.id ?? ''}`;
2159
2132
  const body = marshalRequest(req, marshalUpdateListingRequestSchema);
2160
- let resp: UpdateListingRequest_Response | undefined;
2161
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
2133
+ let resp: UpdateListingResponse | undefined;
2134
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
2162
2135
  const headers = new Headers({'Content-Type': 'application/json'});
2163
2136
  if (this.workspaceId !== undefined) {
2164
2137
  headers.set('X-Databricks-Org-Id', this.workspaceId);
@@ -2170,14 +2143,11 @@ export class MarketplacesClient {
2170
2143
  httpClient: this.httpClient,
2171
2144
  logger: this.logger,
2172
2145
  });
2173
- resp = parseResponse(
2174
- respBody,
2175
- unmarshalUpdateListingRequest_ResponseSchema
2176
- );
2146
+ resp = parseResponse(respBody, unmarshalUpdateListingResponseSchema);
2177
2147
  };
2178
2148
  await executeCall(call, options);
2179
2149
  if (resp === undefined) {
2180
- throw new Error('API call completed without a result.');
2150
+ throw new Error('operation completed without a result.');
2181
2151
  }
2182
2152
  return resp;
2183
2153
  }
@@ -2186,14 +2156,14 @@ export class MarketplacesClient {
2186
2156
  async updatePersonalizationRequestStatus(
2187
2157
  req: UpdatePersonalizationRequestStatusRequest,
2188
2158
  options?: CallOptions
2189
- ): Promise<UpdatePersonalizationRequestStatusRequest_Response> {
2159
+ ): Promise<UpdatePersonalizationRequestStatusResponse> {
2190
2160
  const url = `${this.host}/api/2.0/marketplace-provider/listings/${req.listingId ?? ''}/personalization-requests/${req.requestId ?? ''}/request-status`;
2191
2161
  const body = marshalRequest(
2192
2162
  req,
2193
2163
  marshalUpdatePersonalizationRequestStatusRequestSchema
2194
2164
  );
2195
- let resp: UpdatePersonalizationRequestStatusRequest_Response | undefined;
2196
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
2165
+ let resp: UpdatePersonalizationRequestStatusResponse | undefined;
2166
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
2197
2167
  const headers = new Headers({'Content-Type': 'application/json'});
2198
2168
  if (this.workspaceId !== undefined) {
2199
2169
  headers.set('X-Databricks-Org-Id', this.workspaceId);
@@ -2207,12 +2177,12 @@ export class MarketplacesClient {
2207
2177
  });
2208
2178
  resp = parseResponse(
2209
2179
  respBody,
2210
- unmarshalUpdatePersonalizationRequestStatusRequest_ResponseSchema
2180
+ unmarshalUpdatePersonalizationRequestStatusResponseSchema
2211
2181
  );
2212
2182
  };
2213
2183
  await executeCall(call, options);
2214
2184
  if (resp === undefined) {
2215
- throw new Error('API call completed without a result.');
2185
+ throw new Error('operation completed without a result.');
2216
2186
  }
2217
2187
  return resp;
2218
2188
  }
@@ -2221,11 +2191,11 @@ export class MarketplacesClient {
2221
2191
  async updateProvider(
2222
2192
  req: UpdateProviderRequest,
2223
2193
  options?: CallOptions
2224
- ): Promise<UpdateProviderRequest_Response> {
2194
+ ): Promise<UpdateProviderResponse> {
2225
2195
  const url = `${this.host}/api/2.0/marketplace-provider/providers/${req.id ?? ''}`;
2226
2196
  const body = marshalRequest(req, marshalUpdateProviderRequestSchema);
2227
- let resp: UpdateProviderRequest_Response | undefined;
2228
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
2197
+ let resp: UpdateProviderResponse | undefined;
2198
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
2229
2199
  const headers = new Headers({'Content-Type': 'application/json'});
2230
2200
  if (this.workspaceId !== undefined) {
2231
2201
  headers.set('X-Databricks-Org-Id', this.workspaceId);
@@ -2237,14 +2207,11 @@ export class MarketplacesClient {
2237
2207
  httpClient: this.httpClient,
2238
2208
  logger: this.logger,
2239
2209
  });
2240
- resp = parseResponse(
2241
- respBody,
2242
- unmarshalUpdateProviderRequest_ResponseSchema
2243
- );
2210
+ resp = parseResponse(respBody, unmarshalUpdateProviderResponseSchema);
2244
2211
  };
2245
2212
  await executeCall(call, options);
2246
2213
  if (resp === undefined) {
2247
- throw new Error('API call completed without a result.');
2214
+ throw new Error('operation completed without a result.');
2248
2215
  }
2249
2216
  return resp;
2250
2217
  }
@@ -2253,14 +2220,14 @@ export class MarketplacesClient {
2253
2220
  async updateProviderAnalyticsDashboard(
2254
2221
  req: UpdateProviderAnalyticsDashboardRequest,
2255
2222
  options?: CallOptions
2256
- ): Promise<UpdateProviderAnalyticsDashboardRequest_Response> {
2223
+ ): Promise<UpdateProviderAnalyticsDashboardResponse> {
2257
2224
  const url = `${this.host}/api/2.0/marketplace-provider/analytics_dashboard/${req.id ?? ''}`;
2258
2225
  const body = marshalRequest(
2259
2226
  req,
2260
2227
  marshalUpdateProviderAnalyticsDashboardRequestSchema
2261
2228
  );
2262
- let resp: UpdateProviderAnalyticsDashboardRequest_Response | undefined;
2263
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
2229
+ let resp: UpdateProviderAnalyticsDashboardResponse | undefined;
2230
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
2264
2231
  const headers = new Headers({'Content-Type': 'application/json'});
2265
2232
  if (this.workspaceId !== undefined) {
2266
2233
  headers.set('X-Databricks-Org-Id', this.workspaceId);
@@ -2274,12 +2241,12 @@ export class MarketplacesClient {
2274
2241
  });
2275
2242
  resp = parseResponse(
2276
2243
  respBody,
2277
- unmarshalUpdateProviderAnalyticsDashboardRequest_ResponseSchema
2244
+ unmarshalUpdateProviderAnalyticsDashboardResponseSchema
2278
2245
  );
2279
2246
  };
2280
2247
  await executeCall(call, options);
2281
2248
  if (resp === undefined) {
2282
- throw new Error('API call completed without a result.');
2249
+ throw new Error('operation completed without a result.');
2283
2250
  }
2284
2251
  return resp;
2285
2252
  }