Пример #1
0
 /// <summary>
 /// List shared private link resources
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the resource. You can obtain
 /// this value from the Azure Resource Manager API or the portal.
 /// </param>
 /// <param name='resourceName'>
 /// The name of the resource.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <SharedPrivateLinkResource> > ListAsync(this ISignalRSharedPrivateLinkResourcesOperations operations, string resourceGroupName, string resourceName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, resourceName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Пример #2
0
 /// <summary>
 /// Create or update a shared private link resource
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='sharedPrivateLinkResourceName'>
 /// The name of the shared private link resource
 /// </param>
 /// <param name='parameters'>
 /// The shared private link resource
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the resource. You can obtain
 /// this value from the Azure Resource Manager API or the portal.
 /// </param>
 /// <param name='resourceName'>
 /// The name of the resource.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <SharedPrivateLinkResource> CreateOrUpdateAsync(this ISignalRSharedPrivateLinkResourcesOperations operations, string sharedPrivateLinkResourceName, SharedPrivateLinkResource parameters, string resourceGroupName, string resourceName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(sharedPrivateLinkResourceName, parameters, resourceGroupName, resourceName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Initializes client properties.
 /// </summary>
 private void Initialize()
 {
     Operations = new Operations(this);
     SignalR    = new SignalROperations(this);
     Usages     = new UsagesOperations(this);
     SignalRPrivateEndpointConnections = new SignalRPrivateEndpointConnectionsOperations(this);
     SignalRPrivateLinkResources       = new SignalRPrivateLinkResourcesOperations(this);
     SignalRSharedPrivateLinkResources = new SignalRSharedPrivateLinkResourcesOperations(this);
     BaseUri        = new System.Uri("https://management.azure.com");
     ApiVersion     = "2021-04-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()
         }
     };
     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());
 }
Пример #4
0
 /// <summary>
 /// Get the specified shared private link resource
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='sharedPrivateLinkResourceName'>
 /// The name of the shared private link resource
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the resource. You can obtain
 /// this value from the Azure Resource Manager API or the portal.
 /// </param>
 /// <param name='resourceName'>
 /// The name of the resource.
 /// </param>
 public static SharedPrivateLinkResource Get(this ISignalRSharedPrivateLinkResourcesOperations operations, string sharedPrivateLinkResourceName, string resourceGroupName, string resourceName)
 {
     return(operations.GetAsync(sharedPrivateLinkResourceName, resourceGroupName, resourceName).GetAwaiter().GetResult());
 }
Пример #5
0
 /// <summary>
 /// List shared private link resources
 /// </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 <SharedPrivateLinkResource> ListNext(this ISignalRSharedPrivateLinkResourcesOperations operations, string nextPageLink)
 {
     return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
Пример #6
0
 /// <summary>
 /// Delete the specified shared private link resource
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='sharedPrivateLinkResourceName'>
 /// The name of the shared private link resource
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the resource. You can obtain
 /// this value from the Azure Resource Manager API or the portal.
 /// </param>
 /// <param name='resourceName'>
 /// The name of the resource.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task BeginDeleteAsync(this ISignalRSharedPrivateLinkResourcesOperations operations, string sharedPrivateLinkResourceName, string resourceGroupName, string resourceName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.BeginDeleteWithHttpMessagesAsync(sharedPrivateLinkResourceName, resourceGroupName, resourceName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
Пример #7
0
 /// <summary>
 /// Delete the specified shared private link resource
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='sharedPrivateLinkResourceName'>
 /// The name of the shared private link resource
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the resource. You can obtain
 /// this value from the Azure Resource Manager API or the portal.
 /// </param>
 /// <param name='resourceName'>
 /// The name of the resource.
 /// </param>
 public static void BeginDelete(this ISignalRSharedPrivateLinkResourcesOperations operations, string sharedPrivateLinkResourceName, string resourceGroupName, string resourceName)
 {
     operations.BeginDeleteAsync(sharedPrivateLinkResourceName, resourceGroupName, resourceName).GetAwaiter().GetResult();
 }
Пример #8
0
 /// <summary>
 /// Create or update a shared private link resource
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='sharedPrivateLinkResourceName'>
 /// The name of the shared private link resource
 /// </param>
 /// <param name='parameters'>
 /// The shared private link resource
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the resource. You can obtain
 /// this value from the Azure Resource Manager API or the portal.
 /// </param>
 /// <param name='resourceName'>
 /// The name of the resource.
 /// </param>
 public static SharedPrivateLinkResource BeginCreateOrUpdate(this ISignalRSharedPrivateLinkResourcesOperations operations, string sharedPrivateLinkResourceName, SharedPrivateLinkResource parameters, string resourceGroupName, string resourceName)
 {
     return(operations.BeginCreateOrUpdateAsync(sharedPrivateLinkResourceName, parameters, resourceGroupName, resourceName).GetAwaiter().GetResult());
 }