Beispiel #1
0
        /// <summary>Snippet for DeleteFlowAsync</summary>
        public async Task DeleteFlowAsync()
        {
            // Snippet: DeleteFlowAsync(string, CallSettings)
            // Additional: DeleteFlowAsync(string, CancellationToken)
            // Create client
            FlowsClient flowsClient = await FlowsClient.CreateAsync();

            // Initialize request argument(s)
            string name = "projects/[PROJECT]/locations/[LOCATION]/agents/[AGENT]/flows/[FLOW]";
            // Make the request
            await flowsClient.DeleteFlowAsync(name);

            // End snippet
        }
Beispiel #2
0
        /// <summary>Snippet for DeleteFlowAsync</summary>
        public async Task DeleteFlowResourceNamesAsync()
        {
            // Snippet: DeleteFlowAsync(FlowName, CallSettings)
            // Additional: DeleteFlowAsync(FlowName, CancellationToken)
            // Create client
            FlowsClient flowsClient = await FlowsClient.CreateAsync();

            // Initialize request argument(s)
            FlowName name = FlowName.FromProjectLocationAgentFlow("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]");
            // Make the request
            await flowsClient.DeleteFlowAsync(name);

            // End snippet
        }
Beispiel #3
0
        /// <summary>Snippet for DeleteFlowAsync</summary>
        public async Task DeleteFlowRequestObjectAsync()
        {
            // Snippet: DeleteFlowAsync(DeleteFlowRequest, CallSettings)
            // Additional: DeleteFlowAsync(DeleteFlowRequest, CancellationToken)
            // Create client
            FlowsClient flowsClient = await FlowsClient.CreateAsync();

            // Initialize request argument(s)
            DeleteFlowRequest request = new DeleteFlowRequest
            {
                FlowName = FlowName.FromProjectLocationAgentFlow("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]"),
                Force    = false,
            };
            // Make the request
            await flowsClient.DeleteFlowAsync(request);

            // End snippet
        }