We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 947e3fe commit 8564915Copy full SHA for 8564915
iot/src/create_registry.php
@@ -38,7 +38,12 @@ function create_registry(
38
) {
39
print('Creating Registry' . PHP_EOL);
40
41
- // Instantiate a client.
+ // The Google Cloud Client Library automatically checks the environment
42
+ // variable GOOGLE_APPLICATION_CREDENTIALS for the Service Account
43
+ // credentials, and defaults scopes to [
44
+ // 'https://www.googleapis.com/auth/cloud-platform',
45
+ // 'https://www.googleapis.com/auth/cloudiot'
46
+ // ].
47
$deviceManager = new DeviceManagerClient();
48
$locationName = $deviceManager->locationName($projectId, $location);
49
0 commit comments