/// <summary> /// Get by id /// </summary> /// <remarks> /// Client Credentials Flow required permissions: Monitoring or /// Monitoring.Read. /// /// Required permissions: ExecutionMedia.View. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='key'> /// </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> public static ExecutionMediaDto GetById(this IExecutionMedia operations, long key, string expand = default(string), string select = default(string), long?xUIPATHOrganizationUnitId = default(long?)) { return(operations.GetByIdAsync(key, expand, select, xUIPATHOrganizationUnitId).GetAwaiter().GetResult()); }
/// <summary> /// Returns the entity with the key from ExecutionMedia /// </summary> /// <remarks> /// Required permissions: ExecutionMedia.View. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// key: Id /// </param> /// <param name='expand'> /// Expands related entities inline. /// </param> /// <param name='select'> /// Selects which properties to include in the response. /// </param> public static ExecutionMediaDto GetById(this IExecutionMedia operations, long id, string expand = default(string), string select = default(string)) { return(operations.GetByIdAsync(id, expand, select).GetAwaiter().GetResult()); }