Skip to content

Commit c637fc5

Browse files
Updating baton config schema and capabilities.
1 parent a429b0d commit c637fc5

File tree

2 files changed

+178
-0
lines changed

2 files changed

+178
-0
lines changed

baton_capabilities.json

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
{
2+
"@type": "type.googleapis.com/c1.connector.v2.ConnectorCapabilities",
3+
"resourceTypeCapabilities": [
4+
{
5+
"resourceType": {
6+
"id": "group",
7+
"displayName": "Group",
8+
"traits": [
9+
"TRAIT_GROUP"
10+
]
11+
},
12+
"capabilities": [
13+
"CAPABILITY_SYNC",
14+
"CAPABILITY_PROVISION"
15+
]
16+
},
17+
{
18+
"resourceType": {
19+
"id": "license",
20+
"displayName": "License",
21+
"traits": [
22+
"TRAIT_ROLE"
23+
]
24+
},
25+
"capabilities": [
26+
"CAPABILITY_SYNC",
27+
"CAPABILITY_PROVISION"
28+
]
29+
},
30+
{
31+
"resourceType": {
32+
"id": "site",
33+
"displayName": "Site"
34+
},
35+
"capabilities": [
36+
"CAPABILITY_SYNC",
37+
"CAPABILITY_PROVISION"
38+
]
39+
},
40+
{
41+
"resourceType": {
42+
"id": "user",
43+
"displayName": "User",
44+
"traits": [
45+
"TRAIT_USER"
46+
],
47+
"annotations": [
48+
{
49+
"@type": "type.googleapis.com/c1.connector.v2.SkipEntitlementsAndGrants"
50+
}
51+
]
52+
},
53+
"capabilities": [
54+
"CAPABILITY_SYNC",
55+
"CAPABILITY_ACCOUNT_PROVISIONING",
56+
"CAPABILITY_RESOURCE_DELETE"
57+
]
58+
}
59+
],
60+
"connectorCapabilities": [
61+
"CAPABILITY_PROVISION",
62+
"CAPABILITY_SYNC",
63+
"CAPABILITY_ACCOUNT_PROVISIONING",
64+
"CAPABILITY_RESOURCE_DELETE"
65+
],
66+
"credentialDetails": {
67+
"capabilityAccountProvisioning": {
68+
"supportedCredentialOptions": [
69+
"CAPABILITY_DETAIL_CREDENTIAL_OPTION_NO_PASSWORD",
70+
"CAPABILITY_DETAIL_CREDENTIAL_OPTION_RANDOM_PASSWORD"
71+
],
72+
"preferredCredentialOption": "CAPABILITY_DETAIL_CREDENTIAL_OPTION_NO_PASSWORD"
73+
}
74+
}
75+
}

config_schema.json

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
{
2+
"fields": [
3+
{
4+
"name": "access-token-name",
5+
"displayName": "Access Token Name",
6+
"description": "Access token name used to connect to the Tableau API",
7+
"isRequired": true,
8+
"stringField": {
9+
"rules": {
10+
"isRequired": true
11+
}
12+
}
13+
},
14+
{
15+
"name": "access-token-secret",
16+
"displayName": "Access Token Secret",
17+
"description": "Access token secret used to connect to the Tableau API",
18+
"isRequired": true,
19+
"isSecret": true,
20+
"stringField": {
21+
"rules": {
22+
"isRequired": true
23+
}
24+
}
25+
},
26+
{
27+
"name": "api-version",
28+
"displayName": "API Version",
29+
"description": "API version of your Tableau Server or Tableau Cloud instance",
30+
"stringField": {}
31+
},
32+
{
33+
"name": "log-level",
34+
"description": "The log level: debug, info, warn, error",
35+
"isOps": true,
36+
"stringField": {
37+
"defaultValue": "info"
38+
}
39+
},
40+
{
41+
"name": "log-level-debug-expires-at",
42+
"description": "The timestamp indicating when debug-level logging should expire",
43+
"isOps": true,
44+
"stringField": {}
45+
},
46+
{
47+
"name": "otel-collector-endpoint",
48+
"description": "The endpoint of the OpenTelemetry collector to send observability data to (used for both tracing and logging if specific endpoints are not provided)",
49+
"isOps": true,
50+
"stringField": {}
51+
},
52+
{
53+
"name": "otel-collector-endpoint-tls-cert",
54+
"description": "A PEM-encoded certificate to use as a CA for TLS connections to the OpenTelemetry collector",
55+
"isOps": true,
56+
"stringField": {}
57+
},
58+
{
59+
"name": "otel-collector-endpoint-tls-cert-path",
60+
"description": "Path to a file containing a PEM-encoded certificate to use as a CA for TLS connections to the OpenTelemetry collector",
61+
"isOps": true,
62+
"stringField": {}
63+
},
64+
{
65+
"name": "otel-collector-endpoint-tls-insecure",
66+
"description": "Allow insecure connections to the OpenTelemetry collector",
67+
"isOps": true,
68+
"boolField": {}
69+
},
70+
{
71+
"name": "otel-logging-disabled",
72+
"description": "Disable OpenTelemetry logging",
73+
"isOps": true,
74+
"boolField": {}
75+
},
76+
{
77+
"name": "otel-tracing-disabled",
78+
"description": "Disable OpenTelemetry tracing",
79+
"isOps": true,
80+
"boolField": {}
81+
},
82+
{
83+
"name": "server-path",
84+
"displayName": "Server Path",
85+
"description": "Base URL of your Tableau Server or Tableau Cloud instance",
86+
"isRequired": true,
87+
"stringField": {
88+
"rules": {
89+
"isRequired": true
90+
}
91+
}
92+
},
93+
{
94+
"name": "site-id",
95+
"displayName": "Site ID",
96+
"description": "On Tableau Server, this is referred to as Site ID. On Tableau Cloud",
97+
"stringField": {}
98+
}
99+
],
100+
"displayName": "Tableau",
101+
"helpUrl": "/docs/baton/tableau",
102+
"iconUrl": "/static/app-icons/tableau.svg"
103+
}

0 commit comments

Comments
 (0)