コード例 #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)}
    )
コード例 #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
コード例 #3
0
ファイル: custom.py プロジェクト: jaredwelsh/azure-cli
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
コード例 #4
0
ファイル: custom.py プロジェクト: yugangw-msft/azure-cli
def cli_autho_update(instance, rights):
    from azure.cli.command_modules.eventhubs._utils import accessrights_converter
    instance.rights = accessrights_converter(rights)
    return instance