/// <summary> /// Update a specific private endpoint connection. /// </summary> /// <remarks> /// Update a specific private endpoint connection under a topic or domain. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group within the user's subscription. /// </param> /// <param name='parentType'> /// The type of the parent resource. This can be either \'topics\' or /// \'domains\'. Possible values include: 'topics', 'domains' /// </param> /// <param name='parentName'> /// The name of the parent resource (namely, either, the topic name or domain /// name). /// </param> /// <param name='privateEndpointConnectionName'> /// The name of the private endpoint connection connection. /// </param> /// <param name='privateEndpointConnection'> /// The private endpoint connection object to update. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <PrivateEndpointConnection> UpdateAsync(this IPrivateEndpointConnectionsOperations operations, string resourceGroupName, string parentType, string parentName, string privateEndpointConnectionName, PrivateEndpointConnection privateEndpointConnection, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, parentType, parentName, privateEndpointConnectionName, privateEndpointConnection, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Update private endpoint connection. /// </summary> /// <remarks> /// Update private endpoint connection state under video analyzer account. /// </remarks> /// <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='accountName'> /// The Video Analyzer account name. /// </param> /// <param name='name'> /// Private endpoint connection name. /// </param> /// <param name='parameters'> /// The request parameters /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <PrivateEndpointConnection> CreateOrUpdateAsync(this IPrivateEndpointConnectionsOperations operations, string resourceGroupName, string accountName, string name, PrivateEndpointConnection parameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, accountName, name, parameters, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Update the state of specified private endpoint connection associated with /// the storage sync service. /// </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='storageSyncServiceName'> /// The name of the storage sync service name within the specified resource /// group. /// </param> /// <param name='privateEndpointConnectionName'> /// The name of the private endpoint connection associated with the Azure /// resource /// </param> /// <param name='properties'> /// The private endpoint connection properties. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <PrivateEndpointConnection> BeginCreateAsync(this IPrivateEndpointConnectionsOperations operations, string resourceGroupName, string storageSyncServiceName, string privateEndpointConnectionName, PrivateEndpointConnection properties, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.BeginCreateWithHttpMessagesAsync(resourceGroupName, storageSyncServiceName, privateEndpointConnectionName, properties, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Updates a Private Endpoint connection to the Search service in the given /// resource group. /// <see href="https://aka.ms/search-manage" /> /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group within the current subscription. You can /// obtain this value from the Azure Resource Manager API or the portal. /// </param> /// <param name='searchServiceName'> /// The name of the Azure Cognitive Search service associated with the /// specified resource group. /// </param> /// <param name='privateEndpointConnectionName'> /// The name of the private endpoint connection to the Azure Cognitive Search /// service with the specified resource group. /// </param> /// <param name='privateEndpointConnection'> /// The definition of the private endpoint connection to update. /// </param> /// <param name='searchManagementRequestOptions'> /// Additional parameters for the operation /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <PrivateEndpointConnection> UpdateAsync(this IPrivateEndpointConnectionsOperations operations, string resourceGroupName, string searchServiceName, string privateEndpointConnectionName, PrivateEndpointConnection privateEndpointConnection, SearchManagementRequestOptions searchManagementRequestOptions = default(SearchManagementRequestOptions), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, searchServiceName, privateEndpointConnectionName, privateEndpointConnection, searchManagementRequestOptions, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets the available PrivateEndpointConnections within a namespace. /// <see href="https://msdn.microsoft.com/en-us/library/azure/mt639412.aspx" /> /// </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 <PrivateEndpointConnection> > ListNextAsync(this IPrivateEndpointConnectionsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Get all private endpoint connections. /// </summary> /// <remarks> /// Get all private endpoint connections under video analyzer account. /// </remarks> /// <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='accountName'> /// The Video Analyzer account name. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <PrivateEndpointConnectionListResult> ListAsync(this IPrivateEndpointConnectionsOperations operations, string resourceGroupName, string accountName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, accountName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Updates tags on private endpoint connection. /// </summary> /// <remarks> /// Updates private endpoint connection with the specified tags. /// </remarks> /// <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='serverName'> /// The name of the server. /// </param> /// <param name='privateEndpointConnectionName'> /// </param> /// <param name='parameters'> /// Parameters supplied to the Update private endpoint connection Tags /// operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <PrivateEndpointConnection> BeginUpdateTagsAsync(this IPrivateEndpointConnectionsOperations operations, string resourceGroupName, string serverName, string privateEndpointConnectionName, TagsObject parameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.BeginUpdateTagsWithHttpMessagesAsync(resourceGroupName, serverName, privateEndpointConnectionName, parameters, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Initializes client properties. /// </summary> private void Initialize() { DatabaseAccounts = new DatabaseAccountsOperations(this); Operations = new Operations(this); Database = new DatabaseOperations(this); Collection = new CollectionOperations(this); CollectionRegion = new CollectionRegionOperations(this); DatabaseAccountRegion = new DatabaseAccountRegionOperations(this); PercentileSourceTarget = new PercentileSourceTargetOperations(this); PercentileTarget = new PercentileTargetOperations(this); Percentile = new PercentileOperations(this); CollectionPartitionRegion = new CollectionPartitionRegionOperations(this); CollectionPartition = new CollectionPartitionOperations(this); PartitionKeyRangeId = new PartitionKeyRangeIdOperations(this); PartitionKeyRangeIdRegion = new PartitionKeyRangeIdRegionOperations(this); SqlResources = new SqlResourcesOperations(this); MongoDBResources = new MongoDBResourcesOperations(this); TableResources = new TableResourcesOperations(this); CassandraResources = new CassandraResourcesOperations(this); GremlinResources = new GremlinResourcesOperations(this); NotebookWorkspaces = new NotebookWorkspacesOperations(this); PrivateLinkResources = new PrivateLinkResourcesOperations(this); PrivateEndpointConnections = new PrivateEndpointConnectionsOperations(this); BaseUri = new System.Uri("https://management.azure.com"); ApiVersion = "2021-04-15"; 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 <BackupPolicy>("type")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <BackupPolicy>("type")); CustomInitialize(); DeserializationSettings.Converters.Add(new TransformationJsonConverter()); DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); }
/// <summary> /// Gets the specified private endpoint connection associated with the /// workspace. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group in which workspace is located. /// </param> /// <param name='workspaceName'> /// Name of Azure Machine Learning workspace. /// </param> /// <param name='privateEndpointConnectionName'> /// The name of the private endpoint connection associated with the workspace /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <PrivateEndpointConnection> GetAsync(this IPrivateEndpointConnectionsOperations operations, string resourceGroupName, string workspaceName, string privateEndpointConnectionName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, workspaceName, privateEndpointConnectionName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Initializes client properties. /// </summary> private void Initialize() { OpenShiftManagedClusters = new OpenShiftManagedClustersOperations(this); ContainerServices = new ContainerServicesOperations(this); Operations = new Operations(this); ManagedClusters = new ManagedClustersOperations(this); AgentPools = new AgentPoolsOperations(this); PrivateEndpointConnections = new PrivateEndpointConnectionsOperations(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 <OpenShiftManagedClusterBaseIdentityProvider>("kind")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <OpenShiftManagedClusterBaseIdentityProvider>("kind")); CustomInitialize(); DeserializationSettings.Converters.Add(new TransformationJsonConverter()); DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); }
/// <summary> /// Initializes client properties. /// </summary> private void Initialize() { DigitalTwins = new DigitalTwinsOperations(this); DigitalTwinsEndpoint = new DigitalTwinsEndpointOperations(this); Operations = new Operations(this); PrivateLinkResources = new PrivateLinkResourcesOperations(this); PrivateEndpointConnections = new PrivateEndpointConnectionsOperations(this); BaseUri = new System.Uri("https://management.azure.com"); ApiVersion = "2020-12-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 <DigitalTwinsEndpointResourceProperties>("endpointType")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <DigitalTwinsEndpointResourceProperties>("endpointType")); CustomInitialize(); DeserializationSettings.Converters.Add(new TransformationJsonConverter()); DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); }
/// <summary> /// Initializes client properties. /// </summary> private void Initialize() { Operations = new Operations(this); IotHubResource = new IotHubResourceOperations(this); ResourceProviderCommon = new ResourceProviderCommonOperations(this); Certificates = new CertificatesOperations(this); IotHub = new IotHubOperations(this); PrivateLinkResources = new PrivateLinkResourcesOperations(this); PrivateEndpointConnections = new PrivateEndpointConnectionsOperations(this); BaseUri = new System.Uri("https://management.azure.com"); ApiVersion = "2021-07-02"; 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> /// Deletes the specified private endpoint connection associated with the /// workspace. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group in which workspace is located. /// </param> /// <param name='workspaceName'> /// Name of Azure Machine Learning workspace. /// </param> /// <param name='privateEndpointConnectionName'> /// The name of the private endpoint connection associated with the workspace /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task DeleteAsync(this IPrivateEndpointConnectionsOperations operations, string resourceGroupName, string workspaceName, string privateEndpointConnectionName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, workspaceName, privateEndpointConnectionName, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Update the state of specified private endpoint connection associated with /// the container registry. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group to which the container registry belongs. /// </param> /// <param name='registryName'> /// The name of the container registry. /// </param> /// <param name='privateEndpointConnectionName'> /// The name of the private endpoint connection. /// </param> /// <param name='privateEndpoint'> /// The resource of private endpoint. /// </param> /// <param name='privateLinkServiceConnectionState'> /// A collection of information about the state of the connection between /// service consumer and provider. /// </param> public static PrivateEndpointConnection CreateOrUpdate(this IPrivateEndpointConnectionsOperations operations, string resourceGroupName, string registryName, string privateEndpointConnectionName, PrivateEndpoint privateEndpoint = default(PrivateEndpoint), PrivateLinkServiceConnectionState privateLinkServiceConnectionState = default(PrivateLinkServiceConnectionState)) { return(operations.CreateOrUpdateAsync(resourceGroupName, registryName, privateEndpointConnectionName, privateEndpoint, privateLinkServiceConnectionState).GetAwaiter().GetResult()); }
/// <summary> /// Deletes the specified private endpoint connection associated with the /// workspace. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group in which workspace is located. /// </param> /// <param name='workspaceName'> /// Name of Azure Machine Learning workspace. /// </param> /// <param name='privateEndpointConnectionName'> /// The name of the private endpoint connection associated with the workspace /// </param> public static void Delete(this IPrivateEndpointConnectionsOperations operations, string resourceGroupName, string workspaceName, string privateEndpointConnectionName) { operations.DeleteAsync(resourceGroupName, workspaceName, privateEndpointConnectionName).GetAwaiter().GetResult(); }
/// <summary> /// List all private endpoint connections in a container registry. /// </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 <PrivateEndpointConnection> ListNext(this IPrivateEndpointConnectionsOperations operations, string nextPageLink) { return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// Get the specified private endpoint connection associated with the container /// registry. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group to which the container registry belongs. /// </param> /// <param name='registryName'> /// The name of the container registry. /// </param> /// <param name='privateEndpointConnectionName'> /// The name of the private endpoint connection. /// </param> public static PrivateEndpointConnection Get(this IPrivateEndpointConnectionsOperations operations, string resourceGroupName, string registryName, string privateEndpointConnectionName) { return(operations.GetAsync(resourceGroupName, registryName, privateEndpointConnectionName).GetAwaiter().GetResult()); }
/// <summary> /// Deletes the specified private endpoint connection associated with the /// container registry. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group to which the container registry belongs. /// </param> /// <param name='registryName'> /// The name of the container registry. /// </param> /// <param name='privateEndpointConnectionName'> /// The name of the private endpoint connection. /// </param> public static void BeginDelete(this IPrivateEndpointConnectionsOperations operations, string resourceGroupName, string registryName, string privateEndpointConnectionName) { operations.BeginDeleteAsync(resourceGroupName, registryName, privateEndpointConnectionName).GetAwaiter().GetResult(); }
/// <summary> /// Deletes the specified private endpoint connection associated with the /// container registry. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group to which the container registry belongs. /// </param> /// <param name='registryName'> /// The name of the container registry. /// </param> /// <param name='privateEndpointConnectionName'> /// The name of the private endpoint connection. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async System.Threading.Tasks.Task BeginDeleteAsync(this IPrivateEndpointConnectionsOperations operations, string resourceGroupName, string registryName, string privateEndpointConnectionName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, registryName, privateEndpointConnectionName, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// List all private endpoint connections in a container registry. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group to which the container registry belongs. /// </param> /// <param name='registryName'> /// The name of the container registry. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async System.Threading.Tasks.Task <IPage <PrivateEndpointConnection> > ListAsync(this IPrivateEndpointConnectionsOperations operations, string resourceGroupName, string registryName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, registryName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Update the state of specified private endpoint connection associated with /// the container registry. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group to which the container registry belongs. /// </param> /// <param name='registryName'> /// The name of the container registry. /// </param> /// <param name='privateEndpointConnectionName'> /// The name of the private endpoint connection. /// </param> /// <param name='privateEndpoint'> /// The resource of private endpoint. /// </param> /// <param name='privateLinkServiceConnectionState'> /// A collection of information about the state of the connection between /// service consumer and provider. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async System.Threading.Tasks.Task <PrivateEndpointConnection> BeginCreateOrUpdateAsync(this IPrivateEndpointConnectionsOperations operations, string resourceGroupName, string registryName, string privateEndpointConnectionName, PrivateEndpoint privateEndpoint = default(PrivateEndpoint), PrivateLinkServiceConnectionState privateLinkServiceConnectionState = default(PrivateLinkServiceConnectionState), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, registryName, privateEndpointConnectionName, privateEndpoint, privateLinkServiceConnectionState, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Deletes the specified private endpoint connection associated with the key /// vault. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group that contains the key vault. /// </param> /// <param name='vaultName'> /// The name of the key vault. /// </param> /// <param name='privateEndpointConnectionName'> /// Name of the private endpoint connection associated with the key vault. /// </param> public static PrivateEndpointConnection BeginDelete(this IPrivateEndpointConnectionsOperations operations, string resourceGroupName, string vaultName, string privateEndpointConnectionName) { return(operations.BeginDeleteAsync(resourceGroupName, vaultName, privateEndpointConnectionName).GetAwaiter().GetResult()); }
/// <summary> /// Get private endpoint connection. /// </summary> /// <remarks> /// Get private endpoint connection under video analyzer account. /// </remarks> /// <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='accountName'> /// The Video Analyzer account name. /// </param> /// <param name='name'> /// Private endpoint connection name. /// </param> public static PrivateEndpointConnection Get(this IPrivateEndpointConnectionsOperations operations, string resourceGroupName, string accountName, string name) { return(operations.GetAsync(resourceGroupName, accountName, name).GetAwaiter().GetResult()); }
internal PrivateEndpointConnectionsImpl(IPrivateEndpointConnectionsOperations client, CosmosDBAccountImpl parent) : base(parent, "PrivateEndpointConnection") { this.Client = client; }
/// <summary> /// Gets all private endpoint connections on a private link scope. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='scopeName'> /// The name of the Azure Monitor PrivateLinkScope resource. /// </param> public static IPage <PrivateEndpointConnection> ListByPrivateLinkScope(this IPrivateEndpointConnectionsOperations operations, string resourceGroupName, string scopeName) { return(operations.ListByPrivateLinkScopeAsync(resourceGroupName, scopeName).GetAwaiter().GetResult()); }
/// <summary> /// Update private endpoint connection. /// </summary> /// <remarks> /// Update private endpoint connection state under video analyzer account. /// </remarks> /// <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='accountName'> /// The Video Analyzer account name. /// </param> /// <param name='name'> /// Private endpoint connection name. /// </param> /// <param name='parameters'> /// The request parameters /// </param> public static PrivateEndpointConnection CreateOrUpdate(this IPrivateEndpointConnectionsOperations operations, string resourceGroupName, string accountName, string name, PrivateEndpointConnection parameters) { return(operations.CreateOrUpdateAsync(resourceGroupName, accountName, name, parameters).GetAwaiter().GetResult()); }
/// <summary> /// Approve or reject a private endpoint connection with a given name. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='scopeName'> /// The name of the Azure Monitor PrivateLinkScope resource. /// </param> /// <param name='privateEndpointConnectionName'> /// The name of the private endpoint connection. /// </param> /// <param name='parameters'> /// </param> public static PrivateEndpointConnection BeginCreateOrUpdate(this IPrivateEndpointConnectionsOperations operations, string resourceGroupName, string scopeName, string privateEndpointConnectionName, PrivateEndpointConnection parameters) { return(operations.BeginCreateOrUpdateAsync(resourceGroupName, scopeName, privateEndpointConnectionName, parameters).GetAwaiter().GetResult()); }
/// <summary> /// Gets all private endpoint connections on a private link scope. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='scopeName'> /// The name of the Azure Monitor PrivateLinkScope resource. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <PrivateEndpointConnection> > ListByPrivateLinkScopeAsync(this IPrivateEndpointConnectionsOperations operations, string resourceGroupName, string scopeName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByPrivateLinkScopeWithHttpMessagesAsync(resourceGroupName, scopeName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Update the state of specified private endpoint connection associated with /// the workspace. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group in which workspace is located. /// </param> /// <param name='workspaceName'> /// Name of Azure Machine Learning workspace. /// </param> /// <param name='privateEndpointConnectionName'> /// The name of the private endpoint connection associated with the workspace /// </param> /// <param name='properties'> /// The private endpoint connection properties. /// </param> public static PrivateEndpointConnection Put(this IPrivateEndpointConnectionsOperations operations, string resourceGroupName, string workspaceName, string privateEndpointConnectionName, PrivateEndpointConnection properties) { return(operations.PutAsync(resourceGroupName, workspaceName, privateEndpointConnectionName, properties).GetAwaiter().GetResult()); }
/// <summary> /// Delete private endpoint connection. /// </summary> /// <remarks> /// Delete private endpoint connection under video analyzer account. /// </remarks> /// <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='accountName'> /// The Video Analyzer account name. /// </param> /// <param name='name'> /// Private endpoint connection name. /// </param> public static void Delete(this IPrivateEndpointConnectionsOperations operations, string resourceGroupName, string accountName, string name) { operations.DeleteAsync(resourceGroupName, accountName, name).GetAwaiter().GetResult(); }