Skip to content

Commit b20a258

Browse files
changlong-liuSDK Automation
and
SDK Automation
authored
20200713 sdk automation/azure mgmt kusto (#12510)
* Generated from 0901facf2e66cb8033bec733d0491896d94d1e27 Update custom-words.txt * version 0.9.0 * run test Co-authored-by: SDK Automation <[email protected]>
1 parent ca42cd1 commit b20a258

15 files changed

+566
-463
lines changed

sdk/kusto/azure-mgmt-kusto/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Release History
22

3+
## 0.9.0 (2020-07-13)
4+
5+
**Features**
6+
7+
- Model Cluster has a new parameter enable_double_encryption
8+
- Model ClusterUpdate has a new parameter enable_double_encryption
9+
- Model EventGridDataConnection has a new parameter blob_storage_event_type
10+
- Model EventGridDataConnection has a new parameter ignore_first_record
11+
312
## 0.8.0 (2020-05-31)
413

514
**Breaking changes**

sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/_kusto_management_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def __init__(
6161
super(KustoManagementClient, self).__init__(self.config.credentials, self.config)
6262

6363
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
64-
self.api_version = '2020-02-15'
64+
self.api_version = '2020-06-14'
6565
self._serialize = Serializer(client_models)
6666
self._deserialize = Deserializer(client_models)
6767

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@
128128
Compression,
129129
IotHubDataFormat,
130130
EventGridDataFormat,
131+
BlobStorageEventType,
131132
IdentityType,
132133
DatabasePrincipalRole,
133134
DatabasePrincipalType,
@@ -208,6 +209,7 @@
208209
'Compression',
209210
'IotHubDataFormat',
210211
'EventGridDataFormat',
212+
'BlobStorageEventType',
211213
'IdentityType',
212214
'DatabasePrincipalRole',
213215
'DatabasePrincipalType',

sdk/kusto/azure-mgmt-kusto/azure/mgmt/kusto/models/_kusto_management_client_enums.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ class EventHubDataFormat(str, Enum):
109109
tsve = "TSVE"
110110
parquet = "PARQUET"
111111
orc = "ORC"
112+
apacheavro = "APACHEAVRO"
113+
w3_clogfile = "W3CLOGFILE"
112114

113115

114116
class Compression(str, Enum):
@@ -133,6 +135,8 @@ class IotHubDataFormat(str, Enum):
133135
tsve = "TSVE"
134136
parquet = "PARQUET"
135137
orc = "ORC"
138+
apacheavro = "APACHEAVRO"
139+
w3_clogfile = "W3CLOGFILE"
136140

137141

138142
class EventGridDataFormat(str, Enum):
@@ -151,6 +155,14 @@ class EventGridDataFormat(str, Enum):
151155
tsve = "TSVE"
152156
parquet = "PARQUET"
153157
orc = "ORC"
158+
apacheavro = "APACHEAVRO"
159+
w3_clogfile = "W3CLOGFILE"
160+
161+
162+
class BlobStorageEventType(str, Enum):
163+
164+
microsoft_storage_blob_created = "Microsoft.Storage.BlobCreated"
165+
microsoft_storage_blob_renamed = "Microsoft.Storage.BlobRenamed"
154166

155167

156168
class IdentityType(str, Enum):

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

Lines changed: 40 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -518,8 +518,12 @@ class Cluster(TrackedResource):
518518
:param enable_purge: A boolean value that indicates if the purge
519519
operations are enabled. Default value: False .
520520
:type enable_purge: bool
521-
:param language_extensions: List of the cluster's language extensions.
522-
:type language_extensions: ~azure.mgmt.kusto.models.LanguageExtensionsList
521+
:ivar language_extensions: List of the cluster's language extensions.
522+
:vartype language_extensions:
523+
~azure.mgmt.kusto.models.LanguageExtensionsList
524+
:param enable_double_encryption: A boolean value that indicates if double
525+
encryption is enabled. Default value: False .
526+
:type enable_double_encryption: bool
523527
"""
524528

525529
_validation = {
@@ -533,6 +537,7 @@ class Cluster(TrackedResource):
533537
'uri': {'readonly': True},
534538
'data_ingestion_uri': {'readonly': True},
535539
'state_reason': {'readonly': True},
540+
'language_extensions': {'readonly': True},
536541
}
537542

538543
_attribute_map = {
@@ -557,6 +562,7 @@ class Cluster(TrackedResource):
557562
'key_vault_properties': {'key': 'properties.keyVaultProperties', 'type': 'KeyVaultProperties'},
558563
'enable_purge': {'key': 'properties.enablePurge', 'type': 'bool'},
559564
'language_extensions': {'key': 'properties.languageExtensions', 'type': 'LanguageExtensionsList'},
565+
'enable_double_encryption': {'key': 'properties.enableDoubleEncryption', 'type': 'bool'},
560566
}
561567

562568
def __init__(self, **kwargs):
@@ -576,7 +582,8 @@ def __init__(self, **kwargs):
576582
self.virtual_network_configuration = kwargs.get('virtual_network_configuration', None)
577583
self.key_vault_properties = kwargs.get('key_vault_properties', None)
578584
self.enable_purge = kwargs.get('enable_purge', False)
579-
self.language_extensions = kwargs.get('language_extensions', None)
585+
self.language_extensions = None
586+
self.enable_double_encryption = kwargs.get('enable_double_encryption', False)
580587

581588

582589
class ClusterCheckNameRequest(Model):
@@ -775,8 +782,12 @@ class ClusterUpdate(Resource):
775782
:param enable_purge: A boolean value that indicates if the purge
776783
operations are enabled. Default value: False .
777784
:type enable_purge: bool
778-
:param language_extensions: List of the cluster's language extensions.
779-
:type language_extensions: ~azure.mgmt.kusto.models.LanguageExtensionsList
785+
:ivar language_extensions: List of the cluster's language extensions.
786+
:vartype language_extensions:
787+
~azure.mgmt.kusto.models.LanguageExtensionsList
788+
:param enable_double_encryption: A boolean value that indicates if double
789+
encryption is enabled. Default value: False .
790+
:type enable_double_encryption: bool
780791
"""
781792

782793
_validation = {
@@ -788,6 +799,7 @@ class ClusterUpdate(Resource):
788799
'uri': {'readonly': True},
789800
'data_ingestion_uri': {'readonly': True},
790801
'state_reason': {'readonly': True},
802+
'language_extensions': {'readonly': True},
791803
}
792804

793805
_attribute_map = {
@@ -811,6 +823,7 @@ class ClusterUpdate(Resource):
811823
'key_vault_properties': {'key': 'properties.keyVaultProperties', 'type': 'KeyVaultProperties'},
812824
'enable_purge': {'key': 'properties.enablePurge', 'type': 'bool'},
813825
'language_extensions': {'key': 'properties.languageExtensions', 'type': 'LanguageExtensionsList'},
826+
'enable_double_encryption': {'key': 'properties.enableDoubleEncryption', 'type': 'bool'},
814827
}
815828

816829
def __init__(self, **kwargs):
@@ -831,7 +844,8 @@ def __init__(self, **kwargs):
831844
self.virtual_network_configuration = kwargs.get('virtual_network_configuration', None)
832845
self.key_vault_properties = kwargs.get('key_vault_properties', None)
833846
self.enable_purge = kwargs.get('enable_purge', False)
834-
self.language_extensions = kwargs.get('language_extensions', None)
847+
self.language_extensions = None
848+
self.enable_double_encryption = kwargs.get('enable_double_encryption', False)
835849

836850

837851
class Database(ProxyResource):
@@ -1278,17 +1292,25 @@ class EventGridDataConnection(DataConnection):
12781292
:type event_hub_resource_id: str
12791293
:param consumer_group: Required. The event hub consumer group.
12801294
:type consumer_group: str
1281-
:param table_name: Required. The table where the data should be ingested.
1282-
Optionally the table information can be added to each message.
1295+
:param table_name: The table where the data should be ingested. Optionally
1296+
the table information can be added to each message.
12831297
:type table_name: str
12841298
:param mapping_rule_name: The mapping rule to be used to ingest the data.
12851299
Optionally the mapping information can be added to each message.
12861300
:type mapping_rule_name: str
1287-
:param data_format: Required. The data format of the message. Optionally
1288-
the data format can be added to each message. Possible values include:
1289-
'MULTIJSON', 'JSON', 'CSV', 'TSV', 'SCSV', 'SOHSV', 'PSV', 'TXT', 'RAW',
1290-
'SINGLEJSON', 'AVRO', 'TSVE', 'PARQUET', 'ORC'
1301+
:param data_format: The data format of the message. Optionally the data
1302+
format can be added to each message. Possible values include: 'MULTIJSON',
1303+
'JSON', 'CSV', 'TSV', 'SCSV', 'SOHSV', 'PSV', 'TXT', 'RAW', 'SINGLEJSON',
1304+
'AVRO', 'TSVE', 'PARQUET', 'ORC', 'APACHEAVRO', 'W3CLOGFILE'
12911305
:type data_format: str or ~azure.mgmt.kusto.models.EventGridDataFormat
1306+
:param ignore_first_record: A Boolean value that, if set to true,
1307+
indicates that ingestion should ignore the first record of every file
1308+
:type ignore_first_record: bool
1309+
:param blob_storage_event_type: The name of blob storage event type to
1310+
process. Possible values include: 'Microsoft.Storage.BlobCreated',
1311+
'Microsoft.Storage.BlobRenamed'
1312+
:type blob_storage_event_type: str or
1313+
~azure.mgmt.kusto.models.BlobStorageEventType
12921314
"""
12931315

12941316
_validation = {
@@ -1299,8 +1321,6 @@ class EventGridDataConnection(DataConnection):
12991321
'storage_account_resource_id': {'required': True},
13001322
'event_hub_resource_id': {'required': True},
13011323
'consumer_group': {'required': True},
1302-
'table_name': {'required': True},
1303-
'data_format': {'required': True},
13041324
}
13051325

13061326
_attribute_map = {
@@ -1315,6 +1335,8 @@ class EventGridDataConnection(DataConnection):
13151335
'table_name': {'key': 'properties.tableName', 'type': 'str'},
13161336
'mapping_rule_name': {'key': 'properties.mappingRuleName', 'type': 'str'},
13171337
'data_format': {'key': 'properties.dataFormat', 'type': 'str'},
1338+
'ignore_first_record': {'key': 'properties.ignoreFirstRecord', 'type': 'bool'},
1339+
'blob_storage_event_type': {'key': 'properties.blobStorageEventType', 'type': 'str'},
13181340
}
13191341

13201342
def __init__(self, **kwargs):
@@ -1325,6 +1347,8 @@ def __init__(self, **kwargs):
13251347
self.table_name = kwargs.get('table_name', None)
13261348
self.mapping_rule_name = kwargs.get('mapping_rule_name', None)
13271349
self.data_format = kwargs.get('data_format', None)
1350+
self.ignore_first_record = kwargs.get('ignore_first_record', None)
1351+
self.blob_storage_event_type = kwargs.get('blob_storage_event_type', None)
13281352
self.kind = 'EventGrid'
13291353

13301354

@@ -1362,7 +1386,7 @@ class EventHubDataConnection(DataConnection):
13621386
:param data_format: The data format of the message. Optionally the data
13631387
format can be added to each message. Possible values include: 'MULTIJSON',
13641388
'JSON', 'CSV', 'TSV', 'SCSV', 'SOHSV', 'PSV', 'TXT', 'RAW', 'SINGLEJSON',
1365-
'AVRO', 'TSVE', 'PARQUET', 'ORC'
1389+
'AVRO', 'TSVE', 'PARQUET', 'ORC', 'APACHEAVRO', 'W3CLOGFILE'
13661390
:type data_format: str or ~azure.mgmt.kusto.models.EventHubDataFormat
13671391
:param event_system_properties: System properties of the event hub
13681392
:type event_system_properties: list[str]
@@ -1551,7 +1575,7 @@ class IotHubDataConnection(DataConnection):
15511575
:param data_format: The data format of the message. Optionally the data
15521576
format can be added to each message. Possible values include: 'MULTIJSON',
15531577
'JSON', 'CSV', 'TSV', 'SCSV', 'SOHSV', 'PSV', 'TXT', 'RAW', 'SINGLEJSON',
1554-
'AVRO', 'TSVE', 'PARQUET', 'ORC'
1578+
'AVRO', 'TSVE', 'PARQUET', 'ORC', 'APACHEAVRO', 'W3CLOGFILE'
15551579
:type data_format: str or ~azure.mgmt.kusto.models.IotHubDataFormat
15561580
:param event_system_properties: System properties of the iot hub
15571581
:type event_system_properties: list[str]

0 commit comments

Comments
 (0)