14995eb1b0921a5afbfb094993aeb0485f3f4d55,iot/api-client/manager/manager.py,,get_config_versions,#Any#Any#Any#Any#Any#,484
Before Change
project_id, cloud_region, registry_id)
device_name = "{}/devices/{}".format(registry_name, device_id)
devices = client.projects().locations().registries().devices()
configs = devices.configVersions().list(
name=device_name).execute().get(
"deviceConfigs", [])
for config in configs:
print("version: {}\n\tcloudUpdateTime: {}\n\t binaryData: {}".format(
config.get("version"),
After Change
configs = client.list_device_config_versions(device_path)
for config in configs.device_configs:
print("version: {}\n\tcloudUpdateTime: {}\n\t data: {}".format(
config.version,
config.cloud_update_time,
config.binary_data))
return configs
// [END iot_get_device_configs]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 14995eb1b0921a5afbfb094993aeb0485f3f4d55
Time: 2019-10-18
Author: gguuss@gmail.com
File Name: iot/api-client/manager/manager.py
Class Name:
Method Name: get_config_versions
Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 14995eb1b0921a5afbfb094993aeb0485f3f4d55
Time: 2019-10-18
Author: gguuss@gmail.com
File Name: iot/api-client/manager/manager.py
Class Name:
Method Name: get_config_versions
Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 1bddafd3102e4e0841d78673581c3ead8f68a7c8
Time: 2019-05-20
Author: amancuso@google.com
File Name: dataproc/submit_job_to_cluster.py
Class Name:
Method Name: list_clusters_with_details
Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 6f9eacfd1d5f6ebf961d134f538e7613c0b9fc25
Time: 2019-01-07
Author: d.sanche14@gmail.com
File Name: kms/api-client/snippets.py
Class Name:
Method Name: get_key_ring_policy