Skip to content

Commit dcf7005

Browse files
fix(parametermanager): update testcases and function arguments
1 parent e9edd91 commit dcf7005

12 files changed

+79
-67
lines changed

parametermanager/deleteParam.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* @param {string} projectId - The Google Cloud project ID where the parameter is located.
2121
* @param {string} parameterId - The ID of the parameter to delete.
2222
*/
23-
async function main(projectId = 'my-project', parameterId = 'my-parameter') {
23+
async function main(projectId, parameterId) {
2424
// [START parametermanager_delete_param]
2525
/**
2626
* TODO(developer): Uncomment these variables before running the sample.

parametermanager/deleteParamVersion.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,7 @@
2222
* @param {string} parameterId - The ID of the parameter for which version is to be deleted.
2323
* @param {string} versionId - The version ID of the parameter to delete.
2424
*/
25-
async function main(
26-
projectId = 'my-project',
27-
parameterId = 'my-parameter',
28-
versionId = 'v1'
29-
) {
25+
async function main(projectId, parameterId, versionId) {
3026
// [START parametermanager_delete_param_version]
3127
/**
3228
* TODO(developer): Uncomment these variables before running the sample.

parametermanager/disableParamVersion.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,7 @@
2323
* @param {string} parameterId - The ID of the parameter for which version is to be disabled.
2424
* @param {string} versionId - The version ID of the parameter to be disabled.
2525
*/
26-
async function main(
27-
projectId = 'my-project',
28-
parameterId = 'my-parameter',
29-
versionId = 'v1'
30-
) {
26+
async function main(projectId, parameterId, versionId) {
3127
// [START parametermanager_disable_param_version]
3228
/**
3329
* TODO(developer): Uncomment these variables before running the sample.

parametermanager/enableParamVersion.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,7 @@
2323
* @param {string} parameterId - The ID of the parameter for which version is to be enabled.
2424
* @param {string} versionId - The version ID of the parameter to be enabled.
2525
*/
26-
async function main(
27-
projectId = 'my-project',
28-
parameterId = 'my-parameter',
29-
versionId = 'v1'
30-
) {
26+
async function main(projectId, parameterId, versionId) {
3127
// [START parametermanager_enable_param_version]
3228
/**
3329
* TODO(developer): Uncomment these variables before running the sample.

parametermanager/quickstart.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,7 @@
2929
* @param {string} parameterId - The ID of the new parameter.
3030
* @param {string} parameterVersionId - The ID of the parameter version.
3131
*/
32-
async function main(
33-
projectId = 'my-project',
34-
parameterId = 'my-parameter',
35-
parameterVersionId = 'v1'
36-
) {
32+
async function main(projectId, parameterId, parameterVersionId) {
3733
// [START parametermanager_quickstart]
3834
/**
3935
* TODO(developer): Uncomment these variables before running the sample.

parametermanager/regional_samples/deleteRegionalParam.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,7 @@
2222
* @param {string} locationId - The ID of the region where parameter is located.
2323
* @param {string} parameterId - The ID of the parameter to delete.
2424
*/
25-
async function main(
26-
projectId = 'my-project',
27-
locationId = 'us-central1',
28-
parameterId = 'my-parameter'
29-
) {
25+
async function main(projectId, locationId, parameterId) {
3026
// [START parametermanager_delete_regional_param]
3127
/**
3228
* TODO(developer): Uncomment these variables before running the sample.

parametermanager/regional_samples/deleteRegionalParamVersion.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,7 @@
2323
* @param {string} parameterId - The ID of the parameter for which version is to be deleted.
2424
* @param {string} versionId - The version ID of the parameter to delete.
2525
*/
26-
async function main(
27-
projectId = 'my-project',
28-
locationId = 'us-central1',
29-
parameterId = 'my-parameter',
30-
versionId = 'v1'
31-
) {
26+
async function main(projectId, locationId, parameterId, versionId) {
3227
// [START parametermanager_delete_regional_param_version]
3328
/**
3429
* TODO(developer): Uncomment these variables before running the sample.

parametermanager/regional_samples/disableRegionalParamVersion.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,7 @@
2626
* @param {string} parameterId - The ID of the parameter for which version is to be disabled.
2727
* @param {string} versionId - The version ID of the parameter to be disabled.
2828
*/
29-
async function main(
30-
projectId = 'my-project',
31-
locationId = 'us-central1',
32-
parameterId = 'my-parameter',
33-
versionId = 'v1'
34-
) {
29+
async function main(projectId, locationId, parameterId, versionId) {
3530
// [START parametermanager_disable_regional_param_version]
3631
/**
3732
* TODO(developer): Uncomment these variables before running the sample.

parametermanager/regional_samples/enableRegionalParamVersion.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,7 @@
2424
* @param {string} parameterId - The ID of the parameter for which version is to be enabled.
2525
* @param {string} versionId - The version ID of the parameter to be enabled.
2626
*/
27-
async function main(
28-
projectId = 'my-project',
29-
locationId = 'us-central1',
30-
parameterId = 'my-parameter',
31-
versionId = 'v1'
32-
) {
27+
async function main(projectId, locationId, parameterId, versionId) {
3328
// [START parametermanager_enable_regional_param_version]
3429
/**
3530
* TODO(developer): Uncomment these variables before running the sample.

parametermanager/regional_samples/regionalQuickstart.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,7 @@
2424
* @param {string} parameterId - The ID of the parameter to create.
2525
* @param {string} parameterVersionId - The ID of the parameter version to create.
2626
*/
27-
async function main(
28-
projectId = 'my-project',
29-
locationId = 'us-central1',
30-
parameterId = 'my-parameter',
31-
parameterVersionId = 'v1'
32-
) {
27+
async function main(projectId, locationId, parameterId, parameterVersionId) {
3328
// [START parametermanager_regional_quickstart]
3429
/**
3530
* TODO(developer): Uncomment these variables before running the sample.

0 commit comments

Comments
 (0)