@@ -30,10 +30,15 @@ class DatabaseVulnerabilityAssessment(ProxyResource):
3030 hold the scan results (e.g.
3131 https://myStorage.blob.core.windows.net/VaScans/).
3232 :type storage_container_path: str
33- :param storage_container_sas_key: Required. A shared access signature (SAS
34- Key) that has write access to the blob container specified in
35- 'storageContainerPath' parameter.
33+ :param storage_container_sas_key: A shared access signature (SAS Key) that
34+ has write access to the blob container specified in 'storageContainerPath'
35+ parameter. If 'storageAccountAccessKey' isn't specified,
36+ StorageContainerSasKey is required.
3637 :type storage_container_sas_key: str
38+ :param storage_account_access_key: Specifies the identifier key of the
39+ auditing storage account. If 'StorageContainerSasKey' isn't specified,
40+ storageAccountAccessKey is required.
41+ :type storage_account_access_key: str
3742 :param recurring_scans: The recurring scans settings
3843 :type recurring_scans:
3944 ~azure.mgmt.sql.models.VulnerabilityAssessmentRecurringScansProperties
@@ -44,7 +49,6 @@ class DatabaseVulnerabilityAssessment(ProxyResource):
4449 'name' : {'readonly' : True },
4550 'type' : {'readonly' : True },
4651 'storage_container_path' : {'required' : True },
47- 'storage_container_sas_key' : {'required' : True },
4852 }
4953
5054 _attribute_map = {
@@ -53,11 +57,13 @@ class DatabaseVulnerabilityAssessment(ProxyResource):
5357 'type' : {'key' : 'type' , 'type' : 'str' },
5458 'storage_container_path' : {'key' : 'properties.storageContainerPath' , 'type' : 'str' },
5559 'storage_container_sas_key' : {'key' : 'properties.storageContainerSasKey' , 'type' : 'str' },
60+ 'storage_account_access_key' : {'key' : 'properties.storageAccountAccessKey' , 'type' : 'str' },
5661 'recurring_scans' : {'key' : 'properties.recurringScans' , 'type' : 'VulnerabilityAssessmentRecurringScansProperties' },
5762 }
5863
59- def __init__ (self , * , storage_container_path : str , storage_container_sas_key : str , recurring_scans = None , ** kwargs ) -> None :
64+ def __init__ (self , * , storage_container_path : str , storage_container_sas_key : str = None , storage_account_access_key : str = None , recurring_scans = None , ** kwargs ) -> None :
6065 super (DatabaseVulnerabilityAssessment , self ).__init__ (** kwargs )
6166 self .storage_container_path = storage_container_path
6267 self .storage_container_sas_key = storage_container_sas_key
68+ self .storage_account_access_key = storage_account_access_key
6369 self .recurring_scans = recurring_scans
0 commit comments