8000 Add region tags for getting config. (#1301) · johnmanong/python-docs-samples@7d16203 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7d16203

Browse files
noerogJon Wayne Parrott
authored and
Jon Wayne Parrott
committed
Add region tags for getting config. (GoogleCloudPlatform#1301)
* Add region tags for getting config. * Update cloudiot_http_example.py * Update cloudiot_http_example.py
1 parent d6a7f6b commit 7d16203

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

iot/api-client/http_example/cloudiot_http_example.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ def publish_message(
9797
@retry.Retry(
9898
predicate=retry.if_exception_type(AssertionError),
9999
deadline=_BACKOFF_DURATION)
100+
# [START iot_http_getconfig]
100101
def get_config(
101102
version, message_type, base_url, project_id, cloud_region, registry_id,
102103
device_id, jwt_token):
@@ -118,6 +119,7 @@ def get_config(
118119
raise AssertionError('Not OK response: {}'.format(resp.status_code))
119120

120121
return resp
122+
# [END iot_http_getconfig]
121123

122124

123125
def parse_command_line_args():

0 commit comments

Comments
 (0)
0