Skip to content

Commit cb05572

Browse files
chore: add clarifying comment for the new snippet format (GoogleCloudPlatform#1422)
1 parent 04e98a0 commit cb05572

File tree

183 files changed

+183
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

183 files changed

+183
-0
lines changed

asset/src/batch_get_assets_history.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,6 @@ function batch_get_assets_history(string $projectId, array $assetNames)
3737
}
3838
# [END asset_quickstart_batch_get_assets_history]
3939

40+
// The following 2 lines are only needed to run the samples
4041
require_once __DIR__ . '/../../testing/sample_helpers.php';
4142
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

asset/src/export_assets.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,6 @@ function export_assets(string $projectId, string $dumpFilePath)
5050
}
5151
# [END asset_quickstart_export_assets]
5252

53+
// The following 2 lines are only needed to run the samples
5354
require_once __DIR__ . '/../../testing/sample_helpers.php';
5455
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

asset/src/search_all_iam_policies.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,6 @@ function search_all_iam_policies(
4949
}
5050
// [END asset_quickstart_search_all_iam_policies]
5151

52+
// The following 2 lines are only needed to run the samples
5253
require_once __DIR__ . '/../../testing/sample_helpers.php';
5354
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

asset/src/search_all_resources.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,6 @@ function search_all_resources(
5555
}
5656
// [END asset_quickstart_search_all_resources]
5757

58+
// The following 2 lines are only needed to run the samples
5859
require_once __DIR__ . '/../../testing/sample_helpers.php';
5960
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

auth/src/auth_api_explicit.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,6 @@ function auth_api_explicit($projectId, $serviceAccountPath)
4949
}
5050
# [END auth_api_explicit]
5151

52+
// The following 2 lines are only needed to run the samples
5253
require_once __DIR__ . '/../../testing/sample_helpers.php';
5354
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

auth/src/auth_api_implicit.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,6 @@ function auth_api_implicit($projectId)
4848
}
4949
# [END auth_api_implicit]
5050

51+
// The following 2 lines are only needed to run the samples
5152
require_once __DIR__ . '/../../testing/sample_helpers.php';
5253
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

auth/src/auth_cloud_explicit.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,6 @@ function auth_cloud_explicit($projectId, $serviceAccountPath)
4949
}
5050
# [END auth_cloud_explicit]
5151

52+
// The following 2 lines are only needed to run the samples
5253
require_once __DIR__ . '/../../testing/sample_helpers.php';
5354
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

auth/src/auth_cloud_implicit.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,6 @@ function auth_cloud_implicit($projectId)
4848
}
4949
# [END auth_cloud_implicit]
5050

51+
// The following 2 lines are only needed to run the samples
5152
require_once __DIR__ . '/../../testing/sample_helpers.php';
5253
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

auth/src/auth_http_explicit.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,6 @@ function auth_http_explicit($projectId, $serviceAccountPath)
6666
}
6767
# [END auth_http_explicit]
6868

69+
// The following 2 lines are only needed to run the samples
6970
require_once __DIR__ . '/../../testing/sample_helpers.php';
7071
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

auth/src/auth_http_implicit.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,6 @@ function auth_http_implicit($projectId)
6262
}
6363
# [END auth_http_implicit]
6464

65+
// The following 2 lines are only needed to run the samples
6566
require_once __DIR__ . '/../../testing/sample_helpers.php';
6667
\Google\Cloud\Samples\execute_sample(__FILE__, __NAMESPACE__, $argv);

0 commit comments

Comments
 (0)