diff --git a/azure-mgmt-network/azure/mgmt/network/v2019_02_01/models/get_vpn_sites_configuration_request.py b/azure-mgmt-network/azure/mgmt/network/v2019_02_01/models/get_vpn_sites_configuration_request.py index 7c8732192d6d..b5af3445226f 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2019_02_01/models/get_vpn_sites_configuration_request.py +++ b/azure-mgmt-network/azure/mgmt/network/v2019_02_01/models/get_vpn_sites_configuration_request.py @@ -15,14 +15,20 @@ class GetVpnSitesConfigurationRequest(Model): """List of Vpn-Sites. + All required parameters must be populated in order to send to Azure. + :param vpn_sites: List of resource-ids of the vpn-sites for which config is to be downloaded. :type vpn_sites: list[str] - :param output_blob_sas_url: The sas-url to download the configurations for - vpn-sites + :param output_blob_sas_url: Required. The sas-url to download the + configurations for vpn-sites :type output_blob_sas_url: str """ + _validation = { + 'output_blob_sas_url': {'required': True}, + } + _attribute_map = { 'vpn_sites': {'key': 'vpnSites', 'type': '[str]'}, 'output_blob_sas_url': {'key': 'outputBlobSasUrl', 'type': 'str'}, diff --git a/azure-mgmt-network/azure/mgmt/network/v2019_02_01/models/get_vpn_sites_configuration_request_py3.py b/azure-mgmt-network/azure/mgmt/network/v2019_02_01/models/get_vpn_sites_configuration_request_py3.py index f15efad67f06..1719bc446036 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2019_02_01/models/get_vpn_sites_configuration_request_py3.py +++ b/azure-mgmt-network/azure/mgmt/network/v2019_02_01/models/get_vpn_sites_configuration_request_py3.py @@ -15,20 +15,26 @@ class GetVpnSitesConfigurationRequest(Model): """List of Vpn-Sites. + All required parameters must be populated in order to send to Azure. + :param vpn_sites: List of resource-ids of the vpn-sites for which config is to be downloaded. :type vpn_sites: list[str] - :param output_blob_sas_url: The sas-url to download the configurations for - vpn-sites + :param output_blob_sas_url: Required. The sas-url to download the + configurations for vpn-sites :type output_blob_sas_url: str """ + _validation = { + 'output_blob_sas_url': {'required': True}, + } + _attribute_map = { 'vpn_sites': {'key': 'vpnSites', 'type': '[str]'}, 'output_blob_sas_url': {'key': 'outputBlobSasUrl', 'type': 'str'}, } - def __init__(self, *, vpn_sites=None, output_blob_sas_url: str=None, **kwargs) -> None: + def __init__(self, *, output_blob_sas_url: str, vpn_sites=None, **kwargs) -> None: super(GetVpnSitesConfigurationRequest, self).__init__(**kwargs) self.vpn_sites = vpn_sites self.output_blob_sas_url = output_blob_sas_url diff --git a/azure-mgmt-network/azure/mgmt/network/v2019_02_01/operations/vpn_sites_configuration_operations.py b/azure-mgmt-network/azure/mgmt/network/v2019_02_01/operations/vpn_sites_configuration_operations.py index 0a179465effc..512b613a21aa 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2019_02_01/operations/vpn_sites_configuration_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2019_02_01/operations/vpn_sites_configuration_operations.py @@ -40,7 +40,7 @@ def __init__(self, client, config, serializer, deserializer): def _download_initial( - self, resource_group_name, virtual_wan_name, vpn_sites=None, output_blob_sas_url=None, custom_headers=None, raw=False, **operation_config): + self, resource_group_name, virtual_wan_name, output_blob_sas_url, vpn_sites=None, custom_headers=None, raw=False, **operation_config): request = models.GetVpnSitesConfigurationRequest(vpn_sites=vpn_sites, output_blob_sas_url=output_blob_sas_url) # Construct URL @@ -81,7 +81,7 @@ def _download_initial( return client_raw_response def download( - self, resource_group_name, virtual_wan_name, vpn_sites=None, output_blob_sas_url=None, custom_headers=None, raw=False, polling=True, **operation_config): + self, resource_group_name, virtual_wan_name, output_blob_sas_url, vpn_sites=None, custom_headers=None, raw=False, polling=True, **operation_config): """Gives the sas-url to download the configurations for vpn-sites in a resource group. @@ -90,12 +90,12 @@ def download( :param virtual_wan_name: The name of the VirtualWAN for which configuration of all vpn-sites is needed. :type virtual_wan_name: str - :param vpn_sites: List of resource-ids of the vpn-sites for which - config is to be downloaded. - :type vpn_sites: list[str] :param output_blob_sas_url: The sas-url to download the configurations for vpn-sites :type output_blob_sas_url: str + :param vpn_sites: List of resource-ids of the vpn-sites for which + config is to be downloaded. + :type vpn_sites: list[str] :param dict custom_headers: headers that will be added to the request :param bool raw: The poller return type is ClientRawResponse, the direct response alongside the deserialized response @@ -111,8 +111,8 @@ def download( raw_result = self._download_initial( resource_group_name=resource_group_name, virtual_wan_name=virtual_wan_name, - vpn_sites=vpn_sites, output_blob_sas_url=output_blob_sas_url, + vpn_sites=vpn_sites, custom_headers=custom_headers, raw=True, **operation_config