Skip to content

Commit df84a01

Browse files
msyycSDK Automation
andauthored
[T1] loganalytics 2020 11 09 (Azure#15141)
* Generated from 16e04bb147633ce6fc24fb3ec3437b41de1cf847 * version,changelog Co-authored-by: SDK Automation <[email protected]>
1 parent 755bff5 commit df84a01

File tree

4 files changed

+132
-106
lines changed

4 files changed

+132
-106
lines changed

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

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

3+
## 2.0.0(2020-11-09)
4+
5+
**Breaking changes**
6+
7+
- Model DataExport no longer has parameter all_tables
8+
39
## 1.0.0 (2020-08-31)
410

511
**Features**

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

Lines changed: 62 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -76,16 +76,19 @@ def __init__(self, **kwargs):
7676
class Resource(Model):
7777
"""Resource.
7878
79+
Common fields that are returned in the response for all Azure Resource
80+
Manager resources.
81+
7982
Variables are only populated by the server, and will be ignored when
8083
sending a request.
8184
82-
:ivar id: Fully qualified resource Id for the resource. Ex -
85+
:ivar id: Fully qualified resource ID for the resource. Ex -
8386
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
8487
:vartype id: str
8588
:ivar name: The name of the resource
8689
:vartype name: str
87-
:ivar type: The type of the resource. Ex-
88-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
90+
:ivar type: The type of the resource. E.g.
91+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
8992
:vartype type: str
9093
"""
9194

@@ -109,19 +112,21 @@ def __init__(self, **kwargs):
109112

110113

111114
class AzureEntityResource(Resource):
112-
"""The resource model definition for a Azure Resource Manager resource with an
113-
etag.
115+
"""Entity Resource.
116+
117+
The resource model definition for an Azure Resource Manager resource with
118+
an etag.
114119
115120
Variables are only populated by the server, and will be ignored when
116121
sending a request.
117122
118-
:ivar id: Fully qualified resource Id for the resource. Ex -
123+
:ivar id: Fully qualified resource ID for the resource. Ex -
119124
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
120125
:vartype id: str
121126
:ivar name: The name of the resource
122127
:vartype name: str
123-
:ivar type: The type of the resource. Ex-
124-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
128+
:ivar type: The type of the resource. E.g.
129+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
125130
:vartype type: str
126131
:ivar etag: Resource Etag.
127132
:vartype etag: str
@@ -155,20 +160,23 @@ class CloudError(Model):
155160

156161

157162
class TrackedResource(Resource):
158-
"""The resource model definition for a ARM tracked top level resource.
163+
"""Tracked Resource.
164+
165+
The resource model definition for an Azure Resource Manager tracked top
166+
level resource which has 'tags' and a 'location'.
159167
160168
Variables are only populated by the server, and will be ignored when
161169
sending a request.
162170
163171
All required parameters must be populated in order to send to Azure.
164172
165-
:ivar id: Fully qualified resource Id for the resource. Ex -
173+
:ivar id: Fully qualified resource ID for the resource. Ex -
166174
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
167175
:vartype id: str
168176
:ivar name: The name of the resource
169177
:vartype name: str
170-
:ivar type: The type of the resource. Ex-
171-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
178+
:ivar type: The type of the resource. E.g.
179+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
172180
:vartype type: str
173181
:param tags: Resource tags.
174182
:type tags: dict[str, str]
@@ -205,13 +213,13 @@ class Cluster(TrackedResource):
205213
206214
All required parameters must be populated in order to send to Azure.
207215
208-
:ivar id: Fully qualified resource Id for the resource. Ex -
216+
:ivar id: Fully qualified resource ID for the resource. Ex -
209217
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
210218
:vartype id: str
211219
:ivar name: The name of the resource
212220
:vartype name: str
213-
:ivar type: The type of the resource. Ex-
214-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
221+
:ivar type: The type of the resource. E.g.
222+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
215223
:vartype type: str
216224
:param tags: Resource tags.
217225
:type tags: dict[str, str]
@@ -371,19 +379,21 @@ def __init__(self, **kwargs):
371379

372380

373381
class ProxyResource(Resource):
374-
"""The resource model definition for a ARM proxy resource. It will have
375-
everything other than required location and tags.
382+
"""Proxy Resource.
383+
384+
The resource model definition for a Azure Resource Manager proxy resource.
385+
It will not have tags and a location.
376386
377387
Variables are only populated by the server, and will be ignored when
378388
sending a request.
379389
380-
:ivar id: Fully qualified resource Id for the resource. Ex -
390+
:ivar id: Fully qualified resource ID for the resource. Ex -
381391
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
382392
:vartype id: str
383393
:ivar name: The name of the resource
384394
:vartype name: str
385-
:ivar type: The type of the resource. Ex-
386-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
395+
:ivar type: The type of the resource. E.g.
396+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
387397
:vartype type: str
388398
"""
389399

@@ -411,18 +421,16 @@ class DataExport(ProxyResource):
411421
412422
All required parameters must be populated in order to send to Azure.
413423
414-
:ivar id: Fully qualified resource Id for the resource. Ex -
424+
:ivar id: Fully qualified resource ID for the resource. Ex -
415425
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
416426
:vartype id: str
417427
:ivar name: The name of the resource
418428
:vartype name: str
419-
:ivar type: The type of the resource. Ex-
420-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
429+
:ivar type: The type of the resource. E.g.
430+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
421431
:vartype type: str
422432
:param data_export_id: The data export rule ID.
423433
:type data_export_id: str
424-
:param all_tables: When ‘true’, all workspace's tables are exported.
425-
:type all_tables: bool
426434
:param table_names: An array of tables to export, for example:
427435
[“Heartbeat, SecurityEvent”].
428436
:type table_names: list[str]
@@ -457,7 +465,6 @@ class DataExport(ProxyResource):
457465
'name': {'key': 'name', 'type': 'str'},
458466
'type': {'key': 'type', 'type': 'str'},
459467
'data_export_id': {'key': 'properties.dataExportId', 'type': 'str'},
460-
'all_tables': {'key': 'properties.allTables', 'type': 'bool'},
461468
'table_names': {'key': 'properties.tableNames', 'type': '[str]'},
462469
'resource_id': {'key': 'properties.destination.resourceId', 'type': 'str'},
463470
'data_export_type': {'key': 'properties.destination.type', 'type': 'str'},
@@ -470,7 +477,6 @@ class DataExport(ProxyResource):
470477
def __init__(self, **kwargs):
471478
super(DataExport, self).__init__(**kwargs)
472479
self.data_export_id = kwargs.get('data_export_id', None)
473-
self.all_tables = kwargs.get('all_tables', None)
474480
self.table_names = kwargs.get('table_names', None)
475481
self.resource_id = kwargs.get('resource_id', None)
476482
self.data_export_type = None
@@ -517,13 +523,13 @@ class DataSource(ProxyResource):
517523
518524
All required parameters must be populated in order to send to Azure.
519525
520-
:ivar id: Fully qualified resource Id for the resource. Ex -
526+
:ivar id: Fully qualified resource ID for the resource. Ex -
521527
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
522528
:vartype id: str
523529
:ivar name: The name of the resource
524530
:vartype name: str
525-
:ivar type: The type of the resource. Ex-
526-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
531+
:ivar type: The type of the resource. E.g.
532+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
527533
:vartype type: str
528534
:param properties: Required. The data source properties in raw json
529535
format, each kind of data source have it's own schema.
@@ -667,7 +673,11 @@ def __init__(self, deserialize, response, *args):
667673

668674

669675
class ErrorResponse(Model):
670-
"""The resource management error response.
676+
"""Error Response.
677+
678+
Common error response for all Azure Resource Manager APIs to return error
679+
details for failed operations. (This also follows the OData error response
680+
format.).
671681
672682
Variables are only populated by the server, and will be ignored when
673683
sending a request.
@@ -804,13 +814,13 @@ class LinkedService(ProxyResource):
804814
Variables are only populated by the server, and will be ignored when
805815
sending a request.
806816
807-
:ivar id: Fully qualified resource Id for the resource. Ex -
817+
:ivar id: Fully qualified resource ID for the resource. Ex -
808818
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
809819
:vartype id: str
810820
:ivar name: The name of the resource
811821
:vartype name: str
812-
:ivar type: The type of the resource. Ex-
813-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
822+
:ivar type: The type of the resource. E.g.
823+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
814824
:vartype type: str
815825
:param resource_id: The resource id of the resource that will be linked to
816826
the workspace. This should be used for linking resources which require
@@ -859,13 +869,13 @@ class LinkedStorageAccountsResource(ProxyResource):
859869
Variables are only populated by the server, and will be ignored when
860870
sending a request.
861871
862-
:ivar id: Fully qualified resource Id for the resource. Ex -
872+
:ivar id: Fully qualified resource ID for the resource. Ex -
863873
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
864874
:vartype id: str
865875
:ivar name: The name of the resource
866876
:vartype name: str
867-
:ivar type: The type of the resource. Ex-
868-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
877+
:ivar type: The type of the resource. E.g.
878+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
869879
:vartype type: str
870880
:ivar data_source_type: Linked storage accounts type. Possible values
871881
include: 'CustomLogs', 'AzureWatson', 'Query', 'Alerts'
@@ -1078,13 +1088,13 @@ class SavedSearch(ProxyResource):
10781088
10791089
All required parameters must be populated in order to send to Azure.
10801090
1081-
:ivar id: Fully qualified resource Id for the resource. Ex -
1091+
:ivar id: Fully qualified resource ID for the resource. Ex -
10821092
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
10831093
:vartype id: str
10841094
:ivar name: The name of the resource
10851095
:vartype name: str
1086-
:ivar type: The type of the resource. Ex-
1087-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
1096+
:ivar type: The type of the resource. E.g.
1097+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
10881098
:vartype type: str
10891099
:param etag: The ETag of the saved search.
10901100
:type etag: str
@@ -1409,13 +1419,13 @@ class StorageInsight(ProxyResource):
14091419
14101420
All required parameters must be populated in order to send to Azure.
14111421
1412-
:ivar id: Fully qualified resource Id for the resource. Ex -
1422+
:ivar id: Fully qualified resource ID for the resource. Ex -
14131423
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
14141424
:vartype id: str
14151425
:ivar name: The name of the resource
14161426
:vartype name: str
1417-
:ivar type: The type of the resource. Ex-
1418-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
1427+
:ivar type: The type of the resource. E.g.
1428+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
14191429
:vartype type: str
14201430
:param containers: The names of the blob containers that the workspace
14211431
should read
@@ -1496,13 +1506,13 @@ class Table(ProxyResource):
14961506
Variables are only populated by the server, and will be ignored when
14971507
sending a request.
14981508
1499-
:ivar id: Fully qualified resource Id for the resource. Ex -
1509+
:ivar id: Fully qualified resource ID for the resource. Ex -
15001510
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
15011511
:vartype id: str
15021512
:ivar name: The name of the resource
15031513
:vartype name: str
1504-
:ivar type: The type of the resource. Ex-
1505-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
1514+
:ivar type: The type of the resource. E.g.
1515+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
15061516
:vartype type: str
15071517
:param retention_in_days: The data table data retention in days, between
15081518
30 and 730. Setting this property to null will default to the workspace
@@ -1601,13 +1611,13 @@ class Workspace(TrackedResource):
16011611
16021612
All required parameters must be populated in order to send to Azure.
16031613
1604-
:ivar id: Fully qualified resource Id for the resource. Ex -
1614+
:ivar id: Fully qualified resource ID for the resource. Ex -
16051615
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
16061616
:vartype id: str
16071617
:ivar name: The name of the resource
16081618
:vartype name: str
1609-
:ivar type: The type of the resource. Ex-
1610-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
1619+
:ivar type: The type of the resource. E.g.
1620+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
16111621
:vartype type: str
16121622
:param tags: Resource tags.
16131623
:type tags: dict[str, str]
@@ -1727,13 +1737,13 @@ class WorkspacePatch(AzureEntityResource):
17271737
Variables are only populated by the server, and will be ignored when
17281738
sending a request.
17291739
1730-
:ivar id: Fully qualified resource Id for the resource. Ex -
1740+
:ivar id: Fully qualified resource ID for the resource. Ex -
17311741
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
17321742
:vartype id: str
17331743
:ivar name: The name of the resource
17341744
:vartype name: str
1735-
:ivar type: The type of the resource. Ex-
1736-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
1745+
:ivar type: The type of the resource. E.g.
1746+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
17371747
:vartype type: str
17381748
:ivar etag: Resource Etag.
17391749
:vartype etag: str

0 commit comments

Comments
 (0)