/// <summary> /// Gets a single environment. /// </summary> /// <remarks> /// Required permissions: Environments.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 EnvironmentDto GetById(this IEnvironments operations, long id, string expand = default(string), string select = default(string)) { return(operations.GetByIdAsync(id, expand, select).GetAwaiter().GetResult()); }
/// <summary> /// Gets a single environment. /// </summary> /// <remarks> /// Client Credentials Flow required permissions: Robots or Robots.Read. /// /// Required permissions: Environments.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 EnvironmentDto GetById(this IEnvironments operations, long key, string expand = default(string), string select = default(string), long?xUIPATHOrganizationUnitId = default(long?)) { return(operations.GetByIdAsync(key, expand, select, xUIPATHOrganizationUnitId).GetAwaiter().GetResult()); }