public void DeleteSchema(string projectId, string schemaId)
    {
        SchemaServiceClient schemaService = SchemaServiceClient.Create();
        SchemaName          schemaName    = SchemaName.FromProjectSchema(projectId, schemaId);

        schemaService.DeleteSchema(schemaName);
    }
Exemple #2
0
        /// <summary>Snippet for DeleteSchema</summary>
        public void DeleteSchemaResourceNames()
        {
            // Snippet: DeleteSchema(SchemaName, CallSettings)
            // Create client
            SchemaServiceClient schemaServiceClient = SchemaServiceClient.Create();
            // Initialize request argument(s)
            SchemaName name = SchemaName.FromProjectSchema("[PROJECT]", "[SCHEMA]");

            // Make the request
            schemaServiceClient.DeleteSchema(name);
            // End snippet
        }
Exemple #3
0
        /// <summary>Snippet for DeleteSchema</summary>
        public void DeleteSchema()
        {
            // Snippet: DeleteSchema(string, CallSettings)
            // Create client
            SchemaServiceClient schemaServiceClient = SchemaServiceClient.Create();
            // Initialize request argument(s)
            string name = "projects/[PROJECT]/schemas/[SCHEMA]";

            // Make the request
            schemaServiceClient.DeleteSchema(name);
            // End snippet
        }
Exemple #4
0
        /// <summary>Snippet for DeleteSchema</summary>
        public void DeleteSchemaRequestObject()
        {
            // Snippet: DeleteSchema(DeleteSchemaRequest, CallSettings)
            // Create client
            SchemaServiceClient schemaServiceClient = SchemaServiceClient.Create();
            // Initialize request argument(s)
            DeleteSchemaRequest request = new DeleteSchemaRequest
            {
                SchemaName = SchemaName.FromProjectSchema("[PROJECT]", "[SCHEMA]"),
            };

            // Make the request
            schemaServiceClient.DeleteSchema(request);
            // End snippet
        }