You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| Host URL | URL of the DSMS instance to connect. |`AnyUrl`| Not Applicable |`host_url`| Required |`DSMS_HOST_URL`|
12
-
| Request timeout | Timeout in seconds until the request to the DSMS is timed out. |`int`|`120`|`request_timeout`| Optional |`DSMS_REQUEST_TIMEOUT`|
13
-
| SSL verify | Whether the SSL of the DSMS shall be verified during connection. |`bool`|`True`|`ssl_verify`| Optional |`DSMS_SSL_VERIFY`|
14
12
| Username | User name for connecting to the DSMS instance |`Optional[SecretStr]`|`None`|`username`| Optional |`DSMS_USERNAME`|
13
+
| Client ID | If a service account is used to authenticate, this will proviode the Client ID in Keycloak |`Optional[SecretStr]`|`None`|`client_id`| Optional |`DSMS_CLIENT_ID`, `KEYCLOAK_DSMS_CLIENT_ID` or `KEYCLOAK_CLIENT_ID`|
14
+
| Client Secret | If a service account is used to authenticate, this will proviode the Client Secret in Keycloak |`Optional[SecretStr]`|`None`|`client_secret`| Optional |`DSMS_CLIENT_SECRET`, `KEYCLOAK_DSMS_CLIENT_SECRET` or `KEYCLOAK_CLIENT_SECRET`|
15
15
| Password | Password for connecting to the DSMS instance |`Optional[SecretStr]`|`None`|`password`| Optional |`DSMS_PASSWORD`|
16
16
| Token | JWT bearer token for connecting to the DSMS instance |`Optional[SecretStr]`|`None`|`token`| Optional |`DSMS_TOKEN`|
17
17
| Ping Backend | Check whether the host is a DSMS instance or not. |`bool`|`True`|`ping_backend`| Optional |`DSMS_PING_BACKEND`|
18
18
| Auto fetch KTypes | Whether the KTypes of the DSMS should be fetched automatically when the session is started. They will be fetched if requested and cached in memory. |`bool`|`True`|`auto_fetch_ktypes`| Optional |`DSMS_AUTO_FETCH_KTYPES`|
19
+
| Request timeout | Timeout in seconds until the request to the DSMS is timed out. |`int`|`120`|`request_timeout`| Optional |`DSMS_REQUEST_TIMEOUT`|
20
+
| SSL verify | Whether the SSL of the DSMS shall be verified during connection. |`bool`|`True`|`ssl_verify`| Optional |`DSMS_SSL_VERIFY`|
19
21
| Auto refresh | Determines whether local objects like KItem, KType, and AppConfig should automatically update with the latest backend data after a successful commit. |`bool`|`True`|`auto_refresh`| Optional |`DSMS_AUTO_REFRESH`|
20
22
| Always refetch KTypes | Whether the KTypes of the DSMS should be refetched every time used in the SDK. This can be helpful if the SDK is integrated in a service and the KTypes are updated.<br><br>**WARNING**: This might lead to performance issues. |`bool`|`False`|`always_refetch_ktypes`| Optional |`DSMS_ALWAYS_REFETCH_KTYPES`|
21
23
| Strict validation | Whether the validation of custom properties shall be strict. Disabling this might be helpful when, for example, the schema of a KType has been changed and the custom properties are not compatible anymore and should be updated accordingly. |`bool`|`True`|`strict_validation`| Optional |`DSMS_STRICT_VALIDATION`|
@@ -32,6 +34,19 @@ This section describes the configuration properties for the DSMS Python SDK.
32
34
| Hide properties | Properties to hide while printing, e.g `{'external_links'}`|`Set[str]`|`{}`|`hide_properties`| Optional |`DSMS_HIDE_PROPERTIES`|
When multiple authentication methods are provided:
42
+
43
+
* Service account credentials (`client_id` + `client_secret`) always take precedence over user credentials (`username` + `password`)
44
+
* If any authentication credentials are provided alongside a token, the original `token` value will be overwritten with a new token obtained during the authentication process
45
+
46
+
Summary: Service account → User credentials → Direct token (in order of priority)
Copy file name to clipboardExpand all lines: docs/dsms_sdk/dsms_kitem_schema.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ The schema contains complex types and references, indicating an advanced usage s
19
19
| Updated At | Timestamp of when the KItem was updated. | Union[string, datetime]|`None`|`updated_at`| Automatically generated |
20
20
| Avatar | The avatar of the KItem. | Union[[Avatar](#avatar-fields), Dict[str, Any]]|`None`|`avatar`| Optional |
21
21
| Avatar Exists | Whether the KItem holds an avatar or not. | boolean |`False`|`avatar_exists`| Automatically generated |
22
-
| KItemCustomPropertiesModel(#kitemcustompropertiesmodel) | A set of custom properties related to the KItem. | Any |`None`|`custom_properties`| Optional |
22
+
|[KItemCustomPropertiesModel](#kitemcustompropertiesmodel)| A set of custom properties related to the KItem. | Any |`None`|`custom_properties`| Optional |
23
23
| Summary | A brief human-readable summary of the KItem | string |`None`|`summary`| Optional |
24
24
| Apps | A list of applications associated with the KItem | List[[App](#app-fields)]|`[ ]`|`apps`| Optional |
25
25
| Annotations | A list of annotations related to the KItem | List[[Annotation](#annotation-fields)]|`[ ]`|`annotations`| Optional |
@@ -160,6 +161,10 @@ You need to authenticate yourself to connect with dsms using the `dsms-sdk` Pyth
160
161
DSMS_TOKEN= {YOUR_COPIED_TOKEN}
161
162
```
162
163
164
+
```{important}
165
+
Please also note the [priority rules for authentication](dsms_config_schema.md#authentication-priority-rules).
166
+
```
167
+
163
168
Now you are ready to use dsms-sdk. Do check out the tutorials section to try out some basic examples on how to use dsms-sdk.
164
169
165
170
The next sections covers about the schema of fundamental classes crucial for users to know about DSMS when using the platform. Below given explains about the Schema of `KItem`and its associated properties inDSMS.
0 commit comments