Skip to content

Commit 54c124f

Browse files
author
SDKAuto
committed
CodeGen from PR 13114 in Azure/azure-rest-api-specs
Merge 1327044193012d485ae5aefc5e7b0547dc2ee883 into 36b9a02
1 parent 73315fe commit 54c124f

15 files changed

+978
-904
lines changed

sdk/datashare/azure-mgmt-datashare/azure/mgmt/datashare/models/__init__.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -138,16 +138,16 @@
138138
from ._data_share_management_client_enums import (
139139
Type,
140140
ProvisioningState,
141-
Status,
141+
DataSetMappingStatus,
142+
OutputType,
142143
InvitationStatus,
143-
ShareKind,
144-
SynchronizationMode,
145144
DataSetType,
145+
Status,
146146
ShareSubscriptionStatus,
147147
RecurrenceInterval,
148+
SynchronizationMode,
148149
TriggerStatus,
149-
DataSetMappingStatus,
150-
OutputType,
150+
ShareKind,
151151
)
152152

153153
__all__ = [
@@ -211,26 +211,26 @@
211211
'DataSetMappingPaged',
212212
'InvitationPaged',
213213
'OperationModelPaged',
214-
'SharePaged',
215-
'ShareSynchronizationPaged',
216214
'SynchronizationDetailsPaged',
215+
'ShareSynchronizationPaged',
216+
'SharePaged',
217217
'ProviderShareSubscriptionPaged',
218-
'ShareSubscriptionPaged',
219218
'SourceShareSynchronizationSettingPaged',
220219
'ShareSubscriptionSynchronizationPaged',
220+
'ShareSubscriptionPaged',
221221
'ConsumerSourceDataSetPaged',
222222
'SynchronizationSettingPaged',
223223
'TriggerPaged',
224224
'Type',
225225
'ProvisioningState',
226-
'Status',
226+
'DataSetMappingStatus',
227+
'OutputType',
227228
'InvitationStatus',
228-
'ShareKind',
229-
'SynchronizationMode',
230229
'DataSetType',
230+
'Status',
231231
'ShareSubscriptionStatus',
232232
'RecurrenceInterval',
233+
'SynchronizationMode',
233234
'TriggerStatus',
234-
'DataSetMappingStatus',
235-
'OutputType',
235+
'ShareKind',
236236
]

sdk/datashare/azure-mgmt-datashare/azure/mgmt/datashare/models/_data_share_management_client_enums.py

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,16 @@ class ProvisioningState(str, Enum):
2626
failed = "Failed"
2727

2828

29-
class Status(str, Enum):
29+
class DataSetMappingStatus(str, Enum):
3030

31-
accepted = "Accepted"
32-
in_progress = "InProgress"
33-
transient_failure = "TransientFailure"
34-
succeeded = "Succeeded"
35-
failed = "Failed"
36-
canceled = "Canceled"
31+
ok = "Ok"
32+
broken = "Broken"
33+
34+
35+
class OutputType(str, Enum):
36+
37+
csv = "Csv"
38+
parquet = "Parquet"
3739

3840

3941
class InvitationStatus(str, Enum):
@@ -44,18 +46,6 @@ class InvitationStatus(str, Enum):
4446
withdrawn = "Withdrawn"
4547

4648

47-
class ShareKind(str, Enum):
48-
49-
copy_based = "CopyBased"
50-
in_place = "InPlace"
51-
52-
53-
class SynchronizationMode(str, Enum):
54-
55-
incremental = "Incremental"
56-
full_sync = "FullSync"
57-
58-
5949
class DataSetType(str, Enum):
6050

6151
blob = "Blob"
@@ -72,6 +62,16 @@ class DataSetType(str, Enum):
7262
sql_dw_table = "SqlDWTable"
7363

7464

65+
class Status(str, Enum):
66+
67+
accepted = "Accepted"
68+
in_progress = "InProgress"
69+
transient_failure = "TransientFailure"
70+
succeeded = "Succeeded"
71+
failed = "Failed"
72+
canceled = "Canceled"
73+
74+
7575
class ShareSubscriptionStatus(str, Enum):
7676

7777
active = "Active"
@@ -86,20 +86,20 @@ class RecurrenceInterval(str, Enum):
8686
day = "Day"
8787

8888

89+
class SynchronizationMode(str, Enum):
90+
91+
incremental = "Incremental"
92+
full_sync = "FullSync"
93+
94+
8995
class TriggerStatus(str, Enum):
9096

9197
active = "Active"
9298
inactive = "Inactive"
9399
source_synchronization_setting_deleted = "SourceSynchronizationSettingDeleted"
94100

95101

96-
class DataSetMappingStatus(str, Enum):
97-
98-
ok = "Ok"
99-
broken = "Broken"
100-
101-
102-
class OutputType(str, Enum):
102+
class ShareKind(str, Enum):
103103

104-
csv = "Csv"
105-
parquet = "Parquet"
104+
copy_based = "CopyBased"
105+
in_place = "InPlace"

sdk/datashare/azure-mgmt-datashare/azure/mgmt/datashare/models/_models.py

Lines changed: 60 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,55 @@
1313
from msrest.exceptions import HttpOperationError
1414

1515

16-
class DefaultDto(Model):
16+
class ProxyDto(Model):
17+
"""Base data transfer object implementation for proxy resources.
18+
19+
Variables are only populated by the server, and will be ignored when
20+
sending a request.
21+
22+
:ivar id: The resource id of the azure resource
23+
:vartype id: str
24+
:ivar name: Name of the azure resource
25+
:vartype name: str
26+
:ivar type: Type of the azure resource
27+
:vartype type: str
28+
"""
29+
30+
_validation = {
31+
'id': {'readonly': True},
32+
'name': {'readonly': True},
33+
'type': {'readonly': True},
34+
}
35+
36+
_attribute_map = {
37+
'id': {'key': 'id', 'type': 'str'},
38+
'name': {'key': 'name', 'type': 'str'},
39+
'type': {'key': 'type', 'type': 'str'},
40+
}
41+
42+
def __init__(self, **kwargs):
43+
super(ProxyDto, self).__init__(**kwargs)
44+
self.id = None
45+
self.name = None
46+
self.type = None
47+
48+
49+
class DefaultDto(ProxyDto):
1750
"""Base data transfer object implementation for default resources.
1851
1952
Variables are only populated by the server, and will be ignored when
2053
sending a request.
2154
2255
:ivar id: The resource id of the azure resource
2356
:vartype id: str
24-
:param location: Location of the azure resource.
25-
:type location: str
2657
:ivar name: Name of the azure resource
2758
:vartype name: str
28-
:param tags: Tags on the azure resource.
29-
:type tags: dict[str, str]
3059
:ivar type: Type of the azure resource
3160
:vartype type: str
61+
:param location: Location of the azure resource.
62+
:type location: str
63+
:param tags: Tags on the azure resource.
64+
:type tags: dict[str, str]
3265
"""
3366

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

4073
_attribute_map = {
4174
'id': {'key': 'id', 'type': 'str'},
42-
'location': {'key': 'location', 'type': 'str'},
4375
'name': {'key': 'name', 'type': 'str'},
44-
'tags': {'key': 'tags', 'type': '{str}'},
4576
'type': {'key': 'type', 'type': 'str'},
77+
'location': {'key': 'location', 'type': 'str'},
78+
'tags': {'key': 'tags', 'type': '{str}'},
4679
}
4780

4881
def __init__(self, **kwargs):
4982
super(DefaultDto, self).__init__(**kwargs)
50-
self.id = None
5183
self.location = kwargs.get('location', None)
52-
self.name = None
5384
self.tags = kwargs.get('tags', None)
54-
self.type = None
5585

5686

5787
class Account(DefaultDto):
@@ -64,14 +94,14 @@ class Account(DefaultDto):
6494
6595
:ivar id: The resource id of the azure resource
6696
:vartype id: str
67-
:param location: Location of the azure resource.
68-
:type location: str
6997
:ivar name: Name of the azure resource
7098
:vartype name: str
71-
:param tags: Tags on the azure resource.
72-
:type tags: dict[str, str]
7399
:ivar type: Type of the azure resource
74100
:vartype type: str
101+
:param location: Location of the azure resource.
102+
:type location: str
103+
:param tags: Tags on the azure resource.
104+
:type tags: dict[str, str]
75105
:param identity: Required. Identity Info on the Account
76106
:type identity: ~azure.mgmt.datashare.models.Identity
77107
:ivar created_at: Time at which the account was created.
@@ -99,10 +129,10 @@ class Account(DefaultDto):
99129

100130
_attribute_map = {
101131
'id': {'key': 'id', 'type': 'str'},
102-
'location': {'key': 'location', 'type': 'str'},
103132
'name': {'key': 'name', 'type': 'str'},
104-
'tags': {'key': 'tags', 'type': '{str}'},
105133
'type': {'key': 'type', 'type': 'str'},
134+
'location': {'key': 'location', 'type': 'str'},
135+
'tags': {'key': 'tags', 'type': '{str}'},
106136
'identity': {'key': 'identity', 'type': 'Identity'},
107137
'created_at': {'key': 'properties.createdAt', 'type': 'iso-8601'},
108138
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
@@ -135,47 +165,14 @@ def __init__(self, **kwargs):
135165
self.tags = kwargs.get('tags', None)
136166

137167

138-
class ProxyDto(Model):
139-
"""Base data transfer object implementation for proxy resources.
140-
141-
Variables are only populated by the server, and will be ignored when
142-
sending a request.
143-
144-
:ivar id: The resource id of the azure resource
145-
:vartype id: str
146-
:ivar name: Name of the azure resource
147-
:vartype name: str
148-
:ivar type: Type of the azure resource
149-
:vartype type: str
150-
"""
151-
152-
_validation = {
153-
'id': {'readonly': True},
154-
'name': {'readonly': True},
155-
'type': {'readonly': True},
156-
}
157-
158-
_attribute_map = {
159-
'id': {'key': 'id', 'type': 'str'},
160-
'name': {'key': 'name', 'type': 'str'},
161-
'type': {'key': 'type', 'type': 'str'},
162-
}
163-
164-
def __init__(self, **kwargs):
165-
super(ProxyDto, self).__init__(**kwargs)
166-
self.id = None
167-
self.name = None
168-
self.type = None
169-
170-
171168
class DataSet(ProxyDto):
172169
"""A DataSet data transfer object.
173170
174171
You probably want to use the sub-classes and not this class directly. Known
175-
sub-classes are: BlobDataSet, BlobFolderDataSet, BlobContainerDataSet,
176-
ADLSGen2FileDataSet, ADLSGen2FolderDataSet, ADLSGen2FileSystemDataSet,
177-
ADLSGen1FolderDataSet, ADLSGen1FileDataSet, KustoClusterDataSet,
178-
KustoDatabaseDataSet, SqlDWTableDataSet, SqlDBTableDataSet
172+
sub-classes are: ADLSGen1FileDataSet, ADLSGen1FolderDataSet,
173+
ADLSGen2FileDataSet, ADLSGen2FileSystemDataSet, ADLSGen2FolderDataSet,
174+
BlobContainerDataSet, BlobDataSet, BlobFolderDataSet, KustoClusterDataSet,
175+
KustoDatabaseDataSet, SqlDBTableDataSet, SqlDWTableDataSet
179176
180177
Variables are only populated by the server, and will be ignored when
181178
sending a request.
@@ -207,7 +204,7 @@ class DataSet(ProxyDto):
207204
}
208205

209206
_subtype_map = {
210-
'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'}
207+
'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'}
211208
}
212209

213210
def __init__(self, **kwargs):
@@ -417,11 +414,11 @@ class DataSetMapping(ProxyDto):
417414
"""A data set mapping data transfer object.
418415
419416
You probably want to use the sub-classes and not this class directly. Known
420-
sub-classes are: BlobDataSetMapping, BlobFolderDataSetMapping,
421-
BlobContainerDataSetMapping, ADLSGen2FileDataSetMapping,
422-
ADLSGen2FolderDataSetMapping, ADLSGen2FileSystemDataSetMapping,
417+
sub-classes are: ADLSGen2FileDataSetMapping,
418+
ADLSGen2FileSystemDataSetMapping, ADLSGen2FolderDataSetMapping,
419+
BlobContainerDataSetMapping, BlobDataSetMapping, BlobFolderDataSetMapping,
423420
KustoClusterDataSetMapping, KustoDatabaseDataSetMapping,
424-
SqlDWTableDataSetMapping, SqlDBTableDataSetMapping
421+
SqlDBTableDataSetMapping, SqlDWTableDataSetMapping
425422
426423
Variables are only populated by the server, and will be ignored when
427424
sending a request.
@@ -453,7 +450,7 @@ class DataSetMapping(ProxyDto):
453450
}
454451

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

459456
def __init__(self, **kwargs):
@@ -1955,6 +1952,8 @@ class OperationMetaMetricSpecification(Model):
19551952
:type display_name: str
19561953
:param enable_regional_mdm_account: enable regional mdm account
19571954
:type enable_regional_mdm_account: str
1955+
:param fill_gap_with_zero: fill gap with zero
1956+
:type fill_gap_with_zero: bool
19581957
:param internal_metric_name: internal metric name
19591958
:type internal_metric_name: str
19601959
:param name: name of the metric
@@ -1976,6 +1975,7 @@ class OperationMetaMetricSpecification(Model):
19761975
'display_description': {'key': 'displayDescription', 'type': 'str'},
19771976
'display_name': {'key': 'displayName', 'type': 'str'},
19781977
'enable_regional_mdm_account': {'key': 'enableRegionalMdmAccount', 'type': 'str'},
1978+
'fill_gap_with_zero': {'key': 'fillGapWithZero', 'type': 'bool'},
19791979
'internal_metric_name': {'key': 'internalMetricName', 'type': 'str'},
19801980
'name': {'key': 'name', 'type': 'str'},
19811981
'resource_id_dimension_name_override': {'key': 'resourceIdDimensionNameOverride', 'type': 'str'},
@@ -1991,6 +1991,7 @@ def __init__(self, **kwargs):
19911991
self.display_description = kwargs.get('display_description', None)
19921992
self.display_name = kwargs.get('display_name', None)
19931993
self.enable_regional_mdm_account = kwargs.get('enable_regional_mdm_account', None)
1994+
self.fill_gap_with_zero = kwargs.get('fill_gap_with_zero', None)
19941995
self.internal_metric_name = kwargs.get('internal_metric_name', None)
19951996
self.name = kwargs.get('name', None)
19961997
self.resource_id_dimension_name_override = kwargs.get('resource_id_dimension_name_override', None)

0 commit comments

Comments
 (0)