Skip to content

Commit

Permalink
CodeGen from PR 13114 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge df19a2e4f1d910bc628358f84add5e5f88a35311 into 3ae2e25
  • Loading branch information
SDKAuto committed Feb 23, 2021
1 parent b74b486 commit 8a2996b
Show file tree
Hide file tree
Showing 15 changed files with 978 additions and 904 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,16 +138,16 @@
from ._data_share_management_client_enums import (
Type,
ProvisioningState,
Status,
DataSetMappingStatus,
OutputType,
InvitationStatus,
ShareKind,
SynchronizationMode,
DataSetType,
Status,
ShareSubscriptionStatus,
RecurrenceInterval,
SynchronizationMode,
TriggerStatus,
DataSetMappingStatus,
OutputType,
ShareKind,
)

__all__ = [
Expand Down Expand Up @@ -211,26 +211,26 @@
'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',
'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 @@ -72,6 +62,16 @@ class DataSetType(str, Enum):
sql_dw_table = "SqlDWTable"


class Status(str, Enum):

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


class ShareSubscriptionStatus(str, Enum):

active = "Active"
Expand All @@ -86,20 +86,20 @@ class RecurrenceInterval(str, Enum):
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"
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,55 @@
from msrest.exceptions import HttpOperationError


class DefaultDto(Model):
class ProxyDto(Model):
"""Base data transfer object implementation for proxy resources.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar id: The resource id of the azure resource
:vartype id: str
:ivar name: Name of the azure resource
:vartype name: str
:ivar type: Type of the azure resource
:vartype type: str
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}

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

def __init__(self, **kwargs):
super(ProxyDto, self).__init__(**kwargs)
self.id = None
self.name = None
self.type = None


class DefaultDto(ProxyDto):
"""Base data transfer object implementation for default resources.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar id: The resource id of the azure resource
:vartype id: str
:param location: Location of the azure resource.
:type location: str
:ivar name: Name of the azure resource
:vartype name: str
:param tags: Tags on the azure resource.
:type tags: dict[str, str]
:ivar type: Type of the azure resource
:vartype type: str
:param location: Location of the azure resource.
:type location: str
:param tags: Tags on the azure resource.
:type tags: dict[str, str]
"""

_validation = {
Expand All @@ -39,19 +72,16 @@ class DefaultDto(Model):

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'location': {'key': 'location', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'type': {'key': 'type', 'type': 'str'},
'location': {'key': 'location', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
}

def __init__(self, **kwargs):
super(DefaultDto, self).__init__(**kwargs)
self.id = None
self.location = kwargs.get('location', None)
self.name = None
self.tags = kwargs.get('tags', None)
self.type = None


class Account(DefaultDto):
Expand All @@ -64,14 +94,14 @@ class Account(DefaultDto):
:ivar id: The resource id of the azure resource
:vartype id: str
:param location: Location of the azure resource.
:type location: str
:ivar name: Name of the azure resource
:vartype name: str
:param tags: Tags on the azure resource.
:type tags: dict[str, str]
:ivar type: Type of the azure resource
:vartype type: str
:param location: Location of the azure resource.
:type location: str
:param tags: Tags on the azure resource.
:type tags: dict[str, str]
:param identity: Required. Identity Info on the Account
:type identity: ~azure.mgmt.datashare.models.Identity
:ivar created_at: Time at which the account was created.
Expand Down Expand Up @@ -99,10 +129,10 @@ class Account(DefaultDto):

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'location': {'key': 'location', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'type': {'key': 'type', 'type': 'str'},
'location': {'key': 'location', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'identity': {'key': 'identity', 'type': 'Identity'},
'created_at': {'key': 'properties.createdAt', 'type': 'iso-8601'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
Expand Down Expand Up @@ -135,47 +165,14 @@ def __init__(self, **kwargs):
self.tags = kwargs.get('tags', None)


class ProxyDto(Model):
"""Base data transfer object implementation for proxy resources.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar id: The resource id of the azure resource
:vartype id: str
:ivar name: Name of the azure resource
:vartype name: str
:ivar type: Type of the azure resource
:vartype type: str
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}

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

def __init__(self, **kwargs):
super(ProxyDto, self).__init__(**kwargs)
self.id = None
self.name = None
self.type = None


class DataSet(ProxyDto):
"""A DataSet data transfer object.
You probably want to use the sub-classes and not this class directly. Known
sub-classes are: BlobDataSet, BlobFolderDataSet, BlobContainerDataSet,
ADLSGen2FileDataSet, ADLSGen2FolderDataSet, ADLSGen2FileSystemDataSet,
ADLSGen1FolderDataSet, ADLSGen1FileDataSet, KustoClusterDataSet,
KustoDatabaseDataSet, SqlDWTableDataSet, SqlDBTableDataSet
sub-classes are: ADLSGen1FileDataSet, ADLSGen1FolderDataSet,
ADLSGen2FileDataSet, ADLSGen2FileSystemDataSet, ADLSGen2FolderDataSet,
BlobContainerDataSet, BlobDataSet, BlobFolderDataSet, KustoClusterDataSet,
KustoDatabaseDataSet, SqlDBTableDataSet, SqlDWTableDataSet
Variables are only populated by the server, and will be ignored when
sending a request.
Expand Down Expand Up @@ -207,7 +204,7 @@ class DataSet(ProxyDto):
}

_subtype_map = {
'kind': {'Blob': 'BlobDataSet', 'BlobFolder': 'BlobFolderDataSet', 'Container': 'BlobContainerDataSet', 'AdlsGen2File': 'ADLSGen2FileDataSet', 'AdlsGen2Folder': 'ADLSGen2FolderDataSet', 'AdlsGen2FileSystem': 'ADLSGen2FileSystemDataSet', 'AdlsGen1Folder': 'ADLSGen1FolderDataSet', 'AdlsGen1File': 'ADLSGen1FileDataSet', 'KustoCluster': 'KustoClusterDataSet', 'KustoDatabase': 'KustoDatabaseDataSet', 'SqlDWTable': 'SqlDWTableDataSet', 'SqlDBTable': 'SqlDBTableDataSet'}
'kind': {'AdlsGen1File': 'ADLSGen1FileDataSet', 'AdlsGen1Folder': 'ADLSGen1FolderDataSet', 'AdlsGen2File': 'ADLSGen2FileDataSet', 'AdlsGen2FileSystem': 'ADLSGen2FileSystemDataSet', 'AdlsGen2Folder': 'ADLSGen2FolderDataSet', 'Container': 'BlobContainerDataSet', 'Blob': 'BlobDataSet', 'BlobFolder': 'BlobFolderDataSet', 'KustoCluster': 'KustoClusterDataSet', 'KustoDatabase': 'KustoDatabaseDataSet', 'SqlDBTable': 'SqlDBTableDataSet', 'SqlDWTable': 'SqlDWTableDataSet'}
}

def __init__(self, **kwargs):
Expand Down Expand Up @@ -417,11 +414,11 @@ class DataSetMapping(ProxyDto):
"""A data set mapping data transfer object.
You probably want to use the sub-classes and not this class directly. Known
sub-classes are: BlobDataSetMapping, BlobFolderDataSetMapping,
BlobContainerDataSetMapping, ADLSGen2FileDataSetMapping,
ADLSGen2FolderDataSetMapping, ADLSGen2FileSystemDataSetMapping,
sub-classes are: ADLSGen2FileDataSetMapping,
ADLSGen2FileSystemDataSetMapping, ADLSGen2FolderDataSetMapping,
BlobContainerDataSetMapping, BlobDataSetMapping, BlobFolderDataSetMapping,
KustoClusterDataSetMapping, KustoDatabaseDataSetMapping,
SqlDWTableDataSetMapping, SqlDBTableDataSetMapping
SqlDBTableDataSetMapping, SqlDWTableDataSetMapping
Variables are only populated by the server, and will be ignored when
sending a request.
Expand Down Expand Up @@ -453,7 +450,7 @@ class DataSetMapping(ProxyDto):
}

_subtype_map = {
'kind': {'Blob': 'BlobDataSetMapping', 'BlobFolder': 'BlobFolderDataSetMapping', 'Container': 'BlobContainerDataSetMapping', 'AdlsGen2File': 'ADLSGen2FileDataSetMapping', 'AdlsGen2Folder': 'ADLSGen2FolderDataSetMapping', 'AdlsGen2FileSystem': 'ADLSGen2FileSystemDataSetMapping', 'KustoCluster': 'KustoClusterDataSetMapping', 'KustoDatabase': 'KustoDatabaseDataSetMapping', 'SqlDWTable': 'SqlDWTableDataSetMapping', 'SqlDBTable': 'SqlDBTableDataSetMapping'}
'kind': {'AdlsGen2File': 'ADLSGen2FileDataSetMapping', 'AdlsGen2FileSystem': 'ADLSGen2FileSystemDataSetMapping', 'AdlsGen2Folder': 'ADLSGen2FolderDataSetMapping', 'Container': 'BlobContainerDataSetMapping', 'Blob': 'BlobDataSetMapping', 'BlobFolder': 'BlobFolderDataSetMapping', 'KustoCluster': 'KustoClusterDataSetMapping', 'KustoDatabase': 'KustoDatabaseDataSetMapping', 'SqlDBTable': 'SqlDBTableDataSetMapping', 'SqlDWTable': 'SqlDWTableDataSetMapping'}
}

def __init__(self, **kwargs):
Expand Down Expand Up @@ -1955,6 +1952,8 @@ class OperationMetaMetricSpecification(Model):
:type display_name: str
:param enable_regional_mdm_account: enable regional mdm account
:type enable_regional_mdm_account: str
:param fill_gap_with_zero: fill gap with zero
:type fill_gap_with_zero: bool
:param internal_metric_name: internal metric name
:type internal_metric_name: str
:param name: name of the metric
Expand All @@ -1976,6 +1975,7 @@ class OperationMetaMetricSpecification(Model):
'display_description': {'key': 'displayDescription', 'type': 'str'},
'display_name': {'key': 'displayName', 'type': 'str'},
'enable_regional_mdm_account': {'key': 'enableRegionalMdmAccount', 'type': 'str'},
'fill_gap_with_zero': {'key': 'fillGapWithZero', 'type': 'bool'},
'internal_metric_name': {'key': 'internalMetricName', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'resource_id_dimension_name_override': {'key': 'resourceIdDimensionNameOverride', 'type': 'str'},
Expand All @@ -1991,6 +1991,7 @@ def __init__(self, **kwargs):
self.display_description = kwargs.get('display_description', None)
self.display_name = kwargs.get('display_name', None)
self.enable_regional_mdm_account = kwargs.get('enable_regional_mdm_account', None)
self.fill_gap_with_zero = kwargs.get('fill_gap_with_zero', None)
self.internal_metric_name = kwargs.get('internal_metric_name', None)
self.name = kwargs.get('name', None)
self.resource_id_dimension_name_override = kwargs.get('resource_id_dimension_name_override', None)
Expand Down
Loading

0 comments on commit 8a2996b

Please sign in to comment.