/// <summary>Snippet for CreateSchemaAsync</summary> public async Task CreateSchemaAsync() { // Snippet: CreateSchemaAsync(string, Schema, string, CallSettings) // Additional: CreateSchemaAsync(string, Schema, string, CancellationToken) // Create client SchemaServiceClient schemaServiceClient = await SchemaServiceClient.CreateAsync(); // Initialize request argument(s) string parent = "projects/[PROJECT]"; Schema schema = new Schema(); string schemaId = ""; // Make the request Schema response = await schemaServiceClient.CreateSchemaAsync(parent, schema, schemaId); // End snippet }
/// <summary>Snippet for CreateSchemaAsync</summary> public async Task CreateSchemaResourceNamesAsync() { // Snippet: CreateSchemaAsync(ProjectName, Schema, string, CallSettings) // Additional: CreateSchemaAsync(ProjectName, Schema, string, CancellationToken) // Create client SchemaServiceClient schemaServiceClient = await SchemaServiceClient.CreateAsync(); // Initialize request argument(s) ProjectName parent = ProjectName.FromProject("[PROJECT]"); Schema schema = new Schema(); string schemaId = ""; // Make the request Schema response = await schemaServiceClient.CreateSchemaAsync(parent, schema, schemaId); // End snippet }
/// <summary>Snippet for CreateSchemaAsync</summary> public async Task CreateSchemaRequestObjectAsync() { // Snippet: CreateSchemaAsync(CreateSchemaRequest, CallSettings) // Additional: CreateSchemaAsync(CreateSchemaRequest, CancellationToken) // Create client SchemaServiceClient schemaServiceClient = await SchemaServiceClient.CreateAsync(); // Initialize request argument(s) CreateSchemaRequest request = new CreateSchemaRequest { ParentAsProjectName = ProjectName.FromProject("[PROJECT]"), Schema = new Schema(), SchemaId = "", }; // Make the request Schema response = await schemaServiceClient.CreateSchemaAsync(request); // End snippet }