/// <summary>
 /// Get Managed Identity Sql Control Settings
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='workspaceName'>
 /// The name of the workspace
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ManagedIdentitySqlControlSettingsModel> GetAsync(this IWorkspaceManagedIdentitySqlControlSettings operations, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, workspaceName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Example #2
0
 /// <summary>
 /// Initializes client properties.
 /// </summary>
 private void Initialize()
 {
     BigDataPools                                = new BigDataPools(this);
     Operations                                  = new Operations(this);
     IpFirewallRules                             = new IpFirewallRules(this);
     SqlPools                                    = new SqlPools(this);
     SqlPoolMetadataSyncConfigs                  = new SqlPoolMetadataSyncConfigs(this);
     SqlPoolOperationResults                     = new SqlPoolOperationResults(this);
     SqlPoolGeoBackupPolicies                    = new SqlPoolGeoBackupPolicies(this);
     SqlPoolDataWarehouseUserActivities          = new SqlPoolDataWarehouseUserActivities(this);
     SqlPoolRestorePoints                        = new SqlPoolRestorePoints(this);
     SqlPoolReplicationLinks                     = new SqlPoolReplicationLinks(this);
     SqlPoolTransparentDataEncryptions           = new SqlPoolTransparentDataEncryptions(this);
     SqlPoolBlobAuditingPolicies                 = new SqlPoolBlobAuditingPolicies(this);
     SqlPoolOperations                           = new SqlPoolOperations(this);
     SqlPoolUsages                               = new SqlPoolUsages(this);
     SqlPoolSensitivityLabels                    = new SqlPoolSensitivityLabels(this);
     SqlPoolSchemas                              = new SqlPoolSchemas(this);
     SqlPoolTables                               = new SqlPoolTables(this);
     SqlPoolTableColumns                         = new SqlPoolTableColumns(this);
     SqlPoolConnectionPolicies                   = new SqlPoolConnectionPolicies(this);
     SqlPoolVulnerabilityAssessments             = new SqlPoolVulnerabilityAssessments(this);
     SqlPoolVulnerabilityAssessmentScans         = new SqlPoolVulnerabilityAssessmentScans(this);
     SqlPoolSecurityAlertPolicies                = new SqlPoolSecurityAlertPolicies(this);
     SqlPoolVulnerabilityAssessmentRuleBaselines = new SqlPoolVulnerabilityAssessmentRuleBaselines(this);
     Workspaces                                  = new Workspaces(this);
     WorkspaceAadAdmins                          = new WorkspaceAadAdmins(this);
     WorkspaceManagedIdentitySqlControlSettings  = new WorkspaceManagedIdentitySqlControlSettings(this);
     BaseUri = new System.Uri("https://management.azure.com");
     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()
         }
     };
     SerializationSettings.Converters.Add(new TransformationJsonConverter());
     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 TransformationJsonConverter());
 }
 /// <summary>
 /// Create or update Managed Identity Sql Control Settings
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='workspaceName'>
 /// The name of the workspace
 /// </param>
 /// <param name='managedIdentitySqlControlSettings'>
 /// Managed Identity Sql Control Settings
 /// </param>
 public static ManagedIdentitySqlControlSettingsModel CreateOrUpdate(this IWorkspaceManagedIdentitySqlControlSettings operations, string resourceGroupName, string workspaceName, ManagedIdentitySqlControlSettingsModel managedIdentitySqlControlSettings)
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, workspaceName, managedIdentitySqlControlSettings).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Get Managed Identity Sql Control Settings
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='workspaceName'>
 /// The name of the workspace
 /// </param>
 public static ManagedIdentitySqlControlSettingsModel Get(this IWorkspaceManagedIdentitySqlControlSettings operations, string resourceGroupName, string workspaceName)
 {
     return(operations.GetAsync(resourceGroupName, workspaceName).GetAwaiter().GetResult());
 }