File tree Expand file tree Collapse file tree 15 files changed +35
-35
lines changed Expand file tree Collapse file tree 15 files changed +35
-35
lines changed Original file line number Diff line number Diff line change 26
26
27
27
// [START secretmanager_quickstart]
28
28
// Import the Secret Manager client library.
29
- use Google \Cloud \SecretManager \V1Beta1 \Replication ;
30
- use Google \Cloud \SecretManager \V1Beta1 \Replication \Automatic ;
31
- use Google \Cloud \SecretManager \V1Beta1 \Secret ;
32
- use Google \Cloud \SecretManager \V1Beta1 \SecretManagerServiceClient ;
33
- use Google \Cloud \SecretManager \V1Beta1 \SecretPayload ;
29
+ use Google \Cloud \SecretManager \V1beta1 \Replication ;
30
+ use Google \Cloud \SecretManager \V1beta1 \Replication \Automatic ;
31
+ use Google \Cloud \SecretManager \V1beta1 \Secret ;
32
+ use Google \Cloud \SecretManager \V1beta1 \SecretManagerServiceClient ;
33
+ use Google \Cloud \SecretManager \V1beta1 \SecretPayload ;
34
34
35
35
/** Uncomment and populate these variables in your code */
36
36
// $projectId = 'YOUR_GOOGLE_CLOUD_PROJECT' (e.g. 'my-project');
Original file line number Diff line number Diff line change 32
32
33
33
// [START secretmanager_access_secret_version]
34
34
// Import the Secret Manager client library.
35
- use Google \Cloud \SecretManager \V1Beta1 \SecretManagerServiceClient ;
35
+ use Google \Cloud \SecretManager \V1beta1 \SecretManagerServiceClient ;
36
36
37
37
/** Uncomment and populate these variables in your code */
38
38
// $projectId = 'YOUR_GOOGLE_CLOUD_PROJECT' (e.g. 'my-project');
39
39
// $secretId = 'YOUR_SECRET_ID' (e.g. 'my-secret');
40
- // versionId = 'YOUR_VERSION_ID' (e.g. 'latest' or '5');
40
+ // $ versionId = 'YOUR_VERSION_ID' (e.g. 'latest' or '5');
41
41
42
42
// Create the Secret Manager client.
43
43
$ client = new SecretManagerServiceClient ();
Original file line number Diff line number Diff line change 32
32
33
33
// [START secretmanager_add_secret_version]
34
34
// Import the Secret Manager client library.
35
- use Google \Cloud \SecretManager \V1Beta1 \SecretManagerServiceClient ;
36
- use Google \Cloud \SecretManager \V1Beta1 \SecretPayload ;
35
+ use Google \Cloud \SecretManager \V1beta1 \SecretManagerServiceClient ;
36
+ use Google \Cloud \SecretManager \V1beta1 \SecretPayload ;
37
37
38
38
/** Uncomment and populate these variables in your code */
39
39
// $projectId = 'YOUR_GOOGLE_CLOUD_PROJECT' (e.g. 'my-project');
Original file line number Diff line number Diff line change 32
32
33
33
// [START secretmanager_create_secret]
34
34
// Import the Secret Manager client library.
35
- use Google \Cloud \SecretManager \V1Beta1 \Replication ;
36
- use Google \Cloud \SecretManager \V1Beta1 \Replication \Automatic ;
37
- use Google \Cloud \SecretManager \V1Beta1 \Secret ;
38
- use Google \Cloud \SecretManager \V1Beta1 \SecretManagerServiceClient ;
35
+ use Google \Cloud \SecretManager \V1beta1 \Replication ;
36
+ use Google \Cloud \SecretManager \V1beta1 \Replication \Automatic ;
37
+ use Google \Cloud \SecretManager \V1beta1 \Secret ;
38
+ use Google \Cloud \SecretManager \V1beta1 \SecretManagerServiceClient ;
39
39
40
40
/** Uncomment and populate these variables in your code */
41
41
// $projectId = 'YOUR_GOOGLE_CLOUD_PROJECT' (e.g. 'my-project');
Original file line number Diff line number Diff line change 32
32
33
33
// [START secretmanager_delete_secret]
34
34
// Import the Secret Manager client library.
35
- use Google \Cloud \SecretManager \V1Beta1 \SecretManagerServiceClient ;
35
+ use Google \Cloud \SecretManager \V1beta1 \SecretManagerServiceClient ;
36
36
37
37
/** Uncomment and populate these variables in your code */
38
38
// $projectId = 'YOUR_GOOGLE_CLOUD_PROJECT' (e.g. 'my-project');
Original file line number Diff line number Diff line change 32
32
33
33
// [START secretmanager_destroy_secret_version]
34
34
// Import the Secret Manager client library.
35
- use Google \Cloud \SecretManager \V1Beta1 \SecretManagerServiceClient ;
35
+ use Google \Cloud \SecretManager \V1beta1 \SecretManagerServiceClient ;
36
36
37
37
/** Uncomment and populate these variables in your code */
38
38
// $projectId = 'YOUR_GOOGLE_CLOUD_PROJECT' (e.g. 'my-project');
39
39
// $secretId = 'YOUR_SECRET_ID' (e.g. 'my-secret');
40
- // versionId = 'YOUR_VERSION_ID' (e.g. 'latest' or '5');
40
+ // $ versionId = 'YOUR_VERSION_ID' (e.g. 'latest' or '5');
41
41
42
42
// Create the Secret Manager client.
43
43
$ client = new SecretManagerServiceClient ();
Original file line number Diff line number Diff line change 32
32
33
33
// [START secretmanager_disable_secret_version]
34
34
// Import the Secret Manager client library.
35
- use Google \Cloud \SecretManager \V1Beta1 \SecretManagerServiceClient ;
35
+ use Google \Cloud \SecretManager \V1beta1 \SecretManagerServiceClient ;
36
36
37
37
/** Uncomment and populate these variables in your code */
38
38
// $projectId = 'YOUR_GOOGLE_CLOUD_PROJECT' (e.g. 'my-project');
39
39
// $secretId = 'YOUR_SECRET_ID' (e.g. 'my-secret');
40
- // versionId = 'YOUR_VERSION_ID' (e.g. 'latest' or '5');
40
+ // $ versionId = 'YOUR_VERSION_ID' (e.g. 'latest' or '5');
41
41
42
42
// Create the Secret Manager client.
43
43
$ client = new SecretManagerServiceClient ();
Original file line number Diff line number Diff line change 32
32
33
33
// [START secretmanager_enable_secret_version]
34
34
// Import the Secret Manager client library.
35
- use Google \Cloud \SecretManager \V1Beta1 \SecretManagerServiceClient ;
35
+ use Google \Cloud \SecretManager \V1beta1 \SecretManagerServiceClient ;
36
36
37
37
/** Uncomment and populate these variables in your code */
38
38
// $projectId = 'YOUR_GOOGLE_CLOUD_PROJECT' (e.g. 'my-project');
39
39
// $secretId = 'YOUR_SECRET_ID' (e.g. 'my-secret');
40
- // versionId = 'YOUR_VERSION_ID' (e.g. 'latest' or '5');
40
+ // $ versionId = 'YOUR_VERSION_ID' (e.g. 'latest' or '5');
41
41
42
42
// Create the Secret Manager client.
43
43
$ client = new SecretManagerServiceClient ();
Original file line number Diff line number Diff line change 32
32
33
33
// [START secretmanager_get_secret]
34
34
// Import the Secret Manager client library.
35
- use Google \Cloud \SecretManager \V1Beta1 \SecretManagerServiceClient ;
35
+ use Google \Cloud \SecretManager \V1beta1 \SecretManagerServiceClient ;
36
36
37
37
/** Uncomment and populate these variables in your code */
38
38
// $projectId = 'YOUR_GOOGLE_CLOUD_PROJECT' (e.g. 'my-project');
Original file line number Diff line number Diff line change 32
32
33
33
// [START secretmanager_get_secret_version]
34
34
// Import the Secret Manager client library.
35
- use Google \Cloud \SecretManager \V1Beta1 \SecretManagerServiceClient ;
36
- use Google \Cloud \SecretManager \V1Beta1 \SecretVersion \State ;
35
+ use Google \Cloud \SecretManager \V1beta1 \SecretManagerServiceClient ;
36
+ use Google \Cloud \SecretManager \V1beta1 \SecretVersion \State ;
37
37
38
38
/** Uncomment and populate these variables in your code */
39
39
// $projectId = 'YOUR_GOOGLE_CLOUD_PROJECT' (e.g. 'my-project');
40
40
// $secretId = 'YOUR_SECRET_ID' (e.g. 'my-secret');
41
- // versionId = 'YOUR_VERSION_ID' (e.g. 'latest' or '5');
41
+ // $ versionId = 'YOUR_VERSION_ID' (e.g. 'latest' or '5');
42
42
43
43
// Create the Secret Manager client.
44
44
$ client = new SecretManagerServiceClient ();
Original file line number Diff line number Diff line change 32
32
33
33
// [START secretmanager_list_secret_versions]
34
34
// Import the Secret Manager client library.
35
- use Google \Cloud \SecretManager \V1Beta1 \SecretManagerServiceClient ;
35
+ use Google \Cloud \SecretManager \V1beta1 \SecretManagerServiceClient ;
36
36
37
37
/** Uncomment and populate these variables in your code */
38
38
// $projectId = 'YOUR_GOOGLE_CLOUD_PROJECT' (e.g. 'my-project');
Original file line number Diff line number Diff line change 32
32
33
33
// [START secretmanager_list_secrets]
34
34
// Import the Secret Manager client library.
35
- use Google \Cloud \SecretManager \V1Beta1 \SecretManagerServiceClient ;
35
+ use Google \Cloud \SecretManager \V1beta1 \SecretManagerServiceClient ;
36
36
37
37
/** Uncomment and populate these variables in your code */
38
38
// $projectId = 'YOUR_GOOGLE_CLOUD_PROJECT' (e.g. 'my-project');
Original file line number Diff line number Diff line change 32
32
33
33
// [START secretmanager_update_secret]
34
34
// Import the Secret Manager client library.
35
- use Google \Cloud \SecretManager \V1Beta1 \Secret ;
36
- use Google \Cloud \SecretManager \V1Beta1 \SecretManagerServiceClient ;
35
+ use Google \Cloud \SecretManager \V1beta1 \Secret ;
36
+ use Google \Cloud \SecretManager \V1beta1 \SecretManagerServiceClient ;
37
37
use Google \Protobuf \FieldMask ;
38
38
39
39
/** Uncomment and populate these variables in your code */
Original file line number Diff line number Diff line change 17
17
18
18
declare (strict_types=1 );
19
19
20
- use Google \Cloud \SecretManager \V1Beta1 \SecretManagerServiceClient ;
20
+ use Google \Cloud \SecretManager \V1beta1 \SecretManagerServiceClient ;
21
21
use Google \Cloud \TestUtils \TestTrait ;
22
22
use PHPUnit \Framework \TestCase ;
23
23
Original file line number Diff line number Diff line change 19
19
20
20
namespace Google \Cloud \Samples \SecretManager ;
21
21
22
- use Google \Cloud \SecretManager \V1Beta1 \Replication ;
23
- use Google \Cloud \SecretManager \V1Beta1 \Replication \Automatic ;
24
- use Google \Cloud \SecretManager \V1Beta1 \Secret ;
25
- use Google \Cloud \SecretManager \V1Beta1 \SecretManagerServiceClient ;
26
- use Google \Cloud \SecretManager \V1Beta1 \SecretPayload ;
27
- use Google \Cloud \SecretManager \V1Beta1 \SecretVersion ;
22
+ use Google \Cloud \SecretManager \V1beta1 \Replication ;
23
+ use Google \Cloud \SecretManager \V1beta1 \Replication \Automatic ;
24
+ use Google \Cloud \SecretManager \V1beta1 \Secret ;
25
+ use Google \Cloud \SecretManager \V1beta1 \SecretManagerServiceClient ;
26
+ use Google \Cloud \SecretManager \V1beta1 \SecretPayload ;
27
+ use Google \Cloud \SecretManager \V1beta1 \SecretVersion ;
28
28
use Google \Cloud \TestUtils \TestTrait ;
29
29
use PHPUnit \Framework \TestCase ;
30
30
You can’t perform that action at this time.
0 commit comments