diff --git a/sdk/elastic/azure-mgmt-elastic/CHANGELOG.md b/sdk/elastic/azure-mgmt-elastic/CHANGELOG.md index 9b2be9d55e11..7daa85cd1783 100644 --- a/sdk/elastic/azure-mgmt-elastic/CHANGELOG.md +++ b/sdk/elastic/azure-mgmt-elastic/CHANGELOG.md @@ -1,5 +1,11 @@ # Release History +## 3.1.0b1 (2026-09-08) + +### Features Added + + - Model `MonitorsOperations` added parameter `soft_delete` in method `begin_delete` + ## 3.0.0 (2026-07-29) ### Features Added diff --git a/sdk/elastic/azure-mgmt-elastic/_metadata.json b/sdk/elastic/azure-mgmt-elastic/_metadata.json index 39bd81255d91..0dc89862b2fb 100644 --- a/sdk/elastic/azure-mgmt-elastic/_metadata.json +++ b/sdk/elastic/azure-mgmt-elastic/_metadata.json @@ -1,11 +1,11 @@ { - "apiVersion": "2025-06-01", + "apiVersion": "2026-03-15-preview", "apiVersions": { - "Microsoft.Elastic": "2025-06-01" + "Microsoft.Elastic": "2026-03-15-preview" }, - "commit": "653bc50e3f2aa8b45ae202276a04976177dfe216", + "commit": "f398d14cf518231c3512b317db36c431794d1a83", "repository_url": "https://github.com/Azure/azure-rest-api-specs", "typespec_src": "specification/elastic/resource-manager/Microsoft.Elastic/Elastic", - "emitterVersion": "0.63.3", - "httpClientPythonVersion": "^0.34.2" + "emitterVersion": "0.63.6", + "httpClientPythonVersion": "^0.37.1" } \ No newline at end of file diff --git a/sdk/elastic/azure-mgmt-elastic/api.md b/sdk/elastic/azure-mgmt-elastic/api.md index c987aefc617c..d49284bf681e 100644 --- a/sdk/elastic/azure-mgmt-elastic/api.md +++ b/sdk/elastic/azure-mgmt-elastic/api.md @@ -555,10 +555,13 @@ namespace azure.mgmt.elastic.aio.operations ) -> AsyncLROPoller[ElasticMonitorResource]: ... @distributed_trace_async + @api_version_validation(params_added_on={'2026-03-15-preview': ['soft_delete']}, api_versions_list=['2025-06-01', '2026-03-15-preview']) async def begin_delete( self, resource_group_name: str, monitor_name: str, + *, + soft_delete: Optional[bool] = ..., **kwargs: Any ) -> AsyncLROPoller[None]: ... @@ -2505,10 +2508,13 @@ namespace azure.mgmt.elastic.operations ) -> LROPoller[ElasticMonitorResource]: ... @distributed_trace + @api_version_validation(params_added_on={'2026-03-15-preview': ['soft_delete']}, api_versions_list=['2025-06-01', '2026-03-15-preview']) def begin_delete( self, resource_group_name: str, monitor_name: str, + *, + soft_delete: Optional[bool] = ..., **kwargs: Any ) -> LROPoller[None]: ... @@ -2922,7 +2928,7 @@ namespace azure.mgmt.elastic.types business: str country: str domain: str - employees_number: str + employeesNumber: str state: str @@ -2934,12 +2940,12 @@ namespace azure.mgmt.elastic.types key "kibanaServiceUrl": str key "kibanaSsoUrl": str key "name": str - azure_subscription_id: str - deployment_id: str - elasticsearch_region: str - elasticsearch_service_url: str - kibana_service_url: str - kibana_sso_url: str + azureSubscriptionId: str + deploymentId: str + elasticsearchRegion: str + elasticsearchServiceUrl: str + kibanaServiceUrl: str + kibanaSsoUrl: str name: str @@ -2947,8 +2953,8 @@ namespace azure.mgmt.elastic.types key "elasticCloudSsoDefaultUrl": str key "emailAddress": str key "id": str - elastic_cloud_sso_default_url: str - email_address: str + elasticCloudSsoDefaultUrl: str + emailAddress: str id: str @@ -2969,7 +2975,7 @@ namespace azure.mgmt.elastic.types name: str properties: MonitorProperties sku: ResourceSku - system_data: SystemData + systemData: SystemData tags: dict[str, str] type: str @@ -2986,8 +2992,8 @@ namespace azure.mgmt.elastic.types class azure.mgmt.elastic.types.ElasticProperties(TypedDict, total=False): key "elasticCloudDeployment": ForwardRef('ElasticCloudDeployment', module='types') key "elasticCloudUser": ForwardRef('ElasticCloudUser', module='types') - elastic_cloud_deployment: ElasticCloudDeployment - elastic_cloud_user: ElasticCloudUser + elasticCloudDeployment: ElasticCloudDeployment + elasticCloudUser: ElasticCloudUser class azure.mgmt.elastic.types.ExternalUserInfo(TypedDict, total=False): @@ -2995,11 +3001,11 @@ namespace azure.mgmt.elastic.types key "fullName": str key "password": str key "userName": str - email_id: str - full_name: str + emailId: str + fullName: str password: str roles: list[str] - user_name: str + userName: str class azure.mgmt.elastic.types.FilteringTag(TypedDict, total=False): @@ -3015,8 +3021,8 @@ namespace azure.mgmt.elastic.types key "principalId": str key "tenantId": str key "type": Union[str, ManagedIdentityTypes] - principal_id: str - tenant_id: str + principalId: str + tenantId: str type: Union[str, ManagedIdentityTypes] @@ -3025,10 +3031,9 @@ namespace azure.mgmt.elastic.types key "sendActivityLogs": bool key "sendSubscriptionLogs": bool filteringTags: list[FilteringTag] - filtering_tags: list[FilteringTag] - send_aad_logs: bool - send_activity_logs: bool - send_subscription_logs: bool + sendAadLogs: bool + sendActivityLogs: bool + sendSubscriptionLogs: bool class azure.mgmt.elastic.types.MonitorProperties(TypedDict, total=False): @@ -3047,20 +3052,20 @@ namespace azure.mgmt.elastic.types key "subscriptionState": str key "userInfo": ForwardRef('UserInfo', module='types') key "version": str - elastic_properties: ElasticProperties - generate_api_key: bool - hosting_type: Union[str, HostingType] - liftr_resource_category: Union[str, LiftrResourceCategories] - liftr_resource_preference: int - monitoring_status: Union[str, MonitoringStatus] - plan_details: PlanDetails - project_details: ProjectDetails - provisioning_state: Union[str, ProvisioningState] - saa_s_azure_subscription_status: str - source_campaign_id: str - source_campaign_name: str - subscription_state: str - user_info: UserInfo + elasticProperties: ElasticProperties + generateApiKey: bool + hostingType: Union[str, HostingType] + liftrResourceCategory: Union[str, LiftrResourceCategories] + liftrResourcePreference: int + monitoringStatus: Union[str, MonitoringStatus] + planDetails: PlanDetails + projectDetails: ProjectDetails + provisioningState: Union[str, ProvisioningState] + saaSAzureSubscriptionStatus: str + sourceCampaignId: str + sourceCampaignName: str + subscriptionState: str + userInfo: UserInfo version: str @@ -3071,8 +3076,8 @@ namespace azure.mgmt.elastic.types key "tagRules": ForwardRef('MonitoringTagRulesProperties', module='types') error: str status: Union[str, Status] - subscription_id: str - tag_rules: MonitoringTagRulesProperties + subscriptionId: str + tagRules: MonitoringTagRulesProperties class azure.mgmt.elastic.types.MonitoredSubscriptionProperties(ProxyResource): @@ -3084,7 +3089,7 @@ namespace azure.mgmt.elastic.types id: str name: str properties: SubscriptionList - system_data: SystemData + systemData: SystemData type: str @@ -3097,15 +3102,15 @@ namespace azure.mgmt.elastic.types id: str name: str properties: MonitoringTagRulesProperties - system_data: SystemData + systemData: SystemData type: str class azure.mgmt.elastic.types.MonitoringTagRulesProperties(TypedDict, total=False): key "logRules": ForwardRef('LogRules', module='types') key "provisioningState": Union[str, ProvisioningState] - log_rules: LogRules - provisioning_state: Union[str, ProvisioningState] + logRules: LogRules + provisioningState: Union[str, ProvisioningState] class azure.mgmt.elastic.types.OpenAIIntegrationProperties(TypedDict, total=False): @@ -3115,10 +3120,10 @@ namespace azure.mgmt.elastic.types key "openAIResourceEndpoint": str key "openAIResourceId": str key: str - last_refresh_at: str - open_ai_connector_id: str - open_ai_resource_endpoint: str - open_ai_resource_id: str + lastRefreshAt: str + openAIConnectorId: str + openAIResourceEndpoint: str + openAIResourceId: str class azure.mgmt.elastic.types.OpenAIIntegrationRPModel(ProxyResource): @@ -3130,7 +3135,7 @@ namespace azure.mgmt.elastic.types id: str name: str properties: OpenAIIntegrationProperties - system_data: SystemData + systemData: SystemData type: str @@ -3140,18 +3145,18 @@ namespace azure.mgmt.elastic.types key "planName": str key "publisherID": str key "termID": str - offer_id: str - plan_id: str - plan_name: str - publisher_id: str - term_id: str + offerID: str + planID: str + planName: str + publisherID: str + termID: str class azure.mgmt.elastic.types.ProjectDetails(TypedDict, total=False): key "configurationType": Union[str, ConfigurationType] key "projectType": Union[str, ProjectType] - configuration_type: Union[str, ConfigurationType] - project_type: Union[str, ProjectType] + configurationType: Union[str, ConfigurationType] + projectType: Union[str, ProjectType] class azure.mgmt.elastic.types.ProxyResource(Resource): @@ -3161,7 +3166,7 @@ namespace azure.mgmt.elastic.types key "type": str id: str name: str - system_data: SystemData + systemData: SystemData type: str @@ -3172,7 +3177,7 @@ namespace azure.mgmt.elastic.types key "type": str id: str name: str - system_data: SystemData + systemData: SystemData type: str @@ -3187,10 +3192,10 @@ namespace azure.mgmt.elastic.types key "resourceGroup": str key "subscriptionId": str key "term": str - organization_id: str - plan_id: str - resource_group: str - subscription_id: str + organizationId: str + planId: str + resourceGroup: str + subscriptionId: str term: str @@ -3198,9 +3203,8 @@ namespace azure.mgmt.elastic.types key "operation": Union[str, Operation] key "provisioningState": Union[str, ProvisioningState] monitoredSubscriptionList: list[MonitoredSubscription] - monitored_subscription_list: list[MonitoredSubscription] operation: Union[str, Operation] - provisioning_state: Union[str, ProvisioningState] + provisioningState: Union[str, ProvisioningState] class azure.mgmt.elastic.types.SystemData(TypedDict, total=False): @@ -3210,12 +3214,12 @@ namespace azure.mgmt.elastic.types key "lastModifiedAt": str key "lastModifiedBy": str key "lastModifiedByType": Union[str, CreatedByType] - created_at: str - created_by: str - created_by_type: Union[str, CreatedByType] - last_modified_at: str - last_modified_by: str - last_modified_by_type: Union[str, CreatedByType] + createdAt: str + createdBy: str + createdByType: Union[str, CreatedByType] + lastModifiedAt: str + lastModifiedBy: str + lastModifiedByType: Union[str, CreatedByType] class azure.mgmt.elastic.types.TrackedResource(Resource): @@ -3227,14 +3231,14 @@ namespace azure.mgmt.elastic.types id: str location: str name: str - system_data: SystemData + systemData: SystemData tags: dict[str, str] type: str class azure.mgmt.elastic.types.UserEmailId(TypedDict, total=False): key "emailId": str - email_id: str + emailId: str class azure.mgmt.elastic.types.UserInfo(TypedDict, total=False): @@ -3243,18 +3247,18 @@ namespace azure.mgmt.elastic.types key "emailAddress": str key "firstName": str key "lastName": str - company_info: CompanyInfo - company_name: str - email_address: str - first_name: str - last_name: str + companyInfo: CompanyInfo + companyName: str + emailAddress: str + firstName: str + lastName: str class azure.mgmt.elastic.types.VMCollectionUpdate(TypedDict, total=False): key "operationName": Union[str, OperationName] key "vmResourceId": str - operation_name: Union[str, OperationName] - vm_resource_id: str + operationName: Union[str, OperationName] + vmResourceId: str ``` \ No newline at end of file diff --git a/sdk/elastic/azure-mgmt-elastic/api.metadata.yml b/sdk/elastic/azure-mgmt-elastic/api.metadata.yml index 746008e72254..69c03b845868 100644 --- a/sdk/elastic/azure-mgmt-elastic/api.metadata.yml +++ b/sdk/elastic/azure-mgmt-elastic/api.metadata.yml @@ -1,3 +1,4 @@ -apiMdSha256: 00fa34099047be9f66bf770f485cd58244faade47f5fa7e8bf0b24018b6bb018 -parserVersion: 0.3.30 -pythonVersion: 3.13.14 +apiMdSha256: e1dff0ae2bd4e5e242a2b37bab2473d1c69ef9304bd11e72a48fff8a231fc2c5 +packageVersion: 3.1.0b1 +parserVersion: 0.3.31 +pythonVersion: 3.13.15 diff --git a/sdk/elastic/azure-mgmt-elastic/apiview-properties.json b/sdk/elastic/azure-mgmt-elastic/apiview-properties.json index 1e5c32635d8f..02cfe4c871bc 100644 --- a/sdk/elastic/azure-mgmt-elastic/apiview-properties.json +++ b/sdk/elastic/azure-mgmt-elastic/apiview-properties.json @@ -163,5 +163,5 @@ "azure.mgmt.elastic.operations.ElasticVersionsOperations.list": "Microsoft.Elastic.ElasticVersionsOperationGroup.list", "azure.mgmt.elastic.aio.operations.ElasticVersionsOperations.list": "Microsoft.Elastic.ElasticVersionsOperationGroup.list" }, - "CrossLanguageVersion": "c06faa36fc65" + "CrossLanguageVersion": "97686653e869" } \ No newline at end of file diff --git a/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/_client.py b/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/_client.py index 534f5a75fc6a..bd59f3fc953f 100644 --- a/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/_client.py +++ b/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/_client.py @@ -57,7 +57,7 @@ from azure.core.credentials import TokenCredential -class ElasticMgmtClient: # pylint: disable=too-many-instance-attributes +class ElasticMgmtClient: # pylint: disable=too-many-instance-attributes,docstring-keyword-should-match-keyword-only """ElasticMgmtClient. :ivar operations: Operations operations @@ -126,9 +126,10 @@ class ElasticMgmtClient: # pylint: disable=too-many-instance-attributes :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :paramtype cloud_setting: ~azure.core.AzureClouds - :keyword api_version: The API version to use for this operation. Known values are "2025-06-01" - and None. Default value is None. If not set, the operation's default API version will be used. - Note that overriding this default value may result in unsupported behavior. + :keyword api_version: The API version to use for this operation. Known values are + "2026-03-15-preview" and None. Default value is None. If not set, the operation's default API + version will be used. Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. diff --git a/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/_configuration.py b/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/_configuration.py index 2b52c10bee1f..a5678fbac480 100644 --- a/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/_configuration.py +++ b/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/_configuration.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -18,7 +19,7 @@ from azure.core.credentials import TokenCredential -class ElasticMgmtClientConfiguration: # pylint: disable=too-many-instance-attributes +class ElasticMgmtClientConfiguration: # pylint: disable=too-many-instance-attributes,docstring-keyword-should-match-keyword-only """Configuration for ElasticMgmtClient. Note that all parameters used to create this instance are saved as instance @@ -33,9 +34,10 @@ class ElasticMgmtClientConfiguration: # pylint: disable=too-many-instance-attri :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :type cloud_setting: ~azure.core.AzureClouds - :keyword api_version: The API version to use for this operation. Known values are "2025-06-01" - and None. Default value is None. If not set, the operation's default API version will be used. - Note that overriding this default value may result in unsupported behavior. + :keyword api_version: The API version to use for this operation. Known values are + "2026-03-15-preview" and None. Default value is None. If not set, the operation's default API + version will be used. Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ @@ -47,7 +49,7 @@ def __init__( cloud_setting: Optional["AzureClouds"] = None, **kwargs: Any ) -> None: - api_version: str = kwargs.pop("api_version", "2025-06-01") + api_version: str = kwargs.pop("api_version", "2026-03-15-preview") if credential is None: raise ValueError("Parameter 'credential' must not be None.") diff --git a/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/_patch.py b/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/_patch.py index 87676c65a8f0..ea765788358a 100644 --- a/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/_patch.py +++ b/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/_patch.py @@ -8,7 +8,6 @@ Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize """ - __all__: list[str] = [] # Add all objects you want publicly available to users at this package level diff --git a/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/_utils/model_base.py b/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/_utils/model_base.py index 0f2c5bdfe70f..35d5fc024978 100644 --- a/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/_utils/model_base.py +++ b/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/_utils/model_base.py @@ -158,7 +158,15 @@ def _is_readonly(p): class SdkJSONEncoder(JSONEncoder): - """A JSON encoder that's capable of serializing datetime objects and bytes.""" + """A JSON encoder that's capable of serializing datetime objects and bytes. + + :param args: Additional positional arguments passed to the base ``JSONEncoder``. + :type args: typing.Any + :keyword exclude_readonly: Whether to exclude readonly properties. Defaults to False. + :paramtype exclude_readonly: bool + :keyword format: The format to use for serialization. Defaults to None. + :paramtype format: typing.Optional[str] + """ def __init__(self, *args, exclude_readonly: bool = False, format: typing.Optional[str] = None, **kwargs): super().__init__(*args, **kwargs) @@ -342,6 +350,12 @@ def _deserialize_int_as_str(attr): return int(attr) +def _deserialize_bool_as_str(attr): + if isinstance(attr, bool): + return attr + return attr.lower() == "true" + + _DESERIALIZE_MAPPING = { datetime: _deserialize_datetime, date: _deserialize_date, @@ -369,6 +383,8 @@ def _deserialize_int_as_str(attr): def get_deserializer(annotation: typing.Any, rf: typing.Optional["_RestField"] = None): if annotation is int and rf and rf._format == "str": return _deserialize_int_as_str + if annotation is bool and rf and rf._format == "str": + return _deserialize_bool_as_str if annotation is str and rf and rf._format in _ARRAY_ENCODE_MAPPING: return functools.partial(_deserialize_array_encoded, _ARRAY_ENCODE_MAPPING[rf._format]) if rf and rf._format: diff --git a/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/_utils/serialization.py b/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/_utils/serialization.py index 75906e2eb77f..ae08f9d89f74 100644 --- a/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/_utils/serialization.py +++ b/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/_utils/serialization.py @@ -480,7 +480,11 @@ def _decode_attribute_map_key(key): class Serializer: # pylint: disable=too-many-public-methods - """Request object model serializer.""" + """Request object model serializer. + + :param classes: Mapping of model names to model types, used to resolve models during serialization. + :type classes: typing.Optional[typing.Mapping[str, type]] + """ basic_types = {str: "str", int: "int", bool: "bool", float: "float"} diff --git a/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/_validation.py b/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/_validation.py new file mode 100644 index 000000000000..f5af3a4eb8a2 --- /dev/null +++ b/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/_validation.py @@ -0,0 +1,66 @@ +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +import functools + + +def api_version_validation(**kwargs): + params_added_on = kwargs.pop("params_added_on", {}) + method_added_on = kwargs.pop("method_added_on", "") + api_versions_list = kwargs.pop("api_versions_list", []) + + def _index_with_default(value: str, default: int = -1) -> int: + """Get the index of value in lst, or return default if not found. + + :param value: The value to search for in the api_versions_list. + :type value: str + :param default: The default value to return if the value is not found. + :type default: int + :return: The index of the value in the list, or the default value if not found. + :rtype: int + """ + try: + return api_versions_list.index(value) + except ValueError: + return default + + def decorator(func): + @functools.wraps(func) + def wrapper(*args, **kwargs): + try: + # this assumes the client has an _api_version attribute + client = args[0] + client_api_version = client._config.api_version # pylint: disable=protected-access + except AttributeError: + return func(*args, **kwargs) + + if _index_with_default(method_added_on) > _index_with_default(client_api_version): + raise ValueError( + f"'{func.__name__}' is not available in API version " + f"{client_api_version}. Pass service API version {method_added_on} or newer to your client." + ) + + unsupported = { + parameter: api_version + for api_version, parameters in params_added_on.items() + for parameter in parameters + if parameter in kwargs and _index_with_default(api_version) > _index_with_default(client_api_version) + } + if unsupported: + raise ValueError( + "".join( + [ + f"'{param}' is not available in API version {client_api_version}. " + f"Use service API version {version} or newer.\n" + for param, version in unsupported.items() + ] + ) + ) + return func(*args, **kwargs) + + return wrapper + + return decorator diff --git a/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/_version.py b/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/_version.py index 7b1116c95ad7..1e0a77b6acff 100644 --- a/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/_version.py +++ b/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "3.0.0" +VERSION = "3.1.0b1" diff --git a/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/aio/_client.py b/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/aio/_client.py index e084f121c59a..ddadfb347a78 100644 --- a/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/aio/_client.py +++ b/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/aio/_client.py @@ -57,7 +57,7 @@ from azure.core.credentials_async import AsyncTokenCredential -class ElasticMgmtClient: # pylint: disable=too-many-instance-attributes +class ElasticMgmtClient: # pylint: disable=too-many-instance-attributes,docstring-keyword-should-match-keyword-only """ElasticMgmtClient. :ivar operations: Operations operations @@ -126,9 +126,10 @@ class ElasticMgmtClient: # pylint: disable=too-many-instance-attributes :keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :paramtype cloud_setting: ~azure.core.AzureClouds - :keyword api_version: The API version to use for this operation. Known values are "2025-06-01" - and None. Default value is None. If not set, the operation's default API version will be used. - Note that overriding this default value may result in unsupported behavior. + :keyword api_version: The API version to use for this operation. Known values are + "2026-03-15-preview" and None. Default value is None. If not set, the operation's default API + version will be used. Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. diff --git a/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/aio/_configuration.py b/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/aio/_configuration.py index 8ef55f4f8abc..d190d629c794 100644 --- a/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/aio/_configuration.py +++ b/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/aio/_configuration.py @@ -1,3 +1,4 @@ +# pylint: disable=line-too-long,useless-suppression # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -18,7 +19,7 @@ from azure.core.credentials_async import AsyncTokenCredential -class ElasticMgmtClientConfiguration: # pylint: disable=too-many-instance-attributes +class ElasticMgmtClientConfiguration: # pylint: disable=too-many-instance-attributes,docstring-keyword-should-match-keyword-only """Configuration for ElasticMgmtClient. Note that all parameters used to create this instance are saved as instance @@ -33,9 +34,10 @@ class ElasticMgmtClientConfiguration: # pylint: disable=too-many-instance-attri :param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is None. :type cloud_setting: ~azure.core.AzureClouds - :keyword api_version: The API version to use for this operation. Known values are "2025-06-01" - and None. Default value is None. If not set, the operation's default API version will be used. - Note that overriding this default value may result in unsupported behavior. + :keyword api_version: The API version to use for this operation. Known values are + "2026-03-15-preview" and None. Default value is None. If not set, the operation's default API + version will be used. Note that overriding this default value may result in unsupported + behavior. :paramtype api_version: str """ @@ -47,7 +49,7 @@ def __init__( cloud_setting: Optional["AzureClouds"] = None, **kwargs: Any ) -> None: - api_version: str = kwargs.pop("api_version", "2025-06-01") + api_version: str = kwargs.pop("api_version", "2026-03-15-preview") if credential is None: raise ValueError("Parameter 'credential' must not be None.") diff --git a/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/aio/_patch.py b/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/aio/_patch.py index 87676c65a8f0..ea765788358a 100644 --- a/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/aio/_patch.py +++ b/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/aio/_patch.py @@ -8,7 +8,6 @@ Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize """ - __all__: list[str] = [] # Add all objects you want publicly available to users at this package level diff --git a/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/aio/operations/_operations.py b/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/aio/operations/_operations.py index ae7f65b42599..e9862711f7f8 100644 --- a/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/aio/operations/_operations.py +++ b/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/aio/operations/_operations.py @@ -36,6 +36,7 @@ from ... import models as _models, types as _types from ..._utils.model_base import SdkJSONEncoder, _deserialize, _failsafe_deserialize from ..._utils.serialization import Deserializer, Serializer +from ..._validation import api_version_validation from ...operations._operations import ( build_all_traffic_filters_list_request, build_associate_traffic_filter_associate_request, @@ -88,7 +89,7 @@ List = list -class Operations: +class Operations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -198,7 +199,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class MonitoredSubscriptionsOperations: +class MonitoredSubscriptionsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -1056,7 +1057,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class TagRulesOperations: +class TagRulesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -1569,7 +1570,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class MonitorsOperations: +class MonitorsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -2154,7 +2155,13 @@ def get_long_running_output(pipeline_response): self._client, raw_result, get_long_running_output, polling_method # type: ignore ) - async def _delete_initial(self, resource_group_name: str, monitor_name: str, **kwargs: Any) -> AsyncIterator[bytes]: + @api_version_validation( + params_added_on={"2026-03-15-preview": ["soft_delete"]}, + api_versions_list=["2025-06-01", "2026-03-15-preview"], + ) + async def _delete_initial( + self, resource_group_name: str, monitor_name: str, *, soft_delete: Optional[bool] = None, **kwargs: Any + ) -> AsyncIterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -2172,6 +2179,7 @@ async def _delete_initial(self, resource_group_name: str, monitor_name: str, **k resource_group_name=resource_group_name, monitor_name=monitor_name, subscription_id=self._config.subscription_id, + soft_delete=soft_delete, api_version=self._config.api_version, headers=_headers, params=_params, @@ -2214,7 +2222,13 @@ async def _delete_initial(self, resource_group_name: str, monitor_name: str, **k return deserialized # type: ignore @distributed_trace_async - async def begin_delete(self, resource_group_name: str, monitor_name: str, **kwargs: Any) -> AsyncLROPoller[None]: + @api_version_validation( + params_added_on={"2026-03-15-preview": ["soft_delete"]}, + api_versions_list=["2025-06-01", "2026-03-15-preview"], + ) + async def begin_delete( + self, resource_group_name: str, monitor_name: str, *, soft_delete: Optional[bool] = None, **kwargs: Any + ) -> AsyncLROPoller[None]: """Delete an existing Elastic monitor resource from your Azure subscription, removing its observability and monitoring capabilities. @@ -2223,6 +2237,11 @@ async def begin_delete(self, resource_group_name: str, monitor_name: str, **kwar :type resource_group_name: str :param monitor_name: Monitor resource name. Required. :type monitor_name: str + :keyword soft_delete: Indicates whether to perform a soft delete. When set to true, the Azure + resource (Liftr integration) only is deleted and not the Partner Cloud resource. When set to + false (default), the resource is permanently deleted from both Azure and the Partner Cloud. + Default value is None. + :paramtype soft_delete: bool :return: An instance of AsyncLROPoller that returns None :rtype: ~azure.core.polling.AsyncLROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -2238,6 +2257,7 @@ async def begin_delete(self, resource_group_name: str, monitor_name: str, **kwar raw_result = await self._delete_initial( resource_group_name=resource_group_name, monitor_name=monitor_name, + soft_delete=soft_delete, cls=lambda x, y, z: x, headers=_headers, params=_params, @@ -2468,7 +2488,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class MonitoredResourcesOperations: +class MonitoredResourcesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -2589,7 +2609,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class DeploymentInfoOperations: +class DeploymentInfoOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -2678,7 +2698,7 @@ async def list(self, resource_group_name: str, monitor_name: str, **kwargs: Any) return deserialized # type: ignore -class ExternalUserOperations: +class ExternalUserOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -2879,7 +2899,7 @@ async def create_or_update( return deserialized # type: ignore -class BillingInfoOperations: +class BillingInfoOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -2968,7 +2988,7 @@ async def get(self, resource_group_name: str, monitor_name: str, **kwargs: Any) return deserialized # type: ignore -class ConnectedPartnerResourcesOperations: +class ConnectedPartnerResourcesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -3090,7 +3110,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class VMHostOperations: +class VMHostOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -3209,7 +3229,7 @@ async def get_next(next_link=None): return AsyncItemPaged(get_next, extract_data) -class VMIngestionOperations: +class VMIngestionOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -3301,7 +3321,7 @@ async def details( return deserialized # type: ignore -class VMCollectionOperations: +class VMCollectionOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -3485,7 +3505,7 @@ async def update( return cls(pipeline_response, None, {}) # type: ignore -class UpgradableVersionsOperations: +class UpgradableVersionsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -3576,7 +3596,7 @@ async def details( return deserialized # type: ignore -class MonitorOperations: +class MonitorOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -3828,7 +3848,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class AllTrafficFiltersOperations: +class AllTrafficFiltersOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -3920,7 +3940,7 @@ async def list( return deserialized # type: ignore -class ListAssociatedTrafficFiltersOperations: +class ListAssociatedTrafficFiltersOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -4012,7 +4032,7 @@ async def list( return deserialized # type: ignore -class CreateAndAssociateIPFilterOperations: +class CreateAndAssociateIPFilterOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -4171,7 +4191,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class CreateAndAssociatePLFilterOperations: +class CreateAndAssociatePLFilterOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -4336,7 +4356,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class AssociateTrafficFilterOperations: +class AssociateTrafficFilterOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -4478,7 +4498,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class DetachAndDeleteTrafficFilterOperations: +class DetachAndDeleteTrafficFilterOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -4559,7 +4579,7 @@ async def delete( return cls(pipeline_response, None, {}) # type: ignore -class DetachTrafficFilterOperations: +class DetachTrafficFilterOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -4701,7 +4721,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class TrafficFiltersOperations: +class TrafficFiltersOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -4782,7 +4802,7 @@ async def delete( return cls(pipeline_response, None, {}) # type: ignore -class OrganizationsOperations: +class OrganizationsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -5261,7 +5281,7 @@ async def get_elastic_to_azure_subscription_mapping( # pylint: disable=name-too return deserialized # type: ignore -class OpenAIOperations: +class OpenAIOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -5793,7 +5813,7 @@ async def get_status( return deserialized # type: ignore -class ElasticVersionsOperations: +class ElasticVersionsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. diff --git a/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/aio/operations/_patch.py b/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/aio/operations/_patch.py index 87676c65a8f0..ea765788358a 100644 --- a/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/aio/operations/_patch.py +++ b/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/aio/operations/_patch.py @@ -8,7 +8,6 @@ Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize """ - __all__: list[str] = [] # Add all objects you want publicly available to users at this package level diff --git a/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/models/_models.py b/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/models/_models.py index 75cef846610e..613af7932719 100644 --- a/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/models/_models.py +++ b/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/models/_models.py @@ -17,7 +17,7 @@ from .. import models as _models -class BillingInfoResponse(_Model): +class BillingInfoResponse(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Marketplace Subscription and Organization details to which resource gets billed into. :ivar marketplace_saas_info: Marketplace Subscription details. @@ -54,7 +54,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class CompanyInfo(_Model): +class CompanyInfo(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Company information of the user to be passed to partners. :ivar domain: Domain of the company. @@ -104,7 +104,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ConnectedPartnerResourceProperties(_Model): +class ConnectedPartnerResourceProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Connected Partner Resource Properties. :ivar partner_deployment_name: Elastic resource name. @@ -158,7 +158,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ConnectedPartnerResourcesListFormat(_Model): +class ConnectedPartnerResourcesListFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Connected Partner Resources List Format. :ivar properties: Connected Partner Resource Properties. @@ -318,7 +318,7 @@ class Resource(_Model): """Azure Resource Manager metadata containing createdBy and modifiedBy information.""" -class TrackedResource(Resource): +class TrackedResource(Resource): # pylint: disable=docstring-keyword-should-match-keyword-only """Tracked Resource. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -362,7 +362,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ElasticMonitorResource(TrackedResource): +class ElasticMonitorResource(TrackedResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Monitor resource. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -426,7 +426,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ElasticMonitorResourceUpdateParameters(_Model): +class ElasticMonitorResourceUpdateParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Monitor resource update parameters. :ivar tags: elastic monitor resource tags. @@ -454,7 +454,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ElasticMonitorUpgrade(_Model): +class ElasticMonitorUpgrade(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Upgrade elastic monitor version. :ivar version: Version to which the elastic monitor should be upgraded to. @@ -482,7 +482,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ElasticOrganizationToAzureSubscriptionMappingResponse(_Model): # pylint: disable=name-too-long +class ElasticOrganizationToAzureSubscriptionMappingResponse( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """The Azure Subscription ID to which the Organization of the logged in user belongs and gets billed into. @@ -516,7 +518,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ElasticOrganizationToAzureSubscriptionMappingResponseProperties(_Model): # pylint: disable=name-too-long +class ElasticOrganizationToAzureSubscriptionMappingResponseProperties( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """The properties of Azure Subscription ID to which the Organization of the logged in user belongs and gets billed into. @@ -569,7 +573,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ElasticProperties(_Model): +class ElasticProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Elastic Resource Properties. :ivar elastic_cloud_user: Details of the user's elastic account. @@ -606,7 +610,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ElasticTrafficFilter(_Model): +class ElasticTrafficFilter(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Elastic traffic filter object. :ivar id: Id of the elastic filter. @@ -668,7 +672,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ElasticTrafficFilterResponse(_Model): +class ElasticTrafficFilterResponse(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """List of elastic traffic filters in the account. :ivar rulesets: List of elastic traffic filters in the account. @@ -698,7 +702,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ElasticTrafficFilterRule(_Model): +class ElasticTrafficFilterRule(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Elastic traffic filter rule object. :ivar source: IP of the elastic filter rule. @@ -750,7 +754,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ElasticVersionListFormat(_Model): +class ElasticVersionListFormat(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Elastic Version List Format. :ivar properties: Elastic Version Properties. @@ -780,7 +784,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ElasticVersionListProperties(_Model): +class ElasticVersionListProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Elastic Version Properties. :ivar version: Available elastic version of the given region. @@ -852,7 +856,7 @@ class ErrorDetail(_Model): """The error additional info.""" -class ErrorResponse(_Model): +class ErrorResponse(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Error response. :ivar error: The error object. @@ -880,7 +884,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ErrorResponseBody(_Model): +class ErrorResponseBody(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Error response body. :ivar code: Error code. @@ -936,7 +940,7 @@ class ExternalUserCreationResponse(_Model): """Shows if user is created or updated.""" -class ExternalUserInfo(_Model): +class ExternalUserInfo(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The properties of the request required for creating user on elastic side. :ivar user_name: Username of the user to be created or updated. @@ -984,7 +988,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class FilteringTag(_Model): +class FilteringTag(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The definition of a filtering tag. Filtering tags are used for capturing resources and include/exclude them from being monitored. @@ -1025,7 +1029,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class IdentityProperties(_Model): +class IdentityProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Identity properties. :ivar principal_id: The identity ID. @@ -1063,7 +1067,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class LogRules(_Model): +class LogRules(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Set of rules for sending logs for the Monitor resource. :ivar send_aad_logs: Flag specifying if AAD logs should be sent for the Monitor resource. @@ -1122,7 +1126,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class MarketplaceSaaSInfo(_Model): +class MarketplaceSaaSInfo(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Marketplace SAAS Info of the resource. :ivar marketplace_subscription: Marketplace Subscription. @@ -1187,7 +1191,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class MarketplaceSaaSInfoMarketplaceSubscription(_Model): # pylint: disable=name-too-long +class MarketplaceSaaSInfoMarketplaceSubscription( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Marketplace Subscription. :ivar id: Marketplace Subscription Id. This is a GUID-formatted string. @@ -1227,7 +1233,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class MonitoredResource(_Model): +class MonitoredResource(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The properties of a resource currently being monitored by the Elastic monitor resource. :ivar id: The ARM id of the resource. @@ -1272,7 +1278,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class MonitoredSubscription(_Model): +class MonitoredSubscription(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The list of subscriptions and it's monitoring status by current Elastic monitor. :ivar subscription_id: The subscriptionId to be monitored. Required. @@ -1338,7 +1344,7 @@ class ProxyResource(Resource): """ -class MonitoredSubscriptionProperties(ProxyResource): +class MonitoredSubscriptionProperties(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """The request to update subscriptions needed to be monitored by the Elastic monitor resource. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -1380,7 +1386,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class MonitoringTagRules(ProxyResource): +class MonitoringTagRules(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Capture logs and metrics of Azure resources based on ARM tags. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -1421,7 +1427,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class MonitoringTagRulesProperties(_Model): +class MonitoringTagRulesProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Definition of the properties for a TagRules resource. :ivar provisioning_state: Provisioning state of the monitoring tag rules. Known values are: @@ -1461,7 +1467,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class MonitorProperties(_Model): +class MonitorProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Properties specific to the monitor resource. :ivar provisioning_state: Provisioning state of the monitor resource. Known values are: @@ -1590,7 +1596,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class OpenAIIntegrationProperties(_Model): +class OpenAIIntegrationProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Open AI Integration details. :ivar open_ai_resource_id: The resource name of Open AI resource. @@ -1645,7 +1651,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class OpenAIIntegrationRPModel(ProxyResource): +class OpenAIIntegrationRPModel(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Capture properties of Open AI resource Integration. :ivar id: Fully qualified resource ID for the resource. Ex - @@ -1686,7 +1692,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class OpenAIIntegrationStatusResponse(_Model): +class OpenAIIntegrationStatusResponse(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Status of the OpenAI Integration. :ivar properties: Status of the OpenAI Integration. @@ -1716,7 +1722,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class OpenAIIntegrationStatusResponseProperties(_Model): # pylint: disable=name-too-long +class OpenAIIntegrationStatusResponseProperties( + _Model +): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only """Status of the OpenAI Integration. :ivar status: Status of the OpenAI Integration. @@ -1744,7 +1752,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class OperationDisplay(_Model): +class OperationDisplay(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Represents the display information for an operation. :ivar provider: The service provider of the operation. @@ -1787,7 +1795,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class OperationResult(_Model): +class OperationResult(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """A Microsoft.Elastic REST API operation. :ivar name: Operation name, i.e., {provider}/{resource}/{operation}. @@ -1834,7 +1842,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PartnerBillingEntity(_Model): +class PartnerBillingEntity(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Partner Billing details associated with the resource. :ivar id: The Elastic Organization Id. @@ -1874,7 +1882,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class PlanDetails(_Model): +class PlanDetails(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Plan details of the monitor resource. :ivar offer_id: Offer ID of the plan. @@ -1924,7 +1932,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ProjectDetails(_Model): +class ProjectDetails(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Project details of the monitor resource IF it belongs to Serverless offer kind. :ivar project_type: Project type; ex: Elasticsearch / Observability / Security. Known values @@ -1976,7 +1984,7 @@ class ResourceProviderDefaultErrorResponse(_Model): """Response body of Error.""" -class ResourceSku(_Model): +class ResourceSku(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Represents the SKU of a resource. :ivar name: The name of the SKU. Required. @@ -2004,7 +2012,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class ResubscribeProperties(_Model): +class ResubscribeProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Resubscribe Properties. :ivar plan_id: Newly selected plan Id to create the new Marketplace subscription for @@ -2064,7 +2072,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SubscriptionList(_Model): +class SubscriptionList(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The request to update subscriptions needed to be monitored by the Elastic monitor resource. :ivar operation: The operation for the patch on the resource. Known values are: "AddBegin", @@ -2110,7 +2118,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class SystemData(_Model): +class SystemData(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Metadata pertaining to creation and last modification of the resource. :ivar created_by: The identity that created the resource. @@ -2177,7 +2185,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class UpgradableVersionsList(_Model): +class UpgradableVersionsList(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Stack Versions that this version can upgrade to. :ivar current_version: Current version of the elastic monitor. @@ -2214,7 +2222,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class UserApiKeyResponse(_Model): +class UserApiKeyResponse(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The User Api Key created for the Organization associated with the User Email Id that was passed in the request. @@ -2244,7 +2252,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class UserApiKeyResponseProperties(_Model): +class UserApiKeyResponseProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """UserApiKeyResponseProperties. :ivar api_key: The User Api Key Generated based on GenerateApiKey flag. This is applicable for @@ -2274,7 +2282,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class UserEmailId(_Model): +class UserEmailId(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Email Id of the User Organization, of which the API Key must be returned. :ivar email_id: The User email Id. @@ -2302,7 +2310,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class UserInfo(_Model): +class UserInfo(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """User Information to be passed to partners. :ivar first_name: First name of the user. @@ -2356,7 +2364,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VMCollectionUpdate(_Model): +class VMCollectionUpdate(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Update VM resource collection. :ivar vm_resource_id: ARM id of the VM resource. @@ -2394,7 +2402,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VMIngestionDetailsResponse(_Model): +class VMIngestionDetailsResponse(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The vm ingestion details to install an agent. :ivar cloud_id: The cloudId of given Elastic monitor resource. @@ -2429,7 +2437,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class VMResources(_Model): +class VMResources(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """The vm resource properties that is currently being monitored by the Elastic monitor resource. :ivar vm_resource_id: The ARM id of the VM resource. diff --git a/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/models/_patch.py b/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/models/_patch.py index 87676c65a8f0..ea765788358a 100644 --- a/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/models/_patch.py +++ b/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/models/_patch.py @@ -8,7 +8,6 @@ Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize """ - __all__: list[str] = [] # Add all objects you want publicly available to users at this package level diff --git a/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/operations/_operations.py b/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/operations/_operations.py index 8eb1e6107303..f1b92f0a93df 100644 --- a/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/operations/_operations.py +++ b/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/operations/_operations.py @@ -36,6 +36,7 @@ from .._configuration import ElasticMgmtClientConfiguration from .._utils.model_base import SdkJSONEncoder, _deserialize, _failsafe_deserialize from .._utils.serialization import Deserializer, Serializer +from .._validation import api_version_validation T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, dict[str, Any]], Any]] @@ -49,7 +50,7 @@ def build_operations_list_request(**kwargs: Any) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -70,7 +71,7 @@ def build_monitored_subscriptions_get_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -100,7 +101,7 @@ def build_monitored_subscriptions_createor_update_request( # pylint: disable=na _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -132,7 +133,7 @@ def build_monitored_subscriptions_update_request( # pylint: disable=name-too-lo _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -162,7 +163,7 @@ def build_monitored_subscriptions_delete_request( # pylint: disable=name-too-lo ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-15-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Elastic/monitors/{monitorName}/monitoredSubscriptions/{configurationName}" path_format_arguments = { @@ -186,7 +187,7 @@ def build_monitored_subscriptions_list_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -214,7 +215,7 @@ def build_tag_rules_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -244,7 +245,7 @@ def build_tag_rules_create_or_update_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -274,7 +275,7 @@ def build_tag_rules_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-15-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Elastic/monitors/{monitorName}/tagRules/{ruleSetName}" path_format_arguments = { @@ -298,7 +299,7 @@ def build_tag_rules_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -326,7 +327,7 @@ def build_monitors_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -355,7 +356,7 @@ def build_monitors_create_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -386,7 +387,7 @@ def build_monitors_update_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -411,11 +412,16 @@ def build_monitors_update_request( def build_monitors_delete_request( - resource_group_name: str, monitor_name: str, subscription_id: str, **kwargs: Any + resource_group_name: str, + monitor_name: str, + subscription_id: str, + *, + soft_delete: Optional[bool] = None, + **kwargs: Any ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-15-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Elastic/monitors/{monitorName}" path_format_arguments = { @@ -428,6 +434,8 @@ def build_monitors_delete_request( # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + if soft_delete is not None: + _params["softDelete"] = _SERIALIZER.query("soft_delete", soft_delete, "bool") return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs) @@ -438,7 +446,7 @@ def build_monitors_list_by_resource_group_request( # pylint: disable=name-too-l _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -463,7 +471,7 @@ def build_monitors_list_request(subscription_id: str, **kwargs: Any) -> HttpRequ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -489,7 +497,7 @@ def build_monitored_resources_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -517,7 +525,7 @@ def build_deployment_info_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -546,7 +554,7 @@ def build_external_user_create_or_update_request( # pylint: disable=name-too-lo _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -576,7 +584,7 @@ def build_billing_info_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -604,7 +612,7 @@ def build_connected_partner_resources_list_request( # pylint: disable=name-too- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -632,7 +640,7 @@ def build_vm_host_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -660,7 +668,7 @@ def build_vm_ingestion_details_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -689,7 +697,7 @@ def build_vm_collection_update_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-15-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Elastic/monitors/{monitorName}/vmCollectionUpdate" path_format_arguments = { @@ -716,7 +724,7 @@ def build_upgradable_versions_details_request( # pylint: disable=name-too-long _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -745,7 +753,7 @@ def build_monitor_upgrade_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-15-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Elastic/monitors/{monitorName}/upgrade" path_format_arguments = { @@ -772,7 +780,7 @@ def build_all_traffic_filters_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -800,7 +808,7 @@ def build_list_associated_traffic_filters_list_request( # pylint: disable=name- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -833,7 +841,7 @@ def build_create_and_associate_ip_filter_create_request( # pylint: disable=name ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-15-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Elastic/monitors/{monitorName}/createAndAssociateIPFilter" path_format_arguments = { @@ -866,7 +874,7 @@ def build_create_and_associate_pl_filter_create_request( # pylint: disable=name ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-15-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Elastic/monitors/{monitorName}/createAndAssociatePLFilter" path_format_arguments = { @@ -899,7 +907,7 @@ def build_associate_traffic_filter_associate_request( # pylint: disable=name-to ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-15-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Elastic/monitors/{monitorName}/associateTrafficFilter" path_format_arguments = { @@ -928,7 +936,7 @@ def build_detach_and_delete_traffic_filter_delete_request( # pylint: disable=na ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-15-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Elastic/monitors/{monitorName}/detachAndDeleteTrafficFilter" path_format_arguments = { @@ -957,7 +965,7 @@ def build_detach_traffic_filter_update_request( # pylint: disable=name-too-long ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-15-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Elastic/monitors/{monitorName}/detachTrafficFilter" path_format_arguments = { @@ -986,7 +994,7 @@ def build_traffic_filters_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-15-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Elastic/monitors/{monitorName}/deleteTrafficFilter" path_format_arguments = { @@ -1012,7 +1020,7 @@ def build_organizations_resubscribe_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1041,7 +1049,7 @@ def build_organizations_get_api_key_request(subscription_id: str, **kwargs: Any) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1069,7 +1077,7 @@ def build_organizations_get_elastic_to_azure_subscription_mapping_request( # py _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1097,7 +1105,7 @@ def build_open_ai_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1127,7 +1135,7 @@ def build_open_ai_create_or_update_request( _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1157,7 +1165,7 @@ def build_open_ai_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-15-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Elastic/monitors/{monitorName}/openAIIntegrations/{integrationName}" path_format_arguments = { @@ -1181,7 +1189,7 @@ def build_open_ai_list_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1209,7 +1217,7 @@ def build_open_ai_get_status_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1236,7 +1244,7 @@ def build_elastic_versions_list_request(subscription_id: str, *, region: str, ** _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-03-15-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1257,7 +1265,7 @@ def build_elastic_versions_list_request(subscription_id: str, *, region: str, ** return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) -class Operations: +class Operations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -1367,7 +1375,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class MonitoredSubscriptionsOperations: +class MonitoredSubscriptionsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -2225,7 +2233,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class TagRulesOperations: +class TagRulesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -2738,7 +2746,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class MonitorsOperations: +class MonitorsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -3323,7 +3331,13 @@ def get_long_running_output(pipeline_response): self._client, raw_result, get_long_running_output, polling_method # type: ignore ) - def _delete_initial(self, resource_group_name: str, monitor_name: str, **kwargs: Any) -> Iterator[bytes]: + @api_version_validation( + params_added_on={"2026-03-15-preview": ["soft_delete"]}, + api_versions_list=["2025-06-01", "2026-03-15-preview"], + ) + def _delete_initial( + self, resource_group_name: str, monitor_name: str, *, soft_delete: Optional[bool] = None, **kwargs: Any + ) -> Iterator[bytes]: error_map: MutableMapping = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, @@ -3341,6 +3355,7 @@ def _delete_initial(self, resource_group_name: str, monitor_name: str, **kwargs: resource_group_name=resource_group_name, monitor_name=monitor_name, subscription_id=self._config.subscription_id, + soft_delete=soft_delete, api_version=self._config.api_version, headers=_headers, params=_params, @@ -3383,7 +3398,13 @@ def _delete_initial(self, resource_group_name: str, monitor_name: str, **kwargs: return deserialized # type: ignore @distributed_trace - def begin_delete(self, resource_group_name: str, monitor_name: str, **kwargs: Any) -> LROPoller[None]: + @api_version_validation( + params_added_on={"2026-03-15-preview": ["soft_delete"]}, + api_versions_list=["2025-06-01", "2026-03-15-preview"], + ) + def begin_delete( + self, resource_group_name: str, monitor_name: str, *, soft_delete: Optional[bool] = None, **kwargs: Any + ) -> LROPoller[None]: """Delete an existing Elastic monitor resource from your Azure subscription, removing its observability and monitoring capabilities. @@ -3392,6 +3413,11 @@ def begin_delete(self, resource_group_name: str, monitor_name: str, **kwargs: An :type resource_group_name: str :param monitor_name: Monitor resource name. Required. :type monitor_name: str + :keyword soft_delete: Indicates whether to perform a soft delete. When set to true, the Azure + resource (Liftr integration) only is deleted and not the Partner Cloud resource. When set to + false (default), the resource is permanently deleted from both Azure and the Partner Cloud. + Default value is None. + :paramtype soft_delete: bool :return: An instance of LROPoller that returns None :rtype: ~azure.core.polling.LROPoller[None] :raises ~azure.core.exceptions.HttpResponseError: @@ -3407,6 +3433,7 @@ def begin_delete(self, resource_group_name: str, monitor_name: str, **kwargs: An raw_result = self._delete_initial( resource_group_name=resource_group_name, monitor_name=monitor_name, + soft_delete=soft_delete, cls=lambda x, y, z: x, headers=_headers, params=_params, @@ -3635,7 +3662,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class MonitoredResourcesOperations: +class MonitoredResourcesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -3756,7 +3783,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class DeploymentInfoOperations: +class DeploymentInfoOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -3845,7 +3872,7 @@ def list(self, resource_group_name: str, monitor_name: str, **kwargs: Any) -> _m return deserialized # type: ignore -class ExternalUserOperations: +class ExternalUserOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -4046,7 +4073,7 @@ def create_or_update( return deserialized # type: ignore -class BillingInfoOperations: +class BillingInfoOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -4135,7 +4162,7 @@ def get(self, resource_group_name: str, monitor_name: str, **kwargs: Any) -> _mo return deserialized # type: ignore -class ConnectedPartnerResourcesOperations: +class ConnectedPartnerResourcesOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -4257,7 +4284,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class VMHostOperations: +class VMHostOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -4376,7 +4403,7 @@ def get_next(next_link=None): return ItemPaged(get_next, extract_data) -class VMIngestionOperations: +class VMIngestionOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -4466,7 +4493,7 @@ def details(self, resource_group_name: str, monitor_name: str, **kwargs: Any) -> return deserialized # type: ignore -class VMCollectionOperations: +class VMCollectionOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -4650,7 +4677,7 @@ def update( # pylint: disable=inconsistent-return-statements return cls(pipeline_response, None, {}) # type: ignore -class UpgradableVersionsOperations: +class UpgradableVersionsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -4739,7 +4766,7 @@ def details(self, resource_group_name: str, monitor_name: str, **kwargs: Any) -> return deserialized # type: ignore -class MonitorOperations: +class MonitorOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -4991,7 +5018,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class AllTrafficFiltersOperations: +class AllTrafficFiltersOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -5081,7 +5108,7 @@ def list(self, resource_group_name: str, monitor_name: str, **kwargs: Any) -> _m return deserialized # type: ignore -class ListAssociatedTrafficFiltersOperations: +class ListAssociatedTrafficFiltersOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -5171,7 +5198,7 @@ def list(self, resource_group_name: str, monitor_name: str, **kwargs: Any) -> _m return deserialized # type: ignore -class CreateAndAssociateIPFilterOperations: +class CreateAndAssociateIPFilterOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -5330,7 +5357,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class CreateAndAssociatePLFilterOperations: +class CreateAndAssociatePLFilterOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -5495,7 +5522,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class AssociateTrafficFilterOperations: +class AssociateTrafficFilterOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -5637,7 +5664,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class DetachAndDeleteTrafficFilterOperations: +class DetachAndDeleteTrafficFilterOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -5718,7 +5745,7 @@ def delete( # pylint: disable=inconsistent-return-statements return cls(pipeline_response, None, {}) # type: ignore -class DetachTrafficFilterOperations: +class DetachTrafficFilterOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -5860,7 +5887,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore -class TrafficFiltersOperations: +class TrafficFiltersOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -5941,7 +5968,7 @@ def delete( # pylint: disable=inconsistent-return-statements return cls(pipeline_response, None, {}) # type: ignore -class OrganizationsOperations: +class OrganizationsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -6420,7 +6447,7 @@ def get_elastic_to_azure_subscription_mapping( # pylint: disable=name-too-long return deserialized # type: ignore -class OpenAIOperations: +class OpenAIOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. @@ -6953,7 +6980,7 @@ def get_status( return deserialized # type: ignore -class ElasticVersionsOperations: +class ElasticVersionsOperations: # pylint: disable=docstring-missing-param """ .. warning:: **DO NOT** instantiate this class directly. diff --git a/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/operations/_patch.py b/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/operations/_patch.py index 87676c65a8f0..ea765788358a 100644 --- a/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/operations/_patch.py +++ b/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/operations/_patch.py @@ -8,7 +8,6 @@ Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize """ - __all__: list[str] = [] # Add all objects you want publicly available to users at this package level diff --git a/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/types.py b/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/types.py index a56caf8d3678..a15955eadbb4 100644 --- a/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/types.py +++ b/sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/types.py @@ -34,8 +34,8 @@ class CompanyInfo(TypedDict, total=False): :vartype domain: str :ivar business: Business of the company. :vartype business: str - :ivar employees_number: Number of employees in the company. - :vartype employees_number: str + :ivar employeesNumber: Number of employees in the company. + :vartype employeesNumber: str :ivar state: State of the company location. :vartype state: str :ivar country: Country of the company location. @@ -59,18 +59,18 @@ class ElasticCloudDeployment(TypedDict, total=False): :ivar name: Elastic deployment name. :vartype name: str - :ivar deployment_id: Elastic deployment Id. - :vartype deployment_id: str - :ivar azure_subscription_id: Associated Azure subscription Id for the elastic deployment. - :vartype azure_subscription_id: str - :ivar elasticsearch_region: Region where Deployment at Elastic side took place. - :vartype elasticsearch_region: str - :ivar elasticsearch_service_url: Elasticsearch ingestion endpoint of the Elastic deployment. - :vartype elasticsearch_service_url: str - :ivar kibana_service_url: Kibana endpoint of the Elastic deployment. - :vartype kibana_service_url: str - :ivar kibana_sso_url: Kibana dashboard sso URL of the Elastic deployment. - :vartype kibana_sso_url: str + :ivar deploymentId: Elastic deployment Id. + :vartype deploymentId: str + :ivar azureSubscriptionId: Associated Azure subscription Id for the elastic deployment. + :vartype azureSubscriptionId: str + :ivar elasticsearchRegion: Region where Deployment at Elastic side took place. + :vartype elasticsearchRegion: str + :ivar elasticsearchServiceUrl: Elasticsearch ingestion endpoint of the Elastic deployment. + :vartype elasticsearchServiceUrl: str + :ivar kibanaServiceUrl: Kibana endpoint of the Elastic deployment. + :vartype kibanaServiceUrl: str + :ivar kibanaSsoUrl: Kibana dashboard sso URL of the Elastic deployment. + :vartype kibanaSsoUrl: str """ name: str @@ -92,13 +92,13 @@ class ElasticCloudDeployment(TypedDict, total=False): class ElasticCloudUser(TypedDict, total=False): """Details of the user's elastic account. - :ivar email_address: Email of the Elastic User Account. - :vartype email_address: str + :ivar emailAddress: Email of the Elastic User Account. + :vartype emailAddress: str :ivar id: User Id of the elastic account of the User. :vartype id: str - :ivar elastic_cloud_sso_default_url: Elastic cloud default dashboard sso URL of the Elastic - user account. - :vartype elastic_cloud_sso_default_url: str + :ivar elasticCloudSsoDefaultUrl: Elastic cloud default dashboard sso URL of the Elastic user + account. + :vartype elasticCloudSsoDefaultUrl: str """ emailAddress: str @@ -120,9 +120,9 @@ class Resource(TypedDict, total=False): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" """ id: str @@ -148,9 +148,9 @@ class TrackedResource(Resource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar tags: Resource tags. :vartype tags: dict[str, str] :ivar location: The geo-location where the resource lives. Required. @@ -174,9 +174,9 @@ class ElasticMonitorResource(TrackedResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar tags: Resource tags. :vartype tags: dict[str, str] :ivar location: The geo-location where the resource lives. Required. @@ -226,10 +226,10 @@ class ElasticMonitorUpgrade(TypedDict, total=False): class ElasticProperties(TypedDict, total=False): """Elastic Resource Properties. - :ivar elastic_cloud_user: Details of the user's elastic account. - :vartype elastic_cloud_user: "ElasticCloudUser" - :ivar elastic_cloud_deployment: Details of the elastic cloud deployment. - :vartype elastic_cloud_deployment: "ElasticCloudDeployment" + :ivar elasticCloudUser: Details of the user's elastic account. + :vartype elasticCloudUser: "ElasticCloudUser" + :ivar elasticCloudDeployment: Details of the elastic cloud deployment. + :vartype elasticCloudDeployment: "ElasticCloudDeployment" """ elasticCloudUser: "ElasticCloudUser" @@ -241,14 +241,14 @@ class ElasticProperties(TypedDict, total=False): class ExternalUserInfo(TypedDict, total=False): """The properties of the request required for creating user on elastic side. - :ivar user_name: Username of the user to be created or updated. - :vartype user_name: str - :ivar full_name: Full name of the user to be created or updated. - :vartype full_name: str + :ivar userName: Username of the user to be created or updated. + :vartype userName: str + :ivar fullName: Full name of the user to be created or updated. + :vartype fullName: str :ivar password: Password of the user to be created or updated. :vartype password: str - :ivar email_id: Email id of the user to be created or updated. - :vartype email_id: str + :ivar emailId: Email id of the user to be created or updated. + :vartype emailId: str :ivar roles: Roles to be assigned for created or updated user. :vartype roles: list[str] """ @@ -288,10 +288,10 @@ class FilteringTag(TypedDict, total=False): class IdentityProperties(TypedDict, total=False): """Identity properties. - :ivar principal_id: The identity ID. - :vartype principal_id: str - :ivar tenant_id: The tenant ID of resource. - :vartype tenant_id: str + :ivar principalId: The identity ID. + :vartype principalId: str + :ivar tenantId: The tenant ID of resource. + :vartype tenantId: str :ivar type: Managed identity type. "SystemAssigned" :vartype type: Union[str, "ManagedIdentityTypes"] """ @@ -307,19 +307,19 @@ class IdentityProperties(TypedDict, total=False): class LogRules(TypedDict, total=False): """Set of rules for sending logs for the Monitor resource. - :ivar send_aad_logs: Flag specifying if AAD logs should be sent for the Monitor resource. - :vartype send_aad_logs: bool - :ivar send_subscription_logs: Flag specifying if subscription logs should be sent for the - Monitor resource. - :vartype send_subscription_logs: bool - :ivar send_activity_logs: Flag specifying if activity logs from Azure resources should be sent + :ivar sendAadLogs: Flag specifying if AAD logs should be sent for the Monitor resource. + :vartype sendAadLogs: bool + :ivar sendSubscriptionLogs: Flag specifying if subscription logs should be sent for the Monitor + resource. + :vartype sendSubscriptionLogs: bool + :ivar sendActivityLogs: Flag specifying if activity logs from Azure resources should be sent for the Monitor resource. - :vartype send_activity_logs: bool - :ivar filtering_tags: List of filtering tags to be used for capturing logs. This only takes + :vartype sendActivityLogs: bool + :ivar filteringTags: List of filtering tags to be used for capturing logs. This only takes effect if SendActivityLogs flag is enabled. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags. - :vartype filtering_tags: list["FilteringTag"] + :vartype filteringTags: list["FilteringTag"] """ sendAadLogs: bool @@ -338,15 +338,15 @@ class LogRules(TypedDict, total=False): class MonitoredSubscription(TypedDict, total=False): """The list of subscriptions and it's monitoring status by current Elastic monitor. - :ivar subscription_id: The subscriptionId to be monitored. Required. - :vartype subscription_id: str + :ivar subscriptionId: The subscriptionId to be monitored. Required. + :vartype subscriptionId: str :ivar status: The state of monitoring. Known values are: "InProgress", "Active", "Failed", and "Deleting". :vartype status: Union[str, "Status"] :ivar error: The reason of not monitoring the subscription. :vartype error: str - :ivar tag_rules: Definition of the properties for a TagRules resource. - :vartype tag_rules: "MonitoringTagRulesProperties" + :ivar tagRules: Definition of the properties for a TagRules resource. + :vartype tagRules: "MonitoringTagRulesProperties" """ subscriptionId: Required[str] @@ -371,9 +371,9 @@ class ProxyResource(Resource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" """ @@ -388,9 +388,9 @@ class MonitoredSubscriptionProperties(ProxyResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar properties: The request to update subscriptions needed to be monitored by the Elastic monitor resource. :vartype properties: "SubscriptionList" @@ -411,9 +411,9 @@ class MonitoringTagRules(ProxyResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar properties: Properties of the monitoring tag rules. :vartype properties: "MonitoringTagRulesProperties" """ @@ -425,12 +425,12 @@ class MonitoringTagRules(ProxyResource): class MonitoringTagRulesProperties(TypedDict, total=False): """Definition of the properties for a TagRules resource. - :ivar provisioning_state: Provisioning state of the monitoring tag rules. Known values are: + :ivar provisioningState: Provisioning state of the monitoring tag rules. Known values are: "Accepted", "Creating", "Updating", "Deleting", "Succeeded", "Failed", "Canceled", "Deleted", and "NotSpecified". - :vartype provisioning_state: Union[str, "ProvisioningState"] - :ivar log_rules: Rules for sending logs. - :vartype log_rules: "LogRules" + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar logRules: Rules for sending logs. + :vartype logRules: "LogRules" """ provisioningState: Union[str, "ProvisioningState"] @@ -444,42 +444,42 @@ class MonitoringTagRulesProperties(TypedDict, total=False): class MonitorProperties(TypedDict, total=False): """Properties specific to the monitor resource. - :ivar provisioning_state: Provisioning state of the monitor resource. Known values are: + :ivar provisioningState: Provisioning state of the monitor resource. Known values are: "Accepted", "Creating", "Updating", "Deleting", "Succeeded", "Failed", "Canceled", "Deleted", and "NotSpecified". - :vartype provisioning_state: Union[str, "ProvisioningState"] - :ivar monitoring_status: Flag specifying if the resource monitoring is enabled or disabled. + :vartype provisioningState: Union[str, "ProvisioningState"] + :ivar monitoringStatus: Flag specifying if the resource monitoring is enabled or disabled. Known values are: "Enabled" and "Disabled". - :vartype monitoring_status: Union[str, "MonitoringStatus"] - :ivar elastic_properties: Elastic cloud properties. - :vartype elastic_properties: "ElasticProperties" - :ivar user_info: User information. - :vartype user_info: "UserInfo" - :ivar plan_details: Plan details of the monitor resource. - :vartype plan_details: "PlanDetails" + :vartype monitoringStatus: Union[str, "MonitoringStatus"] + :ivar elasticProperties: Elastic cloud properties. + :vartype elasticProperties: "ElasticProperties" + :ivar userInfo: User information. + :vartype userInfo: "UserInfo" + :ivar planDetails: Plan details of the monitor resource. + :vartype planDetails: "PlanDetails" :ivar version: Version of elastic of the monitor resource. :vartype version: str - :ivar subscription_state: State of the Azure Subscription containing the monitor resource. - :vartype subscription_state: str - :ivar saa_s_azure_subscription_status: Status of Azure Subscription where Marketplace SaaS is + :ivar subscriptionState: State of the Azure Subscription containing the monitor resource. + :vartype subscriptionState: str + :ivar saaSAzureSubscriptionStatus: Status of Azure Subscription where Marketplace SaaS is located. - :vartype saa_s_azure_subscription_status: str - :ivar source_campaign_name: Name of the marketing campaign. - :vartype source_campaign_name: str - :ivar source_campaign_id: A unique identifier associated with the campaign. - :vartype source_campaign_id: str - :ivar liftr_resource_category: Known values are: "Unknown" and "MonitorLogs". - :vartype liftr_resource_category: Union[str, "LiftrResourceCategories"] - :ivar liftr_resource_preference: The priority of the resource. - :vartype liftr_resource_preference: int - :ivar generate_api_key: Flag to determine if User API Key has to be generated and shared. - :vartype generate_api_key: bool - :ivar hosting_type: Hosting type of the monitor resource - either Hosted deployments OR + :vartype saaSAzureSubscriptionStatus: str + :ivar sourceCampaignName: Name of the marketing campaign. + :vartype sourceCampaignName: str + :ivar sourceCampaignId: A unique identifier associated with the campaign. + :vartype sourceCampaignId: str + :ivar liftrResourceCategory: Known values are: "Unknown" and "MonitorLogs". + :vartype liftrResourceCategory: Union[str, "LiftrResourceCategories"] + :ivar liftrResourcePreference: The priority of the resource. + :vartype liftrResourcePreference: int + :ivar generateApiKey: Flag to determine if User API Key has to be generated and shared. + :vartype generateApiKey: bool + :ivar hostingType: Hosting type of the monitor resource - either Hosted deployments OR Serverless Projects. Known values are: "Hosted" and "Serverless". - :vartype hosting_type: Union[str, "HostingType"] - :ivar project_details: Project details of the monitor resource IF it belongs to Serverless - offer kind. - :vartype project_details: "ProjectDetails" + :vartype hostingType: Union[str, "HostingType"] + :ivar projectDetails: Project details of the monitor resource IF it belongs to Serverless offer + kind. + :vartype projectDetails: "ProjectDetails" """ provisioningState: Union[str, "ProvisioningState"] @@ -521,16 +521,16 @@ class MonitorProperties(TypedDict, total=False): class OpenAIIntegrationProperties(TypedDict, total=False): """Open AI Integration details. - :ivar open_ai_resource_id: The resource name of Open AI resource. - :vartype open_ai_resource_id: str - :ivar open_ai_resource_endpoint: The API endpoint for Open AI resource. - :vartype open_ai_resource_endpoint: str - :ivar open_ai_connector_id: The connector id of Open AI resource. - :vartype open_ai_connector_id: str + :ivar openAIResourceId: The resource name of Open AI resource. + :vartype openAIResourceId: str + :ivar openAIResourceEndpoint: The API endpoint for Open AI resource. + :vartype openAIResourceEndpoint: str + :ivar openAIConnectorId: The connector id of Open AI resource. + :vartype openAIConnectorId: str :ivar key: Value of API key for Open AI resource. :vartype key: str - :ivar last_refresh_at: Last Update Timestamp for key updation. - :vartype last_refresh_at: str + :ivar lastRefreshAt: Last Update Timestamp for key updation. + :vartype lastRefreshAt: str """ openAIResourceId: str @@ -556,9 +556,9 @@ class OpenAIIntegrationRPModel(ProxyResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + :ivar systemData: Azure Resource Manager metadata containing createdBy and modifiedBy information. - :vartype system_data: "SystemData" + :vartype systemData: "SystemData" :ivar properties: Open AI Integration details. :vartype properties: "OpenAIIntegrationProperties" """ @@ -570,16 +570,16 @@ class OpenAIIntegrationRPModel(ProxyResource): class PlanDetails(TypedDict, total=False): """Plan details of the monitor resource. - :ivar offer_id: Offer ID of the plan. - :vartype offer_id: str - :ivar publisher_id: Publisher ID of the plan. - :vartype publisher_id: str - :ivar term_id: Term ID of the plan. - :vartype term_id: str - :ivar plan_id: Plan ID. - :vartype plan_id: str - :ivar plan_name: Plan Name. - :vartype plan_name: str + :ivar offerID: Offer ID of the plan. + :vartype offerID: str + :ivar publisherID: Publisher ID of the plan. + :vartype publisherID: str + :ivar termID: Term ID of the plan. + :vartype termID: str + :ivar planID: Plan ID. + :vartype planID: str + :ivar planName: Plan Name. + :vartype planName: str """ offerID: str @@ -597,12 +597,12 @@ class PlanDetails(TypedDict, total=False): class ProjectDetails(TypedDict, total=False): """Project details of the monitor resource IF it belongs to Serverless offer kind. - :ivar project_type: Project type; ex: Elasticsearch / Observability / Security. Known values + :ivar projectType: Project type; ex: Elasticsearch / Observability / Security. Known values are: "Elasticsearch", "Observability", "Security", and "NotApplicable". - :vartype project_type: Union[str, "ProjectType"] - :ivar configuration_type: Configuration type of the Elasticsearch project. Known values are: + :vartype projectType: Union[str, "ProjectType"] + :ivar configurationType: Configuration type of the Elasticsearch project. Known values are: "GeneralPurpose", "Vector", "TimeSeries", and "NotApplicable". - :vartype configuration_type: Union[str, "ConfigurationType"] + :vartype configurationType: Union[str, "ConfigurationType"] """ projectType: Union[str, "ProjectType"] @@ -627,20 +627,20 @@ class ResourceSku(TypedDict, total=False): class ResubscribeProperties(TypedDict, total=False): """Resubscribe Properties. - :ivar plan_id: Newly selected plan Id to create the new Marketplace subscription for + :ivar planId: Newly selected plan Id to create the new Marketplace subscription for Resubscribe. - :vartype plan_id: str + :vartype planId: str :ivar term: Newly selected term to create the new Marketplace subscription for Resubscribe. :vartype term: str - :ivar subscription_id: Newly selected Azure Subscription Id in which the new Marketplace + :ivar subscriptionId: Newly selected Azure Subscription Id in which the new Marketplace subscription will be created for Resubscribe. - :vartype subscription_id: str - :ivar resource_group: Newly selected Azure resource group in which the new Marketplace + :vartype subscriptionId: str + :ivar resourceGroup: Newly selected Azure resource group in which the new Marketplace subscription will be created for Resubscribe. - :vartype resource_group: str - :ivar organization_id: Organization Id of the Elastic Organization that needs to be + :vartype resourceGroup: str + :ivar organizationId: Organization Id of the Elastic Organization that needs to be resubscribed. - :vartype organization_id: str + :vartype organizationId: str """ planId: str @@ -663,12 +663,12 @@ class SubscriptionList(TypedDict, total=False): :ivar operation: The operation for the patch on the resource. Known values are: "AddBegin", "AddComplete", "DeleteBegin", "DeleteComplete", and "Active". :vartype operation: Union[str, "Operation"] - :ivar monitored_subscription_list: List of subscriptions and the state of the monitoring. - :vartype monitored_subscription_list: list["MonitoredSubscription"] - :ivar provisioning_state: Provisioning State of the resource. Known values are: "Accepted", + :ivar monitoredSubscriptionList: List of subscriptions and the state of the monitoring. + :vartype monitoredSubscriptionList: list["MonitoredSubscription"] + :ivar provisioningState: Provisioning State of the resource. Known values are: "Accepted", "Creating", "Updating", "Deleting", "Succeeded", "Failed", "Canceled", "Deleted", and "NotSpecified". - :vartype provisioning_state: Union[str, "ProvisioningState"] + :vartype provisioningState: Union[str, "ProvisioningState"] """ operation: Union[str, "Operation"] @@ -684,20 +684,20 @@ class SubscriptionList(TypedDict, total=False): class SystemData(TypedDict, total=False): """Metadata pertaining to creation and last modification of the resource. - :ivar created_by: The identity that created the resource. - :vartype created_by: str - :ivar created_by_type: The type of identity that created the resource. Known values are: - "User", "Application", "ManagedIdentity", and "Key". - :vartype created_by_type: Union[str, "CreatedByType"] - :ivar created_at: The timestamp of resource creation (UTC). - :vartype created_at: str - :ivar last_modified_by: The identity that last modified the resource. - :vartype last_modified_by: str - :ivar last_modified_by_type: The type of identity that last modified the resource. Known values + :ivar createdBy: The identity that created the resource. + :vartype createdBy: str + :ivar createdByType: The type of identity that created the resource. Known values are: "User", + "Application", "ManagedIdentity", and "Key". + :vartype createdByType: Union[str, "CreatedByType"] + :ivar createdAt: The timestamp of resource creation (UTC). + :vartype createdAt: str + :ivar lastModifiedBy: The identity that last modified the resource. + :vartype lastModifiedBy: str + :ivar lastModifiedByType: The type of identity that last modified the resource. Known values are: "User", "Application", "ManagedIdentity", and "Key". - :vartype last_modified_by_type: Union[str, "CreatedByType"] - :ivar last_modified_at: The timestamp of resource last modification (UTC). - :vartype last_modified_at: str + :vartype lastModifiedByType: Union[str, "CreatedByType"] + :ivar lastModifiedAt: The timestamp of resource last modification (UTC). + :vartype lastModifiedAt: str """ createdBy: str @@ -719,8 +719,8 @@ class SystemData(TypedDict, total=False): class UserEmailId(TypedDict, total=False): """Email Id of the User Organization, of which the API Key must be returned. - :ivar email_id: The User email Id. - :vartype email_id: str + :ivar emailId: The User email Id. + :vartype emailId: str """ emailId: str @@ -730,16 +730,16 @@ class UserEmailId(TypedDict, total=False): class UserInfo(TypedDict, total=False): """User Information to be passed to partners. - :ivar first_name: First name of the user. - :vartype first_name: str - :ivar last_name: Last name of the user. - :vartype last_name: str - :ivar company_name: Company name of the user. - :vartype company_name: str - :ivar email_address: Email of the user used by Elastic for contacting them if needed. - :vartype email_address: str - :ivar company_info: Company information of the user to be passed to partners. - :vartype company_info: "CompanyInfo" + :ivar firstName: First name of the user. + :vartype firstName: str + :ivar lastName: Last name of the user. + :vartype lastName: str + :ivar companyName: Company name of the user. + :vartype companyName: str + :ivar emailAddress: Email of the user used by Elastic for contacting them if needed. + :vartype emailAddress: str + :ivar companyInfo: Company information of the user to be passed to partners. + :vartype companyInfo: "CompanyInfo" """ firstName: str @@ -757,11 +757,11 @@ class UserInfo(TypedDict, total=False): class VMCollectionUpdate(TypedDict, total=False): """Update VM resource collection. - :ivar vm_resource_id: ARM id of the VM resource. - :vartype vm_resource_id: str - :ivar operation_name: Operation to be performed for given VM. Known values are: "Add" and + :ivar vmResourceId: ARM id of the VM resource. + :vartype vmResourceId: str + :ivar operationName: Operation to be performed for given VM. Known values are: "Add" and "Delete". - :vartype operation_name: Union[str, "OperationName"] + :vartype operationName: Union[str, "OperationName"] """ vmResourceId: str diff --git a/sdk/elastic/azure-mgmt-elastic/generated_samples/all_traffic_filters_list.py b/sdk/elastic/azure-mgmt-elastic/generated_samples/all_traffic_filters_list.py index 118cfba78932..5f50fc6d7297 100644 --- a/sdk/elastic/azure-mgmt-elastic/generated_samples/all_traffic_filters_list.py +++ b/sdk/elastic/azure-mgmt-elastic/generated_samples/all_traffic_filters_list.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-06-01/AllTrafficFilters_list.json +# x-ms-original-file: 2026-03-15-preview/AllTrafficFilters_list.json if __name__ == "__main__": main() diff --git a/sdk/elastic/azure-mgmt-elastic/generated_samples/associate_traffic_filter_update.py b/sdk/elastic/azure-mgmt-elastic/generated_samples/associate_traffic_filter_update.py index 6584c00e3205..982535c0d4da 100644 --- a/sdk/elastic/azure-mgmt-elastic/generated_samples/associate_traffic_filter_update.py +++ b/sdk/elastic/azure-mgmt-elastic/generated_samples/associate_traffic_filter_update.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-06-01/AssociateTrafficFilter_Update.json +# x-ms-original-file: 2026-03-15-preview/AssociateTrafficFilter_Update.json if __name__ == "__main__": main() diff --git a/sdk/elastic/azure-mgmt-elastic/generated_samples/associated_filters_for_deployment_list.py b/sdk/elastic/azure-mgmt-elastic/generated_samples/associated_filters_for_deployment_list.py index be7ce211dd82..b1a1d65eff04 100644 --- a/sdk/elastic/azure-mgmt-elastic/generated_samples/associated_filters_for_deployment_list.py +++ b/sdk/elastic/azure-mgmt-elastic/generated_samples/associated_filters_for_deployment_list.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-06-01/AssociatedFiltersForDeployment_list.json +# x-ms-original-file: 2026-03-15-preview/AssociatedFiltersForDeployment_list.json if __name__ == "__main__": main() diff --git a/sdk/elastic/azure-mgmt-elastic/generated_samples/billing_info_get.py b/sdk/elastic/azure-mgmt-elastic/generated_samples/billing_info_get.py index f979dabddf96..09b95ee74ddc 100644 --- a/sdk/elastic/azure-mgmt-elastic/generated_samples/billing_info_get.py +++ b/sdk/elastic/azure-mgmt-elastic/generated_samples/billing_info_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-06-01/BillingInfo_Get.json +# x-ms-original-file: 2026-03-15-preview/BillingInfo_Get.json if __name__ == "__main__": main() diff --git a/sdk/elastic/azure-mgmt-elastic/generated_samples/connected_partner_resources_list.py b/sdk/elastic/azure-mgmt-elastic/generated_samples/connected_partner_resources_list.py index 8cfdd0423511..5032e5034369 100644 --- a/sdk/elastic/azure-mgmt-elastic/generated_samples/connected_partner_resources_list.py +++ b/sdk/elastic/azure-mgmt-elastic/generated_samples/connected_partner_resources_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-06-01/ConnectedPartnerResources_List.json +# x-ms-original-file: 2026-03-15-preview/ConnectedPartnerResources_List.json if __name__ == "__main__": main() diff --git a/sdk/elastic/azure-mgmt-elastic/generated_samples/deployment_info_list.py b/sdk/elastic/azure-mgmt-elastic/generated_samples/deployment_info_list.py index e5bf1d681d19..d3ccc11330b4 100644 --- a/sdk/elastic/azure-mgmt-elastic/generated_samples/deployment_info_list.py +++ b/sdk/elastic/azure-mgmt-elastic/generated_samples/deployment_info_list.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-06-01/DeploymentInfo_List.json +# x-ms-original-file: 2026-03-15-preview/DeploymentInfo_List.json if __name__ == "__main__": main() diff --git a/sdk/elastic/azure-mgmt-elastic/generated_samples/detach_and_delete_traffic_filter_delete.py b/sdk/elastic/azure-mgmt-elastic/generated_samples/detach_and_delete_traffic_filter_delete.py index 4fc7a8eda164..6822843dddc4 100644 --- a/sdk/elastic/azure-mgmt-elastic/generated_samples/detach_and_delete_traffic_filter_delete.py +++ b/sdk/elastic/azure-mgmt-elastic/generated_samples/detach_and_delete_traffic_filter_delete.py @@ -36,6 +36,6 @@ def main(): ) -# x-ms-original-file: 2025-06-01/DetachAndDeleteTrafficFilter_Delete.json +# x-ms-original-file: 2026-03-15-preview/DetachAndDeleteTrafficFilter_Delete.json if __name__ == "__main__": main() diff --git a/sdk/elastic/azure-mgmt-elastic/generated_samples/detach_traffic_filters_update.py b/sdk/elastic/azure-mgmt-elastic/generated_samples/detach_traffic_filters_update.py index 798d0130d893..3ac15519f2d0 100644 --- a/sdk/elastic/azure-mgmt-elastic/generated_samples/detach_traffic_filters_update.py +++ b/sdk/elastic/azure-mgmt-elastic/generated_samples/detach_traffic_filters_update.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-06-01/DetachTrafficFilters_Update.json +# x-ms-original-file: 2026-03-15-preview/DetachTrafficFilters_Update.json if __name__ == "__main__": main() diff --git a/sdk/elastic/azure-mgmt-elastic/generated_samples/elastic_versions_list.py b/sdk/elastic/azure-mgmt-elastic/generated_samples/elastic_versions_list.py index 1dbbcd83dfa9..1ef5b0f17028 100644 --- a/sdk/elastic/azure-mgmt-elastic/generated_samples/elastic_versions_list.py +++ b/sdk/elastic/azure-mgmt-elastic/generated_samples/elastic_versions_list.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-06-01/ElasticVersions_List.json +# x-ms-original-file: 2026-03-15-preview/ElasticVersions_List.json if __name__ == "__main__": main() diff --git a/sdk/elastic/azure-mgmt-elastic/generated_samples/external_user_info.py b/sdk/elastic/azure-mgmt-elastic/generated_samples/external_user_info.py index 4d7b766d485e..9ceece893704 100644 --- a/sdk/elastic/azure-mgmt-elastic/generated_samples/external_user_info.py +++ b/sdk/elastic/azure-mgmt-elastic/generated_samples/external_user_info.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-06-01/ExternalUserInfo.json +# x-ms-original-file: 2026-03-15-preview/ExternalUserInfo.json if __name__ == "__main__": main() diff --git a/sdk/elastic/azure-mgmt-elastic/generated_samples/ip_traffic_filter_create.py b/sdk/elastic/azure-mgmt-elastic/generated_samples/ip_traffic_filter_create.py index 327f42866802..0d70d77a4048 100644 --- a/sdk/elastic/azure-mgmt-elastic/generated_samples/ip_traffic_filter_create.py +++ b/sdk/elastic/azure-mgmt-elastic/generated_samples/ip_traffic_filter_create.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-06-01/IPTrafficFilter_Create.json +# x-ms-original-file: 2026-03-15-preview/IPTrafficFilter_Create.json if __name__ == "__main__": main() diff --git a/sdk/elastic/azure-mgmt-elastic/generated_samples/monitor_upgrade.py b/sdk/elastic/azure-mgmt-elastic/generated_samples/monitor_upgrade.py index f5ebe2b9c28f..8def958620d6 100644 --- a/sdk/elastic/azure-mgmt-elastic/generated_samples/monitor_upgrade.py +++ b/sdk/elastic/azure-mgmt-elastic/generated_samples/monitor_upgrade.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-06-01/Monitor_Upgrade.json +# x-ms-original-file: 2026-03-15-preview/Monitor_Upgrade.json if __name__ == "__main__": main() diff --git a/sdk/elastic/azure-mgmt-elastic/generated_samples/monitored_resources_list.py b/sdk/elastic/azure-mgmt-elastic/generated_samples/monitored_resources_list.py index 0b13a9a038b1..973260c5e696 100644 --- a/sdk/elastic/azure-mgmt-elastic/generated_samples/monitored_resources_list.py +++ b/sdk/elastic/azure-mgmt-elastic/generated_samples/monitored_resources_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-06-01/MonitoredResources_List.json +# x-ms-original-file: 2026-03-15-preview/MonitoredResources_List.json if __name__ == "__main__": main() diff --git a/sdk/elastic/azure-mgmt-elastic/generated_samples/monitored_subscriptions_createor_update.py b/sdk/elastic/azure-mgmt-elastic/generated_samples/monitored_subscriptions_createor_update.py index 58e32cf46f51..9fa1e68a272d 100644 --- a/sdk/elastic/azure-mgmt-elastic/generated_samples/monitored_subscriptions_createor_update.py +++ b/sdk/elastic/azure-mgmt-elastic/generated_samples/monitored_subscriptions_createor_update.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-06-01/MonitoredSubscriptions_CreateorUpdate.json +# x-ms-original-file: 2026-03-15-preview/MonitoredSubscriptions_CreateorUpdate.json if __name__ == "__main__": main() diff --git a/sdk/elastic/azure-mgmt-elastic/generated_samples/monitored_subscriptions_delete.py b/sdk/elastic/azure-mgmt-elastic/generated_samples/monitored_subscriptions_delete.py index 0c5e4192b7fa..153ae8afeb04 100644 --- a/sdk/elastic/azure-mgmt-elastic/generated_samples/monitored_subscriptions_delete.py +++ b/sdk/elastic/azure-mgmt-elastic/generated_samples/monitored_subscriptions_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-06-01/MonitoredSubscriptions_Delete.json +# x-ms-original-file: 2026-03-15-preview/MonitoredSubscriptions_Delete.json if __name__ == "__main__": main() diff --git a/sdk/elastic/azure-mgmt-elastic/generated_samples/monitored_subscriptions_get.py b/sdk/elastic/azure-mgmt-elastic/generated_samples/monitored_subscriptions_get.py index 73987a98c58d..2eccb7f0bc98 100644 --- a/sdk/elastic/azure-mgmt-elastic/generated_samples/monitored_subscriptions_get.py +++ b/sdk/elastic/azure-mgmt-elastic/generated_samples/monitored_subscriptions_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-06-01/MonitoredSubscriptions_Get.json +# x-ms-original-file: 2026-03-15-preview/MonitoredSubscriptions_Get.json if __name__ == "__main__": main() diff --git a/sdk/elastic/azure-mgmt-elastic/generated_samples/monitored_subscriptions_list.py b/sdk/elastic/azure-mgmt-elastic/generated_samples/monitored_subscriptions_list.py index 08691ad3bcc4..942857c5e052 100644 --- a/sdk/elastic/azure-mgmt-elastic/generated_samples/monitored_subscriptions_list.py +++ b/sdk/elastic/azure-mgmt-elastic/generated_samples/monitored_subscriptions_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-06-01/MonitoredSubscriptions_List.json +# x-ms-original-file: 2026-03-15-preview/MonitoredSubscriptions_List.json if __name__ == "__main__": main() diff --git a/sdk/elastic/azure-mgmt-elastic/generated_samples/monitored_subscriptions_update.py b/sdk/elastic/azure-mgmt-elastic/generated_samples/monitored_subscriptions_update.py index 56e9824f98e4..6270f3b15a59 100644 --- a/sdk/elastic/azure-mgmt-elastic/generated_samples/monitored_subscriptions_update.py +++ b/sdk/elastic/azure-mgmt-elastic/generated_samples/monitored_subscriptions_update.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-06-01/MonitoredSubscriptions_Update.json +# x-ms-original-file: 2026-03-15-preview/MonitoredSubscriptions_Update.json if __name__ == "__main__": main() diff --git a/sdk/elastic/azure-mgmt-elastic/generated_samples/monitors_create.py b/sdk/elastic/azure-mgmt-elastic/generated_samples/monitors_create.py index 40a3c7d6d332..a841e0285771 100644 --- a/sdk/elastic/azure-mgmt-elastic/generated_samples/monitors_create.py +++ b/sdk/elastic/azure-mgmt-elastic/generated_samples/monitors_create.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-06-01/Monitors_Create.json +# x-ms-original-file: 2026-03-15-preview/Monitors_Create.json if __name__ == "__main__": main() diff --git a/sdk/elastic/azure-mgmt-elastic/generated_samples/monitors_delete.py b/sdk/elastic/azure-mgmt-elastic/generated_samples/monitors_delete.py index 594c92c41e8a..6a1d625a47a8 100644 --- a/sdk/elastic/azure-mgmt-elastic/generated_samples/monitors_delete.py +++ b/sdk/elastic/azure-mgmt-elastic/generated_samples/monitors_delete.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-06-01/Monitors_Delete.json +# x-ms-original-file: 2026-03-15-preview/Monitors_Delete.json if __name__ == "__main__": main() diff --git a/sdk/elastic/azure-mgmt-elastic/generated_samples/monitors_delete_soft_delete.py b/sdk/elastic/azure-mgmt-elastic/generated_samples/monitors_delete_soft_delete.py new file mode 100644 index 000000000000..fb1df0a7ef39 --- /dev/null +++ b/sdk/elastic/azure-mgmt-elastic/generated_samples/monitors_delete_soft_delete.py @@ -0,0 +1,41 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) Python Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.elastic import ElasticMgmtClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-elastic +# USAGE + python monitors_delete_soft_delete.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = ElasticMgmtClient( + credential=DefaultAzureCredential(), + subscription_id="SUBSCRIPTION_ID", + ) + + client.monitors.begin_delete( + resource_group_name="myResourceGroup", + monitor_name="myMonitor", + ).result() + + +# x-ms-original-file: 2026-03-15-preview/Monitors_Delete_SoftDelete.json +if __name__ == "__main__": + main() diff --git a/sdk/elastic/azure-mgmt-elastic/generated_samples/monitors_get.py b/sdk/elastic/azure-mgmt-elastic/generated_samples/monitors_get.py index 0c597775c917..88968ca6a464 100644 --- a/sdk/elastic/azure-mgmt-elastic/generated_samples/monitors_get.py +++ b/sdk/elastic/azure-mgmt-elastic/generated_samples/monitors_get.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-06-01/Monitors_Get.json +# x-ms-original-file: 2026-03-15-preview/Monitors_Get.json if __name__ == "__main__": main() diff --git a/sdk/elastic/azure-mgmt-elastic/generated_samples/monitors_list.py b/sdk/elastic/azure-mgmt-elastic/generated_samples/monitors_list.py index 814bb6d2d6dc..76799a3aefb0 100644 --- a/sdk/elastic/azure-mgmt-elastic/generated_samples/monitors_list.py +++ b/sdk/elastic/azure-mgmt-elastic/generated_samples/monitors_list.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-06-01/Monitors_List.json +# x-ms-original-file: 2026-03-15-preview/Monitors_List.json if __name__ == "__main__": main() diff --git a/sdk/elastic/azure-mgmt-elastic/generated_samples/monitors_list_by_resource_group.py b/sdk/elastic/azure-mgmt-elastic/generated_samples/monitors_list_by_resource_group.py index eae6bced5f01..50f54990572f 100644 --- a/sdk/elastic/azure-mgmt-elastic/generated_samples/monitors_list_by_resource_group.py +++ b/sdk/elastic/azure-mgmt-elastic/generated_samples/monitors_list_by_resource_group.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2025-06-01/Monitors_ListByResourceGroup.json +# x-ms-original-file: 2026-03-15-preview/Monitors_ListByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/elastic/azure-mgmt-elastic/generated_samples/monitors_update.py b/sdk/elastic/azure-mgmt-elastic/generated_samples/monitors_update.py index 3e5db7058aac..65d08dd718d8 100644 --- a/sdk/elastic/azure-mgmt-elastic/generated_samples/monitors_update.py +++ b/sdk/elastic/azure-mgmt-elastic/generated_samples/monitors_update.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-06-01/Monitors_Update.json +# x-ms-original-file: 2026-03-15-preview/Monitors_Update.json if __name__ == "__main__": main() diff --git a/sdk/elastic/azure-mgmt-elastic/generated_samples/open_ai_create_or_update.py b/sdk/elastic/azure-mgmt-elastic/generated_samples/open_ai_create_or_update.py index f98b49cf8ade..3b7a20227936 100644 --- a/sdk/elastic/azure-mgmt-elastic/generated_samples/open_ai_create_or_update.py +++ b/sdk/elastic/azure-mgmt-elastic/generated_samples/open_ai_create_or_update.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-06-01/OpenAI_CreateOrUpdate.json +# x-ms-original-file: 2026-03-15-preview/OpenAI_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/elastic/azure-mgmt-elastic/generated_samples/open_ai_delete.py b/sdk/elastic/azure-mgmt-elastic/generated_samples/open_ai_delete.py index fd028cb4d97c..1922b14610a5 100644 --- a/sdk/elastic/azure-mgmt-elastic/generated_samples/open_ai_delete.py +++ b/sdk/elastic/azure-mgmt-elastic/generated_samples/open_ai_delete.py @@ -37,6 +37,6 @@ def main(): ) -# x-ms-original-file: 2025-06-01/OpenAI_Delete.json +# x-ms-original-file: 2026-03-15-preview/OpenAI_Delete.json if __name__ == "__main__": main() diff --git a/sdk/elastic/azure-mgmt-elastic/generated_samples/open_ai_get.py b/sdk/elastic/azure-mgmt-elastic/generated_samples/open_ai_get.py index f1175257547f..7a33db3e6118 100644 --- a/sdk/elastic/azure-mgmt-elastic/generated_samples/open_ai_get.py +++ b/sdk/elastic/azure-mgmt-elastic/generated_samples/open_ai_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-06-01/OpenAI_Get.json +# x-ms-original-file: 2026-03-15-preview/OpenAI_Get.json if __name__ == "__main__": main() diff --git a/sdk/elastic/azure-mgmt-elastic/generated_samples/open_ai_get_status.py b/sdk/elastic/azure-mgmt-elastic/generated_samples/open_ai_get_status.py index 02fe226cd6b9..10bd3bb13084 100644 --- a/sdk/elastic/azure-mgmt-elastic/generated_samples/open_ai_get_status.py +++ b/sdk/elastic/azure-mgmt-elastic/generated_samples/open_ai_get_status.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-06-01/OpenAI_GetStatus.json +# x-ms-original-file: 2026-03-15-preview/OpenAI_GetStatus.json if __name__ == "__main__": main() diff --git a/sdk/elastic/azure-mgmt-elastic/generated_samples/open_ai_list.py b/sdk/elastic/azure-mgmt-elastic/generated_samples/open_ai_list.py index 47d7c739ab66..165b1343de3e 100644 --- a/sdk/elastic/azure-mgmt-elastic/generated_samples/open_ai_list.py +++ b/sdk/elastic/azure-mgmt-elastic/generated_samples/open_ai_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-06-01/OpenAI_List.json +# x-ms-original-file: 2026-03-15-preview/OpenAI_List.json if __name__ == "__main__": main() diff --git a/sdk/elastic/azure-mgmt-elastic/generated_samples/operations_list.py b/sdk/elastic/azure-mgmt-elastic/generated_samples/operations_list.py index 82e671d941a2..85e8c9420383 100644 --- a/sdk/elastic/azure-mgmt-elastic/generated_samples/operations_list.py +++ b/sdk/elastic/azure-mgmt-elastic/generated_samples/operations_list.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2025-06-01/Operations_List.json +# x-ms-original-file: 2026-03-15-preview/Operations_List.json if __name__ == "__main__": main() diff --git a/sdk/elastic/azure-mgmt-elastic/generated_samples/organizations_get_api_key.py b/sdk/elastic/azure-mgmt-elastic/generated_samples/organizations_get_api_key.py index f0f77e0d08dd..ae5724abb8bd 100644 --- a/sdk/elastic/azure-mgmt-elastic/generated_samples/organizations_get_api_key.py +++ b/sdk/elastic/azure-mgmt-elastic/generated_samples/organizations_get_api_key.py @@ -34,6 +34,6 @@ def main(): print(response) -# x-ms-original-file: 2025-06-01/Organizations_GetApiKey.json +# x-ms-original-file: 2026-03-15-preview/Organizations_GetApiKey.json if __name__ == "__main__": main() diff --git a/sdk/elastic/azure-mgmt-elastic/generated_samples/organizations_get_elastic_to_azure_subscription_mapping.py b/sdk/elastic/azure-mgmt-elastic/generated_samples/organizations_get_elastic_to_azure_subscription_mapping.py index 711c179dae72..91561ebf557b 100644 --- a/sdk/elastic/azure-mgmt-elastic/generated_samples/organizations_get_elastic_to_azure_subscription_mapping.py +++ b/sdk/elastic/azure-mgmt-elastic/generated_samples/organizations_get_elastic_to_azure_subscription_mapping.py @@ -34,6 +34,6 @@ def main(): print(response) -# x-ms-original-file: 2025-06-01/Organizations_GetElasticToAzureSubscriptionMapping.json +# x-ms-original-file: 2026-03-15-preview/Organizations_GetElasticToAzureSubscriptionMapping.json if __name__ == "__main__": main() diff --git a/sdk/elastic/azure-mgmt-elastic/generated_samples/organizations_resubscribe.py b/sdk/elastic/azure-mgmt-elastic/generated_samples/organizations_resubscribe.py index 155950c71c92..1a7f73718c13 100644 --- a/sdk/elastic/azure-mgmt-elastic/generated_samples/organizations_resubscribe.py +++ b/sdk/elastic/azure-mgmt-elastic/generated_samples/organizations_resubscribe.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-06-01/Organizations_Resubscribe.json +# x-ms-original-file: 2026-03-15-preview/Organizations_Resubscribe.json if __name__ == "__main__": main() diff --git a/sdk/elastic/azure-mgmt-elastic/generated_samples/private_link_traffic_filters_create.py b/sdk/elastic/azure-mgmt-elastic/generated_samples/private_link_traffic_filters_create.py index b2b7e0e3612a..157f08f6692b 100644 --- a/sdk/elastic/azure-mgmt-elastic/generated_samples/private_link_traffic_filters_create.py +++ b/sdk/elastic/azure-mgmt-elastic/generated_samples/private_link_traffic_filters_create.py @@ -36,6 +36,6 @@ def main(): ).result() -# x-ms-original-file: 2025-06-01/PrivateLinkTrafficFilters_Create.json +# x-ms-original-file: 2026-03-15-preview/PrivateLinkTrafficFilters_Create.json if __name__ == "__main__": main() diff --git a/sdk/elastic/azure-mgmt-elastic/generated_samples/tag_rules_create_or_update.py b/sdk/elastic/azure-mgmt-elastic/generated_samples/tag_rules_create_or_update.py index 4178d67a564c..bec024899e81 100644 --- a/sdk/elastic/azure-mgmt-elastic/generated_samples/tag_rules_create_or_update.py +++ b/sdk/elastic/azure-mgmt-elastic/generated_samples/tag_rules_create_or_update.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-06-01/TagRules_CreateOrUpdate.json +# x-ms-original-file: 2026-03-15-preview/TagRules_CreateOrUpdate.json if __name__ == "__main__": main() diff --git a/sdk/elastic/azure-mgmt-elastic/generated_samples/tag_rules_delete.py b/sdk/elastic/azure-mgmt-elastic/generated_samples/tag_rules_delete.py index bb6b6210c3ba..f85736c0d91d 100644 --- a/sdk/elastic/azure-mgmt-elastic/generated_samples/tag_rules_delete.py +++ b/sdk/elastic/azure-mgmt-elastic/generated_samples/tag_rules_delete.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2025-06-01/TagRules_Delete.json +# x-ms-original-file: 2026-03-15-preview/TagRules_Delete.json if __name__ == "__main__": main() diff --git a/sdk/elastic/azure-mgmt-elastic/generated_samples/tag_rules_get.py b/sdk/elastic/azure-mgmt-elastic/generated_samples/tag_rules_get.py index 4e154c87b8d0..7c9f03f82d39 100644 --- a/sdk/elastic/azure-mgmt-elastic/generated_samples/tag_rules_get.py +++ b/sdk/elastic/azure-mgmt-elastic/generated_samples/tag_rules_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2025-06-01/TagRules_Get.json +# x-ms-original-file: 2026-03-15-preview/TagRules_Get.json if __name__ == "__main__": main() diff --git a/sdk/elastic/azure-mgmt-elastic/generated_samples/tag_rules_list.py b/sdk/elastic/azure-mgmt-elastic/generated_samples/tag_rules_list.py index 46925e39957a..09b142011e1b 100644 --- a/sdk/elastic/azure-mgmt-elastic/generated_samples/tag_rules_list.py +++ b/sdk/elastic/azure-mgmt-elastic/generated_samples/tag_rules_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-06-01/TagRules_List.json +# x-ms-original-file: 2026-03-15-preview/TagRules_List.json if __name__ == "__main__": main() diff --git a/sdk/elastic/azure-mgmt-elastic/generated_samples/traffic_filters_delete.py b/sdk/elastic/azure-mgmt-elastic/generated_samples/traffic_filters_delete.py index 0f478d6fc388..1f7a4065cae1 100644 --- a/sdk/elastic/azure-mgmt-elastic/generated_samples/traffic_filters_delete.py +++ b/sdk/elastic/azure-mgmt-elastic/generated_samples/traffic_filters_delete.py @@ -36,6 +36,6 @@ def main(): ) -# x-ms-original-file: 2025-06-01/TrafficFilters_Delete.json +# x-ms-original-file: 2026-03-15-preview/TrafficFilters_Delete.json if __name__ == "__main__": main() diff --git a/sdk/elastic/azure-mgmt-elastic/generated_samples/upgradable_versions_details.py b/sdk/elastic/azure-mgmt-elastic/generated_samples/upgradable_versions_details.py index 4976a9641902..98c982aec225 100644 --- a/sdk/elastic/azure-mgmt-elastic/generated_samples/upgradable_versions_details.py +++ b/sdk/elastic/azure-mgmt-elastic/generated_samples/upgradable_versions_details.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-06-01/UpgradableVersions_Details.json +# x-ms-original-file: 2026-03-15-preview/UpgradableVersions_Details.json if __name__ == "__main__": main() diff --git a/sdk/elastic/azure-mgmt-elastic/generated_samples/vm_collection_update.py b/sdk/elastic/azure-mgmt-elastic/generated_samples/vm_collection_update.py index 0047df42feb7..b46979a02f13 100644 --- a/sdk/elastic/azure-mgmt-elastic/generated_samples/vm_collection_update.py +++ b/sdk/elastic/azure-mgmt-elastic/generated_samples/vm_collection_update.py @@ -36,6 +36,6 @@ def main(): ) -# x-ms-original-file: 2025-06-01/VMCollection_Update.json +# x-ms-original-file: 2026-03-15-preview/VMCollection_Update.json if __name__ == "__main__": main() diff --git a/sdk/elastic/azure-mgmt-elastic/generated_samples/vm_host_list.py b/sdk/elastic/azure-mgmt-elastic/generated_samples/vm_host_list.py index 65e6ff210b04..aba014f11b47 100644 --- a/sdk/elastic/azure-mgmt-elastic/generated_samples/vm_host_list.py +++ b/sdk/elastic/azure-mgmt-elastic/generated_samples/vm_host_list.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2025-06-01/VMHost_List.json +# x-ms-original-file: 2026-03-15-preview/VMHost_List.json if __name__ == "__main__": main() diff --git a/sdk/elastic/azure-mgmt-elastic/generated_samples/vm_ingestion_details.py b/sdk/elastic/azure-mgmt-elastic/generated_samples/vm_ingestion_details.py index 72ca0eb1ff90..44d9eb5d0ba8 100644 --- a/sdk/elastic/azure-mgmt-elastic/generated_samples/vm_ingestion_details.py +++ b/sdk/elastic/azure-mgmt-elastic/generated_samples/vm_ingestion_details.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2025-06-01/VMIngestion_Details.json +# x-ms-original-file: 2026-03-15-preview/VMIngestion_Details.json if __name__ == "__main__": main() diff --git a/sdk/elastic/azure-mgmt-elastic/pyproject.toml b/sdk/elastic/azure-mgmt-elastic/pyproject.toml index 6df55478c2d7..da3277c3bc4c 100644 --- a/sdk/elastic/azure-mgmt-elastic/pyproject.toml +++ b/sdk/elastic/azure-mgmt-elastic/pyproject.toml @@ -13,7 +13,7 @@ authors = [ description = "Microsoft Azure Elastic Management Client Library for Python" license = "MIT" classifiers = [ - "Development Status :: 5 - Production/Stable", + "Development Status :: 4 - Beta", "Programming Language :: Python", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3", @@ -79,7 +79,7 @@ package_name = "azure-mgmt-elastic" package_nspkg = "azure-mgmt-nspkg" package_pprint_name = "Elastic Management" package_doc_id = "" -is_stable = true +is_stable = false is_arm = true need_msrestazure = false need_azuremgmtcore = true diff --git a/sdk/elastic/azure-mgmt-elastic/tsp-location.yaml b/sdk/elastic/azure-mgmt-elastic/tsp-location.yaml index 06054aca0c7d..22160be6eb73 100644 --- a/sdk/elastic/azure-mgmt-elastic/tsp-location.yaml +++ b/sdk/elastic/azure-mgmt-elastic/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/elastic/resource-manager/Microsoft.Elastic/Elastic -commit: 653bc50e3f2aa8b45ae202276a04976177dfe216 +commit: f398d14cf518231c3512b317db36c431794d1a83 repo: Azure/azure-rest-api-specs additionalDirectories: