Skip to content

Commit 2ca75b8

Browse files
authored
Merge pull request #243 from GoogleCloudPlatform/iot-cleanup
Cleanup Cloud IoT region tags.
2 parents 2ebf379 + 78580a0 commit 2ca75b8

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

iot/iot.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@
465465
end
466466

467467
$get_device_states = -> (project_id:, location_id:, registry_id:, device_id:) do
468-
# [START iot_get_device_states]
468+
# [START iot_get_device_state]
469469
# project_id = "Your Google Cloud project ID"
470470
# location_id = "The Cloud region the registry is located in"
471471
# registry_id = "The registry to get device states from"
@@ -495,11 +495,11 @@
495495
else
496496
puts "No state messages"
497497
end
498-
# [END iot_get_device_states]
498+
# [END iot_get_device_state]
499499
end
500500

501501
$patch_es_device = -> (project_id:, location_id:, registry_id:, device_id:, cert_path:) do
502-
# [START iot_patch_es_device]
502+
# [START iot_patch_es]
503503
# project_id = "Your Google Cloud project ID"
504504
# location_id = "The Cloud region the registry is located in"
505505
# registry_id = "The registry to create a device in"
@@ -545,11 +545,11 @@
545545
else
546546
puts "\t\tNo certificates for device"
547547
end
548-
# [END iot_patch_es_device]
548+
# [END iot_patch_es]
549549
end
550550

551551
$patch_rsa_device = -> (project_id:, location_id:, registry_id:, device_id:, cert_path:) do
552-
# [START iot_patch_rsa_device]
552+
# [START iot_patch_rsa]
553553
# project_id = "Your Google Cloud project ID"
554554
# location_id = "The Cloud region the registry is located in"
555555
# registry_id = "The registry to create a device in"
@@ -593,11 +593,11 @@
593593
else
594594
puts "\t\tNo certificates for device"
595595
end
596-
# [END iot_patch_rsa_device]
596+
# [END iot_patch_rsa]
597597
end
598598

599599
$send_device_config = -> (project_id:, location_id:, registry_id:, device_id:, data:) do
600-
# [START send_device_config]
600+
# [START iot_set_device_config]
601601
# project_id = "Your Google Cloud project ID"
602602
# location_id = "The Cloud region the registry is located in"
603603
# registry_id = "The registry to get a device from"
@@ -623,7 +623,7 @@
623623
# Set configuration for the provided device
624624
iot_client.modify_cloud_to_device_config resource, config
625625
puts "Configuration updated!"
626-
# [END send_device_config]
626+
# [END iot_set_device_config]
627627
end
628628

629629
def run_sample arguments

0 commit comments

Comments
 (0)