Ejemplo n.º 1
0
        /// <summary>Snippet for DeleteFlow</summary>
        public void DeleteFlow()
        {
            // Snippet: DeleteFlow(string, CallSettings)
            // Create client
            FlowsClient flowsClient = FlowsClient.Create();
            // Initialize request argument(s)
            string name = "projects/[PROJECT]/locations/[LOCATION]/agents/[AGENT]/flows/[FLOW]";

            // Make the request
            flowsClient.DeleteFlow(name);
            // End snippet
        }
Ejemplo n.º 2
0
        /// <summary>Snippet for DeleteFlow</summary>
        public void DeleteFlowResourceNames()
        {
            // Snippet: DeleteFlow(FlowName, CallSettings)
            // Create client
            FlowsClient flowsClient = FlowsClient.Create();
            // Initialize request argument(s)
            FlowName name = FlowName.FromProjectLocationAgentFlow("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]");

            // Make the request
            flowsClient.DeleteFlow(name);
            // End snippet
        }
Ejemplo n.º 3
0
        /// <summary>Snippet for DeleteFlow</summary>
        public void DeleteFlowRequestObject()
        {
            // Snippet: DeleteFlow(DeleteFlowRequest, CallSettings)
            // Create client
            FlowsClient flowsClient = FlowsClient.Create();
            // Initialize request argument(s)
            DeleteFlowRequest request = new DeleteFlowRequest
            {
                FlowName = FlowName.FromProjectLocationAgentFlow("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]"),
                Force    = false,
            };

            // Make the request
            flowsClient.DeleteFlow(request);
            // End snippet
        }