sdk/python/pulumi_azure_nextgen/labservices/latest/list_global_user_labs.py
def list_global_user_labs(user_name: Optional[str] = None,
                          opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableListGlobalUserLabsResult:
    """
    Lists the labs owned by a user
    Latest API Version: 2018-10-15.


    :param str user_name: The name of the user.
    """
    pulumi.log.warn("list_global_user_labs is deprecated: The 'latest' version is deprecated. Please migrate to the function in the top-level module: 'azure-nextgen:labservices:listGlobalUserLabs'.")
    __args__ = dict()
    __args__['userName'] = user_name
    if opts is None:
        opts = pulumi.InvokeOptions()
    if opts.version is None:
        opts.version = _utilities.get_version()
    __ret__ = pulumi.runtime.invoke('azure-nextgen:labservices/latest:listGlobalUserLabs', __args__, opts=opts, typ=ListGlobalUserLabsResult).value

    return AwaitableListGlobalUserLabsResult(
        labs=__ret__.labs)

    Lists the labs owned by a user
    Latest API Version: 2018-10-15.


    :param str user_name: The name of the user.
    
Lists the labs owned by a user
Latest API Version: 2018-10-15.
Lists the labs owned by a user Latest API Version : 2018 - 10 - 15 .
def list_global_user_labs(user_name: Optional[str] = None,
                          opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableListGlobalUserLabsResult:
    pulumi.log.warn("list_global_user_labs is deprecated: The 'latest' version is deprecated. Please migrate to the function in the top-level module: 'azure-nextgen:labservices:listGlobalUserLabs'.")
    __args__ = dict()
    __args__['userName'] = user_name
    if opts is None:
        opts = pulumi.InvokeOptions()
    if opts.version is None:
        opts.version = _utilities.get_version()
    __ret__ = pulumi.runtime.invoke('azure-nextgen:labservices/latest:listGlobalUserLabs', __args__, opts=opts, typ=ListGlobalUserLabsResult).value
    return AwaitableListGlobalUserLabsResult(
        labs=__ret__.labs)
def list_global_user_labs ( user_name : Optional [ str ] = None , opts : Optional [ pulumi . InvokeOptions ] = None ) -> AwaitableListGlobalUserLabsResult : pulumi . log . warn ( "list_global_user_labs is deprecated: The 'latest' version is deprecated. Please migrate to the function in the top-level module: 'azure-nextgen:labservices:listGlobalUserLabs'." ) __args__ = dict ( ) __args__ [ 'userName' ] = user_name if opts is None : opts = pulumi . InvokeOptions ( ) if opts . version is None : opts . version = _utilities . get_version ( ) __ret__ = pulumi . runtime . invoke ( 'azure-nextgen:labservices/latest:listGlobalUserLabs' , __args__ , opts = opts , typ = ListGlobalUserLabsResult ) . value return AwaitableListGlobalUserLabsResult ( labs = __ret__ . labs )
Lists the labs owned by a user
Latest API Version: 2018-10-15.
Lists the labs owned by a user Latest API Version : 2018 - 10 - 15 .
"""
    Lists the labs owned by a user
    Latest API Version: 2018-10-15.


    :param str user_name: The name of the user.
    """
user_name
Optional[str]
The name of the user.
The name of the user .
opts
Optional[pulumi.InvokeOptions]