import { EnterpriseBadge, IconSpark } from "@humansignal/ui";
|
import { Alert, AlertTitle, AlertDescription } from "@humansignal/shad/components/ui/alert";
|
import { IconCloudProviderGCS } from "@humansignal/icons";
|
import type { ProviderConfig } from "@humansignal/app-common/blocks/StorageProviderForm/types/provider";
|
|
const gcsWifProvider: ProviderConfig = {
|
name: "gcswif",
|
title: "Google 云存储\n(WIF 认证)",
|
description:
|
"配置您的 Google 云存储连接,使用工作负载身份联盟认证(仅代理模式)",
|
icon: IconCloudProviderGCS,
|
disabled: true,
|
badge: <EnterpriseBadge />,
|
fields: [
|
{
|
name: "enterprise_info",
|
type: "message",
|
content: (
|
<Alert variant="gradient">
|
<IconSpark />
|
<AlertTitle>Enterprise Feature</AlertTitle>
|
<AlertDescription>
|
Google Cloud Storage with Workload Identity Federation is available in Label Studio Enterprise.{" "}
|
<a
|
href="https://docs.humansignal.com/guide/storage.html#Google-Cloud-Storage-with-Workload-Identity-Federation-WIF"
|
target="_blank"
|
rel="noopener noreferrer"
|
className="underline hover:no-underline"
|
>
|
Learn more
|
</a>
|
</AlertDescription>
|
</Alert>
|
),
|
},
|
],
|
layout: [{ fields: ["enterprise_info"] }],
|
};
|
|
export default gcsWifProvider;
|