Skip to content

Commit

Permalink
CodeGen from PR 13833 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
datashare readme t2 config (Azure#13833)
  • Loading branch information
SDKAuto committed Apr 12, 2021
1 parent 977bfe9 commit 6040e94
Show file tree
Hide file tree
Showing 20 changed files with 1,771 additions and 909 deletions.
1 change: 1 addition & 0 deletions sdk/datashare/azure-mgmt-datashare/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
include _meta.json
recursive-include tests *.py *.yaml
include *.md
include azure/__init__.py
Expand Down
8 changes: 8 additions & 0 deletions sdk/datashare/azure-mgmt-datashare/_meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"autorest": "V2",
"use": "@microsoft.azure/autorest.python@~4.0.71",
"commit": "36084f10aacb98d77af2f67c9d57fca2bbe68e97",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/datashare/resource-manager/readme.md --keep-version-file --multiapi --no-async --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --use=@microsoft.azure/autorest.python@~4.0.71 --version=V2",
"readme": "specification/datashare/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def __init__(
super(DataShareManagementClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2019-11-01'
self.api_version = '2020-09-01'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,12 @@
from ._models_py3 import SqlDBTableDataSetMapping
from ._models_py3 import SqlDWTableDataSet
from ._models_py3 import SqlDWTableDataSetMapping
from ._models_py3 import SynapseWorkspaceSqlPoolTableDataSet
from ._models_py3 import SynapseWorkspaceSqlPoolTableDataSetMapping
from ._models_py3 import SynchronizationDetails
from ._models_py3 import SynchronizationSetting
from ._models_py3 import Synchronize
from ._models_py3 import SystemData
from ._models_py3 import Trigger
except (SyntaxError, ImportError):
from ._models import Account
Expand Down Expand Up @@ -115,9 +118,12 @@
from ._models import SqlDBTableDataSetMapping
from ._models import SqlDWTableDataSet
from ._models import SqlDWTableDataSetMapping
from ._models import SynapseWorkspaceSqlPoolTableDataSet
from ._models import SynapseWorkspaceSqlPoolTableDataSetMapping
from ._models import SynchronizationDetails
from ._models import SynchronizationSetting
from ._models import Synchronize
from ._models import SystemData
from ._models import Trigger
from ._paged_models import AccountPaged
from ._paged_models import ConsumerInvitationPaged
Expand All @@ -138,16 +144,18 @@
from ._data_share_management_client_enums import (
Type,
ProvisioningState,
Status,
DataSetMappingStatus,
OutputType,
InvitationStatus,
ShareKind,
SynchronizationMode,
DataSetType,
Status,
ShareSubscriptionStatus,
CreatedByType,
LastModifiedByType,
RecurrenceInterval,
SynchronizationMode,
TriggerStatus,
DataSetMappingStatus,
OutputType,
ShareKind,
)

__all__ = [
Expand Down Expand Up @@ -201,36 +209,41 @@
'SqlDBTableDataSetMapping',
'SqlDWTableDataSet',
'SqlDWTableDataSetMapping',
'SynapseWorkspaceSqlPoolTableDataSet',
'SynapseWorkspaceSqlPoolTableDataSetMapping',
'SynchronizationDetails',
'SynchronizationSetting',
'Synchronize',
'SystemData',
'Trigger',
'AccountPaged',
'ConsumerInvitationPaged',
'DataSetPaged',
'DataSetMappingPaged',
'InvitationPaged',
'OperationModelPaged',
'SharePaged',
'ShareSynchronizationPaged',
'SynchronizationDetailsPaged',
'ShareSynchronizationPaged',
'SharePaged',
'ProviderShareSubscriptionPaged',
'ShareSubscriptionPaged',
'SourceShareSynchronizationSettingPaged',
'ShareSubscriptionSynchronizationPaged',
'ShareSubscriptionPaged',
'ConsumerSourceDataSetPaged',
'SynchronizationSettingPaged',
'TriggerPaged',
'Type',
'ProvisioningState',
'Status',
'DataSetMappingStatus',
'OutputType',
'InvitationStatus',
'ShareKind',
'SynchronizationMode',
'DataSetType',
'Status',
'ShareSubscriptionStatus',
'CreatedByType',
'LastModifiedByType',
'RecurrenceInterval',
'SynchronizationMode',
'TriggerStatus',
'DataSetMappingStatus',
'OutputType',
'ShareKind',
]
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,16 @@ class ProvisioningState(str, Enum):
failed = "Failed"


class Status(str, Enum):
class DataSetMappingStatus(str, Enum):

accepted = "Accepted"
in_progress = "InProgress"
transient_failure = "TransientFailure"
succeeded = "Succeeded"
failed = "Failed"
canceled = "Canceled"
ok = "Ok"
broken = "Broken"


class OutputType(str, Enum):

csv = "Csv"
parquet = "Parquet"


class InvitationStatus(str, Enum):
Expand All @@ -44,18 +46,6 @@ class InvitationStatus(str, Enum):
withdrawn = "Withdrawn"


class ShareKind(str, Enum):

copy_based = "CopyBased"
in_place = "InPlace"


class SynchronizationMode(str, Enum):

incremental = "Incremental"
full_sync = "FullSync"


class DataSetType(str, Enum):

blob = "Blob"
Expand All @@ -70,6 +60,17 @@ class DataSetType(str, Enum):
kusto_database = "KustoDatabase"
sql_db_table = "SqlDBTable"
sql_dw_table = "SqlDWTable"
synapse_workspace_sql_pool_table = "SynapseWorkspaceSqlPoolTable"


class Status(str, Enum):

accepted = "Accepted"
in_progress = "InProgress"
transient_failure = "TransientFailure"
succeeded = "Succeeded"
failed = "Failed"
canceled = "Canceled"


class ShareSubscriptionStatus(str, Enum):
Expand All @@ -80,26 +81,42 @@ class ShareSubscriptionStatus(str, Enum):
revoking = "Revoking"


class CreatedByType(str, Enum):

user = "User"
application = "Application"
managed_identity = "ManagedIdentity"
key = "Key"


class LastModifiedByType(str, Enum):

user = "User"
application = "Application"
managed_identity = "ManagedIdentity"
key = "Key"


class RecurrenceInterval(str, Enum):

hour = "Hour"
day = "Day"


class SynchronizationMode(str, Enum):

incremental = "Incremental"
full_sync = "FullSync"


class TriggerStatus(str, Enum):

active = "Active"
inactive = "Inactive"
source_synchronization_setting_deleted = "SourceSynchronizationSettingDeleted"


class DataSetMappingStatus(str, Enum):

ok = "Ok"
broken = "Broken"


class OutputType(str, Enum):
class ShareKind(str, Enum):

csv = "Csv"
parquet = "Parquet"
copy_based = "CopyBased"
in_place = "InPlace"
Loading

0 comments on commit 6040e94

Please sign in to comment.