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

[AutoPR track2_azure-mgmt-monitor] Update all variations of "MonitoringAccount" to "AzureMonitorWorkspaces" #2624

Closed
wants to merge 1 commit into from
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 4 additions & 4 deletions sdk/monitor/azure-mgmt-monitor/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "2567d84d323bc0a5a56c14d9454aa9dd95cd62ae",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.9.2",
"use": [
"@autorest/python@6.1.9",
"@autorest/python@6.2.16",
"@autorest/[email protected]"
],
"commit": "5263f0b2ead74031fa567da2700411743da26e7f",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/monitor/resource-manager/readme.md --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.9.2 --version-tolerant=False",
"autorest_command": "autorest specification/monitor/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.9.2 --version-tolerant=False",
"readme": "specification/monitor/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@ def __init__(
self,
credential: "TokenCredential",
subscription_id: str,
**kwargs # type: Any
**kwargs: Any
):
# type: (...) -> None
if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
if subscription_id is None:
Expand All @@ -53,9 +52,8 @@ def __init__(

def _configure(
self,
**kwargs # type: Any
**kwargs: Any
):
# type: (...) -> None
self.user_agent_policy = kwargs.get('user_agent_policy') or policies.UserAgentPolicy(**kwargs)
self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs)
self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ def __init__(
self,
credential: "TokenCredential",
subscription_id: str,
api_version=None, # type: Optional[str]
api_version: Optional[str]=None,
base_url: str = "https://management.azure.com",
profile=KnownProfiles.default, # type: KnownProfiles
**kwargs # type: Any
profile: KnownProfiles=KnownProfiles.default,
**kwargs: Any
):
self._config = MonitorManagementClientConfiguration(credential, subscription_id, **kwargs)
self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
Expand Down Expand Up @@ -145,6 +145,7 @@ def models(cls, api_version=DEFAULT_API_VERSION):
* 2021-09-01-preview: :mod:`v2022_02_01_preview.models<azure.mgmt.monitor.v2022_02_01_preview.models>`
* 2022-04-01: :mod:`v2022_04_01.models<azure.mgmt.monitor.v2022_04_01.models>`
* 2022-06-01: :mod:`v2022_06_01.models<azure.mgmt.monitor.v2022_06_01.models>`
* 2022-08-01-preview: :mod:`v2022_08_01_preview.models<azure.mgmt.monitor.v2022_08_01_preview.models>`
* 2022-10-01: :mod:`v2022_10_01.models<azure.mgmt.monitor.v2022_10_01.models>`
"""
if api_version == '2015-04-01':
Expand Down Expand Up @@ -228,6 +229,9 @@ def models(cls, api_version=DEFAULT_API_VERSION):
elif api_version == '2022-06-01':
from .v2022_06_01 import models
return models
elif api_version == '2022-08-01-preview':
from .v2022_08_01_preview import models
return models
elif api_version == '2022-10-01':
from .v2022_10_01 import models
return models
Expand Down Expand Up @@ -732,12 +736,15 @@ def scheduled_query_rules(self):

* 2018-04-16: :class:`ScheduledQueryRulesOperations<azure.mgmt.monitor.v2018_04_16.operations.ScheduledQueryRulesOperations>`
* 2020-05-01-preview: :class:`ScheduledQueryRulesOperations<azure.mgmt.monitor.v2020_05_01_preview.operations.ScheduledQueryRulesOperations>`
* 2022-08-01-preview: :class:`ScheduledQueryRulesOperations<azure.mgmt.monitor.v2022_08_01_preview.operations.ScheduledQueryRulesOperations>`
"""
api_version = self._get_api_version('scheduled_query_rules')
if api_version == '2018-04-16':
from .v2018_04_16.operations import ScheduledQueryRulesOperations as OperationClass
elif api_version == '2020-05-01-preview':
from .v2020_05_01_preview.operations import ScheduledQueryRulesOperations as OperationClass
elif api_version == '2022-08-01-preview':
from .v2022_08_01_preview.operations import ScheduledQueryRulesOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'scheduled_query_rules'".format(api_version))
self._config.api_version = api_version
Expand Down
Loading