Skip to content

Commit c96a65f

Browse files
sdeneffhinkel
authored andcommitted
Update scheduleinstance functions doc
1 parent ab9ecfc commit c96a65f

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

functions/scheduleinstance/index.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const compute = new Compute();
2121
// [END functions_stop_instance_pubsub]
2222

2323
/**
24-
* Starts a Compute Engine instance.
24+
* Starts Compute Engine instances.
2525
*
2626
* Expects a PubSub message with JSON-formatted event data containing the
2727
* following attributes:
@@ -72,15 +72,12 @@ exports.startInstancePubSub = (event, context, callback) => {
7272
// [START functions_stop_instance_pubsub]
7373

7474
/**
75-
* Stops a Compute Engine instance.
75+
* Stops Compute Engine instances.
7676
*
7777
* Expects a PubSub message with JSON-formatted event data containing the
7878
* following attributes:
7979
* zone - the GCP zone the instances are located in.
80-
* instance - the name of a single instance.
81-
* label - the label of instances to start.
82-
*
83-
* Exactly one of instance or label must be specified.
80+
* label - the label of instances to stop.
8481
*
8582
* @param {!object} event Cloud Function PubSub message event.
8683
* @param {!object} callback Cloud Function PubSub callback indicating completion.

0 commit comments

Comments
 (0)