Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sdk automation/azure mgmt loganalytics #13432

Merged
Show file tree
Hide file tree
Changes from 4 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
11 changes: 11 additions & 0 deletions sdk/loganalytics/azure-mgmt-loganalytics/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# 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

**Breaking changes**

- retention_in_days minimum changes from -1 to 30

## 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