/// <summary> /// Lists all recurrences. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='accountName'> /// The Azure Data Lake Analytics account to execute job operations on. /// </param> /// <param name='startDateTime'> /// The start date for when to get the list of recurrences. The startDateTime /// and endDateTime can be no more than 30 days apart. /// </param> /// <param name='endDateTime'> /// The end date for when to get the list of recurrences. The startDateTime and /// endDateTime can be no more than 30 days apart. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <JobRecurrenceInformation> > ListAsync(this IRecurrenceOperations operations, string accountName, System.DateTimeOffset?startDateTime = default(System.DateTimeOffset?), System.DateTimeOffset?endDateTime = default(System.DateTimeOffset?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(accountName, startDateTime, endDateTime, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Lists all recurrences. /// </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 <JobRecurrenceInformation> > ListNextAsync(this IRecurrenceOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Initializes client properties. /// </summary> private void Initialize() { Job = new JobOperations(this); Pipeline = new PipelineOperations(this); Recurrence = new RecurrenceOperations(this); BaseUri = "https://{accountName}.{adlaJobDnsSuffix}"; AdlaJobDnsSuffix = "azuredatalakeanalytics.net"; ApiVersion = "2017-09-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 <JobProperties>("type")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <JobProperties>("type")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <CreateJobProperties>("type")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <CreateJobProperties>("type")); CustomInitialize(); DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); }
/// <summary> /// Gets the recurrence information for the specified recurrence ID. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='accountName'> /// The Azure Data Lake Analytics account to execute job operations on. /// </param> /// <param name='recurrenceIdentity'> /// Recurrence ID. /// </param> /// <param name='startDateTime'> /// The start date for when to get the recurrence and aggregate its data. The /// startDateTime and endDateTime can be no more than 30 days apart. /// </param> /// <param name='endDateTime'> /// The end date for when to get recurrence and aggregate its data. The /// startDateTime and endDateTime can be no more than 30 days apart. /// </param> public static JobRecurrenceInformation Get(this IRecurrenceOperations operations, string accountName, System.Guid recurrenceIdentity, System.DateTimeOffset?startDateTime = default(System.DateTimeOffset?), System.DateTimeOffset?endDateTime = default(System.DateTimeOffset?)) { return(operations.GetAsync(accountName, recurrenceIdentity, startDateTime, endDateTime).GetAwaiter().GetResult()); }
/// <summary> /// Lists all recurrences. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='accountName'> /// The Azure Data Lake Analytics account to execute job operations on. /// </param> /// <param name='startDateTime'> /// The start date for when to get the list of recurrences. The startDateTime /// and endDateTime can be no more than 30 days apart. /// </param> /// <param name='endDateTime'> /// The end date for when to get the list of recurrences. The startDateTime and /// endDateTime can be no more than 30 days apart. /// </param> public static IPage <JobRecurrenceInformation> List(this IRecurrenceOperations operations, string accountName, System.DateTimeOffset?startDateTime = default(System.DateTimeOffset?), System.DateTimeOffset?endDateTime = default(System.DateTimeOffset?)) { return(operations.ListAsync(accountName, startDateTime, endDateTime).GetAwaiter().GetResult()); }
/// <summary> /// Lists all recurrences. /// </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 <JobRecurrenceInformation> ListNext(this IRecurrenceOperations operations, string nextPageLink) { return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult()); }