/// <summary>
 /// Retrieve a list of webhooks.
 /// <see href="http://aka.ms/azureautomationsdk/webhookoperations" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of an Azure Resource group.
 /// </param>
 /// <param name='automationAccountName'>
 /// The name of the automation account.
 /// </param>
 /// <param name='odataQuery'>
 /// OData parameters to apply to the operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <Webhook> > ListByAutomationAccountAsync(this IWebhookOperations operations, string resourceGroupName, string automationAccountName, ODataQuery <Webhook> odataQuery = default(ODataQuery <Webhook>), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByAutomationAccountWithHttpMessagesAsync(resourceGroupName, automationAccountName, odataQuery, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Retrieve a list of webhooks.
 /// <see href="http://aka.ms/azureautomationsdk/webhookoperations" />
 /// </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 <Webhook> > ListByAutomationAccountNextAsync(this IWebhookOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByAutomationAccountNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Initializes a new instance of the AutomationManagementClient class.
 /// </summary>
 /// <param name='httpClient'>
 /// The Http client
 /// </param>
 public AutomationManagementClient(HttpClient httpClient)
     : base(httpClient)
 {
     this._activities = new ActivityOperations(this);
     this._agentRegistrationInformation = new AgentRegistrationOperation(this);
     this._automationAccounts           = new AutomationAccountOperations(this);
     this._certificates       = new CertificateOperations(this);
     this._connections        = new ConnectionOperations(this);
     this._connectionTypes    = new ConnectionTypeOperations(this);
     this._psCredentials      = new CredentialOperations(this);
     this._compilationJobs    = new DscCompilationJobOperations(this);
     this._configurations     = new DscConfigurationOperations(this);
     this._nodeConfigurations = new DscNodeConfigurationOperations(this);
     this._nodes       = new DscNodeOperations(this);
     this._nodeReports = new DscNodeReportsOperations(this);
     this._hybridRunbookWorkerGroups = new HybridRunbookWorkerGroupOperations(this);
     this._jobs              = new JobOperations(this);
     this._jobSchedules      = new JobScheduleOperations(this);
     this._jobStreams        = new JobStreamOperations(this);
     this._modules           = new ModuleOperations(this);
     this._runbookDraft      = new RunbookDraftOperations(this);
     this._runbooks          = new RunbookOperations(this);
     this._schedules         = new ScheduleOperations(this);
     this._statistics        = new StatisticsOperations(this);
     this._testJobs          = new TestJobOperations(this);
     this._typeFields        = new TypeFieldOperations(this);
     this._usages            = new UsageOperations(this);
     this._variables         = new VariableOperations(this);
     this._webhooks          = new WebhookOperations(this);
     this._resourceNamespace = "Microsoft.Automation";
     this._apiVersion        = "2014-06-01";
     this._longRunningOperationInitialTimeout = -1;
     this._longRunningOperationRetryTimeout   = -1;
     this.HttpClient.Timeout = TimeSpan.FromSeconds(300);
 }
 /// <summary>
 /// Update the webhook identified by webhook name.
 /// <see href="http://aka.ms/azureautomationsdk/webhookoperations" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of an Azure Resource group.
 /// </param>
 /// <param name='automationAccountName'>
 /// The name of the automation account.
 /// </param>
 /// <param name='webhookName'>
 /// The webhook name.
 /// </param>
 /// <param name='parameters'>
 /// The update parameters for webhook.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <Webhook> UpdateAsync(this IWebhookOperations operations, string resourceGroupName, string automationAccountName, string webhookName, WebhookUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, automationAccountName, webhookName, parameters, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Generates a Uri for use in creating a webhook.
 /// <see href="http://aka.ms/azureautomationsdk/webhookoperations" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of an Azure Resource group.
 /// </param>
 /// <param name='automationAccountName'>
 /// The name of the automation account.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <string> GenerateUriAsync(this IWebhookOperations operations, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GenerateUriWithHttpMessagesAsync(resourceGroupName, automationAccountName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Create the webhook identified by webhook name.  (see
 /// http://aka.ms/azureautomationsdk/webhookoperations for more
 /// information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Automation.IWebhookOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group
 /// </param>
 /// <param name='automationAccount'>
 /// Required. The automation account name.
 /// </param>
 /// <param name='parameters'>
 /// Required. The create or update parameters for webhook.
 /// </param>
 /// <returns>
 /// The response model for the create or update webhook operation.
 /// </returns>
 public static WebhookCreateOrUpdateResponse CreateOrUpdate(this IWebhookOperations operations, string resourceGroupName, string automationAccount, WebhookCreateOrUpdateParameters parameters)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IWebhookOperations)s).CreateOrUpdateAsync(resourceGroupName, automationAccount, parameters);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Retrieve next list of webhooks.  (see
 /// http://aka.ms/azureautomationsdk/webhookoperations for more
 /// information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Automation.IWebhookOperations.
 /// </param>
 /// <param name='nextLink'>
 /// Required. The link to retrieve next set of items.
 /// </param>
 /// <returns>
 /// The response model for the list webhook operation.
 /// </returns>
 public static WebhookListResponse ListNext(this IWebhookOperations operations, string nextLink)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IWebhookOperations)s).ListNextAsync(nextLink);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Retrieve a list of webhooks.  (see
 /// http://aka.ms/azureautomationsdk/webhookoperations for more
 /// information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Automation.IWebhookOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group
 /// </param>
 /// <param name='automationAccount'>
 /// Required. The automation account name.
 /// </param>
 /// <param name='runbookName'>
 /// Optional. The automation runbook name.
 /// </param>
 /// <returns>
 /// The response model for the list webhook operation.
 /// </returns>
 public static WebhookListResponse List(this IWebhookOperations operations, string resourceGroupName, string automationAccount, string runbookName)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IWebhookOperations)s).ListAsync(resourceGroupName, automationAccount, runbookName);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Esempio n. 9
0
 public Events(IQueue queue, IWebhookOperations webhook, ILogTracer log, IContainers containers, ICreds creds)
 {
     _queue      = queue;
     _webhook    = webhook;
     _log        = log;
     _containers = containers;
     _creds      = creds;
 }
Esempio n. 10
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='value'>
 /// </param>
 public static IList <WebhookEventType> Put(this IWebhookOperations operations, string locationId, IEnumerable <WebhookEventType> value)
 {
     return(Task
            .Factory
            .StartNew(s => ((IWebhookOperations)s).PutAsync(locationId, value), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default)
            .Unwrap()
            .GetAwaiter()
            .GetResult());
 }
Esempio n. 11
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IList <WebhookEventType> > GetAsync(this IWebhookOperations operations,
                                                               string locationId,
                                                               CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var result = await operations.GetWithHttpMessagesAsync(locationId, null, cancellationToken).ConfigureAwait(false))
     {
         return(result.Body);
     }
 }
Esempio n. 12
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='id'>
 /// </param>
 /// <param name='value'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IList <WebhookEventType> > PutAsync(this IWebhookOperations operations,
                                                               string locationId,
                                                               IEnumerable <WebhookEventType> value,
                                                               CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var result = await operations.PutWithHttpMessagesAsync(locationId, value, null, cancellationToken).ConfigureAwait(false))
     {
         return(new List <WebhookEventType>(result.Body));
     }
 }
Esempio n. 13
0
 public Events(IQueue queue, IWebhookOperations webhook, ILogTracer log, IContainers containers, ICreds creds)
 {
     _queue      = queue;
     _webhook    = webhook;
     _log        = log;
     _containers = containers;
     _creds      = creds;
     _options    = new JsonSerializerOptions(EntityConverter.GetJsonSerializerOptions())
     {
         DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull
     };
     _options.Converters.Add(new RemoveUserInfo());
 }
 /// <summary>
 /// Retrieve a list of webhooks.  (see
 /// http://aka.ms/azureautomationsdk/webhookoperations for more
 /// information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Automation.IWebhookOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group
 /// </param>
 /// <param name='automationAccount'>
 /// Required. The automation account name.
 /// </param>
 /// <param name='runbookName'>
 /// Optional. The automation runbook name.
 /// </param>
 /// <returns>
 /// The response model for the list webhook operation.
 /// </returns>
 public static Task <WebhookListResponse> ListAsync(this IWebhookOperations operations, string resourceGroupName, string automationAccount, string runbookName)
 {
     return(operations.ListAsync(resourceGroupName, automationAccount, runbookName, CancellationToken.None));
 }
 /// <summary>
 /// Generates a Uri for use in creating a webhook.  (see
 /// http://aka.ms/azureautomationsdk/webhookoperations for more
 /// information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Automation.IWebhookOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group.
 /// </param>
 /// <param name='automationAccount'>
 /// Required. The automation account name.
 /// </param>
 /// <returns>
 /// The response model for the webhook get uri response.
 /// </returns>
 public static Task <WebhookGenerateUriResponse> GenerateUriAsync(this IWebhookOperations operations, string resourceGroupName, string automationAccount)
 {
     return(operations.GenerateUriAsync(resourceGroupName, automationAccount, CancellationToken.None));
 }
 /// <summary>
 /// Delete the webhook by name.  (see
 /// http://aka.ms/azureautomationsdk/webhookoperations for more
 /// information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Automation.IWebhookOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group
 /// </param>
 /// <param name='automationAccount'>
 /// Required. The automation account name.
 /// </param>
 /// <param name='webhookName'>
 /// Required. The webhook name.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static Task <AzureOperationResponse> DeleteAsync(this IWebhookOperations operations, string resourceGroupName, string automationAccount, string webhookName)
 {
     return(operations.DeleteAsync(resourceGroupName, automationAccount, webhookName, CancellationToken.None));
 }
 /// <summary>
 /// Delete the webhook by name.
 /// <see href="http://aka.ms/azureautomationsdk/webhookoperations" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of an Azure Resource group.
 /// </param>
 /// <param name='automationAccountName'>
 /// The name of the automation account.
 /// </param>
 /// <param name='webhookName'>
 /// The webhook name.
 /// </param>
 public static void Delete(this IWebhookOperations operations, string resourceGroupName, string automationAccountName, string webhookName)
 {
     operations.DeleteAsync(resourceGroupName, automationAccountName, webhookName).GetAwaiter().GetResult();
 }
 /// <summary>
 /// Generates a Uri for use in creating a webhook.
 /// <see href="http://aka.ms/azureautomationsdk/webhookoperations" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of an Azure Resource group.
 /// </param>
 /// <param name='automationAccountName'>
 /// The name of the automation account.
 /// </param>
 public static string GenerateUri(this IWebhookOperations operations, string resourceGroupName, string automationAccountName)
 {
     return(operations.GenerateUriAsync(resourceGroupName, automationAccountName).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Retrieve next list of webhooks.  (see
 /// http://aka.ms/azureautomationsdk/webhookoperations for more
 /// information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Automation.IWebhookOperations.
 /// </param>
 /// <param name='nextLink'>
 /// Required. The link to retrieve next set of items.
 /// </param>
 /// <returns>
 /// The response model for the list webhook operation.
 /// </returns>
 public static Task <WebhookListResponse> ListNextAsync(this IWebhookOperations operations, string nextLink)
 {
     return(operations.ListNextAsync(nextLink, CancellationToken.None));
 }
 /// <summary>
 /// Retrieve a list of webhooks.
 /// <see href="http://aka.ms/azureautomationsdk/webhookoperations" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of an Azure Resource group.
 /// </param>
 /// <param name='automationAccountName'>
 /// The name of the automation account.
 /// </param>
 /// <param name='odataQuery'>
 /// OData parameters to apply to the operation.
 /// </param>
 public static IPage <Webhook> ListByAutomationAccount(this IWebhookOperations operations, string resourceGroupName, string automationAccountName, ODataQuery <Webhook> odataQuery = default(ODataQuery <Webhook>))
 {
     return(operations.ListByAutomationAccountAsync(resourceGroupName, automationAccountName, odataQuery).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Update the webhook identified by webhook name.
 /// <see href="http://aka.ms/azureautomationsdk/webhookoperations" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of an Azure Resource group.
 /// </param>
 /// <param name='automationAccountName'>
 /// The name of the automation account.
 /// </param>
 /// <param name='webhookName'>
 /// The webhook name.
 /// </param>
 /// <param name='parameters'>
 /// The update parameters for webhook.
 /// </param>
 public static Webhook Update(this IWebhookOperations operations, string resourceGroupName, string automationAccountName, string webhookName, WebhookUpdateParameters parameters)
 {
     return(operations.UpdateAsync(resourceGroupName, automationAccountName, webhookName, parameters).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Delete the webhook by name.
 /// <see href="http://aka.ms/azureautomationsdk/webhookoperations" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of an Azure Resource group.
 /// </param>
 /// <param name='automationAccountName'>
 /// The name of the automation account.
 /// </param>
 /// <param name='webhookName'>
 /// The webhook name.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task DeleteAsync(this IWebhookOperations operations, string resourceGroupName, string automationAccountName, string webhookName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, automationAccountName, webhookName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
 /// <summary>
 /// Patch the webhook identified by webhook name.  (see
 /// http://aka.ms/azureautomationsdk/webhookoperations for more
 /// information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Automation.IWebhookOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group
 /// </param>
 /// <param name='automationAccount'>
 /// Required. The automation account name.
 /// </param>
 /// <param name='parameters'>
 /// Required. The patch parameters for webhook.
 /// </param>
 /// <returns>
 /// The response model for the get webhook operation.
 /// </returns>
 public static Task <WebhookGetResponse> PatchAsync(this IWebhookOperations operations, string resourceGroupName, string automationAccount, WebhookPatchParameters parameters)
 {
     return(operations.PatchAsync(resourceGroupName, automationAccount, parameters, CancellationToken.None));
 }
 /// <summary>
 /// Retrieve a list of webhooks.
 /// <see href="http://aka.ms/azureautomationsdk/webhookoperations" />
 /// </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 <Webhook> ListByAutomationAccountNext(this IWebhookOperations operations, string nextPageLink)
 {
     return(operations.ListByAutomationAccountNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Create the webhook identified by webhook name.  (see
 /// http://aka.ms/azureautomationsdk/webhookoperations for more
 /// information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Automation.IWebhookOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group
 /// </param>
 /// <param name='automationAccount'>
 /// Required. The automation account name.
 /// </param>
 /// <param name='parameters'>
 /// Required. The create or update parameters for webhook.
 /// </param>
 /// <returns>
 /// The response model for the create or update webhook operation.
 /// </returns>
 public static Task <WebhookCreateOrUpdateResponse> CreateOrUpdateAsync(this IWebhookOperations operations, string resourceGroupName, string automationAccount, WebhookCreateOrUpdateParameters parameters)
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, automationAccount, parameters, CancellationToken.None));
 }
Esempio n. 26
0
 /// <summary>
 /// Initializes client properties.
 /// </summary>
 private void Initialize()
 {
     PrivateEndpointConnections   = new PrivateEndpointConnectionsOperations(this);
     PrivateLinkResources         = new PrivateLinkResourcesOperations(this);
     Python2Package               = new Python2PackageOperations(this);
     AgentRegistrationInformation = new AgentRegistrationInformationOperations(this);
     DscNode                     = new DscNodeOperations(this);
     NodeReports                 = new NodeReportsOperations(this);
     DscNodeConfiguration        = new DscNodeConfigurationOperations(this);
     DscCompilationJob           = new DscCompilationJobOperations(this);
     DscCompilationJobStream     = new DscCompilationJobStreamOperations(this);
     NodeCountInformation        = new NodeCountInformationOperations(this);
     SourceControl               = new SourceControlOperations(this);
     SourceControlSyncJob        = new SourceControlSyncJobOperations(this);
     SourceControlSyncJobStreams = new SourceControlSyncJobStreamsOperations(this);
     AutomationAccount           = new AutomationAccountOperations(this);
     Statistics                  = new StatisticsOperations(this);
     Usages                   = new UsagesOperations(this);
     Keys                     = new KeysOperations(this);
     Certificate              = new CertificateOperations(this);
     Connection               = new ConnectionOperations(this);
     ConnectionType           = new ConnectionTypeOperations(this);
     Credential               = new CredentialOperations(this);
     HybridRunbookWorkerGroup = new HybridRunbookWorkerGroupOperations(this);
     JobSchedule              = new JobScheduleOperations(this);
     LinkedWorkspace          = new LinkedWorkspaceOperations(this);
     Activity                 = new ActivityOperations(this);
     Module                   = new ModuleOperations(this);
     ObjectDataTypes          = new ObjectDataTypesOperations(this);
     Fields                   = new FieldsOperations(this);
     Schedule                 = new ScheduleOperations(this);
     Variable                 = new VariableOperations(this);
     Watcher                  = new WatcherOperations(this);
     DscConfiguration         = new DscConfigurationOperations(this);
     Job        = new JobOperations(this);
     JobStream  = new JobStreamOperations(this);
     Operations = new Operations(this);
     SoftwareUpdateConfigurations           = new SoftwareUpdateConfigurationsOperations(this);
     SoftwareUpdateConfigurationRuns        = new SoftwareUpdateConfigurationRunsOperations(this);
     SoftwareUpdateConfigurationMachineRuns = new SoftwareUpdateConfigurationMachineRunsOperations(this);
     RunbookDraft   = new RunbookDraftOperations(this);
     Runbook        = new RunbookOperations(this);
     TestJobStreams = new TestJobStreamsOperations(this);
     TestJob        = new TestJobOperations(this);
     Webhook        = new WebhookOperations(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());
 }