Skip to content

Commit

Permalink
[AutoRelease] t2-loganalytics-2021-04-06-87551 (Azure#17824)
Browse files Browse the repository at this point in the history
* CodeGen from PR 13782 in Azure/azure-rest-api-specs
update OperationalInsights package for SDK release  (Azure#13782)

* added3 new properties to TableProperties:
IsTroubleshootingAllowed, IsTroubleshootingEnabled, IsTroubleshootingEnabledLastActivation.

* added Tables new api version

* changed bool to boolean types

* prettified jsons

* fix erroes in swagger

* undo changes to 2020-03-01-preview version

* pr fixes

* updated TableUpdate example

* changed lastTroubleshootDate from date format to string, removed isTroubleshootingAllowed from body of example

* changed v1 to v2

* changed WorkspaceNameParameter back to V1

* changed ErrorResponse to default ErrorResponse without ref to local definition

* added systemData

* removed systemData

* added systemData to Patch and Get

* moved systemData to Table properties

* deleted systemData from Table.json, added to Get and Put examles

* changed location of systemData in Tables.json

* moved systemData to inside Table definition

* moved systemData inside Table properties

* removed SystemData

* creatted a new package containing all latest swagger files for publishing new SDK

* removed package 2021_02 and set default packate to 2020_10

* removed 2 packages

* removed DataCollectorLogs.json from readme.md 20202.10

* added empty line to try invoke pipeline validations that havent run

* Delete Tables.json

* added3 new properties to TableProperties:
IsTroubleshootingAllowed, IsTroubleshootingEnabled, IsTroubleshootingEnabledLastActivation.

* merge

* prettified jsons

* undo changes to 2020-03-01-preview version

* updated TableUpdate example

* changed lastTroubleshootDate from date format to string, removed isTroubleshootingAllowed from body of example

* changed v1 to v2

* changed WorkspaceNameParameter back to V1

* added systemData

* removed systemData

* added systemData to Patch and Get

* moved systemData to Table properties

* deleted systemData from Table.json, added to Get and Put examles

* changed location of systemData in Tables.json

* moved systemData to inside Table definition

* moved systemData inside Table properties

* removed whitespaces

* changed DataExportErrorResponse to common
.../v2/types.json#/definitions/ErrorResponse

* changed all Error response of 2020-08 to common definition

* version,CHANGELOG

* test

Co-authored-by: SDKAuto <[email protected]>
Co-authored-by: PythonSdkPipelines <PythonSdkPipelines>
Co-authored-by: zhangyan133 <[email protected]>
  • Loading branch information
3 people authored and mccoyp committed Apr 9, 2021
1 parent bfd53a5 commit 0166a5f
Show file tree
Hide file tree
Showing 32 changed files with 4,076 additions and 3,629 deletions.
31 changes: 31 additions & 0 deletions sdk/loganalytics/azure-mgmt-loganalytics/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,36 @@
# Release History

## 9.0.0 (2021-04-06)

**Features**

- Model WorkspacePatch has a new parameter created_date
- Model WorkspacePatch has a new parameter features
- Model WorkspacePatch has a new parameter modified_date
- Model WorkspacePatch has a new parameter force_cmk_for_query
- Model Cluster has a new parameter last_modified_date
- Model Cluster has a new parameter billing_type
- Model Cluster has a new parameter is_double_encryption_enabled
- Model Cluster has a new parameter is_availability_zones_enabled
- Model Cluster has a new parameter created_date
- Model Cluster has a new parameter capacity_reservation_properties
- Model Cluster has a new parameter associated_workspaces
- Model Table has a new parameter is_troubleshooting_allowed
- Model Table has a new parameter last_troubleshoot_date
- Model Table has a new parameter is_troubleshoot_enabled
- Model Identity has a new parameter user_assigned_identities
- Model ClusterPatch has a new parameter identity
- Model KeyVaultProperties has a new parameter key_rsa_size
- Model Workspace has a new parameter created_date
- Model Workspace has a new parameter features
- Model Workspace has a new parameter modified_date
- Model Workspace has a new parameter force_cmk_for_query

**Breaking changes**

- Model Cluster no longer has parameter next_link
- Model ErrorResponse has a new signature

## 8.0.0 (2020-12-25)

**Breaking changes**
Expand Down
1 change: 1 addition & 0 deletions sdk/loganalytics/azure-mgmt-loganalytics/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
include _meta.json
recursive-include tests *.py *.yaml
include *.md
include azure/__init__.py
Expand Down
8 changes: 8 additions & 0 deletions sdk/loganalytics/azure-mgmt-loganalytics/_meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"autorest": "3.0.6369",
"use": "@autorest/[email protected]",
"commit": "f5dce125fdad97160346fe3ac32d7d0a49bb11e4",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/operationalinsights/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/[email protected] --version=3.0.6369",
"readme": "specification/operationalinsights/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ def __init__(

self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2020-08-01"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-loganalytics/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,20 @@
from .operations import LinkedServicesOperations
from .operations import LinkedStorageAccountsOperations
from .operations import ManagementGroupsOperations
from .operations import Operations
from .operations import OperationStatusesOperations
from .operations import SharedKeysOperations
from .operations import UsagesOperations
from .operations import WorkspacesOperations
from .operations import DeletedWorkspacesOperations
from .operations import ClustersOperations
from .operations import StorageInsightConfigsOperations
from .operations import SavedSearchesOperations
from .operations import AvailableServiceTiersOperations
from .operations import GatewaysOperations
from .operations import SchemaOperations
from .operations import WorkspacePurgeOperations
from .operations import ClustersOperations
from .operations import Operations
from .operations import TablesOperations
from .operations import WorkspacesOperations
from .operations import DeletedWorkspacesOperations
from . import models


Expand All @@ -56,20 +56,12 @@ class LogAnalyticsManagementClient(object):
:vartype linked_storage_accounts: azure.mgmt.loganalytics.operations.LinkedStorageAccountsOperations
:ivar management_groups: ManagementGroupsOperations operations
:vartype management_groups: azure.mgmt.loganalytics.operations.ManagementGroupsOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.loganalytics.operations.Operations
:ivar operation_statuses: OperationStatusesOperations operations
:vartype operation_statuses: azure.mgmt.loganalytics.operations.OperationStatusesOperations
:ivar shared_keys: SharedKeysOperations operations
:vartype shared_keys: azure.mgmt.loganalytics.operations.SharedKeysOperations
:ivar usages: UsagesOperations operations
:vartype usages: azure.mgmt.loganalytics.operations.UsagesOperations
:ivar workspaces: WorkspacesOperations operations
:vartype workspaces: azure.mgmt.loganalytics.operations.WorkspacesOperations
:ivar deleted_workspaces: DeletedWorkspacesOperations operations
:vartype deleted_workspaces: azure.mgmt.loganalytics.operations.DeletedWorkspacesOperations
:ivar clusters: ClustersOperations operations
:vartype clusters: azure.mgmt.loganalytics.operations.ClustersOperations
:ivar storage_insight_configs: StorageInsightConfigsOperations operations
:vartype storage_insight_configs: azure.mgmt.loganalytics.operations.StorageInsightConfigsOperations
:ivar saved_searches: SavedSearchesOperations operations
Expand All @@ -82,8 +74,16 @@ class LogAnalyticsManagementClient(object):
:vartype schema: azure.mgmt.loganalytics.operations.SchemaOperations
:ivar workspace_purge: WorkspacePurgeOperations operations
:vartype workspace_purge: azure.mgmt.loganalytics.operations.WorkspacePurgeOperations
:ivar clusters: ClustersOperations operations
:vartype clusters: azure.mgmt.loganalytics.operations.ClustersOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.loganalytics.operations.Operations
:ivar tables: TablesOperations operations
:vartype tables: azure.mgmt.loganalytics.operations.TablesOperations
:ivar workspaces: WorkspacesOperations operations
:vartype workspaces: azure.mgmt.loganalytics.operations.WorkspacesOperations
:ivar deleted_workspaces: DeletedWorkspacesOperations operations
:vartype deleted_workspaces: azure.mgmt.loganalytics.operations.DeletedWorkspacesOperations
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription.
Expand Down Expand Up @@ -122,20 +122,12 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize)
self.management_groups = ManagementGroupsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.operations = Operations(
self._client, self._config, self._serialize, self._deserialize)
self.operation_statuses = OperationStatusesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.shared_keys = SharedKeysOperations(
self._client, self._config, self._serialize, self._deserialize)
self.usages = UsagesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.workspaces = WorkspacesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.deleted_workspaces = DeletedWorkspacesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.clusters = ClustersOperations(
self._client, self._config, self._serialize, self._deserialize)
self.storage_insight_configs = StorageInsightConfigsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.saved_searches = SavedSearchesOperations(
Expand All @@ -148,8 +140,16 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize)
self.workspace_purge = WorkspacePurgeOperations(
self._client, self._config, self._serialize, self._deserialize)
self.clusters = ClustersOperations(
self._client, self._config, self._serialize, self._deserialize)
self.operations = Operations(
self._client, self._config, self._serialize, self._deserialize)
self.tables = TablesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.workspaces = WorkspacesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.deleted_workspaces = DeletedWorkspacesOperations(
self._client, self._config, self._serialize, self._deserialize)

def close(self):
# type: () -> None
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
{
"chosen_version": "",
"total_api_version_list": ["2020-08-01", "2020-10-01"],
"client": {
"name": "LogAnalyticsManagementClient",
"filename": "_log_analytics_management_client",
"description": "Operational Insights Client.",
"base_url": "\u0027https://management.azure.com\u0027",
"custom_base_url": null,
"azure_arm": true,
"has_lro_operations": true,
"client_side_validation": false,
"sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"LogAnalyticsManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}",
"async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"LogAnalyticsManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}"
},
"global_parameters": {
"sync": {
"credential": {
"signature": "credential, # type: \"TokenCredential\"",
"description": "Credential needed for the client to connect to Azure.",
"docstring_type": "~azure.core.credentials.TokenCredential",
"required": true
},
"subscription_id": {
"signature": "subscription_id, # type: str",
"description": "The ID of the target subscription.",
"docstring_type": "str",
"required": true
}
},
"async": {
"credential": {
"signature": "credential: \"AsyncTokenCredential\",",
"description": "Credential needed for the client to connect to Azure.",
"docstring_type": "~azure.core.credentials_async.AsyncTokenCredential",
"required": true
},
"subscription_id": {
"signature": "subscription_id: str,",
"description": "The ID of the target subscription.",
"docstring_type": "str",
"required": true
}
},
"constant": {
},
"call": "credential, subscription_id",
"service_client_specific": {
"sync": {
"api_version": {
"signature": "api_version=None, # type: Optional[str]",
"description": "API version to use if no profile is provided, or if missing in profile.",
"docstring_type": "str",
"required": false
},
"base_url": {
"signature": "base_url=None, # type: Optional[str]",
"description": "Service URL",
"docstring_type": "str",
"required": false
},
"profile": {
"signature": "profile=KnownProfiles.default, # type: KnownProfiles",
"description": "A profile definition, from KnownProfiles to dict.",
"docstring_type": "azure.profiles.KnownProfiles",
"required": false
}
},
"async": {
"api_version": {
"signature": "api_version: Optional[str] = None,",
"description": "API version to use if no profile is provided, or if missing in profile.",
"docstring_type": "str",
"required": false
},
"base_url": {
"signature": "base_url: Optional[str] = None,",
"description": "Service URL",
"docstring_type": "str",
"required": false
},
"profile": {
"signature": "profile: KnownProfiles = KnownProfiles.default,",
"description": "A profile definition, from KnownProfiles to dict.",
"docstring_type": "azure.profiles.KnownProfiles",
"required": false
}
}
}
},
"config": {
"credential": true,
"credential_scopes": ["https://management.azure.com/.default"],
"credential_default_policy_type": "BearerTokenCredentialPolicy",
"credential_default_policy_type_has_async_version": true,
"credential_key_header_name": null,
"sync_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\"]}, \"local\": {\"._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}}",
"async_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\"]}, \"local\": {\".._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}}"
},
"operation_groups": {
"data_exports": "DataExportsOperations",
"data_sources": "DataSourcesOperations",
"intelligence_packs": "IntelligencePacksOperations",
"linked_services": "LinkedServicesOperations",
"linked_storage_accounts": "LinkedStorageAccountsOperations",
"management_groups": "ManagementGroupsOperations",
"operation_statuses": "OperationStatusesOperations",
"shared_keys": "SharedKeysOperations",
"usages": "UsagesOperations",
"storage_insight_configs": "StorageInsightConfigsOperations",
"saved_searches": "SavedSearchesOperations",
"available_service_tiers": "AvailableServiceTiersOperations",
"gateways": "GatewaysOperations",
"schema": "SchemaOperations",
"workspace_purge": "WorkspacePurgeOperations",
"clusters": "ClustersOperations",
"operations": "Operations",
"tables": "TablesOperations",
"workspaces": "WorkspacesOperations",
"deleted_workspaces": "DeletedWorkspacesOperations"
},
"operation_mixins": {
"sync_imports": "None",
"async_imports": "None",
"operations": {
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "8.0.0"
VERSION = "9.0.0"
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ def __init__(

self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2020-08-01"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-loganalytics/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Loading

0 comments on commit 0166a5f

Please sign in to comment.