Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,12 @@ class WorkspaceSkuNameEnum(str, Enum):

class DataIngestionStatus(str, Enum):

respect_quota = "RespectQuota"
force_on = "ForceOn"
force_off = "ForceOff"
over_quota = "OverQuota"
subscription_suspended = "SubscriptionSuspended"
approaching_quota = "ApproachingQuota"
respect_quota = "RespectQuota" #: Ingestion enabled following daily cap quota reset, or subscription enablement.
force_on = "ForceOn" #: Ingestion started following service setting change.
force_off = "ForceOff" #: Ingestion stopped following service setting change.
over_quota = "OverQuota" #: Reached daily cap quota, ingestion stopped.
subscription_suspended = "SubscriptionSuspended" #: Ingestion stopped following suspended subscription.
approaching_quota = "ApproachingQuota" #: 80% of daily cap quota reached.


class WorkspaceEntityStatus(str, Enum):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -528,8 +528,8 @@ class DataSource(ProxyResource):
:param properties: Required. The data source properties in raw json
format, each kind of data source have it's own schema.
:type properties: object
:param e_tag: The ETag of the data source.
:type e_tag: str
:param etag: The ETag of the data source.
:type etag: str
:param kind: Required. Possible values include: 'WindowsEvent',
'WindowsPerformanceCounter', 'IISLogs', 'LinuxSyslog',
'LinuxSyslogCollection', 'LinuxPerformanceObject',
Expand Down Expand Up @@ -564,15 +564,15 @@ class DataSource(ProxyResource):
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'properties': {'key': 'properties', 'type': 'object'},
'e_tag': {'key': 'eTag', 'type': 'str'},
'etag': {'key': 'etag', 'type': 'str'},
'kind': {'key': 'kind', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
}

def __init__(self, **kwargs):
super(DataSource, self).__init__(**kwargs)
self.properties = kwargs.get('properties', None)
self.e_tag = kwargs.get('e_tag', None)
self.etag = kwargs.get('etag', None)
self.kind = kwargs.get('kind', None)
self.tags = kwargs.get('tags', None)

Expand Down Expand Up @@ -1086,8 +1086,8 @@ class SavedSearch(ProxyResource):
:ivar type: The type of the resource. Ex-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
:vartype type: str
:param e_tag: The ETag of the saved search.
:type e_tag: str
:param etag: The ETag of the saved search.
:type etag: str
:param category: Required. The category of the saved search. This helps
the user to find a saved search faster.
:type category: str
Expand Down Expand Up @@ -1123,7 +1123,7 @@ class SavedSearch(ProxyResource):
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'e_tag': {'key': 'eTag', 'type': 'str'},
'etag': {'key': 'etag', 'type': 'str'},
'category': {'key': 'properties.category', 'type': 'str'},
'display_name': {'key': 'properties.displayName', 'type': 'str'},
'query': {'key': 'properties.query', 'type': 'str'},
Expand All @@ -1135,7 +1135,7 @@ class SavedSearch(ProxyResource):

def __init__(self, **kwargs):
super(SavedSearch, self).__init__(**kwargs)
self.e_tag = kwargs.get('e_tag', None)
self.etag = kwargs.get('etag', None)
self.category = kwargs.get('category', None)
self.display_name = kwargs.get('display_name', None)
self.query = kwargs.get('query', None)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -528,8 +528,8 @@ class DataSource(ProxyResource):
:param properties: Required. The data source properties in raw json
format, each kind of data source have it's own schema.
:type properties: object
:param e_tag: The ETag of the data source.
:type e_tag: str
:param etag: The ETag of the data source.
:type etag: str
:param kind: Required. Possible values include: 'WindowsEvent',
'WindowsPerformanceCounter', 'IISLogs', 'LinuxSyslog',
'LinuxSyslogCollection', 'LinuxPerformanceObject',
Expand Down Expand Up @@ -564,15 +564,15 @@ class DataSource(ProxyResource):
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'properties': {'key': 'properties', 'type': 'object'},
'e_tag': {'key': 'eTag', 'type': 'str'},
'etag': {'key': 'etag', 'type': 'str'},
'kind': {'key': 'kind', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
}

def __init__(self, *, properties, kind, e_tag: str=None, tags=None, **kwargs) -> None:
def __init__(self, *, properties, kind, etag: str=None, tags=None, **kwargs) -> None:
super(DataSource, self).__init__(**kwargs)
self.properties = properties
self.e_tag = e_tag
self.etag = etag
self.kind = kind
self.tags = tags

Expand Down Expand Up @@ -1086,8 +1086,8 @@ class SavedSearch(ProxyResource):
:ivar type: The type of the resource. Ex-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
:vartype type: str
:param e_tag: The ETag of the saved search.
:type e_tag: str
:param etag: The ETag of the saved search.
:type etag: str
:param category: Required. The category of the saved search. This helps
the user to find a saved search faster.
:type category: str
Expand Down Expand Up @@ -1123,7 +1123,7 @@ class SavedSearch(ProxyResource):
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'e_tag': {'key': 'eTag', 'type': 'str'},
'etag': {'key': 'etag', 'type': 'str'},
'category': {'key': 'properties.category', 'type': 'str'},
'display_name': {'key': 'properties.displayName', 'type': 'str'},
'query': {'key': 'properties.query', 'type': 'str'},
Expand All @@ -1133,9 +1133,9 @@ class SavedSearch(ProxyResource):
'tags': {'key': 'properties.tags', 'type': '[Tag]'},
}

def __init__(self, *, category: str, display_name: str, query: str, e_tag: str=None, function_alias: str=None, function_parameters: str=None, version: int=None, tags=None, **kwargs) -> None:
def __init__(self, *, category: str, display_name: str, query: str, etag: str=None, function_alias: str=None, function_parameters: str=None, version: int=None, tags=None, **kwargs) -> None:
super(SavedSearch, self).__init__(**kwargs)
self.e_tag = e_tag
self.etag = etag
self.category = category
self.display_name = display_name
self.query = query
Expand Down