/// <summary>
 /// Gets the sensitivity label of a given column
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the resource. You can obtain
 /// this value from the Azure Resource Manager API or the portal.
 /// </param>
 /// <param name='managedInstanceName'>
 /// The name of the managed instance.
 /// </param>
 /// <param name='databaseName'>
 /// The name of the database.
 /// </param>
 /// <param name='schemaName'>
 /// The name of the schema.
 /// </param>
 /// <param name='tableName'>
 /// The name of the table.
 /// </param>
 /// <param name='columnName'>
 /// The name of the column.
 /// </param>
 /// <param name='sensitivityLabelSource'>
 /// The source of the sensitivity label. Possible values include: 'current',
 /// 'recommended'
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <SensitivityLabel> GetAsync(this IManagedDatabaseSensitivityLabelsOperations operations, string resourceGroupName, string managedInstanceName, string databaseName, string schemaName, string tableName, string columnName, SensitivityLabelSource sensitivityLabelSource, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, managedInstanceName, databaseName, schemaName, tableName, columnName, sensitivityLabelSource, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Gets the sensitivity labels of a given database
 /// </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 <SensitivityLabel> ListRecommendedByDatabaseNext(this IManagedDatabaseSensitivityLabelsOperations operations, string nextPageLink)
 {
     return(operations.ListRecommendedByDatabaseNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Gets the sensitivity labels of a given database
 /// </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>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <SensitivityLabel> > ListRecommendedByDatabaseNextAsync(this IManagedDatabaseSensitivityLabelsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListRecommendedByDatabaseNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Gets the sensitivity labels of a given database
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the resource. You can obtain
 /// this value from the Azure Resource Manager API or the portal.
 /// </param>
 /// <param name='managedInstanceName'>
 /// The name of the managed instance.
 /// </param>
 /// <param name='databaseName'>
 /// The name of the database.
 /// </param>
 /// <param name='odataQuery'>
 /// OData parameters to apply to the operation.
 /// </param>
 /// <param name='skipToken'>
 /// </param>
 /// <param name='includeDisabledRecommendations'>
 /// Specifies whether to include disabled recommendations or not.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <SensitivityLabel> > ListRecommendedByDatabaseAsync(this IManagedDatabaseSensitivityLabelsOperations operations, string resourceGroupName, string managedInstanceName, string databaseName, ODataQuery <SensitivityLabel> odataQuery = default(ODataQuery <SensitivityLabel>), string skipToken = default(string), bool?includeDisabledRecommendations = default(bool?), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListRecommendedByDatabaseWithHttpMessagesAsync(resourceGroupName, managedInstanceName, databaseName, odataQuery, skipToken, includeDisabledRecommendations, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Gets the sensitivity label of a given column
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the resource. You can obtain
 /// this value from the Azure Resource Manager API or the portal.
 /// </param>
 /// <param name='managedInstanceName'>
 /// The name of the managed instance.
 /// </param>
 /// <param name='databaseName'>
 /// The name of the database.
 /// </param>
 /// <param name='schemaName'>
 /// The name of the schema.
 /// </param>
 /// <param name='tableName'>
 /// The name of the table.
 /// </param>
 /// <param name='columnName'>
 /// The name of the column.
 /// </param>
 /// <param name='sensitivityLabelSource'>
 /// The source of the sensitivity label. Possible values include: 'current',
 /// 'recommended'
 /// </param>
 public static SensitivityLabel Get(this IManagedDatabaseSensitivityLabelsOperations operations, string resourceGroupName, string managedInstanceName, string databaseName, string schemaName, string tableName, string columnName, SensitivityLabelSource sensitivityLabelSource)
 {
     return(operations.GetAsync(resourceGroupName, managedInstanceName, databaseName, schemaName, tableName, columnName, sensitivityLabelSource).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Update sensitivity labels of a given database using an operations batch.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the resource. You can obtain
 /// this value from the Azure Resource Manager API or the portal.
 /// </param>
 /// <param name='managedInstanceName'>
 /// The name of the managed instance.
 /// </param>
 /// <param name='databaseName'>
 /// The name of the database.
 /// </param>
 /// <param name='parameters'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task UpdateAsync(this IManagedDatabaseSensitivityLabelsOperations operations, string resourceGroupName, string managedInstanceName, string databaseName, SensitivityLabelUpdateList parameters, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.UpdateWithHttpMessagesAsync(resourceGroupName, managedInstanceName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
 /// <summary>
 /// Gets the sensitivity labels of a given database
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the resource. You can obtain
 /// this value from the Azure Resource Manager API or the portal.
 /// </param>
 /// <param name='managedInstanceName'>
 /// The name of the managed instance.
 /// </param>
 /// <param name='databaseName'>
 /// The name of the database.
 /// </param>
 /// <param name='odataQuery'>
 /// OData parameters to apply to the operation.
 /// </param>
 /// <param name='skipToken'>
 /// </param>
 /// <param name='includeDisabledRecommendations'>
 /// Specifies whether to include disabled recommendations or not.
 /// </param>
 public static IPage <SensitivityLabel> ListRecommendedByDatabase(this IManagedDatabaseSensitivityLabelsOperations operations, string resourceGroupName, string managedInstanceName, string databaseName, ODataQuery <SensitivityLabel> odataQuery = default(ODataQuery <SensitivityLabel>), string skipToken = default(string), bool?includeDisabledRecommendations = default(bool?))
 {
     return(operations.ListRecommendedByDatabaseAsync(resourceGroupName, managedInstanceName, databaseName, odataQuery, skipToken, includeDisabledRecommendations).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Gets the sensitivity labels of a given database
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the resource. You can obtain
 /// this value from the Azure Resource Manager API or the portal.
 /// </param>
 /// <param name='managedInstanceName'>
 /// The name of the managed instance.
 /// </param>
 /// <param name='databaseName'>
 /// The name of the database.
 /// </param>
 /// <param name='odataQuery'>
 /// OData parameters to apply to the operation.
 /// </param>
 /// <param name='skipToken'>
 /// </param>
 /// <param name='count'>
 /// </param>
 public static IPage <SensitivityLabel> ListCurrentByDatabase(this IManagedDatabaseSensitivityLabelsOperations operations, string resourceGroupName, string managedInstanceName, string databaseName, ODataQuery <SensitivityLabel> odataQuery = default(ODataQuery <SensitivityLabel>), string skipToken = default(string), bool?count = default(bool?))
 {
     return(operations.ListCurrentByDatabaseAsync(resourceGroupName, managedInstanceName, databaseName, odataQuery, skipToken, count).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Update sensitivity labels of a given database using an operations batch.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the resource. You can obtain
 /// this value from the Azure Resource Manager API or the portal.
 /// </param>
 /// <param name='managedInstanceName'>
 /// The name of the managed instance.
 /// </param>
 /// <param name='databaseName'>
 /// The name of the database.
 /// </param>
 /// <param name='parameters'>
 /// </param>
 public static void Update(this IManagedDatabaseSensitivityLabelsOperations operations, string resourceGroupName, string managedInstanceName, string databaseName, SensitivityLabelUpdateList parameters)
 {
     operations.UpdateAsync(resourceGroupName, managedInstanceName, databaseName, parameters).GetAwaiter().GetResult();
 }
 /// <summary>
 /// Enables sensitivity recommendations on a given column (recommendations are
 /// enabled by default on all columns)
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the resource. You can obtain
 /// this value from the Azure Resource Manager API or the portal.
 /// </param>
 /// <param name='managedInstanceName'>
 /// The name of the managed instance.
 /// </param>
 /// <param name='databaseName'>
 /// The name of the database.
 /// </param>
 /// <param name='schemaName'>
 /// The name of the schema.
 /// </param>
 /// <param name='tableName'>
 /// The name of the table.
 /// </param>
 /// <param name='columnName'>
 /// The name of the column.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task EnableRecommendationAsync(this IManagedDatabaseSensitivityLabelsOperations operations, string resourceGroupName, string managedInstanceName, string databaseName, string schemaName, string tableName, string columnName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.EnableRecommendationWithHttpMessagesAsync(resourceGroupName, managedInstanceName, databaseName, schemaName, tableName, columnName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
 /// <summary>
 /// Enables sensitivity recommendations on a given column (recommendations are
 /// enabled by default on all columns)
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the resource. You can obtain
 /// this value from the Azure Resource Manager API or the portal.
 /// </param>
 /// <param name='managedInstanceName'>
 /// The name of the managed instance.
 /// </param>
 /// <param name='databaseName'>
 /// The name of the database.
 /// </param>
 /// <param name='schemaName'>
 /// The name of the schema.
 /// </param>
 /// <param name='tableName'>
 /// The name of the table.
 /// </param>
 /// <param name='columnName'>
 /// The name of the column.
 /// </param>
 public static void EnableRecommendation(this IManagedDatabaseSensitivityLabelsOperations operations, string resourceGroupName, string managedInstanceName, string databaseName, string schemaName, string tableName, string columnName)
 {
     operations.EnableRecommendationAsync(resourceGroupName, managedInstanceName, databaseName, schemaName, tableName, columnName).GetAwaiter().GetResult();
 }
 /// <summary>
 /// Creates or updates the sensitivity label of a given column
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the resource. You can obtain
 /// this value from the Azure Resource Manager API or the portal.
 /// </param>
 /// <param name='managedInstanceName'>
 /// The name of the managed instance.
 /// </param>
 /// <param name='databaseName'>
 /// The name of the database.
 /// </param>
 /// <param name='schemaName'>
 /// The name of the schema.
 /// </param>
 /// <param name='tableName'>
 /// The name of the table.
 /// </param>
 /// <param name='columnName'>
 /// The name of the column.
 /// </param>
 /// <param name='parameters'>
 /// The column sensitivity label resource.
 /// </param>
 public static SensitivityLabel CreateOrUpdate(this IManagedDatabaseSensitivityLabelsOperations operations, string resourceGroupName, string managedInstanceName, string databaseName, string schemaName, string tableName, string columnName, SensitivityLabel parameters)
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, managedInstanceName, databaseName, schemaName, tableName, columnName, parameters).GetAwaiter().GetResult());
 }
Example #13
0
 /// <summary>
 /// Gets the sensitivity labels of a given database
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the resource. You can obtain
 /// this value from the Azure Resource Manager API or the portal.
 /// </param>
 /// <param name='managedInstanceName'>
 /// The name of the managed instance.
 /// </param>
 /// <param name='databaseName'>
 /// The name of the database.
 /// </param>
 /// <param name='odataQuery'>
 /// OData parameters to apply to the operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <SensitivityLabel> > ListCurrentByDatabaseAsync(this IManagedDatabaseSensitivityLabelsOperations operations, string resourceGroupName, string managedInstanceName, string databaseName, ODataQuery <SensitivityLabel> odataQuery = default(ODataQuery <SensitivityLabel>), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListCurrentByDatabaseWithHttpMessagesAsync(resourceGroupName, managedInstanceName, databaseName, odataQuery, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Example #14
0
 /// <summary>
 /// Initializes client properties.
 /// </summary>
 private void Initialize()
 {
     RecoverableDatabases       = new RecoverableDatabasesOperations(this);
     RestorableDroppedDatabases = new RestorableDroppedDatabasesOperations(this);
     Servers = new ServersOperations(this);
     ServerConnectionPolicies        = new ServerConnectionPoliciesOperations(this);
     DatabaseThreatDetectionPolicies = new DatabaseThreatDetectionPoliciesOperations(this);
     DataMaskingPolicies             = new DataMaskingPoliciesOperations(this);
     DataMaskingRules                             = new DataMaskingRulesOperations(this);
     FirewallRules                                = new FirewallRulesOperations(this);
     GeoBackupPolicies                            = new GeoBackupPoliciesOperations(this);
     Databases                                    = new DatabasesOperations(this);
     ElasticPools                                 = new ElasticPoolsOperations(this);
     RecommendedElasticPools                      = new RecommendedElasticPoolsOperations(this);
     ReplicationLinks                             = new ReplicationLinksOperations(this);
     ServerAzureADAdministrators                  = new ServerAzureADAdministratorsOperations(this);
     ServerCommunicationLinks                     = new ServerCommunicationLinksOperations(this);
     ServiceObjectives                            = new ServiceObjectivesOperations(this);
     ElasticPoolActivities                        = new ElasticPoolActivitiesOperations(this);
     ElasticPoolDatabaseActivities                = new ElasticPoolDatabaseActivitiesOperations(this);
     ServiceTierAdvisors                          = new ServiceTierAdvisorsOperations(this);
     TransparentDataEncryptions                   = new TransparentDataEncryptionsOperations(this);
     TransparentDataEncryptionActivities          = new TransparentDataEncryptionActivitiesOperations(this);
     ServerUsages                                 = new ServerUsagesOperations(this);
     DatabaseUsages                               = new DatabaseUsagesOperations(this);
     DatabaseAutomaticTuning                      = new DatabaseAutomaticTuningOperations(this);
     EncryptionProtectors                         = new EncryptionProtectorsOperations(this);
     FailoverGroups                               = new FailoverGroupsOperations(this);
     ManagedInstances                             = new ManagedInstancesOperations(this);
     Operations                                   = new Operations(this);
     ServerKeys                                   = new ServerKeysOperations(this);
     SyncAgents                                   = new SyncAgentsOperations(this);
     SyncGroups                                   = new SyncGroupsOperations(this);
     SyncMembers                                  = new SyncMembersOperations(this);
     SubscriptionUsages                           = new SubscriptionUsagesOperations(this);
     VirtualClusters                              = new VirtualClustersOperations(this);
     VirtualNetworkRules                          = new VirtualNetworkRulesOperations(this);
     ExtendedDatabaseBlobAuditingPolicies         = new ExtendedDatabaseBlobAuditingPoliciesOperations(this);
     ExtendedServerBlobAuditingPolicies           = new ExtendedServerBlobAuditingPoliciesOperations(this);
     ServerBlobAuditingPolicies                   = new ServerBlobAuditingPoliciesOperations(this);
     DatabaseBlobAuditingPolicies                 = new DatabaseBlobAuditingPoliciesOperations(this);
     DatabaseVulnerabilityAssessmentRuleBaselines = new DatabaseVulnerabilityAssessmentRuleBaselinesOperations(this);
     DatabaseVulnerabilityAssessments             = new DatabaseVulnerabilityAssessmentsOperations(this);
     JobAgents                                    = new JobAgentsOperations(this);
     JobCredentials                               = new JobCredentialsOperations(this);
     JobExecutions                                = new JobExecutionsOperations(this);
     Jobs = new JobsOperations(this);
     JobStepExecutions                       = new JobStepExecutionsOperations(this);
     JobSteps                                = new JobStepsOperations(this);
     JobTargetExecutions                     = new JobTargetExecutionsOperations(this);
     JobTargetGroups                         = new JobTargetGroupsOperations(this);
     JobVersions                             = new JobVersionsOperations(this);
     LongTermRetentionBackups                = new LongTermRetentionBackupsOperations(this);
     BackupLongTermRetentionPolicies         = new BackupLongTermRetentionPoliciesOperations(this);
     ManagedBackupShortTermRetentionPolicies = new ManagedBackupShortTermRetentionPoliciesOperations(this);
     ManagedDatabases                        = new ManagedDatabasesOperations(this);
     ManagedRestorableDroppedDatabaseBackupShortTermRetentionPolicies = new ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesOperations(this);
     ServerAutomaticTuning             = new ServerAutomaticTuningOperations(this);
     ServerDnsAliases                  = new ServerDnsAliasesOperations(this);
     ServerSecurityAlertPolicies       = new ServerSecurityAlertPoliciesOperations(this);
     RestorableDroppedManagedDatabases = new RestorableDroppedManagedDatabasesOperations(this);
     RestorePoints = new RestorePointsOperations(this);
     ManagedDatabaseSecurityAlertPolicies = new ManagedDatabaseSecurityAlertPoliciesOperations(this);
     ManagedServerSecurityAlertPolicies   = new ManagedServerSecurityAlertPoliciesOperations(this);
     SensitivityLabels     = new SensitivityLabelsOperations(this);
     DatabaseOperations    = new DatabaseOperations(this);
     ElasticPoolOperations = new ElasticPoolOperations(this);
     Capabilities          = new CapabilitiesOperations(this);
     DatabaseVulnerabilityAssessmentScans = new DatabaseVulnerabilityAssessmentScansOperations(this);
     ManagedDatabaseVulnerabilityAssessmentRuleBaselines = new ManagedDatabaseVulnerabilityAssessmentRuleBaselinesOperations(this);
     ManagedDatabaseVulnerabilityAssessmentScans         = new ManagedDatabaseVulnerabilityAssessmentScansOperations(this);
     ManagedDatabaseVulnerabilityAssessments             = new ManagedDatabaseVulnerabilityAssessmentsOperations(this);
     InstanceFailoverGroups           = new InstanceFailoverGroupsOperations(this);
     BackupShortTermRetentionPolicies = new BackupShortTermRetentionPoliciesOperations(this);
     TdeCertificates = new TdeCertificatesOperations(this);
     ManagedInstanceTdeCertificates          = new ManagedInstanceTdeCertificatesOperations(this);
     ManagedInstanceKeys                     = new ManagedInstanceKeysOperations(this);
     ManagedInstanceEncryptionProtectors     = new ManagedInstanceEncryptionProtectorsOperations(this);
     RecoverableManagedDatabases             = new RecoverableManagedDatabasesOperations(this);
     ManagedInstanceVulnerabilityAssessments = new ManagedInstanceVulnerabilityAssessmentsOperations(this);
     ServerVulnerabilityAssessments          = new ServerVulnerabilityAssessmentsOperations(this);
     ManagedDatabaseSensitivityLabels        = new ManagedDatabaseSensitivityLabelsOperations(this);
     BaseUri        = new System.Uri("https://management.azure.com");
     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()
         }
     };
     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());
     DeserializationSettings.Converters.Add(new CloudErrorJsonConverter());
 }