diff --git a/sdk/network/azure-mgmt-network/azure/mgmt/network/_serialization.py b/sdk/network/azure-mgmt-network/azure/mgmt/network/_serialization.py index ce17d1798ce7..b24ab2885450 100644 --- a/sdk/network/azure-mgmt-network/azure/mgmt/network/_serialization.py +++ b/sdk/network/azure-mgmt-network/azure/mgmt/network/_serialization.py @@ -310,7 +310,7 @@ def _create_xml_node(tag, prefix=None, ns=None): return ET.Element(tag) -class Model(object): +class Model: """Mixin for all client request body/response body models to support serialization and deserialization. """ @@ -563,7 +563,7 @@ def _decode_attribute_map_key(key): return key.replace("\\.", ".") -class Serializer(object): # pylint: disable=too-many-public-methods +class Serializer: # pylint: disable=too-many-public-methods """Request object model serializer.""" basic_types = {str: "str", int: "int", bool: "bool", float: "float"} @@ -1441,7 +1441,7 @@ def xml_key_extractor(attr, attr_desc, data): # pylint: disable=unused-argument return children[0] -class Deserializer(object): +class Deserializer: """Response object model deserializer. :param dict classes: Class type dictionary for deserializing complex types. @@ -1683,17 +1683,21 @@ def _instantiate_model(self, response, attrs, additional_properties=None): subtype = getattr(response, "_subtype_map", {}) try: readonly = [ - k for k, v in response._validation.items() if v.get("readonly") # pylint: disable=protected-access + k + for k, v in response._validation.items() # pylint: disable=protected-access # type: ignore + if v.get("readonly") ] const = [ - k for k, v in response._validation.items() if v.get("constant") # pylint: disable=protected-access + k + for k, v in response._validation.items() # pylint: disable=protected-access # type: ignore + if v.get("constant") ] kwargs = {k: v for k, v in attrs.items() if k not in subtype and k not in readonly + const} response_obj = response(**kwargs) for attr in readonly: setattr(response_obj, attr, attrs.get(attr)) if additional_properties: - response_obj.additional_properties = additional_properties + response_obj.additional_properties = additional_properties # type: ignore return response_obj except TypeError as err: msg = "Unable to deserialize {} into model {}. ".format(kwargs, response) # type: ignore diff --git a/sdk/network/azure-mgmt-network/azure/mgmt/network/_version.py b/sdk/network/azure-mgmt-network/azure/mgmt/network/_version.py index e341f9689021..261dd57e8f08 100644 --- a/sdk/network/azure-mgmt-network/azure/mgmt/network/_version.py +++ b/sdk/network/azure-mgmt-network/azure/mgmt/network/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "28.1.0" +VERSION = "28.0.0" diff --git a/sdk/network/azure-mgmt-network/azure/mgmt/network/models/__init__.py b/sdk/network/azure-mgmt-network/azure/mgmt/network/models/__init__.py index 4b31ddb18fb8..bc721d4ebcc3 100644 --- a/sdk/network/azure-mgmt-network/azure/mgmt/network/models/__init__.py +++ b/sdk/network/azure-mgmt-network/azure/mgmt/network/models/__init__.py @@ -435,6 +435,7 @@ LocalNetworkGateway, LocalNetworkGatewayListResult, LogSpecification, + ManagedIdentityInfo, ManagedRuleGroupOverride, ManagedRuleOverride, ManagedRuleSet, @@ -531,6 +532,7 @@ PacketCaptureResultProperties, PacketCaptureSettings, PacketCaptureStorageLocation, + PacketCaptureStorageSettings, Parameter, PartnerManagedResourceProperties, PatchObject, @@ -659,6 +661,7 @@ StaticMemberListResult, StaticRoute, StaticRoutesConfig, + StorageAuthentication, SubResource, Subnet, SubnetAssociation, @@ -1456,6 +1459,7 @@ "LocalNetworkGateway", "LocalNetworkGatewayListResult", "LogSpecification", + "ManagedIdentityInfo", "ManagedRuleGroupOverride", "ManagedRuleOverride", "ManagedRuleSet", @@ -1552,6 +1556,7 @@ "PacketCaptureResultProperties", "PacketCaptureSettings", "PacketCaptureStorageLocation", + "PacketCaptureStorageSettings", "Parameter", "PartnerManagedResourceProperties", "PatchObject", @@ -1680,6 +1685,7 @@ "StaticMemberListResult", "StaticRoute", "StaticRoutesConfig", + "StorageAuthentication", "SubResource", "Subnet", "SubnetAssociation", diff --git a/sdk/network/azure-mgmt-network/azure/mgmt/network/models/_models_py3.py b/sdk/network/azure-mgmt-network/azure/mgmt/network/models/_models_py3.py index 43b6993c0d7a..01d1203a6793 100644 --- a/sdk/network/azure-mgmt-network/azure/mgmt/network/models/_models_py3.py +++ b/sdk/network/azure-mgmt-network/azure/mgmt/network/models/_models_py3.py @@ -3748,7 +3748,7 @@ class ApplicationGatewayOnDemandProbe(_serialization.Model): :ivar host: Host name to send the probe to. :vartype host: str :ivar path: Relative path of probe. Valid path starts from '/'. Probe is sent to - :code:``://:code:``::code:``:code:``. + :code:``://\\ :code:``:\\ :code:``\\ :code:``. :vartype path: str :ivar timeout: The probe timeout in seconds. Probe marked as failed if valid response is not received with this timeout period. Acceptable values are from 1 second to 86400 seconds. @@ -3797,7 +3797,7 @@ def __init__( :keyword host: Host name to send the probe to. :paramtype host: str :keyword path: Relative path of probe. Valid path starts from '/'. Probe is sent to - :code:``://:code:``::code:``:code:``. + :code:``://\\ :code:``:\\ :code:``\\ :code:``. :paramtype path: str :keyword timeout: The probe timeout in seconds. Probe marked as failed if valid response is not received with this timeout period. Acceptable values are from 1 second to 86400 seconds. @@ -4301,7 +4301,7 @@ class ApplicationGatewayProbe(SubResource): :ivar host: Host name to send the probe to. :vartype host: str :ivar path: Relative path of probe. Valid path starts from '/'. Probe is sent to - :code:``://:code:``::code:``:code:``. + :code:``://\\ :code:``:\\ :code:``\\ :code:``. :vartype path: str :ivar interval: The probing interval in seconds. This is the time interval between two consecutive probes. Acceptable values are from 1 second to 86400 seconds. @@ -4391,7 +4391,7 @@ def __init__( :keyword host: Host name to send the probe to. :paramtype host: str :keyword path: Relative path of probe. Valid path starts from '/'. Probe is sent to - :code:``://:code:``::code:``:code:``. + :code:``://\\ :code:``:\\ :code:``\\ :code:``. :paramtype path: str :keyword interval: The probing interval in seconds. This is the time interval between two consecutive probes. Acceptable values are from 1 second to 86400 seconds. @@ -23161,6 +23161,28 @@ def __init__( self.blob_duration = blob_duration +class ManagedIdentityInfo(_serialization.Model): + """The managed identity information for a packet capture session. + + :ivar managed_indentity_resource_id: The managed identity resource id information for a packet + capture session. + :vartype managed_indentity_resource_id: str + """ + + _attribute_map = { + "managed_indentity_resource_id": {"key": "managedIndentityResourceId ", "type": "str"}, + } + + def __init__(self, *, managed_indentity_resource_id: Optional[str] = None, **kwargs: Any) -> None: + """ + :keyword managed_indentity_resource_id: The managed identity resource id information for a + packet capture session. + :paramtype managed_indentity_resource_id: str + """ + super().__init__(**kwargs) + self.managed_indentity_resource_id = managed_indentity_resource_id + + class ManagedRuleGroupOverride(_serialization.Model): """Defines a managed rule group override setting. @@ -24702,7 +24724,7 @@ class NetworkInterfaceIPConfiguration(SubResource): :ivar load_balancer_inbound_nat_rules: A list of references of LoadBalancerInboundNatRules. :vartype load_balancer_inbound_nat_rules: list[~azure.mgmt.network.models.InboundNatRule] :ivar private_ip_address: Private IP address of the IP configuration. It can be a single IP - address or a CIDR block in the format :code:`
`/:code:``. + address or a CIDR block in the format :code:`
`/\\ :code:``. :vartype private_ip_address: str :ivar private_ip_address_prefix_length: The private IP address prefix length. If specified and the allocation method is dynamic, the service will allocate a CIDR block instead of a single IP @@ -24822,7 +24844,7 @@ def __init__( :keyword load_balancer_inbound_nat_rules: A list of references of LoadBalancerInboundNatRules. :paramtype load_balancer_inbound_nat_rules: list[~azure.mgmt.network.models.InboundNatRule] :keyword private_ip_address: Private IP address of the IP configuration. It can be a single IP - address or a CIDR block in the format :code:`
`/:code:``. + address or a CIDR block in the format :code:`
`/\\ :code:``. :paramtype private_ip_address: str :keyword private_ip_address_prefix_length: The private IP address prefix length. If specified and the allocation method is dynamic, the service will allocate a CIDR block instead of a @@ -27741,6 +27763,8 @@ class PacketCapture(_serialization.Model): :vartype time_limit_in_seconds: int :ivar storage_location: The storage location for a packet capture session. Required. :vartype storage_location: ~azure.mgmt.network.models.PacketCaptureStorageLocation + :ivar storage_settings: The storage setting for a packet capture session. + :vartype storage_settings: ~azure.mgmt.network.models.PacketCaptureStorageSettings :ivar filters: A list of packet capture filters. :vartype filters: list[~azure.mgmt.network.models.PacketCaptureFilter] :ivar continuous_capture: This continuous capture is a nullable boolean, which can hold 'null', @@ -27768,6 +27792,7 @@ class PacketCapture(_serialization.Model): "total_bytes_per_session": {"key": "properties.totalBytesPerSession", "type": "int"}, "time_limit_in_seconds": {"key": "properties.timeLimitInSeconds", "type": "int"}, "storage_location": {"key": "properties.storageLocation", "type": "PacketCaptureStorageLocation"}, + "storage_settings": {"key": "properties.storageSettings", "type": "PacketCaptureStorageSettings"}, "filters": {"key": "properties.filters", "type": "[PacketCaptureFilter]"}, "continuous_capture": {"key": "properties.continuousCapture", "type": "bool"}, "capture_settings": {"key": "properties.captureSettings", "type": "PacketCaptureSettings"}, @@ -27783,6 +27808,7 @@ def __init__( bytes_to_capture_per_packet: int = 0, total_bytes_per_session: int = 1073741824, time_limit_in_seconds: int = 18000, + storage_settings: Optional["_models.PacketCaptureStorageSettings"] = None, filters: Optional[List["_models.PacketCaptureFilter"]] = None, continuous_capture: Optional[bool] = None, capture_settings: Optional["_models.PacketCaptureSettings"] = None, @@ -27808,6 +27834,8 @@ def __init__( :paramtype time_limit_in_seconds: int :keyword storage_location: The storage location for a packet capture session. Required. :paramtype storage_location: ~azure.mgmt.network.models.PacketCaptureStorageLocation + :keyword storage_settings: The storage setting for a packet capture session. + :paramtype storage_settings: ~azure.mgmt.network.models.PacketCaptureStorageSettings :keyword filters: A list of packet capture filters. :paramtype filters: list[~azure.mgmt.network.models.PacketCaptureFilter] :keyword continuous_capture: This continuous capture is a nullable boolean, which can hold @@ -27826,6 +27854,7 @@ def __init__( self.total_bytes_per_session = total_bytes_per_session self.time_limit_in_seconds = time_limit_in_seconds self.storage_location = storage_location + self.storage_settings = storage_settings self.filters = filters self.continuous_capture = continuous_capture self.capture_settings = capture_settings @@ -27980,6 +28009,8 @@ class PacketCaptureParameters(_serialization.Model): :vartype time_limit_in_seconds: int :ivar storage_location: The storage location for a packet capture session. Required. :vartype storage_location: ~azure.mgmt.network.models.PacketCaptureStorageLocation + :ivar storage_settings: The storage setting for a packet capture session. + :vartype storage_settings: ~azure.mgmt.network.models.PacketCaptureStorageSettings :ivar filters: A list of packet capture filters. :vartype filters: list[~azure.mgmt.network.models.PacketCaptureFilter] :ivar continuous_capture: This continuous capture is a nullable boolean, which can hold 'null', @@ -28007,6 +28038,7 @@ class PacketCaptureParameters(_serialization.Model): "total_bytes_per_session": {"key": "totalBytesPerSession", "type": "int"}, "time_limit_in_seconds": {"key": "timeLimitInSeconds", "type": "int"}, "storage_location": {"key": "storageLocation", "type": "PacketCaptureStorageLocation"}, + "storage_settings": {"key": "storageSettings", "type": "PacketCaptureStorageSettings"}, "filters": {"key": "filters", "type": "[PacketCaptureFilter]"}, "continuous_capture": {"key": "continuousCapture", "type": "bool"}, "capture_settings": {"key": "captureSettings", "type": "PacketCaptureSettings"}, @@ -28022,6 +28054,7 @@ def __init__( bytes_to_capture_per_packet: int = 0, total_bytes_per_session: int = 1073741824, time_limit_in_seconds: int = 18000, + storage_settings: Optional["_models.PacketCaptureStorageSettings"] = None, filters: Optional[List["_models.PacketCaptureFilter"]] = None, continuous_capture: Optional[bool] = None, capture_settings: Optional["_models.PacketCaptureSettings"] = None, @@ -28047,6 +28080,8 @@ def __init__( :paramtype time_limit_in_seconds: int :keyword storage_location: The storage location for a packet capture session. Required. :paramtype storage_location: ~azure.mgmt.network.models.PacketCaptureStorageLocation + :keyword storage_settings: The storage setting for a packet capture session. + :paramtype storage_settings: ~azure.mgmt.network.models.PacketCaptureStorageSettings :keyword filters: A list of packet capture filters. :paramtype filters: list[~azure.mgmt.network.models.PacketCaptureFilter] :keyword continuous_capture: This continuous capture is a nullable boolean, which can hold @@ -28065,6 +28100,7 @@ def __init__( self.total_bytes_per_session = total_bytes_per_session self.time_limit_in_seconds = time_limit_in_seconds self.storage_location = storage_location + self.storage_settings = storage_settings self.filters = filters self.continuous_capture = continuous_capture self.capture_settings = capture_settings @@ -28162,6 +28198,8 @@ class PacketCaptureResult(_serialization.Model): :vartype time_limit_in_seconds: int :ivar storage_location: The storage location for a packet capture session. :vartype storage_location: ~azure.mgmt.network.models.PacketCaptureStorageLocation + :ivar storage_settings: The storage setting for a packet capture session. + :vartype storage_settings: ~azure.mgmt.network.models.PacketCaptureStorageSettings :ivar filters: A list of packet capture filters. :vartype filters: list[~azure.mgmt.network.models.PacketCaptureFilter] :ivar continuous_capture: This continuous capture is a nullable boolean, which can hold 'null', @@ -28197,6 +28235,7 @@ class PacketCaptureResult(_serialization.Model): "total_bytes_per_session": {"key": "properties.totalBytesPerSession", "type": "int"}, "time_limit_in_seconds": {"key": "properties.timeLimitInSeconds", "type": "int"}, "storage_location": {"key": "properties.storageLocation", "type": "PacketCaptureStorageLocation"}, + "storage_settings": {"key": "properties.storageSettings", "type": "PacketCaptureStorageSettings"}, "filters": {"key": "properties.filters", "type": "[PacketCaptureFilter]"}, "continuous_capture": {"key": "properties.continuousCapture", "type": "bool"}, "capture_settings": {"key": "properties.captureSettings", "type": "PacketCaptureSettings"}, @@ -28213,6 +28252,7 @@ def __init__( total_bytes_per_session: int = 1073741824, time_limit_in_seconds: int = 18000, storage_location: Optional["_models.PacketCaptureStorageLocation"] = None, + storage_settings: Optional["_models.PacketCaptureStorageSettings"] = None, filters: Optional[List["_models.PacketCaptureFilter"]] = None, continuous_capture: Optional[bool] = None, capture_settings: Optional["_models.PacketCaptureSettings"] = None, @@ -28238,6 +28278,8 @@ def __init__( :paramtype time_limit_in_seconds: int :keyword storage_location: The storage location for a packet capture session. :paramtype storage_location: ~azure.mgmt.network.models.PacketCaptureStorageLocation + :keyword storage_settings: The storage setting for a packet capture session. + :paramtype storage_settings: ~azure.mgmt.network.models.PacketCaptureStorageSettings :keyword filters: A list of packet capture filters. :paramtype filters: list[~azure.mgmt.network.models.PacketCaptureFilter] :keyword continuous_capture: This continuous capture is a nullable boolean, which can hold @@ -28259,6 +28301,7 @@ def __init__( self.total_bytes_per_session = total_bytes_per_session self.time_limit_in_seconds = time_limit_in_seconds self.storage_location = storage_location + self.storage_settings = storage_settings self.filters = filters self.continuous_capture = continuous_capture self.capture_settings = capture_settings @@ -28291,6 +28334,8 @@ class PacketCaptureResultProperties(PacketCaptureParameters): :vartype time_limit_in_seconds: int :ivar storage_location: The storage location for a packet capture session. Required. :vartype storage_location: ~azure.mgmt.network.models.PacketCaptureStorageLocation + :ivar storage_settings: The storage setting for a packet capture session. + :vartype storage_settings: ~azure.mgmt.network.models.PacketCaptureStorageSettings :ivar filters: A list of packet capture filters. :vartype filters: list[~azure.mgmt.network.models.PacketCaptureFilter] :ivar continuous_capture: This continuous capture is a nullable boolean, which can hold 'null', @@ -28322,6 +28367,7 @@ class PacketCaptureResultProperties(PacketCaptureParameters): "total_bytes_per_session": {"key": "totalBytesPerSession", "type": "int"}, "time_limit_in_seconds": {"key": "timeLimitInSeconds", "type": "int"}, "storage_location": {"key": "storageLocation", "type": "PacketCaptureStorageLocation"}, + "storage_settings": {"key": "storageSettings", "type": "PacketCaptureStorageSettings"}, "filters": {"key": "filters", "type": "[PacketCaptureFilter]"}, "continuous_capture": {"key": "continuousCapture", "type": "bool"}, "capture_settings": {"key": "captureSettings", "type": "PacketCaptureSettings"}, @@ -28338,6 +28384,7 @@ def __init__( bytes_to_capture_per_packet: int = 0, total_bytes_per_session: int = 1073741824, time_limit_in_seconds: int = 18000, + storage_settings: Optional["_models.PacketCaptureStorageSettings"] = None, filters: Optional[List["_models.PacketCaptureFilter"]] = None, continuous_capture: Optional[bool] = None, capture_settings: Optional["_models.PacketCaptureSettings"] = None, @@ -28363,6 +28410,8 @@ def __init__( :paramtype time_limit_in_seconds: int :keyword storage_location: The storage location for a packet capture session. Required. :paramtype storage_location: ~azure.mgmt.network.models.PacketCaptureStorageLocation + :keyword storage_settings: The storage setting for a packet capture session. + :paramtype storage_settings: ~azure.mgmt.network.models.PacketCaptureStorageSettings :keyword filters: A list of packet capture filters. :paramtype filters: list[~azure.mgmt.network.models.PacketCaptureFilter] :keyword continuous_capture: This continuous capture is a nullable boolean, which can hold @@ -28381,6 +28430,7 @@ def __init__( total_bytes_per_session=total_bytes_per_session, time_limit_in_seconds=time_limit_in_seconds, storage_location=storage_location, + storage_settings=storage_settings, filters=filters, continuous_capture=continuous_capture, capture_settings=capture_settings, @@ -28500,6 +28550,28 @@ def __init__( self.local_path = local_path +class PacketCaptureStorageSettings(_serialization.Model): + """The storage setting for a packet capture session. + + :ivar storage_authentication: The storage authentication for a packet capture session. + :vartype storage_authentication: ~azure.mgmt.network.models.StorageAuthentication + """ + + _attribute_map = { + "storage_authentication": {"key": "storageAuthentication", "type": "StorageAuthentication"}, + } + + def __init__( + self, *, storage_authentication: Optional["_models.StorageAuthentication"] = None, **kwargs: Any + ) -> None: + """ + :keyword storage_authentication: The storage authentication for a packet capture session. + :paramtype storage_authentication: ~azure.mgmt.network.models.StorageAuthentication + """ + super().__init__(**kwargs) + self.storage_authentication = storage_authentication + + class Parameter(_serialization.Model): """Parameters for an Action. @@ -35080,6 +35152,28 @@ def __init__( self.vnet_local_route_override_criteria = vnet_local_route_override_criteria +class StorageAuthentication(_serialization.Model): + """The storage authentication for a packet capture session. + + :ivar storage_authentication: The managed identity information for a packet capture session. + :vartype storage_authentication: ~azure.mgmt.network.models.ManagedIdentityInfo + """ + + _attribute_map = { + "storage_authentication": {"key": "storageAuthentication", "type": "ManagedIdentityInfo"}, + } + + def __init__( + self, *, storage_authentication: Optional["_models.ManagedIdentityInfo"] = None, **kwargs: Any + ) -> None: + """ + :keyword storage_authentication: The managed identity information for a packet capture session. + :paramtype storage_authentication: ~azure.mgmt.network.models.ManagedIdentityInfo + """ + super().__init__(**kwargs) + self.storage_authentication = storage_authentication + + class Subnet(SubResource): """Subnet in a virtual network resource. diff --git a/sdk/network/azure-mgmt-network/generated_samples/network_watcher_packet_capture_create_with_managed_identity_info.py b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_packet_capture_create_with_managed_identity_info.py new file mode 100644 index 000000000000..da02ace41e1e --- /dev/null +++ b/sdk/network/azure-mgmt-network/generated_samples/network_watcher_packet_capture_create_with_managed_identity_info.py @@ -0,0 +1,64 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.identity import DefaultAzureCredential + +from azure.mgmt.network import NetworkManagementClient + +""" +# PREREQUISITES + pip install azure-identity + pip install azure-mgmt-network +# USAGE + python network_watcher_packet_capture_create_with_managed_identity_info.py + + Before run the sample, please set the values of the client ID, tenant ID and client secret + of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, + AZURE_CLIENT_SECRET. For more info about how to get the value, please see: + https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal +""" + + +def main(): + client = NetworkManagementClient( + credential=DefaultAzureCredential(), + subscription_id="subid", + ) + + response = client.packet_captures.begin_create( + resource_group_name="rg1", + network_watcher_name="nw1", + packet_capture_name="pc1", + parameters={ + "properties": { + "bytesToCapturePerPacket": 10000, + "filters": [], + "storageLocation": { + "filePath": "D:\\capture\\pc1.cap", + "storageId": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Storage/storageAccounts/pcstore", + "storagePath": "https://mytestaccountname.blob.core.windows.net/capture/pc1.cap", + }, + "storageSettings": { + "storageAuthentication": { + "managedIdentityInfo": { + "managedIndentityResourceId": "/testrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testMi" + } + } + }, + "target": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1", + "timeLimitInSeconds": 100, + "totalBytesPerSession": 100000, + } + }, + ).result() + print(response) + + +# x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkWatcherPacketCaptureCreateWithManagedIdentityInfo.json +if __name__ == "__main__": + main() diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_packet_captures_operations.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_packet_captures_operations.py index 4c2862d42ae9..15ac6fe1d68f 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_packet_captures_operations.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_packet_captures_operations.py @@ -41,6 +41,9 @@ def test_packet_captures_begin_create(self, resource_group): } ], "scope": {"exclude": ["str"], "include": ["str"]}, + "storageSettings": { + "storageAuthentication": {"storageAuthentication": {"managedIndentityResourceId ": "str"}} + }, "targetType": "str", "timeLimitInSeconds": 18000, "totalBytesPerSession": 1073741824, diff --git a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_packet_captures_operations_async.py b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_packet_captures_operations_async.py index 9b0e78be768b..6b0fd29ef03a 100644 --- a/sdk/network/azure-mgmt-network/generated_tests/test_network_management_packet_captures_operations_async.py +++ b/sdk/network/azure-mgmt-network/generated_tests/test_network_management_packet_captures_operations_async.py @@ -52,6 +52,9 @@ async def test_packet_captures_begin_create(self, resource_group): } ], "scope": {"exclude": ["str"], "include": ["str"]}, + "storageSettings": { + "storageAuthentication": {"storageAuthentication": {"managedIndentityResourceId ": "str"}} + }, "targetType": "str", "timeLimitInSeconds": 18000, "totalBytesPerSession": 1073741824,