/// <summary> /// Initializes client properties. /// </summary> private void Initialize() { ApplicationTypes = new ApplicationTypesOperations(this); ApplicationTypeVersions = new ApplicationTypeVersionsOperations(this); Applications = new ApplicationsOperations(this); Services = new ServicesOperations(this); ManagedClusters = new ManagedClustersOperations(this); ManagedClusterVersion = new ManagedClusterVersionOperations(this); Operations = new Operations(this); NodeTypes = new NodeTypesOperations(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() } }; SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <Partition>("partitionScheme")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <Partition>("partitionScheme")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <ScalingMechanism>("kind")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <ScalingMechanism>("kind")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <ScalingTrigger>("kind")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <ScalingTrigger>("kind")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <ServicePlacementPolicy>("type")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <ServicePlacementPolicy>("type")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <ServiceResourceProperties>("serviceKind")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <ServiceResourceProperties>("serviceKind")); CustomInitialize(); DeserializationSettings.Converters.Add(new TransformationJsonConverter()); DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); }
/// <summary> /// Initializes client properties. /// </summary> private void Initialize() { Runs = new RunsOperations(this); Assets = new AssetsOperations(this); MLModels = new MLModelsOperations(this); Operations = new Operations(this); Profiles = new ProfilesOperations(this); Services = new ServicesOperations(this); Events = new EventsOperations(this); Experiments = new ExperimentsOperations(this); RunArtifacts = new RunArtifactsOperations(this); RunMetrics = new RunMetricsOperations(this); DataStores = new DataStoresOperations(this); Artifacts = new ArtifactsOperations(this); HyperparameterTuning = new HyperparameterTuningOperations(this); BaseUri = new System.Uri("http://localhost"); 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() } }; 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 <ServiceResponseBase>("computeType")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <ServiceResponseBase>("computeType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <CreateServiceRequest>("computeType")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <CreateServiceRequest>("computeType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <ImageResponseBase>("imageFlavor")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <ImageResponseBase>("imageFlavor")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <HyperDrivePolicyConfigBase>("name")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <HyperDrivePolicyConfigBase>("name")); CustomInitialize(); DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); }
/// <summary> /// Initializes client properties. /// </summary> private void Initialize() { Services = new ServicesOperations(this); PrivateEndpointConnections = new PrivateEndpointConnectionsOperations(this); PrivateLinkResources = new PrivateLinkResourcesOperations(this); Workspaces = new WorkspacesOperations(this); DicomServices = new DicomServicesOperations(this); IotConnectors = new IotConnectorsOperations(this); FhirDestinations = new FhirDestinationsOperations(this); IotConnectorFhirDestination = new IotConnectorFhirDestinationOperations(this); FhirServices = new FhirServicesOperations(this); WorkspacePrivateEndpointConnections = new WorkspacePrivateEndpointConnectionsOperations(this); WorkspacePrivateLinkResources = new WorkspacePrivateLinkResourcesOperations(this); Operations = new Operations(this); OperationResults = new OperationResultsOperations(this); BaseUri = new System.Uri("https://management.azure.com"); ApiVersion = "2021-11-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() { Services = new ServicesOperations(this); ConfigServers = new ConfigServersOperations(this); MonitoringSettings = new MonitoringSettingsOperations(this); Apps = new AppsOperations(this); Bindings = new BindingsOperations(this); Certificates = new CertificatesOperations(this); CustomDomains = new CustomDomainsOperations(this); Deployments = new DeploymentsOperations(this); Operations = new Operations(this); RuntimeVersions = new RuntimeVersionsOperations(this); Skus = new SkusOperations(this); BaseUri = new System.Uri("https://management.azure.com"); ApiVersion = "2020-11-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() } }; 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 CloudErrorJsonConverter()); }
/// <summary> /// Initializes client properties. /// </summary> private void Initialize() { Services = new ServicesOperations(this); Operations = new Operations(this); OperationResults = new OperationResultsOperations(this); BaseUri = new System.Uri("https://management.azure.com"); ApiVersion = "2019-09-16"; 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() } }; 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 CloudErrorJsonConverter()); }
/// <summary> /// Initializes client properties. /// </summary> private void Initialize() { Services = new ServicesOperations(this); ConfigServers = new ConfigServersOperations(this); ConfigurationServices = new ConfigurationServicesOperations(this); ServiceRegistries = new ServiceRegistriesOperations(this); BuildService = new BuildServiceOperations(this); BuildpackBinding = new BuildpackBindingOperations(this); BuildServiceBuilder = new BuildServiceBuilderOperations(this); BuildServiceAgentPool = new BuildServiceAgentPoolOperations(this); MonitoringSettings = new MonitoringSettingsOperations(this); Apps = new AppsOperations(this); Bindings = new BindingsOperations(this); Storages = new StoragesOperations(this); Certificates = new CertificatesOperations(this); CustomDomains = new CustomDomainsOperations(this); Deployments = new DeploymentsOperations(this); Operations = new Operations(this); RuntimeVersions = new RuntimeVersionsOperations(this); Skus = new SkusOperations(this); Gateways = new GatewaysOperations(this); GatewayRouteConfigs = new GatewayRouteConfigsOperations(this); GatewayCustomDomains = new GatewayCustomDomainsOperations(this); ApiPortals = new ApiPortalsOperations(this); ApiPortalCustomDomains = new ApiPortalCustomDomainsOperations(this); BaseUri = new System.Uri("https://management.azure.com"); ApiVersion = "2022-01-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() } }; 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 <CustomPersistentDiskProperties>("type")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <CustomPersistentDiskProperties>("type")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <CertificateProperties>("type")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <CertificateProperties>("type")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <StorageProperties>("storageType")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <StorageProperties>("storageType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <UserSourceInfo>("type")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <UserSourceInfo>("type")); CustomInitialize(); DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); }
/// <summary> /// Initializes client properties. /// </summary> private void Initialize() { ResourceSkus = new ResourceSkusOperations(this); Services = new ServicesOperations(this); Tasks = new TasksOperations(this); ServiceTasks = new ServiceTasksOperations(this); Projects = new ProjectsOperations(this); Usages = new UsagesOperations(this); Operations = new Operations(this); Files = new FilesOperations(this); BaseUri = new System.Uri("https://management.azure.com"); ApiVersion = "2018-07-15-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() } }; SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <CommandProperties>("commandType")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <CommandProperties>("commandType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <MigrateSsisTaskOutput>("resultType")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <MigrateSsisTaskOutput>("resultType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <ConnectionInfo>("type")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <ConnectionInfo>("type")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <MongoDbProgress>("resultType")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <MongoDbProgress>("resultType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <MigrateOracleAzureDbPostgreSqlSyncTaskOutput>("resultType")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <MigrateOracleAzureDbPostgreSqlSyncTaskOutput>("resultType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput>("resultType")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput>("resultType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <MigrateMySqlAzureDbForMySqlSyncTaskOutput>("resultType")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <MigrateMySqlAzureDbForMySqlSyncTaskOutput>("resultType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <MigrateSqlServerSqlDbSyncTaskOutput>("resultType")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <MigrateSqlServerSqlDbSyncTaskOutput>("resultType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <MigrateSqlServerSqlDbTaskOutput>("resultType")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <MigrateSqlServerSqlDbTaskOutput>("resultType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <MigrateSqlServerSqlMISyncTaskOutput>("resultType")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <MigrateSqlServerSqlMISyncTaskOutput>("resultType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <MigrateSqlServerSqlMITaskOutput>("resultType")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <MigrateSqlServerSqlMITaskOutput>("resultType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <ConnectToSourceSqlServerTaskOutput>("resultType")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <ConnectToSourceSqlServerTaskOutput>("resultType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <ProjectTaskProperties>("taskType")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <ProjectTaskProperties>("taskType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <MigrateSchemaSqlServerSqlDbTaskOutput>("resultType")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <MigrateSchemaSqlServerSqlDbTaskOutput>("resultType")); CustomInitialize(); DeserializationSettings.Converters.Add(new TransformationJsonConverter()); DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); }