/// <summary> /// The get data centers with maintenance statuses. /// </summary> /// <param name="pagingOptions"> /// The paging options. /// </param> /// <returns> /// The <see cref="Task"/>. /// </returns> public async Task <IEnumerable <DatacenterWithMaintenanceStatusType> > GetDataCentersWithMaintenanceStatuses(IPageableRequest pagingOptions = null) { DatacentersWithMaintenanceStatus dataCenters = await _apiClient.GetAsync <DatacentersWithMaintenanceStatus>( ApiUris.DatacentresWithMaintanence(_apiClient.OrganizationId), pagingOptions); return(dataCenters.datacenter); }
/// <summary> /// The get data center with maintenance status. /// </summary> /// <param name="locationId"> /// The identifier of the datacenter. /// </param> /// <returns> /// The <see cref="Task"/>. /// </returns> public async Task <DatacenterWithMaintenanceStatusType> GetDataCenterWithMaintenanceStatus(string locationId) { DatacentersWithMaintenanceStatus dataCenters = await _apiClient.GetAsync <DatacentersWithMaintenanceStatus>( ApiUris.DatacentreWithMaintanence(_apiClient.OrganizationId, locationId)); return(dataCenters.datacenter.FirstOrDefault()); }
/// <summary> /// The get data centers with maintenance statuses. /// </summary> /// <returns> /// The <see cref="Task"/>. /// </returns> public async Task <IEnumerable <DatacenterWithMaintenanceStatusType> > GetDataCentersWithMaintenanceStatuses() { DatacentersWithMaintenanceStatus dataCenters = await _apiClient.GetAsync <DatacentersWithMaintenanceStatus>(ApiUris.DatacentresWithMaintanence(_apiClient.OrganizationId)); return(dataCenters.datacenter); }