File tree Expand file tree Collapse file tree 17 files changed +78
-78
lines changed Expand file tree Collapse file tree 17 files changed +78
-78
lines changed Original file line number Diff line number Diff line change 17
17
package com .example ;
18
18
19
19
// [START secretmanager_access_secret_version]
20
- import com .google .cloud .secretmanager .v1beta1 .AccessSecretVersionRequest ;
21
- import com .google .cloud .secretmanager .v1beta1 .AccessSecretVersionResponse ;
22
- import com .google .cloud .secretmanager .v1beta1 .SecretManagerServiceClient ;
23
- import com .google .cloud .secretmanager .v1beta1 .SecretVersionName ;
20
+ import com .google .cloud .secretmanager .v1 .AccessSecretVersionRequest ;
21
+ import com .google .cloud .secretmanager .v1 .AccessSecretVersionResponse ;
22
+ import com .google .cloud .secretmanager .v1 .SecretManagerServiceClient ;
23
+ import com .google .cloud .secretmanager .v1 .SecretVersionName ;
24
24
import java .io .IOException ;
25
25
26
26
public class AccessSecretVersion {
Original file line number Diff line number Diff line change 17
17
package com .example ;
18
18
19
19
// [START secretmanager_add_secret_version]
20
- import com .google .cloud .secretmanager .v1beta1 .AddSecretVersionRequest ;
21
- import com .google .cloud .secretmanager .v1beta1 .SecretManagerServiceClient ;
22
- import com .google .cloud .secretmanager .v1beta1 .SecretName ;
23
- import com .google .cloud .secretmanager .v1beta1 .SecretPayload ;
24
- import com .google .cloud .secretmanager .v1beta1 .SecretVersion ;
20
+ import com .google .cloud .secretmanager .v1 .AddSecretVersionRequest ;
21
+ import com .google .cloud .secretmanager .v1 .SecretManagerServiceClient ;
22
+ import com .google .cloud .secretmanager .v1 .SecretName ;
23
+ import com .google .cloud .secretmanager .v1 .SecretPayload ;
24
+ import com .google .cloud .secretmanager .v1 .SecretVersion ;
25
25
import com .google .protobuf .ByteString ;
26
26
import java .io .IOException ;
27
27
Original file line number Diff line number Diff line change 17
17
package com .example ;
18
18
19
19
// [START secretmanager_create_secret]
20
- import com .google .cloud .secretmanager .v1beta1 .CreateSecretRequest ;
21
- import com .google .cloud .secretmanager .v1beta1 .ProjectName ;
22
- import com .google .cloud .secretmanager .v1beta1 .Replication ;
23
- import com .google .cloud .secretmanager .v1beta1 .Secret ;
24
- import com .google .cloud .secretmanager .v1beta1 .SecretManagerServiceClient ;
20
+ import com .google .cloud .secretmanager .v1 .CreateSecretRequest ;
21
+ import com .google .cloud .secretmanager .v1 .ProjectName ;
22
+ import com .google .cloud .secretmanager .v1 .Replication ;
23
+ import com .google .cloud .secretmanager .v1 .Secret ;
24
+ import com .google .cloud .secretmanager .v1 .SecretManagerServiceClient ;
25
25
import java .io .IOException ;
26
26
27
27
public class CreateSecret {
Original file line number Diff line number Diff line change 17
17
package com .example ;
18
18
19
19
// [START secretmanager_delete_secret]
20
- import com .google .cloud .secretmanager .v1beta1 .DeleteSecretRequest ;
21
- import com .google .cloud .secretmanager .v1beta1 .SecretManagerServiceClient ;
22
- import com .google .cloud .secretmanager .v1beta1 .SecretName ;
20
+ import com .google .cloud .secretmanager .v1 .DeleteSecretRequest ;
21
+ import com .google .cloud .secretmanager .v1 .SecretManagerServiceClient ;
22
+ import com .google .cloud .secretmanager .v1 .SecretName ;
23
23
import java .io .IOException ;
24
24
25
25
public class DeleteSecret {
Original file line number Diff line number Diff line change 17
17
package com .example ;
18
18
19
19
// [START secretmanager_destroy_secret_version]
20
- import com .google .cloud .secretmanager .v1beta1 .DestroySecretVersionRequest ;
21
- import com .google .cloud .secretmanager .v1beta1 .SecretManagerServiceClient ;
22
- import com .google .cloud .secretmanager .v1beta1 .SecretVersion ;
23
- import com .google .cloud .secretmanager .v1beta1 .SecretVersionName ;
20
+ import com .google .cloud .secretmanager .v1 .DestroySecretVersionRequest ;
21
+ import com .google .cloud .secretmanager .v1 .SecretManagerServiceClient ;
22
+ import com .google .cloud .secretmanager .v1 .SecretVersion ;
23
+ import com .google .cloud .secretmanager .v1 .SecretVersionName ;
24
24
import java .io .IOException ;
25
25
26
26
public class DestroySecretVersion {
Original file line number Diff line number Diff line change 17
17
package com .example ;
18
18
19
19
// [START secretmanager_disable_secret_version]
20
- import com .google .cloud .secretmanager .v1beta1 .DisableSecretVersionRequest ;
21
- import com .google .cloud .secretmanager .v1beta1 .SecretManagerServiceClient ;
22
- import com .google .cloud .secretmanager .v1beta1 .SecretVersion ;
23
- import com .google .cloud .secretmanager .v1beta1 .SecretVersionName ;
20
+ import com .google .cloud .secretmanager .v1 .DisableSecretVersionRequest ;
21
+ import com .google .cloud .secretmanager .v1 .SecretManagerServiceClient ;
22
+ import com .google .cloud .secretmanager .v1 .SecretVersion ;
23
+ import com .google .cloud .secretmanager .v1 .SecretVersionName ;
24
24
import java .io .IOException ;
25
25
26
26
public class DisableSecretVersion {
Original file line number Diff line number Diff line change 17
17
package com .example ;
18
18
19
19
// [START secretmanager_enable_secret_version]
20
- import com .google .cloud .secretmanager .v1beta1 .EnableSecretVersionRequest ;
21
- import com .google .cloud .secretmanager .v1beta1 .SecretManagerServiceClient ;
22
- import com .google .cloud .secretmanager .v1beta1 .SecretVersion ;
23
- import com .google .cloud .secretmanager .v1beta1 .SecretVersionName ;
20
+ import com .google .cloud .secretmanager .v1 .EnableSecretVersionRequest ;
21
+ import com .google .cloud .secretmanager .v1 .SecretManagerServiceClient ;
22
+ import com .google .cloud .secretmanager .v1 .SecretVersion ;
23
+ import com .google .cloud .secretmanager .v1 .SecretVersionName ;
24
24
import java .io .IOException ;
25
25
26
26
public class EnableSecretVersion {
Original file line number Diff line number Diff line change 17
17
package com .example ;
18
18
19
19
// [START secretmanager_get_secret]
20
- import com .google .cloud .secretmanager .v1beta1 .GetSecretRequest ;
21
- import com .google .cloud .secretmanager .v1beta1 .Secret ;
22
- import com .google .cloud .secretmanager .v1beta1 .SecretManagerServiceClient ;
23
- import com .google .cloud .secretmanager .v1beta1 .SecretName ;
20
+ import com .google .cloud .secretmanager .v1 .GetSecretRequest ;
21
+ import com .google .cloud .secretmanager .v1 .Secret ;
22
+ import com .google .cloud .secretmanager .v1 .SecretManagerServiceClient ;
23
+ import com .google .cloud .secretmanager .v1 .SecretName ;
24
24
import java .io .IOException ;
25
25
26
26
public class GetSecret {
Original file line number Diff line number Diff line change 17
17
package com .example ;
18
18
19
19
// [START secretmanager_get_secret_version]
20
- import com .google .cloud .secretmanager .v1beta1 .GetSecretVersionRequest ;
21
- import com .google .cloud .secretmanager .v1beta1 .SecretManagerServiceClient ;
22
- import com .google .cloud .secretmanager .v1beta1 .SecretVersion ;
23
- import com .google .cloud .secretmanager .v1beta1 .SecretVersionName ;
20
+ import com .google .cloud .secretmanager .v1 .GetSecretVersionRequest ;
21
+ import com .google .cloud .secretmanager .v1 .SecretManagerServiceClient ;
22
+ import com .google .cloud .secretmanager .v1 .SecretVersion ;
23
+ import com .google .cloud .secretmanager .v1 .SecretVersionName ;
24
24
import java .io .IOException ;
25
25
26
26
public class GetSecretVersion {
Original file line number Diff line number Diff line change 17
17
package com .example ;
18
18
19
19
// [START secretmanager_iam_grant_access]
20
- import com .google .cloud .secretmanager .v1beta1 .SecretManagerServiceClient ;
21
- import com .google .cloud .secretmanager .v1beta1 .SecretName ;
20
51DB
td>+ import com .google .cloud .secretmanager .v1 .SecretManagerServiceClient ;
21
+ import com .google .cloud .secretmanager .v1 .SecretName ;
22
22
import com .google .iam .v1 .Binding ;
23
23
import com .google .iam .v1 .GetIamPolicyRequest ;
24
24
import com .google .iam .v1 .Policy ;
You can’t perform that action at this time.
0 commit comments