/// <summary>Snippet for UpdateConnection</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void UpdateConnectionResourceNames()
 {
     // Create client
     ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.Create();
     // Initialize request argument(s)
     ConnectionName name       = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]");
     Connection     connection = new Connection();
     FieldMask      updateMask = new FieldMask();
     // Make the request
     Connection response = connectionServiceClient.UpdateConnection(name, connection, updateMask);
 }
コード例 #2
0
 /// <summary>Snippet for UpdateConnection</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void UpdateConnection()
 {
     // Create client
     ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.Create();
     // Initialize request argument(s)
     string     name       = "projects/[PROJECT]/locations/[LOCATION]/connections/[CONNECTION]";
     Connection connection = new Connection();
     FieldMask  updateMask = new FieldMask();
     // Make the request
     Connection response = connectionServiceClient.UpdateConnection(name, connection, updateMask);
 }
コード例 #3
0
 /// <summary>Snippet for UpdateConnection</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void UpdateConnectionRequestObject()
 {
     // Create client
     ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.Create();
     // Initialize request argument(s)
     UpdateConnectionRequest request = new UpdateConnectionRequest
     {
         ConnectionName = ConnectionName.FromProjectLocationConnection("[PROJECT]", "[LOCATION]", "[CONNECTION]"),
         Connection     = new Connection(),
         UpdateMask     = new FieldMask(),
     };
     // Make the request
     Connection response = connectionServiceClient.UpdateConnection(request);
 }