Zum Hauptinhalt springen

AssetServicesClient

Namespace: Meshmakers.Octo.Sdk.ServiceClient.AssetRepositoryServices.System

Implementation of the client proxy for asset services on system level.

public class AssetServicesClient : ServiceClient, IServiceClient, IAssetServicesClient

Inheritance Object → ServiceClient → AssetServicesClient
Implements IServiceClient, IAssetServicesClient

Properties​

Files​

public IFilesClient Files { get; }

Property Value​

IFilesClient

Options​

Returns the options for configuration of the client proxy.

public ServiceClientOptions Options { get; }

Property Value​

ServiceClientOptions

AccessToken​

public IServiceClientAccessToken AccessToken { get; }

Property Value​

IServiceClientAccessToken

ServiceUri​

public Uri ServiceUri { get; }

Property Value​

Uri

Constructors​

AssetServicesClient(IOptions<AssetServiceClientOptions>, IAssetServiceClientAccessToken)​

Constructor.

public AssetServicesClient(IOptions<AssetServiceClientOptions> serviceClientOptions, IAssetServiceClientAccessToken assetAccessToken)

Parameters​

serviceClientOptions IOptions<AssetServiceClientOptions>
Options for configuration of the client proxy.

assetAccessToken IAssetServiceClientAccessToken
The access token management object

AssetServicesClient(AssetServiceClientOptions, IAssetServiceClientAccessToken)​

Constructor.

public AssetServicesClient(AssetServiceClientOptions serviceClientOptions, IAssetServiceClientAccessToken assetAccessToken)

Parameters​

serviceClientOptions AssetServiceClientOptions
Options for configuration of the client proxy.

assetAccessToken IAssetServiceClientAccessToken
The access token management object

AssetServicesClient(IOptions<AssetServiceClientOptions>, IAssetServiceClientAccessToken, ITenantTokenProvider)​

Constructor with a provider that exchanges the token for a tenant other than the one it was issued for.

public AssetServicesClient(IOptions<AssetServiceClientOptions> serviceClientOptions, IAssetServiceClientAccessToken assetAccessToken, ITenantTokenProvider tenantTokenProvider)

Parameters​

serviceClientOptions IOptions<AssetServiceClientOptions>
Options for configuration of the client proxy.

assetAccessToken IAssetServiceClientAccessToken
The access token management object

tenantTokenProvider ITenantTokenProvider
Exchanges the access token for a token of the addressed tenant. Without it, a call that addresses another tenant than the token was issued for fails instead of sending the token.

AssetServicesClient(AssetServiceClientOptions, IAssetServiceClientAccessToken, ITenantTokenProvider)​

Constructor with a provider that exchanges the token for a tenant other than the one it was issued for.

public AssetServicesClient(AssetServiceClientOptions serviceClientOptions, IAssetServiceClientAccessToken assetAccessToken, ITenantTokenProvider tenantTokenProvider)

Parameters​

serviceClientOptions AssetServiceClientOptions
Options for configuration of the client proxy.

assetAccessToken IAssetServiceClientAccessToken
The access token management object

tenantTokenProvider ITenantTokenProvider
See the constructor with .

Methods​

GetImportJobStatusAsync(String)​

public Task<JobDto> GetImportJobStatusAsync(string id)

Parameters​

id String

Returns​

Task<JobDto>

ImportCkModelAsync(String, String)​

public Task<string> ImportCkModelAsync(string tenantId, string ckModelFilePath)

Parameters​

tenantId String

ckModelFilePath String

Returns​

Task<String>

ImportCkModelAsync(String, String, Boolean)​

public Task<string> ImportCkModelAsync(string tenantId, string ckModelFilePath, bool forceBreakingUpdate)

Parameters​

tenantId String

ckModelFilePath String

forceBreakingUpdate Boolean

Returns​

Task<String>

ImportRtModelAsync(String, ImportStrategyDto, String)​

public Task<string> ImportRtModelAsync(string tenantId, ImportStrategyDto importStrategy, string rtModelFilePath)

Parameters​

tenantId String

importStrategy ImportStrategyDto

rtModelFilePath String

Returns​

Task<String>

ExportRtModelByQueryAsync(String, OctoObjectId)​

public Task<string> ExportRtModelByQueryAsync(string tenantId, OctoObjectId queryId)

Parameters​

tenantId String

queryId OctoObjectId

Returns​

Task<String>

ExportRtModelByDeepGraphAsync(String, IEnumerable<OctoObjectId>, RtCkId<CkTypeId>, IEnumerable<DeepGraphFollowSpecDto>)​

public Task<string> ExportRtModelByDeepGraphAsync(string tenantId, IEnumerable<OctoObjectId> originRtIds, RtCkId<CkTypeId> originCkTypeId, IEnumerable<DeepGraphFollowSpecDto> followSpecs)

Parameters​

tenantId String

originRtIds IEnumerable<OctoObjectId>

originCkTypeId RtCkId<CkTypeId>

followSpecs IEnumerable<DeepGraphFollowSpecDto>

Returns​

Task<String>

CleanTenantAsync(String)​

public Task CleanTenantAsync(string childTenantId)

Parameters​

childTenantId String

Returns​

Task

UpdateSystemCkModelOfTenant(String)​

public Task UpdateSystemCkModelOfTenant(string childTenantId)

Parameters​

childTenantId String

Returns​

Task

ClearTenantCacheAsync(String)​

public Task ClearTenantCacheAsync(string childTenantId)

Parameters​

childTenantId String

Returns​

Task

RecomputeTenantDisplayNamesAsync(String, String)​

public Task<IReadOnlyList<string>> RecomputeTenantDisplayNamesAsync(string childTenantId, string ckTypeId)

Parameters​

childTenantId String

ckTypeId String

Returns​

Task<IReadOnlyList<String>>

GetTenantDescendantsAsync()​

public Task<IEnumerable<TenantDto>> GetTenantDescendantsAsync()

Returns​

Task<IEnumerable<TenantDto>>

GetTenantsAsync()​

public Task<IEnumerable<TenantDto>> GetTenantsAsync()

Returns​

Task<IEnumerable<TenantDto>>

GetAllTenantsAsync()​

public Task<IEnumerable<TenantDto>> GetAllTenantsAsync()

Returns​

Task<IEnumerable<TenantDto>>

CreateTenantAsync(String, String)​

public Task CreateTenantAsync(string childTenantId, string databaseName)

Parameters​

childTenantId String

databaseName String

Returns​

Task

CreateTenantAsync(String, String, Boolean)​

public Task CreateTenantAsync(string childTenantId, string databaseName, bool scratch)

Parameters​

childTenantId String

databaseName String

scratch Boolean

Returns​

Task

CreateTenantAsync(String, String, Boolean, String)​

public Task CreateTenantAsync(string childTenantId, string databaseName, bool scratch, string blueprintId)

Parameters​

childTenantId String

databaseName String

scratch Boolean

blueprintId String

Returns​

Task

AttachTenantAsync(String, String)​

public Task AttachTenantAsync(string childTenantId, string databaseName)

Parameters​

childTenantId String

databaseName String

Returns​

Task

DetachTenantAsync(String)​

public Task DetachTenantAsync(string childTenantId)

Parameters​

childTenantId String

Returns​

Task

DeleteTenantAsync(String)​

public Task DeleteTenantAsync(string childTenantId)

Parameters​

childTenantId String

Returns​

Task

DeleteTenantAsync(String, Boolean)​

public Task DeleteTenantAsync(string childTenantId, bool overrideForeignOwnership)

Parameters​

childTenantId String

overrideForeignOwnership Boolean

Returns​

Task

GetTenantLifecycleAsync(String)​

public Task<TenantLifecycleDto> GetTenantLifecycleAsync(string childTenantId)

Parameters​

childTenantId String

Returns​

Task<TenantLifecycleDto>

ReRunTenantSetupAsync(String)​

public Task<TenantLifecycleDto> ReRunTenantSetupAsync(string childTenantId)

Parameters​

childTenantId String

Returns​

Task<TenantLifecycleDto>

GetTenantFeaturesStatusAsync()​

public Task<TenantFeaturesStatusDto> GetTenantFeaturesStatusAsync()

Returns​

Task<TenantFeaturesStatusDto>

ReconcileTenantRegistryAsync(Boolean)​

public Task<TenantRegistryReconcileReportDto> ReconcileTenantRegistryAsync(bool apply)

Parameters​

apply Boolean

Returns​

Task<TenantRegistryReconcileReportDto>

ReviewTenantOwnershipAsync(Boolean)​

public Task<TenantOwnershipReviewReportDto> ReviewTenantOwnershipAsync(bool stamp)

Parameters​

stamp Boolean

Returns​

Task<TenantOwnershipReviewReportDto>

ReconfigureLogLevelAsync(String, LogLevelDto, LogLevelDto)​

public Task ReconfigureLogLevelAsync(string loggerName, LogLevelDto minLogLevel, LogLevelDto maxLogLevel)

Parameters​

loggerName String

minLogLevel LogLevelDto

maxLogLevel LogLevelDto

Returns​

Task

BuildServiceUri()​

protected Uri BuildServiceUri()

Returns​

Uri

SendGraphQlAsync(String, String, String, String, CancellationToken)​

public Task<GraphQlRawResponse> SendGraphQlAsync(string tenantId, string query, string variablesJson, string operationName, CancellationToken cancellationToken)

Parameters​

tenantId String

query String

variablesJson String

operationName String

cancellationToken CancellationToken

Returns​

Task<GraphQlRawResponse>

GetCkModelCatalogsAsync()​

public Task<List<CkModelCatalogDto>> GetCkModelCatalogsAsync()

Returns​

Task<List<CkModelCatalogDto>>

ListCkModelCatalogModelsAsync(String, String, Int32, Int32)​

public Task<CkModelCatalogListResponseDto> ListCkModelCatalogModelsAsync(string catalogName, string searchTerm, int skip, int take)

Parameters​

catalogName String

searchTerm String

skip Int32

take Int32

Returns​

Task<CkModelCatalogListResponseDto>

RefreshCkModelCatalogsAsync(String)​

public Task RefreshCkModelCatalogsAsync(string catalogName)

Parameters​

catalogName String

Returns​

Task

GetLibraryStatusAsync(String)​

public Task<CkModelLibraryStatusResponseDto> GetLibraryStatusAsync(string tenantId)

Parameters​

tenantId String

Returns​

Task<CkModelLibraryStatusResponseDto>

ResolveDependenciesBatchAsync(String, List<ImportFromCatalogRequestDto>)​

public Task<BatchDependencyResolutionResponseDto> ResolveDependenciesBatchAsync(string tenantId, List<ImportFromCatalogRequestDto> requests)

Parameters​

tenantId String

requests List<ImportFromCatalogRequestDto>

Returns​

Task<BatchDependencyResolutionResponseDto>

ImportFromCatalogBatchAsync(String, ImportFromCatalogBatchRequestDto)​

public Task<BatchImportResponseDto> ImportFromCatalogBatchAsync(string tenantId, ImportFromCatalogBatchRequestDto batchRequest)

Parameters​

tenantId String

batchRequest ImportFromCatalogBatchRequestDto

Returns​

Task<BatchImportResponseDto>

ImportFromCatalogAsync(String, ImportFromCatalogRequestDto)​

public Task<TransferModelResponseDto> ImportFromCatalogAsync(string tenantId, ImportFromCatalogRequestDto importRequest)

Parameters​

tenantId String

importRequest ImportFromCatalogRequestDto

Returns​

Task<TransferModelResponseDto>

ValidateCkModelAsync(String, String)​

public Task<CkModelValidationResponseDto> ValidateCkModelAsync(string tenantId, string ckModelFilePath)

Parameters​

tenantId String

ckModelFilePath String

Returns​

Task<CkModelValidationResponseDto>

CheckUpgradeAsync(String, ImportFromCatalogRequestDto)​

public Task<UpgradeCheckResponseDto> CheckUpgradeAsync(string tenantId, ImportFromCatalogRequestDto upgradeRequest)

Parameters​

tenantId String

upgradeRequest ImportFromCatalogRequestDto

Returns​

Task<UpgradeCheckResponseDto>

ListBlueprintsAsync(Int32, Int32)​

public Task<BlueprintCatalogListResponseDto> ListBlueprintsAsync(int skip, int take)

Parameters​

skip Int32

take Int32

Returns​

Task<BlueprintCatalogListResponseDto>

RefreshBlueprintCatalogsAsync(String)​

public Task<BlueprintCatalogRefreshResponseDto> RefreshBlueprintCatalogsAsync(string catalogName)

Parameters​

catalogName String

Returns​

Task<BlueprintCatalogRefreshResponseDto>

ApplyBlueprintAsync(String, String, Boolean)​

public Task<BlueprintApplyResultDto> ApplyBlueprintAsync(string tenantId, string blueprintId, bool force)

Parameters​

tenantId String

blueprintId String

force Boolean

Returns​

Task<BlueprintApplyResultDto>

ApplyBlueprintAsync(String, BlueprintApplyRequestDto)​

public Task<BlueprintApplyResultDto> ApplyBlueprintAsync(string tenantId, BlueprintApplyRequestDto applyRequest)

Parameters​

tenantId String

applyRequest BlueprintApplyRequestDto

Returns​

Task<BlueprintApplyResultDto>

GetBlueprintHistoryAsync(String)​

public Task<List<BlueprintHistoryItemDto>> GetBlueprintHistoryAsync(string tenantId)

Parameters​

tenantId String

Returns​

Task<List<BlueprintHistoryItemDto>>

GetBlueprintUpdateInfoAsync(String)​

public Task<BlueprintUpdateInfoDto> GetBlueprintUpdateInfoAsync(string tenantId)

Parameters​

tenantId String

Returns​

Task<BlueprintUpdateInfoDto>

PreviewBlueprintUpdateAsync(String, BlueprintUpdateRequestDto)​

public Task<BlueprintUpdatePreviewDto> PreviewBlueprintUpdateAsync(string tenantId, BlueprintUpdateRequestDto previewRequest)

Parameters​

tenantId String

previewRequest BlueprintUpdateRequestDto

Returns​

Task<BlueprintUpdatePreviewDto>

ApplyBlueprintUpdateAsync(String, BlueprintUpdateRequestDto)​

public Task<BlueprintUpdateResultDto> ApplyBlueprintUpdateAsync(string tenantId, BlueprintUpdateRequestDto applyRequest)

Parameters​

tenantId String

applyRequest BlueprintUpdateRequestDto

Returns​

Task<BlueprintUpdateResultDto>

ListBlueprintInstallationsAsync(String)​

public Task<List<BlueprintInstallationDto>> ListBlueprintInstallationsAsync(string tenantId)

Parameters​

tenantId String

Returns​

Task<List<BlueprintInstallationDto>>

UninstallBlueprintAsync(String, String, Boolean)​

public Task<BlueprintUninstallResultDto> UninstallBlueprintAsync(string tenantId, string blueprintName, bool cascade)

Parameters​

tenantId String

blueprintName String

cascade Boolean

Returns​

Task<BlueprintUninstallResultDto>

PreviewUninstallBlueprintAsync(String, String, Boolean)​

public Task<BlueprintUninstallResultDto> PreviewUninstallBlueprintAsync(string tenantId, string blueprintName, bool cascade)

Parameters​

tenantId String

blueprintName String

cascade Boolean

Returns​

Task<BlueprintUninstallResultDto>