コード例 #1
0
def create_twin(
    cmd, name, twin_id, model_id, properties=None, resource_group_name=None
):
    twin_provider = TwinProvider(cmd=cmd, name=name, rg=resource_group_name)
    return twin_provider.create(
        twin_id=twin_id, model_id=model_id, properties=properties
    )
コード例 #2
0
def create_twin(cmd,
                name_or_hostname,
                twin_id,
                model_id,
                if_none_match=False,
                properties=None,
                resource_group_name=None):
    twin_provider = TwinProvider(cmd=cmd,
                                 name=name_or_hostname,
                                 rg=resource_group_name)
    return twin_provider.create(twin_id=twin_id,
                                model_id=model_id,
                                if_none_match=if_none_match,
                                properties=properties)