Skip to content

Commit

Permalink
feat: add support for Universe Domain via service address template (#…
Browse files Browse the repository at this point in the history
…6888)

feat: mark new surface GA and previous surface deprecated
PiperOrigin-RevId: 591226459
Source-Link: googleapis/googleapis@5c1f64e
Source-Link: googleapis/googleapis-gen@7f5ce2a
Copy-Tag: eyJwIjoiT3B0aW1pemF0aW9uLy5Pd2xCb3QueWFtbCIsImgiOiI3ZjVjZTJhYjE5ZTcxMGNlOWEwODZkOGJlZDNmNzQzMGJjZTQyNTA2In0=
Copy-Tag: eyJwIjoiT3JjaGVzdHJhdGlvbkFpcmZsb3cvLk93bEJvdC55YW1sIiwiaCI6IjdmNWNlMmFiMTllNzEwY2U5YTA4NmQ4YmVkM2Y3NDMwYmNlNDI1MDYifQ==
Copy-Tag: eyJwIjoiT3JnUG9saWN5Ly5Pd2xCb3QueWFtbCIsImgiOiI3ZjVjZTJhYjE5ZTcxMGNlOWEwODZkOGJlZDNmNzQzMGJjZTQyNTA2In0=
Copy-Tag: eyJwIjoiT3NDb25maWcvLk93bEJvdC55YW1sIiwiaCI6IjdmNWNlMmFiMTllNzEwY2U5YTA4NmQ4YmVkM2Y3NDMwYmNlNDI1MDYifQ==
Copy-Tag: eyJwIjoiT3NMb2dpbi8uT3dsQm90LnlhbWwiLCJoIjoiN2Y1Y2UyYWIxOWU3MTBjZTlhMDg2ZDhiZWQzZjc0MzBiY2U0MjUwNiJ9
Copy-Tag: eyJwIjoiUG9saWN5U2ltdWxhdG9yLy5Pd2xCb3QueWFtbCIsImgiOiI3ZjVjZTJhYjE5ZTcxMGNlOWEwODZkOGJlZDNmNzQzMGJjZTQyNTA2In0=
Copy-Tag: eyJwIjoiUG9saWN5VHJvdWJsZXNob290ZXIvLk93bEJvdC55YW1sIiwiaCI6IjdmNWNlMmFiMTllNzEwY2U5YTA4NmQ4YmVkM2Y3NDMwYmNlNDI1MDYifQ==
Copy-Tag: eyJwIjoiUG9saWN5VHJvdWJsZXNob290ZXJJYW0vLk93bEJvdC55YW1sIiw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IjoiUmVkaXNDbHVzdGVyLy5Pd2xCb3QueWFtbCIsImgiOiI3ZjVjZTJhYjE5ZTcxMGNlOWEwODZkOGJlZDNmNzQzMGJjZTQyNTA2In0=
Copy-Tag: eyJwIjoiUmVzb3VyY2VNYW5hZ2VyLy5Pd2xCb3QueWFtbCIsImgiOiI3ZjVjZTJhYjE5ZTcxMGNlOWEwODZkOGJlZDNmNzQzMGJjZTQyNTA2In0=
Copy-Tag: eyJwIjoiUmVzb3VyY2VTZXR0aW5ncy8uT3dsQm90LnlhbWwiLCJoIjoiN2Y1Y2UyYWIxOWU3MTBjZTlhMDg2ZDhiZWQzZjc0MzBiY2U0MjUwNiJ9
Copy-Tag: eyJwIjoiUmV0YWlsLy5Pd2xCb3QueWFtbCIsImgiOiI3ZjVjZTJhYjE5ZTcxMGNlOWEwODZkOGJlZDNmNzQzMGJjZTQyNTA2In0=
  • Loading branch information
gcf-owl-bot[bot] authored Dec 15, 2023
1 parent 9e106ff commit 89e362f
Show file tree
Hide file tree
Showing 87 changed files with 1,037 additions and 645 deletions.
14 changes: 8 additions & 6 deletions Optimization/src/V1/Client/FleetRoutingClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,6 @@
* This class provides the ability to make remote calls to the backing service through method
* calls that map to API methods.
*
* This class is currently experimental and may be subject to changes. See {@see
* \Google\Cloud\Optimization\V1\FleetRoutingClient} for the stable implementation
*
* @experimental
*
* @method PromiseInterface batchOptimizeToursAsync(BatchOptimizeToursRequest $request, array $optionalArgs = [])
* @method PromiseInterface optimizeToursAsync(OptimizeToursRequest $request, array $optionalArgs = [])
*/
Expand All @@ -77,9 +72,16 @@ final class FleetRoutingClient
/** The name of the service. */
private const SERVICE_NAME = 'google.cloud.optimization.v1.FleetRouting';

/** The default address of the service. */
/**
* The default address of the service.
*
* @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead.
*/
private const SERVICE_ADDRESS = 'cloudoptimization.googleapis.com';

/** The address template of the service. */
private const SERVICE_ADDRESS_TEMPLATE = 'cloudoptimization.UNIVERSE_DOMAIN';

/** The default port of the service. */
private const DEFAULT_SERVICE_PORT = 443;

Expand Down
12 changes: 9 additions & 3 deletions Optimization/src/V1/Gapic/FleetRoutingGapicClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,7 @@
* }
* ```
*
* This service has a new (beta) implementation. See {@see
* \Google\Cloud\Optimization\V1\Client\FleetRoutingClient} to use the new surface.
* @deprecated Please use the new service client {@see \Google\Cloud\Optimization\V1\Client\FleetRoutingClient}.
*/
class FleetRoutingGapicClient
{
Expand All @@ -112,9 +111,16 @@ class FleetRoutingGapicClient
/** The name of the service. */
const SERVICE_NAME = 'google.cloud.optimization.v1.FleetRouting';

/** The default address of the service. */
/**
* The default address of the service.
*
* @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead.
*/
const SERVICE_ADDRESS = 'cloudoptimization.googleapis.com';

/** The address template of the service. */
private const SERVICE_ADDRESS_TEMPLATE = 'cloudoptimization.UNIVERSE_DOMAIN';

/** The default port of the service. */
const DEFAULT_SERVICE_PORT = 443;

Expand Down
15 changes: 8 additions & 7 deletions OrchestrationAirflow/src/V1/Client/EnvironmentsClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,6 @@
* name, and additionally a parseName method to extract the individual identifiers
* contained within formatted names that are returned by the API.
*
* This class is currently experimental and may be subject to changes. See {@see
* \Google\Cloud\Orchestration\Airflow\Service\V1\EnvironmentsClient} for the
* stable implementation
*
* @experimental
*
* @method PromiseInterface createEnvironmentAsync(CreateEnvironmentRequest $request, array $optionalArgs = [])
* @method PromiseInterface databaseFailoverAsync(DatabaseFailoverRequest $request, array $optionalArgs = [])
* @method PromiseInterface deleteEnvironmentAsync(DeleteEnvironmentRequest $request, array $optionalArgs = [])
Expand All @@ -93,9 +87,16 @@ final class EnvironmentsClient
/** The name of the service. */
private const SERVICE_NAME = 'google.cloud.orchestration.airflow.service.v1.Environments';

/** The default address of the service. */
/**
* The default address of the service.
*
* @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead.
*/
private const SERVICE_ADDRESS = 'composer.googleapis.com';

/** The address template of the service. */
private const SERVICE_ADDRESS_TEMPLATE = 'composer.UNIVERSE_DOMAIN';

/** The default port of the service. */
private const DEFAULT_SERVICE_PORT = 443;

Expand Down
15 changes: 8 additions & 7 deletions OrchestrationAirflow/src/V1/Client/ImageVersionsClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@
* This class provides the ability to make remote calls to the backing service through method
* calls that map to API methods.
*
* This class is currently experimental and may be subject to changes. See {@see
* \Google\Cloud\Orchestration\Airflow\Service\V1\ImageVersionsClient} for the
* stable implementation
*
* @experimental
*
* @method PromiseInterface listImageVersionsAsync(ListImageVersionsRequest $request, array $optionalArgs = [])
*/
final class ImageVersionsClient
Expand All @@ -56,9 +50,16 @@ final class ImageVersionsClient
/** The name of the service. */
private const SERVICE_NAME = 'google.cloud.orchestration.airflow.service.v1.ImageVersions';

/** The default address of the service. */
/**
* The default address of the service.
*
* @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead.
*/
private const SERVICE_ADDRESS = 'composer.googleapis.com';

/** The address template of the service. */
private const SERVICE_ADDRESS_TEMPLATE = 'composer.UNIVERSE_DOMAIN';

/** The default port of the service. */
private const DEFAULT_SERVICE_PORT = 443;

Expand Down
13 changes: 9 additions & 4 deletions OrchestrationAirflow/src/V1/Gapic/EnvironmentsGapicClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,7 @@
* name, and additionally a parseName method to extract the individual identifiers
* contained within formatted names that are returned by the API.
*
* This service has a new (beta) implementation. See {@see
* \Google\Cloud\Orchestration\Airflow\Service\V1\Client\EnvironmentsClient} to use
* the new surface.
* @deprecated Please use the new service client {@see \Google\Cloud\Orchestration\Airflow\Service\V1\Client\EnvironmentsClient}.
*/
class EnvironmentsGapicClient
{
Expand All @@ -112,9 +110,16 @@ class EnvironmentsGapicClient
/** The name of the service. */
const SERVICE_NAME = 'google.cloud.orchestration.airflow.service.v1.Environments';

/** The default address of the service. */
/**
* The default address of the service.
*
* @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead.
*/
const SERVICE_ADDRESS = 'composer.googleapis.com';

/** The address template of the service. */
private const SERVICE_ADDRESS_TEMPLATE = 'composer.UNIVERSE_DOMAIN';

/** The default port of the service. */
const DEFAULT_SERVICE_PORT = 443;

Expand Down
13 changes: 9 additions & 4 deletions OrchestrationAirflow/src/V1/Gapic/ImageVersionsGapicClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@
* }
* ```
*
* This service has a new (beta) implementation. See {@see
* \Google\Cloud\Orchestration\Airflow\Service\V1\Client\ImageVersionsClient} to
* use the new surface.
* @deprecated Please use the new service client {@see \Google\Cloud\Orchestration\Airflow\Service\V1\Client\ImageVersionsClient}.
*/
class ImageVersionsGapicClient
{
Expand All @@ -73,9 +71,16 @@ class ImageVersionsGapicClient
/** The name of the service. */
const SERVICE_NAME = 'google.cloud.orchestration.airflow.service.v1.ImageVersions';

/** The default address of the service. */
/**
* The default address of the service.
*
* @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead.
*/
const SERVICE_ADDRESS = 'composer.googleapis.com';

/** The address template of the service. */
private const SERVICE_ADDRESS_TEMPLATE = 'composer.UNIVERSE_DOMAIN';

/** The default port of the service. */
const DEFAULT_SERVICE_PORT = 443;

Expand Down
14 changes: 8 additions & 6 deletions OrgPolicy/src/V2/Client/OrgPolicyClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,6 @@
* name, and additionally a parseName method to extract the individual identifiers
* contained within formatted names that are returned by the API.
*
* This class is currently experimental and may be subject to changes. See {@see
* \Google\Cloud\OrgPolicy\V2\OrgPolicyClient} for the stable implementation
*
* @experimental
*
* @method PromiseInterface createPolicyAsync(CreatePolicyRequest $request, array $optionalArgs = [])
* @method PromiseInterface deletePolicyAsync(DeletePolicyRequest $request, array $optionalArgs = [])
* @method PromiseInterface getEffectivePolicyAsync(GetEffectivePolicyRequest $request, array $optionalArgs = [])
Expand All @@ -94,9 +89,16 @@ final class OrgPolicyClient
/** The name of the service. */
private const SERVICE_NAME = 'google.cloud.orgpolicy.v2.OrgPolicy';

/** The default address of the service. */
/**
* The default address of the service.
*
* @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead.
*/
private const SERVICE_ADDRESS = 'orgpolicy.googleapis.com';

/** The address template of the service. */
private const SERVICE_ADDRESS_TEMPLATE = 'orgpolicy.UNIVERSE_DOMAIN';

/** The default port of the service. */
private const DEFAULT_SERVICE_PORT = 443;

Expand Down
12 changes: 9 additions & 3 deletions OrgPolicy/src/V2/Gapic/OrgPolicyGapicClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,7 @@
* name, and additionally a parseName method to extract the individual identifiers
* contained within formatted names that are returned by the API.
*
* This service has a new (beta) implementation. See {@see
* \Google\Cloud\OrgPolicy\V2\Client\OrgPolicyClient} to use the new surface.
* @deprecated Please use the new service client {@see \Google\Cloud\OrgPolicy\V2\Client\OrgPolicyClient}.
*/
class OrgPolicyGapicClient
{
Expand All @@ -97,9 +96,16 @@ class OrgPolicyGapicClient
/** The name of the service. */
const SERVICE_NAME = 'google.cloud.orgpolicy.v2.OrgPolicy';

/** The default address of the service. */
/**
* The default address of the service.
*
* @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead.
*/
const SERVICE_ADDRESS = 'orgpolicy.googleapis.com';

/** The address template of the service. */
private const SERVICE_ADDRESS_TEMPLATE = 'orgpolicy.UNIVERSE_DOMAIN';

/** The default port of the service. */
const DEFAULT_SERVICE_PORT = 443;

Expand Down
14 changes: 8 additions & 6 deletions OsConfig/src/V1/Client/OsConfigServiceClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,6 @@
* name, and additionally a parseName method to extract the individual identifiers
* contained within formatted names that are returned by the API.
*
* This class is currently experimental and may be subject to changes. See {@see
* \Google\Cloud\OsConfig\V1\OsConfigServiceClient} for the stable implementation
*
* @experimental
*
* @method PromiseInterface cancelPatchJobAsync(CancelPatchJobRequest $request, array $optionalArgs = [])
* @method PromiseInterface createPatchDeploymentAsync(CreatePatchDeploymentRequest $request, array $optionalArgs = [])
* @method PromiseInterface deletePatchDeploymentAsync(DeletePatchDeploymentRequest $request, array $optionalArgs = [])
Expand All @@ -89,9 +84,16 @@ class OsConfigServiceClient
/** The name of the service. */
private const SERVICE_NAME = 'google.cloud.osconfig.v1.OsConfigService';

/** The default address of the service. */
/**
* The default address of the service.
*
* @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead.
*/
private const SERVICE_ADDRESS = 'osconfig.googleapis.com';

/** The address template of the service. */
private const SERVICE_ADDRESS_TEMPLATE = 'osconfig.UNIVERSE_DOMAIN';

/** The default port of the service. */
private const DEFAULT_SERVICE_PORT = 443;

Expand Down
15 changes: 8 additions & 7 deletions OsConfig/src/V1/Client/OsConfigZonalServiceClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,6 @@
* name, and additionally a parseName method to extract the individual identifiers
* contained within formatted names that are returned by the API.
*
* This class is currently experimental and may be subject to changes. See {@see
* \Google\Cloud\OsConfig\V1\OsConfigZonalServiceClient} for the stable
* implementation
*
* @experimental
*
* @method PromiseInterface createOSPolicyAssignmentAsync(CreateOSPolicyAssignmentRequest $request, array $optionalArgs = [])
* @method PromiseInterface deleteOSPolicyAssignmentAsync(DeleteOSPolicyAssignmentRequest $request, array $optionalArgs = [])
* @method PromiseInterface getInventoryAsync(GetInventoryRequest $request, array $optionalArgs = [])
Expand All @@ -95,9 +89,16 @@ class OsConfigZonalServiceClient
/** The name of the service. */
private const SERVICE_NAME = 'google.cloud.osconfig.v1.OsConfigZonalService';

/** The default address of the service. */
/**
* The default address of the service.
*
* @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead.
*/
private const SERVICE_ADDRESS = 'osconfig.googleapis.com';

/** The address template of the service. */
private const SERVICE_ADDRESS_TEMPLATE = 'osconfig.UNIVERSE_DOMAIN';

/** The default port of the service. */
private const DEFAULT_SERVICE_PORT = 443;

Expand Down
12 changes: 9 additions & 3 deletions OsConfig/src/V1/Gapic/OsConfigServiceGapicClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@
* name, and additionally a parseName method to extract the individual identifiers
* contained within formatted names that are returned by the API.
*
* This service has a new (beta) implementation. See {@see
* \Google\Cloud\OsConfig\V1\Client\OsConfigServiceClient} to use the new surface.
* @deprecated Please use the new service client {@see \Google\Cloud\OsConfig\V1\Client\OsConfigServiceClient}.
*/
class OsConfigServiceGapicClient
{
Expand All @@ -91,9 +90,16 @@ class OsConfigServiceGapicClient
/** The name of the service. */
const SERVICE_NAME = 'google.cloud.osconfig.v1.OsConfigService';

/** The default address of the service. */
/**
* The default address of the service.
*
* @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead.
*/
const SERVICE_ADDRESS = 'osconfig.googleapis.com';

/** The address template of the service. */
private const SERVICE_ADDRESS_TEMPLATE = 'osconfig.UNIVERSE_DOMAIN';

/** The default port of the service. */
const DEFAULT_SERVICE_PORT = 443;

Expand Down
13 changes: 9 additions & 4 deletions OsConfig/src/V1/Gapic/OsConfigZonalServiceGapicClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,7 @@
* name, and additionally a parseName method to extract the individual identifiers
* contained within formatted names that are returned by the API.
*
* This service has a new (beta) implementation. See {@see
* \Google\Cloud\OsConfig\V1\Client\OsConfigZonalServiceClient} to use the new
* surface.
* @deprecated Please use the new service client {@see \Google\Cloud\OsConfig\V1\Client\OsConfigZonalServiceClient}.
*/
class OsConfigZonalServiceGapicClient
{
Expand All @@ -121,9 +119,16 @@ class OsConfigZonalServiceGapicClient
/** The name of the service. */
const SERVICE_NAME = 'google.cloud.osconfig.v1.OsConfigZonalService';

/** The default address of the service. */
/**
* The default address of the service.
*
* @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead.
*/
const SERVICE_ADDRESS = 'osconfig.googleapis.com';

/** The address template of the service. */
private const SERVICE_ADDRESS_TEMPLATE = 'osconfig.UNIVERSE_DOMAIN';

/** The default port of the service. */
const DEFAULT_SERVICE_PORT = 443;

Expand Down
Binary file modified OsLogin/metadata/V1Beta/Oslogin.php
Binary file not shown.
14 changes: 8 additions & 6 deletions OsLogin/src/V1/Client/OsLoginServiceClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,6 @@
* name, and additionally a parseName method to extract the individual identifiers
* contained within formatted names that are returned by the API.
*
* This class is currently experimental and may be subject to changes. See {@see
* \Google\Cloud\OsLogin\V1\OsLoginServiceClient} for the stable implementation
*
* @experimental
*
* @method PromiseInterface createSshPublicKeyAsync(CreateSshPublicKeyRequest $request, array $optionalArgs = [])
* @method PromiseInterface deletePosixAccountAsync(DeletePosixAccountRequest $request, array $optionalArgs = [])
* @method PromiseInterface deleteSshPublicKeyAsync(DeleteSshPublicKeyRequest $request, array $optionalArgs = [])
Expand All @@ -79,9 +74,16 @@ class OsLoginServiceClient
/** The name of the service. */
private const SERVICE_NAME = 'google.cloud.oslogin.v1.OsLoginService';

/** The default address of the service. */
/**
* The default address of the service.
*
* @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead.
*/
private const SERVICE_ADDRESS = 'oslogin.googleapis.com';

/** The address template of the service. */
private const SERVICE_ADDRESS_TEMPLATE = 'oslogin.UNIVERSE_DOMAIN';

/** The default port of the service. */
private const DEFAULT_SERVICE_PORT = 443;

Expand Down
Loading

0 comments on commit 89e362f

Please sign in to comment.