Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Regenerated from d2bb2fe
  • Loading branch information
lmazuel committed May 25, 2018
commit 8b9622d01bcd15307ac6114247cbe802e543c4b4
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,38 @@
# regenerated.
# --------------------------------------------------------------------------

from .error_detail import ErrorDetail
from .error import Error, ErrorException
from .azure_sku import AzureSku
from .workspace_collection import WorkspaceCollection
from .workspace import Workspace
from .display import Display
from .operation import Operation
from .operation_list import OperationList
from .workspace_collection_access_keys import WorkspaceCollectionAccessKeys
from .workspace_collection_access_key import WorkspaceCollectionAccessKey
from .create_workspace_collection_request import CreateWorkspaceCollectionRequest
from .update_workspace_collection_request import UpdateWorkspaceCollectionRequest
from .check_name_request import CheckNameRequest
from .check_name_response import CheckNameResponse
from .migrate_workspace_collection_request import MigrateWorkspaceCollectionRequest
try:
from .error_detail_py3 import ErrorDetail
from .error_py3 import Error, ErrorException
from .azure_sku_py3 import AzureSku
from .workspace_collection_py3 import WorkspaceCollection
from .workspace_py3 import Workspace
from .display_py3 import Display
from .operation_py3 import Operation
from .operation_list_py3 import OperationList
from .workspace_collection_access_keys_py3 import WorkspaceCollectionAccessKeys
from .workspace_collection_access_key_py3 import WorkspaceCollectionAccessKey
from .create_workspace_collection_request_py3 import CreateWorkspaceCollectionRequest
from .update_workspace_collection_request_py3 import UpdateWorkspaceCollectionRequest
from .check_name_request_py3 import CheckNameRequest
from .check_name_response_py3 import CheckNameResponse
from .migrate_workspace_collection_request_py3 import MigrateWorkspaceCollectionRequest
except (SyntaxError, ImportError):
from .error_detail import ErrorDetail
from .error import Error, ErrorException
from .azure_sku import AzureSku
from .workspace_collection import WorkspaceCollection
from .workspace import Workspace
from .display import Display
from .operation import Operation
from .operation_list import OperationList
from .workspace_collection_access_keys import WorkspaceCollectionAccessKeys
from .workspace_collection_access_key import WorkspaceCollectionAccessKey
from .create_workspace_collection_request import CreateWorkspaceCollectionRequest
from .update_workspace_collection_request import UpdateWorkspaceCollectionRequest
from .check_name_request import CheckNameRequest
from .check_name_response import CheckNameResponse
from .migrate_workspace_collection_request import MigrateWorkspaceCollectionRequest
from .workspace_collection_paged import WorkspaceCollectionPaged
from .workspace_paged import WorkspacePaged
from .power_bi_embedded_management_client_enums import (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ class AzureSku(Model):
Variables are only populated by the server, and will be ignored when
sending a request.

:ivar name: SKU name. Default value: "S1" .
All required parameters must be populated in order to send to Azure.

:ivar name: Required. SKU name. Default value: "S1" .
:vartype name: str
:ivar tier: SKU tier. Default value: "Standard" .
:ivar tier: Required. SKU tier. Default value: "Standard" .
:vartype tier: str
"""

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class AzureSku(Model):
"""AzureSku.

Variables are only populated by the server, and will be ignored when
sending a request.

All required parameters must be populated in order to send to Azure.

:ivar name: Required. SKU name. Default value: "S1" .
:vartype name: str
:ivar tier: Required. SKU tier. Default value: "Standard" .
:vartype tier: str
"""

_validation = {
'name': {'required': True, 'constant': True},
'tier': {'required': True, 'constant': True},
}

_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'tier': {'key': 'tier', 'type': 'str'},
}

name = "S1"

tier = "Standard"
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class CheckNameRequest(Model):
'type': {'key': 'type', 'type': 'str'},
}

def __init__(self, name=None, type="Microsoft.PowerBI/workspaceCollections"):
self.name = name
self.type = type
def __init__(self, **kwargs):
super(CheckNameRequest, self).__init__(**kwargs)
self.name = kwargs.get('name', None)
self.type = kwargs.get('type', "Microsoft.PowerBI/workspaceCollections")
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class CheckNameRequest(Model):
"""CheckNameRequest.

:param name: Workspace collection name
:type name: str
:param type: Resource type. Default value:
"Microsoft.PowerBI/workspaceCollections" .
:type type: str
"""

_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
}

def __init__(self, *, name: str=None, type: str="Microsoft.PowerBI/workspaceCollections", **kwargs) -> None:
super(CheckNameRequest, self).__init__(**kwargs)
self.name = name
self.type = type
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ class CheckNameResponse(Model):
:type name_available: bool
:param reason: Reason why the workspace collection name cannot be used.
Possible values include: 'Unavailable', 'Invalid'
:type reason: str or :class:`CheckNameReason
<azure.mgmt.powerbiembedded.models.CheckNameReason>`
:type reason: str or ~azure.mgmt.powerbiembedded.models.CheckNameReason
:param message: Message indicating an unavailable name due to a conflict,
or a description of the naming rules that are violated.
:type message: str
Expand All @@ -33,7 +32,8 @@ class CheckNameResponse(Model):
'message': {'key': 'message', 'type': 'str'},
}

def __init__(self, name_available=None, reason=None, message=None):
self.name_available = name_available
self.reason = reason
self.message = message
def __init__(self, **kwargs):
super(CheckNameResponse, self).__init__(**kwargs)
self.name_available = kwargs.get('name_available', None)
self.reason = kwargs.get('reason', None)
self.message = kwargs.get('message', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class CheckNameResponse(Model):
"""CheckNameResponse.

:param name_available: Specifies a Boolean value that indicates whether
the specified Power BI Workspace Collection name is available to use.
:type name_available: bool
:param reason: Reason why the workspace collection name cannot be used.
Possible values include: 'Unavailable', 'Invalid'
:type reason: str or ~azure.mgmt.powerbiembedded.models.CheckNameReason
:param message: Message indicating an unavailable name due to a conflict,
or a description of the naming rules that are violated.
:type message: str
"""

_attribute_map = {
'name_available': {'key': 'nameAvailable', 'type': 'bool'},
'reason': {'key': 'reason', 'type': 'str'},
'message': {'key': 'message', 'type': 'str'},
}

def __init__(self, *, name_available: bool=None, reason=None, message: str=None, **kwargs) -> None:
super(CheckNameResponse, self).__init__(**kwargs)
self.name_available = name_available
self.reason = reason
self.message = message
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,9 @@ class CreateWorkspaceCollectionRequest(Model):
:param location: Azure location
:type location: str
:param tags:
:type tags: dict
:type tags: dict[str, str]
:ivar sku:
:vartype sku: :class:`AzureSku
<azure.mgmt.powerbiembedded.models.AzureSku>`
:vartype sku: ~azure.mgmt.powerbiembedded.models.AzureSku
"""

_validation = {
Expand All @@ -40,6 +39,7 @@ class CreateWorkspaceCollectionRequest(Model):

sku = AzureSku()

def __init__(self, location=None, tags=None):
self.location = location
self.tags = tags
def __init__(self, **kwargs):
super(CreateWorkspaceCollectionRequest, self).__init__(**kwargs)
self.location = kwargs.get('location', None)
self.tags = kwargs.get('tags', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from .azure_sku import AzureSku
from msrest.serialization import Model


class CreateWorkspaceCollectionRequest(Model):
"""CreateWorkspaceCollectionRequest.

Variables are only populated by the server, and will be ignored when
sending a request.

:param location: Azure location
:type location: str
:param tags:
:type tags: dict[str, str]
:ivar sku:
:vartype sku: ~azure.mgmt.powerbiembedded.models.AzureSku
"""

_validation = {
'sku': {'constant': True},
}

_attribute_map = {
'location': {'key': 'location', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'sku': {'key': 'sku', 'type': 'AzureSku'},
}

sku = AzureSku()

def __init__(self, *, location: str=None, tags=None, **kwargs) -> None:
super(CreateWorkspaceCollectionRequest, self).__init__(**kwargs)
self.location = location
self.tags = tags
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@ class Display(Model):
'origin': {'key': 'origin', 'type': 'str'},
}

def __init__(self, provider=None, resource=None, operation=None, description=None, origin=None):
self.provider = provider
self.resource = resource
self.operation = operation
self.description = description
self.origin = origin
def __init__(self, **kwargs):
super(Display, self).__init__(**kwargs)
self.provider = kwargs.get('provider', None)
self.resource = kwargs.get('resource', None)
self.operation = kwargs.get('operation', None)
self.description = kwargs.get('description', None)
self.origin = kwargs.get('origin', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class Display(Model):
"""Display.

:param provider: The localized friendly form of the resource provider
name. This form is also expected to include the publisher/company
responsible. Use Title Casing. Begin with “Microsoft” for 1st party
services.
:type provider: str
:param resource: The localized friendly form of the resource type related
to this action/operation. This form should match the public documentation
for the resource provider. Use Title Casing. For examples, refer to the
“name” section.
:type resource: str
:param operation: The localized friendly name for the operation as shown
to the user. This name should be concise (to fit in drop downs), but clear
(self-documenting). Use Title Casing and include the entity/resource to
which it applies.
:type operation: str
:param description: The localized friendly description for the operation
as shown to the user. This description should be thorough, yet concise. It
will be used in tool-tips and detailed views.
:type description: str
:param origin: The intended executor of the operation; governs the display
of the operation in the RBAC UX and the audit logs UX. Default value is
'user,system'
:type origin: str
"""

_attribute_map = {
'provider': {'key': 'provider', 'type': 'str'},
'resource': {'key': 'resource', 'type': 'str'},
'operation': {'key': 'operation', 'type': 'str'},
'description': {'key': 'description', 'type': 'str'},
'origin': {'key': 'origin', 'type': 'str'},
}

def __init__(self, *, provider: str=None, resource: str=None, operation: str=None, description: str=None, origin: str=None, **kwargs) -> None:
super(Display, self).__init__(**kwargs)
self.provider = provider
self.resource = resource
self.operation = operation
self.description = description
self.origin = origin
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ class Error(Model):
:param target:
:type target: str
:param details:
:type details: list of :class:`ErrorDetail
<azure.mgmt.powerbiembedded.models.ErrorDetail>`
:type details: list[~azure.mgmt.powerbiembedded.models.ErrorDetail]
"""

_attribute_map = {
Expand All @@ -34,11 +33,12 @@ class Error(Model):
'details': {'key': 'details', 'type': '[ErrorDetail]'},
}

def __init__(self, code=None, message=None, target=None, details=None):
self.code = code
self.message = message
self.target = target
self.details = details
def __init__(self, **kwargs):
super(Error, self).__init__(**kwargs)
self.code = kwargs.get('code', None)
self.message = kwargs.get('message', None)
self.target = kwargs.get('target', None)
self.details = kwargs.get('details', None)


class ErrorException(HttpOperationError):
Expand Down
Loading