Esempio n. 1
0
 /// <summary>
 /// Get the Service Registry and its properties.
 /// </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='serviceName'>
 /// The name of the Service resource.
 /// </param>
 /// <param name='serviceRegistryName'>
 /// The name of Service Registry.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ServiceRegistryResource> GetAsync(this IServiceRegistriesOperations operations, string resourceGroupName, string serviceName, string serviceRegistryName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, serviceName, serviceRegistryName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Handles requests to list all resources in a Service.
 /// </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 <ServiceRegistryResource> > ListNextAsync(this IServiceRegistriesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Esempio n. 3
0
 /// <summary>
 /// Create the default Service Registry or update the existing Service
 /// Registry.
 /// </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='serviceName'>
 /// The name of the Service resource.
 /// </param>
 /// <param name='serviceRegistryName'>
 /// The name of Service Registry.
 /// </param>
 public static ServiceRegistryResource CreateOrUpdate(this IServiceRegistriesOperations operations, string resourceGroupName, string serviceName, string serviceRegistryName)
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, serviceName, serviceRegistryName).GetAwaiter().GetResult());
 }
Esempio n. 4
0
 /// <summary>
 /// Handles requests to list all resources in a Service.
 /// </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 <ServiceRegistryResource> ListNext(this IServiceRegistriesOperations operations, string nextPageLink)
 {
     return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
Esempio n. 5
0
 /// <summary>
 /// Disable the default Service Registry.
 /// </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='serviceName'>
 /// The name of the Service resource.
 /// </param>
 /// <param name='serviceRegistryName'>
 /// The name of Service Registry.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task BeginDeleteAsync(this IServiceRegistriesOperations operations, string resourceGroupName, string serviceName, string serviceRegistryName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, serviceName, serviceRegistryName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
Esempio n. 6
0
 /// <summary>
 /// Disable the default Service Registry.
 /// </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='serviceName'>
 /// The name of the Service resource.
 /// </param>
 /// <param name='serviceRegistryName'>
 /// The name of Service Registry.
 /// </param>
 public static void BeginDelete(this IServiceRegistriesOperations operations, string resourceGroupName, string serviceName, string serviceRegistryName)
 {
     operations.BeginDeleteAsync(resourceGroupName, serviceName, serviceRegistryName).GetAwaiter().GetResult();
 }
Esempio n. 7
0
 /// <summary>
 /// Handles requests to list all resources in a Service.
 /// </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='serviceName'>
 /// The name of the Service resource.
 /// </param>
 public static IPage <ServiceRegistryResource> List(this IServiceRegistriesOperations operations, string resourceGroupName, string serviceName)
 {
     return(operations.ListAsync(resourceGroupName, serviceName).GetAwaiter().GetResult());
 }