public static async Task <RobotAssetDto> GetRobotAssetByRobotidAndAssetnameAsync(this IAssets operations, string robotId, string assetName, string expand = default(string), string select = default(string), long?xUIPATHOrganizationUnitId = default(long?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetRobotAssetByRobotidAndAssetnameWithHttpMessagesAsync(robotId, assetName, expand, select, xUIPATHOrganizationUnitId, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Returns the named asset associated to the given robot Id. /// </summary> /// <remarks> /// Required permissions: Assets.View. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='robotId'> /// The Id of the robot for which the asset is being fetched. /// </param> /// <param name='assetName'> /// The name of the asset being fetched. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <RobotAssetDto> GetRobotAssetByRobotidAndAssetnameAsync(this IAssets operations, string robotId, string assetName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { using (var _result = await operations.GetRobotAssetByRobotidAndAssetnameWithHttpMessagesAsync(robotId, assetName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }