示例#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());
 }
示例#2
0
 /// <summary>
 /// Initializes client properties.
 /// </summary>
 private void Initialize()
 {
     Operations          = new Operations(this);
     Factories           = new FactoriesOperations(this);
     ExposureControl     = new ExposureControlOperations(this);
     IntegrationRuntimes = new IntegrationRuntimesOperations(this);
     IntegrationRuntimeObjectMetadata = new IntegrationRuntimeObjectMetadataOperations(this);
     IntegrationRuntimeNodes          = new IntegrationRuntimeNodesOperations(this);
     LinkedServices             = new LinkedServicesOperations(this);
     Datasets                   = new DatasetsOperations(this);
     Pipelines                  = new PipelinesOperations(this);
     PipelineRuns               = new PipelineRunsOperations(this);
     ActivityRuns               = new ActivityRunsOperations(this);
     Triggers                   = new TriggersOperations(this);
     TriggerRuns                = new TriggerRunsOperations(this);
     DataFlows                  = new DataFlowsOperations(this);
     DataFlowDebugSession       = new DataFlowDebugSessionOperations(this);
     ManagedVirtualNetworks     = new ManagedVirtualNetworksOperations(this);
     ManagedPrivateEndpoints    = new ManagedPrivateEndpointsOperations(this);
     PrivateEndPointConnections = new PrivateEndPointConnectionsOperations(this);
     PrivateEndpointConnection  = new PrivateEndpointConnectionOperations(this);
     PrivateLinkResources       = new PrivateLinkResourcesOperations(this);
     GlobalParameters           = new GlobalParametersOperations(this);
     BaseUri        = new System.Uri("https://management.azure.com");
     ApiVersion     = "2018-06-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 <SecretBase>("type"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <SecretBase>("type"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <FactoryRepoConfiguration>("type"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <FactoryRepoConfiguration>("type"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <IntegrationRuntime>("type"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <IntegrationRuntime>("type"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <IntegrationRuntimeStatus>("type"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <IntegrationRuntimeStatus>("type"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <LinkedService>("type"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <LinkedService>("type"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <Dataset>("type"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <Dataset>("type"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <Activity>("type"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <Activity>("type"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <Trigger>("type"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <Trigger>("type"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <DataFlow>("type"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <DataFlow>("type"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <Credential>("type"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <Credential>("type"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <WebLinkedServiceTypeProperties>("authenticationType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <WebLinkedServiceTypeProperties>("authenticationType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <DatasetStorageFormat>("type"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <DatasetStorageFormat>("type"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <DatasetLocation>("type"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <DatasetLocation>("type"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <DependencyReference>("type"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <DependencyReference>("type"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <CompressionReadSettings>("type"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <CompressionReadSettings>("type"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <FormatReadSettings>("type"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <FormatReadSettings>("type"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <StoreReadSettings>("type"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <StoreReadSettings>("type"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <ExportSettings>("type"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <ExportSettings>("type"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <CopySource>("type"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <CopySource>("type"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <ImportSettings>("type"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <ImportSettings>("type"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <StoreWriteSettings>("type"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <StoreWriteSettings>("type"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <FormatWriteSettings>("type"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <FormatWriteSettings>("type"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <CopySink>("type"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <CopySink>("type"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <LinkedIntegrationRuntimeType>("authorizationType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <LinkedIntegrationRuntimeType>("authorizationType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <CustomSetupBase>("type"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <CustomSetupBase>("type"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <SsisObjectMetadata>("type"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <SsisObjectMetadata>("type"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <CopyTranslator>("type"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <CopyTranslator>("type"));
     CustomInitialize();
     DeserializationSettings.Converters.Add(new TransformationJsonConverter());
     DeserializationSettings.Converters.Add(new CloudErrorJsonConverter());
 }