@databricks/sdk-uc-credentials 0.1.0-dev.2 → 0.1.0-dev.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/v1/model.ts CHANGED
@@ -66,8 +66,7 @@ export interface AccountsCreateStorageCredentialRequest {
66
66
  skipValidation?: boolean | undefined;
67
67
  }
68
68
 
69
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
70
- export interface AccountsCreateStorageCredentialRequest_Response {
69
+ export interface AccountsCreateStorageCredentialResponse {
71
70
  credentialInfo?: StorageCredentialInfo | undefined;
72
71
  }
73
72
 
@@ -84,8 +83,8 @@ export interface AccountsDeleteStorageCredentialRequest {
84
83
  }
85
84
 
86
85
  /** The storage credential was successfully deleted. */
87
- // eslint-disable-next-line @typescript-eslint/naming-convention, @typescript-eslint/no-empty-object-type -- Proto-style nested message name.
88
- export interface AccountsDeleteStorageCredentialRequest_Response {}
86
+ // eslint-disable-next-line @typescript-eslint/no-empty-object-type
87
+ export interface AccountsDeleteStorageCredentialResponse {}
89
88
 
90
89
  /** Retrieves a single storage credential */
91
90
  export interface AccountsGetStorageCredentialRequest {
@@ -98,8 +97,7 @@ export interface AccountsGetStorageCredentialRequest {
98
97
  }
99
98
 
100
99
  /** The storage credential was successfully retrieved. */
101
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
102
- export interface AccountsGetStorageCredentialRequest_Response {
100
+ export interface AccountsGetStorageCredentialResponse {
103
101
  credentialInfo?: StorageCredentialInfo | undefined;
104
102
  }
105
103
 
@@ -112,8 +110,7 @@ export interface AccountsListStorageCredentialsRequest {
112
110
  }
113
111
 
114
112
  /** The metastore storage credentials were successfully returned. */
115
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
116
- export interface AccountsListStorageCredentialsRequest_Response {
113
+ export interface AccountsListStorageCredentialsResponse {
117
114
  /** An array of metastore storage credentials. */
118
115
  storageCredentials?: StorageCredentialInfo[] | undefined;
119
116
  }
@@ -132,8 +129,7 @@ export interface AccountsUpdateStorageCredentialRequest {
132
129
  }
133
130
 
134
131
  /** The storage credential was successfully updated. */
135
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
136
- export interface AccountsUpdateStorageCredentialRequest_Response {
132
+ export interface AccountsUpdateStorageCredentialResponse {
137
133
  credentialInfo?: StorageCredentialInfo | undefined;
138
134
  }
139
135
 
@@ -572,8 +568,8 @@ export interface DeleteCredentialRequest {
572
568
  force?: boolean | undefined;
573
569
  }
574
570
 
575
- // eslint-disable-next-line @typescript-eslint/naming-convention, @typescript-eslint/no-empty-object-type -- Proto-style nested message name.
576
- export interface DeleteCredentialRequest_Response {}
571
+ // eslint-disable-next-line @typescript-eslint/no-empty-object-type
572
+ export interface DeleteCredentialResponse {}
577
573
 
578
574
  export interface DeleteCredentialsRequest {
579
575
  /** Databricks Account API credential configuration ID */
@@ -592,8 +588,8 @@ export interface DeleteStorageCredentialRequest {
592
588
  force?: boolean | undefined;
593
589
  }
594
590
 
595
- // eslint-disable-next-line @typescript-eslint/naming-convention, @typescript-eslint/no-empty-object-type -- Proto-style nested message name.
596
- export interface DeleteStorageCredentialRequest_Response {}
591
+ // eslint-disable-next-line @typescript-eslint/no-empty-object-type
592
+ export interface DeleteStorageCredentialResponse {}
597
593
 
598
594
  /**
599
595
  * GCP temporary credentials for API authentication.
@@ -629,8 +625,7 @@ export interface GenerateTemporaryPathCredentialRequest {
629
625
  dryRun?: boolean | undefined;
630
626
  }
631
627
 
632
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
633
- export interface GenerateTemporaryPathCredentialRequest_Response {
628
+ export interface GenerateTemporaryPathCredentialResponse {
634
629
  /** The temporary credential. */
635
630
  credentials?:
636
631
  | {$case: 'awsTempCredentials'; awsTempCredentials: TemporaryAwsCredentials}
@@ -697,8 +692,7 @@ export interface GenerateTemporaryTableCredentialRequest {
697
692
  operation?: TableOperation | undefined;
698
693
  }
699
694
 
700
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
701
- export interface GenerateTemporaryTableCredentialRequest_Response {
695
+ export interface GenerateTemporaryTableCredentialResponse {
702
696
  /** The temporary credential. */
703
697
  credentials?:
704
698
  | {$case: 'awsTempCredentials'; awsTempCredentials: TemporaryAwsCredentials}
@@ -730,8 +724,7 @@ export interface GenerateTemporaryVolumeCredentialRequest {
730
724
  operation?: VolumeOperation | undefined;
731
725
  }
732
726
 
733
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
734
- export interface GenerateTemporaryVolumeCredentialRequest_Response {
727
+ export interface GenerateTemporaryVolumeCredentialResponse {
735
728
  /** The temporary credential. */
736
729
  credentials?:
737
730
  | {$case: 'awsTempCredentials'; awsTempCredentials: TemporaryAwsCredentials}
@@ -842,8 +835,7 @@ export interface ListStorageCredentialsRequest {
842
835
  pageToken?: string | undefined;
843
836
  }
844
837
 
845
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
846
- export interface ListStorageCredentialsRequest_Response {
838
+ export interface ListStorageCredentialsResponse {
847
839
  storageCredentials?: StorageCredentialInfo[] | undefined;
848
840
  /**
849
841
  * Opaque token to retrieve the next page of results. Absent if there are no
@@ -1262,7 +1254,14 @@ export interface ValidateCredentialRequest {
1262
1254
  }
1263
1255
 
1264
1256
  // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1265
- export interface ValidateCredentialRequest_Response {
1257
+ export interface ValidateCredentialRequest_ValidationResult {
1258
+ /** The results of the tested operation. */
1259
+ result?: ValidateCredentialRequest_Result | undefined;
1260
+ /** Error message would exist when the result does not equal to **PASS**. */
1261
+ message?: string | undefined;
1262
+ }
1263
+
1264
+ export interface ValidateCredentialResponse {
1266
1265
  /** The results of the validation check. */
1267
1266
  results?: ValidateCredentialRequest_ValidationResult[] | undefined;
1268
1267
  /**
@@ -1272,14 +1271,6 @@ export interface ValidateCredentialRequest_Response {
1272
1271
  isDir?: boolean | undefined;
1273
1272
  }
1274
1273
 
1275
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1276
- export interface ValidateCredentialRequest_ValidationResult {
1277
- /** The results of the tested operation. */
1278
- result?: ValidateCredentialRequest_Result | undefined;
1279
- /** Error message would exist when the result does not equal to **PASS**. */
1280
- message?: string | undefined;
1281
- }
1282
-
1283
1274
  export interface ValidateStorageCredentialRequest {
1284
1275
  credential?:
1285
1276
  | {
@@ -1324,14 +1315,6 @@ export interface ValidateStorageCredentialRequest {
1324
1315
  readOnly?: boolean | undefined;
1325
1316
  }
1326
1317
 
1327
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1328
- export interface ValidateStorageCredentialRequest_Response {
1329
- /** Whether the tested location is a directory in cloud storage. */
1330
- isDir?: boolean | undefined;
1331
- /** The results of the validation check. */
1332
- results?: ValidateStorageCredentialRequest_ValidationResult[] | undefined;
1333
- }
1334
-
1335
1318
  // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1336
1319
  export interface ValidateStorageCredentialRequest_ValidationResult {
1337
1320
  /** The operation tested. */
@@ -1342,8 +1325,14 @@ export interface ValidateStorageCredentialRequest_ValidationResult {
1342
1325
  message?: string | undefined;
1343
1326
  }
1344
1327
 
1345
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1346
- export const unmarshalAccountsCreateStorageCredentialRequest_ResponseSchema: z.ZodType<AccountsCreateStorageCredentialRequest_Response> =
1328
+ export interface ValidateStorageCredentialResponse {
1329
+ /** Whether the tested location is a directory in cloud storage. */
1330
+ isDir?: boolean | undefined;
1331
+ /** The results of the validation check. */
1332
+ results?: ValidateStorageCredentialRequest_ValidationResult[] | undefined;
1333
+ }
1334
+
1335
+ export const unmarshalAccountsCreateStorageCredentialResponseSchema: z.ZodType<AccountsCreateStorageCredentialResponse> =
1347
1336
  z
1348
1337
  .object({
1349
1338
  credential_info: z
@@ -1354,12 +1343,10 @@ export const unmarshalAccountsCreateStorageCredentialRequest_ResponseSchema: z.Z
1354
1343
  credentialInfo: d.credential_info,
1355
1344
  }));
1356
1345
 
1357
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1358
- export const unmarshalAccountsDeleteStorageCredentialRequest_ResponseSchema: z.ZodType<AccountsDeleteStorageCredentialRequest_Response> =
1346
+ export const unmarshalAccountsDeleteStorageCredentialResponseSchema: z.ZodType<AccountsDeleteStorageCredentialResponse> =
1359
1347
  z.object({});
1360
1348
 
1361
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1362
- export const unmarshalAccountsGetStorageCredentialRequest_ResponseSchema: z.ZodType<AccountsGetStorageCredentialRequest_Response> =
1349
+ export const unmarshalAccountsGetStorageCredentialResponseSchema: z.ZodType<AccountsGetStorageCredentialResponse> =
1363
1350
  z
1364
1351
  .object({
1365
1352
  credential_info: z
@@ -1370,8 +1357,7 @@ export const unmarshalAccountsGetStorageCredentialRequest_ResponseSchema: z.ZodT
1370
1357
  credentialInfo: d.credential_info,
1371
1358
  }));
1372
1359
 
1373
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1374
- export const unmarshalAccountsListStorageCredentialsRequest_ResponseSchema: z.ZodType<AccountsListStorageCredentialsRequest_Response> =
1360
+ export const unmarshalAccountsListStorageCredentialsResponseSchema: z.ZodType<AccountsListStorageCredentialsResponse> =
1375
1361
  z
1376
1362
  .object({
1377
1363
  storage_credentials: z
@@ -1382,8 +1368,7 @@ export const unmarshalAccountsListStorageCredentialsRequest_ResponseSchema: z.Zo
1382
1368
  storageCredentials: d.storage_credentials,
1383
1369
  }));
1384
1370
 
1385
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1386
- export const unmarshalAccountsUpdateStorageCredentialRequest_ResponseSchema: z.ZodType<AccountsUpdateStorageCredentialRequest_Response> =
1371
+ export const unmarshalAccountsUpdateStorageCredentialResponseSchema: z.ZodType<AccountsUpdateStorageCredentialResponse> =
1387
1372
  z
1388
1373
  .object({
1389
1374
  credential_info: z
@@ -1603,12 +1588,10 @@ export const unmarshalDatabricksGcpServiceAccountSchema: z.ZodType<DatabricksGcp
1603
1588
  credentialId: d.credential_id,
1604
1589
  }));
1605
1590
 
1606
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1607
- export const unmarshalDeleteCredentialRequest_ResponseSchema: z.ZodType<DeleteCredentialRequest_Response> =
1591
+ export const unmarshalDeleteCredentialResponseSchema: z.ZodType<DeleteCredentialResponse> =
1608
1592
  z.object({});
1609
1593
 
1610
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1611
- export const unmarshalDeleteStorageCredentialRequest_ResponseSchema: z.ZodType<DeleteStorageCredentialRequest_Response> =
1594
+ export const unmarshalDeleteStorageCredentialResponseSchema: z.ZodType<DeleteStorageCredentialResponse> =
1612
1595
  z.object({});
1613
1596
 
1614
1597
  export const unmarshalGcpOauthTokenSchema: z.ZodType<GcpOauthToken> = z
@@ -1632,8 +1615,7 @@ export const unmarshalGcpServiceAccountKeySchema: z.ZodType<GcpServiceAccountKey
1632
1615
  privateKey: d.private_key,
1633
1616
  }));
1634
1617
 
1635
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1636
- export const unmarshalGenerateTemporaryPathCredentialRequest_ResponseSchema: z.ZodType<GenerateTemporaryPathCredentialRequest_Response> =
1618
+ export const unmarshalGenerateTemporaryPathCredentialResponseSchema: z.ZodType<GenerateTemporaryPathCredentialResponse> =
1637
1619
  z
1638
1620
  .object({
1639
1621
  aws_temp_credentials: z
@@ -1684,8 +1666,7 @@ export const unmarshalGenerateTemporaryPathCredentialRequest_ResponseSchema: z.Z
1684
1666
  url: d.url,
1685
1667
  }));
1686
1668
 
1687
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1688
- export const unmarshalGenerateTemporaryTableCredentialRequest_ResponseSchema: z.ZodType<GenerateTemporaryTableCredentialRequest_Response> =
1669
+ export const unmarshalGenerateTemporaryTableCredentialResponseSchema: z.ZodType<GenerateTemporaryTableCredentialResponse> =
1689
1670
  z
1690
1671
  .object({
1691
1672
  aws_temp_credentials: z
@@ -1736,8 +1717,7 @@ export const unmarshalGenerateTemporaryTableCredentialRequest_ResponseSchema: z.
1736
1717
  url: d.url,
1737
1718
  }));
1738
1719
 
1739
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1740
- export const unmarshalGenerateTemporaryVolumeCredentialRequest_ResponseSchema: z.ZodType<GenerateTemporaryVolumeCredentialRequest_Response> =
1720
+ export const unmarshalGenerateTemporaryVolumeCredentialResponseSchema: z.ZodType<GenerateTemporaryVolumeCredentialResponse> =
1741
1721
  z
1742
1722
  .object({
1743
1723
  aws_temp_credentials: z
@@ -1802,8 +1782,7 @@ export const unmarshalListCredentialsRequest_ResponseSchema: z.ZodType<ListCrede
1802
1782
  nextPageToken: d.next_page_token,
1803
1783
  }));
1804
1784
 
1805
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1806
- export const unmarshalListStorageCredentialsRequest_ResponseSchema: z.ZodType<ListStorageCredentialsRequest_Response> =
1785
+ export const unmarshalListStorageCredentialsResponseSchema: z.ZodType<ListStorageCredentialsResponse> =
1807
1786
  z
1808
1787
  .object({
1809
1788
  storage_credentials: z
@@ -1980,7 +1959,18 @@ export const unmarshalTemporaryCredentialsSchema: z.ZodType<TemporaryCredentials
1980
1959
  }));
1981
1960
 
1982
1961
  // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1983
- export const unmarshalValidateCredentialRequest_ResponseSchema: z.ZodType<ValidateCredentialRequest_Response> =
1962
+ export const unmarshalValidateCredentialRequest_ValidationResultSchema: z.ZodType<ValidateCredentialRequest_ValidationResult> =
1963
+ z
1964
+ .object({
1965
+ result: z.enum(ValidateCredentialRequest_Result).optional(),
1966
+ message: z.string().optional(),
1967
+ })
1968
+ .transform(d => ({
1969
+ result: d.result,
1970
+ message: d.message,
1971
+ }));
1972
+
1973
+ export const unmarshalValidateCredentialResponseSchema: z.ZodType<ValidateCredentialResponse> =
1984
1974
  z
1985
1975
  .object({
1986
1976
  results: z
@@ -1998,19 +1988,22 @@ export const unmarshalValidateCredentialRequest_ResponseSchema: z.ZodType<Valida
1998
1988
  }));
1999
1989
 
2000
1990
  // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
2001
- export const unmarshalValidateCredentialRequest_ValidationResultSchema: z.ZodType<ValidateCredentialRequest_ValidationResult> =
1991
+ export const unmarshalValidateStorageCredentialRequest_ValidationResultSchema: z.ZodType<ValidateStorageCredentialRequest_ValidationResult> =
2002
1992
  z
2003
1993
  .object({
2004
- result: z.enum(ValidateCredentialRequest_Result).optional(),
1994
+ operation: z
1995
+ .enum(ValidateStorageCredentialRequest_FileOperation)
1996
+ .optional(),
1997
+ result: z.enum(ValidateStorageCredentialRequest_Result).optional(),
2005
1998
  message: z.string().optional(),
2006
1999
  })
2007
2000
  .transform(d => ({
2001
+ operation: d.operation,
2008
2002
  result: d.result,
2009
2003
  message: d.message,
2010
2004
  }));
2011
2005
 
2012
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
2013
- export const unmarshalValidateStorageCredentialRequest_ResponseSchema: z.ZodType<ValidateStorageCredentialRequest_Response> =
2006
+ export const unmarshalValidateStorageCredentialResponseSchema: z.ZodType<ValidateStorageCredentialResponse> =
2014
2007
  z
2015
2008
  .object({
2016
2009
  isDir: z.boolean().optional(),
@@ -2028,22 +2021,6 @@ export const unmarshalValidateStorageCredentialRequest_ResponseSchema: z.ZodType
2028
2021
  results: d.results,
2029
2022
  }));
2030
2023
 
2031
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
2032
- export const unmarshalValidateStorageCredentialRequest_ValidationResultSchema: z.ZodType<ValidateStorageCredentialRequest_ValidationResult> =
2033
- z
2034
- .object({
2035
- operation: z
2036
- .enum(ValidateStorageCredentialRequest_FileOperation)
2037
- .optional(),
2038
- result: z.enum(ValidateStorageCredentialRequest_Result).optional(),
2039
- message: z.string().optional(),
2040
- })
2041
- .transform(d => ({
2042
- operation: d.operation,
2043
- result: d.result,
2044
- message: d.message,
2045
- }));
2046
-
2047
2024
  export const marshalAccountsCreateStorageCredentialRequestSchema: z.ZodType = z
2048
2025
  .object({
2049
2026
  accountId: z.string().optional(),