Beispiel #1
0
 /// <summary>Snippet for GetApi</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetApiResourceNames()
 {
     // Create client
     ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.Create();
     // Initialize request argument(s)
     ApiName name = ApiName.FromProjectApi("[PROJECT]", "[API]");
     // Make the request
     Api response = apiGatewayServiceClient.GetApi(name);
 }
Beispiel #2
0
 /// <summary>Snippet for GetApi</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetApi()
 {
     // Create client
     ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.Create();
     // Initialize request argument(s)
     string name = "projects/[PROJECT]/locations/global/apis/[API]";
     // Make the request
     Api response = apiGatewayServiceClient.GetApi(name);
 }
Beispiel #3
0
 /// <summary>Snippet for GetApi</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetApiRequestObject()
 {
     // Create client
     ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.Create();
     // Initialize request argument(s)
     GetApiRequest request = new GetApiRequest
     {
         ApiName = ApiName.FromProjectApi("[PROJECT]", "[API]"),
     };
     // Make the request
     Api response = apiGatewayServiceClient.GetApi(request);
 }