@@ -1168,8 +1168,8 @@ class ViewUpdate(BaseModel):
11681168 ]
11691169
11701170
1171- class Credentials (BaseModel ):
1172- __root__ : Union [ADLSCredentials , GCSCredentials , S3Credentials ] = Field (
1171+ class Credential (BaseModel ):
1172+ __root__ : Union [ADLSCredential , GCSCredential , S3Credential ] = Field (
11731173 ..., discriminator = 'type'
11741174 )
11751175
@@ -1203,8 +1203,8 @@ class LoadTableResult(BaseModel):
12031203
12041204 ## Credentials
12051205
1206- Credentials for ADLS / GCS / S3 are provided through the `credentials` field. Clients should first check whether the
1207- respective credentials exist in the `credentials` field before checking the `config` for credentials.
1206+ Credentials for ADLS / GCS / S3 are provided through the `storage- credentials` field. Clients should first check whether the
1207+ respective credentials exist in the `storage- credentials` field before checking the `config` for credentials.
12081208
12091209 """
12101210
@@ -1214,7 +1214,9 @@ class LoadTableResult(BaseModel):
12141214 description = 'May be null if the table is staged as part of a transaction' ,
12151215 )
12161216 metadata : TableMetadata
1217- credentials : Optional [Credentials ] = None
1217+ storage_credentials : Optional [List [Credential ]] = Field (
1218+ None , alias = 'storage-credentials'
1219+ )
12181220 config : Optional [Dict [str , str ]] = None
12191221
12201222
@@ -1325,14 +1327,16 @@ class LoadViewResult(BaseModel):
13251327
13261328 ## Credentials
13271329
1328- Credentials for ADLS / GCS / S3 are provided through the `credentials` field. Clients should first check whether the
1329- respective credentials exist in the `credentials` field before checking the `config` for credentials.
1330+ Credentials for ADLS / GCS / S3 are provided through the `storage- credentials` field. Clients should first check whether the
1331+ respective credentials exist in the `storage- credentials` field before checking the `config` for credentials.
13301332
13311333 """
13321334
13331335 metadata_location : str = Field (..., alias = 'metadata-location' )
13341336 metadata : ViewMetadata
1335- credentials : Optional [Credentials ] = None
1337+ storage_credentials : Optional [List [Credential ]] = Field (
1338+ None , alias = 'storage-credentials'
1339+ )
13361340 config : Optional [Dict [str , str ]] = None
13371341
13381342
@@ -1416,35 +1420,38 @@ class Schema(StructType):
14161420 )
14171421
14181422
1419- class ADLSCredentials (BaseModel ):
1423+ class ADLSCredential (BaseModel ):
14201424 type : Literal ['adls' ]
1425+ scheme : str
14211426 sas_token : str = Field (..., alias = 'sas-token' )
14221427 expires_at_ms : int = Field (
14231428 ...,
14241429 alias = 'expires-at-ms' ,
1425- description = 'The epoch millis at which the given token expires' ,
1430+ description = 'The epoch millis since 1970-01-01T00:00:00Z at which the given token expires' ,
14261431 )
14271432
14281433
1429- class GCSCredentials (BaseModel ):
1434+ class GCSCredential (BaseModel ):
14301435 type : Literal ['gcs' ]
1436+ scheme : str
14311437 token : str
14321438 expires_at_ms : int = Field (
14331439 ...,
14341440 alias = 'expires-at-ms' ,
1435- description = 'The epoch millis at which the given token expires' ,
1441+ description = 'The epoch millis since 1970-01-01T00:00:00Z at which the given token expires' ,
14361442 )
14371443
14381444
1439- class S3Credentials (BaseModel ):
1445+ class S3Credential (BaseModel ):
14401446 type : Literal ['s3' ]
1447+ scheme : str
14411448 access_key_id : str = Field (..., alias = 'access-key-id' )
14421449 secret_access_key : str = Field (..., alias = 'secret-access-key' )
14431450 session_token : str = Field (..., alias = 'session-token' )
14441451 expires_at_ms : int = Field (
14451452 ...,
14461453 alias = 'expires-at-ms' ,
1447- description = 'The epoch millis at which the given token expires' ,
1454+ description = 'The epoch millis since 1970-01-01T00:00:00Z at which the given token expires' ,
14481455 )
14491456
14501457
@@ -1480,16 +1487,16 @@ class CompletedPlanningWithIDResult(CompletedPlanningResult):
14801487TableMetadata .update_forward_refs ()
14811488ViewMetadata .update_forward_refs ()
14821489AddSchemaUpdate .update_forward_refs ()
1483- Credentials .update_forward_refs ()
1490+ Credential .update_forward_refs ()
14841491ScanTasks .update_forward_refs ()
14851492FetchPlanningResult .update_forward_refs ()
14861493PlanTableScanResult .update_forward_refs ()
14871494CreateTableRequest .update_forward_refs ()
14881495CreateViewRequest .update_forward_refs ()
14891496ReportMetricsRequest .update_forward_refs ()
1490- ADLSCredentials .update_forward_refs ()
1491- GCSCredentials .update_forward_refs ()
1492- S3Credentials .update_forward_refs ()
1497+ ADLSCredential .update_forward_refs ()
1498+ GCSCredential .update_forward_refs ()
1499+ S3Credential .update_forward_refs ()
14931500CompletedPlanningResult .update_forward_refs ()
14941501FetchScanTasksResult .update_forward_refs ()
14951502CompletedPlanningWithIDResult .update_forward_refs ()
0 commit comments