/// <summary>
 /// Returns the named asset associated to the given robot Id.
 /// </summary>
 /// <remarks>
 /// Client Credentials Flow required permissions: Assets or Assets.Read.
 ///
 /// 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='expand'>
 /// Indicates the related entities to be represented inline. The maximum depth
 /// is 2.
 /// </param>
 /// <param name='select'>
 /// Limits the properties returned in the result.
 /// </param>
 /// <param name='xUIPATHOrganizationUnitId'>
 /// Folder/OrganizationUnit Id
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <RobotAssetDto> GetRobotAssetByRobotIdAsync(this IAssets operations, long robotId, string assetName, string expand = default(string), string select = default(string), long?xUIPATHOrganizationUnitId = default(long?), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetRobotAssetByRobotIdWithHttpMessagesAsync(robotId, assetName, expand, select, xUIPATHOrganizationUnitId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Beispiel #2
0
 /// <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> GetRobotAssetByRobotIdAsync(this IAssets operations, long robotId, string assetName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     using (var _result = await operations.GetRobotAssetByRobotIdWithHttpMessagesAsync(robotId, assetName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }