/// <summary> /// Create or update an Azure Cosmos DB Gremlin graph /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of an Azure resource group. /// </param> /// <param name='accountName'> /// Cosmos DB database account name. /// </param> /// <param name='databaseName'> /// Cosmos DB database name. /// </param> /// <param name='graphName'> /// Cosmos DB graph name. /// </param> /// <param name='createUpdateGremlinGraphParameters'> /// The parameters to provide for the current Gremlin graph. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <GremlinGraphGetResults> CreateUpdateGremlinGraphAsync(this IGremlinResourcesOperations operations, string resourceGroupName, string accountName, string databaseName, string graphName, GremlinGraphCreateUpdateParameters createUpdateGremlinGraphParameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateUpdateGremlinGraphWithHttpMessagesAsync(resourceGroupName, accountName, databaseName, graphName, createUpdateGremlinGraphParameters, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }