logo
logo
  • Interface IMClient

    Client for the Marketing Content Hub.

    Namespace: Stylelabs.M.Sdk
    Assembly: Stylelabs.M.Sdk.dll
    Syntax
    public interface IMClient

    Properties

    Assets

    Contains functionality for asset operations.

    Declaration
    IAssetsClient Assets { get; }
    Property Value
    Type Description
    IAssetsClient

    Commands

    Contains functionality to execute commands in M.

    Declaration
    ICommandsClient Commands { get; }
    Property Value
    Type Description
    ICommandsClient

    Cultures

    Allows fetching culture information from M.

    Declaration
    ICultureClient Cultures { get; }
    Property Value
    Type Description
    ICultureClient

    DataSourceFactory

    Contains functionality to create IDataSources.

    Declaration
    IDataSourceFactory DataSourceFactory { get; }
    Property Value
    Type Description
    IDataSourceFactory

    DataSources

    Contains functionality to query, create and manipulate IDataSources.

    Declaration
    IDataSourcesClient DataSources { get; }
    Property Value
    Type Description
    IDataSourcesClient

    Entities

    Contains functionality to query, create and manipulate IEntity instances.

    Declaration
    IEntitiesClient Entities { get; }
    Property Value
    Type Description
    IEntitiesClient

    EntityDefinitions

    Contains functionality to query, create and manipulate IEntityDefinitions.

    Declaration
    IEntityDefinitionsClient EntityDefinitions { get; }
    Property Value
    Type Description
    IEntityDefinitionsClient

    EntityFactory

    Contains functionality to create IEntity instances.

    Declaration
    IEntityFactory EntityFactory { get; }
    Property Value
    Type Description
    IEntityFactory

    Jobs

    Contains functionality to create jobs.

    Declaration
    IJobsclient Jobs { get; }
    Property Value
    Type Description
    IJobsclient

    Logger

    Contains functionality to log messages.

    Declaration
    ILogger Logger { get; set; }
    Property Value
    Type Description
    ILogger

    Notifications

    Contains functionality to manage and send notifications.

    Declaration
    INotificationsClient Notifications { get; }
    Property Value
    Type Description
    INotificationsClient

    Permissions

    Contains functionality to get entity permissions.

    Declaration
    IPermissionsClient Permissions { get; }
    Property Value
    Type Description
    IPermissionsClient

    Policies

    Contains functionality to get and update IPolicy objects.

    Declaration
    IPoliciesClient Policies { get; }
    Property Value
    Type Description
    IPoliciesClient

    Querying

    Contains functionality to query and scroll for IEntity.

    Declaration
    IQueryingClient Querying { get; }
    Property Value
    Type Description
    IQueryingClient

    Scripts

    Contains functionality to execute scripts.

    Declaration
    IScriptsClient Scripts { get; }
    Property Value
    Type Description
    IScriptsClient

    Settings

    Contains functionality to get setting entities.

    Declaration
    ISettingsClient Settings { get; }
    Property Value
    Type Description
    ISettingsClient

    TypedEntityFactory

    Contains functionality to create typed IEntity instances.

    Declaration
    ITypedEntityFactory TypedEntityFactory { get; }
    Property Value
    Type Description
    ITypedEntityFactory

    Users

    Contains functionality to get and interact with user entities.

    Declaration
    IUsersClient Users { get; }
    Property Value
    Type Description
    IUsersClient

    Methods

    ImpersonateAsync(String)

    Creates a new IMClient that acts on behalf of the user with the specified username. The current logger will be copied to the new client.

    Declaration
    Task<IMClient> ImpersonateAsync(string username)
    Parameters
    Type Name Description
    System.String username

    The username of the user to impersonate.

    Returns
    Type Description
    Task<IMClient>

    A new client bound to specified user.

    Exceptions
    Type Condition
    ForbiddenException

    When the current user is not allowed to impersonate other users.

    Can we improve this article ? Provide feedback