ruạṛ
a ���ff� � @ s8 d dl mZmZmZ d dlmZ eG dd� de��ZdS )� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ s e Zd ZdZdZdZdZdZdZdZ dZ dZdZdZ dZd Zd ZdZdZd ZdZdZdZdZdZdZdZdZdZdZdZdZdZ dZ!dZ"dZ#dZ$dZ%d Z&d!d"� Z'e(d#d$� �Z)e*d%d&� �Z+e+j,d'd&� �Z+e*d(d)� �Z-e-j,d*d)� �Z-e*d+d,� �Z.e.j,d-d,� �Z.e*d.d/� �Z/e/j,d0d/� �Z/e*d1d2� �Z0e0j,d3d2� �Z0e*d4d5� �Z1e1j,d6d5� �Z1e*d7d8� �Z2e2j,d9d8� �Z2e*d:d;� �Z3e3j,d<d;� �Z3e*d=d>� �Z4e4j,d?d>� �Z4e*d@dA� �Z5e5j,dBdA� �Z5e*dCdD� �Z6e6j,dEdD� �Z6e*dFdG� �Z7e7j,dHdG� �Z7e*dIdJ� �Z8e8j,dKdJ� �Z8e*dLdM� �Z9e9j,dNdM� �Z9e*dOdP� �Z:e:j,dQdP� �Z:e*dRdS� �Z;e;j,dTdS� �Z;e*dUdV� �Z<e<j,dWdV� �Z<e*dXdY� �Z=e=j,dZdY� �Z=e*d[d\� �Z>e>j,d]d\� �Z>e*d^d_� �Z?e?j,d`d_� �Z?e*dadb� �Z@e@j,dcdb� �Z@e*ddde� �ZAeAj,dfde� �ZAdgdh� ZBdidj� ZCdkdl� ZDdmS )n�SoftwareSourcez� The object that defines a software source. A software source contains a collection of packages. For more information, see `Managing Software Sources`__. __ https://docs.cloud.oracle.com/iaas/osmh/doc/software-sources.htm �VENDOR�CUSTOM� VERSIONED� AVAILABLE�SELECTED� RESTRICTED�UNAVAILABLE�ORACLE_LINUX_9�ORACLE_LINUX_8�ORACLE_LINUX_7�ORACLE_LINUX_6�WINDOWS_SERVER_2016�WINDOWS_SERVER_2019�WINDOWS_SERVER_2022�ALL�X86_64�AARCH64�I686�NOARCH�SRC�CREATING�UPDATING�ACTIVE�INACTIVE�DELETING�DELETED�FAILED�SHA1�SHA256�SHA384�SHA512c K s� ddddddddddddddddddddddd�| _ dd d ddd ddddddddddddddddd�| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _d| _ d| _d| _d| _d| _d| _d| _d| _d| _d| _d| _dS )a} Initializes a new SoftwareSource object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class: * :class:`~oci.os_management_hub.models.VendorSoftwareSource` * :class:`~oci.os_management_hub.models.CustomSoftwareSource` * :class:`~oci.os_management_hub.models.VersionedCustomSoftwareSource` The following keyword arguments are supported (corresponding to the getters/setters of this class): :param id: The value to assign to the id property of this SoftwareSource. :type id: str :param compartment_id: The value to assign to the compartment_id property of this SoftwareSource. :type compartment_id: str :param display_name: The value to assign to the display_name property of this SoftwareSource. :type display_name: str :param time_created: The value to assign to the time_created property of this SoftwareSource. :type time_created: datetime :param description: The value to assign to the description property of this SoftwareSource. :type description: str :param software_source_type: The value to assign to the software_source_type property of this SoftwareSource. Allowed values for this property are: "VENDOR", "CUSTOM", "VERSIONED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type software_source_type: str :param availability: The value to assign to the availability property of this SoftwareSource. Allowed values for this property are: "AVAILABLE", "SELECTED", "RESTRICTED", "UNAVAILABLE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type availability: str :param availability_at_oci: The value to assign to the availability_at_oci property of this SoftwareSource. Allowed values for this property are: "AVAILABLE", "SELECTED", "RESTRICTED", "UNAVAILABLE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type availability_at_oci: str :param repo_id: The value to assign to the repo_id property of this SoftwareSource. :type repo_id: str :param os_family: The value to assign to the os_family property of this SoftwareSource. Allowed values for this property are: "ORACLE_LINUX_9", "ORACLE_LINUX_8", "ORACLE_LINUX_7", "ORACLE_LINUX_6", "WINDOWS_SERVER_2016", "WINDOWS_SERVER_2019", "WINDOWS_SERVER_2022", "ALL", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type os_family: str :param arch_type: The value to assign to the arch_type property of this SoftwareSource. Allowed values for this property are: "X86_64", "AARCH64", "I686", "NOARCH", "SRC", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type arch_type: str :param lifecycle_state: The value to assign to the lifecycle_state property of this SoftwareSource. Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str :param package_count: The value to assign to the package_count property of this SoftwareSource. :type package_count: int :param url: The value to assign to the url property of this SoftwareSource. :type url: str :param checksum_type: The value to assign to the checksum_type property of this SoftwareSource. Allowed values for this property are: "SHA1", "SHA256", "SHA384", "SHA512", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type checksum_type: str :param gpg_key_url: The value to assign to the gpg_key_url property of this SoftwareSource. :type gpg_key_url: str :param gpg_key_id: The value to assign to the gpg_key_id property of this SoftwareSource. :type gpg_key_id: str :param gpg_key_fingerprint: The value to assign to the gpg_key_fingerprint property of this SoftwareSource. :type gpg_key_fingerprint: str :param size: The value to assign to the size property of this SoftwareSource. :type size: float :param freeform_tags: The value to assign to the freeform_tags property of this SoftwareSource. :type freeform_tags: dict(str, str) :param defined_tags: The value to assign to the defined_tags property of this SoftwareSource. :type defined_tags: dict(str, dict(str, object)) :param system_tags: The value to assign to the system_tags property of this SoftwareSource. :type system_tags: dict(str, dict(str, object)) �strZdatetime�int�floatzdict(str, str)zdict(str, dict(str, object)))�id�compartment_id�display_name�time_created�description�software_source_type�availability�availability_at_oci�repo_id� os_family� arch_type�lifecycle_state� package_count�url� checksum_type�gpg_key_url� gpg_key_id�gpg_key_fingerprint�size� freeform_tags�defined_tags�system_tagsr) Z compartmentIdZdisplayNameZtimeCreatedr- �softwareSourceTyper/ ZavailabilityAtOciZrepoIdZosFamilyZarchTypeZlifecycleStateZpackageCountr6 ZchecksumTypeZ gpgKeyUrlZgpgKeyIdZgpgKeyFingerprintr; ZfreeformTagsZdefinedTagsZ systemTagsN)Z swagger_typesZ attribute_map�_id�_compartment_id� _display_name� _time_created�_description�_software_source_type� _availability�_availability_at_oci�_repo_id� _os_family� _arch_type�_lifecycle_state�_package_count�_url�_checksum_type�_gpg_key_url�_gpg_key_id�_gpg_key_fingerprint�_size�_freeform_tags� _defined_tags�_system_tags)�self�kwargs� rX �P/usr/lib/python3.9/site-packages/oci/os_management_hub/models/software_source.py�__init__� s� s��zSoftwareSource.__init__c C s4 | d }|dkrdS |dkr dS |dkr,dS dS d S ) z� Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype. r? r ZVendorSoftwareSourcer ZCustomSoftwareSourcer ZVersionedCustomSoftwareSourcer NrX )Zobject_dictionary�typerX rX rY �get_subtype[ s zSoftwareSource.get_subtypec C s | j S )a **[Required]** Gets the id of this SoftwareSource. The `OCID`__ of the software source. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :return: The id of this SoftwareSource. :rtype: str �r@ �rV rX rX rY r) n s zSoftwareSource.idc C s || _ dS )a Sets the id of this SoftwareSource. The `OCID`__ of the software source. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param id: The id of this SoftwareSource. :type: str Nr] )rV r) rX rX rY r) | s c C s | j S )aE **[Required]** Gets the compartment_id of this SoftwareSource. The `OCID`__ of the compartment that contains the software source. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :return: The compartment_id of this SoftwareSource. :rtype: str �rA r^ rX rX rY r* � s zSoftwareSource.compartment_idc C s || _ dS )aC Sets the compartment_id of this SoftwareSource. The `OCID`__ of the compartment that contains the software source. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param compartment_id: The compartment_id of this SoftwareSource. :type: str Nr_ )rV r* rX rX rY r* � s c C s | j S )z� **[Required]** Gets the display_name of this SoftwareSource. User-friendly name for the software source. :return: The display_name of this SoftwareSource. :rtype: str �rB r^ rX rX rY r+ � s zSoftwareSource.display_namec C s || _ dS )z� Sets the display_name of this SoftwareSource. User-friendly name for the software source. :param display_name: The display_name of this SoftwareSource. :type: str Nr` )rV r+ rX rX rY r+ � s c C s | j S )a& **[Required]** Gets the time_created of this SoftwareSource. The date and time the software source was created (in `RFC 3339`__ format). __ https://tools.ietf.org/rfc/rfc3339 :return: The time_created of this SoftwareSource. :rtype: datetime �rC r^ rX rX rY r, � s zSoftwareSource.time_createdc C s || _ dS )a" Sets the time_created of this SoftwareSource. The date and time the software source was created (in `RFC 3339`__ format). __ https://tools.ietf.org/rfc/rfc3339 :param time_created: The time_created of this SoftwareSource. :type: datetime Nra )rV r, rX rX rY r, � s c C s | j S )z� Gets the description of this SoftwareSource. User-specified description for the software source. :return: The description of this SoftwareSource. :rtype: str �rD r^ rX rX rY r- � s zSoftwareSource.descriptionc C s || _ dS )z� Sets the description of this SoftwareSource. User-specified description for the software source. :param description: The description of this SoftwareSource. :type: str Nrb )rV r- rX rX rY r- � s c C s | j S )a� **[Required]** Gets the software_source_type of this SoftwareSource. Type of software source. Allowed values for this property are: "VENDOR", "CUSTOM", "VERSIONED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The software_source_type of this SoftwareSource. :rtype: str )rE r^ rX rX rY r. � s z#SoftwareSource.software_source_typec C s g d�}t ||�sd}|| _dS )z� Sets the software_source_type of this SoftwareSource. Type of software source. :param software_source_type: The software_source_type of this SoftwareSource. :type: str )r r r �UNKNOWN_ENUM_VALUEN)r rE )rV r. �allowed_valuesrX rX rY r. s c C s | j S )a� **[Required]** Gets the availability of this SoftwareSource. Availability of the software source (for non-OCI environments). Allowed values for this property are: "AVAILABLE", "SELECTED", "RESTRICTED", "UNAVAILABLE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The availability of this SoftwareSource. :rtype: str )rF r^ rX rX rY r/ s zSoftwareSource.availabilityc C s g d�}t ||�sd}|| _dS )z� Sets the availability of this SoftwareSource. Availability of the software source (for non-OCI environments). :param availability: The availability of this SoftwareSource. :type: str �r r r r rc N)r rF )rV r/ rd rX rX rY r/ s c C s | j S )a� **[Required]** Gets the availability_at_oci of this SoftwareSource. Availability of the software source (for OCI environments). Allowed values for this property are: "AVAILABLE", "SELECTED", "RESTRICTED", "UNAVAILABLE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The availability_at_oci of this SoftwareSource. :rtype: str )rG r^ rX rX rY r0 . s z"SoftwareSource.availability_at_ocic C s g d�}t ||�sd}|| _dS )z� Sets the availability_at_oci of this SoftwareSource. Availability of the software source (for OCI environments). :param availability_at_oci: The availability_at_oci of this SoftwareSource. :type: str re rc N)r rG )rV r0 rd rX rX rY r0 = s c C s | j S )z� **[Required]** Gets the repo_id of this SoftwareSource. The repository ID for the software source. :return: The repo_id of this SoftwareSource. :rtype: str �rH r^ rX rX rY r1 L s zSoftwareSource.repo_idc C s || _ dS )z� Sets the repo_id of this SoftwareSource. The repository ID for the software source. :param repo_id: The repo_id of this SoftwareSource. :type: str Nrf )rV r1 rX rX rY r1 X s c C s | j S )a **[Required]** Gets the os_family of this SoftwareSource. The OS family the software source belongs to. Allowed values for this property are: "ORACLE_LINUX_9", "ORACLE_LINUX_8", "ORACLE_LINUX_7", "ORACLE_LINUX_6", "WINDOWS_SERVER_2016", "WINDOWS_SERVER_2019", "WINDOWS_SERVER_2022", "ALL", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The os_family of this SoftwareSource. :rtype: str )rI r^ rX rX rY r2 d s zSoftwareSource.os_familyc C s g d�}t ||�sd}|| _dS )z� Sets the os_family of this SoftwareSource. The OS family the software source belongs to. :param os_family: The os_family of this SoftwareSource. :type: str )r r r r r r r r rc N)r rI )rV r2 rd rX rX rY r2 s s c C s | j S )a� **[Required]** Gets the arch_type of this SoftwareSource. The architecture type supported by the software source. Allowed values for this property are: "X86_64", "AARCH64", "I686", "NOARCH", "SRC", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The arch_type of this SoftwareSource. :rtype: str )rJ r^ rX rX rY r3 � s zSoftwareSource.arch_typec C s g d�}t ||�sd}|| _dS )z� Sets the arch_type of this SoftwareSource. The architecture type supported by the software source. :param arch_type: The arch_type of this SoftwareSource. :type: str )r r r r r rc N)r rJ )rV r3 rd rX rX rY r3 � s c C s | j S )a� Gets the lifecycle_state of this SoftwareSource. The current state of the software source. Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The lifecycle_state of this SoftwareSource. :rtype: str )rK r^ rX rX rY r4 � s zSoftwareSource.lifecycle_statec C s g d�}t ||�sd}|| _dS )z� Sets the lifecycle_state of this SoftwareSource. The current state of the software source. :param lifecycle_state: The lifecycle_state of this SoftwareSource. :type: str )r r r r r r r! rc N)r rK )rV r4 rd rX rX rY r4 � s c C s | j S )z� Gets the package_count of this SoftwareSource. Number of packages the software source contains. :return: The package_count of this SoftwareSource. :rtype: int �rL r^ rX rX rY r5 � s zSoftwareSource.package_countc C s || _ dS )z� Sets the package_count of this SoftwareSource. Number of packages the software source contains. :param package_count: The package_count of this SoftwareSource. :type: int Nrg )rV r5 rX rX rY r5 � s c C s | j S )a- **[Required]** Gets the url of this SoftwareSource. URL for the repository. For vendor software sources, this is the URL to the regional yum server. For custom software sources, this is 'custom/<repoId>'. :return: The url of this SoftwareSource. :rtype: str �rM r^ rX rX rY r6 � s zSoftwareSource.urlc C s || _ dS )a Sets the url of this SoftwareSource. URL for the repository. For vendor software sources, this is the URL to the regional yum server. For custom software sources, this is 'custom/<repoId>'. :param url: The url of this SoftwareSource. :type: str Nrh )rV r6 rX rX rY r6 � s c C s | j S )a� Gets the checksum_type of this SoftwareSource. The yum repository checksum type used by this software source. Allowed values for this property are: "SHA1", "SHA256", "SHA384", "SHA512", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The checksum_type of this SoftwareSource. :rtype: str )rN r^ rX rX rY r7 � s zSoftwareSource.checksum_typec C s g d�}t ||�sd}|| _dS )z� Sets the checksum_type of this SoftwareSource. The yum repository checksum type used by this software source. :param checksum_type: The checksum_type of this SoftwareSource. :type: str )r"