From 46405502be71a76eb5ea1a9b61da7b2a37e47b32 Mon Sep 17 00:00:00 2001
From: peter-zheng-g <43967553+peter-zheng-g@users.noreply.github.com>
Date: Wed, 3 Apr 2019 14:55:09 -0700
Subject: [PATCH] [CloudAsset] Update client library version to use endpoint
v1. (#1364)
* [CloudAsset] Update client library version to use endpoit v1.
* Fix test code dependency: update cloud-storage lib version.
---
asset/cloud-client/pom.xml | 4 ++--
.../example/asset/BatchGetAssetsHistoryExample.java | 12 ++++++------
.../java/com/example/asset/ExportAssetsExample.java | 12 ++++++------
3 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/asset/cloud-client/pom.xml b/asset/cloud-client/pom.xml
index f0e540e92fb..47f56c9601f 100644
--- a/asset/cloud-client/pom.xml
+++ b/asset/cloud-client/pom.xml
@@ -36,7 +36,7 @@
com.google.cloud
google-cloud-asset
- 0.63.0-beta
+ 0.86.0-beta
@@ -56,7 +56,7 @@
com.google.cloud
google-cloud-storage
- 1.38.0
+ 1.68.0
test
diff --git a/asset/cloud-client/src/main/java/com/example/asset/BatchGetAssetsHistoryExample.java b/asset/cloud-client/src/main/java/com/example/asset/BatchGetAssetsHistoryExample.java
index b1a5b3c2240..9963abeb5fe 100644
--- a/asset/cloud-client/src/main/java/com/example/asset/BatchGetAssetsHistoryExample.java
+++ b/asset/cloud-client/src/main/java/com/example/asset/BatchGetAssetsHistoryExample.java
@@ -20,12 +20,12 @@
// Imports the Google Cloud client library
import com.google.cloud.ServiceOptions;
-import com.google.cloud.asset.v1beta1.AssetServiceClient;
-import com.google.cloud.asset.v1beta1.BatchGetAssetsHistoryRequest;
-import com.google.cloud.asset.v1beta1.BatchGetAssetsHistoryResponse;
-import com.google.cloud.asset.v1beta1.ContentType;
-import com.google.cloud.asset.v1beta1.ProjectName;
-import com.google.cloud.asset.v1beta1.TimeWindow;
+import com.google.cloud.asset.v1.AssetServiceClient;
+import com.google.cloud.asset.v1.BatchGetAssetsHistoryRequest;
+import com.google.cloud.asset.v1.BatchGetAssetsHistoryResponse;
+import com.google.cloud.asset.v1.ContentType;
+import com.google.cloud.asset.v1.ProjectName;
+import com.google.cloud.asset.v1.TimeWindow;
import java.util.Arrays;
public class BatchGetAssetsHistoryExample {
diff --git a/asset/cloud-client/src/main/java/com/example/asset/ExportAssetsExample.java b/asset/cloud-client/src/main/java/com/example/asset/ExportAssetsExample.java
index 0dcfc30f714..2e3e8792941 100644
--- a/asset/cloud-client/src/main/java/com/example/asset/ExportAssetsExample.java
+++ b/asset/cloud-client/src/main/java/com/example/asset/ExportAssetsExample.java
@@ -20,12 +20,12 @@
// Imports the Google Cloud client library
import com.google.cloud.ServiceOptions;
-import com.google.cloud.asset.v1beta1.AssetServiceClient;
-import com.google.cloud.asset.v1beta1.ExportAssetsRequest;
-import com.google.cloud.asset.v1beta1.ExportAssetsResponse;
-import com.google.cloud.asset.v1beta1.GcsDestination;
-import com.google.cloud.asset.v1beta1.OutputConfig;
-import com.google.cloud.asset.v1beta1.ProjectName;
+import com.google.cloud.asset.v1.AssetServiceClient;
+import com.google.cloud.asset.v1.ExportAssetsRequest;
+import com.google.cloud.asset.v1.ExportAssetsResponse;
+import com.google.cloud.asset.v1.GcsDestination;
+import com.google.cloud.asset.v1.OutputConfig;
+import com.google.cloud.asset.v1.ProjectName;
public class ExportAssetsExample {