223abdede96295f7fba58a1d1e1fb63a961c33f5,iot/api-client/manager/manager.py,,unbind_device_from_gateway,#Any#Any#Any#Any#Any#Any#,659

Before Change


        gateway_id):
    Unbinds a device to a gateway.
    // [START iot_unbind_device_from_gateway]
    client = get_client(service_account_json)

    registry_name = "projects/{}/locations/{}/registries/{}".format(
            project_id, cloud_region, registry_id)
    bind_request = {
        "deviceId": device_id,
        "gatewayId": gateway_id
    }

    res = client.projects().locations().registries().unbindDeviceFromGateway(
        parent=registry_name, body=bind_request).execute()
    print("Device unbound: {}".format(res))
    // [END iot_unbind_device_from_gateway]

After Change


        gateway_id):
    Unbinds a device to a gateway.
    // [START iot_unbind_device_from_gateway]
    client = iot_v1.DeviceManagerClient()

    parent = client.registry_path(project_id, cloud_region, registry_id)

    res = client.unbind_device_from_gateway(parent, gateway_id, device_id)

    print("Device unbound: {}".format(res))
    // [END iot_unbind_device_from_gateway]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 9

Instances


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 223abdede96295f7fba58a1d1e1fb63a961c33f5
Time: 2019-10-09
Author: gguuss@gmail.com
File Name: iot/api-client/manager/manager.py
Class Name:
Method Name: unbind_device_from_gateway


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 223abdede96295f7fba58a1d1e1fb63a961c33f5
Time: 2019-10-09
Author: gguuss@gmail.com
File Name: iot/api-client/manager/manager.py
Class Name:
Method Name: bind_device_to_gateway


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 900900b869f3327d932b5fb9bdefcf475b0f7f24
Time: 2019-10-07
Author: gguuss@gmail.com
File Name: iot/api-client/manager/manager.py
Class Name:
Method Name: patch_rsa256_auth


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 900900b869f3327d932b5fb9bdefcf475b0f7f24
Time: 2019-10-07
Author: gguuss@gmail.com
File Name: iot/api-client/manager/manager.py
Class Name:
Method Name: patch_es256_auth