コード例 #1
0
 /// <summary>Snippet for GetEndpoint</summary>
 public void GetEndpoint()
 {
     // Snippet: GetEndpoint(string, CallSettings)
     // Create client
     IDSClient iDSClient = IDSClient.Create();
     // Initialize request argument(s)
     string name = "projects/[PROJECT]/locations/[LOCATION]/endpoints/[ENDPOINT]";
     // Make the request
     Endpoint response = iDSClient.GetEndpoint(name);
     // End snippet
 }
コード例 #2
0
 /// <summary>Snippet for GetEndpoint</summary>
 public void GetEndpointResourceNames()
 {
     // Snippet: GetEndpoint(EndpointName, CallSettings)
     // Create client
     IDSClient iDSClient = IDSClient.Create();
     // Initialize request argument(s)
     EndpointName name = EndpointName.FromProjectLocationEndpoint("[PROJECT]", "[LOCATION]", "[ENDPOINT]");
     // Make the request
     Endpoint response = iDSClient.GetEndpoint(name);
     // End snippet
 }
コード例 #3
0
 /// <summary>Snippet for GetEndpoint</summary>
 public void GetEndpointRequestObject()
 {
     // Snippet: GetEndpoint(GetEndpointRequest, CallSettings)
     // Create client
     IDSClient iDSClient = IDSClient.Create();
     // Initialize request argument(s)
     GetEndpointRequest request = new GetEndpointRequest
     {
         EndpointName = EndpointName.FromProjectLocationEndpoint("[PROJECT]", "[LOCATION]", "[ENDPOINT]"),
     };
     // Make the request
     Endpoint response = iDSClient.GetEndpoint(request);
     // End snippet
 }