/// <summary> /// Post new environment /// </summary> /// <remarks> /// Required permissions: Environments.Create. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='environmentDto'> /// The entity to post /// </param> public static EnvironmentDto Post(this IEnvironments operations, EnvironmentDto environmentDto) { return(operations.PostAsync(environmentDto).GetAwaiter().GetResult()); }
/// <summary> /// Post new environment /// </summary> /// <remarks> /// Client Credentials Flow required permissions: Robots or Robots.Write. /// /// Required permissions: Environments.Create. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='body'> /// </param> /// <param name='xUIPATHOrganizationUnitId'> /// Folder/OrganizationUnit Id /// </param> public static EnvironmentDto Post(this IEnvironments operations, EnvironmentDto body = default(EnvironmentDto), long?xUIPATHOrganizationUnitId = default(long?)) { return(operations.PostAsync(body, xUIPATHOrganizationUnitId).GetAwaiter().GetResult()); }