Skip to content

Commit

Permalink
🦉 Updates from OwlBot post-processor
Browse files Browse the repository at this point in the history
  • Loading branch information
gcf-owl-bot[bot] committed Nov 12, 2024
1 parent da8025e commit 8831889
Show file tree
Hide file tree
Showing 27 changed files with 18 additions and 2,412 deletions.
25 changes: 18 additions & 7 deletions GkeConnectGateway/src/V1/Client/GatewayControlClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ private static function getClientDefaults()
'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT,
'clientConfig' => __DIR__ . '/../resources/gateway_control_client_config.json',
'descriptorsConfigPath' => __DIR__ . '/../resources/gateway_control_descriptor_config.php',
'gcpApiConfigPath' => __DIR__ . '/../resources/gateway_control_grpc_config.json',
'credentialsConfig' => [
'defaultScopes' => self::$serviceScopes,
'useJwtAccessWithScope' => false,
],
'transportConfig' => [
'rest' => [
Expand All @@ -90,6 +90,20 @@ private static function getClientDefaults()
];
}

/** Implements GapicClientTrait::defaultTransport. */
private static function defaultTransport()
{
return 'rest';
}

/** Implements ClientOptionsTrait::supportedTransports. */
private static function supportedTransports()
{
return [
'rest',
];
}

/**
* Constructor.
*
Expand Down Expand Up @@ -120,9 +134,8 @@ private static function getClientDefaults()
* default this settings points to the default client config file, which is
* provided in the resources folder.
* @type string|TransportInterface $transport
* The transport used for executing network requests. May be either the string
* `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system.
* *Advanced usage*: Additionally, it is possible to pass in an already
* The transport used for executing network requests. At the moment, supports only
* `rest`. *Advanced usage*: Additionally, it is possible to pass in an already
* instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note
* that when this object is provided, any settings in $transportConfig, and any
* $apiEndpoint setting, will be ignored.
Expand All @@ -131,11 +144,9 @@ private static function getClientDefaults()
* each supported transport type should be passed in a key for that transport. For
* example:
* $transportConfig = [
* 'grpc' => [...],
* 'rest' => [...],
* ];
* See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and
* {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the
* See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the
* supported options.
* @type callable $clientCertSource
* A callable which returns the client cert as a string. This can be used to
Expand Down
Binary file not shown.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 8831889

Please sign in to comment.