@@ -122,7 +122,7 @@ private static function getClientDefaults()
122122 {
123123 return [
124124 'serviceName ' => self ::SERVICE_NAME ,
125- 'serviceAddress ' => self ::SERVICE_ADDRESS .': ' .self ::DEFAULT_SERVICE_PORT ,
125+ 'apiEndpoint ' => self ::SERVICE_ADDRESS .': ' .self ::DEFAULT_SERVICE_PORT ,
126126 'clientConfig ' => __DIR__ .'/../resources/cloud_scheduler_client_config.json ' ,
127127 'descriptorsConfigPath ' => __DIR__ .'/../resources/cloud_scheduler_descriptor_config.php ' ,
128128 'gcpApiConfigPath ' => __DIR__ .'/../resources/cloud_scheduler_grpc_config.json ' ,
@@ -277,6 +277,9 @@ public static function parseName($formattedName, $template = null)
277277 * Optional. Options for configuring the service API wrapper.
278278 *
279279 * @type string $serviceAddress
280+ * **Deprecated**. This option will be removed in a future major release. Please
281+ * utilize the `$apiEndpoint` option instead.
282+ * @type string $apiEndpoint
280283 * The address of the API remote host. May optionally include the port, formatted
281284 * as "<uri>:<port>". Default 'cloudscheduler.googleapis.com:443'.
282285 * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials
@@ -304,7 +307,7 @@ public static function parseName($formattedName, $template = null)
304307 * or `grpc`. Defaults to `grpc` if gRPC support is detected on the system.
305308 * *Advanced usage*: Additionally, it is possible to pass in an already instantiated
306309 * {@see \Google\ApiCore\Transport\TransportInterface} object. Note that when this
307- * object is provided, any settings in $transportConfig, and any $serviceAddress
310+ * object is provided, any settings in $transportConfig, and any `$apiEndpoint`
308311 * setting, will be ignored.
309312 * @type array $transportConfig
310313 * Configuration options that will be used to construct the transport. Options for
0 commit comments