示例#1
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>
 /// Initializes client properties.
 /// </summary>
 private void Initialize()
 {
     BigDataPools                      = new BigDataPoolsOperations(this);
     Operations                        = new Operations(this);
     IpFirewallRules                   = new IpFirewallRulesOperations(this);
     IntegrationRuntimes               = new IntegrationRuntimesOperations(this);
     IntegrationRuntimeNodeIpAddress   = new IntegrationRuntimeNodeIpAddressOperations(this);
     IntegrationRuntimeObjectMetadata  = new IntegrationRuntimeObjectMetadataOperations(this);
     IntegrationRuntimeNodes           = new IntegrationRuntimeNodesOperations(this);
     IntegrationRuntimeCredentials     = new IntegrationRuntimeCredentialsOperations(this);
     IntegrationRuntimeConnectionInfos = new IntegrationRuntimeConnectionInfosOperations(this);
     IntegrationRuntimeAuthKeys        = new IntegrationRuntimeAuthKeysOperations(this);
     IntegrationRuntimeMonitoringData  = new IntegrationRuntimeMonitoringDataOperations(this);
     IntegrationRuntimeStatus          = new IntegrationRuntimeStatusOperations(this);
     Keys      = new KeysOperations(this);
     Library   = new LibraryOperations(this);
     Libraries = new LibrariesOperations(this);
     PrivateEndpointConnections         = new PrivateEndpointConnectionsOperations(this);
     PrivateLinkResources               = new PrivateLinkResourcesOperations(this);
     PrivateLinkHubPrivateLinkResources = new PrivateLinkHubPrivateLinkResourcesOperations(this);
     PrivateLinkHubs = new PrivateLinkHubsOperations(this);
     PrivateEndpointConnectionsPrivateLinkHub = new PrivateEndpointConnectionsPrivateLinkHubOperations(this);
     SqlPools = new SqlPoolsOperations(this);
     SqlPoolMetadataSyncConfigs         = new SqlPoolMetadataSyncConfigsOperations(this);
     SqlPoolOperationResults            = new SqlPoolOperationResultsOperations(this);
     SqlPoolGeoBackupPolicies           = new SqlPoolGeoBackupPoliciesOperations(this);
     SqlPoolDataWarehouseUserActivities = new SqlPoolDataWarehouseUserActivitiesOperations(this);
     SqlPoolRestorePoints              = new SqlPoolRestorePointsOperations(this);
     SqlPoolReplicationLinks           = new SqlPoolReplicationLinksOperations(this);
     SqlPoolMaintenanceWindows         = new SqlPoolMaintenanceWindowsOperations(this);
     SqlPoolMaintenanceWindowOptions   = new SqlPoolMaintenanceWindowOptionsOperations(this);
     SqlPoolTransparentDataEncryptions = new SqlPoolTransparentDataEncryptionsOperations(this);
     SqlPoolBlobAuditingPolicies       = new SqlPoolBlobAuditingPoliciesOperations(this);
     SqlPoolOperations                                     = new SqlPoolOperations(this);
     SqlPoolUsages                                         = new SqlPoolUsagesOperations(this);
     SqlPoolSensitivityLabels                              = new SqlPoolSensitivityLabelsOperations(this);
     SqlPoolRecommendedSensitivityLabels                   = new SqlPoolRecommendedSensitivityLabelsOperations(this);
     SqlPoolSchemas                                        = new SqlPoolSchemasOperations(this);
     SqlPoolTables                                         = new SqlPoolTablesOperations(this);
     SqlPoolTableColumns                                   = new SqlPoolTableColumnsOperations(this);
     SqlPoolConnectionPolicies                             = new SqlPoolConnectionPoliciesOperations(this);
     SqlPoolVulnerabilityAssessments                       = new SqlPoolVulnerabilityAssessmentsOperations(this);
     SqlPoolVulnerabilityAssessmentScans                   = new SqlPoolVulnerabilityAssessmentScansOperations(this);
     SqlPoolSecurityAlertPolicies                          = new SqlPoolSecurityAlertPoliciesOperations(this);
     SqlPoolVulnerabilityAssessmentRuleBaselines           = new SqlPoolVulnerabilityAssessmentRuleBaselinesOperations(this);
     ExtendedSqlPoolBlobAuditingPolicies                   = new ExtendedSqlPoolBlobAuditingPoliciesOperations(this);
     DataMaskingPolicies                                   = new DataMaskingPoliciesOperations(this);
     DataMaskingRules                                      = new DataMaskingRulesOperations(this);
     SqlPoolColumns                                        = new SqlPoolColumnsOperations(this);
     SqlPoolWorkloadGroup                                  = new SqlPoolWorkloadGroupOperations(this);
     SqlPoolWorkloadClassifier                             = new SqlPoolWorkloadClassifierOperations(this);
     WorkspaceManagedSqlServerBlobAuditingPolicies         = new WorkspaceManagedSqlServerBlobAuditingPoliciesOperations(this);
     WorkspaceManagedSqlServerExtendedBlobAuditingPolicies = new WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesOperations(this);
     WorkspaceManagedSqlServerSecurityAlertPolicy          = new WorkspaceManagedSqlServerSecurityAlertPolicyOperations(this);
     WorkspaceManagedSqlServerVulnerabilityAssessments     = new WorkspaceManagedSqlServerVulnerabilityAssessmentsOperations(this);
     WorkspaceManagedSqlServerEncryptionProtector          = new WorkspaceManagedSqlServerEncryptionProtectorOperations(this);
     WorkspaceManagedSqlServerUsages                       = new WorkspaceManagedSqlServerUsagesOperations(this);
     WorkspaceManagedSqlServerRecoverableSqlPools          = new WorkspaceManagedSqlServerRecoverableSqlPoolsOperations(this);
     Workspaces            = new WorkspacesOperations(this);
     WorkspaceAadAdmins    = new WorkspaceAadAdminsOperations(this);
     WorkspaceSqlAadAdmins = new WorkspaceSqlAadAdminsOperations(this);
     WorkspaceManagedIdentitySqlControlSettings = new WorkspaceManagedIdentitySqlControlSettingsOperations(this);
     RestorableDroppedSqlPools = new RestorableDroppedSqlPoolsOperations(this);
     BaseUri        = new System.Uri("https://management.azure.com");
     ApiVersion     = "2021-03-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 <IntegrationRuntime>("type"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <IntegrationRuntime>("type"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <CustomSetupBase>("type"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <CustomSetupBase>("type"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <SecretBase>("type"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <SecretBase>("type"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <LinkedIntegrationRuntimeType>("authorizationType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <LinkedIntegrationRuntimeType>("authorizationType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <IntegrationRuntimeStatus>("type"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <IntegrationRuntimeStatus>("type"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <SsisObjectMetadata>("type"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <SsisObjectMetadata>("type"));
     CustomInitialize();
     DeserializationSettings.Converters.Add(new TransformationJsonConverter());
     DeserializationSettings.Converters.Add(new CloudErrorJsonConverter());
 }