Skip to content

Commit afdb432

Browse files
feat: add support for Universe Domain via service address template (#6884)
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: eyJwIjoiQmV5b25kQ29ycENsaWVudENvbm5lY3RvclNlcnZpY2VzLy5Pd2xCb3QueWFtbCIsImgiOiI3ZjVjZTJhYjE5ZTcxMGNlOWEwODZkOGJlZDNmNzQzMGJjZTQyNTA2In0= Copy-Tag: eyJwIjoiQmV5b25kQ29ycENsaWVudEdhdGV3YXlzLy5Pd2xCb3QueWFtbCIsImgiOiI3ZjVjZTJhYjE5ZTcxMGNlOWEwODZkOGJlZDNmNzQzMGJjZTQyNTA2In0= Copy-Tag: eyJwIjoiQmlnUXVlcnlBbmFseXRpY3NIdWIvLk93bEJvdC55YW1sIiwiaCI6IjdmNWNlMmFiMTllNzEwY2U5YTA4NmQ4YmVkM2Y3NDMwYmNlNDI1MDYifQ== Copy-Tag: eyJwIjoiQmlnUXVlcnlDb25uZWN0aW9uLy5Pd2xCb3QueWFtbCIsImgiOiI3ZjVjZTJhYjE5ZTcxMGNlOWEwODZkOGJlZDNmNzQzMGJjZTQyNTA2In0= Copy-Tag: eyJwIjoiQmlnUXVlcnlEYXRhRXhjaGFuZ2UvLk93bEJvdC55YW1sIiwiaCI6IjdmNWNlMmFiMTllNzEwY2U5YTA4NmQ4YmVkM2Y3NDMwYmNlNDI1MDYifQ== Copy-Tag: eyJwIjoiQmlnUXVlcnlEYXRhUG9saWNpZXMvLk93bEJvdC55YW1sIiwiaCI6IjdmNWNlMmFiMTllNzEwY2U5YTA4NmQ4YmVkM2Y3NDMwYmNlNDI1MDYifQ== Copy-Tag: eyJwIjoiQmlnUXVlcnlEYXRhVHJhbnNmZXIvLk93bEJvdC55YW1sIiwiaCI6IjdmNWNlMmFiMTllNzEwY2U5YTA4NmQ4YmVkM2Y3NDMwYmNlNDI1MDYifQ== Copy-Tag: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ODZkOGJlZDNmNzQzMGJjZTQyNTA2In0= Copy-Tag: eyJwIjoiQ2hhbm5lbC8uT3dsQm90LnlhbWwiLCJoIjoiN2Y1Y2UyYWIxOWU3MTBjZTlhMDg2ZDhiZWQzZjc0MzBiY2U0MjUwNiJ9 Copy-Tag: eyJwIjoiQ29tbWVyY2VDb25zdW1lclByb2N1cmVtZW50Ly5Pd2xCb3QueWFtbCIsImgiOiI3ZjVjZTJhYjE5ZTcxMGNlOWEwODZkOGJlZDNmNzQzMGJjZTQyNTA2In0= Copy-Tag: eyJwIjoiQ29tcHV0ZS8uT3dsQm90LnlhbWwiLCJoIjoiN2Y1Y2UyYWIxOWU3MTBjZTlhMDg2ZDhiZWQzZjc0MzBiY2U0MjUwNiJ9 Copy-Tag: eyJwIjoiQ29uZmlkZW50aWFsQ29tcHV0aW5nLy5Pd2xCb3QueWFtbCIsImgiOiI3ZjVjZTJhYjE5ZTcxMGNlOWEwODZkOGJlZDNmNzQzMGJjZTQyNTA2In0=
1 parent b4e4197 commit afdb432

236 files changed

Lines changed: 2064 additions & 1182 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

BeyondCorpClientConnectorServices/src/V1/Client/ClientConnectorServicesServiceClient.php

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,6 @@
7373
* name, and additionally a parseName method to extract the individual identifiers
7474
* contained within formatted names that are returned by the API.
7575
*
76-
* This class is currently experimental and may be subject to changes. See {@see
77-
* \Google\Cloud\BeyondCorp\ClientConnectorServices\V1\ClientConnectorServicesServiceClient}
78-
* for the stable implementation
79-
*
80-
* @experimental
81-
*
8276
* @method PromiseInterface createClientConnectorServiceAsync(CreateClientConnectorServiceRequest $request, array $optionalArgs = [])
8377
* @method PromiseInterface deleteClientConnectorServiceAsync(DeleteClientConnectorServiceRequest $request, array $optionalArgs = [])
8478
* @method PromiseInterface getClientConnectorServiceAsync(GetClientConnectorServiceRequest $request, array $optionalArgs = [])
@@ -98,9 +92,16 @@ final class ClientConnectorServicesServiceClient
9892
/** The name of the service. */
9993
private const SERVICE_NAME = 'google.cloud.beyondcorp.clientconnectorservices.v1.ClientConnectorServicesService';
10094

101-
/** The default address of the service. */
95+
/**
96+
* The default address of the service.
97+
*
98+
* @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead.
99+
*/
102100
private const SERVICE_ADDRESS = 'beyondcorp.googleapis.com';
103101

102+
/** The address template of the service. */
103+
private const SERVICE_ADDRESS_TEMPLATE = 'beyondcorp.UNIVERSE_DOMAIN';
104+
104105
/** The default port of the service. */
105106
private const DEFAULT_SERVICE_PORT = 443;
106107

BeyondCorpClientConnectorServices/src/V1/Gapic/ClientConnectorServicesServiceGapicClient.php

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,7 @@
113113
* name, and additionally a parseName method to extract the individual identifiers
114114
* contained within formatted names that are returned by the API.
115115
*
116-
* This service has a new (beta) implementation. See {@see
117-
* \Google\Cloud\BeyondCorp\ClientConnectorServices\V1\Client\ClientConnectorServicesServiceClient}
118-
* to use the new surface.
116+
* @deprecated Please use the new service client {@see \Google\Cloud\BeyondCorp\ClientConnectorServices\V1\Client\ClientConnectorServicesServiceClient}.
119117
*/
120118
class ClientConnectorServicesServiceGapicClient
121119
{
@@ -124,9 +122,16 @@ class ClientConnectorServicesServiceGapicClient
124122
/** The name of the service. */
125123
const SERVICE_NAME = 'google.cloud.beyondcorp.clientconnectorservices.v1.ClientConnectorServicesService';
126124

127-
/** The default address of the service. */
125+
/**
126+
* The default address of the service.
127+
*
128+
* @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead.
129+
*/
128130
const SERVICE_ADDRESS = 'beyondcorp.googleapis.com';
129131

132+
/** The address template of the service. */
133+
private const SERVICE_ADDRESS_TEMPLATE = 'beyondcorp.UNIVERSE_DOMAIN';
134+
130135
/** The default port of the service. */
131136
const DEFAULT_SERVICE_PORT = 443;
132137

BeyondCorpClientGateways/src/V1/Client/ClientGatewaysServiceClient.php

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,6 @@
7272
* name, and additionally a parseName method to extract the individual identifiers
7373
* contained within formatted names that are returned by the API.
7474
*
75-
* This class is currently experimental and may be subject to changes. See {@see
76-
* \Google\Cloud\BeyondCorp\ClientGateways\V1\ClientGatewaysServiceClient} for the
77-
* stable implementation
78-
*
79-
* @experimental
80-
*
8175
* @method PromiseInterface createClientGatewayAsync(CreateClientGatewayRequest $request, array $optionalArgs = [])
8276
* @method PromiseInterface deleteClientGatewayAsync(DeleteClientGatewayRequest $request, array $optionalArgs = [])
8377
* @method PromiseInterface getClientGatewayAsync(GetClientGatewayRequest $request, array $optionalArgs = [])
@@ -96,9 +90,16 @@ final class ClientGatewaysServiceClient
9690
/** The name of the service. */
9791
private const SERVICE_NAME = 'google.cloud.beyondcorp.clientgateways.v1.ClientGatewaysService';
9892

99-
/** The default address of the service. */
93+
/**
94+
* The default address of the service.
95+
*
96+
* @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead.
97+
*/
10098
private const SERVICE_ADDRESS = 'beyondcorp.googleapis.com';
10199

100+
/** The address template of the service. */
101+
private const SERVICE_ADDRESS_TEMPLATE = 'beyondcorp.UNIVERSE_DOMAIN';
102+
102103
/** The default port of the service. */
103104
private const DEFAULT_SERVICE_PORT = 443;
104105

BeyondCorpClientGateways/src/V1/Gapic/ClientGatewaysServiceGapicClient.php

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,7 @@
112112
* name, and additionally a parseName method to extract the individual identifiers
113113
* contained within formatted names that are returned by the API.
114114
*
115-
* This service has a new (beta) implementation. See {@see
116-
* \Google\Cloud\BeyondCorp\ClientGateways\V1\Client\ClientGatewaysServiceClient}
117-
* to use the new surface.
115+
* @deprecated Please use the new service client {@see \Google\Cloud\BeyondCorp\ClientGateways\V1\Client\ClientGatewaysServiceClient}.
118116
*/
119117
class ClientGatewaysServiceGapicClient
120118
{
@@ -123,9 +121,16 @@ class ClientGatewaysServiceGapicClient
123121
/** The name of the service. */
124122
const SERVICE_NAME = 'google.cloud.beyondcorp.clientgateways.v1.ClientGatewaysService';
125123

126-
/** The default address of the service. */
124+
/**
125+
* The default address of the service.
126+
*
127+
* @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead.
128+
*/
127129
const SERVICE_ADDRESS = 'beyondcorp.googleapis.com';
128130

131+
/** The address template of the service. */
132+
private const SERVICE_ADDRESS_TEMPLATE = 'beyondcorp.UNIVERSE_DOMAIN';
133+
129134
/** The default port of the service. */
130135
const DEFAULT_SERVICE_PORT = 443;
131136

BigQueryAnalyticsHub/src/V1/Client/AnalyticsHubServiceClient.php

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,6 @@
8383
* name, and additionally a parseName method to extract the individual identifiers
8484
* contained within formatted names that are returned by the API.
8585
*
86-
* This class is currently experimental and may be subject to changes. See {@see
87-
* \Google\Cloud\BigQuery\AnalyticsHub\V1\AnalyticsHubServiceClient} for the stable
88-
* implementation
89-
*
90-
* @experimental
91-
*
9286
* @method PromiseInterface createDataExchangeAsync(CreateDataExchangeRequest $request, array $optionalArgs = [])
9387
* @method PromiseInterface createListingAsync(CreateListingRequest $request, array $optionalArgs = [])
9488
* @method PromiseInterface deleteDataExchangeAsync(DeleteDataExchangeRequest $request, array $optionalArgs = [])
@@ -120,9 +114,16 @@ final class AnalyticsHubServiceClient
120114
/** The name of the service. */
121115
private const SERVICE_NAME = 'google.cloud.bigquery.analyticshub.v1.AnalyticsHubService';
122116

123-
/** The default address of the service. */
117+
/**
118+
* The default address of the service.
119+
*
120+
* @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead.
121+
*/
124122
private const SERVICE_ADDRESS = 'analyticshub.googleapis.com';
125123

124+
/** The address template of the service. */
125+
private const SERVICE_ADDRESS_TEMPLATE = 'analyticshub.UNIVERSE_DOMAIN';
126+
126127
/** The default port of the service. */
127128
private const DEFAULT_SERVICE_PORT = 443;
128129

BigQueryAnalyticsHub/src/V1/Gapic/AnalyticsHubServiceGapicClient.php

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,7 @@
103103
* name, and additionally a parseName method to extract the individual identifiers
104104
* contained within formatted names that are returned by the API.
105105
*
106-
* This service has a new (beta) implementation. See {@see
107-
* \Google\Cloud\BigQuery\AnalyticsHub\V1\Client\AnalyticsHubServiceClient} to use
108-
* the new surface.
106+
* @deprecated Please use the new service client {@see \Google\Cloud\BigQuery\AnalyticsHub\V1\Client\AnalyticsHubServiceClient}.
109107
*/
110108
class AnalyticsHubServiceGapicClient
111109
{
@@ -114,9 +112,16 @@ class AnalyticsHubServiceGapicClient
114112
/** The name of the service. */
115113
const SERVICE_NAME = 'google.cloud.bigquery.analyticshub.v1.AnalyticsHubService';
116114

117-
/** The default address of the service. */
115+
/**
116+
* The default address of the service.
117+
*
118+
* @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead.
119+
*/
118120
const SERVICE_ADDRESS = 'analyticshub.googleapis.com';
119121

122+
/** The address template of the service. */
123+
private const SERVICE_ADDRESS_TEMPLATE = 'analyticshub.UNIVERSE_DOMAIN';
124+
120125
/** The default port of the service. */
121126
const DEFAULT_SERVICE_PORT = 443;
122127

BigQueryConnection/src/V1/Client/ConnectionServiceClient.php

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,6 @@
5757
* name, and additionally a parseName method to extract the individual identifiers
5858
* contained within formatted names that are returned by the API.
5959
*
60-
* This class is currently experimental and may be subject to changes. See {@see
61-
* \Google\Cloud\BigQuery\Connection\V1\ConnectionServiceClient} for the stable
62-
* implementation
63-
*
64-
* @experimental
65-
*
6660
* @method PromiseInterface createConnectionAsync(CreateConnectionRequest $request, array $optionalArgs = [])
6761
* @method PromiseInterface deleteConnectionAsync(DeleteConnectionRequest $request, array $optionalArgs = [])
6862
* @method PromiseInterface getConnectionAsync(GetConnectionRequest $request, array $optionalArgs = [])
@@ -80,9 +74,16 @@ final class ConnectionServiceClient
8074
/** The name of the service. */
8175
private const SERVICE_NAME = 'google.cloud.bigquery.connection.v1.ConnectionService';
8276

83-
/** The default address of the service. */
77+
/**
78+
* The default address of the service.
79+
*
80+
* @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead.
81+
*/
8482
private const SERVICE_ADDRESS = 'bigqueryconnection.googleapis.com';
8583

84+
/** The address template of the service. */
85+
private const SERVICE_ADDRESS_TEMPLATE = 'bigqueryconnection.UNIVERSE_DOMAIN';
86+
8687
/** The default port of the service. */
8788
private const DEFAULT_SERVICE_PORT = 443;
8889

BigQueryConnection/src/V1/Gapic/ConnectionServiceGapicClient.php

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,7 @@
7171
* name, and additionally a parseName method to extract the individual identifiers
7272
* contained within formatted names that are returned by the API.
7373
*
74-
* This service has a new (beta) implementation. See {@see
75-
* \Google\Cloud\BigQuery\Connection\V1\Client\ConnectionServiceClient} to use the
76-
* new surface.
74+
* @deprecated Please use the new service client {@see \Google\Cloud\BigQuery\Connection\V1\Client\ConnectionServiceClient}.
7775
*/
7876
class ConnectionServiceGapicClient
7977
{
@@ -82,9 +80,16 @@ class ConnectionServiceGapicClient
8280
/** The name of the service. */
8381
const SERVICE_NAME = 'google.cloud.bigquery.connection.v1.ConnectionService';
8482

85-
/** The default address of the service. */
83+
/**
84+
* The default address of the service.
85+
*
86+
* @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead.
87+
*/
8688
const SERVICE_ADDRESS = 'bigqueryconnection.googleapis.com';
8789

90+
/** The address template of the service. */
91+
private const SERVICE_ADDRESS_TEMPLATE = 'bigqueryconnection.UNIVERSE_DOMAIN';
92+
8893
/** The default port of the service. */
8994
const DEFAULT_SERVICE_PORT = 443;
9095

BigQueryDataExchange/src/V1beta1/Client/AnalyticsHubServiceClient.php

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,6 @@
7676
* name, and additionally a parseName method to extract the individual identifiers
7777
* contained within formatted names that are returned by the API.
7878
*
79-
* This class is currently experimental and may be subject to changes.
80-
*
8179
* @experimental
8280
*
8381
* @method PromiseInterface createDataExchangeAsync(CreateDataExchangeRequest $request, array $optionalArgs = [])
@@ -106,9 +104,16 @@ final class AnalyticsHubServiceClient
106104
/** The name of the service. */
107105
private const SERVICE_NAME = 'google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService';
108106

109-
/** The default address of the service. */
107+
/**
108+
* The default address of the service.
109+
*
110+
* @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead.
111+
*/
110112
private const SERVICE_ADDRESS = 'analyticshub.googleapis.com';
111113

114+
/** The address template of the service. */
115+
private const SERVICE_ADDRESS_TEMPLATE = 'analyticshub.UNIVERSE_DOMAIN';
116+
112117
/** The default port of the service. */
113118
private const DEFAULT_SERVICE_PORT = 443;
114119

BigQueryDataExchange/src/V1beta1/Gapic/AnalyticsHubServiceGapicClient.php

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,9 @@
9696
* name, and additionally a parseName method to extract the individual identifiers
9797
* contained within formatted names that are returned by the API.
9898
*
99-
* This service has a new (beta) implementation. See {@see
100-
* \Google\Cloud\BigQuery\DataExchange\V1beta1\Client\AnalyticsHubServiceClient} to
101-
* use the new surface.
102-
*
10399
* @experimental
100+
*
101+
* @deprecated Please use the new service client {@see \Google\Cloud\BigQuery\DataExchange\V1beta1\Client\AnalyticsHubServiceClient}.
104102
*/
105103
class AnalyticsHubServiceGapicClient
106104
{
@@ -109,9 +107,16 @@ class AnalyticsHubServiceGapicClient
109107
/** The name of the service. */
110108
const SERVICE_NAME = 'google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService';
111109

112-
/** The default address of the service. */
110+
/**
111+
* The default address of the service.
112+
*
113+
* @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead.
114+
*/
113115
const SERVICE_ADDRESS = 'analyticshub.googleapis.com';
114116

117+
/** The address template of the service. */
118+
private const SERVICE_ADDRESS_TEMPLATE = 'analyticshub.UNIVERSE_DOMAIN';
119+
115120
/** The default port of the service. */
116121
const DEFAULT_SERVICE_PORT = 443;
117122

0 commit comments

Comments
 (0)