/// <summary>Snippet for DeleteSchemaAsync</summary> public async Task DeleteSchemaAsync() { // Snippet: DeleteSchemaAsync(string, CallSettings) // Additional: DeleteSchemaAsync(string, CancellationToken) // Create client SchemaServiceClient schemaServiceClient = await SchemaServiceClient.CreateAsync(); // Initialize request argument(s) string name = "projects/[PROJECT]/schemas/[SCHEMA]"; // Make the request await schemaServiceClient.DeleteSchemaAsync(name); // End snippet }
/// <summary>Snippet for DeleteSchemaAsync</summary> public async Task DeleteSchemaResourceNamesAsync() { // Snippet: DeleteSchemaAsync(SchemaName, CallSettings) // Additional: DeleteSchemaAsync(SchemaName, CancellationToken) // Create client SchemaServiceClient schemaServiceClient = await SchemaServiceClient.CreateAsync(); // Initialize request argument(s) SchemaName name = SchemaName.FromProjectSchema("[PROJECT]", "[SCHEMA]"); // Make the request await schemaServiceClient.DeleteSchemaAsync(name); // End snippet }
/// <summary>Snippet for DeleteSchemaAsync</summary> public async Task DeleteSchemaRequestObjectAsync() { // Snippet: DeleteSchemaAsync(DeleteSchemaRequest, CallSettings) // Additional: DeleteSchemaAsync(DeleteSchemaRequest, CancellationToken) // Create client SchemaServiceClient schemaServiceClient = await SchemaServiceClient.CreateAsync(); // Initialize request argument(s) DeleteSchemaRequest request = new DeleteSchemaRequest { SchemaName = SchemaName.FromProjectSchema("[PROJECT]", "[SCHEMA]"), }; // Make the request await schemaServiceClient.DeleteSchemaAsync(request); // End snippet }