Skip to content

Commit

Permalink
Updating generated files for Azure Quantum resource manager from new …
Browse files Browse the repository at this point in the history
…swagger file version. (2020-11-06) (#13)
  • Loading branch information
ricardo-espinoza authored Nov 7, 2020
1 parent 41d8837 commit 14909d0
Show file tree
Hide file tree
Showing 5 changed files with 86 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
try:
from .error_definition_py3 import ErrorDefinition
from .error_response_py3 import ErrorResponse, ErrorResponseException
from .quantum_workspace_identity_py3 import QuantumWorkspaceIdentity
from .quantum_workspace_py3 import QuantumWorkspace
from .provider_description_properties_py3 import ProviderDescriptionProperties
from .provider_description_py3 import ProviderDescription
Expand All @@ -25,6 +26,7 @@
except (SyntaxError, ImportError):
from .error_definition import ErrorDefinition
from .error_response import ErrorResponse, ErrorResponseException
from .quantum_workspace_identity import QuantumWorkspaceIdentity
from .quantum_workspace import QuantumWorkspace
from .provider_description_properties import ProviderDescriptionProperties
from .provider_description import ProviderDescription
Expand All @@ -46,6 +48,7 @@
__all__ = [
'ErrorDefinition',
'ErrorResponse', 'ErrorResponseException',
'QuantumWorkspaceIdentity',
'QuantumWorkspace',
'ProviderDescriptionProperties',
'ProviderDescription',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ class QuantumWorkspace(Model):
:type storage_account: str
:param tags: Gets or sets the tags.
:type tags: object
:param identity: Managed Identity information
:type identity: ~quantum.models.QuantumWorkspaceIdentity
"""

_validation = {
Expand All @@ -58,6 +60,7 @@ class QuantumWorkspace(Model):
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'storage_account': {'key': 'properties.storageAccount', 'type': 'str'},
'tags': {'key': 'tags', 'type': 'object'},
'identity': {'key': 'identity', 'type': 'QuantumWorkspaceIdentity'},
}

def __init__(self, **kwargs):
Expand All @@ -71,3 +74,4 @@ def __init__(self, **kwargs):
self.provisioning_state = kwargs.get('provisioning_state', None)
self.storage_account = kwargs.get('storage_account', None)
self.tags = kwargs.get('tags', None)
self.identity = kwargs.get('identity', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# 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 QuantumWorkspaceIdentity(Model):
"""Managed Identity information.
:param type: Type of identity. Supported: SystemAssigned or None (case
insensitive)
:type type: str
:param principal_id: objectId of the managed identity,
:type principal_id: str
:param tenant_id: tenantId where the managed identity lives.
:type tenant_id: str
"""

_attribute_map = {
'type': {'key': 'type', 'type': 'str'},
'principal_id': {'key': 'principalId', 'type': 'str'},
'tenant_id': {'key': 'tenantId', 'type': 'str'},
}

def __init__(self, **kwargs):
super(QuantumWorkspaceIdentity, self).__init__(**kwargs)
self.type = kwargs.get('type', None)
self.principal_id = kwargs.get('principal_id', None)
self.tenant_id = kwargs.get('tenant_id', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# 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 QuantumWorkspaceIdentity(Model):
"""Managed Identity information.
:param type: Type of identity. Supported: SystemAssigned or None (case
insensitive)
:type type: str
:param principal_id: objectId of the managed identity,
:type principal_id: str
:param tenant_id: tenantId where the managed identity lives.
:type tenant_id: str
"""

_attribute_map = {
'type': {'key': 'type', 'type': 'str'},
'principal_id': {'key': 'principalId', 'type': 'str'},
'tenant_id': {'key': 'tenantId', 'type': 'str'},
}

def __init__(self, *, type: str=None, principal_id: str=None, tenant_id: str=None, **kwargs) -> None:
super(QuantumWorkspaceIdentity, self).__init__(**kwargs)
self.type = type
self.principal_id = principal_id
self.tenant_id = tenant_id
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ class QuantumWorkspace(Model):
:type storage_account: str
:param tags: Gets or sets the tags.
:type tags: object
:param identity: Managed Identity information
:type identity: ~quantum.models.QuantumWorkspaceIdentity
"""

_validation = {
Expand All @@ -58,9 +60,10 @@ class QuantumWorkspace(Model):
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'storage_account': {'key': 'properties.storageAccount', 'type': 'str'},
'tags': {'key': 'tags', 'type': 'object'},
'identity': {'key': 'identity', 'type': 'QuantumWorkspaceIdentity'},
}

def __init__(self, *, location: str=None, providers=None, usable=None, provisioning_state=None, storage_account: str=None, tags=None, **kwargs) -> None:
def __init__(self, *, location: str=None, providers=None, usable=None, provisioning_state=None, storage_account: str=None, tags=None, identity=None, **kwargs) -> None:
super(QuantumWorkspace, self).__init__(**kwargs)
self.id = None
self.name = None
Expand All @@ -71,3 +74,4 @@ def __init__(self, *, location: str=None, providers=None, usable=None, provision
self.provisioning_state = provisioning_state
self.storage_account = storage_account
self.tags = tags
self.identity = identity

0 comments on commit 14909d0

Please sign in to comment.