CreateOcirContainerScanRegistryDetails¶
-
class
oci.vulnerability_scanning.models.
CreateOcirContainerScanRegistryDetails
(**kwargs)¶ Bases:
oci.vulnerability_scanning.models.create_container_scan_registry_details.CreateContainerScanRegistryDetails
Registry information for a OCI Registry target
Methods
__init__
(**kwargs)Initializes a new CreateOcirContainerScanRegistryDetails object with values from keyword arguments. get_subtype
(object_dictionary)Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype. Attributes
compartment_id
[Required] Gets the compartment_id of this CreateOcirContainerScanRegistryDetails. repositories
Gets the repositories of this CreateOcirContainerScanRegistryDetails. type
[Required] Gets the type of this CreateContainerScanRegistryDetails. url
Gets the url of this CreateContainerScanRegistryDetails. -
__init__
(**kwargs)¶ Initializes a new CreateOcirContainerScanRegistryDetails object with values from keyword arguments. The default value of the
type
attribute of this class isOCIR
and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):Parameters: - type (str) – The value to assign to the type property of this CreateOcirContainerScanRegistryDetails.
- url (str) – The value to assign to the url property of this CreateOcirContainerScanRegistryDetails.
- compartment_id (str) – The value to assign to the compartment_id property of this CreateOcirContainerScanRegistryDetails.
- repositories (list[str]) – The value to assign to the repositories property of this CreateOcirContainerScanRegistryDetails.
-
compartment_id
¶ [Required] Gets the compartment_id of this CreateOcirContainerScanRegistryDetails. The OCID of the compartment to perform the scans in. All listed repositories must be in the compartment.
Returns: The compartment_id of this CreateOcirContainerScanRegistryDetails. Return type: str
-
static
get_subtype
(object_dictionary)¶ Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
-
repositories
¶ Gets the repositories of this CreateOcirContainerScanRegistryDetails. List of repositories to scan images in. If left empty, the target defaults to scanning all repos in the compartmentId
Returns: The repositories of this CreateOcirContainerScanRegistryDetails. Return type: list[str]
-
type
¶ [Required] Gets the type of this CreateContainerScanRegistryDetails. The scan level
Returns: The type of this CreateContainerScanRegistryDetails. Return type: str
-
url
¶ Gets the url of this CreateContainerScanRegistryDetails. URL of the registry. Required for non-OCIR registry types (for OCIR registry types, it can be inferred from the tenancy).
Returns: The url of this CreateContainerScanRegistryDetails. Return type: str
-