@@ -86,7 +86,7 @@ function createIotTopic (topicName) {
8686
8787// Lookup the registry, assuming that it exists.
8888function lookupRegistry ( client , registryId , projectId , cloudRegion , cb ) {
89- // [BEGIN iot_lookup_registry]
89+ // [START iot_lookup_registry]
9090 // Client retrieved in callback
9191 // getClient(apiKey, serviceAccountJson, function(client) {...});
9292 // const cloudRegion = 'us-central1';
@@ -113,7 +113,7 @@ function lookupRegistry (client, registryId, projectId, cloudRegion, cb) {
113113// Create a new registry, or look up an existing one if it doesn't exist.
114114function lookupOrCreateRegistry ( client , registryId , projectId , cloudRegion ,
115115 pubsubTopicId ) {
116- // [BEGIN iot_lookup_or_create_registry]
116+ // [START iot_lookup_or_create_registry]
117117 // Client retrieved in callback
118118 // getClient(apiKey, serviceAccountJson, function(client) {...});
119119 // const cloudRegion = 'us-central1';
@@ -154,7 +154,7 @@ function lookupOrCreateRegistry (client, registryId, projectId, cloudRegion,
154154// the device, such as authentication.
155155function createUnauthDevice ( client , deviceId , registryId , projectId ,
156156 cloudRegion , body ) {
157- // [BEGIN iot_create_unauth_device]
157+ // [START iot_create_unauth_device]
158158 // Client retrieved in callback
159159 // getClient(apiKey, serviceAccountJson, function(client) {...});
160160 // const cloudRegion = 'us-central1';
@@ -185,7 +185,7 @@ function createUnauthDevice (client, deviceId, registryId, projectId,
185185// Create a device using RSA256 for authentication.
186186function createRsaDevice ( client , deviceId , registryId , projectId , cloudRegion ,
187187 rsaCertificateFile ) {
188- // [BEGIN iot_create_rsa_device]
188+ // [START iot_create_rsa_device]
189189 // Client retrieved in callback
190190 // getClient(apiKey, serviceAccountJson, function(client) {...});
191191 // const cloudRegion = 'us-central1';
@@ -228,7 +228,7 @@ function createRsaDevice (client, deviceId, registryId, projectId, cloudRegion,
228228// Create a device using ES256 for authentication.
229229function createEsDevice ( client , deviceId , registryId , projectId , cloudRegion ,
230230 esCertificateFile ) {
231- // [BEGIN iot_create_es_device]
231+ // [START iot_create_es_device]
232232 // Client retrieved in callback
233233 // getClient(apiKey, serviceAccountJson, function(client) {...});
234234 // const cloudRegion = 'us-central1';
@@ -269,7 +269,7 @@ function createEsDevice (client, deviceId, registryId, projectId, cloudRegion,
269269// Add RSA256 authentication to the given device.
270270function patchRsa256ForAuth ( client , deviceId , registryId , rsaPublicKeyFile ,
271271 projectId , cloudRegion ) {
272- // [BEGIN iot_patch_rsa]
272+ // [START iot_patch_rsa]
273273 // Client retrieved in callback
274274 // getClient(apiKey, serviceAccountJson, function(client) {...});
275275 // const cloudRegion = 'us-central1';
@@ -309,7 +309,7 @@ function patchRsa256ForAuth (client, deviceId, registryId, rsaPublicKeyFile,
309309// Add ES256 authentication to the given device.
310310function patchEs256ForAuth ( client , deviceId , registryId , esPublicKeyFile ,
311311 projectId , cloudRegion ) {
312- // [BEGIN iot_patch_es]
312+ // [START iot_patch_es]
313313 // Client retrieved in callback
314314 // getClient(apiKey, serviceAccountJson, function(client) {...});
315315 // const cloudRegion = 'us-central1';
@@ -375,7 +375,7 @@ function listDevices (client, registryId, projectId, cloudRegion) {
375375// Delete the given device from the registry.
376376function deleteDevice ( client , deviceId , registryId , projectId , cloudRegion ,
377377 cb ) {
378- // [BEGIN iot_delete_device]
378+ // [START iot_delete_device]
379379 // Client retrieved in callback
380380 // getClient(apiKey, serviceAccountJson, function(client) {...});
381381 // const cloudRegion = 'us-central1';
@@ -454,7 +454,7 @@ function clearRegistry (client, registryId, projectId, cloudRegion) {
454454// Delete the given registry. Note that this will only succeed if the registry
455455// is empty.
456456function deleteRegistry ( client , registryId , projectId , cloudRegion ) {
457- // [BEGIN iot_delete_registry]
457+ // [START iot_delete_registry]
458458 // Client retrieved in callback
459459 // getClient(apiKey, serviceAccountJson, function(client) {...});
460460 // const cloudRegion = 'us-central1';
@@ -480,7 +480,7 @@ function deleteRegistry (client, registryId, projectId, cloudRegion) {
480480
481481// Retrieve the given device from the registry.
482482function getDevice ( client , deviceId , registryId , projectId , cloudRegion ) {
483- // [BEGIN iot_get_device]
483+ // [START iot_get_device]
484484 // Client retrieved in callback
485485 // getClient(apiKey, serviceAccountJson, function(client) {...});
486486 // const cloudRegion = 'us-central1';
0 commit comments