diff --git a/secretmanager/src/main/java/com/example/AccessSecretVersion.java b/secretmanager/src/main/java/com/example/AccessSecretVersion.java index b554805f6d8..91f8d2ad8c5 100644 --- a/secretmanager/src/main/java/com/example/AccessSecretVersion.java +++ b/secretmanager/src/main/java/com/example/AccessSecretVersion.java @@ -17,10 +17,10 @@ package com.example; // [START secretmanager_access_secret_version] -import com.google.cloud.secretmanager.v1beta1.AccessSecretVersionRequest; -import com.google.cloud.secretmanager.v1beta1.AccessSecretVersionResponse; -import com.google.cloud.secretmanager.v1beta1.SecretManagerServiceClient; -import com.google.cloud.secretmanager.v1beta1.SecretVersionName; +import com.google.cloud.secretmanager.v1.AccessSecretVersionRequest; +import com.google.cloud.secretmanager.v1.AccessSecretVersionResponse; +import com.google.cloud.secretmanager.v1.SecretManagerServiceClient; +import com.google.cloud.secretmanager.v1.SecretVersionName; import java.io.IOException; public class AccessSecretVersion { diff --git a/secretmanager/src/main/java/com/example/AddSecretVersion.java b/secretmanager/src/main/java/com/example/AddSecretVersion.java index 50b7f335f87..25bd98e510b 100644 --- a/secretmanager/src/main/java/com/example/AddSecretVersion.java +++ b/secretmanager/src/main/java/com/example/AddSecretVersion.java @@ -17,11 +17,11 @@ package com.example; // [START secretmanager_add_secret_version] -import com.google.cloud.secretmanager.v1beta1.AddSecretVersionRequest; -import com.google.cloud.secretmanager.v1beta1.SecretManagerServiceClient; -import com.google.cloud.secretmanager.v1beta1.SecretName; -import com.google.cloud.secretmanager.v1beta1.SecretPayload; -import com.google.cloud.secretmanager.v1beta1.SecretVersion; +import com.google.cloud.secretmanager.v1.AddSecretVersionRequest; +import com.google.cloud.secretmanager.v1.SecretManagerServiceClient; +import com.google.cloud.secretmanager.v1.SecretName; +import com.google.cloud.secretmanager.v1.SecretPayload; +import com.google.cloud.secretmanager.v1.SecretVersion; import com.google.protobuf.ByteString; import java.io.IOException; diff --git a/secretmanager/src/main/java/com/example/CreateSecret.java b/secretmanager/src/main/java/com/example/CreateSecret.java index 8f470db530b..0dccd001611 100644 --- a/secretmanager/src/main/java/com/example/CreateSecret.java +++ b/secretmanager/src/main/java/com/example/CreateSecret.java @@ -17,11 +17,11 @@ package com.example; // [START secretmanager_create_secret] -import com.google.cloud.secretmanager.v1beta1.CreateSecretRequest; -import com.google.cloud.secretmanager.v1beta1.ProjectName; -import com.google.cloud.secretmanager.v1beta1.Replication; -import com.google.cloud.secretmanager.v1beta1.Secret; -import com.google.cloud.secretmanager.v1beta1.SecretManagerServiceClient; +import com.google.cloud.secretmanager.v1.CreateSecretRequest; +import com.google.cloud.secretmanager.v1.ProjectName; +import com.google.cloud.secretmanager.v1.Replication; +import com.google.cloud.secretmanager.v1.Secret; +import com.google.cloud.secretmanager.v1.SecretManagerServiceClient; import java.io.IOException; public class CreateSecret { diff --git a/secretmanager/src/main/java/com/example/DeleteSecret.java b/secretmanager/src/main/java/com/example/DeleteSecret.java index a2d972ce977..eed256f98ac 100644 --- a/secretmanager/src/main/java/com/example/DeleteSecret.java +++ b/secretmanager/src/main/java/com/example/DeleteSecret.java @@ -17,9 +17,9 @@ package com.example; // [START secretmanager_delete_secret] -import com.google.cloud.secretmanager.v1beta1.DeleteSecretRequest; -import com.google.cloud.secretmanager.v1beta1.SecretManagerServiceClient; -import com.google.cloud.secretmanager.v1beta1.SecretName; +import com.google.cloud.secretmanager.v1.DeleteSecretRequest; +import com.google.cloud.secretmanager.v1.SecretManagerServiceClient; +import com.google.cloud.secretmanager.v1.SecretName; import java.io.IOException; public class DeleteSecret { diff --git a/secretmanager/src/main/java/com/example/DestroySecretVersion.java b/secretmanager/src/main/java/com/example/DestroySecretVersion.java index 0d640ec4bb8..ea39994fe56 100644 --- a/secretmanager/src/main/java/com/example/DestroySecretVersion.java +++ b/secretmanager/src/main/java/com/example/DestroySecretVersion.java @@ -17,10 +17,10 @@ package com.example; // [START secretmanager_destroy_secret_version] -import com.google.cloud.secretmanager.v1beta1.DestroySecretVersionRequest; -import com.google.cloud.secretmanager.v1beta1.SecretManagerServiceClient; -import com.google.cloud.secretmanager.v1beta1.SecretVersion; -import com.google.cloud.secretmanager.v1beta1.SecretVersionName; +import com.google.cloud.secretmanager.v1.DestroySecretVersionRequest; +import com.google.cloud.secretmanager.v1.SecretManagerServiceClient; +import com.google.cloud.secretmanager.v1.SecretVersion; +import com.google.cloud.secretmanager.v1.SecretVersionName; import java.io.IOException; public class DestroySecretVersion { diff --git a/secretmanager/src/main/java/com/example/DisableSecretVersion.java b/secretmanager/src/main/java/com/example/DisableSecretVersion.java index c3a3cb85410..69a7387eb6c 100644 --- a/secretmanager/src/main/java/com/example/DisableSecretVersion.java +++ b/secretmanager/src/main/java/com/example/DisableSecretVersion.java @@ -17,10 +17,10 @@ package com.example; // [START secretmanager_disable_secret_version] -import com.google.cloud.secretmanager.v1beta1.DisableSecretVersionRequest; -import com.google.cloud.secretmanager.v1beta1.SecretManagerServiceClient; -import com.google.cloud.secretmanager.v1beta1.SecretVersion; -import com.google.cloud.secretmanager.v1beta1.SecretVersionName; +import com.google.cloud.secretmanager.v1.DisableSecretVersionRequest; +import com.google.cloud.secretmanager.v1.SecretManagerServiceClient; +import com.google.cloud.secretmanager.v1.SecretVersion; +import com.google.cloud.secretmanager.v1.SecretVersionName; import java.io.IOException; public class DisableSecretVersion { diff --git a/secretmanager/src/main/java/com/example/EnableSecretVersion.java b/secretmanager/src/main/java/com/example/EnableSecretVersion.java index 32e7c6dd8d8..622592b6b3d 100644 --- a/secretmanager/src/main/java/com/example/EnableSecretVersion.java +++ b/secretmanager/src/main/java/com/example/EnableSecretVersion.java @@ -17,10 +17,10 @@ package com.example; // [START secretmanager_enable_secret_version] -import com.google.cloud.secretmanager.v1beta1.EnableSecretVersionRequest; -import com.google.cloud.secretmanager.v1beta1.SecretManagerServiceClient; -import com.google.cloud.secretmanager.v1beta1.SecretVersion; -import com.google.cloud.secretmanager.v1beta1.SecretVersionName; +import com.google.cloud.secretmanager.v1.EnableSecretVersionRequest; +import com.google.cloud.secretmanager.v1.SecretManagerServiceClient; +import com.google.cloud.secretmanager.v1.SecretVersion; +import com.google.cloud.secretmanager.v1.SecretVersionName; import java.io.IOException; public class EnableSecretVersion { diff --git a/secretmanager/src/main/java/com/example/GetSecret.java b/secretmanager/src/main/java/com/example/GetSecret.java index de1aac0d395..15dd8dcbbe9 100644 --- a/secretmanager/src/main/java/com/example/GetSecret.java +++ b/secretmanager/src/main/java/com/example/GetSecret.java @@ -17,10 +17,10 @@ package com.example; // [START secretmanager_get_secret] -import com.google.cloud.secretmanager.v1beta1.GetSecretRequest; -import com.google.cloud.secretmanager.v1beta1.Secret; -import com.google.cloud.secretmanager.v1beta1.SecretManagerServiceClient; -import com.google.cloud.secretmanager.v1beta1.SecretName; +import com.google.cloud.secretmanager.v1.GetSecretRequest; +import com.google.cloud.secretmanager.v1.Secret; +import com.google.cloud.secretmanager.v1.SecretManagerServiceClient; +import com.google.cloud.secretmanager.v1.SecretName; import java.io.IOException; public class GetSecret { diff --git a/secretmanager/src/main/java/com/example/GetSecretVersion.java b/secretmanager/src/main/java/com/example/GetSecretVersion.java index cd5520be7f9..b78e2a28b56 100644 --- a/secretmanager/src/main/java/com/example/GetSecretVersion.java +++ b/secretmanager/src/main/java/com/example/GetSecretVersion.java @@ -17,10 +17,10 @@ package com.example; // [START secretmanager_get_secret_version] -import com.google.cloud.secretmanager.v1beta1.GetSecretVersionRequest; -import com.google.cloud.secretmanager.v1beta1.SecretManagerServiceClient; -import com.google.cloud.secretmanager.v1beta1.SecretVersion; -import com.google.cloud.secretmanager.v1beta1.SecretVersionName; +import com.google.cloud.secretmanager.v1.GetSecretVersionRequest; +import com.google.cloud.secretmanager.v1.SecretManagerServiceClient; +import com.google.cloud.secretmanager.v1.SecretVersion; +import com.google.cloud.secretmanager.v1.SecretVersionName; import java.io.IOException; public class GetSecretVersion { diff --git a/secretmanager/src/main/java/com/example/IamGrantAccess.java b/secretmanager/src/main/java/com/example/IamGrantAccess.java index f114d4d2c98..bfd5ee305e1 100644 --- a/secretmanager/src/main/java/com/example/IamGrantAccess.java +++ b/secretmanager/src/main/java/com/example/IamGrantAccess.java @@ -17,8 +17,8 @@ package com.example; // [START secretmanager_iam_grant_access] -import com.google.cloud.secretmanager.v1beta1.SecretManagerServiceClient; -import com.google.cloud.secretmanager.v1beta1.SecretName; +import com.google.cloud.secretmanager.v1.SecretManagerServiceClient; +import com.google.cloud.secretmanager.v1.SecretName; import com.google.iam.v1.Binding; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.Policy; diff --git a/secretmanager/src/main/java/com/example/IamRevokeAccess.java b/secretmanager/src/main/java/com/example/IamRevokeAccess.java index 9daa0919bf1..42f256a7103 100644 --- a/secretmanager/src/main/java/com/example/IamRevokeAccess.java +++ b/secretmanager/src/main/java/com/example/IamRevokeAccess.java @@ -17,8 +17,8 @@ package com.example; // [START secretmanager_iam_revoke_access] -import com.google.cloud.secretmanager.v1beta1.SecretManagerServiceClient; -import com.google.cloud.secretmanager.v1beta1.SecretName; +import com.google.cloud.secretmanager.v1.SecretManagerServiceClient; +import com.google.cloud.secretmanager.v1.SecretName; import com.google.iam.v1.Binding; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.Policy; diff --git a/secretmanager/src/main/java/com/example/ListSecretVersions.java b/secretmanager/src/main/java/com/example/ListSecretVersions.java index e2230a50285..44c1d4f1af8 100644 --- a/secretmanager/src/main/java/com/example/ListSecretVersions.java +++ b/secretmanager/src/main/java/com/example/ListSecretVersions.java @@ -17,10 +17,10 @@ package com.example; // [START secretmanager_list_secret_versions] -import com.google.cloud.secretmanager.v1beta1.ListSecretVersionsRequest; -import com.google.cloud.secretmanager.v1beta1.SecretManagerServiceClient; -import com.google.cloud.secretmanager.v1beta1.SecretManagerServiceClient.ListSecretVersionsPagedResponse; -import com.google.cloud.secretmanager.v1beta1.SecretName; +import com.google.cloud.secretmanager.v1.ListSecretVersionsRequest; +import com.google.cloud.secretmanager.v1.SecretManagerServiceClient; +import com.google.cloud.secretmanager.v1.SecretManagerServiceClient.ListSecretVersionsPagedResponse; +import com.google.cloud.secretmanager.v1.SecretName; import java.io.IOException; public class ListSecretVersions { diff --git a/secretmanager/src/main/java/com/example/ListSecrets.java b/secretmanager/src/main/java/com/example/ListSecrets.java index 966484cb0d1..006273c2852 100644 --- a/secretmanager/src/main/java/com/example/ListSecrets.java +++ b/secretmanager/src/main/java/com/example/ListSecrets.java @@ -17,10 +17,10 @@ package com.example; // [START secretmanager_list_secrets] -import com.google.cloud.secretmanager.v1beta1.ListSecretsRequest; -import com.google.cloud.secretmanager.v1beta1.ProjectName; -import com.google.cloud.secretmanager.v1beta1.SecretManagerServiceClient; -import com.google.cloud.secretmanager.v1beta1.SecretManagerServiceClient.ListSecretsPagedResponse; +import com.google.cloud.secretmanager.v1.ListSecretsRequest; +import com.google.cloud.secretmanager.v1.ProjectName; +import com.google.cloud.secretmanager.v1.SecretManagerServiceClient; +import com.google.cloud.secretmanager.v1.SecretManagerServiceClient.ListSecretsPagedResponse; import java.io.IOException; public class ListSecrets { diff --git a/secretmanager/src/main/java/com/example/Quickstart.java b/secretmanager/src/main/java/com/example/Quickstart.java index 2f4c67623fa..a02efcd83df 100644 --- a/secretmanager/src/main/java/com/example/Quickstart.java +++ b/secretmanager/src/main/java/com/example/Quickstart.java @@ -17,16 +17,16 @@ package com.example; // [START secretmanager_quickstart] -import com.google.cloud.secretmanager.v1beta1.AccessSecretVersionRequest; -import com.google.cloud.secretmanager.v1beta1.AccessSecretVersionResponse; -import com.google.cloud.secretmanager.v1beta1.AddSecretVersionRequest; -import com.google.cloud.secretmanager.v1beta1.CreateSecretRequest; -import com.google.cloud.secretmanager.v1beta1.ProjectName; -import com.google.cloud.secretmanager.v1beta1.Replication; -import com.google.cloud.secretmanager.v1beta1.Secret; -import com.google.cloud.secretmanager.v1beta1.SecretManagerServiceClient; -import com.google.cloud.secretmanager.v1beta1.SecretPayload; -import com.google.cloud.secretmanager.v1beta1.SecretVersion; +import com.google.cloud.secretmanager.v1.AccessSecretVersionRequest; +import com.google.cloud.secretmanager.v1.AccessSecretVersionResponse; +import com.google.cloud.secretmanager.v1.AddSecretVersionRequest; +import com.google.cloud.secretmanager.v1.CreateSecretRequest; +import com.google.cloud.secretmanager.v1.ProjectName; +import com.google.cloud.secretmanager.v1.Replication; +import com.google.cloud.secretmanager.v1.Secret; +import com.google.cloud.secretmanager.v1.SecretManagerServiceClient; +import com.google.cloud.secretmanager.v1.SecretPayload; +import com.google.cloud.secretmanager.v1.SecretVersion; import com.google.protobuf.ByteString; public class Quickstart { diff --git a/secretmanager/src/main/java/com/example/UpdateSecret.java b/secretmanager/src/main/java/com/example/UpdateSecret.java index adbec2e00e7..aa124e4f7e3 100644 --- a/secretmanager/src/main/java/com/example/UpdateSecret.java +++ b/secretmanager/src/main/java/com/example/UpdateSecret.java @@ -17,10 +17,10 @@ package com.example; // [START secretmanager_update_secret] -import com.google.cloud.secretmanager.v1beta1.Secret; -import com.google.cloud.secretmanager.v1beta1.SecretManagerServiceClient; -import com.google.cloud.secretmanager.v1beta1.SecretName; -import com.google.cloud.secretmanager.v1beta1.UpdateSecretRequest; +import com.google.cloud.secretmanager.v1.Secret; +import com.google.cloud.secretmanager.v1.SecretManagerServiceClient; +import com.google.cloud.secretmanager.v1.SecretName; +import com.google.cloud.secretmanager.v1.UpdateSecretRequest; import com.google.protobuf.util.FieldMaskUtil; import java.io.IOException; diff --git a/secretmanager/src/test/java/com/example/QuickstartIT.java b/secretmanager/src/test/java/com/example/QuickstartIT.java index 57fb019763f..5a02b3c15d5 100644 --- a/secretmanager/src/test/java/com/example/QuickstartIT.java +++ b/secretmanager/src/test/java/com/example/QuickstartIT.java @@ -18,9 +18,9 @@ import static com.google.common.truth.Truth.assertThat; -import com.google.cloud.secretmanager.v1beta1.DeleteSecretRequest; -import com.google.cloud.secretmanager.v1beta1.SecretManagerServiceClient; -import com.google.cloud.secretmanager.v1beta1.SecretName; +import com.google.cloud.secretmanager.v1.DeleteSecretRequest; +import com.google.cloud.secretmanager.v1.SecretManagerServiceClient; +import com.google.cloud.secretmanager.v1.SecretName; import com.google.common.base.Strings; import java.io.ByteArrayOutputStream; import java.io.PrintStream; diff --git a/secretmanager/src/test/java/com/example/SnippetsIT.java b/secretmanager/src/test/java/com/example/SnippetsIT.java index d30262b20e5..5f0a507a291 100644 --- a/secretmanager/src/test/java/com/example/SnippetsIT.java +++ b/secretmanager/src/test/java/com/example/SnippetsIT.java @@ -18,18 +18,18 @@ import static com.google.common.truth.Truth.assertThat; -import com.google.cloud.secretmanager.v1beta1.AddSecretVersionRequest; -import com.google.cloud.secretmanager.v1beta1.CreateSecretRequest; -import com.google.cloud.secretmanager.v1beta1.DeleteSecretRequest; -import com.google.cloud.secretmanager.v1beta1.DisableSecretVersionRequest; -import com.google.cloud.secretmanager.v1beta1.ProjectName; -import com.google.cloud.secretmanager.v1beta1.Replication; -import com.google.cloud.secretmanager.v1beta1.Secret; -import com.google.cloud.secretmanager.v1beta1.SecretManagerServiceClient; -import com.google.cloud.secretmanager.v1beta1.SecretName; -import com.google.cloud.secretmanager.v1beta1.SecretPayload; -import com.google.cloud.secretmanager.v1beta1.SecretVersion; -import com.google.cloud.secretmanager.v1beta1.SecretVersionName; +import com.google.cloud.secretmanager.v1.AddSecretVersionRequest; +import com.google.cloud.secretmanager.v1.CreateSecretRequest; +import com.google.cloud.secretmanager.v1.DeleteSecretRequest; +import com.google.cloud.secretmanager.v1.DisableSecretVersionRequest; +import com.google.cloud.secretmanager.v1.ProjectName; +import com.google.cloud.secretmanager.v1.Replication; +import com.google.cloud.secretmanager.v1.Secret; +import com.google.cloud.secretmanager.v1.SecretManagerServiceClient; +import com.google.cloud.secretmanager.v1.SecretName; +import com.google.cloud.secretmanager.v1.SecretPayload; +import com.google.cloud.secretmanager.v1.SecretVersion; +import com.google.cloud.secretmanager.v1.SecretVersionName; import com.google.common.base.Strings; import com.google.protobuf.ByteString; import java.io.ByteArrayOutputStream;