Ejemplo n.º 1
0
def cli_namespaceautho_create(client, resource_group_name, namespace_name, name, rights=None):
    from azure.cli.command_modules.eventhubs._utils import accessrights_converter
    return client.create_or_update_authorization_rule(
        resource_group_name=resource_group_name,
        namespace_name=namespace_name,
        authorization_rule_name=name,
        parameters={'rights': accessrights_converter(rights)}
    )
Ejemplo n.º 2
0
def cli_autho_update(instance, rights):
    from azure.cli.command_modules.eventhubs._utils import accessrights_converter
    instance.rights = accessrights_converter(rights)
    return instance
Ejemplo n.º 3
0
def cli_autho_update(cmd, instance, rights):
    if cmd.supported_api_version(resource_type=ResourceType.MGMT_EVENTHUB,
                                 min_api='2021-06-01-preview'):
        from azure.cli.command_modules.eventhubs._utils import accessrights_converter
        instance.rights = accessrights_converter(rights)
    return instance
Ejemplo n.º 4
0
def cli_autho_update(instance, rights):
    from azure.cli.command_modules.eventhubs._utils import accessrights_converter
    instance.rights = accessrights_converter(rights)
    return instance