示例#1
0
        /// <summary>Snippet for DeleteKnowledgeBase</summary>
        public void DeleteKnowledgeBase()
        {
            // Snippet: DeleteKnowledgeBase(string, CallSettings)
            // Create client
            KnowledgeBasesClient knowledgeBasesClient = KnowledgeBasesClient.Create();
            // Initialize request argument(s)
            string name = "projects/[PROJECT]/knowledgeBases/[KNOWLEDGE_BASE]";

            // Make the request
            knowledgeBasesClient.DeleteKnowledgeBase(name);
            // End snippet
        }
示例#2
0
        /// <summary>Snippet for DeleteKnowledgeBase</summary>
        public void DeleteKnowledgeBaseResourceNames()
        {
            // Snippet: DeleteKnowledgeBase(KnowledgeBaseName, CallSettings)
            // Create client
            KnowledgeBasesClient knowledgeBasesClient = KnowledgeBasesClient.Create();
            // Initialize request argument(s)
            KnowledgeBaseName name = KnowledgeBaseName.FromProjectKnowledgeBase("[PROJECT]", "[KNOWLEDGE_BASE]");

            // Make the request
            knowledgeBasesClient.DeleteKnowledgeBase(name);
            // End snippet
        }
示例#3
0
        /// <summary>Snippet for DeleteKnowledgeBase</summary>
        public void DeleteKnowledgeBaseRequestObject()
        {
            // Snippet: DeleteKnowledgeBase(DeleteKnowledgeBaseRequest, CallSettings)
            // Create client
            KnowledgeBasesClient knowledgeBasesClient = KnowledgeBasesClient.Create();
            // Initialize request argument(s)
            DeleteKnowledgeBaseRequest request = new DeleteKnowledgeBaseRequest
            {
                KnowledgeBaseName = KnowledgeBaseName.FromProjectKnowledgeBase("[PROJECT]", "[KNOWLEDGE_BASE]"),
                Force             = false,
            };

            // Make the request
            knowledgeBasesClient.DeleteKnowledgeBase(request);
            // End snippet
        }