diff --git a/sdk/eventgrid/azure-mgmt-eventgrid/_meta.json b/sdk/eventgrid/azure-mgmt-eventgrid/_meta.json index 34ddba05985a..aa146cb9a67a 100644 --- a/sdk/eventgrid/azure-mgmt-eventgrid/_meta.json +++ b/sdk/eventgrid/azure-mgmt-eventgrid/_meta.json @@ -1,11 +1,11 @@ { - "autorest": "3.4.2", + "autorest": "3.4.5", "use": [ - "@autorest/python@5.8.0", - "@autorest/modelerfour@4.19.1" + "@autorest/python@5.8.4", + "@autorest/modelerfour@4.19.2" ], - "commit": "b554b6d3497ef8a9eff147f94a5d47ba4eeb7a34", + "commit": "13fc9f6f203ff9a84f3b8bcd4a0d75b5807acabf", "repository_url": "https://github.com/Azure/azure-rest-api-specs", - "autorest_command": "autorest specification/eventgrid/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.1 --version=3.4.2", + "autorest_command": "autorest specification/eventgrid/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.4 --use=@autorest/modelerfour@4.19.2 --version=3.4.5", "readme": "specification/eventgrid/resource-manager/readme.md" } \ No newline at end of file diff --git a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/_configuration.py b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/_configuration.py index a8ee2ef07687..6a1892270d24 100644 --- a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/_configuration.py +++ b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/_configuration.py @@ -48,7 +48,7 @@ def __init__( self.credential = credential self.subscription_id = subscription_id - self.api_version = "2020-10-15-preview" + self.api_version = "2021-06-01-preview" self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) kwargs.setdefault('sdk_moniker', 'mgmt-eventgrid/{}'.format(VERSION)) self._configure(**kwargs) diff --git a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/_metadata.json b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/_metadata.json index da8263633f46..5fb0008964fc 100644 --- a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/_metadata.json +++ b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/_metadata.json @@ -1,6 +1,6 @@ { - "chosen_version": "2020-10-15-preview", - "total_api_version_list": ["2020-10-15-preview"], + "chosen_version": "2021-06-01-preview", + "total_api_version_list": ["2021-06-01-preview"], "client": { "name": "EventGridManagementClient", "filename": "_event_grid_management_client", diff --git a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/_version.py b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/_version.py index b77ac9246082..f30401ec2040 100644 --- a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/_version.py +++ b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "9.0.0" +VERSION = "2.2.0" diff --git a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/_configuration.py b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/_configuration.py index 8e522ccaf042..3a6868036391 100644 --- a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/_configuration.py +++ b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/_configuration.py @@ -45,7 +45,7 @@ def __init__( self.credential = credential self.subscription_id = subscription_id - self.api_version = "2020-10-15-preview" + self.api_version = "2021-06-01-preview" self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) kwargs.setdefault('sdk_moniker', 'mgmt-eventgrid/{}'.format(VERSION)) self._configure(**kwargs) diff --git a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_domain_topics_operations.py b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_domain_topics_operations.py index 1095ba90d1fd..a8c3c3ddf8c8 100644 --- a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_domain_topics_operations.py +++ b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_domain_topics_operations.py @@ -70,7 +70,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" # Construct URL @@ -119,7 +119,7 @@ async def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" # Construct URL @@ -242,7 +242,7 @@ async def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore @@ -382,7 +382,7 @@ def list_by_domain( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): diff --git a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_domains_operations.py b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_domains_operations.py index 3d1b04eeaa3f..7fe6cd25282b 100644 --- a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_domains_operations.py +++ b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_domains_operations.py @@ -67,7 +67,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" # Construct URL @@ -115,7 +115,7 @@ async def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -240,7 +240,7 @@ async def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore @@ -349,7 +349,7 @@ async def _update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -496,7 +496,7 @@ def list_by_subscription( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -584,7 +584,7 @@ def list_by_resource_group( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -663,7 +663,7 @@ async def list_shared_access_keys( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" # Construct URL @@ -726,7 +726,7 @@ async def regenerate_key( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" diff --git a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_event_channels_operations.py b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_event_channels_operations.py index 24f25ffd0dd1..77a8c4ac5e5a 100644 --- a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_event_channels_operations.py +++ b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_event_channels_operations.py @@ -70,7 +70,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" # Construct URL @@ -137,7 +137,7 @@ async def create_or_update( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -191,7 +191,7 @@ async def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore @@ -331,7 +331,7 @@ def list_by_partner_namespace( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): diff --git a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_event_subscriptions_operations.py b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_event_subscriptions_operations.py index 2ba5d1748e1d..ae14ad688733 100644 --- a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_event_subscriptions_operations.py +++ b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_event_subscriptions_operations.py @@ -74,7 +74,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" # Construct URL @@ -121,7 +121,7 @@ async def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -255,7 +255,7 @@ async def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore @@ -369,7 +369,7 @@ async def _update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -519,7 +519,7 @@ async def get_full_url( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" # Construct URL @@ -585,7 +585,7 @@ def list_global_by_subscription( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -673,7 +673,7 @@ def list_global_by_subscription_for_topic_type( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -762,7 +762,7 @@ def list_global_by_resource_group( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -854,7 +854,7 @@ def list_global_by_resource_group_for_topic_type( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -944,7 +944,7 @@ def list_regional_by_subscription( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -1037,7 +1037,7 @@ def list_regional_by_resource_group( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -1131,7 +1131,7 @@ def list_regional_by_subscription_for_topic_type( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -1228,7 +1228,7 @@ def list_regional_by_resource_group_for_topic_type( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -1328,7 +1328,7 @@ def list_by_resource( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -1426,7 +1426,7 @@ def list_by_domain_topic( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -1514,7 +1514,7 @@ async def get_delivery_attributes( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" # Construct URL diff --git a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_extension_topics_operations.py b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_extension_topics_operations.py index fd5b0a7aba7e..4efb160e715e 100644 --- a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_extension_topics_operations.py +++ b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_extension_topics_operations.py @@ -66,7 +66,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" # Construct URL diff --git a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_operations.py b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_operations.py index c8522866e1d4..2b424a0cdd6c 100644 --- a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_operations.py +++ b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_operations.py @@ -59,7 +59,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): diff --git a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_partner_namespaces_operations.py b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_partner_namespaces_operations.py index fe69a3d44bae..bb0be002bc4b 100644 --- a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_partner_namespaces_operations.py +++ b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_partner_namespaces_operations.py @@ -67,7 +67,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" # Construct URL @@ -115,7 +115,7 @@ async def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -240,7 +240,7 @@ async def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore @@ -349,7 +349,7 @@ async def _update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -496,7 +496,7 @@ def list_by_subscription( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -584,7 +584,7 @@ def list_by_resource_group( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -663,7 +663,7 @@ async def list_shared_access_keys( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" # Construct URL @@ -726,7 +726,7 @@ async def regenerate_key( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" diff --git a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_partner_registrations_operations.py b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_partner_registrations_operations.py index 1919be658e9c..d7ec1578f254 100644 --- a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_partner_registrations_operations.py +++ b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_partner_registrations_operations.py @@ -65,7 +65,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" # Construct URL @@ -128,7 +128,7 @@ async def create_or_update( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -197,7 +197,7 @@ async def delete( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" # Construct URL url = self.delete.metadata['url'] # type: ignore @@ -255,7 +255,7 @@ async def update( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -329,7 +329,7 @@ def list_by_subscription( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -417,7 +417,7 @@ def list_by_resource_group( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -471,67 +471,3 @@ async def get_next(next_link=None): get_next, extract_data ) list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerRegistrations'} # type: ignore - - def list( - self, - **kwargs: Any - ) -> AsyncIterable["_models.PartnerRegistrationsListResult"]: - """List all available partners registrations. - - List all partners registrations. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either PartnerRegistrationsListResult or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.eventgrid.models.PartnerRegistrationsListResult] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.PartnerRegistrationsListResult"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" - accept = "application/json" - - def prepare_request(next_link=None): - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - if not next_link: - # Construct URL - url = self.list.metadata['url'] # type: ignore - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - request = self._client.get(url, query_parameters, header_parameters) - return request - - async def extract_data(pipeline_response): - deserialized = self._deserialize('PartnerRegistrationsListResult', pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) - return None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - request = prepare_request(next_link) - - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged( - get_next, extract_data - ) - list.metadata = {'url': '/providers/Microsoft.EventGrid/partnerRegistrations'} # type: ignore diff --git a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_partner_topic_event_subscriptions_operations.py b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_partner_topic_event_subscriptions_operations.py index 5a36e223330b..c121d24ca7d2 100644 --- a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_partner_topic_event_subscriptions_operations.py +++ b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_partner_topic_event_subscriptions_operations.py @@ -71,7 +71,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" # Construct URL @@ -121,7 +121,7 @@ async def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -257,7 +257,7 @@ async def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore @@ -375,7 +375,7 @@ async def _update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -526,7 +526,7 @@ async def get_full_url( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" # Construct URL @@ -600,7 +600,7 @@ def list_by_partner_topic( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -685,7 +685,7 @@ async def get_delivery_attributes( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" # Construct URL diff --git a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_partner_topics_operations.py b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_partner_topics_operations.py index 0c15466862df..d25c91330951 100644 --- a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_partner_topics_operations.py +++ b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_partner_topics_operations.py @@ -67,7 +67,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" # Construct URL @@ -114,7 +114,7 @@ async def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore @@ -238,7 +238,7 @@ async def update( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -312,7 +312,7 @@ def list_by_subscription( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -400,7 +400,7 @@ def list_by_resource_group( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -479,7 +479,7 @@ async def activate( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" # Construct URL @@ -539,7 +539,7 @@ async def deactivate( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" # Construct URL diff --git a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_private_endpoint_connections_operations.py b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_private_endpoint_connections_operations.py index 097a222b53ab..b9ee439511e9 100644 --- a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_private_endpoint_connections_operations.py +++ b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_private_endpoint_connections_operations.py @@ -53,15 +53,15 @@ async def get( ) -> "_models.PrivateEndpointConnection": """Get a specific private endpoint connection. - Get a specific private endpoint connection under a topic or domain. + Get a specific private endpoint connection under a topic, domain, or partner namespace. :param resource_group_name: The name of the resource group within the user's subscription. :type resource_group_name: str - :param parent_type: The type of the parent resource. This can be either \'topics\' or - \'domains\'. + :param parent_type: The type of the parent resource. This can be either \'topics\', + \'domains\', or \'partnerNamespaces\'. :type parent_type: str or ~azure.mgmt.eventgrid.models.Enum25 - :param parent_name: The name of the parent resource (namely, either, the topic name or domain - name). + :param parent_name: The name of the parent resource (namely, either, the topic name, domain + name, or partner namespace name). :type parent_name: str :param private_endpoint_connection_name: The name of the private endpoint connection connection. @@ -76,7 +76,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" # Construct URL @@ -128,7 +128,7 @@ async def _update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -186,15 +186,15 @@ async def begin_update( ) -> AsyncLROPoller["_models.PrivateEndpointConnection"]: """Update a specific private endpoint connection. - Update a specific private endpoint connection under a topic or domain. + Update a specific private endpoint connection under a topic, domain or partner namespace. :param resource_group_name: The name of the resource group within the user's subscription. :type resource_group_name: str - :param parent_type: The type of the parent resource. This can be either \'topics\' or - \'domains\'. + :param parent_type: The type of the parent resource. This can be either \'topics\', + \'domains\', or \'partnerNamespaces\'. :type parent_type: str or ~azure.mgmt.eventgrid.models.Enum26 - :param parent_name: The name of the parent resource (namely, either, the topic name or domain - name). + :param parent_name: The name of the parent resource (namely, either, the topic name, domain + name, or partner namespace name). :type parent_name: str :param private_endpoint_connection_name: The name of the private endpoint connection connection. @@ -274,7 +274,7 @@ async def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore @@ -317,15 +317,15 @@ async def begin_delete( ) -> AsyncLROPoller[None]: """Delete a specific private endpoint connection. - Delete a specific private endpoint connection under a topic or domain. + Delete a specific private endpoint connection under a topic, domain, or partner namespace. :param resource_group_name: The name of the resource group within the user's subscription. :type resource_group_name: str - :param parent_type: The type of the parent resource. This can be either \'topics\' or - \'domains\'. + :param parent_type: The type of the parent resource. This can be either \'topics\', + \'domains\', or \'partnerNamespaces\'. :type parent_type: str or ~azure.mgmt.eventgrid.models.Enum27 - :param parent_name: The name of the parent resource (namely, either, the topic name or domain - name). + :param parent_name: The name of the parent resource (namely, either, the topic name, domain + name, or partner namespace name). :type parent_name: str :param private_endpoint_connection_name: The name of the private endpoint connection connection. @@ -397,15 +397,15 @@ def list_by_resource( ) -> AsyncIterable["_models.PrivateEndpointConnectionListResult"]: """Lists all private endpoint connections under a resource. - Get all private endpoint connections under a topic or domain. + Get all private endpoint connections under a topic, domain, or partner namespace. :param resource_group_name: The name of the resource group within the user's subscription. :type resource_group_name: str - :param parent_type: The type of the parent resource. This can be either \'topics\' or - \'domains\'. + :param parent_type: The type of the parent resource. This can be either \'topics\', + \'domains\', or \'partnerNamespaces\'. :type parent_type: str or ~azure.mgmt.eventgrid.models.Enum28 - :param parent_name: The name of the parent resource (namely, either, the topic name or domain - name). + :param parent_name: The name of the parent resource (namely, either, the topic name, domain + name, or partner namespace name). :type parent_name: str :param filter: The query used to filter the search results using OData syntax. Filtering is permitted on the 'name' property only and with limited number of OData operations. These @@ -428,7 +428,7 @@ def list_by_resource( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): diff --git a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_private_link_resources_operations.py b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_private_link_resources_operations.py index 97971a7eb395..2f48e7dd5f55 100644 --- a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_private_link_resources_operations.py +++ b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_private_link_resources_operations.py @@ -55,11 +55,11 @@ async def get( :param resource_group_name: The name of the resource group within the user's subscription. :type resource_group_name: str - :param parent_type: The type of the parent resource. This can be either \'topics\' or - \'domains\'. + :param parent_type: The type of the parent resource. This can be either \'topics\', + \'domains\', or \'partnerNamespaces\'. :type parent_type: str - :param parent_name: The name of the parent resource (namely, either, the topic name or domain - name). + :param parent_name: The name of the parent resource (namely, either, the topic name, domain + name, or partner namespace name). :type parent_name: str :param private_link_resource_name: The name of private link resource. :type private_link_resource_name: str @@ -73,7 +73,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" # Construct URL @@ -120,17 +120,17 @@ def list_by_resource( top: Optional[int] = None, **kwargs: Any ) -> AsyncIterable["_models.PrivateLinkResourcesListResult"]: - """List private link resources under specific topic or domain. + """List private link resources under specific topic, domain, or partner namespace. - List all the private link resources under a topic or domain. + List all the private link resources under a topic, domain, or partner namespace. :param resource_group_name: The name of the resource group within the user's subscription. :type resource_group_name: str - :param parent_type: The type of the parent resource. This can be either \'topics\' or - \'domains\'. + :param parent_type: The type of the parent resource. This can be either \'topics\', + \'domains\', or \'partnerNamespaces\'. :type parent_type: str - :param parent_name: The name of the parent resource (namely, either, the topic name or domain - name). + :param parent_name: The name of the parent resource (namely, either, the topic name, domain + name, or partner namespace name). :type parent_name: str :param filter: The query used to filter the search results using OData syntax. Filtering is permitted on the 'name' property only and with limited number of OData operations. These @@ -153,7 +153,7 @@ def list_by_resource( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): diff --git a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_system_topic_event_subscriptions_operations.py b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_system_topic_event_subscriptions_operations.py index 224a825df52f..dcd53a7f3e6e 100644 --- a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_system_topic_event_subscriptions_operations.py +++ b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_system_topic_event_subscriptions_operations.py @@ -72,7 +72,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" # Construct URL @@ -122,7 +122,7 @@ async def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -258,7 +258,7 @@ async def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore @@ -376,7 +376,7 @@ async def _update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -527,7 +527,7 @@ async def get_full_url( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" # Construct URL @@ -601,7 +601,7 @@ def list_by_system_topic( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -686,7 +686,7 @@ async def get_delivery_attributes( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" # Construct URL diff --git a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_system_topics_operations.py b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_system_topics_operations.py index 4146b4bd1738..f298b0f219bb 100644 --- a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_system_topics_operations.py +++ b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_system_topics_operations.py @@ -67,7 +67,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" # Construct URL @@ -115,7 +115,7 @@ async def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -244,7 +244,7 @@ async def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore @@ -353,7 +353,7 @@ async def _update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -502,7 +502,7 @@ def list_by_subscription( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -590,7 +590,7 @@ def list_by_resource_group( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): diff --git a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_topic_types_operations.py b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_topic_types_operations.py index 84e27b8e4204..ae2d53ac3002 100644 --- a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_topic_types_operations.py +++ b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_topic_types_operations.py @@ -59,7 +59,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -126,7 +126,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" # Construct URL @@ -181,7 +181,7 @@ def list_event_types( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): diff --git a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_topics_operations.py b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_topics_operations.py index 512f85bdb74d..ecad8150aeff 100644 --- a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_topics_operations.py +++ b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_topics_operations.py @@ -67,7 +67,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" # Construct URL @@ -115,7 +115,7 @@ async def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -240,7 +240,7 @@ async def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore @@ -349,7 +349,7 @@ async def _update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -496,7 +496,7 @@ def list_by_subscription( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -584,7 +584,7 @@ def list_by_resource_group( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -663,7 +663,7 @@ async def list_shared_access_keys( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" # Construct URL @@ -711,7 +711,7 @@ async def _regenerate_key_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -857,7 +857,7 @@ def list_event_types( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): diff --git a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/models/__init__.py b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/models/__init__.py index 3172c7e49224..d57ec74643a3 100644 --- a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/models/__init__.py +++ b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/models/__init__.py @@ -67,12 +67,9 @@ from ._models_py3 import PartnerNamespaceUpdateParameters from ._models_py3 import PartnerNamespacesListResult from ._models_py3 import PartnerRegistration - from ._models_py3 import PartnerRegistrationEventTypesListResult from ._models_py3 import PartnerRegistrationUpdateParameters from ._models_py3 import PartnerRegistrationsListResult from ._models_py3 import PartnerTopic - from ._models_py3 import PartnerTopicType - from ._models_py3 import PartnerTopicTypesListResult from ._models_py3 import PartnerTopicUpdateParameters from ._models_py3 import PartnerTopicsListResult from ._models_py3 import PrivateEndpoint @@ -171,12 +168,9 @@ from ._models import PartnerNamespaceUpdateParameters # type: ignore from ._models import PartnerNamespacesListResult # type: ignore from ._models import PartnerRegistration # type: ignore - from ._models import PartnerRegistrationEventTypesListResult # type: ignore from ._models import PartnerRegistrationUpdateParameters # type: ignore from ._models import PartnerRegistrationsListResult # type: ignore from ._models import PartnerTopic # type: ignore - from ._models import PartnerTopicType # type: ignore - from ._models import PartnerTopicTypesListResult # type: ignore from ._models import PartnerTopicUpdateParameters # type: ignore from ._models import PartnerTopicsListResult # type: ignore from ._models import PrivateEndpoint # type: ignore @@ -241,7 +235,6 @@ PartnerTopicActivationState, PartnerTopicProvisioningState, PartnerTopicReadinessState, - PartnerTopicTypeAuthorizationState, PersistedConnectionStatus, PublicNetworkAccess, ResourceKind, @@ -314,12 +307,9 @@ 'PartnerNamespaceUpdateParameters', 'PartnerNamespacesListResult', 'PartnerRegistration', - 'PartnerRegistrationEventTypesListResult', 'PartnerRegistrationUpdateParameters', 'PartnerRegistrationsListResult', 'PartnerTopic', - 'PartnerTopicType', - 'PartnerTopicTypesListResult', 'PartnerTopicUpdateParameters', 'PartnerTopicsListResult', 'PrivateEndpoint', @@ -382,7 +372,6 @@ 'PartnerTopicActivationState', 'PartnerTopicProvisioningState', 'PartnerTopicReadinessState', - 'PartnerTopicTypeAuthorizationState', 'PersistedConnectionStatus', 'PublicNetworkAccess', 'ResourceKind', diff --git a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/models/_event_grid_management_client_enums.py b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/models/_event_grid_management_client_enums.py index fe023301fd3f..23f7fbf1a5e8 100644 --- a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/models/_event_grid_management_client_enums.py +++ b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/models/_event_grid_management_client_enums.py @@ -73,7 +73,7 @@ class DeliveryAttributeMappingType(with_metaclass(_CaseInsensitiveEnumMeta, str, DYNAMIC = "Dynamic" class DomainProvisioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """Provisioning state of the domain. + """Provisioning state of the Event Grid Domain Resource. """ CREATING = "Creating" @@ -110,21 +110,25 @@ class Enum25(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): TOPICS = "topics" DOMAINS = "domains" + PARTNER_NAMESPACES = "partnerNamespaces" class Enum26(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): TOPICS = "topics" DOMAINS = "domains" + PARTNER_NAMESPACES = "partnerNamespaces" class Enum27(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): TOPICS = "topics" DOMAINS = "domains" + PARTNER_NAMESPACES = "partnerNamespaces" class Enum28(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): TOPICS = "topics" DOMAINS = "domains" + PARTNER_NAMESPACES = "partnerNamespaces" class EventChannelProvisioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Provisioning state of the event channel. @@ -179,7 +183,7 @@ class IdentityType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): class InputSchema(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """This determines the format that Event Grid should expect for incoming events published to the - domain. + Event Grid Domain Resource. """ EVENT_GRID_SCHEMA = "EventGridSchema" @@ -256,15 +260,6 @@ class PartnerTopicReadinessState(with_metaclass(_CaseInsensitiveEnumMeta, str, E DEACTIVATED_BY_USER = "DeactivatedByUser" DELETED_BY_USER = "DeletedByUser" -class PartnerTopicTypeAuthorizationState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """Status of whether the customer has authorized a partner to create partner topics - in the customer's subscription. - """ - - NOT_APPLICABLE = "NotApplicable" - NOT_AUTHORIZED = "NotAuthorized" - AUTHORIZED = "Authorized" - class PersistedConnectionStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Status of the connection. """ diff --git a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/models/_models.py b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/models/_models.py index 35c688deec45..67b3cf7cea19 100644 --- a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/models/_models.py +++ b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/models/_models.py @@ -429,28 +429,29 @@ class Domain(TrackedResource): :type location: str :param tags: A set of tags. Tags of the resource. :type tags: dict[str, str] - :param sku: The Sku pricing tier for the domain. + :param sku: The Sku pricing tier for the Event Grid Domain resource. :type sku: ~azure.mgmt.eventgrid.models.ResourceSku - :param identity: Identity information for the resource. + :param identity: Identity information for the Event Grid Domain resource. :type identity: ~azure.mgmt.eventgrid.models.IdentityInfo - :ivar system_data: The system metadata relating to Domain resource. + :ivar system_data: The system metadata relating to the Event Grid Domain resource. :vartype system_data: ~azure.mgmt.eventgrid.models.SystemData :ivar private_endpoint_connections: List of private endpoint connections. :vartype private_endpoint_connections: list[~azure.mgmt.eventgrid.models.PrivateEndpointConnection] - :ivar provisioning_state: Provisioning state of the domain. Possible values include: - "Creating", "Updating", "Deleting", "Succeeded", "Canceled", "Failed". + :ivar provisioning_state: Provisioning state of the Event Grid Domain Resource. Possible values + include: "Creating", "Updating", "Deleting", "Succeeded", "Canceled", "Failed". :vartype provisioning_state: str or ~azure.mgmt.eventgrid.models.DomainProvisioningState - :ivar endpoint: Endpoint for the domain. + :ivar endpoint: Endpoint for the Event Grid Domain Resource which is used for publishing the + events. :vartype endpoint: str :param input_schema: This determines the format that Event Grid should expect for incoming - events published to the domain. Possible values include: "EventGridSchema", + events published to the Event Grid Domain Resource. Possible values include: "EventGridSchema", "CustomEventSchema", "CloudEventSchemaV1_0". :type input_schema: str or ~azure.mgmt.eventgrid.models.InputSchema :param input_schema_mapping: Information about the InputSchemaMapping which specified the info about mapping event payload. :type input_schema_mapping: ~azure.mgmt.eventgrid.models.InputSchemaMapping - :ivar metric_resource_id: Metric resource id for the domain. + :ivar metric_resource_id: Metric resource id for the Event Grid Domain Resource. :vartype metric_resource_id: str :param public_network_access: This determines if traffic is allowed over public network. By default it is enabled. @@ -461,6 +462,40 @@ class Domain(TrackedResource): :param inbound_ip_rules: This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess is enabled. :type inbound_ip_rules: list[~azure.mgmt.eventgrid.models.InboundIpRule] + :param disable_local_auth: This boolean is used to enable or disable local auth. Default value + is false. When the property is set to true, only AAD token will be used to authenticate if user + is allowed to publish to the domain. + :type disable_local_auth: bool + :param auto_create_topic_with_first_subscription: This Boolean is used to specify the creation + mechanism for 'all' the Event Grid Domain Topics associated with this Event Grid Domain + resource. + In this context, creation of domain topic can be auto-managed (when true) or self-managed + (when false). The default value for this property is true. + When this property is null or set to true, Event Grid is responsible of automatically creating + the domain topic when the first event subscription is + created at the scope of the domain topic. If this property is set to false, then creating the + first event subscription will require creating a domain topic + by the user. The self-management mode can be used if the user wants full control of when the + domain topic is created, while auto-managed mode provides the + flexibility to perform less operations and manage fewer resources by the user. Also, note that + in auto-managed creation mode, user is allowed to create the + domain topic on demand if needed. + :type auto_create_topic_with_first_subscription: bool + :param auto_delete_topic_with_last_subscription: This Boolean is used to specify the deletion + mechanism for 'all' the Event Grid Domain Topics associated with this Event Grid Domain + resource. + In this context, deletion of domain topic can be auto-managed (when true) or self-managed + (when false). The default value for this property is true. + When this property is set to true, Event Grid is responsible of automatically deleting the + domain topic when the last event subscription at the scope + of the domain topic is deleted. If this property is set to false, then the user needs to + manually delete the domain topic when it is no longer needed + (e.g., when last event subscription is deleted and the resource needs to be cleaned up). The + self-management mode can be used if the user wants full + control of when the domain topic needs to be deleted, while auto-managed mode provides the + flexibility to perform less operations and manage fewer + resources by the user. + :type auto_delete_topic_with_last_subscription: bool """ _validation = { @@ -492,6 +527,9 @@ class Domain(TrackedResource): 'metric_resource_id': {'key': 'properties.metricResourceId', 'type': 'str'}, 'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'}, 'inbound_ip_rules': {'key': 'properties.inboundIpRules', 'type': '[InboundIpRule]'}, + 'disable_local_auth': {'key': 'properties.disableLocalAuth', 'type': 'bool'}, + 'auto_create_topic_with_first_subscription': {'key': 'properties.autoCreateTopicWithFirstSubscription', 'type': 'bool'}, + 'auto_delete_topic_with_last_subscription': {'key': 'properties.autoDeleteTopicWithLastSubscription', 'type': 'bool'}, } def __init__( @@ -510,6 +548,9 @@ def __init__( self.metric_resource_id = None self.public_network_access = kwargs.get('public_network_access', None) self.inbound_ip_rules = kwargs.get('inbound_ip_rules', None) + self.disable_local_auth = kwargs.get('disable_local_auth', False) + self.auto_create_topic_with_first_subscription = kwargs.get('auto_create_topic_with_first_subscription', True) + self.auto_delete_topic_with_last_subscription = kwargs.get('auto_delete_topic_with_last_subscription', True) class DomainRegenerateKeyRequest(msrest.serialization.Model): @@ -667,6 +708,40 @@ class DomainUpdateParameters(msrest.serialization.Model): :param inbound_ip_rules: This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess is enabled. :type inbound_ip_rules: list[~azure.mgmt.eventgrid.models.InboundIpRule] + :param disable_local_auth: This boolean is used to enable or disable local auth. Default value + is false. When the property is set to true, only AAD token will be used to authenticate if user + is allowed to publish to the domain. + :type disable_local_auth: bool + :param auto_create_topic_with_first_subscription: This Boolean is used to specify the creation + mechanism for 'all' the Event Grid Domain Topics associated with this Event Grid Domain + resource. + In this context, creation of domain topic can be auto-managed (when true) or self-managed + (when false). The default value for this property is true. + When this property is null or set to true, Event Grid is responsible of automatically creating + the domain topic when the first event subscription is + created at the scope of the domain topic. If this property is set to false, then creating the + first event subscription will require creating a domain topic + by the user. The self-management mode can be used if the user wants full control of when the + domain topic is created, while auto-managed mode provides the + flexibility to perform less operations and manage fewer resources by the user. Also, note that + in auto-managed creation mode, user is allowed to create the + domain topic on demand if needed. + :type auto_create_topic_with_first_subscription: bool + :param auto_delete_topic_with_last_subscription: This Boolean is used to specify the deletion + mechanism for 'all' the Event Grid Domain Topics associated with this Event Grid Domain + resource. + In this context, deletion of domain topic can be auto-managed (when true) or self-managed + (when false). The default value for this property is true. + When this property is set to true, Event Grid is responsible of automatically deleting the + domain topic when the last event subscription at the scope + of the domain topic is deleted. If this property is set to false, then the user needs to + manually delete the domain topic when it is no longer needed + (e.g., when last event subscription is deleted and the resource needs to be cleaned up). The + self-management mode can be used if the user wants full + control of when the domain topic needs to be deleted, while auto-managed mode provides the + flexibility to perform less operations and manage fewer + resources by the user. + :type auto_delete_topic_with_last_subscription: bool """ _attribute_map = { @@ -675,6 +750,9 @@ class DomainUpdateParameters(msrest.serialization.Model): 'sku': {'key': 'sku', 'type': 'ResourceSku'}, 'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'}, 'inbound_ip_rules': {'key': 'properties.inboundIpRules', 'type': '[InboundIpRule]'}, + 'disable_local_auth': {'key': 'properties.disableLocalAuth', 'type': 'bool'}, + 'auto_create_topic_with_first_subscription': {'key': 'properties.autoCreateTopicWithFirstSubscription', 'type': 'bool'}, + 'auto_delete_topic_with_last_subscription': {'key': 'properties.autoDeleteTopicWithLastSubscription', 'type': 'bool'}, } def __init__( @@ -687,6 +765,9 @@ def __init__( self.sku = kwargs.get('sku', None) self.public_network_access = kwargs.get('public_network_access', None) self.inbound_ip_rules = kwargs.get('inbound_ip_rules', None) + self.disable_local_auth = kwargs.get('disable_local_auth', None) + self.auto_create_topic_with_first_subscription = kwargs.get('auto_create_topic_with_first_subscription', None) + self.auto_delete_topic_with_last_subscription = kwargs.get('auto_delete_topic_with_last_subscription', None) class DynamicDeliveryAttributeMapping(DeliveryAttributeMapping): @@ -834,7 +915,8 @@ class EventChannelFilter(msrest.serialization.Model): """Filter for the Event Channel. :param enable_advanced_filtering_on_arrays: Allows advanced filters to be evaluated against an - array of values instead of expecting a singular value. + array of values instead of expecting a singular value. The default value is either false or + null. :type enable_advanced_filtering_on_arrays: bool :param advanced_filters: An array of advanced filters that are used for filtering event channels. @@ -851,7 +933,7 @@ def __init__( **kwargs ): super(EventChannelFilter, self).__init__(**kwargs) - self.enable_advanced_filtering_on_arrays = kwargs.get('enable_advanced_filtering_on_arrays', None) + self.enable_advanced_filtering_on_arrays = kwargs.get('enable_advanced_filtering_on_arrays', False) self.advanced_filters = kwargs.get('advanced_filters', None) @@ -1953,6 +2035,9 @@ class Operation(msrest.serialization.Model): :type display: ~azure.mgmt.eventgrid.models.OperationInfo :param origin: Origin of the operation. :type origin: str + :param is_data_action: This Boolean is used to determine if the operation is a data plane + action or not. + :type is_data_action: bool :param properties: Properties of the operation. :type properties: any """ @@ -1961,6 +2046,7 @@ class Operation(msrest.serialization.Model): 'name': {'key': 'name', 'type': 'str'}, 'display': {'key': 'display', 'type': 'OperationInfo'}, 'origin': {'key': 'origin', 'type': 'str'}, + 'is_data_action': {'key': 'isDataAction', 'type': 'bool'}, 'properties': {'key': 'properties', 'type': 'object'}, } @@ -1972,6 +2058,7 @@ def __init__( self.name = kwargs.get('name', None) self.display = kwargs.get('display', None) self.origin = kwargs.get('origin', None) + self.is_data_action = kwargs.get('is_data_action', None) self.properties = kwargs.get('properties', None) @@ -2044,6 +2131,9 @@ class PartnerNamespace(TrackedResource): :type tags: dict[str, str] :ivar system_data: The system metadata relating to Partner Namespace resource. :vartype system_data: ~azure.mgmt.eventgrid.models.SystemData + :ivar private_endpoint_connections: + :vartype private_endpoint_connections: + list[~azure.mgmt.eventgrid.models.PrivateEndpointConnection] :ivar provisioning_state: Provisioning state of the partner namespace. Possible values include: "Creating", "Updating", "Deleting", "Succeeded", "Canceled", "Failed". :vartype provisioning_state: str or @@ -2055,6 +2145,19 @@ class PartnerNamespace(TrackedResource): :type partner_registration_fully_qualified_id: str :ivar endpoint: Endpoint for the partner namespace. :vartype endpoint: str + :param public_network_access: This determines if traffic is allowed over public network. By + default it is enabled. + You can further restrict to specific IPs by configuring :code:``. Possible values include: "Enabled", "Disabled". + :type public_network_access: str or ~azure.mgmt.eventgrid.models.PublicNetworkAccess + :param inbound_ip_rules: This can be used to restrict traffic from specific IPs instead of all + IPs. Note: These are considered only if PublicNetworkAccess is enabled. + :type inbound_ip_rules: list[~azure.mgmt.eventgrid.models.InboundIpRule] + :param disable_local_auth: This boolean is used to enable or disable local auth. Default value + is false. When the property is set to true, only AAD token will be used to authenticate if user + is allowed to publish to the partner namespace. + :type disable_local_auth: bool """ _validation = { @@ -2063,6 +2166,7 @@ class PartnerNamespace(TrackedResource): 'type': {'readonly': True}, 'location': {'required': True}, 'system_data': {'readonly': True}, + 'private_endpoint_connections': {'readonly': True}, 'provisioning_state': {'readonly': True}, 'endpoint': {'readonly': True}, } @@ -2074,9 +2178,13 @@ class PartnerNamespace(TrackedResource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'system_data': {'key': 'systemData', 'type': 'SystemData'}, + 'private_endpoint_connections': {'key': 'properties.privateEndpointConnections', 'type': '[PrivateEndpointConnection]'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'partner_registration_fully_qualified_id': {'key': 'properties.partnerRegistrationFullyQualifiedId', 'type': 'str'}, 'endpoint': {'key': 'properties.endpoint', 'type': 'str'}, + 'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'}, + 'inbound_ip_rules': {'key': 'properties.inboundIpRules', 'type': '[InboundIpRule]'}, + 'disable_local_auth': {'key': 'properties.disableLocalAuth', 'type': 'bool'}, } def __init__( @@ -2085,9 +2193,13 @@ def __init__( ): super(PartnerNamespace, self).__init__(**kwargs) self.system_data = None + self.private_endpoint_connections = None self.provisioning_state = None self.partner_registration_fully_qualified_id = kwargs.get('partner_registration_fully_qualified_id', None) self.endpoint = None + self.public_network_access = kwargs.get('public_network_access', None) + self.inbound_ip_rules = kwargs.get('inbound_ip_rules', None) + self.disable_local_auth = kwargs.get('disable_local_auth', False) class PartnerNamespaceRegenerateKeyRequest(msrest.serialization.Model): @@ -2166,10 +2278,26 @@ class PartnerNamespaceUpdateParameters(msrest.serialization.Model): :param tags: A set of tags. Tags of the partner namespace. :type tags: dict[str, str] + :param public_network_access: This determines if traffic is allowed over public network. By + default it is enabled. + You can further restrict to specific IPs by configuring :code:``. Possible values include: "Enabled", "Disabled". + :type public_network_access: str or ~azure.mgmt.eventgrid.models.PublicNetworkAccess + :param inbound_ip_rules: This can be used to restrict traffic from specific IPs instead of all + IPs. Note: These are considered only if PublicNetworkAccess is enabled. + :type inbound_ip_rules: list[~azure.mgmt.eventgrid.models.InboundIpRule] + :param disable_local_auth: This boolean is used to enable or disable local auth. Default value + is false. When the property is set to true, only AAD token will be used to authenticate if user + is allowed to publish to the partner namespace. + :type disable_local_auth: bool """ _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, + 'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'}, + 'inbound_ip_rules': {'key': 'properties.inboundIpRules', 'type': '[InboundIpRule]'}, + 'disable_local_auth': {'key': 'properties.disableLocalAuth', 'type': 'bool'}, } def __init__( @@ -2178,6 +2306,9 @@ def __init__( ): super(PartnerNamespaceUpdateParameters, self).__init__(**kwargs) self.tags = kwargs.get('tags', None) + self.public_network_access = kwargs.get('public_network_access', None) + self.inbound_ip_rules = kwargs.get('inbound_ip_rules', None) + self.disable_local_auth = kwargs.get('disable_local_auth', None) class PartnerRegistration(TrackedResource): @@ -2299,29 +2430,6 @@ def __init__( self.authorized_azure_subscription_ids = kwargs.get('authorized_azure_subscription_ids', None) -class PartnerRegistrationEventTypesListResult(msrest.serialization.Model): - """Result of the List Partner Registration Event Types operation. - - :param value: A collection of partner registration event types. - :type value: list[~azure.mgmt.eventgrid.models.EventType] - :param next_link: A link for the next page of partner registration event types. - :type next_link: str - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[EventType]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(PartnerRegistrationEventTypesListResult, self).__init__(**kwargs) - self.value = kwargs.get('value', None) - self.next_link = kwargs.get('next_link', None) - - class PartnerRegistrationsListResult(msrest.serialization.Model): """Result of the List Partner Registrations operation. @@ -2411,10 +2519,10 @@ class PartnerTopic(TrackedResource): :type location: str :param tags: A set of tags. Tags of the resource. :type tags: dict[str, str] - :param identity: Identity information for the resource. - :type identity: ~azure.mgmt.eventgrid.models.IdentityInfo :ivar system_data: The system metadata relating to Partner Topic resource. :vartype system_data: ~azure.mgmt.eventgrid.models.SystemData + :param identity: Identity information for the Partner Topic resource. + :type identity: ~azure.mgmt.eventgrid.models.IdentityInfo :param source: Source associated with this partner topic. This represents a unique partner resource. :type source: str @@ -2450,8 +2558,8 @@ class PartnerTopic(TrackedResource): 'type': {'key': 'type', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, - 'identity': {'key': 'identity', 'type': 'IdentityInfo'}, 'system_data': {'key': 'systemData', 'type': 'SystemData'}, + 'identity': {'key': 'identity', 'type': 'IdentityInfo'}, 'source': {'key': 'properties.source', 'type': 'str'}, 'expiration_time_if_not_activated_utc': {'key': 'properties.expirationTimeIfNotActivatedUtc', 'type': 'iso-8601'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, @@ -2464,8 +2572,8 @@ def __init__( **kwargs ): super(PartnerTopic, self).__init__(**kwargs) - self.identity = kwargs.get('identity', None) self.system_data = None + self.identity = kwargs.get('identity', None) self.source = kwargs.get('source', None) self.expiration_time_if_not_activated_utc = kwargs.get('expiration_time_if_not_activated_utc', None) self.provisioning_state = None @@ -2496,97 +2604,18 @@ def __init__( self.next_link = kwargs.get('next_link', None) -class PartnerTopicType(Resource): - """Properties of a partner topic type. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified identifier of the resource. - :vartype id: str - :ivar name: Name of the resource. - :vartype name: str - :ivar type: Type of the resource. - :vartype type: str - :param partner_name: Official name of the partner. - :type partner_name: str - :param topic_type_name: Name of the partner topic type. This name should be unique among all - partner topic types names. - :type topic_type_name: str - :param display_name: Display Name for the partner topic type. - :type display_name: str - :param description: Description of the partner topic type. - :type description: str - :param setup_uri: URI of the partner website that can be used by Azure customers to setup Event - Grid - integration on an event source. - :type setup_uri: str - :param authorization_state: Status of whether the customer has authorized a partner to create - partner topics - in the customer's subscription. Possible values include: "NotApplicable", "NotAuthorized", - "Authorized". - :type authorization_state: str or - ~azure.mgmt.eventgrid.models.PartnerTopicTypeAuthorizationState - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'partner_name': {'key': 'properties.partnerName', 'type': 'str'}, - 'topic_type_name': {'key': 'properties.topicTypeName', 'type': 'str'}, - 'display_name': {'key': 'properties.displayName', 'type': 'str'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'setup_uri': {'key': 'properties.setupUri', 'type': 'str'}, - 'authorization_state': {'key': 'properties.authorizationState', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(PartnerTopicType, self).__init__(**kwargs) - self.partner_name = kwargs.get('partner_name', None) - self.topic_type_name = kwargs.get('topic_type_name', None) - self.display_name = kwargs.get('display_name', None) - self.description = kwargs.get('description', None) - self.setup_uri = kwargs.get('setup_uri', None) - self.authorization_state = kwargs.get('authorization_state', None) - - -class PartnerTopicTypesListResult(msrest.serialization.Model): - """Result of the List Partner Topic Types operation. - - :param value: A collection of partner topic types. - :type value: list[~azure.mgmt.eventgrid.models.PartnerTopicType] - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[PartnerTopicType]'}, - } - - def __init__( - self, - **kwargs - ): - super(PartnerTopicTypesListResult, self).__init__(**kwargs) - self.value = kwargs.get('value', None) - - class PartnerTopicUpdateParameters(msrest.serialization.Model): """Properties of the Partner Topic update. - :param tags: A set of tags. Tags of the partner topic. + :param tags: A set of tags. Tags of the Partner Topic resource. :type tags: dict[str, str] + :param identity: Identity information for the Partner Topic resource. + :type identity: ~azure.mgmt.eventgrid.models.IdentityInfo """ _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, + 'identity': {'key': 'identity', 'type': 'IdentityInfo'}, } def __init__( @@ -2595,6 +2624,7 @@ def __init__( ): super(PartnerTopicUpdateParameters, self).__init__(**kwargs) self.tags = kwargs.get('tags', None) + self.identity = kwargs.get('identity', None) class PrivateEndpoint(msrest.serialization.Model): @@ -2903,7 +2933,7 @@ def __init__( super(StaticDeliveryAttributeMapping, self).__init__(**kwargs) self.type = 'Static' # type: str self.value = kwargs.get('value', None) - self.is_secret = kwargs.get('is_secret', None) + self.is_secret = kwargs.get('is_secret', False) class StorageBlobDeadLetterDestination(DeadLetterDestination): @@ -3337,10 +3367,10 @@ class SystemTopic(TrackedResource): :type location: str :param tags: A set of tags. Tags of the resource. :type tags: dict[str, str] - :param identity: Identity information for the resource. - :type identity: ~azure.mgmt.eventgrid.models.IdentityInfo :ivar system_data: The system metadata relating to System Topic resource. :vartype system_data: ~azure.mgmt.eventgrid.models.SystemData + :param identity: Identity information for the resource. + :type identity: ~azure.mgmt.eventgrid.models.IdentityInfo :ivar provisioning_state: Provisioning state of the system topic. Possible values include: "Creating", "Updating", "Deleting", "Succeeded", "Canceled", "Failed". :vartype provisioning_state: str or ~azure.mgmt.eventgrid.models.ResourceProvisioningState @@ -3368,8 +3398,8 @@ class SystemTopic(TrackedResource): 'type': {'key': 'type', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, - 'identity': {'key': 'identity', 'type': 'IdentityInfo'}, 'system_data': {'key': 'systemData', 'type': 'SystemData'}, + 'identity': {'key': 'identity', 'type': 'IdentityInfo'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'source': {'key': 'properties.source', 'type': 'str'}, 'topic_type': {'key': 'properties.topicType', 'type': 'str'}, @@ -3381,8 +3411,8 @@ def __init__( **kwargs ): super(SystemTopic, self).__init__(**kwargs) - self.identity = kwargs.get('identity', None) self.system_data = None + self.identity = kwargs.get('identity', None) self.provisioning_state = None self.source = kwargs.get('source', None) self.topic_type = kwargs.get('topic_type', None) @@ -3456,7 +3486,8 @@ class Topic(TrackedResource): :type sku: ~azure.mgmt.eventgrid.models.ResourceSku :param identity: Identity information for the resource. :type identity: ~azure.mgmt.eventgrid.models.IdentityInfo - :param kind: Kind of the resource. Possible values include: "Azure", "AzureArc". + :param kind: Kind of the resource. Possible values include: "Azure", "AzureArc". Default value: + "Azure". :type kind: str or ~azure.mgmt.eventgrid.models.ResourceKind :param extended_location: Extended location of the resource. :type extended_location: ~azure.mgmt.eventgrid.models.ExtendedLocation @@ -3489,6 +3520,10 @@ class Topic(TrackedResource): :param inbound_ip_rules: This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess is enabled. :type inbound_ip_rules: list[~azure.mgmt.eventgrid.models.InboundIpRule] + :param disable_local_auth: This boolean is used to enable or disable local auth. Default value + is false. When the property is set to true, only AAD token will be used to authenticate if user + is allowed to publish to the topic. + :type disable_local_auth: bool """ _validation = { @@ -3522,6 +3557,7 @@ class Topic(TrackedResource): 'metric_resource_id': {'key': 'properties.metricResourceId', 'type': 'str'}, 'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'}, 'inbound_ip_rules': {'key': 'properties.inboundIpRules', 'type': '[InboundIpRule]'}, + 'disable_local_auth': {'key': 'properties.disableLocalAuth', 'type': 'bool'}, } def __init__( @@ -3531,7 +3567,7 @@ def __init__( super(Topic, self).__init__(**kwargs) self.sku = kwargs.get('sku', None) self.identity = kwargs.get('identity', None) - self.kind = kwargs.get('kind', None) + self.kind = kwargs.get('kind', "Azure") self.extended_location = kwargs.get('extended_location', None) self.system_data = None self.private_endpoint_connections = None @@ -3542,6 +3578,7 @@ def __init__( self.metric_resource_id = None self.public_network_access = kwargs.get('public_network_access', None) self.inbound_ip_rules = kwargs.get('inbound_ip_rules', None) + self.disable_local_auth = kwargs.get('disable_local_auth', False) class TopicRegenerateKeyRequest(msrest.serialization.Model): @@ -3704,9 +3741,9 @@ def __init__( class TopicUpdateParameters(msrest.serialization.Model): """Properties of the Topic update. - :param tags: A set of tags. Tags of the resource. + :param tags: A set of tags. Tags of the Topic resource. :type tags: dict[str, str] - :param identity: Resource identity information. + :param identity: Topic resource identity information. :type identity: ~azure.mgmt.eventgrid.models.IdentityInfo :param sku: The Sku pricing tier for the topic. :type sku: ~azure.mgmt.eventgrid.models.ResourceSku @@ -3719,6 +3756,10 @@ class TopicUpdateParameters(msrest.serialization.Model): :param inbound_ip_rules: This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess is enabled. :type inbound_ip_rules: list[~azure.mgmt.eventgrid.models.InboundIpRule] + :param disable_local_auth: This boolean is used to enable or disable local auth. Default value + is false. When the property is set to true, only AAD token will be used to authenticate if user + is allowed to publish to the topic. + :type disable_local_auth: bool """ _attribute_map = { @@ -3727,6 +3768,7 @@ class TopicUpdateParameters(msrest.serialization.Model): 'sku': {'key': 'sku', 'type': 'ResourceSku'}, 'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'}, 'inbound_ip_rules': {'key': 'properties.inboundIpRules', 'type': '[InboundIpRule]'}, + 'disable_local_auth': {'key': 'properties.disableLocalAuth', 'type': 'bool'}, } def __init__( @@ -3739,6 +3781,7 @@ def __init__( self.sku = kwargs.get('sku', None) self.public_network_access = kwargs.get('public_network_access', None) self.inbound_ip_rules = kwargs.get('inbound_ip_rules', None) + self.disable_local_auth = kwargs.get('disable_local_auth', None) class UserIdentityProperties(msrest.serialization.Model): diff --git a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/models/_models_py3.py b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/models/_models_py3.py index b1df1f324026..a41e663ef789 100644 --- a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/models/_models_py3.py +++ b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/models/_models_py3.py @@ -461,28 +461,29 @@ class Domain(TrackedResource): :type location: str :param tags: A set of tags. Tags of the resource. :type tags: dict[str, str] - :param sku: The Sku pricing tier for the domain. + :param sku: The Sku pricing tier for the Event Grid Domain resource. :type sku: ~azure.mgmt.eventgrid.models.ResourceSku - :param identity: Identity information for the resource. + :param identity: Identity information for the Event Grid Domain resource. :type identity: ~azure.mgmt.eventgrid.models.IdentityInfo - :ivar system_data: The system metadata relating to Domain resource. + :ivar system_data: The system metadata relating to the Event Grid Domain resource. :vartype system_data: ~azure.mgmt.eventgrid.models.SystemData :ivar private_endpoint_connections: List of private endpoint connections. :vartype private_endpoint_connections: list[~azure.mgmt.eventgrid.models.PrivateEndpointConnection] - :ivar provisioning_state: Provisioning state of the domain. Possible values include: - "Creating", "Updating", "Deleting", "Succeeded", "Canceled", "Failed". + :ivar provisioning_state: Provisioning state of the Event Grid Domain Resource. Possible values + include: "Creating", "Updating", "Deleting", "Succeeded", "Canceled", "Failed". :vartype provisioning_state: str or ~azure.mgmt.eventgrid.models.DomainProvisioningState - :ivar endpoint: Endpoint for the domain. + :ivar endpoint: Endpoint for the Event Grid Domain Resource which is used for publishing the + events. :vartype endpoint: str :param input_schema: This determines the format that Event Grid should expect for incoming - events published to the domain. Possible values include: "EventGridSchema", + events published to the Event Grid Domain Resource. Possible values include: "EventGridSchema", "CustomEventSchema", "CloudEventSchemaV1_0". :type input_schema: str or ~azure.mgmt.eventgrid.models.InputSchema :param input_schema_mapping: Information about the InputSchemaMapping which specified the info about mapping event payload. :type input_schema_mapping: ~azure.mgmt.eventgrid.models.InputSchemaMapping - :ivar metric_resource_id: Metric resource id for the domain. + :ivar metric_resource_id: Metric resource id for the Event Grid Domain Resource. :vartype metric_resource_id: str :param public_network_access: This determines if traffic is allowed over public network. By default it is enabled. @@ -493,6 +494,40 @@ class Domain(TrackedResource): :param inbound_ip_rules: This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess is enabled. :type inbound_ip_rules: list[~azure.mgmt.eventgrid.models.InboundIpRule] + :param disable_local_auth: This boolean is used to enable or disable local auth. Default value + is false. When the property is set to true, only AAD token will be used to authenticate if user + is allowed to publish to the domain. + :type disable_local_auth: bool + :param auto_create_topic_with_first_subscription: This Boolean is used to specify the creation + mechanism for 'all' the Event Grid Domain Topics associated with this Event Grid Domain + resource. + In this context, creation of domain topic can be auto-managed (when true) or self-managed + (when false). The default value for this property is true. + When this property is null or set to true, Event Grid is responsible of automatically creating + the domain topic when the first event subscription is + created at the scope of the domain topic. If this property is set to false, then creating the + first event subscription will require creating a domain topic + by the user. The self-management mode can be used if the user wants full control of when the + domain topic is created, while auto-managed mode provides the + flexibility to perform less operations and manage fewer resources by the user. Also, note that + in auto-managed creation mode, user is allowed to create the + domain topic on demand if needed. + :type auto_create_topic_with_first_subscription: bool + :param auto_delete_topic_with_last_subscription: This Boolean is used to specify the deletion + mechanism for 'all' the Event Grid Domain Topics associated with this Event Grid Domain + resource. + In this context, deletion of domain topic can be auto-managed (when true) or self-managed + (when false). The default value for this property is true. + When this property is set to true, Event Grid is responsible of automatically deleting the + domain topic when the last event subscription at the scope + of the domain topic is deleted. If this property is set to false, then the user needs to + manually delete the domain topic when it is no longer needed + (e.g., when last event subscription is deleted and the resource needs to be cleaned up). The + self-management mode can be used if the user wants full + control of when the domain topic needs to be deleted, while auto-managed mode provides the + flexibility to perform less operations and manage fewer + resources by the user. + :type auto_delete_topic_with_last_subscription: bool """ _validation = { @@ -524,6 +559,9 @@ class Domain(TrackedResource): 'metric_resource_id': {'key': 'properties.metricResourceId', 'type': 'str'}, 'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'}, 'inbound_ip_rules': {'key': 'properties.inboundIpRules', 'type': '[InboundIpRule]'}, + 'disable_local_auth': {'key': 'properties.disableLocalAuth', 'type': 'bool'}, + 'auto_create_topic_with_first_subscription': {'key': 'properties.autoCreateTopicWithFirstSubscription', 'type': 'bool'}, + 'auto_delete_topic_with_last_subscription': {'key': 'properties.autoDeleteTopicWithLastSubscription', 'type': 'bool'}, } def __init__( @@ -537,6 +575,9 @@ def __init__( input_schema_mapping: Optional["InputSchemaMapping"] = None, public_network_access: Optional[Union[str, "PublicNetworkAccess"]] = None, inbound_ip_rules: Optional[List["InboundIpRule"]] = None, + disable_local_auth: Optional[bool] = False, + auto_create_topic_with_first_subscription: Optional[bool] = True, + auto_delete_topic_with_last_subscription: Optional[bool] = True, **kwargs ): super(Domain, self).__init__(location=location, tags=tags, **kwargs) @@ -551,6 +592,9 @@ def __init__( self.metric_resource_id = None self.public_network_access = public_network_access self.inbound_ip_rules = inbound_ip_rules + self.disable_local_auth = disable_local_auth + self.auto_create_topic_with_first_subscription = auto_create_topic_with_first_subscription + self.auto_delete_topic_with_last_subscription = auto_delete_topic_with_last_subscription class DomainRegenerateKeyRequest(msrest.serialization.Model): @@ -719,6 +763,40 @@ class DomainUpdateParameters(msrest.serialization.Model): :param inbound_ip_rules: This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess is enabled. :type inbound_ip_rules: list[~azure.mgmt.eventgrid.models.InboundIpRule] + :param disable_local_auth: This boolean is used to enable or disable local auth. Default value + is false. When the property is set to true, only AAD token will be used to authenticate if user + is allowed to publish to the domain. + :type disable_local_auth: bool + :param auto_create_topic_with_first_subscription: This Boolean is used to specify the creation + mechanism for 'all' the Event Grid Domain Topics associated with this Event Grid Domain + resource. + In this context, creation of domain topic can be auto-managed (when true) or self-managed + (when false). The default value for this property is true. + When this property is null or set to true, Event Grid is responsible of automatically creating + the domain topic when the first event subscription is + created at the scope of the domain topic. If this property is set to false, then creating the + first event subscription will require creating a domain topic + by the user. The self-management mode can be used if the user wants full control of when the + domain topic is created, while auto-managed mode provides the + flexibility to perform less operations and manage fewer resources by the user. Also, note that + in auto-managed creation mode, user is allowed to create the + domain topic on demand if needed. + :type auto_create_topic_with_first_subscription: bool + :param auto_delete_topic_with_last_subscription: This Boolean is used to specify the deletion + mechanism for 'all' the Event Grid Domain Topics associated with this Event Grid Domain + resource. + In this context, deletion of domain topic can be auto-managed (when true) or self-managed + (when false). The default value for this property is true. + When this property is set to true, Event Grid is responsible of automatically deleting the + domain topic when the last event subscription at the scope + of the domain topic is deleted. If this property is set to false, then the user needs to + manually delete the domain topic when it is no longer needed + (e.g., when last event subscription is deleted and the resource needs to be cleaned up). The + self-management mode can be used if the user wants full + control of when the domain topic needs to be deleted, while auto-managed mode provides the + flexibility to perform less operations and manage fewer + resources by the user. + :type auto_delete_topic_with_last_subscription: bool """ _attribute_map = { @@ -727,6 +805,9 @@ class DomainUpdateParameters(msrest.serialization.Model): 'sku': {'key': 'sku', 'type': 'ResourceSku'}, 'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'}, 'inbound_ip_rules': {'key': 'properties.inboundIpRules', 'type': '[InboundIpRule]'}, + 'disable_local_auth': {'key': 'properties.disableLocalAuth', 'type': 'bool'}, + 'auto_create_topic_with_first_subscription': {'key': 'properties.autoCreateTopicWithFirstSubscription', 'type': 'bool'}, + 'auto_delete_topic_with_last_subscription': {'key': 'properties.autoDeleteTopicWithLastSubscription', 'type': 'bool'}, } def __init__( @@ -737,6 +818,9 @@ def __init__( sku: Optional["ResourceSku"] = None, public_network_access: Optional[Union[str, "PublicNetworkAccess"]] = None, inbound_ip_rules: Optional[List["InboundIpRule"]] = None, + disable_local_auth: Optional[bool] = None, + auto_create_topic_with_first_subscription: Optional[bool] = None, + auto_delete_topic_with_last_subscription: Optional[bool] = None, **kwargs ): super(DomainUpdateParameters, self).__init__(**kwargs) @@ -745,6 +829,9 @@ def __init__( self.sku = sku self.public_network_access = public_network_access self.inbound_ip_rules = inbound_ip_rules + self.disable_local_auth = disable_local_auth + self.auto_create_topic_with_first_subscription = auto_create_topic_with_first_subscription + self.auto_delete_topic_with_last_subscription = auto_delete_topic_with_last_subscription class DynamicDeliveryAttributeMapping(DeliveryAttributeMapping): @@ -905,7 +992,8 @@ class EventChannelFilter(msrest.serialization.Model): """Filter for the Event Channel. :param enable_advanced_filtering_on_arrays: Allows advanced filters to be evaluated against an - array of values instead of expecting a singular value. + array of values instead of expecting a singular value. The default value is either false or + null. :type enable_advanced_filtering_on_arrays: bool :param advanced_filters: An array of advanced filters that are used for filtering event channels. @@ -920,7 +1008,7 @@ class EventChannelFilter(msrest.serialization.Model): def __init__( self, *, - enable_advanced_filtering_on_arrays: Optional[bool] = None, + enable_advanced_filtering_on_arrays: Optional[bool] = False, advanced_filters: Optional[List["AdvancedFilter"]] = None, **kwargs ): @@ -2134,6 +2222,9 @@ class Operation(msrest.serialization.Model): :type display: ~azure.mgmt.eventgrid.models.OperationInfo :param origin: Origin of the operation. :type origin: str + :param is_data_action: This Boolean is used to determine if the operation is a data plane + action or not. + :type is_data_action: bool :param properties: Properties of the operation. :type properties: any """ @@ -2142,6 +2233,7 @@ class Operation(msrest.serialization.Model): 'name': {'key': 'name', 'type': 'str'}, 'display': {'key': 'display', 'type': 'OperationInfo'}, 'origin': {'key': 'origin', 'type': 'str'}, + 'is_data_action': {'key': 'isDataAction', 'type': 'bool'}, 'properties': {'key': 'properties', 'type': 'object'}, } @@ -2151,6 +2243,7 @@ def __init__( name: Optional[str] = None, display: Optional["OperationInfo"] = None, origin: Optional[str] = None, + is_data_action: Optional[bool] = None, properties: Optional[Any] = None, **kwargs ): @@ -2158,6 +2251,7 @@ def __init__( self.name = name self.display = display self.origin = origin + self.is_data_action = is_data_action self.properties = properties @@ -2237,6 +2331,9 @@ class PartnerNamespace(TrackedResource): :type tags: dict[str, str] :ivar system_data: The system metadata relating to Partner Namespace resource. :vartype system_data: ~azure.mgmt.eventgrid.models.SystemData + :ivar private_endpoint_connections: + :vartype private_endpoint_connections: + list[~azure.mgmt.eventgrid.models.PrivateEndpointConnection] :ivar provisioning_state: Provisioning state of the partner namespace. Possible values include: "Creating", "Updating", "Deleting", "Succeeded", "Canceled", "Failed". :vartype provisioning_state: str or @@ -2248,6 +2345,19 @@ class PartnerNamespace(TrackedResource): :type partner_registration_fully_qualified_id: str :ivar endpoint: Endpoint for the partner namespace. :vartype endpoint: str + :param public_network_access: This determines if traffic is allowed over public network. By + default it is enabled. + You can further restrict to specific IPs by configuring :code:``. Possible values include: "Enabled", "Disabled". + :type public_network_access: str or ~azure.mgmt.eventgrid.models.PublicNetworkAccess + :param inbound_ip_rules: This can be used to restrict traffic from specific IPs instead of all + IPs. Note: These are considered only if PublicNetworkAccess is enabled. + :type inbound_ip_rules: list[~azure.mgmt.eventgrid.models.InboundIpRule] + :param disable_local_auth: This boolean is used to enable or disable local auth. Default value + is false. When the property is set to true, only AAD token will be used to authenticate if user + is allowed to publish to the partner namespace. + :type disable_local_auth: bool """ _validation = { @@ -2256,6 +2366,7 @@ class PartnerNamespace(TrackedResource): 'type': {'readonly': True}, 'location': {'required': True}, 'system_data': {'readonly': True}, + 'private_endpoint_connections': {'readonly': True}, 'provisioning_state': {'readonly': True}, 'endpoint': {'readonly': True}, } @@ -2267,9 +2378,13 @@ class PartnerNamespace(TrackedResource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'system_data': {'key': 'systemData', 'type': 'SystemData'}, + 'private_endpoint_connections': {'key': 'properties.privateEndpointConnections', 'type': '[PrivateEndpointConnection]'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'partner_registration_fully_qualified_id': {'key': 'properties.partnerRegistrationFullyQualifiedId', 'type': 'str'}, 'endpoint': {'key': 'properties.endpoint', 'type': 'str'}, + 'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'}, + 'inbound_ip_rules': {'key': 'properties.inboundIpRules', 'type': '[InboundIpRule]'}, + 'disable_local_auth': {'key': 'properties.disableLocalAuth', 'type': 'bool'}, } def __init__( @@ -2278,13 +2393,20 @@ def __init__( location: str, tags: Optional[Dict[str, str]] = None, partner_registration_fully_qualified_id: Optional[str] = None, + public_network_access: Optional[Union[str, "PublicNetworkAccess"]] = None, + inbound_ip_rules: Optional[List["InboundIpRule"]] = None, + disable_local_auth: Optional[bool] = False, **kwargs ): super(PartnerNamespace, self).__init__(location=location, tags=tags, **kwargs) self.system_data = None + self.private_endpoint_connections = None self.provisioning_state = None self.partner_registration_fully_qualified_id = partner_registration_fully_qualified_id self.endpoint = None + self.public_network_access = public_network_access + self.inbound_ip_rules = inbound_ip_rules + self.disable_local_auth = disable_local_auth class PartnerNamespaceRegenerateKeyRequest(msrest.serialization.Model): @@ -2371,20 +2493,42 @@ class PartnerNamespaceUpdateParameters(msrest.serialization.Model): :param tags: A set of tags. Tags of the partner namespace. :type tags: dict[str, str] + :param public_network_access: This determines if traffic is allowed over public network. By + default it is enabled. + You can further restrict to specific IPs by configuring :code:``. Possible values include: "Enabled", "Disabled". + :type public_network_access: str or ~azure.mgmt.eventgrid.models.PublicNetworkAccess + :param inbound_ip_rules: This can be used to restrict traffic from specific IPs instead of all + IPs. Note: These are considered only if PublicNetworkAccess is enabled. + :type inbound_ip_rules: list[~azure.mgmt.eventgrid.models.InboundIpRule] + :param disable_local_auth: This boolean is used to enable or disable local auth. Default value + is false. When the property is set to true, only AAD token will be used to authenticate if user + is allowed to publish to the partner namespace. + :type disable_local_auth: bool """ _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, + 'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'}, + 'inbound_ip_rules': {'key': 'properties.inboundIpRules', 'type': '[InboundIpRule]'}, + 'disable_local_auth': {'key': 'properties.disableLocalAuth', 'type': 'bool'}, } def __init__( self, *, tags: Optional[Dict[str, str]] = None, + public_network_access: Optional[Union[str, "PublicNetworkAccess"]] = None, + inbound_ip_rules: Optional[List["InboundIpRule"]] = None, + disable_local_auth: Optional[bool] = None, **kwargs ): super(PartnerNamespaceUpdateParameters, self).__init__(**kwargs) self.tags = tags + self.public_network_access = public_network_access + self.inbound_ip_rules = inbound_ip_rules + self.disable_local_auth = disable_local_auth class PartnerRegistration(TrackedResource): @@ -2521,32 +2665,6 @@ def __init__( self.authorized_azure_subscription_ids = authorized_azure_subscription_ids -class PartnerRegistrationEventTypesListResult(msrest.serialization.Model): - """Result of the List Partner Registration Event Types operation. - - :param value: A collection of partner registration event types. - :type value: list[~azure.mgmt.eventgrid.models.EventType] - :param next_link: A link for the next page of partner registration event types. - :type next_link: str - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[EventType]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__( - self, - *, - value: Optional[List["EventType"]] = None, - next_link: Optional[str] = None, - **kwargs - ): - super(PartnerRegistrationEventTypesListResult, self).__init__(**kwargs) - self.value = value - self.next_link = next_link - - class PartnerRegistrationsListResult(msrest.serialization.Model): """Result of the List Partner Registrations operation. @@ -2647,10 +2765,10 @@ class PartnerTopic(TrackedResource): :type location: str :param tags: A set of tags. Tags of the resource. :type tags: dict[str, str] - :param identity: Identity information for the resource. - :type identity: ~azure.mgmt.eventgrid.models.IdentityInfo :ivar system_data: The system metadata relating to Partner Topic resource. :vartype system_data: ~azure.mgmt.eventgrid.models.SystemData + :param identity: Identity information for the Partner Topic resource. + :type identity: ~azure.mgmt.eventgrid.models.IdentityInfo :param source: Source associated with this partner topic. This represents a unique partner resource. :type source: str @@ -2686,8 +2804,8 @@ class PartnerTopic(TrackedResource): 'type': {'key': 'type', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, - 'identity': {'key': 'identity', 'type': 'IdentityInfo'}, 'system_data': {'key': 'systemData', 'type': 'SystemData'}, + 'identity': {'key': 'identity', 'type': 'IdentityInfo'}, 'source': {'key': 'properties.source', 'type': 'str'}, 'expiration_time_if_not_activated_utc': {'key': 'properties.expirationTimeIfNotActivatedUtc', 'type': 'iso-8601'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, @@ -2708,8 +2826,8 @@ def __init__( **kwargs ): super(PartnerTopic, self).__init__(location=location, tags=tags, **kwargs) - self.identity = identity self.system_data = None + self.identity = identity self.source = source self.expiration_time_if_not_activated_utc = expiration_time_if_not_activated_utc self.provisioning_state = None @@ -2743,116 +2861,30 @@ def __init__( self.next_link = next_link -class PartnerTopicType(Resource): - """Properties of a partner topic type. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Fully qualified identifier of the resource. - :vartype id: str - :ivar name: Name of the resource. - :vartype name: str - :ivar type: Type of the resource. - :vartype type: str - :param partner_name: Official name of the partner. - :type partner_name: str - :param topic_type_name: Name of the partner topic type. This name should be unique among all - partner topic types names. - :type topic_type_name: str - :param display_name: Display Name for the partner topic type. - :type display_name: str - :param description: Description of the partner topic type. - :type description: str - :param setup_uri: URI of the partner website that can be used by Azure customers to setup Event - Grid - integration on an event source. - :type setup_uri: str - :param authorization_state: Status of whether the customer has authorized a partner to create - partner topics - in the customer's subscription. Possible values include: "NotApplicable", "NotAuthorized", - "Authorized". - :type authorization_state: str or - ~azure.mgmt.eventgrid.models.PartnerTopicTypeAuthorizationState - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'partner_name': {'key': 'properties.partnerName', 'type': 'str'}, - 'topic_type_name': {'key': 'properties.topicTypeName', 'type': 'str'}, - 'display_name': {'key': 'properties.displayName', 'type': 'str'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'setup_uri': {'key': 'properties.setupUri', 'type': 'str'}, - 'authorization_state': {'key': 'properties.authorizationState', 'type': 'str'}, - } - - def __init__( - self, - *, - partner_name: Optional[str] = None, - topic_type_name: Optional[str] = None, - display_name: Optional[str] = None, - description: Optional[str] = None, - setup_uri: Optional[str] = None, - authorization_state: Optional[Union[str, "PartnerTopicTypeAuthorizationState"]] = None, - **kwargs - ): - super(PartnerTopicType, self).__init__(**kwargs) - self.partner_name = partner_name - self.topic_type_name = topic_type_name - self.display_name = display_name - self.description = description - self.setup_uri = setup_uri - self.authorization_state = authorization_state - - -class PartnerTopicTypesListResult(msrest.serialization.Model): - """Result of the List Partner Topic Types operation. - - :param value: A collection of partner topic types. - :type value: list[~azure.mgmt.eventgrid.models.PartnerTopicType] - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[PartnerTopicType]'}, - } - - def __init__( - self, - *, - value: Optional[List["PartnerTopicType"]] = None, - **kwargs - ): - super(PartnerTopicTypesListResult, self).__init__(**kwargs) - self.value = value - - class PartnerTopicUpdateParameters(msrest.serialization.Model): """Properties of the Partner Topic update. - :param tags: A set of tags. Tags of the partner topic. + :param tags: A set of tags. Tags of the Partner Topic resource. :type tags: dict[str, str] + :param identity: Identity information for the Partner Topic resource. + :type identity: ~azure.mgmt.eventgrid.models.IdentityInfo """ _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, + 'identity': {'key': 'identity', 'type': 'IdentityInfo'}, } def __init__( self, *, tags: Optional[Dict[str, str]] = None, + identity: Optional["IdentityInfo"] = None, **kwargs ): super(PartnerTopicUpdateParameters, self).__init__(**kwargs) self.tags = tags + self.identity = identity class PrivateEndpoint(msrest.serialization.Model): @@ -3191,7 +3223,7 @@ def __init__( *, name: Optional[str] = None, value: Optional[str] = None, - is_secret: Optional[bool] = None, + is_secret: Optional[bool] = False, **kwargs ): super(StaticDeliveryAttributeMapping, self).__init__(name=name, **kwargs) @@ -3669,10 +3701,10 @@ class SystemTopic(TrackedResource): :type location: str :param tags: A set of tags. Tags of the resource. :type tags: dict[str, str] - :param identity: Identity information for the resource. - :type identity: ~azure.mgmt.eventgrid.models.IdentityInfo :ivar system_data: The system metadata relating to System Topic resource. :vartype system_data: ~azure.mgmt.eventgrid.models.SystemData + :param identity: Identity information for the resource. + :type identity: ~azure.mgmt.eventgrid.models.IdentityInfo :ivar provisioning_state: Provisioning state of the system topic. Possible values include: "Creating", "Updating", "Deleting", "Succeeded", "Canceled", "Failed". :vartype provisioning_state: str or ~azure.mgmt.eventgrid.models.ResourceProvisioningState @@ -3700,8 +3732,8 @@ class SystemTopic(TrackedResource): 'type': {'key': 'type', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, - 'identity': {'key': 'identity', 'type': 'IdentityInfo'}, 'system_data': {'key': 'systemData', 'type': 'SystemData'}, + 'identity': {'key': 'identity', 'type': 'IdentityInfo'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'source': {'key': 'properties.source', 'type': 'str'}, 'topic_type': {'key': 'properties.topicType', 'type': 'str'}, @@ -3719,8 +3751,8 @@ def __init__( **kwargs ): super(SystemTopic, self).__init__(location=location, tags=tags, **kwargs) - self.identity = identity self.system_data = None + self.identity = identity self.provisioning_state = None self.source = source self.topic_type = topic_type @@ -3800,7 +3832,8 @@ class Topic(TrackedResource): :type sku: ~azure.mgmt.eventgrid.models.ResourceSku :param identity: Identity information for the resource. :type identity: ~azure.mgmt.eventgrid.models.IdentityInfo - :param kind: Kind of the resource. Possible values include: "Azure", "AzureArc". + :param kind: Kind of the resource. Possible values include: "Azure", "AzureArc". Default value: + "Azure". :type kind: str or ~azure.mgmt.eventgrid.models.ResourceKind :param extended_location: Extended location of the resource. :type extended_location: ~azure.mgmt.eventgrid.models.ExtendedLocation @@ -3833,6 +3866,10 @@ class Topic(TrackedResource): :param inbound_ip_rules: This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess is enabled. :type inbound_ip_rules: list[~azure.mgmt.eventgrid.models.InboundIpRule] + :param disable_local_auth: This boolean is used to enable or disable local auth. Default value + is false. When the property is set to true, only AAD token will be used to authenticate if user + is allowed to publish to the topic. + :type disable_local_auth: bool """ _validation = { @@ -3866,6 +3903,7 @@ class Topic(TrackedResource): 'metric_resource_id': {'key': 'properties.metricResourceId', 'type': 'str'}, 'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'}, 'inbound_ip_rules': {'key': 'properties.inboundIpRules', 'type': '[InboundIpRule]'}, + 'disable_local_auth': {'key': 'properties.disableLocalAuth', 'type': 'bool'}, } def __init__( @@ -3875,12 +3913,13 @@ def __init__( tags: Optional[Dict[str, str]] = None, sku: Optional["ResourceSku"] = None, identity: Optional["IdentityInfo"] = None, - kind: Optional[Union[str, "ResourceKind"]] = None, + kind: Optional[Union[str, "ResourceKind"]] = "Azure", extended_location: Optional["ExtendedLocation"] = None, input_schema: Optional[Union[str, "InputSchema"]] = None, input_schema_mapping: Optional["InputSchemaMapping"] = None, public_network_access: Optional[Union[str, "PublicNetworkAccess"]] = None, inbound_ip_rules: Optional[List["InboundIpRule"]] = None, + disable_local_auth: Optional[bool] = False, **kwargs ): super(Topic, self).__init__(location=location, tags=tags, **kwargs) @@ -3897,6 +3936,7 @@ def __init__( self.metric_resource_id = None self.public_network_access = public_network_access self.inbound_ip_rules = inbound_ip_rules + self.disable_local_auth = disable_local_auth class TopicRegenerateKeyRequest(msrest.serialization.Model): @@ -4078,9 +4118,9 @@ def __init__( class TopicUpdateParameters(msrest.serialization.Model): """Properties of the Topic update. - :param tags: A set of tags. Tags of the resource. + :param tags: A set of tags. Tags of the Topic resource. :type tags: dict[str, str] - :param identity: Resource identity information. + :param identity: Topic resource identity information. :type identity: ~azure.mgmt.eventgrid.models.IdentityInfo :param sku: The Sku pricing tier for the topic. :type sku: ~azure.mgmt.eventgrid.models.ResourceSku @@ -4093,6 +4133,10 @@ class TopicUpdateParameters(msrest.serialization.Model): :param inbound_ip_rules: This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess is enabled. :type inbound_ip_rules: list[~azure.mgmt.eventgrid.models.InboundIpRule] + :param disable_local_auth: This boolean is used to enable or disable local auth. Default value + is false. When the property is set to true, only AAD token will be used to authenticate if user + is allowed to publish to the topic. + :type disable_local_auth: bool """ _attribute_map = { @@ -4101,6 +4145,7 @@ class TopicUpdateParameters(msrest.serialization.Model): 'sku': {'key': 'sku', 'type': 'ResourceSku'}, 'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'}, 'inbound_ip_rules': {'key': 'properties.inboundIpRules', 'type': '[InboundIpRule]'}, + 'disable_local_auth': {'key': 'properties.disableLocalAuth', 'type': 'bool'}, } def __init__( @@ -4111,6 +4156,7 @@ def __init__( sku: Optional["ResourceSku"] = None, public_network_access: Optional[Union[str, "PublicNetworkAccess"]] = None, inbound_ip_rules: Optional[List["InboundIpRule"]] = None, + disable_local_auth: Optional[bool] = None, **kwargs ): super(TopicUpdateParameters, self).__init__(**kwargs) @@ -4119,6 +4165,7 @@ def __init__( self.sku = sku self.public_network_access = public_network_access self.inbound_ip_rules = inbound_ip_rules + self.disable_local_auth = disable_local_auth class UserIdentityProperties(msrest.serialization.Model): diff --git a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_domain_topics_operations.py b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_domain_topics_operations.py index 645654ea3760..3e60e086ddb9 100644 --- a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_domain_topics_operations.py +++ b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_domain_topics_operations.py @@ -75,7 +75,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" # Construct URL @@ -125,7 +125,7 @@ def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" # Construct URL @@ -250,7 +250,7 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore @@ -392,7 +392,7 @@ def list_by_domain( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): diff --git a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_domains_operations.py b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_domains_operations.py index 1d39f65bf45b..be2e26127a8e 100644 --- a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_domains_operations.py +++ b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_domains_operations.py @@ -72,7 +72,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" # Construct URL @@ -121,7 +121,7 @@ def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -248,7 +248,7 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore @@ -359,7 +359,7 @@ def _update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -508,7 +508,7 @@ def list_by_subscription( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -597,7 +597,7 @@ def list_by_resource_group( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -677,7 +677,7 @@ def list_shared_access_keys( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" # Construct URL @@ -741,7 +741,7 @@ def regenerate_key( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" diff --git a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_event_channels_operations.py b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_event_channels_operations.py index 549a274f01e7..05aca0283832 100644 --- a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_event_channels_operations.py +++ b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_event_channels_operations.py @@ -75,7 +75,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" # Construct URL @@ -143,7 +143,7 @@ def create_or_update( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -198,7 +198,7 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore @@ -340,7 +340,7 @@ def list_by_partner_namespace( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): diff --git a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_event_subscriptions_operations.py b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_event_subscriptions_operations.py index 8bf167068157..5e97199d53a5 100644 --- a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_event_subscriptions_operations.py +++ b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_event_subscriptions_operations.py @@ -79,7 +79,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" # Construct URL @@ -127,7 +127,7 @@ def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -263,7 +263,7 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore @@ -379,7 +379,7 @@ def _update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -531,7 +531,7 @@ def get_full_url( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" # Construct URL @@ -598,7 +598,7 @@ def list_global_by_subscription( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -687,7 +687,7 @@ def list_global_by_subscription_for_topic_type( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -777,7 +777,7 @@ def list_global_by_resource_group( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -870,7 +870,7 @@ def list_global_by_resource_group_for_topic_type( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -961,7 +961,7 @@ def list_regional_by_subscription( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -1055,7 +1055,7 @@ def list_regional_by_resource_group( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -1150,7 +1150,7 @@ def list_regional_by_subscription_for_topic_type( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -1248,7 +1248,7 @@ def list_regional_by_resource_group_for_topic_type( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -1349,7 +1349,7 @@ def list_by_resource( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -1448,7 +1448,7 @@ def list_by_domain_topic( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -1537,7 +1537,7 @@ def get_delivery_attributes( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" # Construct URL diff --git a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_extension_topics_operations.py b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_extension_topics_operations.py index 8a8166c70feb..4c3a84614011 100644 --- a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_extension_topics_operations.py +++ b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_extension_topics_operations.py @@ -71,7 +71,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" # Construct URL diff --git a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_operations.py b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_operations.py index 05fb3aa907dd..085345bcc76a 100644 --- a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_operations.py +++ b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_operations.py @@ -64,7 +64,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): diff --git a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_partner_namespaces_operations.py b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_partner_namespaces_operations.py index 79b3c02113f7..e383254ff3b9 100644 --- a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_partner_namespaces_operations.py +++ b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_partner_namespaces_operations.py @@ -72,7 +72,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" # Construct URL @@ -121,7 +121,7 @@ def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -248,7 +248,7 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore @@ -359,7 +359,7 @@ def _update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -508,7 +508,7 @@ def list_by_subscription( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -597,7 +597,7 @@ def list_by_resource_group( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -677,7 +677,7 @@ def list_shared_access_keys( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" # Construct URL @@ -741,7 +741,7 @@ def regenerate_key( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" diff --git a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_partner_registrations_operations.py b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_partner_registrations_operations.py index 550f54bcae2c..48cf4acbd11f 100644 --- a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_partner_registrations_operations.py +++ b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_partner_registrations_operations.py @@ -70,7 +70,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" # Construct URL @@ -134,7 +134,7 @@ def create_or_update( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -204,7 +204,7 @@ def delete( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" # Construct URL url = self.delete.metadata['url'] # type: ignore @@ -263,7 +263,7 @@ def update( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -338,7 +338,7 @@ def list_by_subscription( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -427,7 +427,7 @@ def list_by_resource_group( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -481,68 +481,3 @@ def get_next(next_link=None): get_next, extract_data ) list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerRegistrations'} # type: ignore - - def list( - self, - **kwargs # type: Any - ): - # type: (...) -> Iterable["_models.PartnerRegistrationsListResult"] - """List all available partners registrations. - - List all partners registrations. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either PartnerRegistrationsListResult or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.eventgrid.models.PartnerRegistrationsListResult] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.PartnerRegistrationsListResult"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" - accept = "application/json" - - def prepare_request(next_link=None): - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - if not next_link: - # Construct URL - url = self.list.metadata['url'] # type: ignore - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - request = self._client.get(url, query_parameters, header_parameters) - return request - - def extract_data(pipeline_response): - deserialized = self._deserialize('PartnerRegistrationsListResult', pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) - return None, iter(list_of_elem) - - def get_next(next_link=None): - request = prepare_request(next_link) - - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged( - get_next, extract_data - ) - list.metadata = {'url': '/providers/Microsoft.EventGrid/partnerRegistrations'} # type: ignore diff --git a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_partner_topic_event_subscriptions_operations.py b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_partner_topic_event_subscriptions_operations.py index 1f95fc78da58..ff818b5f413e 100644 --- a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_partner_topic_event_subscriptions_operations.py +++ b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_partner_topic_event_subscriptions_operations.py @@ -76,7 +76,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" # Construct URL @@ -127,7 +127,7 @@ def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -265,7 +265,7 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore @@ -385,7 +385,7 @@ def _update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -538,7 +538,7 @@ def get_full_url( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" # Construct URL @@ -613,7 +613,7 @@ def list_by_partner_topic( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -699,7 +699,7 @@ def get_delivery_attributes( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" # Construct URL diff --git a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_partner_topics_operations.py b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_partner_topics_operations.py index b63665b10b13..0138ba62eba7 100644 --- a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_partner_topics_operations.py +++ b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_partner_topics_operations.py @@ -72,7 +72,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" # Construct URL @@ -120,7 +120,7 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore @@ -246,7 +246,7 @@ def update( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -321,7 +321,7 @@ def list_by_subscription( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -410,7 +410,7 @@ def list_by_resource_group( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -490,7 +490,7 @@ def activate( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" # Construct URL @@ -551,7 +551,7 @@ def deactivate( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" # Construct URL diff --git a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_private_endpoint_connections_operations.py b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_private_endpoint_connections_operations.py index 652e797b7a03..912b51d4d68b 100644 --- a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_private_endpoint_connections_operations.py +++ b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_private_endpoint_connections_operations.py @@ -58,15 +58,15 @@ def get( # type: (...) -> "_models.PrivateEndpointConnection" """Get a specific private endpoint connection. - Get a specific private endpoint connection under a topic or domain. + Get a specific private endpoint connection under a topic, domain, or partner namespace. :param resource_group_name: The name of the resource group within the user's subscription. :type resource_group_name: str - :param parent_type: The type of the parent resource. This can be either \'topics\' or - \'domains\'. + :param parent_type: The type of the parent resource. This can be either \'topics\', + \'domains\', or \'partnerNamespaces\'. :type parent_type: str or ~azure.mgmt.eventgrid.models.Enum25 - :param parent_name: The name of the parent resource (namely, either, the topic name or domain - name). + :param parent_name: The name of the parent resource (namely, either, the topic name, domain + name, or partner namespace name). :type parent_name: str :param private_endpoint_connection_name: The name of the private endpoint connection connection. @@ -81,7 +81,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" # Construct URL @@ -134,7 +134,7 @@ def _update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -193,15 +193,15 @@ def begin_update( # type: (...) -> LROPoller["_models.PrivateEndpointConnection"] """Update a specific private endpoint connection. - Update a specific private endpoint connection under a topic or domain. + Update a specific private endpoint connection under a topic, domain or partner namespace. :param resource_group_name: The name of the resource group within the user's subscription. :type resource_group_name: str - :param parent_type: The type of the parent resource. This can be either \'topics\' or - \'domains\'. + :param parent_type: The type of the parent resource. This can be either \'topics\', + \'domains\', or \'partnerNamespaces\'. :type parent_type: str or ~azure.mgmt.eventgrid.models.Enum26 - :param parent_name: The name of the parent resource (namely, either, the topic name or domain - name). + :param parent_name: The name of the parent resource (namely, either, the topic name, domain + name, or partner namespace name). :type parent_name: str :param private_endpoint_connection_name: The name of the private endpoint connection connection. @@ -282,7 +282,7 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore @@ -326,15 +326,15 @@ def begin_delete( # type: (...) -> LROPoller[None] """Delete a specific private endpoint connection. - Delete a specific private endpoint connection under a topic or domain. + Delete a specific private endpoint connection under a topic, domain, or partner namespace. :param resource_group_name: The name of the resource group within the user's subscription. :type resource_group_name: str - :param parent_type: The type of the parent resource. This can be either \'topics\' or - \'domains\'. + :param parent_type: The type of the parent resource. This can be either \'topics\', + \'domains\', or \'partnerNamespaces\'. :type parent_type: str or ~azure.mgmt.eventgrid.models.Enum27 - :param parent_name: The name of the parent resource (namely, either, the topic name or domain - name). + :param parent_name: The name of the parent resource (namely, either, the topic name, domain + name, or partner namespace name). :type parent_name: str :param private_endpoint_connection_name: The name of the private endpoint connection connection. @@ -407,15 +407,15 @@ def list_by_resource( # type: (...) -> Iterable["_models.PrivateEndpointConnectionListResult"] """Lists all private endpoint connections under a resource. - Get all private endpoint connections under a topic or domain. + Get all private endpoint connections under a topic, domain, or partner namespace. :param resource_group_name: The name of the resource group within the user's subscription. :type resource_group_name: str - :param parent_type: The type of the parent resource. This can be either \'topics\' or - \'domains\'. + :param parent_type: The type of the parent resource. This can be either \'topics\', + \'domains\', or \'partnerNamespaces\'. :type parent_type: str or ~azure.mgmt.eventgrid.models.Enum28 - :param parent_name: The name of the parent resource (namely, either, the topic name or domain - name). + :param parent_name: The name of the parent resource (namely, either, the topic name, domain + name, or partner namespace name). :type parent_name: str :param filter: The query used to filter the search results using OData syntax. Filtering is permitted on the 'name' property only and with limited number of OData operations. These @@ -438,7 +438,7 @@ def list_by_resource( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): diff --git a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_private_link_resources_operations.py b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_private_link_resources_operations.py index 526c64766e1a..dc7c66baba3b 100644 --- a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_private_link_resources_operations.py +++ b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_private_link_resources_operations.py @@ -60,11 +60,11 @@ def get( :param resource_group_name: The name of the resource group within the user's subscription. :type resource_group_name: str - :param parent_type: The type of the parent resource. This can be either \'topics\' or - \'domains\'. + :param parent_type: The type of the parent resource. This can be either \'topics\', + \'domains\', or \'partnerNamespaces\'. :type parent_type: str - :param parent_name: The name of the parent resource (namely, either, the topic name or domain - name). + :param parent_name: The name of the parent resource (namely, either, the topic name, domain + name, or partner namespace name). :type parent_name: str :param private_link_resource_name: The name of private link resource. :type private_link_resource_name: str @@ -78,7 +78,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" # Construct URL @@ -126,17 +126,17 @@ def list_by_resource( **kwargs # type: Any ): # type: (...) -> Iterable["_models.PrivateLinkResourcesListResult"] - """List private link resources under specific topic or domain. + """List private link resources under specific topic, domain, or partner namespace. - List all the private link resources under a topic or domain. + List all the private link resources under a topic, domain, or partner namespace. :param resource_group_name: The name of the resource group within the user's subscription. :type resource_group_name: str - :param parent_type: The type of the parent resource. This can be either \'topics\' or - \'domains\'. + :param parent_type: The type of the parent resource. This can be either \'topics\', + \'domains\', or \'partnerNamespaces\'. :type parent_type: str - :param parent_name: The name of the parent resource (namely, either, the topic name or domain - name). + :param parent_name: The name of the parent resource (namely, either, the topic name, domain + name, or partner namespace name). :type parent_name: str :param filter: The query used to filter the search results using OData syntax. Filtering is permitted on the 'name' property only and with limited number of OData operations. These @@ -159,7 +159,7 @@ def list_by_resource( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): diff --git a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_system_topic_event_subscriptions_operations.py b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_system_topic_event_subscriptions_operations.py index 86f5e854db44..b38a419842a3 100644 --- a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_system_topic_event_subscriptions_operations.py +++ b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_system_topic_event_subscriptions_operations.py @@ -77,7 +77,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" # Construct URL @@ -128,7 +128,7 @@ def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -266,7 +266,7 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore @@ -386,7 +386,7 @@ def _update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -539,7 +539,7 @@ def get_full_url( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" # Construct URL @@ -614,7 +614,7 @@ def list_by_system_topic( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -700,7 +700,7 @@ def get_delivery_attributes( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" # Construct URL diff --git a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_system_topics_operations.py b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_system_topics_operations.py index 03bdeba22ba5..14b6e1e1b58a 100644 --- a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_system_topics_operations.py +++ b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_system_topics_operations.py @@ -72,7 +72,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" # Construct URL @@ -121,7 +121,7 @@ def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -252,7 +252,7 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore @@ -363,7 +363,7 @@ def _update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -514,7 +514,7 @@ def list_by_subscription( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -603,7 +603,7 @@ def list_by_resource_group( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): diff --git a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_topic_types_operations.py b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_topic_types_operations.py index 0cd2fe91ce49..812bfc006353 100644 --- a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_topic_types_operations.py +++ b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_topic_types_operations.py @@ -64,7 +64,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -132,7 +132,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" # Construct URL @@ -188,7 +188,7 @@ def list_event_types( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): diff --git a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_topics_operations.py b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_topics_operations.py index 84af2c8675ba..d9bff65d9e06 100644 --- a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_topics_operations.py +++ b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_topics_operations.py @@ -72,7 +72,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" # Construct URL @@ -121,7 +121,7 @@ def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -248,7 +248,7 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore @@ -359,7 +359,7 @@ def _update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -508,7 +508,7 @@ def list_by_subscription( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -597,7 +597,7 @@ def list_by_resource_group( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -677,7 +677,7 @@ def list_shared_access_keys( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" # Construct URL @@ -726,7 +726,7 @@ def _regenerate_key_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -874,7 +874,7 @@ def list_event_types( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-15-preview" + api_version = "2021-06-01-preview" accept = "application/json" def prepare_request(next_link=None):