@databricks/sdk-warehouses 0.1.0-dev.2 → 0.1.0-dev.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/v1/model.ts CHANGED
@@ -811,8 +811,7 @@ export interface CreateWarehouseRequest {
811
811
  warehouseType?: WarehouseType | undefined;
812
812
  }
813
813
 
814
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
815
- export interface CreateWarehouseRequest_Response {
814
+ export interface CreateWarehouseResponse {
816
815
  /**
817
816
  * Id for the SQL warehouse.
818
817
  * This value is unique across all SQL warehouses.
@@ -853,6 +852,9 @@ export interface DeleteDefaultWarehouseOverrideRequest {
853
852
  name?: string | undefined;
854
853
  }
855
854
 
855
+ // eslint-disable-next-line @typescript-eslint/no-empty-object-type
856
+ export interface DeleteWarehouseResponse {}
857
+
856
858
  /**
857
859
  * This is an incremental edit functionality, so all fields except id are optional. If a field is set, the corresponding
858
860
  * configuration in the SQL warehouse is modified. If a field is unset, the existing configuration value in the SQL
@@ -955,8 +957,8 @@ export interface EditWarehouseRequest {
955
957
  warehouseType?: WarehouseType | undefined;
956
958
  }
957
959
 
958
- // eslint-disable-next-line @typescript-eslint/naming-convention, @typescript-eslint/no-empty-object-type -- Proto-style nested message name.
959
- export interface EditWarehouseRequest_Response {}
960
+ // eslint-disable-next-line @typescript-eslint/no-empty-object-type
961
+ export interface EditWarehouseResponse {}
960
962
 
961
963
  export interface EndpointConfPair {
962
964
  key?: string | undefined;
@@ -1110,8 +1112,7 @@ export interface GetWarehouseRequest {
1110
1112
  id?: string | undefined;
1111
1113
  }
1112
1114
 
1113
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1114
- export interface GetWarehouseRequest_Response {
1115
+ export interface GetWarehouseResponse {
1115
1116
  /** unique identifier for warehouse */
1116
1117
  id?: string | undefined;
1117
1118
  /**
@@ -1227,8 +1228,7 @@ export interface GetWarehouseRequest_Response {
1227
1228
  // eslint-disable-next-line @typescript-eslint/no-empty-object-type
1228
1229
  export interface GetWorkspaceWarehouseConfigRequest {}
1229
1230
 
1230
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1231
- export interface GetWorkspaceWarehouseConfigRequest_Response {
1231
+ export interface GetWorkspaceWarehouseConfigResponse {
1232
1232
  /** Security policy for warehouses */
1233
1233
  securityPolicy?: EndpointSecurityPolicy | undefined;
1234
1234
  /**
@@ -1299,6 +1299,16 @@ export interface ListDefaultWarehouseOverridesResponse {
1299
1299
  nextPageToken?: string | undefined;
1300
1300
  }
1301
1301
 
1302
+ export interface ListWarehousesResponse {
1303
+ /** A list of warehouses and their configurations. */
1304
+ warehouses?: EndpointInfo[] | undefined;
1305
+ /**
1306
+ * A token, which can be sent as `page_token` to retrieve the next page.
1307
+ * If this field is omitted, there are no subsequent pages.
1308
+ */
1309
+ nextPageToken?: string | undefined;
1310
+ }
1311
+
1302
1312
  export interface OdbcParams {
1303
1313
  hostname?: string | undefined;
1304
1314
  path?: string | undefined;
@@ -1358,8 +1368,14 @@ export interface SetWorkspaceWarehouseConfigRequest {
1358
1368
  enabledWarehouseTypes?: WarehouseTypePair[] | undefined;
1359
1369
  }
1360
1370
 
1361
- // eslint-disable-next-line @typescript-eslint/naming-convention, @typescript-eslint/no-empty-object-type -- Proto-style nested message name.
1362
- export interface SetWorkspaceWarehouseConfigRequest_Response {}
1371
+ // eslint-disable-next-line @typescript-eslint/no-empty-object-type
1372
+ export interface SetWorkspaceWarehouseConfigResponse {}
1373
+
1374
+ // eslint-disable-next-line @typescript-eslint/no-empty-object-type
1375
+ export interface StartResponse {}
1376
+
1377
+ // eslint-disable-next-line @typescript-eslint/no-empty-object-type
1378
+ export interface StopResponse {}
1363
1379
 
1364
1380
  export interface TerminationReason {
1365
1381
  /** status code indicating why the cluster was terminated */
@@ -1422,9 +1438,6 @@ export interface DeleteWarehouseRequest {
1422
1438
  id?: string | undefined;
1423
1439
  }
1424
1440
 
1425
- // eslint-disable-next-line @typescript-eslint/naming-convention, @typescript-eslint/no-empty-object-type -- Proto-style nested message name.
1426
- export interface DeleteWarehouseRequest_Response {}
1427
-
1428
1441
  /**
1429
1442
  * Lists all of the SQL warehouses.
1430
1443
  * TODO: consider paginating to limit the number of warehouses returned.
@@ -1449,17 +1462,6 @@ export interface ListWarehousesRequest {
1449
1462
  pageToken?: string | undefined;
1450
1463
  }
1451
1464
 
1452
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1453
- export interface ListWarehousesRequest_Response {
1454
- /** A list of warehouses and their configurations. */
1455
- warehouses?: EndpointInfo[] | undefined;
1456
- /**
1457
- * A token, which can be sent as `page_token` to retrieve the next page.
1458
- * If this field is omitted, there are no subsequent pages.
1459
- */
1460
- nextPageToken?: string | undefined;
1461
- }
1462
-
1463
1465
  /**
1464
1466
  * Starts a SQL warehouse.
1465
1467
  * This API is idempotent.
@@ -1469,9 +1471,6 @@ export interface StartRequest {
1469
1471
  id?: string | undefined;
1470
1472
  }
1471
1473
 
1472
- // eslint-disable-next-line @typescript-eslint/naming-convention, @typescript-eslint/no-empty-object-type -- Proto-style nested message name.
1473
- export interface StartRequest_Response {}
1474
-
1475
1474
  /**
1476
1475
  * Stops a SQL warehouse.
1477
1476
  * This API is idempotent.
@@ -1481,9 +1480,6 @@ export interface StopRequest {
1481
1480
  id?: string | undefined;
1482
1481
  }
1483
1482
 
1484
- // eslint-disable-next-line @typescript-eslint/naming-convention, @typescript-eslint/no-empty-object-type -- Proto-style nested message name.
1485
- export interface StopRequest_Response {}
1486
-
1487
1483
  export const unmarshalChannelSchema: z.ZodType<Channel> = z
1488
1484
  .object({
1489
1485
  name: z.enum(ChannelName).optional(),
@@ -1494,8 +1490,7 @@ export const unmarshalChannelSchema: z.ZodType<Channel> = z
1494
1490
  dbsqlVersion: d.dbsql_version,
1495
1491
  }));
1496
1492
 
1497
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1498
- export const unmarshalCreateWarehouseRequest_ResponseSchema: z.ZodType<CreateWarehouseRequest_Response> =
1493
+ export const unmarshalCreateWarehouseResponseSchema: z.ZodType<CreateWarehouseResponse> =
1499
1494
  z
1500
1495
  .object({
1501
1496
  id: z.string().optional(),
@@ -1519,8 +1514,10 @@ export const unmarshalDefaultWarehouseOverrideSchema: z.ZodType<DefaultWarehouse
1519
1514
  warehouseId: d.warehouse_id,
1520
1515
  }));
1521
1516
 
1522
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1523
- export const unmarshalEditWarehouseRequest_ResponseSchema: z.ZodType<EditWarehouseRequest_Response> =
1517
+ export const unmarshalDeleteWarehouseResponseSchema: z.ZodType<DeleteWarehouseResponse> =
1518
+ z.object({});
1519
+
1520
+ export const unmarshalEditWarehouseResponseSchema: z.ZodType<EditWarehouseResponse> =
1524
1521
  z.object({});
1525
1522
 
1526
1523
  export const unmarshalEndpointConfPairSchema: z.ZodType<EndpointConfPair> = z
@@ -1618,8 +1615,7 @@ export const unmarshalEndpointTagsSchema: z.ZodType<EndpointTags> = z
1618
1615
  customTags: d.custom_tags,
1619
1616
  }));
1620
1617
 
1621
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1622
- export const unmarshalGetWarehouseRequest_ResponseSchema: z.ZodType<GetWarehouseRequest_Response> =
1618
+ export const unmarshalGetWarehouseResponseSchema: z.ZodType<GetWarehouseResponse> =
1623
1619
  z
1624
1620
  .object({
1625
1621
  id: z.string().optional(),
@@ -1669,8 +1665,7 @@ export const unmarshalGetWarehouseRequest_ResponseSchema: z.ZodType<GetWarehouse
1669
1665
  health: d.health,
1670
1666
  }));
1671
1667
 
1672
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1673
- export const unmarshalGetWorkspaceWarehouseConfigRequest_ResponseSchema: z.ZodType<GetWorkspaceWarehouseConfigRequest_Response> =
1668
+ export const unmarshalGetWorkspaceWarehouseConfigResponseSchema: z.ZodType<GetWorkspaceWarehouseConfigResponse> =
1674
1669
  z
1675
1670
  .object({
1676
1671
  security_policy: z.enum(EndpointSecurityPolicy).optional(),
@@ -1720,6 +1715,17 @@ export const unmarshalListDefaultWarehouseOverridesResponseSchema: z.ZodType<Lis
1720
1715
  nextPageToken: d.next_page_token,
1721
1716
  }));
1722
1717
 
1718
+ export const unmarshalListWarehousesResponseSchema: z.ZodType<ListWarehousesResponse> =
1719
+ z
1720
+ .object({
1721
+ warehouses: z.array(z.lazy(() => unmarshalEndpointInfoSchema)).optional(),
1722
+ next_page_token: z.string().optional(),
1723
+ })
1724
+ .transform(d => ({
1725
+ warehouses: d.warehouses,
1726
+ nextPageToken: d.next_page_token,
1727
+ }));
1728
+
1723
1729
  export const unmarshalOdbcParamsSchema: z.ZodType<OdbcParams> = z
1724
1730
  .object({
1725
1731
  hostname: z.string().optional(),
@@ -1749,10 +1755,17 @@ export const unmarshalRepeatedEndpointConfPairsSchema: z.ZodType<RepeatedEndpoin
1749
1755
  configurationPairs: d.configuration_pairs,
1750
1756
  }));
1751
1757
 
1752
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1753
- export const unmarshalSetWorkspaceWarehouseConfigRequest_ResponseSchema: z.ZodType<SetWorkspaceWarehouseConfigRequest_Response> =
1758
+ export const unmarshalSetWorkspaceWarehouseConfigResponseSchema: z.ZodType<SetWorkspaceWarehouseConfigResponse> =
1754
1759
  z.object({});
1755
1760
 
1761
+ export const unmarshalStartResponseSchema: z.ZodType<StartResponse> = z.object(
1762
+ {}
1763
+ );
1764
+
1765
+ export const unmarshalStopResponseSchema: z.ZodType<StopResponse> = z.object(
1766
+ {}
1767
+ );
1768
+
1756
1769
  export const unmarshalTerminationReasonSchema: z.ZodType<TerminationReason> = z
1757
1770
  .object({
1758
1771
  code: z.enum(TerminationCode).optional(),
@@ -1775,30 +1788,6 @@ export const unmarshalWarehouseTypePairSchema: z.ZodType<WarehouseTypePair> = z
1775
1788
  enabled: d.enabled,
1776
1789
  }));
1777
1790
 
1778
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1779
- export const unmarshalDeleteWarehouseRequest_ResponseSchema: z.ZodType<DeleteWarehouseRequest_Response> =
1780
- z.object({});
1781
-
1782
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1783
- export const unmarshalListWarehousesRequest_ResponseSchema: z.ZodType<ListWarehousesRequest_Response> =
1784
- z
1785
- .object({
1786
- warehouses: z.array(z.lazy(() => unmarshalEndpointInfoSchema)).optional(),
1787
- next_page_token: z.string().optional(),
1788
- })
1789
- .transform(d => ({
1790
- warehouses: d.warehouses,
1791
- nextPageToken: d.next_page_token,
1792
- }));
1793
-
1794
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1795
- export const unmarshalStartRequest_ResponseSchema: z.ZodType<StartRequest_Response> =
1796
- z.object({});
1797
-
1798
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1799
- export const unmarshalStopRequest_ResponseSchema: z.ZodType<StopRequest_Response> =
1800
- z.object({});
1801
-
1802
1791
  export const marshalChannelSchema: z.ZodType = z
1803
1792
  .object({
1804
1793
  name: z.enum(ChannelName).optional(),