Skip to content

Commit aeb6227

Browse files
samples: refactored samples to v2 (GoogleCloudPlatform#4820)
* samples: refactored samples to v2 * fixed manager samples * updated * added missing part * removed TODO * changed topcs * made requested changes * lint Co-authored-by: Charles Engelke <engelke@google.com>
1 parent 82245b7 commit aeb6227

File tree

8 files changed

+90
-86
lines changed

8 files changed

+90
-86
lines changed

iot/api-client/end_to_end_example/cloudiot_pubsub_example_server_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
cloud_region = 'us-central1'
2222
device_id_template = 'test-device-{}'
23-
topic_id = 'test-device-events-{}'.format(int(time.time()))
23+
topic_id = 'test-device-events-topic-{}'.format(int(time.time()))
2424

2525
project_id = os.environ['GOOGLE_CLOUD_PROJECT']
2626
service_account_json = os.environ['GOOGLE_APPLICATION_CREDENTIALS']

iot/api-client/gcs_file_to_device/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
google-api-python-client==1.12.2
22
google-auth==1.22.1
33
google-auth-httplib2==0.0.4
4-
google-cloud-iot==1.0.0
4+
google-cloud-iot==2.0.1
55
google-cloud-pubsub==1.7.0
66
google-cloud-storage==1.31.2
77
cryptography==3.1.1

iot/api-client/http_example/cloudiot_http_example_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
es_cert_path = 'resources/ec_public.pem'
3232
rsa_cert_path = 'resources/rsa_cert.pem'
3333
rsa_private_path = 'resources/rsa_private.pem'
34-
topic_id = 'test-device-events-{}'.format(int(time.time()))
34+
topic_id = 'test-device-events-topic-{}'.format(int(time.time()))
3535

3636
project_id = os.environ['GOOGLE_CLOUD_PROJECT']
3737
service_account_json = os.environ['GOOGLE_APPLICATION_CREDENTIALS']

iot/api-client/http_example/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ cryptography==3.1.1
22
google-api-python-client==1.12.2
33
google-auth-httplib2==0.0.4
44
google-auth==1.22.1
5-
google-cloud-iot==1.0.0
5+
google-cloud-iot==2.0.1
66
google-cloud-pubsub==1.7.0
77
pyjwt==1.7.1
88
requests==2.24.0

0 commit comments

Comments
 (0)