Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

Commit

Permalink
feat: deprecate v1beta1 client endpoint is turned down (#493)
Browse files Browse the repository at this point in the history
Endpoint was turned down 2020-09-28

Fixes #481
  • Loading branch information
chingor13 authored Dec 21, 2020
1 parent 1509270 commit 0d52720
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 46 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@
* AssetServiceClient.create(assetServiceSettings);
* </code>
* </pre>
*
* @deprecated The v1beta1 endpoint was turned down 2020-09-28.
*/
@Deprecated
@Generated("by gapic-generator")
@BetaApi
public class AssetServiceClient implements BackgroundResource {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@
* AssetServiceSettings assetServiceSettings = assetServiceSettingsBuilder.build();
* </code>
* </pre>
*
* @deprecated The v1beta1 endpoint was turned down 2020-09-28.
*/
@Deprecated
@Generated("by gapic-generator")
@BetaApi
public class AssetServiceSettings extends ClientSettings<AssetServiceSettings> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
* </code>
* </pre>
*/
@Deprecated
@Generated("by gapic-generator")
package com.google.cloud.asset.v1beta1;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@
* Base stub class for Cloud Asset API.
*
* <p>This class is for advanced usage and reflects the underlying API directly.
*
* @deprecated The v1beta1 endpoint was turned down 2020-09-28.
*/
@Deprecated
@Generated("by gapic-generator")
@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public abstract class AssetServiceStub implements BackgroundResource {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@
* AssetServiceStubSettings assetServiceSettings = assetServiceSettingsBuilder.build();
* </code>
* </pre>
*
* @deprecated The v1beta1 endpoint was turned down 2020-09-28.
*/
@Deprecated
@Generated("by gapic-generator")
@BetaApi
public class AssetServiceStubSettings extends StubSettings<AssetServiceStubSettings> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@
* gRPC callable factory implementation for Cloud Asset API.
*
* <p>This class is for advanced usage.
*
* @deprecated The v1beta1 endpoint was turned down 2020-09-28.
*/
@Deprecated
@Generated("by gapic-generator")
@BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
public class GrpcAssetServiceCallableFactory implements GrpcStubCallableFactory {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@
* gRPC stub implementation for Cloud Asset API.
*
* <p>This class is for advanced usage and reflects the underlying API directly.
*
* @deprecated The v1beta1 endpoint was turned down 2020-09-28.
*/
@Deprecated
@Generated("by gapic-generator")
@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public class GrpcAssetServiceStub extends AssetServiceStub {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@
* <pre>
* Asset service definition.
* </pre>
*
* @deprecated The v1beta1 endpoint was turned down 2020-09-28.
*/
@Deprecated
@javax.annotation.Generated(
value = "by gRPC proto compiler",
comments = "Source: google/cloud/asset/v1beta1/asset_service.proto")
Expand Down
45 changes: 0 additions & 45 deletions synth.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,6 @@
"generator": "bazel"
}
},
{
"client": {
"source": "googleapis",
"apiName": "asset",
"apiVersion": "v1beta1",
"language": "java",
"generator": "bazel"
}
},
{
"client": {
"source": "googleapis",
Expand Down Expand Up @@ -193,13 +184,6 @@
"google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.java",
"google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/GrpcAssetServiceCallableFactory.java",
"google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/GrpcAssetServiceStub.java",
"google-cloud-asset/src/main/java/com/google/cloud/asset/v1beta1/AssetServiceClient.java",
"google-cloud-asset/src/main/java/com/google/cloud/asset/v1beta1/AssetServiceSettings.java",
"google-cloud-asset/src/main/java/com/google/cloud/asset/v1beta1/package-info.java",
"google-cloud-asset/src/main/java/com/google/cloud/asset/v1beta1/stub/AssetServiceStub.java",
"google-cloud-asset/src/main/java/com/google/cloud/asset/v1beta1/stub/AssetServiceStubSettings.java",
"google-cloud-asset/src/main/java/com/google/cloud/asset/v1beta1/stub/GrpcAssetServiceCallableFactory.java",
"google-cloud-asset/src/main/java/com/google/cloud/asset/v1beta1/stub/GrpcAssetServiceStub.java",
"google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceClient.java",
"google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceSettings.java",
"google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/package-info.java",
Expand Down Expand Up @@ -231,9 +215,6 @@
"google-cloud-asset/src/test/java/com/google/cloud/asset/v1/AssetServiceClientTest.java",
"google-cloud-asset/src/test/java/com/google/cloud/asset/v1/MockAssetService.java",
"google-cloud-asset/src/test/java/com/google/cloud/asset/v1/MockAssetServiceImpl.java",
"google-cloud-asset/src/test/java/com/google/cloud/asset/v1beta1/AssetServiceClientTest.java",
"google-cloud-asset/src/test/java/com/google/cloud/asset/v1beta1/MockAssetService.java",
"google-cloud-asset/src/test/java/com/google/cloud/asset/v1beta1/MockAssetServiceImpl.java",
"google-cloud-asset/src/test/java/com/google/cloud/asset/v1p1beta1/AssetServiceClientTest.java",
"google-cloud-asset/src/test/java/com/google/cloud/asset/v1p1beta1/MockAssetService.java",
"google-cloud-asset/src/test/java/com/google/cloud/asset/v1p1beta1/MockAssetServiceImpl.java",
Expand All @@ -247,7 +228,6 @@
"google-cloud-asset/src/test/java/com/google/cloud/asset/v1p5beta1/MockAssetService.java",
"google-cloud-asset/src/test/java/com/google/cloud/asset/v1p5beta1/MockAssetServiceImpl.java",
"grpc-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceGrpc.java",
"grpc-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/AssetServiceGrpc.java",
"grpc-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceGrpc.java",
"grpc-google-cloud-asset-v1p2beta1/src/main/java/com/google/cloud/asset/v1p2beta1/AssetServiceGrpc.java",
"grpc-google-cloud-asset-v1p4beta1/src/main/java/com/google/cloud/asset/v1p4beta1/AssetServiceGrpc.java",
Expand Down Expand Up @@ -334,31 +314,6 @@
"proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/UpdateFeedRequestOrBuilder.java",
"proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/asset_service.proto",
"proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/assets.proto",
"proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/Asset.java",
"proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/AssetOrBuilder.java",
"proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/AssetProto.java",
"proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/AssetServiceProto.java",
"proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/BatchGetAssetsHistoryRequest.java",
"proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/BatchGetAssetsHistoryRequestOrBuilder.java",
"proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/BatchGetAssetsHistoryResponse.java",
"proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/BatchGetAssetsHistoryResponseOrBuilder.java",
"proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/ContentType.java",
"proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/ExportAssetsRequest.java",
"proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/ExportAssetsRequestOrBuilder.java",
"proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/ExportAssetsResponse.java",
"proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/ExportAssetsResponseOrBuilder.java",
"proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/GcsDestination.java",
"proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/GcsDestinationOrBuilder.java",
"proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/OutputConfig.java",
"proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/OutputConfigOrBuilder.java",
"proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/Resource.java",
"proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/ResourceOrBuilder.java",
"proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/TemporalAsset.java",
"proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/TemporalAssetOrBuilder.java",
"proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/TimeWindow.java",
"proto-google-cloud-asset-v1beta1/src/main/java/com/google/cloud/asset/v1beta1/TimeWindowOrBuilder.java",
"proto-google-cloud-asset-v1beta1/src/main/proto/google/cloud/asset/v1beta1/asset_service.proto",
"proto-google-cloud-asset-v1beta1/src/main/proto/google/cloud/asset/v1beta1/assets.proto",
"proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/AssetProto.java",
"proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceProto.java",
"proto-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/IamPolicySearchResult.java",
Expand Down
2 changes: 1 addition & 1 deletion synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
AUTOSYNTH_MULTIPLE_COMMITS = True

service = 'asset'
versions = ['v1', 'v1beta1', 'v1p2beta1', 'v1p1beta1', 'v1p4beta1', 'v1p5beta1']
versions = ['v1', 'v1p2beta1', 'v1p1beta1', 'v1p4beta1', 'v1p5beta1']

for version in versions:
library = java.bazel_library(
Expand Down

0 comments on commit 0d52720

Please sign in to comment.