Skip to content

Commit c715cf1

Browse files
authored
fix(samples): Update NodeJs comment for rendering latest parameter version (#4287)
* fix(sample): Update comment for rendering latest parameter version * fix(sample): Update comment for rendering latest parameter version * fix(samples):Update NodeJs comment for rendering latest parameter version * fix lint issue
1 parent cf020ea commit c715cf1

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

parametermanager/regional_samples/renderRegionalParamVersion.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* @param {string} projectId - The Google Cloud project ID where the parameter is located.
2323
* @param {string} locationId - The ID of the region where parameter is located.
2424
* @param {string} parameterId - The ID of the parameter for which version details are to be rendered.
25-
* @param {string} parameterVersionId - The ID of the parameter version to be rendered.
25+
* @param {string} parameterVersionId - The ID of the parameter version to be rendered or an alias (e.g. 'latest').
2626
*/
2727
async function main(projectId, locationId, parameterId, parameterVersionId) {
2828
// [START parametermanager_render_regional_param_version]
@@ -33,6 +33,7 @@ async function main(projectId, locationId, parameterId, parameterVersionId) {
3333
// const locationId = 'us-central1';
3434
// const parameterId = 'YOUR_PARAMETER_ID';
3535
// const parameterVersionId = 'YOUR_PARAMETER_VERSION_ID';
36+
// const parameterVersionId = 'latest';
3637

3738
// Imports the Parameter Manager library
3839
const {ParameterManagerClient} = require('@google-cloud/parametermanager');

parametermanager/renderParamVersion.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
*
2222
* @param {string} projectId - The Google Cloud project ID where the parameter is located.
2323
* @param {string} parameterId - The ID of the parameter for which version details are to be rendered.
24-
* @param {string} parameterVersionId - The ID of the parameter version to be rendered.
24+
* @param {string} parameterVersionId - The ID of the parameter version to be rendered or an alias (e.g. 'latest').
2525
*/
2626
async function main(projectId, parameterId, parameterVersionId) {
2727
// [START parametermanager_render_param_version]
@@ -31,6 +31,7 @@ async function main(projectId, parameterId, parameterVersionId) {
3131
// const projectId = 'YOUR_PROJECT_ID';
3232
// const parameterId = 'YOUR_PARAMETER_ID';
3333
// const parameterVersionId = 'YOUR_PARAMETER_VERSION_ID';
34+
// const parameterVersionId = 'latest';
3435

3536
// Imports the Parameter Manager library
3637
const {ParameterManagerClient} = require('@google-cloud/parametermanager');

0 commit comments

Comments
 (0)