/// <summary>
 /// Refresh the secret of the named value specified by its identifier.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the API Management service.
 /// </param>
 /// <param name='namedValueId'>
 /// Identifier of the NamedValue.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <NamedValueContract> BeginRefreshSecretAsync(this INamedValueOperations operations, string resourceGroupName, string serviceName, string namedValueId, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.BeginRefreshSecretWithHttpMessagesAsync(resourceGroupName, serviceName, namedValueId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Lists a collection of named values defined within a service instance.
 /// <see href="https://docs.microsoft.com/en-us/azure/api-management/api-management-howto-properties" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the API Management service.
 /// </param>
 /// <param name='odataQuery'>
 /// OData parameters to apply to the operation.
 /// </param>
 /// <param name='isKeyVaultRefreshFailed'>
 /// When set to true, the response contains only named value entities which
 /// failed refresh.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <NamedValueContract> > ListByServiceAsync(this INamedValueOperations operations, string resourceGroupName, string serviceName, ODataQuery <NamedValueContract> odataQuery = default(ODataQuery <NamedValueContract>), bool?isKeyVaultRefreshFailed = default(bool?), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByServiceWithHttpMessagesAsync(resourceGroupName, serviceName, odataQuery, isKeyVaultRefreshFailed, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Updates the specific named value.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the API Management service.
 /// </param>
 /// <param name='namedValueId'>
 /// Identifier of the NamedValue.
 /// </param>
 /// <param name='parameters'>
 /// Update parameters.
 /// </param>
 /// <param name='ifMatch'>
 /// ETag of the Entity. ETag should match the current entity state from the
 /// header response of the GET request or it should be * for unconditional
 /// update.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <NamedValueContract> BeginUpdateAsync(this INamedValueOperations operations, string resourceGroupName, string serviceName, string namedValueId, NamedValueUpdateParameters parameters, string ifMatch, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, serviceName, namedValueId, parameters, ifMatch, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Gets the entity state (Etag) version of the named value specified by its
 /// identifier.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the API Management service.
 /// </param>
 /// <param name='namedValueId'>
 /// Identifier of the NamedValue.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <NamedValueGetEntityTagHeaders> GetEntityTagAsync(this INamedValueOperations operations, string resourceGroupName, string serviceName, string namedValueId, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetEntityTagWithHttpMessagesAsync(resourceGroupName, serviceName, namedValueId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Headers);
     }
 }
 /// <summary>
 /// Gets the entity state (Etag) version of the named value specified by its
 /// identifier.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the API Management service.
 /// </param>
 /// <param name='namedValueId'>
 /// Identifier of the NamedValue.
 /// </param>
 public static NamedValueGetEntityTagHeaders GetEntityTag(this INamedValueOperations operations, string resourceGroupName, string serviceName, string namedValueId)
 {
     return(operations.GetEntityTagAsync(resourceGroupName, serviceName, namedValueId).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Lists a collection of named values defined within a service instance.
 /// <see href="https://docs.microsoft.com/en-us/azure/api-management/api-management-howto-properties" />
 /// </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 <NamedValueContract> > ListByServiceNextAsync(this INamedValueOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByServiceNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Lists a collection of named values defined within a service instance.
 /// <see href="https://docs.microsoft.com/en-us/azure/api-management/api-management-howto-properties" />
 /// </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 <NamedValueContract> ListByServiceNext(this INamedValueOperations operations, string nextPageLink)
 {
     return(operations.ListByServiceNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Refresh the secret of the named value specified by its identifier.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the API Management service.
 /// </param>
 /// <param name='namedValueId'>
 /// Identifier of the NamedValue.
 /// </param>
 public static NamedValueContract BeginRefreshSecret(this INamedValueOperations operations, string resourceGroupName, string serviceName, string namedValueId)
 {
     return(operations.BeginRefreshSecretAsync(resourceGroupName, serviceName, namedValueId).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Updates the specific named value.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the API Management service.
 /// </param>
 /// <param name='namedValueId'>
 /// Identifier of the NamedValue.
 /// </param>
 /// <param name='parameters'>
 /// Update parameters.
 /// </param>
 /// <param name='ifMatch'>
 /// ETag of the Entity. ETag should match the current entity state from the
 /// header response of the GET request or it should be * for unconditional
 /// update.
 /// </param>
 public static NamedValueContract BeginUpdate(this INamedValueOperations operations, string resourceGroupName, string serviceName, string namedValueId, NamedValueUpdateParameters parameters, string ifMatch)
 {
     return(operations.BeginUpdateAsync(resourceGroupName, serviceName, namedValueId, parameters, ifMatch).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Lists a collection of named values defined within a service instance.
 /// <see href="https://docs.microsoft.com/en-us/azure/api-management/api-management-howto-properties" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the API Management service.
 /// </param>
 /// <param name='odataQuery'>
 /// OData parameters to apply to the operation.
 /// </param>
 /// <param name='isKeyVaultRefreshFailed'>
 /// When set to true, the response contains only named value entities which
 /// failed refresh.
 /// </param>
 public static IPage <NamedValueContract> ListByService(this INamedValueOperations operations, string resourceGroupName, string serviceName, ODataQuery <NamedValueContract> odataQuery = default(ODataQuery <NamedValueContract>), bool?isKeyVaultRefreshFailed = default(bool?))
 {
     return(operations.ListByServiceAsync(resourceGroupName, serviceName, odataQuery, isKeyVaultRefreshFailed).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Gets the secret of the named value specified by its identifier.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the API Management service.
 /// </param>
 /// <param name='namedValueId'>
 /// Identifier of the NamedValue.
 /// </param>
 public static NamedValueSecretContract ListValue(this INamedValueOperations operations, string resourceGroupName, string serviceName, string namedValueId)
 {
     return(operations.ListValueAsync(resourceGroupName, serviceName, namedValueId).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Deletes specific named value from the API Management service instance.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the API Management service.
 /// </param>
 /// <param name='namedValueId'>
 /// Identifier of the NamedValue.
 /// </param>
 /// <param name='ifMatch'>
 /// ETag of the Entity. ETag should match the current entity state from the
 /// header response of the GET request or it should be * for unconditional
 /// update.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task DeleteAsync(this INamedValueOperations operations, string resourceGroupName, string serviceName, string namedValueId, string ifMatch, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, serviceName, namedValueId, ifMatch, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
 /// <summary>
 /// Deletes specific named value from the API Management service instance.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the API Management service.
 /// </param>
 /// <param name='namedValueId'>
 /// Identifier of the NamedValue.
 /// </param>
 /// <param name='ifMatch'>
 /// ETag of the Entity. ETag should match the current entity state from the
 /// header response of the GET request or it should be * for unconditional
 /// update.
 /// </param>
 public static void Delete(this INamedValueOperations operations, string resourceGroupName, string serviceName, string namedValueId, string ifMatch)
 {
     operations.DeleteAsync(resourceGroupName, serviceName, namedValueId, ifMatch).GetAwaiter().GetResult();
 }
 /// <summary>
 /// Creates or updates named value.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the API Management service.
 /// </param>
 /// <param name='namedValueId'>
 /// Identifier of the NamedValue.
 /// </param>
 /// <param name='parameters'>
 /// Create parameters.
 /// </param>
 /// <param name='ifMatch'>
 /// ETag of the Entity. Not required when creating an entity, but required when
 /// updating an entity.
 /// </param>
 public static NamedValueContract CreateOrUpdate(this INamedValueOperations operations, string resourceGroupName, string serviceName, string namedValueId, NamedValueCreateContract parameters, string ifMatch = default(string))
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, serviceName, namedValueId, parameters, ifMatch).GetAwaiter().GetResult());
 }