/// <summary> /// List the single sign-on configurations for a given monitor resource. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group to which the Datadog resource belongs. /// </param> /// <param name='monitorName'> /// Monitor resource name /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <DatadogSingleSignOnResource> > ListAsync(this ISingleSignOnConfigurationsOperations operations, string resourceGroupName, string monitorName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, monitorName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Configures single-sign-on for this resource. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group to which the Datadog resource belongs. /// </param> /// <param name='monitorName'> /// Monitor resource name /// </param> /// <param name='configurationName'> /// </param> /// <param name='properties'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <DatadogSingleSignOnResource> CreateOrUpdateAsync(this ISingleSignOnConfigurationsOperations operations, string resourceGroupName, string monitorName, string configurationName, DatadogSingleSignOnProperties properties = default(DatadogSingleSignOnProperties), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, monitorName, configurationName, properties, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Initializes client properties. /// </summary> private void Initialize() { ApiKeys = new ApiKeysOperations(this); Hosts = new HostsOperations(this); LinkedResources = new LinkedResourcesOperations(this); MonitoredResources = new MonitoredResourcesOperations(this); Operations = new Operations(this); Monitors = new MonitorsOperations(this); RefreshSetPassword = new RefreshSetPasswordOperations(this); TagRules = new TagRulesOperations(this); SingleSignOnConfigurations = new SingleSignOnConfigurationsOperations(this); BaseUri = new System.Uri("https://management.azure.com"); ApiVersion = "2020-02-01-preview"; AcceptLanguage = "en-US"; LongRunningOperationRetryTimeout = 30; GenerateClientRequestId = true; SerializationSettings = new JsonSerializerSettings { Formatting = Newtonsoft.Json.Formatting.Indented, DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, ContractResolver = new ReadOnlyJsonContractResolver(), Converters = new List <JsonConverter> { new Iso8601TimeSpanConverter() } }; DeserializationSettings = new JsonSerializerSettings { DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, ContractResolver = new ReadOnlyJsonContractResolver(), Converters = new List <JsonConverter> { new Iso8601TimeSpanConverter() } }; CustomInitialize(); DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); }
/// <summary> /// Configures single-sign-on for this resource. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group to which the Datadog resource belongs. /// </param> /// <param name='monitorName'> /// Monitor resource name /// </param> /// <param name='configurationName'> /// </param> /// <param name='properties'> /// </param> public static DatadogSingleSignOnResource CreateOrUpdate(this ISingleSignOnConfigurationsOperations operations, string resourceGroupName, string monitorName, string configurationName, DatadogSingleSignOnProperties properties = default(DatadogSingleSignOnProperties)) { return(operations.CreateOrUpdateAsync(resourceGroupName, monitorName, configurationName, properties).GetAwaiter().GetResult()); }
/// <summary> /// List the single sign-on configurations for a given monitor resource. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group to which the Datadog resource belongs. /// </param> /// <param name='monitorName'> /// Monitor resource name /// </param> public static IPage <DatadogSingleSignOnResource> List(this ISingleSignOnConfigurationsOperations operations, string resourceGroupName, string monitorName) { return(operations.ListAsync(resourceGroupName, monitorName).GetAwaiter().GetResult()); }
/// <summary> /// List the single sign-on configurations for a given monitor resource. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> public static IPage <DatadogSingleSignOnResource> ListNext(this ISingleSignOnConfigurationsOperations operations, string nextPageLink) { return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult()); }