o
    ɶdzR                    @   s   d dl mZ d dlmZ d dlmZ d dlmZmZ d dlm	Z	 d dl
mZmZ d dlmZ d dlmZmZmZ d	d
lmZ edZG dd deZdS )    )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   )ocvp_type_mappingZMissingc                   @   s   e Zd ZdZdd Zdd Zdd Zdd	 Zd
d Zdd Z	dd Z
dd Zdd Zdd Zdd Zdd Zdd Zdd Zd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              
   K   s  t ||dd d|v r|d }n"t|v rt|}nt|d |d |d |dt|d|dd	}d
|dddi |dd|dtj|dd}d|v rY|d|d< |ddu retj|d< d|v rp|d|d< t	d||t
fi || _|d| _|d| _dS )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.
        signer)r   tenancyuserfingerprintZkey_filepass_phraseZkey_content)r   r   r   Zprivate_key_file_locationr   Zprivate_key_contentTservice_endpointz	/20200501z.https://ocvps.{region}.oci.{secondLevelDomain}skip_deserializationFcircuit_breaker_strategy5client_level_realm_specific_endpoint_template_enabled)Zregional_clientr   	base_pathZservice_endpoint_templateZ#service_endpoint_template_per_realmr   r   r   timeoutNallow_control_charsZsddcretry_strategycircuit_breaker_callback)r	   getr   r   r
   r   r   ZGLOBAL_CIRCUIT_BREAKER_STRATEGYZ DEFAULT_CIRCUIT_BREAKER_STRATEGYr   r   base_clientr   r   )selfconfigkwargsr   Zbase_client_init_kwargs r$   8usr/lib/python3.10/site-packages/oci/ocvp/sddc_client.py__init__   s>   3





zSddcClient.__init__c                      dg}d}d}d}d}g d  fddt |D }|r$td	|d|i}	d
d t |	D }	t |	D ]\}
}|du sMt|t jrTt| dkrTtd|
q7dd|	dt
|	dt
|	dt
d}dd t |D }| jj|	d| jd}|du rtj}|rt|tjs| j| | j| || j |j| jj|||	||	d|||d	S | jj|||	||	d|||d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/20200501/Sddc/CancelDowngradeHcxr   r   opc_retry_tokenif_matchopc_request_idc                       g | ]}| vr|qS r$   r$   .0_keyZexpected_kwargsr$   r%   
<listcomp>       z3SddcClient.cancel_downgrade_hcx.<locals>.<listcomp>z-cancel_downgrade_hcx got unknown kwargs: {!r}c                 S      i | ]\}}|t ur||qS r$   missingr1   kvr$   r$   r%   
<dictcomp>       z3SddcClient.cancel_downgrade_hcx.<locals>.<dictcomp>Nr   7Parameter {} cannot be None, whitespace or empty stringapplication/jsonr,   r-   r.   acceptcontent-typeopc-retry-tokenif-matchopc-request-idc                 S   &   i | ]\}}|t ur|d ur||qS Nr7   r9   r$   r$   r%   r<         & r   Zoperation_retry_strategyZclient_retry_strategyr   resource_pathmethodpath_paramsheader_paramsr   operation_nameapi_reference_linkrequired_argumentsr   iterkeys
ValueErrorformat	iteritems
isinstancestring_typeslenstripr   r8   r    get_preferred_retry_strategyr   r   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#   rQ   rK   rL   rO   rP   extra_kwargsrM   r:   r;   rN   r   r$   r3   r%   r*   s   r   /$


zSddcClient.cancel_downgrade_hcxc                    s  dg}d}d}d}d}g d  fddt |D }	|	r$td	|	d|i}
d
d t |
D }
t |
D ]\}}|du sMt|t jrTt| dkrTtd|q7dd|	dt
|	dt
|	dt
d}dd t |D }| jj|	d| jd}|du rtj}|rt|tjs| j| | j| || j |j| jj|||
|||	d|||d
S | jj|||
|||	d|||d	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/20200501/Sddc/ChangeSddcCompartment)r   r   r-   r.   r,   c                    r/   r$   r$   r0   r3   r$   r%   r4   -  r5   z6SddcClient.change_sddc_compartment.<locals>.<listcomp>z0change_sddc_compartment got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<   6  r=   z6SddcClient.change_sddc_compartment.<locals>.<dictcomp>Nr   r>   r?   r-   r.   r,   )rA   rB   rD   rE   rC   c                 S   rF   rG   r7   r9   r$   r$   r%   r<   C  rH   r   rI   r   	rK   rL   rM   rN   bodyr   rO   rP   rQ   rR   )r!   rd   Zchange_sddc_compartment_detailsr#   rQ   rK   rL   rO   rP   re   rM   r:   r;   rN   r   r$   r3   r%   rg      v   6$


z"SddcClient.change_sddc_compartmentc                    s  g }d}d}d}d}g d  fddt |D }|r#td|d	d	|d
t|dtd}	dd t |	D }	| jj|d| j	d}
|
du rOt
j}
|
r|t|
t
jsi| j|	 | j|	 |
| j |
j| jj|||	||d|||d	S | jj|||	||d|||dS )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/20200501/Sddc/CreateSddc)r   r   r,   r.   c                    r/   r$   r$   r0   r3   r$   r%   r4     r5   z*SddcClient.create_sddc.<locals>.<listcomp>z$create_sddc got unknown kwargs: {!r}r?   r,   r.   )rA   rB   rC   rE   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   z*SddcClient.create_sddc.<locals>.<dictcomp>r   rI   Nr   )rK   rL   rN   ri   r   rO   rP   rQ   )r   rS   rT   rU   r   r8   rV   r    r[   r   r   r\   rW   r]   r^   r_   r`   r   ra   rb   )r!   Zcreate_sddc_detailsr#   rQ   rK   rL   rO   rP   re   rN   r   r$   r3   r%   rl   h  sb   -

zSddcClient.create_sddcc                    sr  dg}d}d}d}d}g d  fddt |D }|r$td	|d|i}	d
d t |	D }	t |	D ]\}
}|du sMt|t jrTt| dkrTtd|
q7dd|	dt
|	dt
d}dd t |D }| jj|	d| jd}|du rtj}|rt|tjs| j| || j |j| jj|||	||	d|||d	S | jj|||	||	d|||d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}ZDELETEdelete_sddczEhttps://docs.oracle.com/iaas/api/#/en/vmware/20200501/Sddc/DeleteSddcr   r   r-   r.   c                    r/   r$   r$   r0   r3   r$   r%   r4   
  r5   z*SddcClient.delete_sddc.<locals>.<listcomp>z$delete_sddc got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<     r=   z*SddcClient.delete_sddc.<locals>.<dictcomp>Nr   r>   r?   r-   r.   rA   rB   rD   rE   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   r   rI   r   rJ   r   rS   rT   rU   rV   rW   rX   rY   rZ   r   r8   r    r[   r   r   r\   r]   r_   r`   r   ra   rb   rc   r$   r3   r%   rn     sn   -$

zSddcClient.delete_sddcc                    s  dg}d}d}d}d}g d  fddt |D }	|	r$td	|	d|i}
d
d t |
D }
t |
D ]\}}|du sMt|t jrTt| dkrTtd|q7dd|	dt
|	dt
|	dt
d}dd t |D }| jj|	d| jd}|du rtj}|rt|tjs| j| | j| || j |j| jj|||
|||	d|||d
S | jj|||
|||	d|||d	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/20200501/Sddc/DowngradeHcxr+   c                    r/   r$   r$   r0   r3   r$   r%   r4     r5   z,SddcClient.downgrade_hcx.<locals>.<listcomp>z&downgrade_hcx got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<     r=   z,SddcClient.downgrade_hcx.<locals>.<dictcomp>Nr   r>   r?   r,   r-   r.   r@   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   r   rI   r   rh   rR   )r!   Zdowngrade_hcx_detailsrd   r#   rQ   rK   rL   rO   rP   re   rM   r:   r;   rN   r   r$   r3   r%   rr   A  rj   zSddcClient.downgrade_hcxc                    sl  dg}d}d}d}d}g d  fddt |D }|r$td	|d|i}	d
d t |	D }	t |	D ]\}
}|du sMt|t jrTt| dkrTtd|
q7dd|	dt
d}dd t |D }| jj|	d| jd}|du r|tj}|rt|tjs| j| || j |j| jj|||	|d|	d|||d
S | jj|||	|d|	d|||d	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(   rm   GETget_sddczBhttps://docs.oracle.com/iaas/api/#/en/vmware/20200501/Sddc/GetSddc)r   r   r.   c                    r/   r$   r$   r0   r3   r$   r%   r4     r5   z'SddcClient.get_sddc.<locals>.<listcomp>z!get_sddc got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<     r=   z'SddcClient.get_sddc.<locals>.<dictcomp>Nr   r>   r?   r.   rA   rB   rE   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   r   rI   Sddcr   )	rK   rL   rM   rN   response_typer   rO   rP   rQ   rq   rc   r$   r3   r%   rt     sp   !$
zSddcClient.get_sddcc                    s  dg}d}d}d}d}g d  fddt |D }|r$td	|d
|v r9ddg}	|d
 |	vr9td|	d|v rNddg}
|d |
vrNtd|
d|v rcg d}|d |vrctd|||dt|dt|dt|dt|d
t|dt|dtd}dd t |D }dd|dtd}dd t |D }| jj|d | j	d!}|d"u rt
j}|rt|t
js| j| || j |j| jj||||d#|d$|||d%
S | jj||||d#|d$|||d%	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.
        compartmentIdrk   rs   
list_sddcszKhttps://docs.oracle.com/iaas/api/#/en/vmware/20200501/SddcSummary/ListSddcs)
r   r   compute_availability_domaindisplay_namelimitpage
sort_ordersort_byr.   lifecycle_statec                    r/   r$   r$   r0   r3   r$   r%   r4     r5   z)SddcClient.list_sddcs.<locals>.<listcomp>z#list_sddcs got unknown kwargs: {!r}r~   ZASCZDESCz2Invalid value for `sort_order`, must be one of {0}r   ZtimeCreateddisplayNamez/Invalid value for `sort_by`, must be one of {0}r   )ZCREATINGZUPDATINGZACTIVEZDELETINGZDELETEDZFAILEDz7Invalid value for `lifecycle_state`, must be one of {0}rz   r{   r|   r}   )rx   ZcomputeAvailabilityDomainr   r|   r}   Z	sortOrderZsortByZlifecycleStatec                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   z)SddcClient.list_sddcs.<locals>.<dictcomp>r?   r.   ru   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   r   rI   NZSddcCollectionr   	rK   rL   query_paramsrN   rw   r   rO   rP   rQ   r   rS   rT   rU   r   r8   rV   r    r[   r   r   r\   rW   r]   r_   r`   r   ra   rb   )r!   compartment_idr#   rQ   rK   rL   rO   rP   re   Zsort_order_allowed_valuesZsort_by_allowed_valuesZlifecycle_state_allowed_valuesr   rN   r   r$   r3   r%   ry   %  s   O








zSddcClient.list_sddcsc                    sx  dg}d}d}d}d}g d  fddt |D }|r$td	|d
|v r9ddg}	|d
 |	vr9td|	||dt|dt|dt|d
td}
dd t |
D }
dd|dtd}dd t |D }| jj|d| j	d}|du rt
j}|rt|t
js| j| || j |j| jj|||
|d|d|||d
S | jj|||
|d|d|||d	S )a
  
        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 str sddc_type: (optional)
            A filter to return only resources that match the given SDDC type exactly.

            Allowed values are: "PRODUCTION", "NON_PRODUCTION"

        :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.
        rx   z/supportedHostShapesrs   list_supported_host_shapeszghttps://docs.oracle.com/iaas/api/#/en/vmware/20200501/SupportedHostShapeSummary/ListSupportedHostShapes)r   r   r|   r}   r.   name	sddc_typec                    r/   r$   r$   r0   r3   r$   r%   r4     r5   z9SddcClient.list_supported_host_shapes.<locals>.<listcomp>z3list_supported_host_shapes got unknown kwargs: {!r}r   Z
PRODUCTIONZNON_PRODUCTIONz1Invalid value for `sddc_type`, must be one of {0}r|   r}   r   )rx   r|   r}   r   ZsddcTypec                 S   rF   rG   r7   r9   r$   r$   r%   r<   0  rH   z9SddcClient.list_supported_host_shapes.<locals>.<dictcomp>r?   r.   ru   c                 S   rF   rG   r7   r9   r$   r$   r%   r<   7  rH   r   rI   NZSupportedHostShapeCollectionr   r   r   )r!   r   r#   rQ   rK   rL   rO   rP   re   Zsddc_type_allowed_valuesr   rN   r   r$   r3   r%   r     s|   7	




z%SddcClient.list_supported_host_shapesc                    sD  dg}d}d}d}d}g d  fddt |D }|r$td	|||d
t|dt|dtd}	dd t |	D }	dd|dtd}
dd t |
D }
| jj|d| j	d}|du rht
j}|rt|t
js|| j|
 || j |j| jj|||	|
d|d|||d
S | jj|||	|
d|d|||d	S )a!
  
        Lists supported SKUs.


        :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.SupportedSkuSummaryCollection`
        :rtype: :class:`~oci.response.Response`

        :example:
        Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/latest/ocvp/list_supported_skus.py.html>`__ to see an example of how to use list_supported_skus API.
        rx   z/supportedSkusrs   list_supported_skusz[https://docs.oracle.com/iaas/api/#/en/vmware/20200501/SupportedSkuSummary/ListSupportedSkus)r   r   r|   r}   r.   host_shape_namec                    r/   r$   r$   r0   r3   r$   r%   r4     r5   z2SddcClient.list_supported_skus.<locals>.<listcomp>z,list_supported_skus got unknown kwargs: {!r}r|   r}   r   )rx   r|   r}   ZhostShapeNamec                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   z2SddcClient.list_supported_skus.<locals>.<dictcomp>r?   r.   ru   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   r   rI   NZSupportedSkuSummaryCollectionr   r   r   r!   r   r#   rQ   rK   rL   rO   rP   re   r   rN   r   r$   r3   r%   r   [  sn   2



zSddcClient.list_supported_skusc                    s:  dg}d}d}d}d}g d  fddt |D }|r$td	|||d
t|dtd}	dd t |	D }	dd|dtd}
dd t |
D }
| jj|d| j	d}|du rct
j}|rt|t
jsw| j|
 || j |j| jj|||	|
d|d|||d
S | jj|||	|
d|d|||d	S )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 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.
        rx   z /supportedVmwareSoftwareVersionsrs   'list_supported_vmware_software_versionszhttps://docs.oracle.com/iaas/api/#/en/vmware/20200501/SupportedVmwareSoftwareVersionSummary/ListSupportedVmwareSoftwareVersions)r   r   r|   r}   r.   c                    r/   r$   r$   r0   r3   r$   r%   r4     r5   zFSddcClient.list_supported_vmware_software_versions.<locals>.<listcomp>z@list_supported_vmware_software_versions got unknown kwargs: {!r}r|   r}   )rx   r|   r}   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   zFSddcClient.list_supported_vmware_software_versions.<locals>.<dictcomp>r?   r.   ru   c                 S   rF   rG   r7   r9   r$   r$   r%   r<   !  rH   r   rI   NZ(SupportedVmwareSoftwareVersionCollectionr   r   r   r   r$   r3   r%   r     sl   0


z2SddcClient.list_supported_vmware_software_versionsc                    r'   )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/20200501/Sddc/RefreshHcxLicenseStatusr+   c                    r/   r$   r$   r0   r3   r$   r%   r4     r5   z9SddcClient.refresh_hcx_license_status.<locals>.<listcomp>z3refresh_hcx_license_status got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<     r=   z9SddcClient.refresh_hcx_license_status.<locals>.<dictcomp>Nr   r>   r?   r,   r-   r.   r@   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   r   rI   r   rJ   rR   rc   r$   r3   r%   r   E  rf   z%SddcClient.refresh_hcx_license_statusc                    sz  dg}d}d}d}d}g d  fddt |D }	|	r$td	|	d|i}
d
d t |
D }
t |
D ]\}}|du sMt|t jrTt| dkrTtd|q7dd|	dt
|	dt
d}dd t |D }| jj|	d| jd}|du rtj}|rt|tjs| j| || j |j| jj|||
||d|	d|||dS | jj|||
||d|	d|||d
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(   rm   ZPUTupdate_sddczEhttps://docs.oracle.com/iaas/api/#/en/vmware/20200501/Sddc/UpdateSddcro   c                    r/   r$   r$   r0   r3   r$   r%   r4     r5   z*SddcClient.update_sddc.<locals>.<listcomp>z$update_sddc got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<     r=   z*SddcClient.update_sddc.<locals>.<dictcomp>Nr   r>   r?   r-   r.   rp   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   r   rI   rv   r   )
rK   rL   rM   rN   ri   rw   r   rO   rP   rQ   rq   )r!   rd   Zupdate_sddc_detailsr#   rQ   rK   rL   rO   rP   re   rM   r:   r;   rN   r   r$   r3   r%   r     sv   0$

zSddcClient.update_sddcc                    r'   )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/20200501/Sddc/UpgradeHcxr+   c                    r/   r$   r$   r0   r3   r$   r%   r4   p  r5   z*SddcClient.upgrade_hcx.<locals>.<listcomp>z$upgrade_hcx got unknown kwargs: {!r}c                 S   r6   r$   r7   r9   r$   r$   r%   r<   y  r=   z*SddcClient.upgrade_hcx.<locals>.<dictcomp>Nr   r>   r?   r,   r-   r.   r@   c                 S   rF   rG   r7   r9   r$   r$   r%   r<     rH   r   rI   r   rJ   rR   rc   r$   r3   r%   r   3  rf   zSddcClient.upgrade_hcxN)__name__
__module____qualname____doc__r&   r*   rg   rl   rn   rr   rt   ry   r   r   r   r   r   r   r$   r$   r$   r%   r      s$    Xvhqe 2 wsvxr   N)
__future__r   Zoci._vendorr   r   ocir   r   Zoci.base_clientr   Z
oci.configr   r	   Z
oci.signerr
   Zoci.utilr   r   r   Zmodelsr   r8   objectr   r$   r$   r$   r%   <module>   s   