a OfA@sddlmZddlmZddlmZddlmZmZddlm Z ddl m Z m Z ddl mZddlmZmZmZd d lmZed ZGd d d eZdS))absolute_import)requests)six)retrycircuit_breaker) BaseClient)get_config_value_or_defaultvalidate_config)Signer)Sentinel#get_signer_from_authentication_typeAUTHENTICATION_TYPE_FIELD_NAME)ocvp_type_mappingMissingc@seZdZdZddZddZddZdd Zd d Zd d Z ddZ ddZ ddZ ddZ ddZddZddZddZdS) 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||ddd|vr$|d}nDt|vr6t|}n2t|d|d|d|dt|d|dd }d |d d d |dd|dtjd}d|vr|d|d<|ddurtj|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 `__. 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 `__ 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 `__. :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 `__. :param function circuit_breaker_callback: (optional) Callback function to receive any exceptions triggerred by the circuit breaker. :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)rtenancyuser fingerprintkey_file pass_phrase key_content)rrrprivate_key_file_locationrprivate_key_contentTservice_endpointz /20200501z.https://ocvps.{region}.oci.{secondLevelDomain}skip_deserializationFcircuit_breaker_strategy)regional_clientr base_pathservice_endpoint_templaterrtimeoutNallow_control_charssddcretry_strategycircuit_breaker_callback)r getr r r rrGLOBAL_CIRCUIT_BREAKER_STRATEGY DEFAULT_CIRCUIT_BREAKER_STRATEGYrr base_clientr$r%)selfconfigkwargsrbase_client_init_kwargsr.x/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/ocvp/sddc_client.py__init__s:0       zSddcClient.__init__c sd}d}d}d}gdfddt|D}|rBtd|d |i}d d t|D}t|D]:\} } | d ust| tjrht| d krhtd| qhdd| dt | dt | dt d} dd t| D} |j j | d|j d} | d urtj} | rdt| tjs@|j | |j | | |j| j|j j|||| | d||dS|j j|||| | d||dSd 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 `__. 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 `__ to see an example of how to use cancel_downgrade_hcx API. z*/sddcs/{sddcId}/actions/cancelDowngradeHcxPOSTcancel_downgrade_hcxzMhttps://docs.oracle.com/iaas/api/#/en/vmware/20200501/Sddc/CancelDowngradeHcxr"r$opc_retry_tokenif_matchopc_request_idcsg|]}|vr|qSr.r..0_keyexpected_kwargsr.r/ z3SddcClient.cancel_downgrade_hcx..z-cancel_downgrade_hcx got unknown kwargs: {!r}sddcIdcSsi|]\}}|tur||qSr.missingr8kvr.r.r/ r=z3SddcClient.cancel_downgrade_hcx..Nr7Parameter {} cannot be None, whitespace or empty stringapplication/jsonr4r5r6accept content-typeopc-retry-tokenif-matchopc-request-idcSs&i|]\}}|tur|dur||qSNr?rAr.r.r/rDr=r$operation_retry_strategyclient_retry_strategyr" resource_pathmethod path_params header_paramsr"operation_nameapi_reference_linkriterkeys ValueErrorformat iteritems isinstance string_typeslenstripr&r@r)get_preferred_retry_strategyr$rDEFAULT_RETRY_STRATEGYNoneRetryStrategyadd_opc_retry_token_if_neededadd_opc_client_retries_headeradd_circuit_breaker_callbackr%make_retrying_callcall_api r*sddc_idr,rRrSrVrW extra_kwargsrTrBrCrUr$r.r:r/r2lsj.$        zSddcClient.cancel_downgrade_hcxc sd}d}d}d}gdfddt|D}|rBtd|d |i} d d t| D} t| D]:\} } | d ust| tjrht| d krhtd| qhdd| dt | dt | dt d} dd t| D} |j j | d|j d} | d urtj} | rft| tjs@|j | |j | | |j| j|j j||| | || d||d S|j j||| | || d||dSd 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 `__. 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 `__ to see an example of how to use change_sddc_compartment API. z)/sddcs/{sddcId}/actions/changeCompartmentr1change_sddc_compartmentzPhttps://docs.oracle.com/iaas/api/#/en/vmware/20200501/Sddc/ChangeSddcCompartment)r"r$r5r6r4csg|]}|vr|qSr.r.r7r:r.r/r< r=z6SddcClient.change_sddc_compartment..z0change_sddc_compartment got unknown kwargs: {!r}r>cSsi|]\}}|tur||qSr.r?rAr.r.r/rD)r=z6SddcClient.change_sddc_compartment..NrrErFr5r6r4)rHrIrKrLrJcSs&i|]\}}|tur|dur||qSrMr?rAr.r.r/rD6r=r$rNr"rRrSrTrUbodyr"rVrWrX)r*rjchange_sddc_compartment_detailsr,rRrSrVrWrkrTrBrCrUr$r.r:r/rlsn5$        z"SddcClient.change_sddc_compartmentc sd}d}d}d}gdfddt|D}|rBtd|d d |d t|d td }d dt|D}|jj|d|j d} | durt j } | rt | t j s|j||j|| |j| j|jj|||||d||dS|jj|||||d||dSdS)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 `__. 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 `__ to see an example of how to use create_sddc API. /sddcsr1 create_sddczEhttps://docs.oracle.com/iaas/api/#/en/vmware/20200501/Sddc/CreateSddc)r"r$r4r6csg|]}|vr|qSr.r.r7r:r.r/r<r=z*SddcClient.create_sddc..z$create_sddc got unknown kwargs: {!r}rFr4r6)rHrIrJrLcSs&i|]\}}|tur|dur||qSrMr?rAr.r.r/rDr=z*SddcClient.create_sddc..r$rNNr")rRrSrUrnr"rVrW)rrYrZr[r&r@r\r)rar$rrbr]rcrdrerfr%rgrh) r*create_sddc_detailsr,rRrSrVrWrkrUr$r.r:r/rqYs\,       zSddcClient.create_sddcc spd}d}d}d}gdfddt|D}|rBtd|d |i}d d t|D}t|D]:\} } | d ust| tjrht| d krhtd| qhdd| dt | dt d} dd t| D} |j j | d|j d} | d urtj} | rLt| tjs(|j | | |j| j|j j|||| | d||dS|j j|||| | d||dSd 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 `__. 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 `__ to see an example of how to use delete_sddc API. /sddcs/{sddcId}DELETE delete_sddczEhttps://docs.oracle.com/iaas/api/#/en/vmware/20200501/Sddc/DeleteSddcr"r$r5r6csg|]}|vr|qSr.r.r7r:r.r/r<r=z*SddcClient.delete_sddc..z$delete_sddc got unknown kwargs: {!r}r>cSsi|]\}}|tur||qSr.r?rAr.r.r/rDr=z*SddcClient.delete_sddc..NrrErFr5r6rHrIrKrLcSs&i|]\}}|tur|dur||qSrMr?rAr.r.r/rD r=r$rNr"rQrrYrZr[r\r]r^r_r`r&r@r)rar$rrbrcrerfr%rgrhrir.r:r/rusf,$     zSddcClient.delete_sddcc sd}d}d}d}gdfddt|D}|rBtd|d |i} d d t| D} t| D]:\} } | d ust| tjrht| d krhtd| qhdd| dt | dt | dt d} dd t| D} |j j | d|j d} | d urtj} | rft| tjs@|j | |j | | |j| j|j j||| | || d||d S|j j||| | || d||dSd S)aI Downgrade the specified SDDC from HCX Enterprise to HCX Advanced. 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 `__. 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 `__ to see an example of how to use downgrade_hcx API. z$/sddcs/{sddcId}/actions/downgradeHcxr1 downgrade_hcxzGhttps://docs.oracle.com/iaas/api/#/en/vmware/20200501/Sddc/DowngradeHcxr3csg|]}|vr|qSr.r.r7r:r.r/r<kr=z,SddcClient.downgrade_hcx..z&downgrade_hcx got unknown kwargs: {!r}r>cSsi|]\}}|tur||qSr.r?rAr.r.r/rDtr=z,SddcClient.downgrade_hcx..NrrErFr4r5r6rGcSs&i|]\}}|tur|dur||qSrMr?rAr.r.r/rDr=r$rNr"rmrX)r*downgrade_hcx_detailsrjr,rRrSrVrWrkrTrBrCrUr$r.r:r/ry*sn4$        zSddcClient.downgrade_hcxc sjd}d}d}d}gdfddt|D}|rBtd|d |i}d d t|D}t|D]:\} } | d ust| tjrht| d krhtd| qhdd| dt d} dd t| D} |j j | d|j d} | d urtj} | rDt| tjs|j | | |j| j|j j|||| d| d||d S|j j|||| d| d||dSd 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 `__. 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 `__ to see an example of how to use get_sddc API. rsGETget_sddczBhttps://docs.oracle.com/iaas/api/#/en/vmware/20200501/Sddc/GetSddc)r"r$r6csg|]}|vr|qSr.r.r7r:r.r/r<r=z'SddcClient.get_sddc..z!get_sddc got unknown kwargs: {!r}r>cSsi|]\}}|tur||qSr.r?rAr.r.r/rDr=z'SddcClient.get_sddc..NrrErFr6rHrIrLcSs&i|]\}}|tur|dur||qSrMr?rAr.r.r/rDr=r$rNSddcr")rRrSrTrU response_typer"rVrWrxrir.r:r/r|sh $    zSddcClient.get_sddcc sd}d}d}d}gdfddt|D}|rBtd|d |vrld d g}|d |vrltd |d |vrddg} |d | vrtd| d|vrgd} |d| vrtd| ||dt|dt|dt|dt|d t|d t|dtd} ddt| D} dd|dtd} ddt| D} |jj|d|j d } | d!urrt j } | rt | 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 `__. 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 `__ to see an example of how to use list_sddcs API. rpr{ list_sddcszKhttps://docs.oracle.com/iaas/api/#/en/vmware/20200501/SddcSummary/ListSddcs) r"r$compute_availability_domain display_namelimitpage sort_ordersort_byr6lifecycle_statecsg|]}|vr|qSr.r.r7r:r.r/r<er=z)SddcClient.list_sddcs..z#list_sddcs got unknown kwargs: {!r}rASCDESCz2Invalid value for `sort_order`, must be one of {0}r timeCreated displayNamez/Invalid value for `sort_by`, must be one of {0}r)CREATINGUPDATINGACTIVEDELETINGDELETEDFAILEDz7Invalid value for `lifecycle_state`, must be one of {0}rrrr) compartmentIdcomputeAvailabilityDomainrrr sortOrdersortBylifecycleStatecSs&i|]\}}|tur|dur||qSrMr?rAr.r.r/rDr=z)SddcClient.list_sddcs..rFr6r}cSs&i|]\}}|tur|dur||qSrMr?rAr.r.r/rDr=r$rNNSddcCollectionr"rRrS query_paramsrUrr"rVrWrrYrZr[r&r@r\r)rar$rrbr]rcrerfr%rgrh)r*compartment_idr,rRrSrVrWrksort_order_allowed_valuessort_by_allowed_valueslifecycle_state_allowed_valuesrrUr$r.r:r/rsN                 zSddcClient.list_sddcsc svd}d}d}d}gdfddt|D}|rBtd|d |vrld d g}|d |vrltd |||d t|dt|dt|d td} ddt| D} dd|dtd} ddt| D} |jj|d|j d} | durt j } | rPt | t j s*|j| | |j| j|jj||| | d|d||d S|jj||| | d|d||dSdS)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 `__. 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 `__ to see an example of how to use list_supported_host_shapes API. z/supportedHostShapesr{list_supported_host_shapeszghttps://docs.oracle.com/iaas/api/#/en/vmware/20200501/SupportedHostShapeSummary/ListSupportedHostShapes)r"r$rrr6name sddc_typecsg|]}|vr|qSr.r.r7r:r.r/r<r=z9SddcClient.list_supported_host_shapes..z3list_supported_host_shapes got unknown kwargs: {!r}r PRODUCTIONNON_PRODUCTIONz1Invalid value for `sddc_type`, must be one of {0}rrr)rrrrsddcTypecSs&i|]\}}|tur|dur||qSrMr?rAr.r.r/rD r=z9SddcClient.list_supported_host_shapes..rFr6r}cSs&i|]\}}|tur|dur||qSrMr?rAr.r.r/rDr=r$rNNSupportedHostShapeCollectionr"rr) r*rr,rRrSrVrWrksddc_type_allowed_valuesrrUr$r.r:r/rsv6          z%SddcClient.list_supported_host_shapesc s6d}d}d}d}gdfddt|D}|rBtd|||d t|d td }d d t|D}dd|dtd} dd t| D} |jj|d|j d} | durt j } | rt | t j s|j| | |j| j|jj|||| d|d||d S|jj|||| d|d||dSdS)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 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 `__. 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 `__ to see an example of how to use list_supported_skus API. z/supportedSkusr{list_supported_skusz[https://docs.oracle.com/iaas/api/#/en/vmware/20200501/SupportedSkuSummary/ListSupportedSkusr"r$rrr6csg|]}|vr|qSr.r.r7r:r.r/r<nr=z2SddcClient.list_supported_skus..z,list_supported_skus got unknown kwargs: {!r}rrrrrcSs&i|]\}}|tur|dur||qSrMr?rAr.r.r/rDxr=z2SddcClient.list_supported_skus..rFr6r}cSs&i|]\}}|tur|dur||qSrMr?rAr.r.r/rDr=r$rNNSupportedSkuSummaryCollectionr"rr r*rr,rRrSrVrWrkrrUr$r.r:r/r3sf.       zSddcClient.list_supported_skusc s6d}d}d}d}gdfddt|D}|rBtd|||d t|d td }d d t|D}dd|dtd} dd t| D} |jj|d|j d} | durt j } | rt | t j s|j| | |j| j|jj|||| d|d||d S|jj|||| d|d||dSdS)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 `__. 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 `__ to see an example of how to use list_supported_vmware_software_versions API. z /supportedVmwareSoftwareVersionsr{'list_supported_vmware_software_versionszhttps://docs.oracle.com/iaas/api/#/en/vmware/20200501/SupportedVmwareSoftwareVersionSummary/ListSupportedVmwareSoftwareVersionsrcsg|]}|vr|qSr.r.r7r:r.r/r<r=zFSddcClient.list_supported_vmware_software_versions..z@list_supported_vmware_software_versions got unknown kwargs: {!r}rrrcSs&i|]\}}|tur|dur||qSrMr?rAr.r.r/rDr=zFSddcClient.list_supported_vmware_software_versions..rFr6r}cSs&i|]\}}|tur|dur||qSrMr?rAr.r.r/rDr=r$rNN(SupportedVmwareSoftwareVersionCollectionr"rrrr.r:r/rsf/       z2SddcClient.list_supported_vmware_software_versionsc sd}d}d}d}gdfddt|D}|rBtd|d |i}d d t|D}t|D]:\} } | d ust| tjrht| d krhtd| qhdd| dt | dt | dt d} dd t| D} |j j | d|j d} | d urtj} | rdt| tjs@|j | |j | | |j| j|j j|||| | d||dS|j j|||| | d||dSd 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 `__. 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 `__ to see an example of how to use refresh_hcx_license_status API. z*/sddcs/{sddcId}/actions/refreshHcxLicensesr1refresh_hcx_license_statuszRhttps://docs.oracle.com/iaas/api/#/en/vmware/20200501/Sddc/RefreshHcxLicenseStatusr3csg|]}|vr|qSr.r.r7r:r.r/r<Kr=z9SddcClient.refresh_hcx_license_status..z3refresh_hcx_license_status got unknown kwargs: {!r}r>cSsi|]\}}|tur||qSr.r?rAr.r.r/rDTr=z9SddcClient.refresh_hcx_license_status..NrrErFr4r5r6rGcSs&i|]\}}|tur|dur||qSrMr?rAr.r.r/rDar=r$rNr"rQrXrir.r:r/rsj.$        z%SddcClient.refresh_hcx_license_statusc sxd}d}d}d}gdfddt|D}|rBtd|d |i} d d t| D} t| D]:\} } | d ust| tjrht| d krhtd| qhdd| dt | dt d} dd t| D} |j j | d|j d} | d urtj} | rPt| tjs(|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 `__. 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 `__ to see an example of how to use update_sddc API. rsPUT update_sddczEhttps://docs.oracle.com/iaas/api/#/en/vmware/20200501/Sddc/UpdateSddcrvcsg|]}|vr|qSr.r.r7r:r.r/r<r=z*SddcClient.update_sddc..z$update_sddc got unknown kwargs: {!r}r>cSsi|]\}}|tur||qSr.r?rAr.r.r/rDr=z*SddcClient.update_sddc..NrrErFr5r6rwcSs&i|]\}}|tur|dur||qSrMr?rAr.r.r/rDr=r$rNr~r") rRrSrTrUrnrr"rVrWrx)r*rjupdate_sddc_detailsr,rRrSrVrWrkrTrBrCrUr$r.r:r/rsn/$     zSddcClient.update_sddcc sd}d}d}d}gdfddt|D}|rBtd|d |i}d d t|D}t|D]:\} } | d ust| tjrht| d krhtd| qhdd| dt | dt | dt d} dd t| D} |j j | d|j d} | d urtj} | rdt| tjs@|j | |j | | |j| j|j j|||| | d||dS|j j|||| | d||dSd 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 `__. 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 `__ to see an example of how to use upgrade_hcx API. z"/sddcs/{sddcId}/actions/upgradeHcxr1 upgrade_hcxzEhttps://docs.oracle.com/iaas/api/#/en/vmware/20200501/Sddc/UpgradeHcxr3csg|]}|vr|qSr.r.r7r:r.r/r<1r=z*SddcClient.upgrade_hcx..z$upgrade_hcx got unknown kwargs: {!r}r>cSsi|]\}}|tur||qSr.r?rAr.r.r/rD:r=z*SddcClient.upgrade_hcx..NrrErFr4r5r6rGcSs&i|]\}}|tur|dur||qSrMr?rAr.r.r/rDGr=r$rNr"rQrXrir.r:r/rsj.$        zSddcClient.upgrade_hcxN)__name__ __module__ __qualname____doc__r0r2rlrqruryr|rrrrrrrr.r.r.r/rs"Sr{dmza.nortrN) __future__r oci._vendorrrocirroci.base_clientr oci.configrr oci.signerr oci.utilr r r modelsrr@objectrr.r.r.r/s