コード例 #1
0
 /// <summary>Snippet for GetConnector</summary>
 public void GetConnector()
 {
     // Snippet: GetConnector(string, CallSettings)
     // Create client
     VpcAccessServiceClient vpcAccessServiceClient = VpcAccessServiceClient.Create();
     // Initialize request argument(s)
     string name = "projects/[PROJECT]/locations/[LOCATION]/connectors/[CONNECTOR]";
     // Make the request
     Connector response = vpcAccessServiceClient.GetConnector(name);
     // End snippet
 }
コード例 #2
0
 /// <summary>Snippet for GetConnector</summary>
 public void GetConnectorResourceNames()
 {
     // Snippet: GetConnector(ConnectorName, CallSettings)
     // Create client
     VpcAccessServiceClient vpcAccessServiceClient = VpcAccessServiceClient.Create();
     // Initialize request argument(s)
     ConnectorName name = ConnectorName.FromProjectLocationConnector("[PROJECT]", "[LOCATION]", "[CONNECTOR]");
     // Make the request
     Connector response = vpcAccessServiceClient.GetConnector(name);
     // End snippet
 }
コード例 #3
0
 /// <summary>Snippet for GetConnector</summary>
 public void GetConnectorRequestObject()
 {
     // Snippet: GetConnector(GetConnectorRequest, CallSettings)
     // Create client
     VpcAccessServiceClient vpcAccessServiceClient = VpcAccessServiceClient.Create();
     // Initialize request argument(s)
     GetConnectorRequest request = new GetConnectorRequest
     {
         ConnectorName = ConnectorName.FromProjectLocationConnector("[PROJECT]", "[LOCATION]", "[CONNECTOR]"),
     };
     // Make the request
     Connector response = vpcAccessServiceClient.GetConnector(request);
     // End snippet
 }