/// <summary>
 /// Gets the specified private endpoint by resource group.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='privateEndpointName'>
 /// The name of the private endpoint.
 /// </param>
 /// <param name='expand'>
 /// Expands referenced resources.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <PrivateEndpoint> GetAsync(this IPrivateEndpointsOperations operations, string resourceGroupName, string privateEndpointName, string expand = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, privateEndpointName, expand, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #2
0
 /// <summary>
 /// Creates a Stream Analytics Private Endpoint or replaces an already existing
 /// Private Endpoint.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='privateEndpoint'>
 /// The definition of the private endpoint that will be used to create a new
 /// cluster or replace the existing one.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='clusterName'>
 /// The name of the cluster.
 /// </param>
 /// <param name='privateEndpointName'>
 /// The name of the private endpoint.
 /// </param>
 /// <param name='ifMatch'>
 /// The ETag of the resource. Omit this value to always overwrite the current
 /// record set. Specify the last-seen ETag value to prevent accidentally
 /// overwriting concurrent changes.
 /// </param>
 /// <param name='ifNoneMatch'>
 /// Set to '*' to allow a new resource to be created, but to prevent updating
 /// an existing record set. Other values will result in a 412 Pre-condition
 /// Failed response.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <PrivateEndpoint> CreateOrUpdateAsync(this IPrivateEndpointsOperations operations, PrivateEndpoint privateEndpoint, string resourceGroupName, string clusterName, string privateEndpointName, string ifMatch = default(string), string ifNoneMatch = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(privateEndpoint, resourceGroupName, clusterName, privateEndpointName, ifMatch, ifNoneMatch, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #3
0
 /// <summary>
 /// Lists the private endpoints in the cluster.
 /// </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 <PrivateEndpoint> > ListByClusterNextAsync(this IPrivateEndpointsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByClusterNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #4
0
 /// <summary>
 /// Lists the private endpoints in the cluster.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='clusterName'>
 /// The name of the cluster.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <PrivateEndpoint> > ListByClusterAsync(this IPrivateEndpointsOperations operations, string resourceGroupName, string clusterName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByClusterWithHttpMessagesAsync(resourceGroupName, clusterName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Creates or updates an private endpoint in the specified resource group.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='privateEndpointName'>
 /// The name of the private endpoint.
 /// </param>
 /// <param name='parameters'>
 /// Parameters supplied to the create or update private endpoint operation
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <PrivateEndpoint> BeginCreateOrUpdateAsync(this IPrivateEndpointsOperations operations, string resourceGroupName, string privateEndpointName, PrivateEndpoint parameters, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, privateEndpointName, parameters, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Gets all private endpoints in a subscription.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <PrivateEndpoint> > ListBySubscriptionAsync(this IPrivateEndpointsOperations operations, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListBySubscriptionWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #7
0
 /// <summary>
 /// Initializes client properties.
 /// </summary>
 private void Initialize()
 {
     Functions        = new FunctionsOperations(this);
     Inputs           = new InputsOperations(this);
     Outputs          = new OutputsOperations(this);
     StreamingJobs    = new StreamingJobsOperations(this);
     Subscriptions    = new SubscriptionsOperations(this);
     Transformations  = new TransformationsOperations(this);
     Operations       = new Operations(this);
     Clusters         = new ClustersOperations(this);
     PrivateEndpoints = new PrivateEndpointsOperations(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()
         }
     };
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <FunctionBinding>("type"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <FunctionBinding>("type"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <FunctionProperties>("type"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <FunctionProperties>("type"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <FunctionRetrieveDefaultDefinitionParameters>("bindingType"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <FunctionRetrieveDefaultDefinitionParameters>("bindingType"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <Serialization>("type"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <Serialization>("type"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <InputProperties>("type"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <InputProperties>("type"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <StreamInputDataSource>("type"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <StreamInputDataSource>("type"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <ReferenceInputDataSource>("type"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <ReferenceInputDataSource>("type"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <OutputDataSource>("type"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <OutputDataSource>("type"));
     CustomInitialize();
     DeserializationSettings.Converters.Add(new TransformationJsonConverter());
     DeserializationSettings.Converters.Add(new CloudErrorJsonConverter());
 }
コード例 #8
0
 /// <summary>
 /// Creates a Stream Analytics Private Endpoint or replaces an already existing
 /// Private Endpoint.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='privateEndpoint'>
 /// The definition of the private endpoint that will be used to create a new
 /// cluster or replace the existing one.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='clusterName'>
 /// The name of the cluster.
 /// </param>
 /// <param name='privateEndpointName'>
 /// The name of the private endpoint.
 /// </param>
 /// <param name='ifMatch'>
 /// The ETag of the resource. Omit this value to always overwrite the current
 /// record set. Specify the last-seen ETag value to prevent accidentally
 /// overwriting concurrent changes.
 /// </param>
 /// <param name='ifNoneMatch'>
 /// Set to '*' to allow a new resource to be created, but to prevent updating
 /// an existing record set. Other values will result in a 412 Pre-condition
 /// Failed response.
 /// </param>
 public static PrivateEndpoint CreateOrUpdate(this IPrivateEndpointsOperations operations, PrivateEndpoint privateEndpoint, string resourceGroupName, string clusterName, string privateEndpointName, string ifMatch = default(string), string ifNoneMatch = default(string))
 {
     return(operations.CreateOrUpdateAsync(privateEndpoint, resourceGroupName, clusterName, privateEndpointName, ifMatch, ifNoneMatch).GetAwaiter().GetResult());
 }
コード例 #9
0
 /// <summary>
 /// Lists the private endpoints in the cluster.
 /// </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 <PrivateEndpoint> ListByClusterNext(this IPrivateEndpointsOperations operations, string nextPageLink)
 {
     return(operations.ListByClusterNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
コード例 #10
0
 /// <summary>
 /// Delete the specified private endpoint.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='clusterName'>
 /// The name of the cluster.
 /// </param>
 /// <param name='privateEndpointName'>
 /// The name of the private endpoint.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task BeginDeleteAsync(this IPrivateEndpointsOperations operations, string resourceGroupName, string clusterName, string privateEndpointName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, clusterName, privateEndpointName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
コード例 #11
0
 /// <summary>
 /// Delete the specified private endpoint.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='clusterName'>
 /// The name of the cluster.
 /// </param>
 /// <param name='privateEndpointName'>
 /// The name of the private endpoint.
 /// </param>
 public static void BeginDelete(this IPrivateEndpointsOperations operations, string resourceGroupName, string clusterName, string privateEndpointName)
 {
     operations.BeginDeleteAsync(resourceGroupName, clusterName, privateEndpointName).GetAwaiter().GetResult();
 }
コード例 #12
0
 /// <summary>
 /// Lists the private endpoints in the cluster.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='clusterName'>
 /// The name of the cluster.
 /// </param>
 public static IPage <PrivateEndpoint> ListByCluster(this IPrivateEndpointsOperations operations, string resourceGroupName, string clusterName)
 {
     return(operations.ListByClusterAsync(resourceGroupName, clusterName).GetAwaiter().GetResult());
 }
コード例 #13
0
 /// <summary>
 /// Gets information about the specified Private Endpoint.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='clusterName'>
 /// The name of the cluster.
 /// </param>
 /// <param name='privateEndpointName'>
 /// The name of the private endpoint.
 /// </param>
 public static PrivateEndpoint Get(this IPrivateEndpointsOperations operations, string resourceGroupName, string clusterName, string privateEndpointName)
 {
     return(operations.GetAsync(resourceGroupName, clusterName, privateEndpointName).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Gets the specified private endpoint by resource group.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='privateEndpointName'>
 /// The name of the private endpoint.
 /// </param>
 /// <param name='expand'>
 /// Expands referenced resources.
 /// </param>
 public static PrivateEndpoint Get(this IPrivateEndpointsOperations operations, string resourceGroupName, string privateEndpointName, string expand = default(string))
 {
     return(operations.GetAsync(resourceGroupName, privateEndpointName, expand).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Creates or updates an private endpoint in the specified resource group.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='privateEndpointName'>
 /// The name of the private endpoint.
 /// </param>
 /// <param name='parameters'>
 /// Parameters supplied to the create or update private endpoint operation
 /// </param>
 public static PrivateEndpoint BeginCreateOrUpdate(this IPrivateEndpointsOperations operations, string resourceGroupName, string privateEndpointName, PrivateEndpoint parameters)
 {
     return(operations.BeginCreateOrUpdateAsync(resourceGroupName, privateEndpointName, parameters).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Gets all private endpoints in a subscription.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static IPage <PrivateEndpoint> ListBySubscription(this IPrivateEndpointsOperations operations)
 {
     return(operations.ListBySubscriptionAsync().GetAwaiter().GetResult());
 }