Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from ._models_py3 import DedicatedCapacityAdministrators
from ._models_py3 import DedicatedCapacityUpdateParameters
from ._models_py3 import ErrorResponse, ErrorResponseException
from ._models_py3 import ErrorResponseError
from ._models_py3 import Operation
from ._models_py3 import OperationDisplay
from ._models_py3 import Resource
Expand All @@ -30,6 +31,7 @@
from ._models import DedicatedCapacityAdministrators
from ._models import DedicatedCapacityUpdateParameters
from ._models import ErrorResponse, ErrorResponseException
from ._models import ErrorResponseError
from ._models import Operation
from ._models import OperationDisplay
from ._models import Resource
Expand All @@ -52,6 +54,7 @@
'DedicatedCapacityAdministrators',
'DedicatedCapacityUpdateParameters',
'ErrorResponse', 'ErrorResponseException',
'ErrorResponseError',
'Operation',
'OperationDisplay',
'Resource',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ class DedicatedCapacity(Resource):
:param administration: A collection of Dedicated capacity administrators
:type administration:
~azure.mgmt.powerbidedicated.models.DedicatedCapacityAdministrators
:ivar mode: The capacity mode.
:vartype mode: str
:ivar state: The current state of PowerBI Dedicated resource. The state is
to indicate more states outside of resource provisioning. Possible values
include: 'Deleting', 'Succeeded', 'Failed', 'Paused', 'Suspended',
Expand All @@ -165,6 +167,7 @@ class DedicatedCapacity(Resource):
'type': {'readonly': True},
'location': {'required': True},
'sku': {'required': True},
'mode': {'readonly': True},
'state': {'readonly': True},
'provisioning_state': {'readonly': True},
}
Expand All @@ -177,13 +180,15 @@ class DedicatedCapacity(Resource):
'sku': {'key': 'sku', 'type': 'ResourceSku'},
'tags': {'key': 'tags', 'type': '{str}'},
'administration': {'key': 'properties.administration', 'type': 'DedicatedCapacityAdministrators'},
'mode': {'key': 'properties.mode', 'type': 'str'},
'state': {'key': 'properties.state', 'type': 'str'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
}

def __init__(self, **kwargs):
super(DedicatedCapacity, self).__init__(**kwargs)
self.administration = kwargs.get('administration', None)
self.mode = None
self.state = None
self.provisioning_state = None

Expand All @@ -207,46 +212,53 @@ def __init__(self, **kwargs):
class DedicatedCapacityUpdateParameters(Model):
"""Provision request specification.

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

:param sku: The SKU of the Dedicated capacity resource.
:type sku: ~azure.mgmt.powerbidedicated.models.ResourceSku
:param tags: Key-value pairs of additional provisioning properties.
:type tags: dict[str, str]
:param administration: A collection of Dedicated capacity administrators
:type administration:
~azure.mgmt.powerbidedicated.models.DedicatedCapacityAdministrators
:ivar mode: The capacity mode.
:vartype mode: str
"""

_validation = {
'mode': {'readonly': True},
}

_attribute_map = {
'sku': {'key': 'sku', 'type': 'ResourceSku'},
'tags': {'key': 'tags', 'type': '{str}'},
'administration': {'key': 'properties.administration', 'type': 'DedicatedCapacityAdministrators'},
'mode': {'key': 'properties.mode', 'type': 'str'},
}

def __init__(self, **kwargs):
super(DedicatedCapacityUpdateParameters, self).__init__(**kwargs)
self.sku = kwargs.get('sku', None)
self.tags = kwargs.get('tags', None)
self.administration = kwargs.get('administration', None)
self.mode = None


class ErrorResponse(Model):
"""Describes the format of Error response.

:param code: Error code
:type code: str
:param message: Error message indicating why the operation failed.
:type message: str
:param error: The error object
:type error: ~azure.mgmt.powerbidedicated.models.ErrorResponseError
"""

_attribute_map = {
'code': {'key': 'code', 'type': 'str'},
'message': {'key': 'message', 'type': 'str'},
'error': {'key': 'error', 'type': 'ErrorResponseError'},
}

def __init__(self, **kwargs):
super(ErrorResponse, self).__init__(**kwargs)
self.code = kwargs.get('code', None)
self.message = kwargs.get('message', None)
self.error = kwargs.get('error', None)


class ErrorResponseException(HttpOperationError):
Expand All @@ -261,6 +273,26 @@ def __init__(self, deserialize, response, *args):
super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args)


class ErrorResponseError(Model):
"""The error object.

:param code: Error code
:type code: str
:param message: Error message indicating why the operation failed.
:type message: str
"""

_attribute_map = {
'code': {'key': 'code', 'type': 'str'},
'message': {'key': 'message', 'type': 'str'},
}

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


class Operation(Model):
"""Capacities REST API operation.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ class DedicatedCapacity(Resource):
:param administration: A collection of Dedicated capacity administrators
:type administration:
~azure.mgmt.powerbidedicated.models.DedicatedCapacityAdministrators
:ivar mode: The capacity mode.
:vartype mode: str
:ivar state: The current state of PowerBI Dedicated resource. The state is
to indicate more states outside of resource provisioning. Possible values
include: 'Deleting', 'Succeeded', 'Failed', 'Paused', 'Suspended',
Expand All @@ -165,6 +167,7 @@ class DedicatedCapacity(Resource):
'type': {'readonly': True},
'location': {'required': True},
'sku': {'required': True},
'mode': {'readonly': True},
'state': {'readonly': True},
'provisioning_state': {'readonly': True},
}
Expand All @@ -177,13 +180,15 @@ class DedicatedCapacity(Resource):
'sku': {'key': 'sku', 'type': 'ResourceSku'},
'tags': {'key': 'tags', 'type': '{str}'},
'administration': {'key': 'properties.administration', 'type': 'DedicatedCapacityAdministrators'},
'mode': {'key': 'properties.mode', 'type': 'str'},
'state': {'key': 'properties.state', 'type': 'str'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
}

def __init__(self, *, location: str, sku, tags=None, administration=None, **kwargs) -> None:
super(DedicatedCapacity, self).__init__(location=location, sku=sku, tags=tags, **kwargs)
self.administration = administration
self.mode = None
self.state = None
self.provisioning_state = None

Expand All @@ -207,46 +212,53 @@ def __init__(self, *, members=None, **kwargs) -> None:
class DedicatedCapacityUpdateParameters(Model):
"""Provision request specification.

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

:param sku: The SKU of the Dedicated capacity resource.
:type sku: ~azure.mgmt.powerbidedicated.models.ResourceSku
:param tags: Key-value pairs of additional provisioning properties.
:type tags: dict[str, str]
:param administration: A collection of Dedicated capacity administrators
:type administration:
~azure.mgmt.powerbidedicated.models.DedicatedCapacityAdministrators
:ivar mode: The capacity mode.
:vartype mode: str
"""

_validation = {
'mode': {'readonly': True},
}

_attribute_map = {
'sku': {'key': 'sku', 'type': 'ResourceSku'},
'tags': {'key': 'tags', 'type': '{str}'},
'administration': {'key': 'properties.administration', 'type': 'DedicatedCapacityAdministrators'},
'mode': {'key': 'properties.mode', 'type': 'str'},
}

def __init__(self, *, sku=None, tags=None, administration=None, **kwargs) -> None:
super(DedicatedCapacityUpdateParameters, self).__init__(**kwargs)
self.sku = sku
self.tags = tags
self.administration = administration
self.mode = None


class ErrorResponse(Model):
"""Describes the format of Error response.

:param code: Error code
:type code: str
:param message: Error message indicating why the operation failed.
:type message: str
:param error: The error object
:type error: ~azure.mgmt.powerbidedicated.models.ErrorResponseError
"""

_attribute_map = {
'code': {'key': 'code', 'type': 'str'},
'message': {'key': 'message', 'type': 'str'},
'error': {'key': 'error', 'type': 'ErrorResponseError'},
}

def __init__(self, *, code: str=None, message: str=None, **kwargs) -> None:
def __init__(self, *, error=None, **kwargs) -> None:
super(ErrorResponse, self).__init__(**kwargs)
self.code = code
self.message = message
self.error = error


class ErrorResponseException(HttpOperationError):
Expand All @@ -261,6 +273,26 @@ def __init__(self, deserialize, response, *args):
super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args)


class ErrorResponseError(Model):
"""The error object.

:param code: Error code
:type code: str
:param message: Error message indicating why the operation failed.
:type message: str
"""

_attribute_map = {
'code': {'key': 'code', 'type': 'str'},
'message': {'key': 'message', 'type': 'str'},
}

def __init__(self, *, code: str=None, message: str=None, **kwargs) -> None:
super(ErrorResponseError, self).__init__(**kwargs)
self.code = code
self.message = message


class Operation(Model):
"""Capacities REST API operation.

Expand Down
Loading