Exemplo n.º 1
0
 /// <summary>
 /// Returns the named asset associated to the given robot key.
 /// </summary>
 /// <remarks>
 /// Client Credentials Flow required permissions: Assets or Assets.Write.
 ///
 /// Required permissions: Assets.View.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='body'>
 /// </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> GetRobotAssetByNameForRobotKeyAsync(this IAssets operations, AssetsGetRobotAssetByNameForRobotKeyParameters body = default(AssetsGetRobotAssetByNameForRobotKeyParameters), string expand = default(string), string select = default(string), long?xUIPATHOrganizationUnitId = default(long?), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetRobotAssetByNameForRobotKeyWithHttpMessagesAsync(body, expand, select, xUIPATHOrganizationUnitId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Returns the named asset associated to the given robot key.
 /// </summary>
 /// <remarks>
 /// Required permissions: Assets.View.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='robotAssetParameters'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <RobotAssetDto> GetRobotAssetByNameForRobotKeyAsync(this IAssets operations, RobotAssetParameters robotAssetParameters = default(RobotAssetParameters), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     using (var _result = await operations.GetRobotAssetByNameForRobotKeyWithHttpMessagesAsync(robotAssetParameters, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }