Example #1
0
 /// <summary>
 /// Initializes client properties.
 /// </summary>
 private void Initialize()
 {
     Clusters = new ClustersOperations(this);
     ClusterPrincipalAssignments = new ClusterPrincipalAssignmentsOperations(this);
     Databases = new DatabasesOperations(this);
     AttachedDatabaseConfigurations = new AttachedDatabaseConfigurationsOperations(this);
     ManagedPrivateEndpoints        = new ManagedPrivateEndpointsOperations(this);
     DatabasePrincipalAssignments   = new DatabasePrincipalAssignmentsOperations(this);
     Scripts = new ScriptsOperations(this);
     PrivateEndpointConnections = new PrivateEndpointConnectionsOperations(this);
     PrivateLinkResources       = new PrivateLinkResourcesOperations(this);
     DataConnections            = new DataConnectionsOperations(this);
     Operations                = new Operations(this);
     OperationsResults         = new OperationsResults(this);
     OperationsResultsLocation = new OperationsResultsLocation(this);
     BaseUri        = new System.Uri("https://management.azure.com");
     ApiVersion     = "2022-02-01";
     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()
         }
     };
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <Database>("kind"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <Database>("kind"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <DataConnection>("kind"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <DataConnection>("kind"));
     CustomInitialize();
     DeserializationSettings.Converters.Add(new TransformationJsonConverter());
     DeserializationSettings.Converters.Add(new CloudErrorJsonConverter());
 }
 /// <summary>
 /// Initializes client properties.
 /// </summary>
 private void Initialize()
 {
     Servers                          = new ServersOperations(this);
     Replicas                         = new ReplicasOperations(this);
     Backups                          = new BackupsOperations(this);
     FirewallRules                    = new FirewallRulesOperations(this);
     Databases                        = new DatabasesOperations(this);
     Configurations                   = new ConfigurationsOperations(this);
     LocationBasedCapabilities        = new LocationBasedCapabilitiesOperations(this);
     CheckVirtualNetworkSubnetUsage   = new CheckVirtualNetworkSubnetUsageOperations(this);
     CheckNameAvailability            = new CheckNameAvailabilityOperations(this);
     GetPrivateDnsZoneSuffix          = new GetPrivateDnsZoneSuffixOperations(this);
     Operations                       = new Operations(this);
     BaseUri                          = new System.Uri("https://management.azure.com");
     ApiVersion                       = "2021-05-01";
     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());
 }
 /// <summary>
 /// Initializes client properties.
 /// </summary>
 private void Initialize()
 {
     Operations                       = new Operations(this);
     Get                              = new GetOperations(this);
     RedisEnterprise                  = new RedisEnterpriseOperations(this);
     Databases                        = new DatabasesOperations(this);
     RedisEnterpriseDatabase          = new RedisEnterpriseDatabaseOperations(this);
     PrivateEndpointConnections       = new PrivateEndpointConnectionsOperations(this);
     PrivateLinkResources             = new PrivateLinkResourcesOperations(this);
     BaseUri                          = new System.Uri("https://management.azure.com");
     ApiVersion                       = "2020-10-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()
         }
     };
     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());
 }
Example #4
0
 /// <summary>
 /// Initializes client properties.
 /// </summary>
 private void Initialize()
 {
     Servers                          = new ServersOperations(this);
     Databases                        = new DatabasesOperations(this);
     ElasticPools                     = new ElasticPoolsOperations(this);
     RecommendedElasticPools          = new RecommendedElasticPoolsOperations(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());
 }
Example #5
0
 /// <summary>
 /// Initializes client properties.
 /// </summary>
 protected override void Initialize()
 {
     BackupLongTermRetentionPolicies = new BackupLongTermRetentionPoliciesOperations(this);
     BackupLongTermRetentionVaults   = new BackupLongTermRetentionVaultsOperations(this);
     RecoverableDatabases            = new RecoverableDatabasesOperations(this);
     RestorableDroppedDatabases      = new RestorableDroppedDatabasesOperations(this);
     Capabilities                                 = new CapabilitiesOperations(this);
     Servers                                      = new ServersOperations(this);
     ServerConnectionPolicies                     = new ServerConnectionPoliciesOperations(this);
     Databases                                    = new DatabasesOperations(this);
     DatabaseThreatDetectionPolicies              = new DatabaseThreatDetectionPoliciesOperations(this);
     DataMaskingPolicies                          = new DataMaskingPoliciesOperations(this);
     DataMaskingRules                             = new DataMaskingRulesOperations(this);
     ElasticPools                                 = new ElasticPoolsOperations(this);
     FirewallRules                                = new FirewallRulesOperations(this);
     GeoBackupPolicies                            = new GeoBackupPoliciesOperations(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);
     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);
     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);
     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);
     InstancePools    = new InstancePoolsOperations(this);
     Usages           = new UsagesOperations(this);
     ManagedInstances = new ManagedInstancesOperations(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());
 }
Example #6
0
 /// <summary>
 /// Initializes client properties.
 /// </summary>
 private void Initialize()
 {
     BackupLongTermRetentionPolicies = new BackupLongTermRetentionPoliciesOperations(this);
     BackupLongTermRetentionVaults   = new BackupLongTermRetentionVaultsOperations(this);
     RecoverableDatabases            = new RecoverableDatabasesOperations(this);
     RestorableDroppedDatabases      = new RestorableDroppedDatabasesOperations(this);
     RestorePoints                       = new RestorePointsOperations(this);
     Servers                             = new ServersOperations(this);
     ServerConnectionPolicies            = new ServerConnectionPoliciesOperations(this);
     Databases                           = new DatabasesOperations(this);
     DatabaseThreatDetectionPolicies     = new DatabaseThreatDetectionPoliciesOperations(this);
     DataMaskingPolicies                 = new DataMaskingPoliciesOperations(this);
     DataMaskingRules                    = new DataMaskingRulesOperations(this);
     ElasticPools                        = new ElasticPoolsOperations(this);
     FirewallRules                       = new FirewallRulesOperations(this);
     GeoBackupPolicies                   = new GeoBackupPoliciesOperations(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);
     RecommendedElasticPools             = new RecommendedElasticPoolsOperations(this);
     ServiceTierAdvisors                 = new ServiceTierAdvisorsOperations(this);
     TransparentDataEncryptions          = new TransparentDataEncryptionsOperations(this);
     TransparentDataEncryptionActivities = new TransparentDataEncryptionActivitiesOperations(this);
     ServerUsages                        = new ServerUsagesOperations(this);
     DatabaseUsages                      = new DatabaseUsagesOperations(this);
     Capabilities                        = new CapabilitiesOperations(this);
     DatabaseBlobAuditingPolicies        = new DatabaseBlobAuditingPoliciesOperations(this);
     EncryptionProtectors                = new EncryptionProtectorsOperations(this);
     FailoverGroups                      = new FailoverGroupsOperations(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);
     VirtualNetworkRules                 = new VirtualNetworkRulesOperations(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());
 }