/// <summary> /// Lists a collection of API Version Sets in the specified 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='odataQuery'> /// OData parameters to apply to the operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <ApiVersionSetContract> > ListByServiceAsync(this IApiVersionSetOperations operations, string resourceGroupName, string serviceName, ODataQuery <ApiVersionSetContract> odataQuery = default(ODataQuery <ApiVersionSetContract>), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByServiceWithHttpMessagesAsync(resourceGroupName, serviceName, odataQuery, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Updates the details of the Api VersionSet 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='versionSetId'> /// Api Version Set identifier. Must be unique in the current API Management /// service instance. /// </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 <ApiVersionSetContract> UpdateAsync(this IApiVersionSetOperations operations, string resourceGroupName, string serviceName, string versionSetId, ApiVersionSetUpdateParameters parameters, string ifMatch, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, serviceName, versionSetId, parameters, ifMatch, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets the entity state (Etag) version of the Api Version Set 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='versionSetId'> /// Api Version Set identifier. Must be unique in the current API Management /// service instance. /// </param> public static ApiVersionSetGetEntityTagHeaders GetEntityTag(this IApiVersionSetOperations operations, string resourceGroupName, string serviceName, string versionSetId) { return(operations.GetEntityTagAsync(resourceGroupName, serviceName, versionSetId).GetAwaiter().GetResult()); }
/// <summary> /// Lists a collection of API Version Sets in the specified 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='odataQuery'> /// OData parameters to apply to the operation. /// </param> public static IPage <ApiVersionSetContract> ListByService(this IApiVersionSetOperations operations, string resourceGroupName, string serviceName, ODataQuery <ApiVersionSetContract> odataQuery = default(ODataQuery <ApiVersionSetContract>)) { return(operations.ListByServiceAsync(resourceGroupName, serviceName, odataQuery).GetAwaiter().GetResult()); }
/// <summary> /// Lists a collection of API Version Sets in the specified service instance. /// </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 <ApiVersionSetContract> > ListByServiceNextAsync(this IApiVersionSetOperations 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 API Version Sets in the specified service instance. /// </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 <ApiVersionSetContract> ListByServiceNext(this IApiVersionSetOperations operations, string nextPageLink) { return(operations.ListByServiceNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// Deletes specific Api Version Set. /// </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='versionSetId'> /// Api Version Set identifier. Must be unique in the current API Management /// service instance. /// </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 IApiVersionSetOperations operations, string resourceGroupName, string serviceName, string versionSetId, string ifMatch, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, serviceName, versionSetId, ifMatch, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Deletes specific Api Version Set. /// </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='versionSetId'> /// Api Version Set identifier. Must be unique in the current API Management /// service instance. /// </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 IApiVersionSetOperations operations, string resourceGroupName, string serviceName, string versionSetId, string ifMatch) { operations.DeleteAsync(resourceGroupName, serviceName, versionSetId, ifMatch).GetAwaiter().GetResult(); }
/// <summary> /// Updates the details of the Api VersionSet 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='versionSetId'> /// Api Version Set identifier. Must be unique in the current API Management /// service instance. /// </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 ApiVersionSetContract Update(this IApiVersionSetOperations operations, string resourceGroupName, string serviceName, string versionSetId, ApiVersionSetUpdateParameters parameters, string ifMatch) { return(operations.UpdateAsync(resourceGroupName, serviceName, versionSetId, parameters, ifMatch).GetAwaiter().GetResult()); }
/// <summary> /// Gets the details of the Api Version Set 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='versionSetId'> /// Api Version Set identifier. Must be unique in the current API Management /// service instance. /// </param> public static ApiVersionSetContract Get(this IApiVersionSetOperations operations, string resourceGroupName, string serviceName, string versionSetId) { return(operations.GetAsync(resourceGroupName, serviceName, versionSetId).GetAwaiter().GetResult()); }
/// <summary> /// Gets the entity state (Etag) version of the Api Version Set 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='versionSetId'> /// Api Version Set identifier. Must be unique in the current API Management /// service instance. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ApiVersionSetGetEntityTagHeaders> GetEntityTagAsync(this IApiVersionSetOperations operations, string resourceGroupName, string serviceName, string versionSetId, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetEntityTagWithHttpMessagesAsync(resourceGroupName, serviceName, versionSetId, null, cancellationToken).ConfigureAwait(false)) { return(_result.Headers); } }