/// <summary> /// Deletes API for all types in bulk. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='typesDef'> /// A composite object that captures all types to be deleted /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task DeleteAtlasTypeDefsAsync(this ITypesREST operations, JsonAtlasTypesDef typesDef, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.DeleteAtlasTypeDefsWithHttpMessagesAsync(typesDef, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Updates all types in bulk, changes detected in the type definitions would /// be persisted. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='typesDef'> /// A composite object that captures all type definition changes. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <JsonAtlasTypesDef> UpdateAtlasTypeDefsAsync(this ITypesREST operations, JsonAtlasTypesDef typesDef, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.UpdateAtlasTypeDefsWithHttpMessagesAsync(typesDef, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Deletes API for all types in bulk. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='typesDef'> /// A composite object that captures all types to be deleted /// </param> public static void DeleteAtlasTypeDefs(this ITypesREST operations, JsonAtlasTypesDef typesDef) { operations.DeleteAtlasTypeDefsAsync(typesDef).GetAwaiter().GetResult(); }
/// <summary> /// Updates all types in bulk, changes detected in the type definitions would /// be persisted. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='typesDef'> /// A composite object that captures all type definition changes. /// </param> public static JsonAtlasTypesDef UpdateAtlasTypeDefs(this ITypesREST operations, JsonAtlasTypesDef typesDef) { return(operations.UpdateAtlasTypeDefsAsync(typesDef).GetAwaiter().GetResult()); }