Beispiel #1
0
 /// <summary>Snippet for GetApiConfig</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetApiConfig()
 {
     // Create client
     ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.Create();
     // Initialize request argument(s)
     string name = "projects/[PROJECT]/locations/global/apis/[API]/configs/[API_CONFIG]";
     // Make the request
     ApiConfig response = apiGatewayServiceClient.GetApiConfig(name);
 }
 /// <summary>Snippet for GetApiConfig</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetApiConfigResourceNames()
 {
     // Create client
     ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.Create();
     // Initialize request argument(s)
     ApiConfigName name = ApiConfigName.FromProjectApiApiConfig("[PROJECT]", "[API]", "[API_CONFIG]");
     // Make the request
     ApiConfig response = apiGatewayServiceClient.GetApiConfig(name);
 }
 /// <summary>Snippet for GetApiConfig</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetApiConfigRequestObject()
 {
     // Create client
     ApiGatewayServiceClient apiGatewayServiceClient = ApiGatewayServiceClient.Create();
     // Initialize request argument(s)
     GetApiConfigRequest request = new GetApiConfigRequest
     {
         ApiConfigName = ApiConfigName.FromProjectApiApiConfig("[PROJECT]", "[API]", "[API_CONFIG]"),
         View          = GetApiConfigRequest.Types.ConfigView.Unspecified,
     };
     // Make the request
     ApiConfig response = apiGatewayServiceClient.GetApiConfig(request);
 }