/// <summary>
 /// Gets the properties of the connected 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='connectedRegistryName'>
 /// The name of the connected registry.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async System.Threading.Tasks.Task <ConnectedRegistry> GetAsync(this IConnectedRegistriesOperations operations, string resourceGroupName, string registryName, string connectedRegistryName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, registryName, connectedRegistryName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Gets the properties of the connected 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='connectedRegistryName'>
 /// The name of the connected registry.
 /// </param>
 public static ConnectedRegistry Get(this IConnectedRegistriesOperations operations, string resourceGroupName, string registryName, string connectedRegistryName)
 {
     return(operations.GetAsync(resourceGroupName, registryName, connectedRegistryName).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Lists all connected registries for the specified 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>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async System.Threading.Tasks.Task <IPage <ConnectedRegistry> > ListNextAsync(this IConnectedRegistriesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Lists all connected registries for the specified 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 <ConnectedRegistry> ListNext(this IConnectedRegistriesOperations operations, string nextPageLink)
 {
     return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Deactivates the connected registry instance.
 /// </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='connectedRegistryName'>
 /// The name of the connected registry.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async System.Threading.Tasks.Task BeginDeactivateAsync(this IConnectedRegistriesOperations operations, string resourceGroupName, string registryName, string connectedRegistryName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.BeginDeactivateWithHttpMessagesAsync(resourceGroupName, registryName, connectedRegistryName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
 /// <summary>
 /// Deactivates the connected registry instance.
 /// </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='connectedRegistryName'>
 /// The name of the connected registry.
 /// </param>
 public static void BeginDeactivate(this IConnectedRegistriesOperations operations, string resourceGroupName, string registryName, string connectedRegistryName)
 {
     operations.BeginDeactivateAsync(resourceGroupName, registryName, connectedRegistryName).GetAwaiter().GetResult();
 }
 /// <summary>
 /// Updates a connected registry with the specified parameters.
 /// </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='connectedRegistryName'>
 /// The name of the connected registry.
 /// </param>
 /// <param name='connectedRegistryUpdateParameters'>
 /// The parameters for updating a connectedRegistry.
 /// </param>
 public static ConnectedRegistry BeginUpdate(this IConnectedRegistriesOperations operations, string resourceGroupName, string registryName, string connectedRegistryName, ConnectedRegistryUpdateParameters connectedRegistryUpdateParameters)
 {
     return(operations.BeginUpdateAsync(resourceGroupName, registryName, connectedRegistryName, connectedRegistryUpdateParameters).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Lists all connected registries for the specified 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='filter'>
 /// An OData filter expression that describes a subset of connectedRegistries
 /// to return. The parameters that can be filtered are parent.id (the resource
 /// id of the connectedRegistry parent), mode, and connectionState. The
 /// supported operator is eq.
 /// </param>
 public static IPage <ConnectedRegistry> List(this IConnectedRegistriesOperations operations, string resourceGroupName, string registryName, string filter = default(string))
 {
     return(operations.ListAsync(resourceGroupName, registryName, filter).GetAwaiter().GetResult());
 }