900900b869f3327d932b5fb9bdefcf475b0f7f24,iot/api-client/manager/manager.py,,patch_es256_auth,#Any#Any#Any#Any#Any#Any#,398

Before Change


        }]
    }

    device_name = "{}/devices/{}".format(registry_path, device_id)

    return client.projects().locations().registries().devices().patch(
            name=device_name, updateMask="credentials", body=patch).execute()
    // [END iot_patch_es]

After Change


    cred = iot_v1.types.DeviceCredential(public_key=key)
    device = client.get_device(device_path)

    device.id = b""
    device.num_id = 0
    device.credentials.append(cred)

    mask = iot_v1.types.FieldMask()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


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


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: chartbeat-labs/textacy
Commit Name: 2fdabb14fd48534243b2e472995f4bec432ed493
Time: 2017-05-07
Author: burton@chartbeat.com
File Name: textacy/constants.py
Class Name:
Method Name: