Skip to content

Commit

Permalink
Sdk automation/azure mgmt loganalytics (#13432)
Browse files Browse the repository at this point in the history
* Generated from ba891b7274af8cb22ee173e1998b4145d2d8d98b

Adding a point get.

* version 0.7.1

* version 1.0.0

* add changelog

* changelog

Co-authored-by: SDK Automation <[email protected]>
  • Loading branch information
changlong-liu and SDK Automation authored Sep 17, 2020
1 parent ab93d55 commit 136994e
Show file tree
Hide file tree
Showing 27 changed files with 71 additions and 68 deletions.
7 changes: 7 additions & 0 deletions sdk/loganalytics/azure-mgmt-loganalytics/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Release History

## 1.0.0 (2020-08-31)

**Features**

- REST call api-version changes from 2020-03-01-preview to 2020-08-01
- DataSourceType has new enum values

## 0.7.0 (2020-07-09)

**Features**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def __init__(
super(LogAnalyticsManagementClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2020-03-01-preview'
self.api_version = '2020-08-01'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ class DataSourceType(str, Enum):

custom_logs = "CustomLogs"
azure_watson = "AzureWatson"
query = "Query"
alerts = "Alerts"


class WorkspaceSkuNameEnum(str, Enum):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,7 @@ class LinkedStorageAccountsResource(ProxyResource):
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
:vartype type: str
:ivar data_source_type: Linked storage accounts type. Possible values
include: 'CustomLogs', 'AzureWatson'
include: 'CustomLogs', 'AzureWatson', 'Query', 'Alerts'
:vartype data_source_type: str or
~azure.mgmt.loganalytics.models.DataSourceType
:param storage_account_ids: Linked storage accounts resources ids.
Expand Down Expand Up @@ -1623,9 +1623,8 @@ class Workspace(TrackedResource):
:vartype customer_id: str
:param sku: The SKU of the workspace.
:type sku: ~azure.mgmt.loganalytics.models.WorkspaceSku
:param retention_in_days: The workspace data retention in days. -1 means
Unlimited retention for the Unlimited Sku. 730 days is the maximum allowed
for all other Skus.
:param retention_in_days: The workspace data retention in days, between 30
and 730.
:type retention_in_days: int
:param workspace_capping: The daily volume cap for ingestion.
:type workspace_capping: ~azure.mgmt.loganalytics.models.WorkspaceCapping
Expand Down Expand Up @@ -1653,7 +1652,7 @@ class Workspace(TrackedResource):
'type': {'readonly': True},
'location': {'required': True},
'customer_id': {'readonly': True},
'retention_in_days': {'maximum': 730, 'minimum': -1},
'retention_in_days': {'maximum': 730, 'minimum': 30},
'private_link_scoped_resources': {'readonly': True},
}

Expand Down Expand Up @@ -1693,8 +1692,7 @@ class WorkspaceCapping(Model):
Variables are only populated by the server, and will be ignored when
sending a request.
:param daily_quota_gb: The workspace daily quota for ingestion. -1 means
unlimited.
:param daily_quota_gb: The workspace daily quota for ingestion.
:type daily_quota_gb: float
:ivar quota_next_reset_time: The time when the quota will be rest.
:vartype quota_next_reset_time: str
Expand Down Expand Up @@ -1749,9 +1747,8 @@ class WorkspacePatch(AzureEntityResource):
:vartype customer_id: str
:param sku: The SKU of the workspace.
:type sku: ~azure.mgmt.loganalytics.models.WorkspaceSku
:param retention_in_days: The workspace data retention in days. -1 means
Unlimited retention for the Unlimited Sku. 730 days is the maximum allowed
for all other Skus.
:param retention_in_days: The workspace data retention in days, between 30
and 730.
:type retention_in_days: int
:param workspace_capping: The daily volume cap for ingestion.
:type workspace_capping: ~azure.mgmt.loganalytics.models.WorkspaceCapping
Expand Down Expand Up @@ -1779,7 +1776,7 @@ class WorkspacePatch(AzureEntityResource):
'type': {'readonly': True},
'etag': {'readonly': True},
'customer_id': {'readonly': True},
'retention_in_days': {'maximum': 730, 'minimum': -1},
'retention_in_days': {'maximum': 730, 'minimum': 30},
'private_link_scoped_resources': {'readonly': True},
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,7 @@ class LinkedStorageAccountsResource(ProxyResource):
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
:vartype type: str
:ivar data_source_type: Linked storage accounts type. Possible values
include: 'CustomLogs', 'AzureWatson'
include: 'CustomLogs', 'AzureWatson', 'Query', 'Alerts'
:vartype data_source_type: str or
~azure.mgmt.loganalytics.models.DataSourceType
:param storage_account_ids: Linked storage accounts resources ids.
Expand Down Expand Up @@ -1623,9 +1623,8 @@ class Workspace(TrackedResource):
:vartype customer_id: str
:param sku: The SKU of the workspace.
:type sku: ~azure.mgmt.loganalytics.models.WorkspaceSku
:param retention_in_days: The workspace data retention in days. -1 means
Unlimited retention for the Unlimited Sku. 730 days is the maximum allowed
for all other Skus.
:param retention_in_days: The workspace data retention in days, between 30
and 730.
:type retention_in_days: int
:param workspace_capping: The daily volume cap for ingestion.
:type workspace_capping: ~azure.mgmt.loganalytics.models.WorkspaceCapping
Expand Down Expand Up @@ -1653,7 +1652,7 @@ class Workspace(TrackedResource):
'type': {'readonly': True},
'location': {'required': True},
'customer_id': {'readonly': True},
'retention_in_days': {'maximum': 730, 'minimum': -1},
'retention_in_days': {'maximum': 730, 'minimum': 30},
'private_link_scoped_resources': {'readonly': True},
}

Expand Down Expand Up @@ -1693,8 +1692,7 @@ class WorkspaceCapping(Model):
Variables are only populated by the server, and will be ignored when
sending a request.
:param daily_quota_gb: The workspace daily quota for ingestion. -1 means
unlimited.
:param daily_quota_gb: The workspace daily quota for ingestion.
:type daily_quota_gb: float
:ivar quota_next_reset_time: The time when the quota will be rest.
:vartype quota_next_reset_time: str
Expand Down Expand Up @@ -1749,9 +1747,8 @@ class WorkspacePatch(AzureEntityResource):
:vartype customer_id: str
:param sku: The SKU of the workspace.
:type sku: ~azure.mgmt.loganalytics.models.WorkspaceSku
:param retention_in_days: The workspace data retention in days. -1 means
Unlimited retention for the Unlimited Sku. 730 days is the maximum allowed
for all other Skus.
:param retention_in_days: The workspace data retention in days, between 30
and 730.
:type retention_in_days: int
:param workspace_capping: The daily volume cap for ingestion.
:type workspace_capping: ~azure.mgmt.loganalytics.models.WorkspaceCapping
Expand Down Expand Up @@ -1779,7 +1776,7 @@ class WorkspacePatch(AzureEntityResource):
'type': {'readonly': True},
'etag': {'readonly': True},
'customer_id': {'readonly': True},
'retention_in_days': {'maximum': 730, 'minimum': -1},
'retention_in_days': {'maximum': 730, 'minimum': 30},
'private_link_scoped_resources': {'readonly': True},
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class AvailableServiceTiersOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
:ivar api_version: The API version to use for this operation. Constant value: "2020-03-01-preview".
:ivar api_version: The API version to use for this operation. Constant value: "2020-08-01".
"""

models = models
Expand All @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2020-03-01-preview"
self.api_version = "2020-08-01"

self.config = config

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class ClustersOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
:ivar api_version: The API version to use for this operation. Constant value: "2020-03-01-preview".
:ivar api_version: The API version to use for this operation. Constant value: "2020-08-01".
"""

models = models
Expand All @@ -36,7 +36,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2020-03-01-preview"
self.api_version = "2020-08-01"

self.config = config

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class DataExportsOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
:ivar api_version: The API version to use for this operation. Constant value: "2020-03-01-preview".
:ivar api_version: The API version to use for this operation. Constant value: "2020-08-01".
"""

models = models
Expand All @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2020-03-01-preview"
self.api_version = "2020-08-01"

self.config = config

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class DataSourcesOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
:ivar api_version: The API version to use for this operation. Constant value: "2020-03-01-preview".
:ivar api_version: The API version to use for this operation. Constant value: "2020-08-01".
"""

models = models
Expand All @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2020-03-01-preview"
self.api_version = "2020-08-01"

self.config = config

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class DeletedWorkspacesOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
:ivar api_version: The API version to use for this operation. Constant value: "2020-03-01-preview".
:ivar api_version: The API version to use for this operation. Constant value: "2020-08-01".
"""

models = models
Expand All @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2020-03-01-preview"
self.api_version = "2020-08-01"

self.config = config

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class GatewaysOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
:ivar api_version: The API version to use for this operation. Constant value: "2020-03-01-preview".
:ivar api_version: The API version to use for this operation. Constant value: "2020-08-01".
"""

models = models
Expand All @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2020-03-01-preview"
self.api_version = "2020-08-01"

self.config = config

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class IntelligencePacksOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
:ivar api_version: The API version to use for this operation. Constant value: "2020-03-01-preview".
:ivar api_version: The API version to use for this operation. Constant value: "2020-08-01".
"""

models = models
Expand All @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2020-03-01-preview"
self.api_version = "2020-08-01"

self.config = config

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class LinkedServicesOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
:ivar api_version: The API version to use for this operation. Constant value: "2020-03-01-preview".
:ivar api_version: The API version to use for this operation. Constant value: "2020-08-01".
"""

models = models
Expand All @@ -37,7 +37,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2020-03-01-preview"
self.api_version = "2020-08-01"

self.config = config

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class LinkedStorageAccountsOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
:ivar api_version: The API version to use for this operation. Constant value: "2020-03-01-preview".
:ivar api_version: The API version to use for this operation. Constant value: "2020-08-01".
"""

models = models
Expand All @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2020-03-01-preview"
self.api_version = "2020-08-01"

self.config = config

Expand All @@ -50,7 +50,7 @@ def create_or_update(
:param workspace_name: The name of the workspace.
:type workspace_name: str
:param data_source_type: Linked storage accounts type. Possible values
include: 'CustomLogs', 'AzureWatson'
include: 'CustomLogs', 'AzureWatson', 'Query', 'Alerts'
:type data_source_type: str or
~azure.mgmt.loganalytics.models.DataSourceType
:param storage_account_ids: Linked storage accounts resources ids.
Expand Down Expand Up @@ -127,7 +127,7 @@ def delete(
:param workspace_name: The name of the workspace.
:type workspace_name: str
:param data_source_type: Linked storage accounts type. Possible values
include: 'CustomLogs', 'AzureWatson'
include: 'CustomLogs', 'AzureWatson', 'Query', 'Alerts'
:type data_source_type: str or
~azure.mgmt.loganalytics.models.DataSourceType
:param dict custom_headers: headers that will be added to the request
Expand Down Expand Up @@ -187,7 +187,7 @@ def get(
:param workspace_name: The name of the workspace.
:type workspace_name: str
:param data_source_type: Linked storage accounts type. Possible values
include: 'CustomLogs', 'AzureWatson'
include: 'CustomLogs', 'AzureWatson', 'Query', 'Alerts'
:type data_source_type: str or
~azure.mgmt.loganalytics.models.DataSourceType
:param dict custom_headers: headers that will be added to the request
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class ManagementGroupsOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
:ivar api_version: The API version to use for this operation. Constant value: "2020-03-01-preview".
:ivar api_version: The API version to use for this operation. Constant value: "2020-08-01".
"""

models = models
Expand All @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2020-03-01-preview"
self.api_version = "2020-08-01"

self.config = config

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class OperationStatusesOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
:ivar api_version: The API version to use for this operation. Constant value: "2020-03-01-preview".
:ivar api_version: The API version to use for this operation. Constant value: "2020-08-01".
"""

models = models
Expand All @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2020-03-01-preview"
self.api_version = "2020-08-01"

self.config = config

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Operations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
:ivar api_version: The API version to use for this operation. Constant value: "2020-03-01-preview".
:ivar api_version: The API version to use for this operation. Constant value: "2020-08-01".
"""

models = models
Expand All @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2020-03-01-preview"
self.api_version = "2020-08-01"

self.config = config

Expand Down
Loading

0 comments on commit 136994e

Please sign in to comment.