Beispiel #1
0
 /// <summary>Snippet for GetVersion</summary>
 public void GetVersionResourceNames()
 {
     // Snippet: GetVersion(VersionName, CallSettings)
     // Create client
     VersionsClient versionsClient = VersionsClient.Create();
     // Initialize request argument(s)
     VersionName name = VersionName.FromProjectLocationAgentFlowVersion("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]");
     // Make the request
     gcdcv::Version response = versionsClient.GetVersion(name);
     // End snippet
 }
Beispiel #2
0
 /// <summary>Snippet for GetVersion</summary>
 public void GetVersion()
 {
     // Snippet: GetVersion(string, CallSettings)
     // Create client
     VersionsClient versionsClient = VersionsClient.Create();
     // Initialize request argument(s)
     string name = "projects/[PROJECT]/locations/[LOCATION]/agents/[AGENT]/flows/[FLOW]/versions/[VERSION]";
     // Make the request
     gcdcv::Version response = versionsClient.GetVersion(name);
     // End snippet
 }
 /// <summary>Snippet for GetVersion</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetVersionRequestObject()
 {
     // Create client
     VersionsClient versionsClient = VersionsClient.Create();
     // Initialize request argument(s)
     GetVersionRequest request = new GetVersionRequest
     {
         Name = "",
         View = VersionView.Basic,
     };
     // Make the request
     Version response = versionsClient.GetVersion(request);
 }
Beispiel #4
0
 /// <summary>Snippet for GetVersion</summary>
 public void GetVersionRequestObject()
 {
     // Snippet: GetVersion(GetVersionRequest, CallSettings)
     // Create client
     VersionsClient versionsClient = VersionsClient.Create();
     // Initialize request argument(s)
     GetVersionRequest request = new GetVersionRequest
     {
         VersionName = VersionName.FromProjectLocationAgentFlowVersion("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]"),
     };
     // Make the request
     gcdcv::Version response = versionsClient.GetVersion(request);
     // End snippet
 }
 /// <summary>Snippet for GetVersion</summary>
 public void GetVersionRequestObject()
 {
     // Snippet: GetVersion(GetVersionRequest, CallSettings)
     // Create client
     VersionsClient versionsClient = VersionsClient.Create();
     // Initialize request argument(s)
     GetVersionRequest request = new GetVersionRequest
     {
         Name = "",
         View = VersionView.Basic,
     };
     // Make the request
     gcav::Version response = versionsClient.GetVersion(request);
     // End snippet
 }