Esempio n. 1
0
 /// <summary>
 /// Gets information about the specified Compute Node Extension.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='poolId'>
 /// The ID of the Pool that contains the Compute Node.
 /// </param>
 /// <param name='nodeId'>
 /// The ID of the Compute Node that contains the extensions.
 /// </param>
 /// <param name='extensionName'>
 /// The name of the of the Compute Node Extension that you want to get
 /// information about.
 /// </param>
 /// <param name='computeNodeExtensionGetOptions'>
 /// Additional parameters for the operation
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <NodeVMExtension> GetAsync(this IComputeNodeExtensionOperations operations, string poolId, string nodeId, string extensionName, ComputeNodeExtensionGetOptions computeNodeExtensionGetOptions = default(ComputeNodeExtensionGetOptions), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(poolId, nodeId, extensionName, computeNodeExtensionGetOptions, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Lists the Compute Nodes Extensions in the specified Pool.
 /// </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='computeNodeExtensionListNextOptions'>
 /// Additional parameters for the operation
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <NodeVMExtension> > ListNextAsync(this IComputeNodeExtensionOperations operations, string nextPageLink, ComputeNodeExtensionListNextOptions computeNodeExtensionListNextOptions = default(ComputeNodeExtensionListNextOptions), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, computeNodeExtensionListNextOptions, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Initializes client properties.
 /// </summary>
 private void Initialize()
 {
     Application                      = new ApplicationOperations(this);
     Pool                             = new PoolOperations(this);
     Account                          = new AccountOperations(this);
     Job                              = new JobOperations(this);
     Certificate                      = new CertificateOperations(this);
     File                             = new FileOperations(this);
     JobSchedule                      = new JobScheduleOperations(this);
     Task                             = new TaskOperations(this);
     ComputeNode                      = new ComputeNodeOperations(this);
     ComputeNodeExtension             = new ComputeNodeExtensionOperations(this);
     BaseUri                          = "{batchUrl}";
     ApiVersion                       = "2021-06-01.14.0";
     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());
 }
Esempio n. 4
0
 /// <summary>
 /// Lists the Compute Nodes Extensions in the specified Pool.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='poolId'>
 /// The ID of the Pool that contains Compute Node.
 /// </param>
 /// <param name='nodeId'>
 /// The ID of the Compute Node that you want to list extensions.
 /// </param>
 /// <param name='computeNodeExtensionListOptions'>
 /// Additional parameters for the operation
 /// </param>
 public static IPage <NodeVMExtension> List(this IComputeNodeExtensionOperations operations, string poolId, string nodeId, ComputeNodeExtensionListOptions computeNodeExtensionListOptions = default(ComputeNodeExtensionListOptions))
 {
     return(operations.ListAsync(poolId, nodeId, computeNodeExtensionListOptions).GetAwaiter().GetResult());
 }
Esempio n. 5
0
 /// <summary>
 /// Gets information about the specified Compute Node Extension.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='poolId'>
 /// The ID of the Pool that contains the Compute Node.
 /// </param>
 /// <param name='nodeId'>
 /// The ID of the Compute Node that contains the extensions.
 /// </param>
 /// <param name='extensionName'>
 /// The name of the of the Compute Node Extension that you want to get
 /// information about.
 /// </param>
 /// <param name='computeNodeExtensionGetOptions'>
 /// Additional parameters for the operation
 /// </param>
 public static NodeVMExtension Get(this IComputeNodeExtensionOperations operations, string poolId, string nodeId, string extensionName, ComputeNodeExtensionGetOptions computeNodeExtensionGetOptions = default(ComputeNodeExtensionGetOptions))
 {
     return(operations.GetAsync(poolId, nodeId, extensionName, computeNodeExtensionGetOptions).GetAwaiter().GetResult());
 }
Esempio n. 6
0
 /// <summary>
 /// Lists the Compute Nodes Extensions in the specified Pool.
 /// </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='computeNodeExtensionListNextOptions'>
 /// Additional parameters for the operation
 /// </param>
 public static IPage <NodeVMExtension> ListNext(this IComputeNodeExtensionOperations operations, string nextPageLink, ComputeNodeExtensionListNextOptions computeNodeExtensionListNextOptions = default(ComputeNodeExtensionListNextOptions))
 {
     return(operations.ListNextAsync(nextPageLink, computeNodeExtensionListNextOptions).GetAwaiter().GetResult());
 }