From ea5b3396b9b0ed1f7bc5b1997f971580824f1ae6 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 8 Jun 2021 19:12:12 +0000 Subject: [PATCH] CodeGen from PR 13932 in Azure/azure-rest-api-specs Merge 60587c81f0d80252da760904179103358da8cbcd into 9820e5b189076cb9b329b6968a8d2fc405eef2f6 --- .../azure-mgmt-timeseriesinsights/MANIFEST.in | 1 + .../azure-mgmt-timeseriesinsights/_meta.json | 11 + .../mgmt/timeseriesinsights/_metadata.json | 107 +++++++++ .../_time_series_insights_client.py | 19 ++ .../azure/mgmt/timeseriesinsights/_version.py | 2 +- .../aio/_time_series_insights_client.py | 18 ++ .../operations/_access_policies_operations.py | 10 +- .../operations/_environments_operations.py | 24 +- .../operations/_event_sources_operations.py | 10 +- .../aio/operations/_operations.py | 2 +- .../_reference_data_sets_operations.py | 10 +- .../timeseriesinsights/models/__init__.py | 2 + .../mgmt/timeseriesinsights/models/_models.py | 180 ++++++++++++--- .../timeseriesinsights/models/_models_py3.py | 218 +++++++++++++++--- .../_time_series_insights_client_enums.py | 9 + .../operations/_environments_operations.py | 8 +- 16 files changed, 531 insertions(+), 100 deletions(-) create mode 100644 sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/_meta.json create mode 100644 sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/_metadata.json diff --git a/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/MANIFEST.in b/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/MANIFEST.in index a3cb07df8765..3a9b6517412b 100644 --- a/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/MANIFEST.in +++ b/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/MANIFEST.in @@ -1,3 +1,4 @@ +include _meta.json recursive-include tests *.py *.yaml include *.md include azure/__init__.py diff --git a/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/_meta.json b/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/_meta.json new file mode 100644 index 000000000000..5f6deb5eb77b --- /dev/null +++ b/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/_meta.json @@ -0,0 +1,11 @@ +{ + "autorest": "3.4.2", + "use": [ + "@autorest/python@5.8.0", + "@autorest/modelerfour@4.19.2" + ], + "commit": "a1c8d09613ff091ab368db1ed1746f08e151185b", + "repository_url": "https://github.com/Azure/azure-rest-api-specs", + "autorest_command": "autorest specification/timeseriesinsights/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.0 --use=@autorest/modelerfour@4.19.2 --version=3.4.2", + "readme": "specification/timeseriesinsights/resource-manager/readme.md" +} \ No newline at end of file diff --git a/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/_metadata.json b/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/_metadata.json new file mode 100644 index 000000000000..20137f37c776 --- /dev/null +++ b/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/_metadata.json @@ -0,0 +1,107 @@ +{ + "chosen_version": "2020-05-15", + "total_api_version_list": ["2020-05-15"], + "client": { + "name": "TimeSeriesInsightsClient", + "filename": "_time_series_insights_client", + "description": "Time Series Insights client.", + "base_url": "\u0027https://management.azure.com\u0027", + "custom_base_url": null, + "azure_arm": true, + "has_lro_operations": true, + "client_side_validation": false, + "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"TimeSeriesInsightsClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}}}", + "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"TimeSeriesInsightsClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}" + }, + "global_parameters": { + "sync": { + "credential": { + "signature": "credential, # type: \"TokenCredential\"", + "description": "Credential needed for the client to connect to Azure.", + "docstring_type": "~azure.core.credentials.TokenCredential", + "required": true + }, + "subscription_id": { + "signature": "subscription_id, # type: str", + "description": "Azure Subscription ID.", + "docstring_type": "str", + "required": true + } + }, + "async": { + "credential": { + "signature": "credential: \"AsyncTokenCredential\",", + "description": "Credential needed for the client to connect to Azure.", + "docstring_type": "~azure.core.credentials_async.AsyncTokenCredential", + "required": true + }, + "subscription_id": { + "signature": "subscription_id: str,", + "description": "Azure Subscription ID.", + "docstring_type": "str", + "required": true + } + }, + "constant": { + }, + "call": "credential, subscription_id", + "service_client_specific": { + "sync": { + "api_version": { + "signature": "api_version=None, # type: Optional[str]", + "description": "API version to use if no profile is provided, or if missing in profile.", + "docstring_type": "str", + "required": false + }, + "base_url": { + "signature": "base_url=None, # type: Optional[str]", + "description": "Service URL", + "docstring_type": "str", + "required": false + }, + "profile": { + "signature": "profile=KnownProfiles.default, # type: KnownProfiles", + "description": "A profile definition, from KnownProfiles to dict.", + "docstring_type": "azure.profiles.KnownProfiles", + "required": false + } + }, + "async": { + "api_version": { + "signature": "api_version: Optional[str] = None,", + "description": "API version to use if no profile is provided, or if missing in profile.", + "docstring_type": "str", + "required": false + }, + "base_url": { + "signature": "base_url: Optional[str] = None,", + "description": "Service URL", + "docstring_type": "str", + "required": false + }, + "profile": { + "signature": "profile: KnownProfiles = KnownProfiles.default,", + "description": "A profile definition, from KnownProfiles to dict.", + "docstring_type": "azure.profiles.KnownProfiles", + "required": false + } + } + } + }, + "config": { + "credential": true, + "credential_scopes": ["https://management.azure.com/.default"], + "credential_default_policy_type": "BearerTokenCredentialPolicy", + "credential_default_policy_type_has_async_version": true, + "credential_key_header_name": null, + "sync_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\"]}, \"local\": {\"._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}}", + "async_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\"]}, \"local\": {\".._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}}" + }, + "operation_groups": { + "operations": "Operations", + "environments": "EnvironmentsOperations", + "event_sources": "EventSourcesOperations", + "reference_data_sets": "ReferenceDataSetsOperations", + "access_policies": "AccessPoliciesOperations" + } +} \ No newline at end of file diff --git a/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/_time_series_insights_client.py b/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/_time_series_insights_client.py index bcfab6141c58..2a0ed352edb9 100644 --- a/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/_time_series_insights_client.py +++ b/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/_time_series_insights_client.py @@ -16,6 +16,7 @@ from typing import Any, Optional from azure.core.credentials import TokenCredential + from azure.core.pipeline.transport import HttpRequest, HttpResponse from ._configuration import TimeSeriesInsightsClientConfiguration from .operations import Operations @@ -76,6 +77,24 @@ def __init__( self.access_policies = AccessPoliciesOperations( self._client, self._config, self._serialize, self._deserialize) + def _send_request(self, http_request, **kwargs): + # type: (HttpRequest, Any) -> HttpResponse + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.HttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response + def close(self): # type: () -> None self._client.close() diff --git a/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/_version.py b/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/_version.py index c47f66669f1b..eae7c95b6fbd 100644 --- a/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/_version.py +++ b/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "1.0.0" +VERSION = "0.1.0" diff --git a/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/aio/_time_series_insights_client.py b/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/aio/_time_series_insights_client.py index ce1a71bbaa5a..6b42920e9c4d 100644 --- a/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/aio/_time_series_insights_client.py +++ b/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/aio/_time_series_insights_client.py @@ -8,6 +8,7 @@ from typing import Any, Optional, TYPE_CHECKING +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient from msrest import Deserializer, Serializer @@ -73,6 +74,23 @@ def __init__( self.access_policies = AccessPoliciesOperations( self._client, self._config, self._serialize, self._deserialize) + async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse: + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.AsyncHttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = await self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response + async def close(self) -> None: await self._client.close() diff --git a/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/aio/operations/_access_policies_operations.py b/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/aio/operations/_access_policies_operations.py index ff67c1c316a1..2eb238f7cc76 100644 --- a/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/aio/operations/_access_policies_operations.py +++ b/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/aio/operations/_access_policies_operations.py @@ -46,7 +46,7 @@ async def create_or_update( environment_name: str, access_policy_name: str, parameters: "_models.AccessPolicyCreateOrUpdateParameters", - **kwargs + **kwargs: Any ) -> "_models.AccessPolicyResource": """Create or update an access policy in the specified environment. @@ -120,7 +120,7 @@ async def get( resource_group_name: str, environment_name: str, access_policy_name: str, - **kwargs + **kwargs: Any ) -> "_models.AccessPolicyResource": """Gets the access policy with the specified name in the specified environment. @@ -185,7 +185,7 @@ async def update( environment_name: str, access_policy_name: str, access_policy_update_parameters: "_models.AccessPolicyUpdateParameters", - **kwargs + **kwargs: Any ) -> "_models.AccessPolicyResource": """Updates the access policy with the specified name in the specified subscription, resource group, and environment. @@ -258,7 +258,7 @@ async def delete( resource_group_name: str, environment_name: str, access_policy_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes the access policy with the specified name in the specified subscription, resource group, and environment. @@ -319,7 +319,7 @@ async def list_by_environment( self, resource_group_name: str, environment_name: str, - **kwargs + **kwargs: Any ) -> "_models.AccessPolicyListResponse": """Lists all the available access policies associated with the environment. diff --git a/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/aio/operations/_environments_operations.py b/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/aio/operations/_environments_operations.py index cea17e2e20e8..1606b9c0426e 100644 --- a/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/aio/operations/_environments_operations.py +++ b/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/aio/operations/_environments_operations.py @@ -47,7 +47,7 @@ async def _create_or_update_initial( resource_group_name: str, environment_name: str, parameters: "_models.EnvironmentCreateOrUpdateParameters", - **kwargs + **kwargs: Any ) -> Optional["_models.EnvironmentResource"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.EnvironmentResource"]] error_map = { @@ -105,7 +105,7 @@ async def begin_create_or_update( resource_group_name: str, environment_name: str, parameters: "_models.EnvironmentCreateOrUpdateParameters", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.EnvironmentResource"]: """Create or update an environment in the specified subscription and resource group. @@ -117,8 +117,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.timeseriesinsights.models.EnvironmentCreateOrUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either EnvironmentResource or the result of cls(response) @@ -176,7 +176,7 @@ async def get( resource_group_name: str, environment_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.EnvironmentResource": """Gets the environment with the specified name in the specified subscription and resource group. @@ -241,7 +241,7 @@ async def _update_initial( resource_group_name: str, environment_name: str, environment_update_parameters: "_models.EnvironmentUpdateParameters", - **kwargs + **kwargs: Any ) -> "_models.EnvironmentResource": cls = kwargs.pop('cls', None) # type: ClsType["_models.EnvironmentResource"] error_map = { @@ -294,7 +294,7 @@ async def begin_update( resource_group_name: str, environment_name: str, environment_update_parameters: "_models.EnvironmentUpdateParameters", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.EnvironmentResource"]: """Updates the environment with the specified name in the specified subscription and resource group. @@ -309,8 +309,8 @@ async def begin_update( :type environment_update_parameters: ~azure.mgmt.timeseriesinsights.models.EnvironmentUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either EnvironmentResource or the result of cls(response) @@ -367,7 +367,7 @@ async def delete( self, resource_group_name: str, environment_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes the environment with the specified name in the specified subscription and resource group. @@ -423,7 +423,7 @@ async def delete( async def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> "_models.EnvironmentListResponse": """Lists all the available environments associated with the subscription and within the specified resource group. @@ -477,7 +477,7 @@ async def list_by_resource_group( async def list_by_subscription( self, - **kwargs + **kwargs: Any ) -> "_models.EnvironmentListResponse": """Lists all the available environments within a subscription, irrespective of the resource groups. diff --git a/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/aio/operations/_event_sources_operations.py b/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/aio/operations/_event_sources_operations.py index 69811dff9248..eb5fe25e865b 100644 --- a/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/aio/operations/_event_sources_operations.py +++ b/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/aio/operations/_event_sources_operations.py @@ -46,7 +46,7 @@ async def create_or_update( environment_name: str, event_source_name: str, parameters: "_models.EventSourceCreateOrUpdateParameters", - **kwargs + **kwargs: Any ) -> "_models.EventSourceResource": """Create or update an event source under the specified environment. @@ -120,7 +120,7 @@ async def get( resource_group_name: str, environment_name: str, event_source_name: str, - **kwargs + **kwargs: Any ) -> "_models.EventSourceResource": """Gets the event source with the specified name in the specified environment. @@ -185,7 +185,7 @@ async def update( environment_name: str, event_source_name: str, event_source_update_parameters: "_models.EventSourceUpdateParameters", - **kwargs + **kwargs: Any ) -> "_models.EventSourceResource": """Updates the event source with the specified name in the specified subscription, resource group, and environment. @@ -258,7 +258,7 @@ async def delete( resource_group_name: str, environment_name: str, event_source_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes the event source with the specified name in the specified subscription, resource group, and environment. @@ -319,7 +319,7 @@ async def list_by_environment( self, resource_group_name: str, environment_name: str, - **kwargs + **kwargs: Any ) -> "_models.EventSourceListResponse": """Lists all the available event sources associated with the subscription and within the specified resource group and environment. diff --git a/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/aio/operations/_operations.py b/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/aio/operations/_operations.py index 20d9b14b9586..a81efa19f876 100644 --- a/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/aio/operations/_operations.py +++ b/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/aio/operations/_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.OperationListResult"]: """Lists all of the available Time Series Insights related operations. diff --git a/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/aio/operations/_reference_data_sets_operations.py b/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/aio/operations/_reference_data_sets_operations.py index b6acba43c5b5..fa8b8d353de6 100644 --- a/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/aio/operations/_reference_data_sets_operations.py +++ b/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/aio/operations/_reference_data_sets_operations.py @@ -46,7 +46,7 @@ async def create_or_update( environment_name: str, reference_data_set_name: str, parameters: "_models.ReferenceDataSetCreateOrUpdateParameters", - **kwargs + **kwargs: Any ) -> "_models.ReferenceDataSetResource": """Create or update a reference data set in the specified environment. @@ -120,7 +120,7 @@ async def get( resource_group_name: str, environment_name: str, reference_data_set_name: str, - **kwargs + **kwargs: Any ) -> "_models.ReferenceDataSetResource": """Gets the reference data set with the specified name in the specified environment. @@ -185,7 +185,7 @@ async def update( environment_name: str, reference_data_set_name: str, reference_data_set_update_parameters: "_models.ReferenceDataSetUpdateParameters", - **kwargs + **kwargs: Any ) -> "_models.ReferenceDataSetResource": """Updates the reference data set with the specified name in the specified subscription, resource group, and environment. @@ -258,7 +258,7 @@ async def delete( resource_group_name: str, environment_name: str, reference_data_set_name: str, - **kwargs + **kwargs: Any ) -> None: """Deletes the reference data set with the specified name in the specified subscription, resource group, and environment. @@ -319,7 +319,7 @@ async def list_by_environment( self, resource_group_name: str, environment_name: str, - **kwargs + **kwargs: Any ) -> "_models.ReferenceDataSetListResponse": """Lists all the available reference data sets associated with the subscription and within the specified resource group and environment. diff --git a/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/models/__init__.py b/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/models/__init__.py index 4b1a011e490b..f9f8c7c64d14 100644 --- a/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/models/__init__.py +++ b/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/models/__init__.py @@ -148,6 +148,7 @@ EnvironmentResourceKind, EventSourceKind, EventSourceResourceKind, + IngressStartAtType, IngressState, LocalTimestampFormat, PropertyType, @@ -231,6 +232,7 @@ 'EnvironmentResourceKind', 'EventSourceKind', 'EventSourceResourceKind', + 'IngressStartAtType', 'IngressState', 'LocalTimestampFormat', 'PropertyType', diff --git a/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/models/_models.py b/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/models/_models.py index 750c442e7d12..4b8d9e7ece2f 100644 --- a/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/models/_models.py +++ b/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/models/_models.py @@ -202,6 +202,13 @@ class EventSourceCommonProperties(ResourceProperties): timestamp. If a value isn't specified for timestampPropertyName, or if null or empty-string is specified, the event creation time will be used. :type timestamp_property_name: str + :param type: The type of the ingressStartAt, It can be "EarliestAvailable", + "EventSourceCreationTime", "CustomEnqueuedTime". Possible values include: "EarliestAvailable", + "EventSourceCreationTime", "CustomEnqueuedTime". + :type type: str or ~azure.mgmt.timeseriesinsights.models.IngressStartAtType + :param time: ISO8601 UTC datetime with seconds precision (milliseconds are optional), + specifying the date and time that will be the starting point for Events to be consumed. + :type time: str """ _validation = { @@ -213,6 +220,8 @@ class EventSourceCommonProperties(ResourceProperties): 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'creation_time': {'key': 'creationTime', 'type': 'iso-8601'}, 'timestamp_property_name': {'key': 'timestampPropertyName', 'type': 'str'}, + 'type': {'key': 'ingressStartAt.type', 'type': 'str'}, + 'time': {'key': 'ingressStartAt.time', 'type': 'str'}, } def __init__( @@ -221,6 +230,8 @@ def __init__( ): super(EventSourceCommonProperties, self).__init__(**kwargs) self.timestamp_property_name = kwargs.get('timestamp_property_name', None) + self.type = kwargs.get('type', None) + self.time = kwargs.get('time', None) class AzureEventSourceProperties(EventSourceCommonProperties): @@ -239,6 +250,13 @@ class AzureEventSourceProperties(EventSourceCommonProperties): timestamp. If a value isn't specified for timestampPropertyName, or if null or empty-string is specified, the event creation time will be used. :type timestamp_property_name: str + :param type: The type of the ingressStartAt, It can be "EarliestAvailable", + "EventSourceCreationTime", "CustomEnqueuedTime". Possible values include: "EarliestAvailable", + "EventSourceCreationTime", "CustomEnqueuedTime". + :type type: str or ~azure.mgmt.timeseriesinsights.models.IngressStartAtType + :param time: ISO8601 UTC datetime with seconds precision (milliseconds are optional), + specifying the date and time that will be the starting point for Events to be consumed. + :type time: str :param event_source_resource_id: Required. The resource id of the event source in Azure Resource Manager. :type event_source_resource_id: str @@ -254,6 +272,8 @@ class AzureEventSourceProperties(EventSourceCommonProperties): 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'creation_time': {'key': 'creationTime', 'type': 'iso-8601'}, 'timestamp_property_name': {'key': 'timestampPropertyName', 'type': 'str'}, + 'type': {'key': 'ingressStartAt.type', 'type': 'str'}, + 'time': {'key': 'ingressStartAt.time', 'type': 'str'}, 'event_source_resource_id': {'key': 'eventSourceResourceId', 'type': 'str'}, } @@ -605,17 +625,17 @@ class EnvironmentUpdateParameters(msrest.serialization.Model): You probably want to use the sub-classes and not this class directly. Known sub-classes are: Gen1EnvironmentUpdateParameters, Gen2EnvironmentUpdateParameters. - Variables are only populated by the server, and will be ignored when sending a request. + All required parameters must be populated in order to send to Azure. - :ivar kind: The kind of the environment.Constant filled by server. Possible values include: - "Gen1", "Gen2". - :vartype kind: str or ~azure.mgmt.timeseriesinsights.models.EnvironmentKind + :param kind: Required. The kind of the environment.Constant filled by server. Possible values + include: "Gen1", "Gen2". + :type kind: str or ~azure.mgmt.timeseriesinsights.models.EnvironmentKind :param tags: A set of tags. Key-value pairs of additional properties for the environment. :type tags: dict[str, str] """ _validation = { - 'kind': {'readonly': True}, + 'kind': {'required': True}, } _attribute_map = { @@ -652,6 +672,13 @@ class EventHubEventSourceCommonProperties(AzureEventSourceProperties): timestamp. If a value isn't specified for timestampPropertyName, or if null or empty-string is specified, the event creation time will be used. :type timestamp_property_name: str + :param type: The type of the ingressStartAt, It can be "EarliestAvailable", + "EventSourceCreationTime", "CustomEnqueuedTime". Possible values include: "EarliestAvailable", + "EventSourceCreationTime", "CustomEnqueuedTime". + :type type: str or ~azure.mgmt.timeseriesinsights.models.IngressStartAtType + :param time: ISO8601 UTC datetime with seconds precision (milliseconds are optional), + specifying the date and time that will be the starting point for Events to be consumed. + :type time: str :param event_source_resource_id: Required. The resource id of the event source in Azure Resource Manager. :type event_source_resource_id: str @@ -683,6 +710,8 @@ class EventHubEventSourceCommonProperties(AzureEventSourceProperties): 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'creation_time': {'key': 'creationTime', 'type': 'iso-8601'}, 'timestamp_property_name': {'key': 'timestampPropertyName', 'type': 'str'}, + 'type': {'key': 'ingressStartAt.type', 'type': 'str'}, + 'time': {'key': 'ingressStartAt.time', 'type': 'str'}, 'event_source_resource_id': {'key': 'eventSourceResourceId', 'type': 'str'}, 'service_bus_namespace': {'key': 'serviceBusNamespace', 'type': 'str'}, 'event_hub_name': {'key': 'eventHubName', 'type': 'str'}, @@ -776,6 +805,13 @@ class EventHubEventSourceCreateOrUpdateParameters(EventSourceCreateOrUpdateParam timestamp. If a value isn't specified for timestampPropertyName, or if null or empty-string is specified, the event creation time will be used. :type timestamp_property_name: str + :param type: The type of the ingressStartAt, It can be "EarliestAvailable", + "EventSourceCreationTime", "CustomEnqueuedTime". Possible values include: "EarliestAvailable", + "EventSourceCreationTime", "CustomEnqueuedTime". + :type type: str or ~azure.mgmt.timeseriesinsights.models.IngressStartAtType + :param time: ISO8601 UTC datetime with seconds precision (milliseconds are optional), + specifying the date and time that will be the starting point for Events to be consumed. + :type time: str :param event_source_resource_id: Required. The resource id of the event source in Azure Resource Manager. :type event_source_resource_id: str @@ -818,6 +854,8 @@ class EventHubEventSourceCreateOrUpdateParameters(EventSourceCreateOrUpdateParam 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'creation_time': {'key': 'properties.creationTime', 'type': 'iso-8601'}, 'timestamp_property_name': {'key': 'properties.timestampPropertyName', 'type': 'str'}, + 'type': {'key': 'properties.ingressStartAt.type', 'type': 'str'}, + 'time': {'key': 'properties.ingressStartAt.time', 'type': 'str'}, 'event_source_resource_id': {'key': 'properties.eventSourceResourceId', 'type': 'str'}, 'service_bus_namespace': {'key': 'properties.serviceBusNamespace', 'type': 'str'}, 'event_hub_name': {'key': 'properties.eventHubName', 'type': 'str'}, @@ -835,6 +873,8 @@ def __init__( self.provisioning_state = None self.creation_time = None self.timestamp_property_name = kwargs.get('timestamp_property_name', None) + self.type = kwargs.get('type', None) + self.time = kwargs.get('time', None) self.event_source_resource_id = kwargs['event_source_resource_id'] self.service_bus_namespace = kwargs['service_bus_namespace'] self.event_hub_name = kwargs['event_hub_name'] @@ -859,6 +899,13 @@ class EventHubEventSourceCreationProperties(EventHubEventSourceCommonProperties) timestamp. If a value isn't specified for timestampPropertyName, or if null or empty-string is specified, the event creation time will be used. :type timestamp_property_name: str + :param type: The type of the ingressStartAt, It can be "EarliestAvailable", + "EventSourceCreationTime", "CustomEnqueuedTime". Possible values include: "EarliestAvailable", + "EventSourceCreationTime", "CustomEnqueuedTime". + :type type: str or ~azure.mgmt.timeseriesinsights.models.IngressStartAtType + :param time: ISO8601 UTC datetime with seconds precision (milliseconds are optional), + specifying the date and time that will be the starting point for Events to be consumed. + :type time: str :param event_source_resource_id: Required. The resource id of the event source in Azure Resource Manager. :type event_source_resource_id: str @@ -895,6 +942,8 @@ class EventHubEventSourceCreationProperties(EventHubEventSourceCommonProperties) 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'creation_time': {'key': 'creationTime', 'type': 'iso-8601'}, 'timestamp_property_name': {'key': 'timestampPropertyName', 'type': 'str'}, + 'type': {'key': 'ingressStartAt.type', 'type': 'str'}, + 'time': {'key': 'ingressStartAt.time', 'type': 'str'}, 'event_source_resource_id': {'key': 'eventSourceResourceId', 'type': 'str'}, 'service_bus_namespace': {'key': 'serviceBusNamespace', 'type': 'str'}, 'event_hub_name': {'key': 'eventHubName', 'type': 'str'}, @@ -1054,6 +1103,14 @@ class EventHubEventSourceResource(EventSourceResource): timestamp. If a value isn't specified for timestampPropertyName, or if null or empty-string is specified, the event creation time will be used. :type timestamp_property_name: str + :param type_properties_ingress_start_at_type: The type of the ingressStartAt, It can be + "EarliestAvailable", "EventSourceCreationTime", "CustomEnqueuedTime". Possible values include: + "EarliestAvailable", "EventSourceCreationTime", "CustomEnqueuedTime". + :type type_properties_ingress_start_at_type: str or + ~azure.mgmt.timeseriesinsights.models.IngressStartAtType + :param time: ISO8601 UTC datetime with seconds precision (milliseconds are optional), + specifying the date and time that will be the starting point for Events to be consumed. + :type time: str :param event_source_resource_id: Required. The resource id of the event source in Azure Resource Manager. :type event_source_resource_id: str @@ -1096,6 +1153,8 @@ class EventHubEventSourceResource(EventSourceResource): 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'creation_time': {'key': 'properties.creationTime', 'type': 'iso-8601'}, 'timestamp_property_name': {'key': 'properties.timestampPropertyName', 'type': 'str'}, + 'type_properties_ingress_start_at_type': {'key': 'properties.ingressStartAt.type', 'type': 'str'}, + 'time': {'key': 'properties.ingressStartAt.time', 'type': 'str'}, 'event_source_resource_id': {'key': 'properties.eventSourceResourceId', 'type': 'str'}, 'service_bus_namespace': {'key': 'properties.serviceBusNamespace', 'type': 'str'}, 'event_hub_name': {'key': 'properties.eventHubName', 'type': 'str'}, @@ -1112,6 +1171,8 @@ def __init__( self.provisioning_state = None self.creation_time = None self.timestamp_property_name = kwargs.get('timestamp_property_name', None) + self.type_properties_ingress_start_at_type = kwargs.get('type_properties_ingress_start_at_type', None) + self.time = kwargs.get('time', None) self.event_source_resource_id = kwargs['event_source_resource_id'] self.service_bus_namespace = kwargs['service_bus_namespace'] self.event_hub_name = kwargs['event_hub_name'] @@ -1135,6 +1196,13 @@ class EventHubEventSourceResourceProperties(EventHubEventSourceCommonProperties) timestamp. If a value isn't specified for timestampPropertyName, or if null or empty-string is specified, the event creation time will be used. :type timestamp_property_name: str + :param type: The type of the ingressStartAt, It can be "EarliestAvailable", + "EventSourceCreationTime", "CustomEnqueuedTime". Possible values include: "EarliestAvailable", + "EventSourceCreationTime", "CustomEnqueuedTime". + :type type: str or ~azure.mgmt.timeseriesinsights.models.IngressStartAtType + :param time: ISO8601 UTC datetime with seconds precision (milliseconds are optional), + specifying the date and time that will be the starting point for Events to be consumed. + :type time: str :param event_source_resource_id: Required. The resource id of the event source in Azure Resource Manager. :type event_source_resource_id: str @@ -1166,6 +1234,8 @@ class EventHubEventSourceResourceProperties(EventHubEventSourceCommonProperties) 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'creation_time': {'key': 'creationTime', 'type': 'iso-8601'}, 'timestamp_property_name': {'key': 'timestampPropertyName', 'type': 'str'}, + 'type': {'key': 'ingressStartAt.type', 'type': 'str'}, + 'time': {'key': 'ingressStartAt.time', 'type': 'str'}, 'event_source_resource_id': {'key': 'eventSourceResourceId', 'type': 'str'}, 'service_bus_namespace': {'key': 'serviceBusNamespace', 'type': 'str'}, 'event_hub_name': {'key': 'eventHubName', 'type': 'str'}, @@ -1186,17 +1256,17 @@ class EventSourceUpdateParameters(msrest.serialization.Model): You probably want to use the sub-classes and not this class directly. Known sub-classes are: EventHubEventSourceUpdateParameters, IoTHubEventSourceUpdateParameters. - Variables are only populated by the server, and will be ignored when sending a request. + All required parameters must be populated in order to send to Azure. - :ivar kind: The kind of the event source.Constant filled by server. Possible values include: - "Microsoft.EventHub", "Microsoft.IoTHub". - :vartype kind: str or ~azure.mgmt.timeseriesinsights.models.EventSourceKind + :param kind: Required. The kind of the event source.Constant filled by server. Possible values + include: "Microsoft.EventHub", "Microsoft.IoTHub". + :type kind: str or ~azure.mgmt.timeseriesinsights.models.EventSourceKind :param tags: A set of tags. Key-value pairs of additional properties for the event source. :type tags: dict[str, str] """ _validation = { - 'kind': {'readonly': True}, + 'kind': {'required': True}, } _attribute_map = { @@ -1220,11 +1290,11 @@ def __init__( class EventHubEventSourceUpdateParameters(EventSourceUpdateParameters): """Parameters supplied to the Update Event Source operation to update an EventHub event source. - Variables are only populated by the server, and will be ignored when sending a request. + All required parameters must be populated in order to send to Azure. - :ivar kind: The kind of the event source.Constant filled by server. Possible values include: - "Microsoft.EventHub", "Microsoft.IoTHub". - :vartype kind: str or ~azure.mgmt.timeseriesinsights.models.EventSourceKind + :param kind: Required. The kind of the event source.Constant filled by server. Possible values + include: "Microsoft.EventHub", "Microsoft.IoTHub". + :type kind: str or ~azure.mgmt.timeseriesinsights.models.EventSourceKind :param tags: A set of tags. Key-value pairs of additional properties for the event source. :type tags: dict[str, str] :param timestamp_property_name: The event property that will be used as the event source's @@ -1243,7 +1313,7 @@ class EventHubEventSourceUpdateParameters(EventSourceUpdateParameters): """ _validation = { - 'kind': {'readonly': True}, + 'kind': {'required': True}, } _attribute_map = { @@ -1563,11 +1633,11 @@ def __init__( class Gen1EnvironmentUpdateParameters(EnvironmentUpdateParameters): """Parameters supplied to the Update Environment operation to update a Gen1 environment. - Variables are only populated by the server, and will be ignored when sending a request. + All required parameters must be populated in order to send to Azure. - :ivar kind: The kind of the environment.Constant filled by server. Possible values include: - "Gen1", "Gen2". - :vartype kind: str or ~azure.mgmt.timeseriesinsights.models.EnvironmentKind + :param kind: Required. The kind of the environment.Constant filled by server. Possible values + include: "Gen1", "Gen2". + :type kind: str or ~azure.mgmt.timeseriesinsights.models.EnvironmentKind :param tags: A set of tags. Key-value pairs of additional properties for the environment. :type tags: dict[str, str] :param sku: The sku of the environment. @@ -1585,7 +1655,7 @@ class Gen1EnvironmentUpdateParameters(EnvironmentUpdateParameters): """ _validation = { - 'kind': {'readonly': True}, + 'kind': {'required': True}, } _attribute_map = { @@ -1840,11 +1910,11 @@ def __init__( class Gen2EnvironmentUpdateParameters(EnvironmentUpdateParameters): """Parameters supplied to the Update Environment operation to update a Gen2 environment. - Variables are only populated by the server, and will be ignored when sending a request. + All required parameters must be populated in order to send to Azure. - :ivar kind: The kind of the environment.Constant filled by server. Possible values include: - "Gen1", "Gen2". - :vartype kind: str or ~azure.mgmt.timeseriesinsights.models.EnvironmentKind + :param kind: Required. The kind of the environment.Constant filled by server. Possible values + include: "Gen1", "Gen2". + :type kind: str or ~azure.mgmt.timeseriesinsights.models.EnvironmentKind :param tags: A set of tags. Key-value pairs of additional properties for the environment. :type tags: dict[str, str] :param storage_configuration: The storage configuration provides the connection details that @@ -1859,7 +1929,7 @@ class Gen2EnvironmentUpdateParameters(EnvironmentUpdateParameters): """ _validation = { - 'kind': {'readonly': True}, + 'kind': {'required': True}, } _attribute_map = { @@ -2012,6 +2082,13 @@ class IoTHubEventSourceCommonProperties(AzureEventSourceProperties): timestamp. If a value isn't specified for timestampPropertyName, or if null or empty-string is specified, the event creation time will be used. :type timestamp_property_name: str + :param type: The type of the ingressStartAt, It can be "EarliestAvailable", + "EventSourceCreationTime", "CustomEnqueuedTime". Possible values include: "EarliestAvailable", + "EventSourceCreationTime", "CustomEnqueuedTime". + :type type: str or ~azure.mgmt.timeseriesinsights.models.IngressStartAtType + :param time: ISO8601 UTC datetime with seconds precision (milliseconds are optional), + specifying the date and time that will be the starting point for Events to be consumed. + :type time: str :param event_source_resource_id: Required. The resource id of the event source in Azure Resource Manager. :type event_source_resource_id: str @@ -2039,6 +2116,8 @@ class IoTHubEventSourceCommonProperties(AzureEventSourceProperties): 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'creation_time': {'key': 'creationTime', 'type': 'iso-8601'}, 'timestamp_property_name': {'key': 'timestampPropertyName', 'type': 'str'}, + 'type': {'key': 'ingressStartAt.type', 'type': 'str'}, + 'time': {'key': 'ingressStartAt.time', 'type': 'str'}, 'event_source_resource_id': {'key': 'eventSourceResourceId', 'type': 'str'}, 'iot_hub_name': {'key': 'iotHubName', 'type': 'str'}, 'consumer_group_name': {'key': 'consumerGroupName', 'type': 'str'}, @@ -2083,6 +2162,13 @@ class IoTHubEventSourceCreateOrUpdateParameters(EventSourceCreateOrUpdateParamet timestamp. If a value isn't specified for timestampPropertyName, or if null or empty-string is specified, the event creation time will be used. :type timestamp_property_name: str + :param type: The type of the ingressStartAt, It can be "EarliestAvailable", + "EventSourceCreationTime", "CustomEnqueuedTime". Possible values include: "EarliestAvailable", + "EventSourceCreationTime", "CustomEnqueuedTime". + :type type: str or ~azure.mgmt.timeseriesinsights.models.IngressStartAtType + :param time: ISO8601 UTC datetime with seconds precision (milliseconds are optional), + specifying the date and time that will be the starting point for Events to be consumed. + :type time: str :param event_source_resource_id: Required. The resource id of the event source in Azure Resource Manager. :type event_source_resource_id: str @@ -2121,6 +2207,8 @@ class IoTHubEventSourceCreateOrUpdateParameters(EventSourceCreateOrUpdateParamet 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'creation_time': {'key': 'properties.creationTime', 'type': 'iso-8601'}, 'timestamp_property_name': {'key': 'properties.timestampPropertyName', 'type': 'str'}, + 'type': {'key': 'properties.ingressStartAt.type', 'type': 'str'}, + 'time': {'key': 'properties.ingressStartAt.time', 'type': 'str'}, 'event_source_resource_id': {'key': 'properties.eventSourceResourceId', 'type': 'str'}, 'iot_hub_name': {'key': 'properties.iotHubName', 'type': 'str'}, 'consumer_group_name': {'key': 'properties.consumerGroupName', 'type': 'str'}, @@ -2137,6 +2225,8 @@ def __init__( self.provisioning_state = None self.creation_time = None self.timestamp_property_name = kwargs.get('timestamp_property_name', None) + self.type = kwargs.get('type', None) + self.time = kwargs.get('time', None) self.event_source_resource_id = kwargs['event_source_resource_id'] self.iot_hub_name = kwargs['iot_hub_name'] self.consumer_group_name = kwargs['consumer_group_name'] @@ -2160,6 +2250,13 @@ class IoTHubEventSourceCreationProperties(IoTHubEventSourceCommonProperties): timestamp. If a value isn't specified for timestampPropertyName, or if null or empty-string is specified, the event creation time will be used. :type timestamp_property_name: str + :param type: The type of the ingressStartAt, It can be "EarliestAvailable", + "EventSourceCreationTime", "CustomEnqueuedTime". Possible values include: "EarliestAvailable", + "EventSourceCreationTime", "CustomEnqueuedTime". + :type type: str or ~azure.mgmt.timeseriesinsights.models.IngressStartAtType + :param time: ISO8601 UTC datetime with seconds precision (milliseconds are optional), + specifying the date and time that will be the starting point for Events to be consumed. + :type time: str :param event_source_resource_id: Required. The resource id of the event source in Azure Resource Manager. :type event_source_resource_id: str @@ -2192,6 +2289,8 @@ class IoTHubEventSourceCreationProperties(IoTHubEventSourceCommonProperties): 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'creation_time': {'key': 'creationTime', 'type': 'iso-8601'}, 'timestamp_property_name': {'key': 'timestampPropertyName', 'type': 'str'}, + 'type': {'key': 'ingressStartAt.type', 'type': 'str'}, + 'time': {'key': 'ingressStartAt.time', 'type': 'str'}, 'event_source_resource_id': {'key': 'eventSourceResourceId', 'type': 'str'}, 'iot_hub_name': {'key': 'iotHubName', 'type': 'str'}, 'consumer_group_name': {'key': 'consumerGroupName', 'type': 'str'}, @@ -2268,6 +2367,14 @@ class IoTHubEventSourceResource(EventSourceResource): timestamp. If a value isn't specified for timestampPropertyName, or if null or empty-string is specified, the event creation time will be used. :type timestamp_property_name: str + :param type_properties_ingress_start_at_type: The type of the ingressStartAt, It can be + "EarliestAvailable", "EventSourceCreationTime", "CustomEnqueuedTime". Possible values include: + "EarliestAvailable", "EventSourceCreationTime", "CustomEnqueuedTime". + :type type_properties_ingress_start_at_type: str or + ~azure.mgmt.timeseriesinsights.models.IngressStartAtType + :param time: ISO8601 UTC datetime with seconds precision (milliseconds are optional), + specifying the date and time that will be the starting point for Events to be consumed. + :type time: str :param event_source_resource_id: Required. The resource id of the event source in Azure Resource Manager. :type event_source_resource_id: str @@ -2306,6 +2413,8 @@ class IoTHubEventSourceResource(EventSourceResource): 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'creation_time': {'key': 'properties.creationTime', 'type': 'iso-8601'}, 'timestamp_property_name': {'key': 'properties.timestampPropertyName', 'type': 'str'}, + 'type_properties_ingress_start_at_type': {'key': 'properties.ingressStartAt.type', 'type': 'str'}, + 'time': {'key': 'properties.ingressStartAt.time', 'type': 'str'}, 'event_source_resource_id': {'key': 'properties.eventSourceResourceId', 'type': 'str'}, 'iot_hub_name': {'key': 'properties.iotHubName', 'type': 'str'}, 'consumer_group_name': {'key': 'properties.consumerGroupName', 'type': 'str'}, @@ -2321,6 +2430,8 @@ def __init__( self.provisioning_state = None self.creation_time = None self.timestamp_property_name = kwargs.get('timestamp_property_name', None) + self.type_properties_ingress_start_at_type = kwargs.get('type_properties_ingress_start_at_type', None) + self.time = kwargs.get('time', None) self.event_source_resource_id = kwargs['event_source_resource_id'] self.iot_hub_name = kwargs['iot_hub_name'] self.consumer_group_name = kwargs['consumer_group_name'] @@ -2343,6 +2454,13 @@ class IoTHubEventSourceResourceProperties(IoTHubEventSourceCommonProperties): timestamp. If a value isn't specified for timestampPropertyName, or if null or empty-string is specified, the event creation time will be used. :type timestamp_property_name: str + :param type: The type of the ingressStartAt, It can be "EarliestAvailable", + "EventSourceCreationTime", "CustomEnqueuedTime". Possible values include: "EarliestAvailable", + "EventSourceCreationTime", "CustomEnqueuedTime". + :type type: str or ~azure.mgmt.timeseriesinsights.models.IngressStartAtType + :param time: ISO8601 UTC datetime with seconds precision (milliseconds are optional), + specifying the date and time that will be the starting point for Events to be consumed. + :type time: str :param event_source_resource_id: Required. The resource id of the event source in Azure Resource Manager. :type event_source_resource_id: str @@ -2370,6 +2488,8 @@ class IoTHubEventSourceResourceProperties(IoTHubEventSourceCommonProperties): 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'creation_time': {'key': 'creationTime', 'type': 'iso-8601'}, 'timestamp_property_name': {'key': 'timestampPropertyName', 'type': 'str'}, + 'type': {'key': 'ingressStartAt.type', 'type': 'str'}, + 'time': {'key': 'ingressStartAt.time', 'type': 'str'}, 'event_source_resource_id': {'key': 'eventSourceResourceId', 'type': 'str'}, 'iot_hub_name': {'key': 'iotHubName', 'type': 'str'}, 'consumer_group_name': {'key': 'consumerGroupName', 'type': 'str'}, @@ -2386,11 +2506,11 @@ def __init__( class IoTHubEventSourceUpdateParameters(EventSourceUpdateParameters): """Parameters supplied to the Update Event Source operation to update an IoTHub event source. - Variables are only populated by the server, and will be ignored when sending a request. + All required parameters must be populated in order to send to Azure. - :ivar kind: The kind of the event source.Constant filled by server. Possible values include: - "Microsoft.EventHub", "Microsoft.IoTHub". - :vartype kind: str or ~azure.mgmt.timeseriesinsights.models.EventSourceKind + :param kind: Required. The kind of the event source.Constant filled by server. Possible values + include: "Microsoft.EventHub", "Microsoft.IoTHub". + :type kind: str or ~azure.mgmt.timeseriesinsights.models.EventSourceKind :param tags: A set of tags. Key-value pairs of additional properties for the event source. :type tags: dict[str, str] :param timestamp_property_name: The event property that will be used as the event source's @@ -2409,7 +2529,7 @@ class IoTHubEventSourceUpdateParameters(EventSourceUpdateParameters): """ _validation = { - 'kind': {'readonly': True}, + 'kind': {'required': True}, } _attribute_map = { diff --git a/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/models/_models_py3.py b/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/models/_models_py3.py index 2102041f2624..cc13634ae0be 100644 --- a/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/models/_models_py3.py +++ b/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/models/_models_py3.py @@ -220,6 +220,13 @@ class EventSourceCommonProperties(ResourceProperties): timestamp. If a value isn't specified for timestampPropertyName, or if null or empty-string is specified, the event creation time will be used. :type timestamp_property_name: str + :param type: The type of the ingressStartAt, It can be "EarliestAvailable", + "EventSourceCreationTime", "CustomEnqueuedTime". Possible values include: "EarliestAvailable", + "EventSourceCreationTime", "CustomEnqueuedTime". + :type type: str or ~azure.mgmt.timeseriesinsights.models.IngressStartAtType + :param time: ISO8601 UTC datetime with seconds precision (milliseconds are optional), + specifying the date and time that will be the starting point for Events to be consumed. + :type time: str """ _validation = { @@ -231,16 +238,22 @@ class EventSourceCommonProperties(ResourceProperties): 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'creation_time': {'key': 'creationTime', 'type': 'iso-8601'}, 'timestamp_property_name': {'key': 'timestampPropertyName', 'type': 'str'}, + 'type': {'key': 'ingressStartAt.type', 'type': 'str'}, + 'time': {'key': 'ingressStartAt.time', 'type': 'str'}, } def __init__( self, *, timestamp_property_name: Optional[str] = None, + type: Optional[Union[str, "IngressStartAtType"]] = None, + time: Optional[str] = None, **kwargs ): super(EventSourceCommonProperties, self).__init__(**kwargs) self.timestamp_property_name = timestamp_property_name + self.type = type + self.time = time class AzureEventSourceProperties(EventSourceCommonProperties): @@ -259,6 +272,13 @@ class AzureEventSourceProperties(EventSourceCommonProperties): timestamp. If a value isn't specified for timestampPropertyName, or if null or empty-string is specified, the event creation time will be used. :type timestamp_property_name: str + :param type: The type of the ingressStartAt, It can be "EarliestAvailable", + "EventSourceCreationTime", "CustomEnqueuedTime". Possible values include: "EarliestAvailable", + "EventSourceCreationTime", "CustomEnqueuedTime". + :type type: str or ~azure.mgmt.timeseriesinsights.models.IngressStartAtType + :param time: ISO8601 UTC datetime with seconds precision (milliseconds are optional), + specifying the date and time that will be the starting point for Events to be consumed. + :type time: str :param event_source_resource_id: Required. The resource id of the event source in Azure Resource Manager. :type event_source_resource_id: str @@ -274,6 +294,8 @@ class AzureEventSourceProperties(EventSourceCommonProperties): 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'creation_time': {'key': 'creationTime', 'type': 'iso-8601'}, 'timestamp_property_name': {'key': 'timestampPropertyName', 'type': 'str'}, + 'type': {'key': 'ingressStartAt.type', 'type': 'str'}, + 'time': {'key': 'ingressStartAt.time', 'type': 'str'}, 'event_source_resource_id': {'key': 'eventSourceResourceId', 'type': 'str'}, } @@ -282,9 +304,11 @@ def __init__( *, event_source_resource_id: str, timestamp_property_name: Optional[str] = None, + type: Optional[Union[str, "IngressStartAtType"]] = None, + time: Optional[str] = None, **kwargs ): - super(AzureEventSourceProperties, self).__init__(timestamp_property_name=timestamp_property_name, **kwargs) + super(AzureEventSourceProperties, self).__init__(timestamp_property_name=timestamp_property_name, type=type, time=time, **kwargs) self.event_source_resource_id = event_source_resource_id @@ -652,17 +676,17 @@ class EnvironmentUpdateParameters(msrest.serialization.Model): You probably want to use the sub-classes and not this class directly. Known sub-classes are: Gen1EnvironmentUpdateParameters, Gen2EnvironmentUpdateParameters. - Variables are only populated by the server, and will be ignored when sending a request. + All required parameters must be populated in order to send to Azure. - :ivar kind: The kind of the environment.Constant filled by server. Possible values include: - "Gen1", "Gen2". - :vartype kind: str or ~azure.mgmt.timeseriesinsights.models.EnvironmentKind + :param kind: Required. The kind of the environment.Constant filled by server. Possible values + include: "Gen1", "Gen2". + :type kind: str or ~azure.mgmt.timeseriesinsights.models.EnvironmentKind :param tags: A set of tags. Key-value pairs of additional properties for the environment. :type tags: dict[str, str] """ _validation = { - 'kind': {'readonly': True}, + 'kind': {'required': True}, } _attribute_map = { @@ -701,6 +725,13 @@ class EventHubEventSourceCommonProperties(AzureEventSourceProperties): timestamp. If a value isn't specified for timestampPropertyName, or if null or empty-string is specified, the event creation time will be used. :type timestamp_property_name: str + :param type: The type of the ingressStartAt, It can be "EarliestAvailable", + "EventSourceCreationTime", "CustomEnqueuedTime". Possible values include: "EarliestAvailable", + "EventSourceCreationTime", "CustomEnqueuedTime". + :type type: str or ~azure.mgmt.timeseriesinsights.models.IngressStartAtType + :param time: ISO8601 UTC datetime with seconds precision (milliseconds are optional), + specifying the date and time that will be the starting point for Events to be consumed. + :type time: str :param event_source_resource_id: Required. The resource id of the event source in Azure Resource Manager. :type event_source_resource_id: str @@ -732,6 +763,8 @@ class EventHubEventSourceCommonProperties(AzureEventSourceProperties): 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'creation_time': {'key': 'creationTime', 'type': 'iso-8601'}, 'timestamp_property_name': {'key': 'timestampPropertyName', 'type': 'str'}, + 'type': {'key': 'ingressStartAt.type', 'type': 'str'}, + 'time': {'key': 'ingressStartAt.time', 'type': 'str'}, 'event_source_resource_id': {'key': 'eventSourceResourceId', 'type': 'str'}, 'service_bus_namespace': {'key': 'serviceBusNamespace', 'type': 'str'}, 'event_hub_name': {'key': 'eventHubName', 'type': 'str'}, @@ -748,9 +781,11 @@ def __init__( consumer_group_name: str, key_name: str, timestamp_property_name: Optional[str] = None, + type: Optional[Union[str, "IngressStartAtType"]] = None, + time: Optional[str] = None, **kwargs ): - super(EventHubEventSourceCommonProperties, self).__init__(timestamp_property_name=timestamp_property_name, event_source_resource_id=event_source_resource_id, **kwargs) + super(EventHubEventSourceCommonProperties, self).__init__(timestamp_property_name=timestamp_property_name, type=type, time=time, event_source_resource_id=event_source_resource_id, **kwargs) self.service_bus_namespace = service_bus_namespace self.event_hub_name = event_hub_name self.consumer_group_name = consumer_group_name @@ -836,6 +871,13 @@ class EventHubEventSourceCreateOrUpdateParameters(EventSourceCreateOrUpdateParam timestamp. If a value isn't specified for timestampPropertyName, or if null or empty-string is specified, the event creation time will be used. :type timestamp_property_name: str + :param type: The type of the ingressStartAt, It can be "EarliestAvailable", + "EventSourceCreationTime", "CustomEnqueuedTime". Possible values include: "EarliestAvailable", + "EventSourceCreationTime", "CustomEnqueuedTime". + :type type: str or ~azure.mgmt.timeseriesinsights.models.IngressStartAtType + :param time: ISO8601 UTC datetime with seconds precision (milliseconds are optional), + specifying the date and time that will be the starting point for Events to be consumed. + :type time: str :param event_source_resource_id: Required. The resource id of the event source in Azure Resource Manager. :type event_source_resource_id: str @@ -878,6 +920,8 @@ class EventHubEventSourceCreateOrUpdateParameters(EventSourceCreateOrUpdateParam 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'creation_time': {'key': 'properties.creationTime', 'type': 'iso-8601'}, 'timestamp_property_name': {'key': 'properties.timestampPropertyName', 'type': 'str'}, + 'type': {'key': 'properties.ingressStartAt.type', 'type': 'str'}, + 'time': {'key': 'properties.ingressStartAt.time', 'type': 'str'}, 'event_source_resource_id': {'key': 'properties.eventSourceResourceId', 'type': 'str'}, 'service_bus_namespace': {'key': 'properties.serviceBusNamespace', 'type': 'str'}, 'event_hub_name': {'key': 'properties.eventHubName', 'type': 'str'}, @@ -899,6 +943,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, local_timestamp: Optional["LocalTimestamp"] = None, timestamp_property_name: Optional[str] = None, + type: Optional[Union[str, "IngressStartAtType"]] = None, + time: Optional[str] = None, **kwargs ): super(EventHubEventSourceCreateOrUpdateParameters, self).__init__(location=location, tags=tags, local_timestamp=local_timestamp, **kwargs) @@ -906,6 +952,8 @@ def __init__( self.provisioning_state = None self.creation_time = None self.timestamp_property_name = timestamp_property_name + self.type = type + self.time = time self.event_source_resource_id = event_source_resource_id self.service_bus_namespace = service_bus_namespace self.event_hub_name = event_hub_name @@ -930,6 +978,13 @@ class EventHubEventSourceCreationProperties(EventHubEventSourceCommonProperties) timestamp. If a value isn't specified for timestampPropertyName, or if null or empty-string is specified, the event creation time will be used. :type timestamp_property_name: str + :param type: The type of the ingressStartAt, It can be "EarliestAvailable", + "EventSourceCreationTime", "CustomEnqueuedTime". Possible values include: "EarliestAvailable", + "EventSourceCreationTime", "CustomEnqueuedTime". + :type type: str or ~azure.mgmt.timeseriesinsights.models.IngressStartAtType + :param time: ISO8601 UTC datetime with seconds precision (milliseconds are optional), + specifying the date and time that will be the starting point for Events to be consumed. + :type time: str :param event_source_resource_id: Required. The resource id of the event source in Azure Resource Manager. :type event_source_resource_id: str @@ -966,6 +1021,8 @@ class EventHubEventSourceCreationProperties(EventHubEventSourceCommonProperties) 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'creation_time': {'key': 'creationTime', 'type': 'iso-8601'}, 'timestamp_property_name': {'key': 'timestampPropertyName', 'type': 'str'}, + 'type': {'key': 'ingressStartAt.type', 'type': 'str'}, + 'time': {'key': 'ingressStartAt.time', 'type': 'str'}, 'event_source_resource_id': {'key': 'eventSourceResourceId', 'type': 'str'}, 'service_bus_namespace': {'key': 'serviceBusNamespace', 'type': 'str'}, 'event_hub_name': {'key': 'eventHubName', 'type': 'str'}, @@ -984,9 +1041,11 @@ def __init__( key_name: str, shared_access_key: str, timestamp_property_name: Optional[str] = None, + type: Optional[Union[str, "IngressStartAtType"]] = None, + time: Optional[str] = None, **kwargs ): - super(EventHubEventSourceCreationProperties, self).__init__(timestamp_property_name=timestamp_property_name, event_source_resource_id=event_source_resource_id, service_bus_namespace=service_bus_namespace, event_hub_name=event_hub_name, consumer_group_name=consumer_group_name, key_name=key_name, **kwargs) + super(EventHubEventSourceCreationProperties, self).__init__(timestamp_property_name=timestamp_property_name, type=type, time=time, event_source_resource_id=event_source_resource_id, service_bus_namespace=service_bus_namespace, event_hub_name=event_hub_name, consumer_group_name=consumer_group_name, key_name=key_name, **kwargs) self.shared_access_key = shared_access_key @@ -1143,6 +1202,14 @@ class EventHubEventSourceResource(EventSourceResource): timestamp. If a value isn't specified for timestampPropertyName, or if null or empty-string is specified, the event creation time will be used. :type timestamp_property_name: str + :param type_properties_ingress_start_at_type: The type of the ingressStartAt, It can be + "EarliestAvailable", "EventSourceCreationTime", "CustomEnqueuedTime". Possible values include: + "EarliestAvailable", "EventSourceCreationTime", "CustomEnqueuedTime". + :type type_properties_ingress_start_at_type: str or + ~azure.mgmt.timeseriesinsights.models.IngressStartAtType + :param time: ISO8601 UTC datetime with seconds precision (milliseconds are optional), + specifying the date and time that will be the starting point for Events to be consumed. + :type time: str :param event_source_resource_id: Required. The resource id of the event source in Azure Resource Manager. :type event_source_resource_id: str @@ -1185,6 +1252,8 @@ class EventHubEventSourceResource(EventSourceResource): 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'creation_time': {'key': 'properties.creationTime', 'type': 'iso-8601'}, 'timestamp_property_name': {'key': 'properties.timestampPropertyName', 'type': 'str'}, + 'type_properties_ingress_start_at_type': {'key': 'properties.ingressStartAt.type', 'type': 'str'}, + 'time': {'key': 'properties.ingressStartAt.time', 'type': 'str'}, 'event_source_resource_id': {'key': 'properties.eventSourceResourceId', 'type': 'str'}, 'service_bus_namespace': {'key': 'properties.serviceBusNamespace', 'type': 'str'}, 'event_hub_name': {'key': 'properties.eventHubName', 'type': 'str'}, @@ -1203,6 +1272,8 @@ def __init__( key_name: str, tags: Optional[Dict[str, str]] = None, timestamp_property_name: Optional[str] = None, + type_properties_ingress_start_at_type: Optional[Union[str, "IngressStartAtType"]] = None, + time: Optional[str] = None, **kwargs ): super(EventHubEventSourceResource, self).__init__(location=location, tags=tags, **kwargs) @@ -1210,6 +1281,8 @@ def __init__( self.provisioning_state = None self.creation_time = None self.timestamp_property_name = timestamp_property_name + self.type_properties_ingress_start_at_type = type_properties_ingress_start_at_type + self.time = time self.event_source_resource_id = event_source_resource_id self.service_bus_namespace = service_bus_namespace self.event_hub_name = event_hub_name @@ -1233,6 +1306,13 @@ class EventHubEventSourceResourceProperties(EventHubEventSourceCommonProperties) timestamp. If a value isn't specified for timestampPropertyName, or if null or empty-string is specified, the event creation time will be used. :type timestamp_property_name: str + :param type: The type of the ingressStartAt, It can be "EarliestAvailable", + "EventSourceCreationTime", "CustomEnqueuedTime". Possible values include: "EarliestAvailable", + "EventSourceCreationTime", "CustomEnqueuedTime". + :type type: str or ~azure.mgmt.timeseriesinsights.models.IngressStartAtType + :param time: ISO8601 UTC datetime with seconds precision (milliseconds are optional), + specifying the date and time that will be the starting point for Events to be consumed. + :type time: str :param event_source_resource_id: Required. The resource id of the event source in Azure Resource Manager. :type event_source_resource_id: str @@ -1264,6 +1344,8 @@ class EventHubEventSourceResourceProperties(EventHubEventSourceCommonProperties) 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'creation_time': {'key': 'creationTime', 'type': 'iso-8601'}, 'timestamp_property_name': {'key': 'timestampPropertyName', 'type': 'str'}, + 'type': {'key': 'ingressStartAt.type', 'type': 'str'}, + 'time': {'key': 'ingressStartAt.time', 'type': 'str'}, 'event_source_resource_id': {'key': 'eventSourceResourceId', 'type': 'str'}, 'service_bus_namespace': {'key': 'serviceBusNamespace', 'type': 'str'}, 'event_hub_name': {'key': 'eventHubName', 'type': 'str'}, @@ -1280,9 +1362,11 @@ def __init__( consumer_group_name: str, key_name: str, timestamp_property_name: Optional[str] = None, + type: Optional[Union[str, "IngressStartAtType"]] = None, + time: Optional[str] = None, **kwargs ): - super(EventHubEventSourceResourceProperties, self).__init__(timestamp_property_name=timestamp_property_name, event_source_resource_id=event_source_resource_id, service_bus_namespace=service_bus_namespace, event_hub_name=event_hub_name, consumer_group_name=consumer_group_name, key_name=key_name, **kwargs) + super(EventHubEventSourceResourceProperties, self).__init__(timestamp_property_name=timestamp_property_name, type=type, time=time, event_source_resource_id=event_source_resource_id, service_bus_namespace=service_bus_namespace, event_hub_name=event_hub_name, consumer_group_name=consumer_group_name, key_name=key_name, **kwargs) class EventSourceUpdateParameters(msrest.serialization.Model): @@ -1291,17 +1375,17 @@ class EventSourceUpdateParameters(msrest.serialization.Model): You probably want to use the sub-classes and not this class directly. Known sub-classes are: EventHubEventSourceUpdateParameters, IoTHubEventSourceUpdateParameters. - Variables are only populated by the server, and will be ignored when sending a request. + All required parameters must be populated in order to send to Azure. - :ivar kind: The kind of the event source.Constant filled by server. Possible values include: - "Microsoft.EventHub", "Microsoft.IoTHub". - :vartype kind: str or ~azure.mgmt.timeseriesinsights.models.EventSourceKind + :param kind: Required. The kind of the event source.Constant filled by server. Possible values + include: "Microsoft.EventHub", "Microsoft.IoTHub". + :type kind: str or ~azure.mgmt.timeseriesinsights.models.EventSourceKind :param tags: A set of tags. Key-value pairs of additional properties for the event source. :type tags: dict[str, str] """ _validation = { - 'kind': {'readonly': True}, + 'kind': {'required': True}, } _attribute_map = { @@ -1327,11 +1411,11 @@ def __init__( class EventHubEventSourceUpdateParameters(EventSourceUpdateParameters): """Parameters supplied to the Update Event Source operation to update an EventHub event source. - Variables are only populated by the server, and will be ignored when sending a request. + All required parameters must be populated in order to send to Azure. - :ivar kind: The kind of the event source.Constant filled by server. Possible values include: - "Microsoft.EventHub", "Microsoft.IoTHub". - :vartype kind: str or ~azure.mgmt.timeseriesinsights.models.EventSourceKind + :param kind: Required. The kind of the event source.Constant filled by server. Possible values + include: "Microsoft.EventHub", "Microsoft.IoTHub". + :type kind: str or ~azure.mgmt.timeseriesinsights.models.EventSourceKind :param tags: A set of tags. Key-value pairs of additional properties for the event source. :type tags: dict[str, str] :param timestamp_property_name: The event property that will be used as the event source's @@ -1350,7 +1434,7 @@ class EventHubEventSourceUpdateParameters(EventSourceUpdateParameters): """ _validation = { - 'kind': {'readonly': True}, + 'kind': {'required': True}, } _attribute_map = { @@ -1699,11 +1783,11 @@ def __init__( class Gen1EnvironmentUpdateParameters(EnvironmentUpdateParameters): """Parameters supplied to the Update Environment operation to update a Gen1 environment. - Variables are only populated by the server, and will be ignored when sending a request. + All required parameters must be populated in order to send to Azure. - :ivar kind: The kind of the environment.Constant filled by server. Possible values include: - "Gen1", "Gen2". - :vartype kind: str or ~azure.mgmt.timeseriesinsights.models.EnvironmentKind + :param kind: Required. The kind of the environment.Constant filled by server. Possible values + include: "Gen1", "Gen2". + :type kind: str or ~azure.mgmt.timeseriesinsights.models.EnvironmentKind :param tags: A set of tags. Key-value pairs of additional properties for the environment. :type tags: dict[str, str] :param sku: The sku of the environment. @@ -1721,7 +1805,7 @@ class Gen1EnvironmentUpdateParameters(EnvironmentUpdateParameters): """ _validation = { - 'kind': {'readonly': True}, + 'kind': {'required': True}, } _attribute_map = { @@ -1999,11 +2083,11 @@ def __init__( class Gen2EnvironmentUpdateParameters(EnvironmentUpdateParameters): """Parameters supplied to the Update Environment operation to update a Gen2 environment. - Variables are only populated by the server, and will be ignored when sending a request. + All required parameters must be populated in order to send to Azure. - :ivar kind: The kind of the environment.Constant filled by server. Possible values include: - "Gen1", "Gen2". - :vartype kind: str or ~azure.mgmt.timeseriesinsights.models.EnvironmentKind + :param kind: Required. The kind of the environment.Constant filled by server. Possible values + include: "Gen1", "Gen2". + :type kind: str or ~azure.mgmt.timeseriesinsights.models.EnvironmentKind :param tags: A set of tags. Key-value pairs of additional properties for the environment. :type tags: dict[str, str] :param storage_configuration: The storage configuration provides the connection details that @@ -2018,7 +2102,7 @@ class Gen2EnvironmentUpdateParameters(EnvironmentUpdateParameters): """ _validation = { - 'kind': {'readonly': True}, + 'kind': {'required': True}, } _attribute_map = { @@ -2184,6 +2268,13 @@ class IoTHubEventSourceCommonProperties(AzureEventSourceProperties): timestamp. If a value isn't specified for timestampPropertyName, or if null or empty-string is specified, the event creation time will be used. :type timestamp_property_name: str + :param type: The type of the ingressStartAt, It can be "EarliestAvailable", + "EventSourceCreationTime", "CustomEnqueuedTime". Possible values include: "EarliestAvailable", + "EventSourceCreationTime", "CustomEnqueuedTime". + :type type: str or ~azure.mgmt.timeseriesinsights.models.IngressStartAtType + :param time: ISO8601 UTC datetime with seconds precision (milliseconds are optional), + specifying the date and time that will be the starting point for Events to be consumed. + :type time: str :param event_source_resource_id: Required. The resource id of the event source in Azure Resource Manager. :type event_source_resource_id: str @@ -2211,6 +2302,8 @@ class IoTHubEventSourceCommonProperties(AzureEventSourceProperties): 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'creation_time': {'key': 'creationTime', 'type': 'iso-8601'}, 'timestamp_property_name': {'key': 'timestampPropertyName', 'type': 'str'}, + 'type': {'key': 'ingressStartAt.type', 'type': 'str'}, + 'time': {'key': 'ingressStartAt.time', 'type': 'str'}, 'event_source_resource_id': {'key': 'eventSourceResourceId', 'type': 'str'}, 'iot_hub_name': {'key': 'iotHubName', 'type': 'str'}, 'consumer_group_name': {'key': 'consumerGroupName', 'type': 'str'}, @@ -2225,9 +2318,11 @@ def __init__( consumer_group_name: str, key_name: str, timestamp_property_name: Optional[str] = None, + type: Optional[Union[str, "IngressStartAtType"]] = None, + time: Optional[str] = None, **kwargs ): - super(IoTHubEventSourceCommonProperties, self).__init__(timestamp_property_name=timestamp_property_name, event_source_resource_id=event_source_resource_id, **kwargs) + super(IoTHubEventSourceCommonProperties, self).__init__(timestamp_property_name=timestamp_property_name, type=type, time=time, event_source_resource_id=event_source_resource_id, **kwargs) self.iot_hub_name = iot_hub_name self.consumer_group_name = consumer_group_name self.key_name = key_name @@ -2261,6 +2356,13 @@ class IoTHubEventSourceCreateOrUpdateParameters(EventSourceCreateOrUpdateParamet timestamp. If a value isn't specified for timestampPropertyName, or if null or empty-string is specified, the event creation time will be used. :type timestamp_property_name: str + :param type: The type of the ingressStartAt, It can be "EarliestAvailable", + "EventSourceCreationTime", "CustomEnqueuedTime". Possible values include: "EarliestAvailable", + "EventSourceCreationTime", "CustomEnqueuedTime". + :type type: str or ~azure.mgmt.timeseriesinsights.models.IngressStartAtType + :param time: ISO8601 UTC datetime with seconds precision (milliseconds are optional), + specifying the date and time that will be the starting point for Events to be consumed. + :type time: str :param event_source_resource_id: Required. The resource id of the event source in Azure Resource Manager. :type event_source_resource_id: str @@ -2299,6 +2401,8 @@ class IoTHubEventSourceCreateOrUpdateParameters(EventSourceCreateOrUpdateParamet 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'creation_time': {'key': 'properties.creationTime', 'type': 'iso-8601'}, 'timestamp_property_name': {'key': 'properties.timestampPropertyName', 'type': 'str'}, + 'type': {'key': 'properties.ingressStartAt.type', 'type': 'str'}, + 'time': {'key': 'properties.ingressStartAt.time', 'type': 'str'}, 'event_source_resource_id': {'key': 'properties.eventSourceResourceId', 'type': 'str'}, 'iot_hub_name': {'key': 'properties.iotHubName', 'type': 'str'}, 'consumer_group_name': {'key': 'properties.consumerGroupName', 'type': 'str'}, @@ -2318,6 +2422,8 @@ def __init__( tags: Optional[Dict[str, str]] = None, local_timestamp: Optional["LocalTimestamp"] = None, timestamp_property_name: Optional[str] = None, + type: Optional[Union[str, "IngressStartAtType"]] = None, + time: Optional[str] = None, **kwargs ): super(IoTHubEventSourceCreateOrUpdateParameters, self).__init__(location=location, tags=tags, local_timestamp=local_timestamp, **kwargs) @@ -2325,6 +2431,8 @@ def __init__( self.provisioning_state = None self.creation_time = None self.timestamp_property_name = timestamp_property_name + self.type = type + self.time = time self.event_source_resource_id = event_source_resource_id self.iot_hub_name = iot_hub_name self.consumer_group_name = consumer_group_name @@ -2348,6 +2456,13 @@ class IoTHubEventSourceCreationProperties(IoTHubEventSourceCommonProperties): timestamp. If a value isn't specified for timestampPropertyName, or if null or empty-string is specified, the event creation time will be used. :type timestamp_property_name: str + :param type: The type of the ingressStartAt, It can be "EarliestAvailable", + "EventSourceCreationTime", "CustomEnqueuedTime". Possible values include: "EarliestAvailable", + "EventSourceCreationTime", "CustomEnqueuedTime". + :type type: str or ~azure.mgmt.timeseriesinsights.models.IngressStartAtType + :param time: ISO8601 UTC datetime with seconds precision (milliseconds are optional), + specifying the date and time that will be the starting point for Events to be consumed. + :type time: str :param event_source_resource_id: Required. The resource id of the event source in Azure Resource Manager. :type event_source_resource_id: str @@ -2380,6 +2495,8 @@ class IoTHubEventSourceCreationProperties(IoTHubEventSourceCommonProperties): 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'creation_time': {'key': 'creationTime', 'type': 'iso-8601'}, 'timestamp_property_name': {'key': 'timestampPropertyName', 'type': 'str'}, + 'type': {'key': 'ingressStartAt.type', 'type': 'str'}, + 'time': {'key': 'ingressStartAt.time', 'type': 'str'}, 'event_source_resource_id': {'key': 'eventSourceResourceId', 'type': 'str'}, 'iot_hub_name': {'key': 'iotHubName', 'type': 'str'}, 'consumer_group_name': {'key': 'consumerGroupName', 'type': 'str'}, @@ -2396,9 +2513,11 @@ def __init__( key_name: str, shared_access_key: str, timestamp_property_name: Optional[str] = None, + type: Optional[Union[str, "IngressStartAtType"]] = None, + time: Optional[str] = None, **kwargs ): - super(IoTHubEventSourceCreationProperties, self).__init__(timestamp_property_name=timestamp_property_name, event_source_resource_id=event_source_resource_id, iot_hub_name=iot_hub_name, consumer_group_name=consumer_group_name, key_name=key_name, **kwargs) + super(IoTHubEventSourceCreationProperties, self).__init__(timestamp_property_name=timestamp_property_name, type=type, time=time, event_source_resource_id=event_source_resource_id, iot_hub_name=iot_hub_name, consumer_group_name=consumer_group_name, key_name=key_name, **kwargs) self.shared_access_key = shared_access_key @@ -2467,6 +2586,14 @@ class IoTHubEventSourceResource(EventSourceResource): timestamp. If a value isn't specified for timestampPropertyName, or if null or empty-string is specified, the event creation time will be used. :type timestamp_property_name: str + :param type_properties_ingress_start_at_type: The type of the ingressStartAt, It can be + "EarliestAvailable", "EventSourceCreationTime", "CustomEnqueuedTime". Possible values include: + "EarliestAvailable", "EventSourceCreationTime", "CustomEnqueuedTime". + :type type_properties_ingress_start_at_type: str or + ~azure.mgmt.timeseriesinsights.models.IngressStartAtType + :param time: ISO8601 UTC datetime with seconds precision (milliseconds are optional), + specifying the date and time that will be the starting point for Events to be consumed. + :type time: str :param event_source_resource_id: Required. The resource id of the event source in Azure Resource Manager. :type event_source_resource_id: str @@ -2505,6 +2632,8 @@ class IoTHubEventSourceResource(EventSourceResource): 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'creation_time': {'key': 'properties.creationTime', 'type': 'iso-8601'}, 'timestamp_property_name': {'key': 'properties.timestampPropertyName', 'type': 'str'}, + 'type_properties_ingress_start_at_type': {'key': 'properties.ingressStartAt.type', 'type': 'str'}, + 'time': {'key': 'properties.ingressStartAt.time', 'type': 'str'}, 'event_source_resource_id': {'key': 'properties.eventSourceResourceId', 'type': 'str'}, 'iot_hub_name': {'key': 'properties.iotHubName', 'type': 'str'}, 'consumer_group_name': {'key': 'properties.consumerGroupName', 'type': 'str'}, @@ -2521,6 +2650,8 @@ def __init__( key_name: str, tags: Optional[Dict[str, str]] = None, timestamp_property_name: Optional[str] = None, + type_properties_ingress_start_at_type: Optional[Union[str, "IngressStartAtType"]] = None, + time: Optional[str] = None, **kwargs ): super(IoTHubEventSourceResource, self).__init__(location=location, tags=tags, **kwargs) @@ -2528,6 +2659,8 @@ def __init__( self.provisioning_state = None self.creation_time = None self.timestamp_property_name = timestamp_property_name + self.type_properties_ingress_start_at_type = type_properties_ingress_start_at_type + self.time = time self.event_source_resource_id = event_source_resource_id self.iot_hub_name = iot_hub_name self.consumer_group_name = consumer_group_name @@ -2550,6 +2683,13 @@ class IoTHubEventSourceResourceProperties(IoTHubEventSourceCommonProperties): timestamp. If a value isn't specified for timestampPropertyName, or if null or empty-string is specified, the event creation time will be used. :type timestamp_property_name: str + :param type: The type of the ingressStartAt, It can be "EarliestAvailable", + "EventSourceCreationTime", "CustomEnqueuedTime". Possible values include: "EarliestAvailable", + "EventSourceCreationTime", "CustomEnqueuedTime". + :type type: str or ~azure.mgmt.timeseriesinsights.models.IngressStartAtType + :param time: ISO8601 UTC datetime with seconds precision (milliseconds are optional), + specifying the date and time that will be the starting point for Events to be consumed. + :type time: str :param event_source_resource_id: Required. The resource id of the event source in Azure Resource Manager. :type event_source_resource_id: str @@ -2577,6 +2717,8 @@ class IoTHubEventSourceResourceProperties(IoTHubEventSourceCommonProperties): 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'creation_time': {'key': 'creationTime', 'type': 'iso-8601'}, 'timestamp_property_name': {'key': 'timestampPropertyName', 'type': 'str'}, + 'type': {'key': 'ingressStartAt.type', 'type': 'str'}, + 'time': {'key': 'ingressStartAt.time', 'type': 'str'}, 'event_source_resource_id': {'key': 'eventSourceResourceId', 'type': 'str'}, 'iot_hub_name': {'key': 'iotHubName', 'type': 'str'}, 'consumer_group_name': {'key': 'consumerGroupName', 'type': 'str'}, @@ -2591,19 +2733,21 @@ def __init__( consumer_group_name: str, key_name: str, timestamp_property_name: Optional[str] = None, + type: Optional[Union[str, "IngressStartAtType"]] = None, + time: Optional[str] = None, **kwargs ): - super(IoTHubEventSourceResourceProperties, self).__init__(timestamp_property_name=timestamp_property_name, event_source_resource_id=event_source_resource_id, iot_hub_name=iot_hub_name, consumer_group_name=consumer_group_name, key_name=key_name, **kwargs) + super(IoTHubEventSourceResourceProperties, self).__init__(timestamp_property_name=timestamp_property_name, type=type, time=time, event_source_resource_id=event_source_resource_id, iot_hub_name=iot_hub_name, consumer_group_name=consumer_group_name, key_name=key_name, **kwargs) class IoTHubEventSourceUpdateParameters(EventSourceUpdateParameters): """Parameters supplied to the Update Event Source operation to update an IoTHub event source. - Variables are only populated by the server, and will be ignored when sending a request. + All required parameters must be populated in order to send to Azure. - :ivar kind: The kind of the event source.Constant filled by server. Possible values include: - "Microsoft.EventHub", "Microsoft.IoTHub". - :vartype kind: str or ~azure.mgmt.timeseriesinsights.models.EventSourceKind + :param kind: Required. The kind of the event source.Constant filled by server. Possible values + include: "Microsoft.EventHub", "Microsoft.IoTHub". + :type kind: str or ~azure.mgmt.timeseriesinsights.models.EventSourceKind :param tags: A set of tags. Key-value pairs of additional properties for the event source. :type tags: dict[str, str] :param timestamp_property_name: The event property that will be used as the event source's @@ -2622,7 +2766,7 @@ class IoTHubEventSourceUpdateParameters(EventSourceUpdateParameters): """ _validation = { - 'kind': {'readonly': True}, + 'kind': {'required': True}, } _attribute_map = { diff --git a/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/models/_time_series_insights_client_enums.py b/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/models/_time_series_insights_client_enums.py index 4b445d9f3e40..e991a2981274 100644 --- a/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/models/_time_series_insights_client_enums.py +++ b/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/models/_time_series_insights_client_enums.py @@ -72,6 +72,15 @@ class EventSourceResourceKind(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum MICROSOFT_EVENT_HUB = "Microsoft.EventHub" MICROSOFT_IO_T_HUB = "Microsoft.IoTHub" +class IngressStartAtType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The type of the ingressStartAt, It can be "EarliestAvailable", "EventSourceCreationTime", + "CustomEnqueuedTime". + """ + + EARLIEST_AVAILABLE = "EarliestAvailable" + EVENT_SOURCE_CREATION_TIME = "EventSourceCreationTime" + CUSTOM_ENQUEUED_TIME = "CustomEnqueuedTime" + class IngressState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """This string represents the state of ingress operations on an environment. It can be "Disabled", "Ready", "Running", "Paused" or "Unknown" diff --git a/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/operations/_environments_operations.py b/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/operations/_environments_operations.py index 5a16cfc34bbd..809ce9d5c74c 100644 --- a/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/operations/_environments_operations.py +++ b/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/azure/mgmt/timeseriesinsights/operations/_environments_operations.py @@ -123,8 +123,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.timeseriesinsights.models.EnvironmentCreateOrUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either EnvironmentResource or the result of cls(response) @@ -318,8 +318,8 @@ def begin_update( :type environment_update_parameters: ~azure.mgmt.timeseriesinsights.models.EnvironmentUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either EnvironmentResource or the result of cls(response)