Interface IDataSourcesClient
このページの翻訳はAIによって自動的に行われました。可能な限り正確な翻訳を心掛けていますが、原文と異なる表現や解釈が含まれる場合があります。正確で公式な情報については、必ず英語の原文をご参照ください。
Provides functionality to query, create and manipulate datasources.
Namespace: Stylelabs.M.Sdk.Clients
Assembly: Stylelabs.M.Sdk.dll
Syntax
Methods
CreateAsync(IDataSource)
Creates a new datasource.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| IDataSource | dataSource |
The datasource to create. |
Returns
| Type | Description |
|---|---|
| Task |
A representing the asynchronous operation. |
Exceptions
| Type | Condition |
|---|---|
| ValidationException |
Thrown when the datasource could not be created because it is not valid. Common cases:
|
| ForbiddenException |
Thrown when the user is not allowed to create datasources. |
DeleteAsync(String)
Deletes the datasource with the specified name.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name |
The name of the datasource to delete (case insensitive). |
Returns
| Type | Description |
|---|---|
| Task |
A representing the asynchronous operation. |
Exceptions
| Type | Condition |
|---|---|
| ForbiddenException |
Thrown when the user is not allowed to delete the datasource. |
| ValidationException |
Thrown when the datasource could not be deleted because a validation error occurred. Common case: the datasource is being used in one or more EntityDefinitions. |
GetAllAsync()
Gets the names of all datasources that exist in the M.
Declaration
Returns
| Type | Description |
|---|---|
| Task<IList<System.String>> |
The names of all datasources that exist in M. |
GetAsync(String)
Gets the datasource with the specified name.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name |
The name of the datasource to get (case insensitive). |
Returns
| Type | Description |
|---|---|
| Task<IDataSource> |
The datasource with the specified |
UpdateAsync(IDataSource)
Updates a datasource.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| IDataSource | dataSource |
The datasource to update. |
Returns
| Type | Description |
|---|---|
| Task |
A representing the asynchronous operation. |
Exceptions
| Type | Condition |
|---|---|
| ValidationException |
Thrown when the datasource could not be created because it is not valid. Common cases:
|
| ForbiddenException |
Thrown when the user is not allowed to update datasources. |
| NotFoundException |
Thrown when the datasource with the specified name could not be found. |