File: //lib/mysqlsh/lib/python3.8/site-packages/oci/dblm/models/create_vulnerability_scan_details.py
# coding: utf-8
# Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240102
from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
from oci.decorators import init_model_state_from_kwargs
@init_model_state_from_kwargs
class CreateVulnerabilityScanDetails(object):
"""
The data to create a VulnerabilityScan.
"""
def __init__(self, **kwargs):
"""
Initializes a new CreateVulnerabilityScanDetails object with values from keyword arguments.
The following keyword arguments are supported (corresponding to the getters/setters of this class):
:param compartment_id:
The value to assign to the compartment_id property of this CreateVulnerabilityScanDetails.
:type compartment_id: str
:param vulnerability_scan_type:
The value to assign to the vulnerability_scan_type property of this CreateVulnerabilityScanDetails.
:type vulnerability_scan_type: str
"""
self.swagger_types = {
'compartment_id': 'str',
'vulnerability_scan_type': 'str'
}
self.attribute_map = {
'compartment_id': 'compartmentId',
'vulnerability_scan_type': 'vulnerabilityScanType'
}
self._compartment_id = None
self._vulnerability_scan_type = None
@property
def compartment_id(self):
"""
**[Required]** Gets the compartment_id of this CreateVulnerabilityScanDetails.
Compartment Identifier
:return: The compartment_id of this CreateVulnerabilityScanDetails.
:rtype: str
"""
return self._compartment_id
@compartment_id.setter
def compartment_id(self, compartment_id):
"""
Sets the compartment_id of this CreateVulnerabilityScanDetails.
Compartment Identifier
:param compartment_id: The compartment_id of this CreateVulnerabilityScanDetails.
:type: str
"""
self._compartment_id = compartment_id
@property
def vulnerability_scan_type(self):
"""
**[Required]** Gets the vulnerability_scan_type of this CreateVulnerabilityScanDetails.
Vulnerability Scan type is CVE, PATCH or IMAGE_PATCH
:return: The vulnerability_scan_type of this CreateVulnerabilityScanDetails.
:rtype: str
"""
return self._vulnerability_scan_type
@vulnerability_scan_type.setter
def vulnerability_scan_type(self, vulnerability_scan_type):
"""
Sets the vulnerability_scan_type of this CreateVulnerabilityScanDetails.
Vulnerability Scan type is CVE, PATCH or IMAGE_PATCH
:param vulnerability_scan_type: The vulnerability_scan_type of this CreateVulnerabilityScanDetails.
:type: str
"""
self._vulnerability_scan_type = vulnerability_scan_type
def __repr__(self):
return formatted_flat_dict(self)
def __eq__(self, other):
if other is None:
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
return not self == other