403Webshell
Server IP : 162.241.203.86  /  Your IP : 216.73.216.183
Web Server : Apache
System : Linux br1002.hostgator.com.br 5.14.0-687.36.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 7 05:40:49 EDT 2026 x86_64
User : luxlic01 ( 6532)
PHP Version : 8.3.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3.9/site-packages/oci/ocvp/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3.9/site-packages/oci/ocvp/__pycache__/sddc_client.cpython-39.pyc
a

���f�p�@s�ddlmZddlmZddlmZddlmZmZddlm	Z	ddl
mZmZddl
mZddlmZmZmZdd	lmZdd
lmZddlmZed
�ZGdd�de�ZdS)�)�absolute_import)�requests)�six)�retry�circuit_breaker)�
BaseClient)�get_config_value_or_default�validate_config)�Signer)�Sentinel�#get_signer_from_authentication_type�AUTHENTICATION_TYPE_FIELD_NAME)�InvalidAlloyConfig)�OCI_SDK_ENABLED_SERVICES_SET�)�ocvp_type_mappingZMissingc@s�eZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Z	dd�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�Zdd�Zdd�Zd S)!�
SddcClientz�
    Use the Oracle Cloud VMware API to create SDDCs and manage ESXi hosts and software.
    For more information, see [Oracle Cloud VMware Solution](/iaas/Content/VMware/Concepts/ocvsoverview.htm).
    c
Ks&t�d�std��t||�d�d�d|vr6|d}nDt|vrHt|�}n2t|d|d|d|�d�t|d	�|�d
�d�}d|�d
�ddi|�dd�|�dt	j
�|�d�d�}d|vr�|�d�|d<|�d�dur�t	j|d<d|vr�|�d�|d<td||t
fi|��|_|�d�|_|�d�|_dS)a�
        Creates a new service client

        :param dict config:
            Configuration keys and values as per `SDK and Tool Configuration <https://docs.cloud.oracle.com/Content/API/Concepts/sdkconfig.htm>`__.
            The :py:meth:`~oci.config.from_file` method can be used to load configuration from a file. Alternatively, a ``dict`` can be passed. You can validate_config
            the dict using :py:meth:`~oci.config.validate_config`

        :param str service_endpoint: (optional)
            The endpoint of the service to call using this client. For example ``https://iaas.us-ashburn-1.oraclecloud.com``. If this keyword argument is
            not provided then it will be derived using the region in the config parameter. You should only provide this keyword argument if you have an explicit
            need to specify a service endpoint.

        :param timeout: (optional)
            The connection and read timeouts for the client. The default values are connection timeout 10 seconds and read timeout 60 seconds. This keyword argument can be provided
            as a single float, in which case the value provided is used for both the read and connection timeouts, or as a tuple of two floats. If
            a tuple is provided then the first value is used as the connection timeout and the second value as the read timeout.
        :type timeout: float or tuple(float, float)

        :param signer: (optional)
            The signer to use when signing requests made by the service client. The default is to use a :py:class:`~oci.signer.Signer` based on the values
            provided in the config parameter.

            One use case for this parameter is for `Instance Principals authentication <https://docs.cloud.oracle.com/Content/Identity/Tasks/callingservicesfrominstances.htm>`__
            by passing an instance of :py:class:`~oci.auth.signers.InstancePrincipalsSecurityTokenSigner` as the value for this keyword argument
        :type signer: :py:class:`~oci.signer.AbstractBaseSigner`

        :param obj retry_strategy: (optional)
            A retry strategy to apply to all calls made by this service client (i.e. at the client level). There is no retry strategy applied by default.
            Retry strategies can also be applied at the operation level by passing a ``retry_strategy`` keyword argument as part of calling the operation.
            Any value provided at the operation level will override whatever is specified at the client level.

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
            is also available. The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

        :param obj circuit_breaker_strategy: (optional)
            A circuit breaker strategy to apply to all calls made by this service client (i.e. at the client level).
            This client uses :py:data:`~oci.circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY` as default if no circuit breaker strategy is provided.
            The specifics of circuit breaker strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/circuit_breakers.html>`__.

        :param function circuit_breaker_callback: (optional)
            Callback function to receive any exceptions triggerred by the circuit breaker.

        :param bool client_level_realm_specific_endpoint_template_enabled: (optional)
            A boolean flag to indicate whether or not this client should be created with realm specific endpoint template enabled or disable. By default, this will be set as None.

        :param allow_control_chars: (optional)
            allow_control_chars is a boolean to indicate whether or not this client should allow control characters in the response object. By default, the client will not
            allow control characters to be in the response object.
        ZocvpaThe Alloy configuration has disabled this service, this behavior is controlled by OCI_SDK_ENABLED_SERVICES_SET variable. Please check if your local alloy-config file configured the service you're targeting or contact the cloud provider on the availability of this service�signer)r�tenancy�user�fingerprintZkey_file�pass_phraseZkey_content)rrrZprivate_key_file_locationrZprivate_key_contentT�service_endpointz	/20230701z.https://ocvps.{region}.oci.{secondLevelDomain}�skip_deserializationF�circuit_breaker_strategy�5client_level_realm_specific_endpoint_template_enabled)Zregional_clientr�	base_pathZservice_endpoint_templateZ#service_endpoint_template_per_realmrrr�timeoutN�allow_control_charsZsddc�retry_strategy�circuit_breaker_callback)rZis_service_enabledrr	�getr
rr
rrZGLOBAL_CIRCUIT_BREAKER_STRATEGYZ DEFAULT_CIRCUIT_BREAKER_STRATEGYrr�base_clientrr )�selfZconfig�kwargsrZbase_client_init_kwargs�r%�8/usr/lib/python3.9/site-packages/oci/ocvp/sddc_client.py�__init__sB3


�

�

zSddcClient.__init__cs�dg}d}d}d}d}gd���fdd�t�|�D�}|rHtd	|����d|i}	d
d�t�|	�D�}	t�|	�D]<\}
}|dus�t|tj�rnt|���d
krntd|
�d���qndd|�dt	�|�dt	�|�dt	�d�}dd�t�|�D�}|j
j|�d�|jd�}
|
du�rt
j}
|
�rnt|
t
j��sH|j
�|�|j
�|�|
�|j�|
j|j
j|||	||�d�|||d�	S|j
j|||	||�d�|||d�SdS)aX

        Cancel the pending SDDC downgrade from HCX Enterprise to HCX Advanced.


        :param str sddc_id: (required)
            The `OCID`__ of the SDDC.

            __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm

        :param str opc_retry_token: (optional)
            A token that uniquely identifies a request so it can be retried in case of a timeout or
            server error without risk of executing that same action again. Retry tokens expire after 24
            hours, but can be invalidated before then due to conflicting operations (for example, if a resource
            has been deleted and purged from the system, then a retry of the original creation request
            may be rejected).

        :param str if_match: (optional)
            For optimistic concurrency control. In the PUT or DELETE call
            for a resource, set the `if-match` parameter to the value of the
            etag from a previous GET or POST response for that resource.
            The resource will be updated or deleted only if the etag you
            provide matches the resource's current etag value.

        :param str opc_request_id: (optional)
            Unique identifier for the request. If you need to contact Oracle about a particular
            request, please provide the request ID.

        :param obj retry_strategy: (optional)
            A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.

        :param bool allow_control_chars: (optional)
            allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
            By default, the response will not allow control characters in strings

        :return: A :class:`~oci.response.Response` object with data of type None
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/ocvp/cancel_downgrade_hcx.py.html>`__ to see an example of how to use cancel_downgrade_hcx API.
        �sddcIdz*/sddcs/{sddcId}/actions/cancelDowngradeHcx�POST�cancel_downgrade_hcxzMhttps://docs.oracle.com/iaas/api/#/en/vmware/20230701/Sddc/CancelDowngradeHcx�rr�opc_retry_token�if_match�opc_request_idcsg|]}|�vr|�qSr%r%��.0Z_key�Zexpected_kwargsr%r&�
<listcomp>��z3SddcClient.cancel_downgrade_hcx.<locals>.<listcomp>z)cancel_downgrade_hcx got unknown kwargs: cSsi|]\}}|tur||�qSr%��missing�r0�k�vr%r%r&�
<dictcomp>�r3z3SddcClient.cancel_downgrade_hcx.<locals>.<dictcomp>Nr�
Parameter �+ cannot be None, whitespace or empty string�application/jsonr,r-r.��accept�content-type�opc-retry-token�if-match�opc-request-idcSs&i|]\}}|tur|dur||�qS�Nr4r6r%r%r&r9�r3r�Zoperation_retry_strategyZclient_retry_strategyr��
resource_path�method�path_params�
header_paramsr�operation_name�api_reference_link�required_arguments�r�iterkeys�
ValueError�	iteritems�
isinstance�string_types�len�stripr!r5r"�get_preferred_retry_strategyrr�DEFAULT_RETRY_STRATEGY�NoneRetryStrategy�add_opc_retry_token_if_needed�add_opc_client_retries_header�add_circuit_breaker_callbackr �make_retrying_call�call_api�r#�sddc_idr$rLrFrGrJrK�extra_kwargsrHr7r8rIrr%r1r&r*xsp/��$


��
��zSddcClient.cancel_downgrade_hcxcs�dg}d}d}d}d}gd���fdd�t�|�D�}	|	rHtd	|	����d|i}
d
d�t�|
�D�}
t�|
�D]<\}}|dus�t|tj�rnt|���d
krntd|�d���qndd|�dt	�|�dt	�|�dt	�d�}
dd�t�|
�D�}
|j
j|�d�|jd�}|du�rt
j}|�rpt|t
j��sH|j
�|
�|j
�|
�|�|j�|j|j
j|||
|
||�d�|||d�
S|j
j|||
|
||�d�|||d�	SdS)a�
        Moves an SDDC into a different compartment within the same tenancy. For information
        about moving resources between compartments, see
        `Moving Resources to a Different Compartment`__.

        __ https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes


        :param str sddc_id: (required)
            The `OCID`__ of the SDDC.

            __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm

        :param oci.ocvp.models.ChangeSddcCompartmentDetails change_sddc_compartment_details: (required)
            Request to change the compartment of the specified SDDC

        :param str if_match: (optional)
            For optimistic concurrency control. In the PUT or DELETE call
            for a resource, set the `if-match` parameter to the value of the
            etag from a previous GET or POST response for that resource.
            The resource will be updated or deleted only if the etag you
            provide matches the resource's current etag value.

        :param str opc_request_id: (optional)
            Unique identifier for the request. If you need to contact Oracle about a particular
            request, please provide the request ID.

        :param str opc_retry_token: (optional)
            A token that uniquely identifies a request so it can be retried in case of a timeout or
            server error without risk of executing that same action again. Retry tokens expire after 24
            hours, but can be invalidated before then due to conflicting operations (for example, if a resource
            has been deleted and purged from the system, then a retry of the original creation request
            may be rejected).

        :param obj retry_strategy: (optional)
            A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.

        :param bool allow_control_chars: (optional)
            allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
            By default, the response will not allow control characters in strings

        :return: A :class:`~oci.response.Response` object with data of type None
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/ocvp/change_sddc_compartment.py.html>`__ to see an example of how to use change_sddc_compartment API.
        r(z)/sddcs/{sddcId}/actions/changeCompartmentr)�change_sddc_compartmentzPhttps://docs.oracle.com/iaas/api/#/en/vmware/20230701/Sddc/ChangeSddcCompartment�rrr-r.r,csg|]}|�vr|�qSr%r%r/r1r%r&r22r3z6SddcClient.change_sddc_compartment.<locals>.<listcomp>z,change_sddc_compartment got unknown kwargs: cSsi|]\}}|tur||�qSr%r4r6r%r%r&r9;r3z6SddcClient.change_sddc_compartment.<locals>.<dictcomp>Nrr:r;r<r-r.r,�r>r?rArBr@cSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9Hr3rrDr�	rFrGrHrI�bodyrrJrKrLrM)r#r^Zchange_sddc_compartment_detailsr$rLrFrGrJrKr_rHr7r8rIrr%r1r&r`�st6��$


��
��z"SddcClient.change_sddc_compartmentcsg}d}d}d}d}gd���fdd�t�|�D�}|rFtd|����d	d	|�d
t�|�dt�d�}	d
d�t�|	�D�}	|jj|�d�|jd�}
|
dur�t	j
}
|
r�t|
t	j�s�|j�
|	�|j�|	�|
�|j�|
j|jj|||	||�d�|||d�	S|jj|||	||�d�|||d�SdS)aQ

        Creates an Oracle Cloud VMware Solution software-defined data center (SDDC).

        Use the :class:`WorkRequest` operations to track the
        creation of the SDDC.

        **Important:** You must configure the SDDC's networking resources with the security rules detailed in `Security Rules for Oracle Cloud VMware Solution SDDCs`__. Otherwise, provisioning the SDDC will fail. The rules are based on the requirements set by VMware.

        __ https://docs.cloud.oracle.com/iaas/Content/VMware/Reference/ocvssecurityrules.htm


        :param oci.ocvp.models.CreateSddcDetails create_sddc_details: (required)
            Details for the SDDC.

        :param str opc_retry_token: (optional)
            A token that uniquely identifies a request so it can be retried in case of a timeout or
            server error without risk of executing that same action again. Retry tokens expire after 24
            hours, but can be invalidated before then due to conflicting operations (for example, if a resource
            has been deleted and purged from the system, then a retry of the original creation request
            may be rejected).

        :param str opc_request_id: (optional)
            Unique identifier for the request. If you need to contact Oracle about a particular
            request, please provide the request ID.

        :param obj retry_strategy: (optional)
            A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.

        :param bool allow_control_chars: (optional)
            allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
            By default, the response will not allow control characters in strings

        :return: A :class:`~oci.response.Response` object with data of type None
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/ocvp/create_sddc.py.html>`__ to see an example of how to use create_sddc API.
        �/sddcsr)�create_sddczEhttps://docs.oracle.com/iaas/api/#/en/vmware/20230701/Sddc/CreateSddc)rrr,r.csg|]}|�vr|�qSr%r%r/r1r%r&r2�r3z*SddcClient.create_sddc.<locals>.<listcomp>z create_sddc got unknown kwargs: r<r,r.)r>r?r@rBcSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9�r3z*SddcClient.create_sddc.<locals>.<dictcomp>rrDNr)rFrGrIrdrrJrKrL)rrNrOr!r5rPr"rUrrrVrQrWrXrYrZr r[r\)r#Zcreate_sddc_detailsr$rLrFrGrJrKr_rIrr%r1r&rfmsb-�

����zSddcClient.create_sddccs~dg}d}d}d}d}gd���fdd�t�|�D�}|rHtd	|����d|i}	d
d�t�|	�D�}	t�|	�D]<\}
}|dus�t|tj�rnt|���d
krntd|
�d���qndd|�dt	�|�dt	�d�}dd�t�|�D�}|j
j|�d�|jd�}
|
du�rt
j}
|
�rXt|
t
j��s2|j
�|�|
�|j�|
j|j
j|||	||�d�|||d�	S|j
j|||	||�d�|||d�SdS)a	
        Deletes the specified SDDC, along with the other resources that were
        created with the SDDC. For example: the Compute instances, DNS records,
        and so on.

        Use the :class:`WorkRequest` operations to track the
        deletion of the SDDC.


        :param str sddc_id: (required)
            The `OCID`__ of the SDDC.

            __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm

        :param str if_match: (optional)
            For optimistic concurrency control. In the PUT or DELETE call
            for a resource, set the `if-match` parameter to the value of the
            etag from a previous GET or POST response for that resource.
            The resource will be updated or deleted only if the etag you
            provide matches the resource's current etag value.

        :param str opc_request_id: (optional)
            Unique identifier for the request. If you need to contact Oracle about a particular
            request, please provide the request ID.

        :param obj retry_strategy: (optional)
            A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.

        :param bool allow_control_chars: (optional)
            allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
            By default, the response will not allow control characters in strings

        :return: A :class:`~oci.response.Response` object with data of type None
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/ocvp/delete_sddc.py.html>`__ to see an example of how to use delete_sddc API.
        r(�/sddcs/{sddcId}ZDELETE�delete_sddczEhttps://docs.oracle.com/iaas/api/#/en/vmware/20230701/Sddc/DeleteSddc�rrr-r.csg|]}|�vr|�qSr%r%r/r1r%r&r2r3z*SddcClient.delete_sddc.<locals>.<listcomp>z delete_sddc got unknown kwargs: cSsi|]\}}|tur||�qSr%r4r6r%r%r&r9r3z*SddcClient.delete_sddc.<locals>.<dictcomp>Nrr:r;r<r-r.�r>r?rArBcSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9$r3rrDrrE�rrNrOrPrQrRrSrTr!r5r"rUrrrVrWrYrZr r[r\r]r%r1r&rh�sl-��$

��
��zSddcClient.delete_sddccs�dg}d}d}d}d}gd���fdd�t�|�D�}	|	rHtd	|	����d|i}
d
d�t�|
�D�}
t�|
�D]<\}}|dus�t|tj�rnt|���d
krntd|�d���qndd|�dt	�|�dt	�|�dt	�d�}
dd�t�|
�D�}
|j
j|�d�|jd�}|du�rt
j}|�rpt|t
j��sH|j
�|
�|j
�|
�|�|j�|j|j
j|||
|
||�d�|||d�
S|j
j|||
|
||�d�|||d�	SdS)a�
        Downgrade the specified SDDC from HCX Enterprise to HCX Advanced.
        SDDC with standard compute shapes will always use HCX Enterprise if HCX is enabled and cannot be downgraded.
        Downgrading from HCX Enterprise to HCX Advanced reduces the number of provided license keys from 10 to 3.
        Downgrade remains in a `PENDING` state until the end of the current billing cycle. You can use :func:`cancel_downgrade_hcx`
        to cancel the downgrade while it's still in a `PENDING` state.


        :param oci.ocvp.models.DowngradeHcxDetails downgrade_hcx_details: (required)
            The HCX on-premise license keys to be reserved when downgrading from HCX Enterprise to HCX Advanced.

        :param str sddc_id: (required)
            The `OCID`__ of the SDDC.

            __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm

        :param str opc_retry_token: (optional)
            A token that uniquely identifies a request so it can be retried in case of a timeout or
            server error without risk of executing that same action again. Retry tokens expire after 24
            hours, but can be invalidated before then due to conflicting operations (for example, if a resource
            has been deleted and purged from the system, then a retry of the original creation request
            may be rejected).

        :param str if_match: (optional)
            For optimistic concurrency control. In the PUT or DELETE call
            for a resource, set the `if-match` parameter to the value of the
            etag from a previous GET or POST response for that resource.
            The resource will be updated or deleted only if the etag you
            provide matches the resource's current etag value.

        :param str opc_request_id: (optional)
            Unique identifier for the request. If you need to contact Oracle about a particular
            request, please provide the request ID.

        :param obj retry_strategy: (optional)
            A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.

        :param bool allow_control_chars: (optional)
            allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
            By default, the response will not allow control characters in strings

        :return: A :class:`~oci.response.Response` object with data of type None
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/ocvp/downgrade_hcx.py.html>`__ to see an example of how to use downgrade_hcx API.
        r(z$/sddcs/{sddcId}/actions/downgradeHcxr)�
downgrade_hcxzGhttps://docs.oracle.com/iaas/api/#/en/vmware/20230701/Sddc/DowngradeHcxr+csg|]}|�vr|�qSr%r%r/r1r%r&r2�r3z,SddcClient.downgrade_hcx.<locals>.<listcomp>z"downgrade_hcx got unknown kwargs: cSsi|]\}}|tur||�qSr%r4r6r%r%r&r9�r3z,SddcClient.downgrade_hcx.<locals>.<dictcomp>Nrr:r;r<r,r-r.r=cSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9�r3rrDrrcrM)r#Zdowngrade_hcx_detailsr^r$rLrFrGrJrKr_rHr7r8rIrr%r1r&rlFst6��$


��
��zSddcClient.downgrade_hcxcsvdg}d}d}d}d}gd���fdd�t�|�D�}|rHtd	|����d|i}	d
d�t�|	�D�}	t�|	�D]<\}
}|dus�t|tj�rnt|���d
krntd|
�d���qndd|�dt	�d�}dd�t�|�D�}|j
j|�d�|jd�}
|
dur�t
j}
|
�rNt|
t
j��s&|j
�|�|
�|j�|
j|j
j|||	|d|�d�|||d�
S|j
j|||	|d|�d�|||d�	SdS)a�
        Gets the specified SDDC's information.


        :param str sddc_id: (required)
            The `OCID`__ of the SDDC.

            __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm

        :param str opc_request_id: (optional)
            Unique identifier for the request. If you need to contact Oracle about a particular
            request, please provide the request ID.

        :param obj retry_strategy: (optional)
            A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.

        :param bool allow_control_chars: (optional)
            allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
            By default, the response will not allow control characters in strings

        :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.ocvp.models.Sddc`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/ocvp/get_sddc.py.html>`__ to see an example of how to use get_sddc API.
        r(rg�GET�get_sddczBhttps://docs.oracle.com/iaas/api/#/en/vmware/20230701/Sddc/GetSddc)rrr.csg|]}|�vr|�qSr%r%r/r1r%r&r2�r3z'SddcClient.get_sddc.<locals>.<listcomp>zget_sddc got unknown kwargs: cSsi|]\}}|tur||�qSr%r4r6r%r%r&r9�r3z'SddcClient.get_sddc.<locals>.<dictcomp>Nrr:r;r<r.�r>r?rBcSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9r3rrD�Sddcr)	rFrGrHrI�
response_typerrJrKrLrkr]r%r1r&rn�sn!��$
����zSddcClient.get_sddccs�dg}d}d}d}d}gd���fdd�t�|�D�}|rHtd	|����d
|vrrddg}	|d
|	vrrtd
|	����d|vr�ddg}
|d|
vr�td|
����d|vr�gd�}|d|vr�td|����||�dt�|�dt�|�dt�|�dt�|�d
t�|�dt�|�dt�d�}dd�t�|�D�}dd|�dt�d�}
dd�t�|
�D�}
|jj|�d �|jd!�}|d"u�rxt	j
}|�r�t|t	j��s�|j�
|
�|�|j�|j|jj||||
d#|�d$�|||d%�
S|jj||||
d#|�d$�|||d%�	Sd"S)&a�
        Lists the SDDCs in the specified compartment. The list can be
        filtered by display name or availability domain.


        :param str compartment_id: (required)
            The `OCID`__ of the compartment.

            __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm

        :param str compute_availability_domain: (optional)
            The name of the availability domain that the Compute instances are running in.

            Example: `Uocm:PHX-AD-1`

        :param str display_name: (optional)
            A filter to return only resources that match the given display name exactly.

        :param int limit: (optional)
            For list pagination. The maximum number of results per page, or items to return in a paginated
            "List" call. For important details about how pagination works, see
            `List Pagination`__.

            __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine

        :param str page: (optional)
            For list pagination. The value of the `opc-next-page` response header from the previous "List"
            call. For important details about how pagination works, see
            `List Pagination`__.

            __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine

        :param str sort_order: (optional)
            The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order
            is case sensitive.

            Allowed values are: "ASC", "DESC"

        :param str sort_by: (optional)
            The field to sort by. You can provide one sort order (`sortOrder`). Default order for
            TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME
            sort order is case sensitive.

            **Note:** In general, some "List" operations (for example, `ListInstances`) let you
            optionally filter by availability domain if the scope of the resource type is within a
            single availability domain. If you call one of these "List" operations without specifying
            an availability domain, the resources are grouped by availability domain, then sorted.

            Allowed values are: "timeCreated", "displayName"

        :param str opc_request_id: (optional)
            Unique identifier for the request. If you need to contact Oracle about a particular
            request, please provide the request ID.

        :param str lifecycle_state: (optional)
            The lifecycle state of the resource.

            Allowed values are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"

        :param obj retry_strategy: (optional)
            A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.

        :param bool allow_control_chars: (optional)
            allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
            By default, the response will not allow control characters in strings

        :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.ocvp.models.SddcCollection`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/ocvp/list_sddcs.py.html>`__ to see an example of how to use list_sddcs API.
        �
compartmentIdrerm�
list_sddcszKhttps://docs.oracle.com/iaas/api/#/en/vmware/20230701/SddcSummary/ListSddcs)
rr�compute_availability_domain�display_name�limit�page�
sort_order�sort_byr.�lifecycle_statecsg|]}|�vr|�qSr%r%r/r1r%r&r2�r3z)SddcClient.list_sddcs.<locals>.<listcomp>zlist_sddcs got unknown kwargs: rxZASCZDESCz/Invalid value for `sort_order`, must be one of ryZtimeCreated�displayNamez,Invalid value for `sort_by`, must be one of rz)ZCREATINGZUPDATINGZACTIVEZDELETINGZDELETEDZFAILEDz4Invalid value for `lifecycle_state`, must be one of rtrurvrw)rrZcomputeAvailabilityDomainr{rvrwZ	sortOrderZsortByZlifecycleStatecSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9�r3z)SddcClient.list_sddcs.<locals>.<dictcomp>r<r.rocSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9�r3rrDNZSddcCollectionr�	rFrG�query_paramsrIrqrrJrKrL�rrNrOr!r5rPr"rUrrrVrQrWrYrZr r[r\)r#�compartment_idr$rLrFrGrJrKr_Zsort_order_allowed_valuesZsort_by_allowed_valuesZlifecycle_state_allowed_valuesr}rIrr%r1r&rs*s�O����






�

��
��zSddcClient.list_sddcscsJdg}d}d}d}d}gd���fdd�t�|�D�}|rHtd	|����||�d
t�|�dt�|�dt�d
�}	dd�t�|	�D�}	dd|�dt�d�}
dd�t�|
�D�}
|jj|�d�|jd�}|dur�t	j
}|�r"t|t	j�s�|j�
|
�|�|j�|j|jj|||	|
d|�d�|||d�
S|jj|||	|
d|�d�|||d�	SdS)a=

        Lists supported Commitments.


        :param str compartment_id: (required)
            The `OCID`__ of the compartment.

            __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm

        :param int limit: (optional)
            For list pagination. The maximum number of results per page, or items to return in a paginated
            "List" call. For important details about how pagination works, see
            `List Pagination`__.

            __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine

        :param str page: (optional)
            For list pagination. The value of the `opc-next-page` response header from the previous "List"
            call. For important details about how pagination works, see
            `List Pagination`__.

            __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine

        :param str opc_request_id: (optional)
            Unique identifier for the request. If you need to contact Oracle about a particular
            request, please provide the request ID.

        :param str host_shape_name: (optional)
            A filter to return only resources that match or support the given ESXi host shape.

        :param obj retry_strategy: (optional)
            A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.

        :param bool allow_control_chars: (optional)
            allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
            By default, the response will not allow control characters in strings

        :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.ocvp.models.SupportedCommitmentSummaryCollection`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/ocvp/list_supported_commitments.py.html>`__ to see an example of how to use list_supported_commitments API.
        rrz/supportedCommitmentsrm�list_supported_commitmentszihttps://docs.oracle.com/iaas/api/#/en/vmware/20230701/SupportedCommitmentSummary/ListSupportedCommitments)rrrvrwr.�host_shape_namecsg|]}|�vr|�qSr%r%r/r1r%r&r2r3z9SddcClient.list_supported_commitments.<locals>.<listcomp>z/list_supported_commitments got unknown kwargs: rvrwr�)rrrvrw�
hostShapeNamecSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9'r3z9SddcClient.list_supported_commitments.<locals>.<dictcomp>r<r.rocSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9.r3rrDNZ$SupportedCommitmentSummaryCollectionrr|r~�r#rr$rLrFrGrJrKr_r}rIrr%r1r&r��sn2�


�
����z%SddcClient.list_supported_commitmentscs`dg}d}d}d}d}gd���fdd�t�|�D�}|rHtd	|����||�d
t�|�dt�|�dt�|�d
t�|�dt�d�}	dd�t�|	�D�}	dd|�dt�d�}
dd�t�|
�D�}
|jj|�d�|jd�}|dur�t	j
}|�r8t|t	j��s|j�
|
�|�|j�|j|jj|||	|
d|�d�|||d�
S|jj|||	|
d|�d�|||d�	SdS)aX
        Lists supported compute shapes for ESXi hosts.


        :param str compartment_id: (required)
            The `OCID`__ of the compartment.

            __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm

        :param int limit: (optional)
            For list pagination. The maximum number of results per page, or items to return in a paginated
            "List" call. For important details about how pagination works, see
            `List Pagination`__.

            __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine

        :param str page: (optional)
            For list pagination. The value of the `opc-next-page` response header from the previous "List"
            call. For important details about how pagination works, see
            `List Pagination`__.

            __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine

        :param str opc_request_id: (optional)
            Unique identifier for the request. If you need to contact Oracle about a particular
            request, please provide the request ID.

        :param str name: (optional)
            A filter to return only resources that match the given name exactly.

        :param bool is_single_host_sddc_supported: (optional)
            A filter to return only resources that support single host SDDC.

        :param str initial_host_shape_name: (optional)
            A filter to return only the shapes compatible with the initial host shape of the Cluster.

        :param obj retry_strategy: (optional)
            A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.

        :param bool allow_control_chars: (optional)
            allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
            By default, the response will not allow control characters in strings

        :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.ocvp.models.SupportedHostShapeCollection`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/ocvp/list_supported_host_shapes.py.html>`__ to see an example of how to use list_supported_host_shapes API.
        rrz/supportedHostShapesrm�list_supported_host_shapeszghttps://docs.oracle.com/iaas/api/#/en/vmware/20230701/SupportedHostShapeSummary/ListSupportedHostShapes)rrrvrwr.�name�is_single_host_sddc_supported�initial_host_shape_namecsg|]}|�vr|�qSr%r%r/r1r%r&r2�r3z9SddcClient.list_supported_host_shapes.<locals>.<listcomp>z/list_supported_host_shapes got unknown kwargs: rvrwr�r�r�)rrrvrwr�ZisSingleHostSddcSupportedZinitialHostShapeNamecSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9�r3z9SddcClient.list_supported_host_shapes.<locals>.<dictcomp>r<r.rocSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9�r3rrDNZSupportedHostShapeCollectionrr|r~r�r%r1r&r�Rsr8
�




�
����z%SddcClient.list_supported_host_shapescs`dg}d}d}d}d}gd���fdd�t�|�D�}|rHtd	|����||�d
t�|�dt�|�dt�|�d
t�|�dt�d�}	dd�t�|	�D�}	dd|�dt�d�}
dd�t�|
�D�}
|jj|�d�|jd�}|dur�t	j
}|�r8t|t	j��s|j�
|
�|�|j�|j|jj|||	|
d|�d�|||d�
S|jj|||	|
d|�d�|||d�	SdS)a�
        Lists the versions of bundled VMware software supported by the Oracle Cloud
        VMware Solution.


        :param str compartment_id: (required)
            The `OCID`__ of the compartment.

            __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm

        :param int limit: (optional)
            For list pagination. The maximum number of results per page, or items to return in a paginated
            "List" call. For important details about how pagination works, see
            `List Pagination`__.

            __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine

        :param str page: (optional)
            For list pagination. The value of the `opc-next-page` response header from the previous "List"
            call. For important details about how pagination works, see
            `List Pagination`__.

            __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine

        :param str opc_request_id: (optional)
            Unique identifier for the request. If you need to contact Oracle about a particular
            request, please provide the request ID.

        :param str version: (optional)
            A filter to return only resources that match the given VMware software version exactly.

        :param str host_shape_name: (optional)
            A filter to return only resources that match or support the given ESXi host shape.

        :param str version_to_upgrade: (optional)
            A filter to return only VMware software versions that the given VMware software version can be upgraded to.

        :param obj retry_strategy: (optional)
            A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.

        :param bool allow_control_chars: (optional)
            allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
            By default, the response will not allow control characters in strings

        :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.ocvp.models.SupportedVmwareSoftwareVersionCollection`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/ocvp/list_supported_vmware_software_versions.py.html>`__ to see an example of how to use list_supported_vmware_software_versions API.
        rrz /supportedVmwareSoftwareVersionsrm�'list_supported_vmware_software_versionszhttps://docs.oracle.com/iaas/api/#/en/vmware/20230701/SupportedVmwareSoftwareVersionSummary/ListSupportedVmwareSoftwareVersions)rrrvrwr.�versionr��version_to_upgradecsg|]}|�vr|�qSr%r%r/r1r%r&r2r3zFSddcClient.list_supported_vmware_software_versions.<locals>.<listcomp>z<list_supported_vmware_software_versions got unknown kwargs: rvrwr�r�r�)rrrvrwr�r�ZversionToUpgradecSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9*r3zFSddcClient.list_supported_vmware_software_versions.<locals>.<dictcomp>r<r.rocSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r91r3rrDNZ(SupportedVmwareSoftwareVersionCollectionrr|r~r�r%r1r&r��sr9
�




�
����z2SddcClient.list_supported_vmware_software_versionscs�dg}d}d}d}d}gd���fdd�t�|�D�}|rHtd	|����d|i}	d
d�t�|	�D�}	t�|	�D]<\}
}|dus�t|tj�rnt|���d
krntd|
�d���qndd|�dt	�|�dt	�|�dt	�d�}dd�t�|�D�}|j
j|�d�|jd�}
|
du�rt
j}
|
�rnt|
t
j��sH|j
�|�|j
�|�|
�|j�|
j|j
j|||	||�d�|||d�	S|j
j|||	||�d�|||d�SdS)a[

        Refresh HCX on-premise licenses status of the specified SDDC.


        :param str sddc_id: (required)
            The `OCID`__ of the SDDC.

            __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm

        :param str opc_retry_token: (optional)
            A token that uniquely identifies a request so it can be retried in case of a timeout or
            server error without risk of executing that same action again. Retry tokens expire after 24
            hours, but can be invalidated before then due to conflicting operations (for example, if a resource
            has been deleted and purged from the system, then a retry of the original creation request
            may be rejected).

        :param str if_match: (optional)
            For optimistic concurrency control. In the PUT or DELETE call
            for a resource, set the `if-match` parameter to the value of the
            etag from a previous GET or POST response for that resource.
            The resource will be updated or deleted only if the etag you
            provide matches the resource's current etag value.

        :param str opc_request_id: (optional)
            Unique identifier for the request. If you need to contact Oracle about a particular
            request, please provide the request ID.

        :param obj retry_strategy: (optional)
            A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.

        :param bool allow_control_chars: (optional)
            allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
            By default, the response will not allow control characters in strings

        :return: A :class:`~oci.response.Response` object with data of type None
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/ocvp/refresh_hcx_license_status.py.html>`__ to see an example of how to use refresh_hcx_license_status API.
        r(z*/sddcs/{sddcId}/actions/refreshHcxLicensesr)�refresh_hcx_license_statuszRhttps://docs.oracle.com/iaas/api/#/en/vmware/20230701/Sddc/RefreshHcxLicenseStatusr+csg|]}|�vr|�qSr%r%r/r1r%r&r2�r3z9SddcClient.refresh_hcx_license_status.<locals>.<listcomp>z/refresh_hcx_license_status got unknown kwargs: cSsi|]\}}|tur||�qSr%r4r6r%r%r&r9�r3z9SddcClient.refresh_hcx_license_status.<locals>.<dictcomp>Nrr:r;r<r,r-r.r=cSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9�r3rrDrrErMr]r%r1r&r�Usp/��$


��
��z%SddcClient.refresh_hcx_license_statusc
s�ddg}d}d}d}d}gd���fdd	�t�|�D�}	|	rJtd
|	����d|i}
dd�t�|
�D�}
t�|
�D]<\}}|d
us�t|tj�rpt|���dkrptd|�d���qpgd�}
||
vr�td|
����d|i}dd�t�|�D�}dd|�dt	�|�dt	�|�dt	�d�}dd�t�|�D�}|j
j|�d�|jd�}|d
u�rLt
j}|�r�t|t
j��s�|j
�|�|j
�|�|�|j�|j|j
j|||
||d|�d�|||d�S|j
j|||
||d|�d�|||d�
Sd
S)a�

        Retrieve the SDDC password.


        :param str sddc_id: (required)
            The `OCID`__ of the SDDC.

            __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm

        :param str type: (required)
            The SDDC password type.

            Allowed values are: "VCENTER", "NSX", "HCX"

        :param str if_match: (optional)
            For optimistic concurrency control. In the PUT or DELETE call
            for a resource, set the `if-match` parameter to the value of the
            etag from a previous GET or POST response for that resource.
            The resource will be updated or deleted only if the etag you
            provide matches the resource's current etag value.

        :param str opc_request_id: (optional)
            Unique identifier for the request. If you need to contact Oracle about a particular
            request, please provide the request ID.

        :param str opc_retry_token: (optional)
            A token that uniquely identifies a request so it can be retried in case of a timeout or
            server error without risk of executing that same action again. Retry tokens expire after 24
            hours, but can be invalidated before then due to conflicting operations (for example, if a resource
            has been deleted and purged from the system, then a retry of the original creation request
            may be rejected).

        :param obj retry_strategy: (optional)
            A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.

        :param bool allow_control_chars: (optional)
            allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
            By default, the response will not allow control characters in strings

        :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.ocvp.models.SddcPassword`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/ocvp/retrieve_password.py.html>`__ to see an example of how to use retrieve_password API.
        r(�typez(/sddcs/{sddcId}/actions/retrievePasswordr)�retrieve_passwordzKhttps://docs.oracle.com/iaas/api/#/en/vmware/20230701/Sddc/RetrievePasswordracsg|]}|�vr|�qSr%r%r/r1r%r&r2
r3z0SddcClient.retrieve_password.<locals>.<listcomp>z&retrieve_password got unknown kwargs: cSsi|]\}}|tur||�qSr%r4r6r%r%r&r9r3z0SddcClient.retrieve_password.<locals>.<dictcomp>Nrr:r;)ZVCENTERZNSXZHCXz)Invalid value for `type`, must be one of cSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9%r3r<r-r.r,rbcSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9.r3rrDZSddcPasswordr)
rFrGrHr}rIrqrrJrKrLrM)r#r^r�r$rLrFrGrJrKr_rHr7r8Ztype_allowed_valuesr}rIrr%r1r&r��s�4��$��


��
�
�zSddcClient.retrieve_passwordc
s�dg}d}d}d}d}gd���fdd�t�|�D�}	|	rHtd	|	����d|i}
d
d�t�|
�D�}
t�|
�D]<\}}|dus�t|tj�rnt|���d
krntd|�d���qndd|�dt	�|�dt	�d�}
dd�t�|
�D�}
|j
j|�d�|jd�}|du�rt
j}|�r\t|t
j��s2|j
�|
�|�|j�|j|j
j|||
|
|d|�d�|||d�S|j
j|||
|
|d|�d�|||d�
SdS)a�	
        Updates the specified SDDC.

        **Important:** Updating an SDDC affects only certain attributes in the `Sddc`
        object and does not affect the VMware environment currently running in
        the SDDC. For more information, see
        :func:`update_sddc_details`.


        :param str sddc_id: (required)
            The `OCID`__ of the SDDC.

            __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm

        :param oci.ocvp.models.UpdateSddcDetails update_sddc_details: (required)
            The information to be updated.

        :param str if_match: (optional)
            For optimistic concurrency control. In the PUT or DELETE call
            for a resource, set the `if-match` parameter to the value of the
            etag from a previous GET or POST response for that resource.
            The resource will be updated or deleted only if the etag you
            provide matches the resource's current etag value.

        :param str opc_request_id: (optional)
            Unique identifier for the request. If you need to contact Oracle about a particular
            request, please provide the request ID.

        :param obj retry_strategy: (optional)
            A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.

        :param bool allow_control_chars: (optional)
            allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
            By default, the response will not allow control characters in strings

        :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.ocvp.models.Sddc`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/ocvp/update_sddc.py.html>`__ to see an example of how to use update_sddc API.
        r(rgZPUT�update_sddczEhttps://docs.oracle.com/iaas/api/#/en/vmware/20230701/Sddc/UpdateSddcricsg|]}|�vr|�qSr%r%r/r1r%r&r2�r3z*SddcClient.update_sddc.<locals>.<listcomp>z update_sddc got unknown kwargs: cSsi|]\}}|tur||�qSr%r4r6r%r%r&r9�r3z*SddcClient.update_sddc.<locals>.<dictcomp>Nrr:r;r<r-r.rjcSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9�r3rrDrpr)
rFrGrHrIrdrqrrJrKrLrk)r#r^Zupdate_sddc_detailsr$rLrFrGrJrKr_rHr7r8rIrr%r1r&r�Ust0��$

��
�
�zSddcClient.update_sddccs�dg}d}d}d}d}gd���fdd�t�|�D�}|rHtd	|����d|i}	d
d�t�|	�D�}	t�|	�D]<\}
}|dus�t|tj�rnt|���d
krntd|
�d���qndd|�dt	�|�dt	�|�dt	�d�}dd�t�|�D�}|j
j|�d�|jd�}
|
du�rt
j}
|
�rnt|
t
j��sH|j
�|�|j
�|�|
�|j�|
j|j
j|||	||�d�|||d�	S|j
j|||	||�d�|||d�SdS)a?

        Upgrade the specified SDDC from HCX Advanced to HCX Enterprise.


        :param str sddc_id: (required)
            The `OCID`__ of the SDDC.

            __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm

        :param str opc_retry_token: (optional)
            A token that uniquely identifies a request so it can be retried in case of a timeout or
            server error without risk of executing that same action again. Retry tokens expire after 24
            hours, but can be invalidated before then due to conflicting operations (for example, if a resource
            has been deleted and purged from the system, then a retry of the original creation request
            may be rejected).

        :param str if_match: (optional)
            For optimistic concurrency control. In the PUT or DELETE call
            for a resource, set the `if-match` parameter to the value of the
            etag from a previous GET or POST response for that resource.
            The resource will be updated or deleted only if the etag you
            provide matches the resource's current etag value.

        :param str opc_request_id: (optional)
            Unique identifier for the request. If you need to contact Oracle about a particular
            request, please provide the request ID.

        :param obj retry_strategy: (optional)
            A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.

            This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
            The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.

            To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.

        :param bool allow_control_chars: (optional)
            allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
            By default, the response will not allow control characters in strings

        :return: A :class:`~oci.response.Response` object with data of type None
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/ocvp/upgrade_hcx.py.html>`__ to see an example of how to use upgrade_hcx API.
        r(z"/sddcs/{sddcId}/actions/upgradeHcxr)�upgrade_hcxzEhttps://docs.oracle.com/iaas/api/#/en/vmware/20230701/Sddc/UpgradeHcxr+csg|]}|�vr|�qSr%r%r/r1r%r&r2
r3z*SddcClient.upgrade_hcx.<locals>.<listcomp>z upgrade_hcx got unknown kwargs: cSsi|]\}}|tur||�qSr%r4r6r%r%r&r9r3z*SddcClient.upgrade_hcx.<locals>.<dictcomp>Nrr:r;r<r,r-r.r=cSs&i|]\}}|tur|dur||�qSrCr4r6r%r%r&r9 r3rrDrrErMr]r%r1r&r��sp/��$


��
��zSddcClient.upgrade_hcxN)�__name__�
__module__�__qualname__�__doc__r'r*r`rfrhrlrnrsr�r�r�r�r�r�r�r%r%r%r&rs([vhqe2wvxrN)Z
__future__rZoci._vendorrrZocirrZoci.base_clientrZ
oci.configrr	Z
oci.signerr
Zoci.utilrrr
Zoci.exceptionsrZ	oci.alloyrZmodelsrr5�objectrr%r%r%r&�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit