REST Resource: deltasharing.v1.projects.catalogs

資源:DeltaSharingCatalog

代表 DeltaSharing 目錄。

JSON 表示法
{
  "name": string,
  "location": string,
  "createTime": string,
  "updateTime": string,
  "serviceAccount": string,
  "refreshOptions": {
    object (RefreshOptions)
  },
  "refreshStatus": {
    object (RefreshStatus)
  },
  "federatedCatalogOptions": {
    object (FederatedCatalogOptions)
  },

  // Union field config can be only one of the following:
  "sapConfig": {
    object (SapConfig)
  }
  // End of list of possible types for union field config.
}
欄位
name

string

ID。資源名稱。格式:projects/{project}/catalogs/{catalog}

location

string

這是必要旗標,不可變動。使用者提供的 Google Cloud 目錄位置。這個欄位無法變更。

createTime

string (Timestamp format)

僅供輸出。目錄的建立時間。

使用 RFC 3339,產生的輸出內容一律會經過 Z 正規化,並使用 0、3、6 或 9 個小數位數,也接受「Z」以外的偏移量。範例:"2014-10-02T15:01:23Z""2014-10-02T15:01:23.045123456Z""2014-10-02T15:01:23+05:30"

updateTime

string (Timestamp format)

僅供輸出。目錄的上次修改時間。

使用 RFC 3339,產生的輸出內容一律會經過 Z 正規化,並使用 0、3、6 或 9 個小數位數,也接受「Z」以外的偏移量。範例:"2014-10-02T15:01:23Z""2014-10-02T15:01:23.045123456Z""2014-10-02T15:01:23+05:30"

serviceAccount

string

僅供輸出。用於 SAP 註冊的服務帳戶,是在建立 Delta Sharing 目錄資源時一併建立。

refreshOptions

object (RefreshOptions)

選用。設定重新整理 Delta Sharing 目錄的選項。

refreshStatus

object (RefreshStatus)

僅供輸出。背景目錄重新整理的狀態。

federatedCatalogOptions

object (FederatedCatalogOptions)

選用。聯合目錄的設定選項。

聯集欄位 config。目錄的設定。必須設定一個欄位,決定目錄類型。config 只能是下列其中一個設定:
sapConfig

object (SapConfig)

選用。目錄的設定,可連線至 SAP Business Data Cloud (BDC)。

SapConfig

SAP Business Data Cloud (BDC) 的設定。

JSON 表示法
{
  "sapBdcEnrollmentConfig": {
    object (SapBdcEnrollmentConfig)
  },
  "sapRegion": string
}
欄位
sapBdcEnrollmentConfig

object (SapBdcEnrollmentConfig)

選用。如要建立連結至 SAP BDC 的目錄資源,請按照下列 3 個步驟操作。Google Cloud et SapConfig to empty. 這會建立含有 GCP 服務帳戶的目錄資源:serviceAccount。2. 在 SAP BDC 執行個體上使用這個 serviceAccount,按照註冊程序建立 BDC 連接器。您會收到 SAP 寄來的 connectorEndpointinvitationCode。3. 使用 SAP 提供的這些額外欄位,透過 SapBdcEnrollmentConfig 更新先前建立的 BigLake 目錄資源。SapBdcEnrollmentConfig 一經設定就無法變更。

sapRegion

string

選用。不可變動。用於 SAP BDC API 的 Google Cloud 區域。如果目錄的中繼資料儲存在多區域 (例如「us」),但實體 SAP BDC 執行個體位於單一區域 (例如「us-central1」),則必須明確設定這個欄位,指向該單一區域。如未設定,系統預設會使用建立目錄時提供的位置。

SapBdcEnrollmentConfig

包含從 SAP 收到的註冊設定。

JSON 表示法
{
  "connectorEndpoint": string,
  "invitationCode": string,
  "invitationUrl": string,
  "federatedIdentityIssuer": string
}
欄位
connectorEndpoint

string

選用。專屬的 SAP BDC 連接器端點。

invitationCode

string

選用。SAP 提供的邀請碼。

invitationUrl

string

選用。包含端點和代碼的合併邀請網址。

federatedIdentityIssuer

string

僅供輸出。Lakehouse 支援與 SAP BDC 共用資料產品。啟用共用功能後,SAP BDC 會透過聯合身分存取基礎資源。這個欄位表示同盟身分識別的簽發者。

具體來說,身分集區和提供者應按照下列方式建立:

$ gcloud iam workload-identity-pools create sap-bdc-pool \ --location="global" \ --display-name="SAP BDC Pool"

$ gcloud iam workload-identity-pools providers create-oidc sap-bdc-provider \ --location="global" \ --workload-identity-pool="sap-bdc-pool" \ --issuer-uri=""

然後,應將集區新增至共用資源的 IAM 政策,讓 SAP BDC 可以存取這些資源:

$ gcloud projects add-iam-policy-binding PROJECT_ID \ --role="roles/biglake.viewer" \ --member="principal://iam.googleapis.com/projects/{PROJECT_NUMBER}/locations/global/workloadIdentityPools/sap-bdc-pool/subject/{TENANT_UUID}"

... 其中 TENANT_UUID 可在 SAP BDC 執行個體中找到。

RefreshOptions

設定重新整理 Delta Sharing 目錄的選項。

JSON 表示法
{
  "refreshSchedule": {
    object (RefreshSchedule)
  }
}
欄位
refreshSchedule

object (RefreshSchedule)

選用。定義是否應排定中繼資料重新整理作業,以及排定的時間。

RefreshSchedule

定義是否應排定中繼資料重新整理作業,以及排定的時間。

JSON 表示法
{
  "refreshInterval": string
}
欄位
refreshInterval

string (Duration format)

選用。從遠端目錄重新整理中繼資料的時間間隔。如未設定,但您希望重新整理,系統會使用預設值。

時間長度以秒為單位,最多可有 9 個小數位數,並應以「s」結尾,例如:"3.5s"

RefreshStatus

遠端目錄背景重新整理狀態。

JSON 表示法
{
  "startTime": string,
  "endTime": string,
  "status": {
    object (Status)
  }
}
欄位
startTime

string (Timestamp format)

僅供輸出。目錄重新整理作業的開始時間,包括正在進行的重新整理作業。

使用 RFC 3339,產生的輸出內容一律會經過 Z 正規化,並使用 0、3、6 或 9 個小數位數,也接受「Z」以外的偏移量。範例:"2014-10-02T15:01:23Z""2014-10-02T15:01:23.045123456Z""2014-10-02T15:01:23+05:30"

endTime

string (Timestamp format)

僅供輸出。目錄重新整理作業結束後,請取消設定進行中的重新整理作業。

使用 RFC 3339,產生的輸出內容一律會經過 Z 正規化,並使用 0、3、6 或 9 個小數位數,也接受「Z」以外的偏移量。範例:"2014-10-02T15:01:23Z""2014-10-02T15:01:23.045123456Z""2014-10-02T15:01:23+05:30"

status

object (Status)

僅供輸出。上次背景重新整理作業的狀態,如果重新整理作業正在進行中,則不會設定這個屬性。

FederatedCatalogOptions

聯合目錄的設定選項。

JSON 表示法
{
  "serviceDirectoryName": string
}
欄位
serviceDirectoryName

string

選用。Service Directory 資源名稱,用於透過 Cross-Cloud Interconnect 的私人網路連線轉送流量,格式為 projects/{projectId}/locations/{locationId}/namespaces/{namespace_id}/services/{serviceId}

方法

create

建立新的 DeltaSharing 目錄。

delete

刪除資源名稱指定的現有 DeltaSharing 目錄。

get

取得資源名稱指定的目錄。

list

列出指定專案中的所有 DeltaSharing 目錄。

patch

更新現有的 DeltaSharing 目錄。