Skip to content

Commit

Permalink
regenerate for access control and vnet (#16576)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangyan99 authored Feb 6, 2021
1 parent e596c04 commit 2cbb044
Show file tree
Hide file tree
Showing 19 changed files with 1,727 additions and 102 deletions.
4 changes: 4 additions & 0 deletions sdk/synapse/azure-synapse-accesscontrol/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release History

## 0.5.0 (2021-02-09)

* Update to API version 2020-08-01

## 0.4.0 (2020-12-08)

* Internal bugfixes (re-generated with latest generator)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,18 @@
from azure.core.credentials import TokenCredential

from ._configuration import AccessControlClientConfiguration
from .operations import AccessControlClientOperationsMixin
from .operations import RoleAssignmentsOperations
from .operations import RoleDefinitionsOperations
from . import models


class AccessControlClient(AccessControlClientOperationsMixin):
class AccessControlClient(object):
"""AccessControlClient.
:ivar role_assignments: RoleAssignmentsOperations operations
:vartype role_assignments: azure.synapse.accesscontrol.operations.RoleAssignmentsOperations
:ivar role_definitions: RoleDefinitionsOperations operations
:vartype role_definitions: azure.synapse.accesscontrol.operations.RoleDefinitionsOperations
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials.TokenCredential
:param endpoint: The workspace development endpoint, for example https://myworkspace.dev.azuresynapse.net.
Expand All @@ -47,6 +52,10 @@ def __init__(
self._serialize.client_side_validation = False
self._deserialize = Deserializer(client_models)

self.role_assignments = RoleAssignmentsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.role_definitions = RoleDefinitionsOperations(
self._client, self._config, self._serialize, self._deserialize)

def close(self):
# type: () -> None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def __init__(

self.credential = credential
self.endpoint = endpoint
self.api_version = "2020-02-01-preview"
self.api_version = "2020-08-01-preview"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://dev.azuresynapse.net/.default'])
kwargs.setdefault('sdk_moniker', 'synapse/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "0.4.0"
VERSION = "0.5.0"
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,18 @@
from azure.core.credentials_async import AsyncTokenCredential

from ._configuration import AccessControlClientConfiguration
from .operations import AccessControlClientOperationsMixin
from .operations import RoleAssignmentsOperations
from .operations import RoleDefinitionsOperations
from .. import models


class AccessControlClient(AccessControlClientOperationsMixin):
class AccessControlClient(object):
"""AccessControlClient.
:ivar role_assignments: RoleAssignmentsOperations operations
:vartype role_assignments: azure.synapse.accesscontrol.aio.operations.RoleAssignmentsOperations
:ivar role_definitions: RoleDefinitionsOperations operations
:vartype role_definitions: azure.synapse.accesscontrol.aio.operations.RoleDefinitionsOperations
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param endpoint: The workspace development endpoint, for example https://myworkspace.dev.azuresynapse.net.
Expand All @@ -44,6 +49,10 @@ def __init__(
self._serialize.client_side_validation = False
self._deserialize = Deserializer(client_models)

self.role_assignments = RoleAssignmentsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.role_definitions = RoleDefinitionsOperations(
self._client, self._config, self._serialize, self._deserialize)

async def close(self) -> None:
await self._client.close()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def __init__(

self.credential = credential
self.endpoint = endpoint
self.api_version = "2020-02-01-preview"
self.api_version = "2020-08-01-preview"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://dev.azuresynapse.net/.default'])
kwargs.setdefault('sdk_moniker', 'synapse/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from ._access_control_client_operations import AccessControlClientOperationsMixin
from ._role_assignments_operations import RoleAssignmentsOperations
from ._role_definitions_operations import RoleDefinitionsOperations

__all__ = [
'AccessControlClientOperationsMixin',
'RoleAssignmentsOperations',
'RoleDefinitionsOperations',
]
Loading

0 comments on commit 2cbb044

Please sign in to comment.