about summary refs log tree commit diff
path: root/.venv/lib/python3.12/site-packages/azure/ai/ml/entities/_registry/util.py
blob: 18f561697d0452aa028c4d09847038b106eb709b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# ---------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# ---------------------------------------------------------

from azure.ai.ml._restclient.v2022_10_01_preview.models import ArmResourceId as RestArmResourceId
from azure.ai.ml._restclient.v2022_10_01_preview.models import StorageAccountDetails as RestStorageAccountDetails
from azure.ai.ml._restclient.v2022_10_01_preview.models import (
    UserCreatedStorageAccount as RestUserCreatedStorageAccount,
)


def _make_rest_user_storage_from_id(*, user_id: str) -> RestStorageAccountDetails:
    return RestStorageAccountDetails(
        user_created_storage_account=RestUserCreatedStorageAccount(
            arm_resource_id=RestArmResourceId(resource_id=user_id)
        )
    )