|
| 1 | +# yaml-language-server: $schema=../../../component-metadata-schema.json |
| 2 | +schemaVersion: v1 |
| 3 | +type: state |
| 4 | +name: gcp.firestore |
| 5 | +version: v1 |
| 6 | +status: stable |
| 7 | +title: "GCP Firestore" |
| 8 | +urls: |
| 9 | + - title: Reference |
| 10 | + url: https://docs.dapr.io/reference/components-reference/supported-state-stores/setup-firestore/ |
| 11 | +authenticationProfiles: |
| 12 | + - title: "Service Account Authentication" |
| 13 | + description: "Authenticate using a GCP service account JSON key." |
| 14 | + metadata: |
| 15 | + - name: project_id |
| 16 | + type: string |
| 17 | + required: true |
| 18 | + description: The GCP project ID. |
| 19 | + example: "my-project" |
| 20 | + - name: private_key_id |
| 21 | + type: string |
| 22 | + required: true |
| 23 | + description: The private key ID from the service account JSON. |
| 24 | + example: "abc123def456" |
| 25 | + - name: private_key |
| 26 | + type: string |
| 27 | + required: true |
| 28 | + description: The private key from the service account JSON. |
| 29 | + example: | |
| 30 | + -----BEGIN PRIVATE KEY----- |
| 31 | + XXX |
| 32 | + -----END PRIVATE KEY----- |
| 33 | + - name: client_email |
| 34 | + type: string |
| 35 | + required: true |
| 36 | + description: The client email from the service account JSON. |
| 37 | + |
| 38 | + - name: client_id |
| 39 | + type: string |
| 40 | + required: true |
| 41 | + description: The client ID from the service account JSON. |
| 42 | + example: "123456789012345678901" |
| 43 | + - name: auth_uri |
| 44 | + type: string |
| 45 | + required: true |
| 46 | + description: The authentication URI from the service account JSON. |
| 47 | + example: "https://accounts.google.com/o/oauth2/auth" |
| 48 | + - name: token_uri |
| 49 | + type: string |
| 50 | + required: true |
| 51 | + description: The token URI from the service account JSON. |
| 52 | + example: "https://oauth2.googleapis.com/token" |
| 53 | + - name: auth_provider_x509_cert_url |
| 54 | + type: string |
| 55 | + required: true |
| 56 | + description: The auth provider certificate URL from the service account JSON. |
| 57 | + example: "https://www.googleapis.com/oauth2/v1/certs" |
| 58 | + - name: client_x509_cert_url |
| 59 | + type: string |
| 60 | + required: true |
| 61 | + description: The client certificate URL from the service account JSON. |
| 62 | + example: "https://www.googleapis.com/robot/v1/metadata/x509/firestore%40my-project.iam.gserviceaccount.com" |
| 63 | + - title: "Implicit Credentials" |
| 64 | + description: "Authenticate using implicit credentials (Application Default Credentials) for local development." |
| 65 | + metadata: |
| 66 | + - name: project_id |
| 67 | + type: string |
| 68 | + required: true |
| 69 | + description: The GCP project ID. |
| 70 | + example: "my-project" |
| 71 | + - name: endpoint |
| 72 | + type: string |
| 73 | + required: false |
| 74 | + description: The Firestore endpoint URL (for custom endpoints or emulator). |
| 75 | + example: "https://firestore.googleapis.com" |
| 76 | +metadata: |
| 77 | + - name: entity_kind |
| 78 | + type: string |
| 79 | + required: false |
| 80 | + description: The entity kind (collection name) for storing state data. |
| 81 | + example: "dapr-state" |
| 82 | + default: "DaprState" |
| 83 | + - name: type |
| 84 | + type: string |
| 85 | + required: false |
| 86 | + description: The type of service account. |
| 87 | + example: "service_account" |
| 88 | + - name: connectionEndpoint |
| 89 | + type: string |
| 90 | + required: false |
| 91 | + description: The Firestore connection endpoint. |
| 92 | + example: "https://firestore.googleapis.com" |
| 93 | + - name: noIndex |
| 94 | + type: bool |
| 95 | + required: false |
| 96 | + description: Whether to disable indexing for the entity. |
| 97 | + example: false |
| 98 | + default: false |
0 commit comments