/// <summary>Snippet for CreateConnection</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void CreateConnectionResourceNames()
 {
     // Create client
     ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.Create();
     // Initialize request argument(s)
     LocationName parent       = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
     Connection   connection   = new Connection();
     string       connectionId = "";
     // Make the request
     Connection response = connectionServiceClient.CreateConnection(parent, connection, connectionId);
 }
Exemple #2
0
 /// <summary>Snippet for CreateConnection</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void CreateConnection()
 {
     // Create client
     ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.Create();
     // Initialize request argument(s)
     string     parent       = "projects/[PROJECT]/locations/[LOCATION]";
     Connection connection   = new Connection();
     string     connectionId = "";
     // Make the request
     Connection response = connectionServiceClient.CreateConnection(parent, connection, connectionId);
 }
Exemple #3
0
 /// <summary>Snippet for CreateConnection</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void CreateConnectionRequestObject()
 {
     // Create client
     ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.Create();
     // Initialize request argument(s)
     CreateConnectionRequest request = new CreateConnectionRequest
     {
         ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
         ConnectionId         = "",
         Connection           = new Connection(),
     };
     // Make the request
     Connection response = connectionServiceClient.CreateConnection(request);
 }