diff --git a/sdk/applicationinsights/azure-mgmt-applicationinsights/README.md b/sdk/applicationinsights/azure-mgmt-applicationinsights/README.md index 649c8000f4df..da34bd534b9d 100644 --- a/sdk/applicationinsights/azure-mgmt-applicationinsights/README.md +++ b/sdk/applicationinsights/azure-mgmt-applicationinsights/README.md @@ -1,30 +1,21 @@ -## Microsoft Azure SDK for Python +# Microsoft Azure SDK for Python -This is the Microsoft Azure Application Insights Management Client -Library. +This is the Microsoft Azure Application Insights Management Client Library. +This package has been tested with Python 2.7, 3.5, 3.6, 3.7 and 3.8. +For a more complete view of Azure libraries, see the [Github repo](https://github.com/Azure/azure-sdk-for-python/) -Azure Resource Manager (ARM) is the next generation of management APIs -that replace the old Azure Service Management (ASM). -This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7. +# Usage -For the older Azure Service Management (ASM) libraries, see -[azure-servicemanagement-legacy](https://pypi.python.org/pypi/azure-servicemanagement-legacy) -library. +For code examples, see [Application Insights Management](https://docs.microsoft.com/python/api/overview/azure/) +on docs.microsoft.com. -For a more complete set of Azure libraries, see the -[azure](https://pypi.python.org/pypi/azure) bundle package. -## Usage +# Provide Feedback -For code examples, see [Application Insights -Management](https://docs.microsoft.com/python/api/overview/azure/) on -docs.microsoft.com. - -## Provide Feedback - -If you encounter any bugs or have suggestions, please file an issue in -the [Issues](https://github.com/Azure/azure-sdk-for-python/issues) +If you encounter any bugs or have suggestions, please file an issue in the +[Issues](https://github.com/Azure/azure-sdk-for-python/issues) section of the project. -![image](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-applicationinsights%2FREADME.png) + +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-applicationinsights%2FREADME.png) diff --git a/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2015_05_01/models/__init__.py b/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2015_05_01/models/__init__.py index fa8f959cc5d8..6dbdc63c67ba 100644 --- a/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2015_05_01/models/__init__.py +++ b/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2015_05_01/models/__init__.py @@ -109,6 +109,7 @@ ApplicationType, FlowType, RequestSource, + IngestionMode, PurgeState, FavoriteType, WebTestKind, @@ -176,6 +177,7 @@ 'ApplicationType', 'FlowType', 'RequestSource', + 'IngestionMode', 'PurgeState', 'FavoriteType', 'WebTestKind', diff --git a/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2015_05_01/models/_application_insights_management_client_enums.py b/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2015_05_01/models/_application_insights_management_client_enums.py index 1c2f9886c302..bd218e36d5f1 100644 --- a/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2015_05_01/models/_application_insights_management_client_enums.py +++ b/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2015_05_01/models/_application_insights_management_client_enums.py @@ -28,6 +28,13 @@ class RequestSource(str, Enum): rest = "rest" +class IngestionMode(str, Enum): + + application_insights = "ApplicationInsights" + application_insights_with_diagnostic_settings = "ApplicationInsightsWithDiagnosticSettings" + log_analytics = "LogAnalytics" + + class PurgeState(str, Enum): pending = "pending" diff --git a/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2015_05_01/models/_models.py b/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2015_05_01/models/_models.py index 472d68d45031..9cb61dec4366 100644 --- a/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2015_05_01/models/_models.py +++ b/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2015_05_01/models/_models.py @@ -236,6 +236,12 @@ class ApplicationInsightsComponent(ComponentsResource): resources. :vartype private_link_scoped_resources: list[~azure.mgmt.applicationinsights.v2015_05_01.models.PrivateLinkScopedResource] + :param ingestion_mode: Indicates the flow of the ingestion. Possible + values include: 'ApplicationInsights', + 'ApplicationInsightsWithDiagnosticSettings', 'LogAnalytics'. Default + value: "ApplicationInsights" . + :type ingestion_mode: str or + ~azure.mgmt.applicationinsights.v2015_05_01.models.IngestionMode """ _validation = { @@ -280,6 +286,7 @@ class ApplicationInsightsComponent(ComponentsResource): 'disable_ip_masking': {'key': 'properties.DisableIpMasking', 'type': 'bool'}, 'immediate_purge_data_on30_days': {'key': 'properties.ImmediatePurgeDataOn30Days', 'type': 'bool'}, 'private_link_scoped_resources': {'key': 'properties.PrivateLinkScopedResources', 'type': '[PrivateLinkScopedResource]'}, + 'ingestion_mode': {'key': 'properties.IngestionMode', 'type': 'str'}, } def __init__(self, **kwargs): @@ -302,6 +309,7 @@ def __init__(self, **kwargs): self.disable_ip_masking = kwargs.get('disable_ip_masking', None) self.immediate_purge_data_on30_days = kwargs.get('immediate_purge_data_on30_days', None) self.private_link_scoped_resources = None + self.ingestion_mode = kwargs.get('ingestion_mode', "ApplicationInsights") class ApplicationInsightsComponentAnalyticsItem(Model): diff --git a/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2015_05_01/models/_models_py3.py b/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2015_05_01/models/_models_py3.py index 9d4210e5ffd9..d87f21d5c064 100644 --- a/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2015_05_01/models/_models_py3.py +++ b/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2015_05_01/models/_models_py3.py @@ -236,6 +236,12 @@ class ApplicationInsightsComponent(ComponentsResource): resources. :vartype private_link_scoped_resources: list[~azure.mgmt.applicationinsights.v2015_05_01.models.PrivateLinkScopedResource] + :param ingestion_mode: Indicates the flow of the ingestion. Possible + values include: 'ApplicationInsights', + 'ApplicationInsightsWithDiagnosticSettings', 'LogAnalytics'. Default + value: "ApplicationInsights" . + :type ingestion_mode: str or + ~azure.mgmt.applicationinsights.v2015_05_01.models.IngestionMode """ _validation = { @@ -280,9 +286,10 @@ class ApplicationInsightsComponent(ComponentsResource): 'disable_ip_masking': {'key': 'properties.DisableIpMasking', 'type': 'bool'}, 'immediate_purge_data_on30_days': {'key': 'properties.ImmediatePurgeDataOn30Days', 'type': 'bool'}, 'private_link_scoped_resources': {'key': 'properties.PrivateLinkScopedResources', 'type': '[PrivateLinkScopedResource]'}, + 'ingestion_mode': {'key': 'properties.IngestionMode', 'type': 'str'}, } - def __init__(self, *, location: str, kind: str, tags=None, application_type="web", flow_type="Bluefield", request_source="rest", hockey_app_id: str=None, sampling_percentage: float=None, retention_in_days: int=90, disable_ip_masking: bool=None, immediate_purge_data_on30_days: bool=None, **kwargs) -> None: + def __init__(self, *, location: str, kind: str, tags=None, application_type="web", flow_type="Bluefield", request_source="rest", hockey_app_id: str=None, sampling_percentage: float=None, retention_in_days: int=90, disable_ip_masking: bool=None, immediate_purge_data_on30_days: bool=None, ingestion_mode="ApplicationInsights", **kwargs) -> None: super(ApplicationInsightsComponent, self).__init__(location=location, tags=tags, **kwargs) self.kind = kind self.application_id = None @@ -302,6 +309,7 @@ def __init__(self, *, location: str, kind: str, tags=None, application_type="web self.disable_ip_masking = disable_ip_masking self.immediate_purge_data_on30_days = immediate_purge_data_on30_days self.private_link_scoped_resources = None + self.ingestion_mode = ingestion_mode class ApplicationInsightsComponentAnalyticsItem(Model): diff --git a/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2015_05_01/operations/_workbooks_operations.py b/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2015_05_01/operations/_workbooks_operations.py index 48aee77b9de6..eec756ef14e6 100644 --- a/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2015_05_01/operations/_workbooks_operations.py +++ b/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2015_05_01/operations/_workbooks_operations.py @@ -121,7 +121,7 @@ def internal_paging(next_link=None): deserialized = models.WorkbookPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized - list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks'} + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/workbooks'} def get( self, resource_group_name, resource_name, custom_headers=None, raw=False, **operation_config): @@ -183,7 +183,7 @@ def get( return client_raw_response return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}'} + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}'} def delete( self, resource_group_name, resource_name, custom_headers=None, raw=False, **operation_config): @@ -237,7 +237,7 @@ def delete( if raw: client_raw_response = ClientRawResponse(None, response) return client_raw_response - delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}'} + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}'} def create_or_update( self, resource_group_name, resource_name, workbook_properties, custom_headers=None, raw=False, **operation_config): @@ -309,7 +309,7 @@ def create_or_update( return client_raw_response return deserialized - create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}'} + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}'} def update( self, resource_group_name, resource_name, workbook_properties, custom_headers=None, raw=False, **operation_config): @@ -379,4 +379,4 @@ def update( return client_raw_response return deserialized - update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}'} + update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}'} diff --git a/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2018_05_01_preview/models/__init__.py b/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2018_05_01_preview/models/__init__.py index ba5030f74719..a7a170a5aee3 100644 --- a/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2018_05_01_preview/models/__init__.py +++ b/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2018_05_01_preview/models/__init__.py @@ -37,6 +37,7 @@ FlowType, RequestSource, PublicNetworkAccessType, + IngestionMode, PurgeState, ) @@ -56,5 +57,6 @@ 'FlowType', 'RequestSource', 'PublicNetworkAccessType', + 'IngestionMode', 'PurgeState', ] diff --git a/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2018_05_01_preview/models/_application_insights_management_client_enums.py b/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2018_05_01_preview/models/_application_insights_management_client_enums.py index cab8df5318db..95991581077a 100644 --- a/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2018_05_01_preview/models/_application_insights_management_client_enums.py +++ b/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2018_05_01_preview/models/_application_insights_management_client_enums.py @@ -34,6 +34,13 @@ class PublicNetworkAccessType(str, Enum): disabled = "Disabled" #: Disables public connectivity to Application Insights through public DNS. +class IngestionMode(str, Enum): + + application_insights = "ApplicationInsights" + application_insights_with_diagnostic_settings = "ApplicationInsightsWithDiagnosticSettings" + log_analytics = "LogAnalytics" + + class PurgeState(str, Enum): pending = "pending" diff --git a/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2018_05_01_preview/models/_models.py b/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2018_05_01_preview/models/_models.py index 7d95273618e2..fea34f3457d6 100644 --- a/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2018_05_01_preview/models/_models.py +++ b/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2018_05_01_preview/models/_models.py @@ -146,6 +146,12 @@ class ApplicationInsightsComponent(ComponentsResource): 'Disabled'. Default value: "Enabled" . :type public_network_access_for_query: str or ~azure.mgmt.applicationinsights.v2018_05_01_preview.models.PublicNetworkAccessType + :param ingestion_mode: Indicates the flow of the ingestion. Possible + values include: 'ApplicationInsights', + 'ApplicationInsightsWithDiagnosticSettings', 'LogAnalytics'. Default + value: "ApplicationInsights" . + :type ingestion_mode: str or + ~azure.mgmt.applicationinsights.v2018_05_01_preview.models.IngestionMode """ _validation = { @@ -192,6 +198,7 @@ class ApplicationInsightsComponent(ComponentsResource): 'private_link_scoped_resources': {'key': 'properties.PrivateLinkScopedResources', 'type': '[PrivateLinkScopedResource]'}, 'public_network_access_for_ingestion': {'key': 'properties.publicNetworkAccessForIngestion', 'type': 'str'}, 'public_network_access_for_query': {'key': 'properties.publicNetworkAccessForQuery', 'type': 'str'}, + 'ingestion_mode': {'key': 'properties.IngestionMode', 'type': 'str'}, } def __init__(self, **kwargs): @@ -216,6 +223,7 @@ def __init__(self, **kwargs): self.private_link_scoped_resources = None self.public_network_access_for_ingestion = kwargs.get('public_network_access_for_ingestion', "Enabled") self.public_network_access_for_query = kwargs.get('public_network_access_for_query', "Enabled") + self.ingestion_mode = kwargs.get('ingestion_mode', "ApplicationInsights") class ApplicationInsightsComponentProactiveDetectionConfiguration(Model): diff --git a/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2018_05_01_preview/models/_models_py3.py b/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2018_05_01_preview/models/_models_py3.py index ce015182f99d..aff00d00ee4d 100644 --- a/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2018_05_01_preview/models/_models_py3.py +++ b/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2018_05_01_preview/models/_models_py3.py @@ -146,6 +146,12 @@ class ApplicationInsightsComponent(ComponentsResource): 'Disabled'. Default value: "Enabled" . :type public_network_access_for_query: str or ~azure.mgmt.applicationinsights.v2018_05_01_preview.models.PublicNetworkAccessType + :param ingestion_mode: Indicates the flow of the ingestion. Possible + values include: 'ApplicationInsights', + 'ApplicationInsightsWithDiagnosticSettings', 'LogAnalytics'. Default + value: "ApplicationInsights" . + :type ingestion_mode: str or + ~azure.mgmt.applicationinsights.v2018_05_01_preview.models.IngestionMode """ _validation = { @@ -192,9 +198,10 @@ class ApplicationInsightsComponent(ComponentsResource): 'private_link_scoped_resources': {'key': 'properties.PrivateLinkScopedResources', 'type': '[PrivateLinkScopedResource]'}, 'public_network_access_for_ingestion': {'key': 'properties.publicNetworkAccessForIngestion', 'type': 'str'}, 'public_network_access_for_query': {'key': 'properties.publicNetworkAccessForQuery', 'type': 'str'}, + 'ingestion_mode': {'key': 'properties.IngestionMode', 'type': 'str'}, } - def __init__(self, *, location: str, kind: str, tags=None, application_type="web", flow_type="Bluefield", request_source="rest", hockey_app_id: str=None, sampling_percentage: float=None, retention_in_days: int=90, disable_ip_masking: bool=None, immediate_purge_data_on30_days: bool=None, public_network_access_for_ingestion="Enabled", public_network_access_for_query="Enabled", **kwargs) -> None: + def __init__(self, *, location: str, kind: str, tags=None, application_type="web", flow_type="Bluefield", request_source="rest", hockey_app_id: str=None, sampling_percentage: float=None, retention_in_days: int=90, disable_ip_masking: bool=None, immediate_purge_data_on30_days: bool=None, public_network_access_for_ingestion="Enabled", public_network_access_for_query="Enabled", ingestion_mode="ApplicationInsights", **kwargs) -> None: super(ApplicationInsightsComponent, self).__init__(location=location, tags=tags, **kwargs) self.kind = kind self.application_id = None @@ -216,6 +223,7 @@ def __init__(self, *, location: str, kind: str, tags=None, application_type="web self.private_link_scoped_resources = None self.public_network_access_for_ingestion = public_network_access_for_ingestion self.public_network_access_for_query = public_network_access_for_query + self.ingestion_mode = ingestion_mode class ApplicationInsightsComponentProactiveDetectionConfiguration(Model): diff --git a/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2018_06_17_preview/operations/_workbooks_operations.py b/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2018_06_17_preview/operations/_workbooks_operations.py index 18e678e06030..33b4df62a469 100644 --- a/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2018_06_17_preview/operations/_workbooks_operations.py +++ b/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2018_06_17_preview/operations/_workbooks_operations.py @@ -125,7 +125,7 @@ def internal_paging(next_link=None): deserialized = models.WorkbookPaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized - list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks'} + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/workbooks'} def get( self, resource_group_name, resource_name, custom_headers=None, raw=False, **operation_config): @@ -188,7 +188,7 @@ def get( return client_raw_response return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}'} + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}'} def delete( self, resource_group_name, resource_name, custom_headers=None, raw=False, **operation_config): @@ -242,7 +242,7 @@ def delete( if raw: client_raw_response = ClientRawResponse(None, response) return client_raw_response - delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}'} + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}'} def create_or_update( self, resource_group_name, resource_name, source_id, workbook_properties, custom_headers=None, raw=False, **operation_config): @@ -319,7 +319,7 @@ def create_or_update( return client_raw_response return deserialized - create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}'} + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}'} def update( self, resource_group_name, resource_name, source_id, workbook_update_parameters=None, custom_headers=None, raw=False, **operation_config): @@ -397,4 +397,4 @@ def update( return client_raw_response return deserialized - update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}'} + update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}'} diff --git a/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2019_10_17_preview/operations/_workbook_templates_operations.py b/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2019_10_17_preview/operations/_workbook_templates_operations.py index 17066285b1a8..d639ac3719f5 100644 --- a/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2019_10_17_preview/operations/_workbook_templates_operations.py +++ b/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2019_10_17_preview/operations/_workbook_templates_operations.py @@ -105,7 +105,7 @@ def internal_paging(next_link=None): deserialized = models.WorkbookTemplatePaged(internal_paging, self._deserialize.dependencies, header_dict) return deserialized - list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooktemplates'} + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/workbooktemplates'} def get( self, resource_group_name, resource_name, custom_headers=None, raw=False, **operation_config): @@ -168,7 +168,7 @@ def get( return client_raw_response return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooktemplates/{resourceName}'} + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/workbooktemplates/{resourceName}'} def delete( self, resource_group_name, resource_name, custom_headers=None, raw=False, **operation_config): @@ -222,7 +222,7 @@ def delete( if raw: client_raw_response = ClientRawResponse(None, response) return client_raw_response - delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooktemplates/{resourceName}'} + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/workbooktemplates/{resourceName}'} def create_or_update( self, resource_group_name, resource_name, workbook_template_properties, custom_headers=None, raw=False, **operation_config): @@ -295,7 +295,7 @@ def create_or_update( return client_raw_response return deserialized - create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooktemplates/{resourceName}'} + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/workbooktemplates/{resourceName}'} def update( self, resource_group_name, resource_name, workbook_template_update_parameters=None, custom_headers=None, raw=False, **operation_config): @@ -369,4 +369,4 @@ def update( return client_raw_response return deserialized - update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooktemplates/{resourceName}'} + update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/workbooktemplates/{resourceName}'} diff --git a/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2020_02_02_preview/models/__init__.py b/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2020_02_02_preview/models/__init__.py index cbde4cca8f30..e354b6a664ac 100644 --- a/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2020_02_02_preview/models/__init__.py +++ b/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2020_02_02_preview/models/__init__.py @@ -33,6 +33,7 @@ FlowType, RequestSource, PublicNetworkAccessType, + IngestionMode, PurgeState, ) @@ -50,5 +51,6 @@ 'FlowType', 'RequestSource', 'PublicNetworkAccessType', + 'IngestionMode', 'PurgeState', ] diff --git a/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2020_02_02_preview/models/_application_insights_management_client_enums.py b/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2020_02_02_preview/models/_application_insights_management_client_enums.py index cab8df5318db..95991581077a 100644 --- a/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2020_02_02_preview/models/_application_insights_management_client_enums.py +++ b/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2020_02_02_preview/models/_application_insights_management_client_enums.py @@ -34,6 +34,13 @@ class PublicNetworkAccessType(str, Enum): disabled = "Disabled" #: Disables public connectivity to Application Insights through public DNS. +class IngestionMode(str, Enum): + + application_insights = "ApplicationInsights" + application_insights_with_diagnostic_settings = "ApplicationInsightsWithDiagnosticSettings" + log_analytics = "LogAnalytics" + + class PurgeState(str, Enum): pending = "pending" diff --git a/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2020_02_02_preview/models/_models.py b/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2020_02_02_preview/models/_models.py index 256b50e40b1e..b8951324e122 100644 --- a/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2020_02_02_preview/models/_models.py +++ b/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2020_02_02_preview/models/_models.py @@ -135,6 +135,9 @@ class ApplicationInsightsComponent(ComponentsResource): :param workspace_resource_id: Required. ResourceId of the log analytics workspace which the data will be ingested to. :type workspace_resource_id: str + :ivar la_migration_date: The date which the component got migrated to LA, + in ISO 8601 format. + :vartype la_migration_date: datetime :ivar private_link_scoped_resources: List of linked private link scope resources. :vartype private_link_scoped_resources: @@ -149,6 +152,12 @@ class ApplicationInsightsComponent(ComponentsResource): 'Disabled'. Default value: "Enabled" . :type public_network_access_for_query: str or ~azure.mgmt.applicationinsights.v2020_02_02_preview.models.PublicNetworkAccessType + :param ingestion_mode: Indicates the flow of the ingestion. Possible + values include: 'ApplicationInsights', + 'ApplicationInsightsWithDiagnosticSettings', 'LogAnalytics'. Default + value: "LogAnalytics" . + :type ingestion_mode: str or + ~azure.mgmt.applicationinsights.v2020_02_02_preview.models.IngestionMode """ _validation = { @@ -168,6 +177,7 @@ class ApplicationInsightsComponent(ComponentsResource): 'connection_string': {'readonly': True}, 'retention_in_days': {'readonly': True}, 'workspace_resource_id': {'required': True}, + 'la_migration_date': {'readonly': True}, 'private_link_scoped_resources': {'readonly': True}, } @@ -195,9 +205,11 @@ class ApplicationInsightsComponent(ComponentsResource): 'disable_ip_masking': {'key': 'properties.DisableIpMasking', 'type': 'bool'}, 'immediate_purge_data_on30_days': {'key': 'properties.ImmediatePurgeDataOn30Days', 'type': 'bool'}, 'workspace_resource_id': {'key': 'properties.WorkspaceResourceId', 'type': 'str'}, + 'la_migration_date': {'key': 'properties.LaMigrationDate', 'type': 'iso-8601'}, 'private_link_scoped_resources': {'key': 'properties.PrivateLinkScopedResources', 'type': '[PrivateLinkScopedResource]'}, 'public_network_access_for_ingestion': {'key': 'properties.publicNetworkAccessForIngestion', 'type': 'str'}, 'public_network_access_for_query': {'key': 'properties.publicNetworkAccessForQuery', 'type': 'str'}, + 'ingestion_mode': {'key': 'properties.IngestionMode', 'type': 'str'}, } def __init__(self, **kwargs): @@ -220,9 +232,11 @@ def __init__(self, **kwargs): self.disable_ip_masking = kwargs.get('disable_ip_masking', None) self.immediate_purge_data_on30_days = kwargs.get('immediate_purge_data_on30_days', None) self.workspace_resource_id = kwargs.get('workspace_resource_id', None) + self.la_migration_date = None self.private_link_scoped_resources = None self.public_network_access_for_ingestion = kwargs.get('public_network_access_for_ingestion', "Enabled") self.public_network_access_for_query = kwargs.get('public_network_access_for_query', "Enabled") + self.ingestion_mode = kwargs.get('ingestion_mode', "LogAnalytics") class CloudError(Model): diff --git a/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2020_02_02_preview/models/_models_py3.py b/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2020_02_02_preview/models/_models_py3.py index 9b8fcb866f9b..fbb2aaaf29dd 100644 --- a/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2020_02_02_preview/models/_models_py3.py +++ b/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2020_02_02_preview/models/_models_py3.py @@ -135,6 +135,9 @@ class ApplicationInsightsComponent(ComponentsResource): :param workspace_resource_id: Required. ResourceId of the log analytics workspace which the data will be ingested to. :type workspace_resource_id: str + :ivar la_migration_date: The date which the component got migrated to LA, + in ISO 8601 format. + :vartype la_migration_date: datetime :ivar private_link_scoped_resources: List of linked private link scope resources. :vartype private_link_scoped_resources: @@ -149,6 +152,12 @@ class ApplicationInsightsComponent(ComponentsResource): 'Disabled'. Default value: "Enabled" . :type public_network_access_for_query: str or ~azure.mgmt.applicationinsights.v2020_02_02_preview.models.PublicNetworkAccessType + :param ingestion_mode: Indicates the flow of the ingestion. Possible + values include: 'ApplicationInsights', + 'ApplicationInsightsWithDiagnosticSettings', 'LogAnalytics'. Default + value: "LogAnalytics" . + :type ingestion_mode: str or + ~azure.mgmt.applicationinsights.v2020_02_02_preview.models.IngestionMode """ _validation = { @@ -168,6 +177,7 @@ class ApplicationInsightsComponent(ComponentsResource): 'connection_string': {'readonly': True}, 'retention_in_days': {'readonly': True}, 'workspace_resource_id': {'required': True}, + 'la_migration_date': {'readonly': True}, 'private_link_scoped_resources': {'readonly': True}, } @@ -195,12 +205,14 @@ class ApplicationInsightsComponent(ComponentsResource): 'disable_ip_masking': {'key': 'properties.DisableIpMasking', 'type': 'bool'}, 'immediate_purge_data_on30_days': {'key': 'properties.ImmediatePurgeDataOn30Days', 'type': 'bool'}, 'workspace_resource_id': {'key': 'properties.WorkspaceResourceId', 'type': 'str'}, + 'la_migration_date': {'key': 'properties.LaMigrationDate', 'type': 'iso-8601'}, 'private_link_scoped_resources': {'key': 'properties.PrivateLinkScopedResources', 'type': '[PrivateLinkScopedResource]'}, 'public_network_access_for_ingestion': {'key': 'properties.publicNetworkAccessForIngestion', 'type': 'str'}, 'public_network_access_for_query': {'key': 'properties.publicNetworkAccessForQuery', 'type': 'str'}, + 'ingestion_mode': {'key': 'properties.IngestionMode', 'type': 'str'}, } - def __init__(self, *, location: str, kind: str, workspace_resource_id: str, tags=None, application_type="web", flow_type="Bluefield", request_source="rest", hockey_app_id: str=None, sampling_percentage: float=None, disable_ip_masking: bool=None, immediate_purge_data_on30_days: bool=None, public_network_access_for_ingestion="Enabled", public_network_access_for_query="Enabled", **kwargs) -> None: + def __init__(self, *, location: str, kind: str, workspace_resource_id: str, tags=None, application_type="web", flow_type="Bluefield", request_source="rest", hockey_app_id: str=None, sampling_percentage: float=None, disable_ip_masking: bool=None, immediate_purge_data_on30_days: bool=None, public_network_access_for_ingestion="Enabled", public_network_access_for_query="Enabled", ingestion_mode="LogAnalytics", **kwargs) -> None: super(ApplicationInsightsComponent, self).__init__(location=location, tags=tags, **kwargs) self.kind = kind self.application_id = None @@ -220,9 +232,11 @@ def __init__(self, *, location: str, kind: str, workspace_resource_id: str, tags self.disable_ip_masking = disable_ip_masking self.immediate_purge_data_on30_days = immediate_purge_data_on30_days self.workspace_resource_id = workspace_resource_id + self.la_migration_date = None self.private_link_scoped_resources = None self.public_network_access_for_ingestion = public_network_access_for_ingestion self.public_network_access_for_query = public_network_access_for_query + self.ingestion_mode = ingestion_mode class CloudError(Model): diff --git a/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2020_03_01_preview/models/_models.py b/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2020_03_01_preview/models/_models.py index 1d6c7cfb916b..4ec6c316bc8d 100644 --- a/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2020_03_01_preview/models/_models.py +++ b/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2020_03_01_preview/models/_models.py @@ -180,9 +180,10 @@ def __init__(self, **kwargs): class ErrorResponse(Model): - """Describe the format of an Error response. + """Error response indicates Insights service is not able to process the + incoming request. The reason is provided in the error message. - :param code: Error code + :param code: Error code. :type code: str :param message: Error message indicating why the operation failed. :type message: str diff --git a/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2020_03_01_preview/models/_models_py3.py b/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2020_03_01_preview/models/_models_py3.py index 887bad54fdf9..41d99be08d1a 100644 --- a/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2020_03_01_preview/models/_models_py3.py +++ b/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2020_03_01_preview/models/_models_py3.py @@ -180,9 +180,10 @@ def __init__(self, *, linked_storage_account: str=None, **kwargs) -> None: class ErrorResponse(Model): - """Describe the format of an Error response. + """Error response indicates Insights service is not able to process the + incoming request. The reason is provided in the error message. - :param code: Error code + :param code: Error code. :type code: str :param message: Error message indicating why the operation failed. :type message: str diff --git a/sdk/applicationinsights/azure-mgmt-applicationinsights/setup.py b/sdk/applicationinsights/azure-mgmt-applicationinsights/setup.py index 76f07ebb75aa..023d9e434afb 100644 --- a/sdk/applicationinsights/azure-mgmt-applicationinsights/setup.py +++ b/sdk/applicationinsights/azure-mgmt-applicationinsights/setup.py @@ -36,7 +36,9 @@ pass # Version extraction inspired from 'requests' -with open(os.path.join(package_folder_path, 'version.py'), 'r') as fd: +with open(os.path.join(package_folder_path, 'version.py') + if os.path.exists(os.path.join(package_folder_path, 'version.py')) + else os.path.join(package_folder_path, '_version.py'), 'r') as fd: version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE).group(1) @@ -64,10 +66,10 @@ 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', 'License :: OSI Approved :: MIT License', ], zip_safe=False,