From 66514d28082708c277733c3530e8ba2c43bda291 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot Date: Thu, 10 Oct 2019 10:11:50 +0000 Subject: [PATCH 1/3] Generated from e0592724e37ca934b73fe8b4382b30fb96a5a468 Update components_API.json --- .../azure/mgmt/applicationinsights/models/_models.py | 5 +++++ .../azure/mgmt/applicationinsights/models/_models_py3.py | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/models/_models.py b/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/models/_models.py index d5e7d83973c0..fffd60fffc2a 100644 --- a/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/models/_models.py +++ b/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/models/_models.py @@ -221,6 +221,9 @@ class ApplicationInsightsComponent(ComponentsResource): application being monitored that is being sampled for Application Insights telemetry. :type sampling_percentage: float + :param retention_in_days: Retention period by number of days. Default + value: 90 . + :type retention_in_days: int """ _validation = { @@ -258,6 +261,7 @@ class ApplicationInsightsComponent(ComponentsResource): 'hockey_app_token': {'key': 'properties.HockeyAppToken', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'sampling_percentage': {'key': 'properties.SamplingPercentage', 'type': 'float'}, + 'retention_in_days': {'key': 'properties.RetentionInDays', 'type': 'int'}, } def __init__(self, **kwargs): @@ -275,6 +279,7 @@ def __init__(self, **kwargs): self.hockey_app_token = None self.provisioning_state = None self.sampling_percentage = kwargs.get('sampling_percentage', None) + self.retention_in_days = kwargs.get('retention_in_days', 90) class ApplicationInsightsComponentAnalyticsItem(Model): diff --git a/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/models/_models_py3.py b/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/models/_models_py3.py index eb31c21c949c..8af6f633ef5b 100644 --- a/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/models/_models_py3.py +++ b/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/models/_models_py3.py @@ -221,6 +221,9 @@ class ApplicationInsightsComponent(ComponentsResource): application being monitored that is being sampled for Application Insights telemetry. :type sampling_percentage: float + :param retention_in_days: Retention period by number of days. Default + value: 90 . + :type retention_in_days: int """ _validation = { @@ -258,9 +261,10 @@ class ApplicationInsightsComponent(ComponentsResource): 'hockey_app_token': {'key': 'properties.HockeyAppToken', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'sampling_percentage': {'key': 'properties.SamplingPercentage', 'type': 'float'}, + 'retention_in_days': {'key': 'properties.RetentionInDays', 'type': 'int'}, } - 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, **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, **kwargs) -> None: super(ApplicationInsightsComponent, self).__init__(location=location, tags=tags, **kwargs) self.kind = kind self.application_id = None @@ -275,6 +279,7 @@ def __init__(self, *, location: str, kind: str, tags=None, application_type="web self.hockey_app_token = None self.provisioning_state = None self.sampling_percentage = sampling_percentage + self.retention_in_days = retention_in_days class ApplicationInsightsComponentAnalyticsItem(Model): From c51e138328f86c8decedb8fb043a603cfe1b0750 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot Date: Wed, 16 Oct 2019 10:38:53 +0000 Subject: [PATCH 2/3] Generated from e48623cf3e11e5c365d9bd2984f7ad50bad82bc6 Update components_API.json --- .../azure/mgmt/applicationinsights/models/_models.py | 3 +-- .../azure/mgmt/applicationinsights/models/_models_py3.py | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/models/_models.py b/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/models/_models.py index fffd60fffc2a..e7ab1f9ea194 100644 --- a/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/models/_models.py +++ b/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/models/_models.py @@ -221,8 +221,7 @@ class ApplicationInsightsComponent(ComponentsResource): application being monitored that is being sampled for Application Insights telemetry. :type sampling_percentage: float - :param retention_in_days: Retention period by number of days. Default - value: 90 . + :param retention_in_days: Retention period in days. Default value: 90 . :type retention_in_days: int """ diff --git a/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/models/_models_py3.py b/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/models/_models_py3.py index 8af6f633ef5b..4a47c003c9c8 100644 --- a/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/models/_models_py3.py +++ b/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/models/_models_py3.py @@ -221,8 +221,7 @@ class ApplicationInsightsComponent(ComponentsResource): application being monitored that is being sampled for Application Insights telemetry. :type sampling_percentage: float - :param retention_in_days: Retention period by number of days. Default - value: 90 . + :param retention_in_days: Retention period in days. Default value: 90 . :type retention_in_days: int """ From 4840beb3130405fff87c78ba08e83a7a78d65c27 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot Date: Thu, 17 Oct 2019 11:59:06 +0000 Subject: [PATCH 3/3] Generated from c240f7a560003c13955ea9e6abe2baa4f3946952 add new examples --- .../azure/mgmt/applicationinsights/models/_models.py | 9 +++++---- .../mgmt/applicationinsights/models/_models_py3.py | 11 ++++++----- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/models/_models.py b/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/models/_models.py index e7ab1f9ea194..a39793212eee 100644 --- a/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/models/_models.py +++ b/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/models/_models.py @@ -221,8 +221,8 @@ class ApplicationInsightsComponent(ComponentsResource): application being monitored that is being sampled for Application Insights telemetry. :type sampling_percentage: float - :param retention_in_days: Retention period in days. Default value: 90 . - :type retention_in_days: int + :ivar connection_string: Application Insights component connection string. + :vartype connection_string: str """ _validation = { @@ -239,6 +239,7 @@ class ApplicationInsightsComponent(ComponentsResource): 'tenant_id': {'readonly': True}, 'hockey_app_token': {'readonly': True}, 'provisioning_state': {'readonly': True}, + 'connection_string': {'readonly': True}, } _attribute_map = { @@ -260,7 +261,7 @@ class ApplicationInsightsComponent(ComponentsResource): 'hockey_app_token': {'key': 'properties.HockeyAppToken', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'sampling_percentage': {'key': 'properties.SamplingPercentage', 'type': 'float'}, - 'retention_in_days': {'key': 'properties.RetentionInDays', 'type': 'int'}, + 'connection_string': {'key': 'properties.ConnectionString', 'type': 'str'}, } def __init__(self, **kwargs): @@ -278,7 +279,7 @@ def __init__(self, **kwargs): self.hockey_app_token = None self.provisioning_state = None self.sampling_percentage = kwargs.get('sampling_percentage', None) - self.retention_in_days = kwargs.get('retention_in_days', 90) + self.connection_string = None class ApplicationInsightsComponentAnalyticsItem(Model): diff --git a/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/models/_models_py3.py b/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/models/_models_py3.py index 4a47c003c9c8..29a11b2acc97 100644 --- a/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/models/_models_py3.py +++ b/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/models/_models_py3.py @@ -221,8 +221,8 @@ class ApplicationInsightsComponent(ComponentsResource): application being monitored that is being sampled for Application Insights telemetry. :type sampling_percentage: float - :param retention_in_days: Retention period in days. Default value: 90 . - :type retention_in_days: int + :ivar connection_string: Application Insights component connection string. + :vartype connection_string: str """ _validation = { @@ -239,6 +239,7 @@ class ApplicationInsightsComponent(ComponentsResource): 'tenant_id': {'readonly': True}, 'hockey_app_token': {'readonly': True}, 'provisioning_state': {'readonly': True}, + 'connection_string': {'readonly': True}, } _attribute_map = { @@ -260,10 +261,10 @@ class ApplicationInsightsComponent(ComponentsResource): 'hockey_app_token': {'key': 'properties.HockeyAppToken', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'sampling_percentage': {'key': 'properties.SamplingPercentage', 'type': 'float'}, - 'retention_in_days': {'key': 'properties.RetentionInDays', 'type': 'int'}, + 'connection_string': {'key': 'properties.ConnectionString', '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, **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, **kwargs) -> None: super(ApplicationInsightsComponent, self).__init__(location=location, tags=tags, **kwargs) self.kind = kind self.application_id = None @@ -278,7 +279,7 @@ def __init__(self, *, location: str, kind: str, tags=None, application_type="web self.hockey_app_token = None self.provisioning_state = None self.sampling_percentage = sampling_percentage - self.retention_in_days = retention_in_days + self.connection_string = None class ApplicationInsightsComponentAnalyticsItem(Model):