-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated from 53c4ddeb556f158661ff82f16e58f8cfdbcaa9ff (#3768)
Adding ManagedInstanceVulnerabilityAssessments and ServerVulnerabilityAssessments
- Loading branch information
1 parent
e975afc
commit 0fb87d3
Showing
12 changed files
with
984 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
70 changes: 70 additions & 0 deletions
70
azure-mgmt-sql/azure/mgmt/sql/models/managed_instance_vulnerability_assessment.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# 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 .proxy_resource import ProxyResource | ||
|
||
|
||
class ManagedInstanceVulnerabilityAssessment(ProxyResource): | ||
"""A managed instance vulnerability assessment. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
All required parameters must be populated in order to send to Azure. | ||
:ivar id: Resource ID. | ||
:vartype id: str | ||
:ivar name: Resource name. | ||
:vartype name: str | ||
:ivar type: Resource type. | ||
:vartype type: str | ||
:param storage_container_path: Required. A blob storage container path to | ||
hold the scan results (e.g. | ||
https://myStorage.blob.core.windows.net/VaScans/). | ||
:type storage_container_path: str | ||
:param storage_container_sas_key: A shared access signature (SAS Key) that | ||
has write access to the blob container specified in 'storageContainerPath' | ||
parameter. If 'storageAccountAccessKey' isn't specified, | ||
StorageContainerSasKey is required. | ||
:type storage_container_sas_key: str | ||
:param storage_account_access_key: Specifies the identifier key of the | ||
storage account for vulnerability assessment scan results. If | ||
'StorageContainerSasKey' isn't specified, storageAccountAccessKey is | ||
required. | ||
:type storage_account_access_key: str | ||
:param recurring_scans: The recurring scans settings | ||
:type recurring_scans: | ||
~azure.mgmt.sql.models.VulnerabilityAssessmentRecurringScansProperties | ||
""" | ||
|
||
_validation = { | ||
'id': {'readonly': True}, | ||
'name': {'readonly': True}, | ||
'type': {'readonly': True}, | ||
'storage_container_path': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'id': {'key': 'id', 'type': 'str'}, | ||
'name': {'key': 'name', 'type': 'str'}, | ||
'type': {'key': 'type', 'type': 'str'}, | ||
'storage_container_path': {'key': 'properties.storageContainerPath', 'type': 'str'}, | ||
'storage_container_sas_key': {'key': 'properties.storageContainerSasKey', 'type': 'str'}, | ||
'storage_account_access_key': {'key': 'properties.storageAccountAccessKey', 'type': 'str'}, | ||
'recurring_scans': {'key': 'properties.recurringScans', 'type': 'VulnerabilityAssessmentRecurringScansProperties'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(ManagedInstanceVulnerabilityAssessment, self).__init__(**kwargs) | ||
self.storage_container_path = kwargs.get('storage_container_path', None) | ||
self.storage_container_sas_key = kwargs.get('storage_container_sas_key', None) | ||
self.storage_account_access_key = kwargs.get('storage_account_access_key', None) | ||
self.recurring_scans = kwargs.get('recurring_scans', None) |
27 changes: 27 additions & 0 deletions
27
azure-mgmt-sql/azure/mgmt/sql/models/managed_instance_vulnerability_assessment_paged.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# 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 msrest.paging import Paged | ||
|
||
|
||
class ManagedInstanceVulnerabilityAssessmentPaged(Paged): | ||
""" | ||
A paging container for iterating over a list of :class:`ManagedInstanceVulnerabilityAssessment <azure.mgmt.sql.models.ManagedInstanceVulnerabilityAssessment>` object | ||
""" | ||
|
||
_attribute_map = { | ||
'next_link': {'key': 'nextLink', 'type': 'str'}, | ||
'current_page': {'key': 'value', 'type': '[ManagedInstanceVulnerabilityAssessment]'} | ||
} | ||
|
||
def __init__(self, *args, **kwargs): | ||
|
||
super(ManagedInstanceVulnerabilityAssessmentPaged, self).__init__(*args, **kwargs) |
70 changes: 70 additions & 0 deletions
70
azure-mgmt-sql/azure/mgmt/sql/models/managed_instance_vulnerability_assessment_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# 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 .proxy_resource_py3 import ProxyResource | ||
|
||
|
||
class ManagedInstanceVulnerabilityAssessment(ProxyResource): | ||
"""A managed instance vulnerability assessment. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
All required parameters must be populated in order to send to Azure. | ||
:ivar id: Resource ID. | ||
:vartype id: str | ||
:ivar name: Resource name. | ||
:vartype name: str | ||
:ivar type: Resource type. | ||
:vartype type: str | ||
:param storage_container_path: Required. A blob storage container path to | ||
hold the scan results (e.g. | ||
https://myStorage.blob.core.windows.net/VaScans/). | ||
:type storage_container_path: str | ||
:param storage_container_sas_key: A shared access signature (SAS Key) that | ||
has write access to the blob container specified in 'storageContainerPath' | ||
parameter. If 'storageAccountAccessKey' isn't specified, | ||
StorageContainerSasKey is required. | ||
:type storage_container_sas_key: str | ||
:param storage_account_access_key: Specifies the identifier key of the | ||
storage account for vulnerability assessment scan results. If | ||
'StorageContainerSasKey' isn't specified, storageAccountAccessKey is | ||
required. | ||
:type storage_account_access_key: str | ||
:param recurring_scans: The recurring scans settings | ||
:type recurring_scans: | ||
~azure.mgmt.sql.models.VulnerabilityAssessmentRecurringScansProperties | ||
""" | ||
|
||
_validation = { | ||
'id': {'readonly': True}, | ||
'name': {'readonly': True}, | ||
'type': {'readonly': True}, | ||
'storage_container_path': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'id': {'key': 'id', 'type': 'str'}, | ||
'name': {'key': 'name', 'type': 'str'}, | ||
'type': {'key': 'type', 'type': 'str'}, | ||
'storage_container_path': {'key': 'properties.storageContainerPath', 'type': 'str'}, | ||
'storage_container_sas_key': {'key': 'properties.storageContainerSasKey', 'type': 'str'}, | ||
'storage_account_access_key': {'key': 'properties.storageAccountAccessKey', 'type': 'str'}, | ||
'recurring_scans': {'key': 'properties.recurringScans', 'type': 'VulnerabilityAssessmentRecurringScansProperties'}, | ||
} | ||
|
||
def __init__(self, *, storage_container_path: str, storage_container_sas_key: str=None, storage_account_access_key: str=None, recurring_scans=None, **kwargs) -> None: | ||
super(ManagedInstanceVulnerabilityAssessment, self).__init__(**kwargs) | ||
self.storage_container_path = storage_container_path | ||
self.storage_container_sas_key = storage_container_sas_key | ||
self.storage_account_access_key = storage_account_access_key | ||
self.recurring_scans = recurring_scans |
70 changes: 70 additions & 0 deletions
70
azure-mgmt-sql/azure/mgmt/sql/models/server_vulnerability_assessment.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# 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 .proxy_resource import ProxyResource | ||
|
||
|
||
class ServerVulnerabilityAssessment(ProxyResource): | ||
"""A server vulnerability assessment. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
All required parameters must be populated in order to send to Azure. | ||
:ivar id: Resource ID. | ||
:vartype id: str | ||
:ivar name: Resource name. | ||
:vartype name: str | ||
:ivar type: Resource type. | ||
:vartype type: str | ||
:param storage_container_path: Required. A blob storage container path to | ||
hold the scan results (e.g. | ||
https://myStorage.blob.core.windows.net/VaScans/). | ||
:type storage_container_path: str | ||
:param storage_container_sas_key: A shared access signature (SAS Key) that | ||
has write access to the blob container specified in 'storageContainerPath' | ||
parameter. If 'storageAccountAccessKey' isn't specified, | ||
StorageContainerSasKey is required. | ||
:type storage_container_sas_key: str | ||
:param storage_account_access_key: Specifies the identifier key of the | ||
storage account for vulnerability assessment scan results. If | ||
'StorageContainerSasKey' isn't specified, storageAccountAccessKey is | ||
required. | ||
:type storage_account_access_key: str | ||
:param recurring_scans: The recurring scans settings | ||
:type recurring_scans: | ||
~azure.mgmt.sql.models.VulnerabilityAssessmentRecurringScansProperties | ||
""" | ||
|
||
_validation = { | ||
'id': {'readonly': True}, | ||
'name': {'readonly': True}, | ||
'type': {'readonly': True}, | ||
'storage_container_path': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'id': {'key': 'id', 'type': 'str'}, | ||
'name': {'key': 'name', 'type': 'str'}, | ||
'type': {'key': 'type', 'type': 'str'}, | ||
'storage_container_path': {'key': 'properties.storageContainerPath', 'type': 'str'}, | ||
'storage_container_sas_key': {'key': 'properties.storageContainerSasKey', 'type': 'str'}, | ||
'storage_account_access_key': {'key': 'properties.storageAccountAccessKey', 'type': 'str'}, | ||
'recurring_scans': {'key': 'properties.recurringScans', 'type': 'VulnerabilityAssessmentRecurringScansProperties'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(ServerVulnerabilityAssessment, self).__init__(**kwargs) | ||
self.storage_container_path = kwargs.get('storage_container_path', None) | ||
self.storage_container_sas_key = kwargs.get('storage_container_sas_key', None) | ||
self.storage_account_access_key = kwargs.get('storage_account_access_key', None) | ||
self.recurring_scans = kwargs.get('recurring_scans', None) |
27 changes: 27 additions & 0 deletions
27
azure-mgmt-sql/azure/mgmt/sql/models/server_vulnerability_assessment_paged.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# 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 msrest.paging import Paged | ||
|
||
|
||
class ServerVulnerabilityAssessmentPaged(Paged): | ||
""" | ||
A paging container for iterating over a list of :class:`ServerVulnerabilityAssessment <azure.mgmt.sql.models.ServerVulnerabilityAssessment>` object | ||
""" | ||
|
||
_attribute_map = { | ||
'next_link': {'key': 'nextLink', 'type': 'str'}, | ||
'current_page': {'key': 'value', 'type': '[ServerVulnerabilityAssessment]'} | ||
} | ||
|
||
def __init__(self, *args, **kwargs): | ||
|
||
super(ServerVulnerabilityAssessmentPaged, self).__init__(*args, **kwargs) |
70 changes: 70 additions & 0 deletions
70
azure-mgmt-sql/azure/mgmt/sql/models/server_vulnerability_assessment_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# 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 .proxy_resource_py3 import ProxyResource | ||
|
||
|
||
class ServerVulnerabilityAssessment(ProxyResource): | ||
"""A server vulnerability assessment. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
All required parameters must be populated in order to send to Azure. | ||
:ivar id: Resource ID. | ||
:vartype id: str | ||
:ivar name: Resource name. | ||
:vartype name: str | ||
:ivar type: Resource type. | ||
:vartype type: str | ||
:param storage_container_path: Required. A blob storage container path to | ||
hold the scan results (e.g. | ||
https://myStorage.blob.core.windows.net/VaScans/). | ||
:type storage_container_path: str | ||
:param storage_container_sas_key: A shared access signature (SAS Key) that | ||
has write access to the blob container specified in 'storageContainerPath' | ||
parameter. If 'storageAccountAccessKey' isn't specified, | ||
StorageContainerSasKey is required. | ||
:type storage_container_sas_key: str | ||
:param storage_account_access_key: Specifies the identifier key of the | ||
storage account for vulnerability assessment scan results. If | ||
'StorageContainerSasKey' isn't specified, storageAccountAccessKey is | ||
required. | ||
:type storage_account_access_key: str | ||
:param recurring_scans: The recurring scans settings | ||
:type recurring_scans: | ||
~azure.mgmt.sql.models.VulnerabilityAssessmentRecurringScansProperties | ||
""" | ||
|
||
_validation = { | ||
'id': {'readonly': True}, | ||
'name': {'readonly': True}, | ||
'type': {'readonly': True}, | ||
'storage_container_path': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'id': {'key': 'id', 'type': 'str'}, | ||
'name': {'key': 'name', 'type': 'str'}, | ||
'type': {'key': 'type', 'type': 'str'}, | ||
'storage_container_path': {'key': 'properties.storageContainerPath', 'type': 'str'}, | ||
'storage_container_sas_key': {'key': 'properties.storageContainerSasKey', 'type': 'str'}, | ||
'storage_account_access_key': {'key': 'properties.storageAccountAccessKey', 'type': 'str'}, | ||
'recurring_scans': {'key': 'properties.recurringScans', 'type': 'VulnerabilityAssessmentRecurringScansProperties'}, | ||
} | ||
|
||
def __init__(self, *, storage_container_path: str, storage_container_sas_key: str=None, storage_account_access_key: str=None, recurring_scans=None, **kwargs) -> None: | ||
super(ServerVulnerabilityAssessment, self).__init__(**kwargs) | ||
self.storage_container_path = storage_container_path | ||
self.storage_container_sas_key = storage_container_sas_key | ||
self.storage_account_access_key = storage_account_access_key | ||
self.recurring_scans = recurring_scans |
Oops, something went wrong.