a fN@sddlmZddlmZddlmZddlmZmZddlm Z ddl m Z m Z ddl mZddlmZmZmZdd lmZdd lmZd d lmZed ZGdddeZdS))absolute_import)requests)six)retrycircuit_breaker) BaseClient)get_config_value_or_defaultvalidate_config)Signer)Sentinel#get_signer_from_authentication_typeAUTHENTICATION_TYPE_FIELD_NAME)InvalidAlloyConfig)OCI_SDK_ENABLED_SERVICES_SET)usage_api_type_mappingZMissingc@s eZdZdZddZddZddZdd Zd d Zd d Z ddZ ddZ ddZ ddZ ddZddZddZddZddZd d!Zd"d#Zd$d%Zd&d'Zd(d)Zd*d+Zd,d-Zd.d/Zd0d1Zd2d3Zd4d5Zd6d7Zd8d9Zd:d;Z dd?Z"d@dAZ#dBdCZ$dDdEZ%dFS)GUsageapiClienta Use the Usage API to view your Oracle Cloud usage and costs. The API allows you to request data that meets the specified filter criteria, and to group that data by the chosen dimension. The Usage API is used by the Cost Analysis and Carbon Emissions Analysis tools in the Console. See [Cost Analysis Overview](/Content/Billing/Concepts/costanalysisoverview.htm) and [Using the Usage API](/Content/Billing/Concepts/costanalysisoverview.htm#cost_analysis_using_the_api) for more information. c Ks&tdstdt||ddd|vr6|d}nDt|vrHt|}n2t|d|d|d|dt|d |d d }d |d ddi|dd|dt j |dd}d|vr|d|d<|ddurt j |d<d|vr|d|d<t d||t fi||_|d|_|d|_dS)a Creates a new service client :param dict config: Configuration keys and values as per `SDK and Tool Configuration `__. 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 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. Z usage_apiaThe Alloy configuration has disabled this service, this behavior is controlled by OCI_SDK_ENABLED_SERVICES_SET variable. Please check if your local alloy-config file configured the service you're targeting or contact the cloud provider on the availability of this servicesigner)rtenancyuser fingerprintZkey_file pass_phraseZ key_content)rrrZprivate_key_file_locationrZprivate_key_contentTservice_endpointz /20200107z1https://usageapi.{region}.oci.{secondLevelDomain}skip_deserializationFcircuit_breaker_strategy5client_level_realm_specific_endpoint_template_enabled)Zregional_clientr base_pathZservice_endpoint_templateZ#service_endpoint_template_per_realmrrrtimeoutNallow_control_charsZusageapiretry_strategycircuit_breaker_callback)rZis_service_enabledrr getr r r rrZGLOBAL_CIRCUIT_BREAKER_STRATEGYZ DEFAULT_CIRCUIT_BREAKER_STRATEGYrr base_clientrr )selfZconfigkwargsrZbase_client_init_kwargsr%A/usr/lib/python3.9/site-packages/oci/usage_api/usageapi_client.py__init__sB3         zUsageapiClient.__init__c sg}d}d}d}d}gdfddt|D}|rFtd|d d |d t|d td } d dt| D} |jj|d|jd} | rt | t j s|j | |j | | |j| j|jj||| |d|d|||d S|jj||| |d|d|||d SdS)a Returns the created custom table. :param oci.usage_api.models.CreateCustomTableDetails create_custom_table_details: (required) New custom table details. :param str opc_request_id: (optional) Unique Oracle-assigned 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 might 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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. 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.usage_api.models.CustomTable` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use create_custom_table API. /customTablesPOSTcreate_custom_tablezRhttps://docs.oracle.com/iaas/api/#/en/usage/20200107/CustomTable/CreateCustomTablerropc_request_idopc_retry_tokencsg|]}|vr|qSr%r%.0Z_keyZexpected_kwargsr%r& z6UsageapiClient.create_custom_table..z(create_custom_table got unknown kwargs: application/jsonr,r-accept content-typeopc-request-idzopc-retry-tokencSs&i|]\}}|tur|dur||qSNmissingr/kvr%r%r& r2z6UsageapiClient.create_custom_table..rZoperation_retry_strategyZclient_retry_strategy CustomTabler resource_pathmethod header_paramsbody response_typeroperation_nameapi_reference_linkrequired_argumentsNriterkeys ValueErrorr!r: iteritemsr"get_preferred_retry_strategyr isinstancerNoneRetryStrategyadd_opc_retry_token_if_neededadd_opc_client_retries_headeradd_circuit_breaker_callbackr make_retrying_callcall_api) r#Zcreate_custom_table_detailsr$rIrBrCrGrH extra_kwargsrDrr%r0r&r*wsb&       z"UsageapiClient.create_custom_tablec sdg}d}d}d}d}gdfddt|D} | rHtd | d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt d} dd t| D} |j j |d|j d}|rXt|t js.|j | |j | ||j|j|j j||| | |d|d|||d S|j j||| | |d|d|||d Sd S)a Add a list of email recipients that can receive usage statements for the subscription. :param oci.usage_api.models.CreateEmailRecipientsGroupDetails create_email_recipients_group_details: (required) New email recipients group details. :param str subscription_id: (required) The UsageStatement Subscription unique OCID. :param str opc_request_id: (optional) Unique Oracle-assigned 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 might 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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. 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.usage_api.models.EmailRecipientsGroup` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use create_email_recipients_group API. subscriptionId7/usageStatements/{subscriptionId}/emailRecipientsGroupsr)create_email_recipients_groupzdhttps://docs.oracle.com/iaas/api/#/en/usage/20200107/EmailRecipientsGroup/CreateEmailRecipientsGroupr+csg|]}|vr|qSr%r%r.r0r%r&r1r2z@UsageapiClient.create_email_recipients_group..z2create_email_recipients_group got unknown kwargs: cSsi|]\}}|tur||qSr%r9r;r%r%r&r>r2z@UsageapiClient.create_email_recipients_group..Nr Parameter + cannot be None, whitespace or empty stringr3r,r-r4cSs&i|]\}}|tur|dur||qSr8r9r;r%r%r&r>#r2rr?EmailRecipientsGroupr rBrC path_paramsrDrErFrrGrHrIrrKrLrMrO string_typeslenstripr!r:r"rNrrrPrQrRrSr rTrU)r#Z%create_email_recipients_group_detailssubscription_idr$rIrBrCrGrHrVr^r<r=rDrr%r0r&rYsr)$      z,UsageapiClient.create_email_recipients_groupc sg}d}d}d}d}gdfddt|D}|rFtd|d d |d t|d td } d dt| D} |jj|d|jd} | rt | t j s|j | |j | | |j| j|jj||| |d|d|||d S|jj||| |d|d|||d SdS)a Returns the created query. :param oci.usage_api.models.CreateQueryDetails create_query_details: (required) New query details. Up to ten saved queries. :param str opc_request_id: (optional) Unique Oracle-assigned 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 might 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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. 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.usage_api.models.Query` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use create_query API. /queriesr) create_queryzFhttps://docs.oracle.com/iaas/api/#/en/usage/20200107/Query/CreateQueryr+csg|]}|vr|qSr%r%r.r0r%r&r1{r2z/UsageapiClient.create_query..z!create_query got unknown kwargs: r3r,r-r4cSs&i|]\}}|tur|dur||qSr8r9r;r%r%r&r>r2z/UsageapiClient.create_query..rr?QueryrrANrJ) r#Zcreate_query_detailsr$rIrBrCrGrHrVrDrr%r0r&reHsb&       zUsageapiClient.create_queryc sg}d}d}d}d}gdfddt|D}|rFtd|d d |d t|d td } d dt| D} |jj|d|jd} | rt | t j s|j | |j | | |j| j|jj||| |d|d|||d S|jj||| |d|d|||d SdS)a Returns the created schedule. :param oci.usage_api.models.CreateScheduleDetails create_schedule_details: (required) New schedule details. :param str opc_request_id: (optional) Unique Oracle-assigned 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 might 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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. 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.usage_api.models.Schedule` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use create_schedule API. /schedulesr)create_schedulezLhttps://docs.oracle.com/iaas/api/#/en/usage/20200107/Schedule/CreateScheduler+csg|]}|vr|qSr%r%r.r0r%r&r1r2z2UsageapiClient.create_schedule..z$create_schedule got unknown kwargs: r3r,r-r4cSs&i|]\}}|tur|dur||qSr8r9r;r%r%r&r>r2z2UsageapiClient.create_schedule..rr?SchedulerrANrJ) r#Zcreate_schedule_detailsr$rIrBrCrGrHrVrDrr%r0r&rhsb&       zUsageapiClient.create_schedulec sg}d}d}d}d}gdfddt|D}|rFtd|d d |d t|d td } d dt| D} |jj|d|jd} | rt | t j s|j | |j | | |j| j|jj||| |d|d|||d S|jj||| |d|d|||d SdS)aj Returns the created usage carbon emissions query. :param oci.usage_api.models.CreateUsageCarbonEmissionsQueryDetails create_usage_carbon_emissions_query_details: (required) New query details. Up to ten saved queries. :param str opc_request_id: (optional) Unique Oracle-assigned 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 might 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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. 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.usage_api.models.UsageCarbonEmissionsQuery` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use create_usage_carbon_emissions_query API. /usageCarbonEmissionsQueriesr)#create_usage_carbon_emissions_queryznhttps://docs.oracle.com/iaas/api/#/en/usage/20200107/UsageCarbonEmissionsQuery/CreateUsageCarbonEmissionsQueryr+csg|]}|vr|qSr%r%r.r0r%r&r1=r2zFUsageapiClient.create_usage_carbon_emissions_query..z8create_usage_carbon_emissions_query got unknown kwargs: r3r,r-r4cSs&i|]\}}|tur|dur||qSr8r9r;r%r%r&r>Hr2zFUsageapiClient.create_usage_carbon_emissions_query..rr?UsageCarbonEmissionsQueryrrANrJ) r#Z+create_usage_carbon_emissions_query_detailsr$rIrBrCrGrHrVrDrr%r0r&rk sb&       z2UsageapiClient.create_usage_carbon_emissions_queryc sndg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt d} dd t| D} |j j |d|j d} | rHt| t js"|j | | |j| j|j j||| | |d|||d S|j j||| | |d|||dSd S)aJ Delete a saved custom table by the OCID. :param str custom_table_id: (required) The custom table unique OCID. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :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 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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. 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_custom_table API. customTableId/customTables/{customTableId}DELETEdelete_custom_tablezRhttps://docs.oracle.com/iaas/api/#/en/usage/20200107/CustomTable/DeleteCustomTablerrr,if_matchcsg|]}|vr|qSr%r%r.r0r%r&r1r2z6UsageapiClient.delete_custom_table..z(delete_custom_table got unknown kwargs: cSsi|]\}}|tur||qSr%r9r;r%r%r&r>r2z6UsageapiClient.delete_custom_table..NrrZr[r3r,rrr5r6r7zif-matchcSs&i|]\}}|tur|dur||qSr8r9r;r%r%r&r>r2rr?rrBrCr^rDrrGrHrIrrKrLrMrOr`rarbr!r:r"rNrrrPrRrSr rTrUr#custom_table_idr$rIrBrCrGrHrVr^r<r=rDrr%r0r&rpksh&$     z"UsageapiClient.delete_custom_tablec sgd}d}d}d}d} gdfddt|D} | rJtd | ||d } d d t| D} t| D]<\} } | d ust| tjrrt| dkrrtd| dqrd|i}dd t|D}dd|dt |dt d}dd t|D}|j j |d|j d}|rjt|t jsB|j |||j|j|j j||| |||d|| |d S|j j||| |||d|| |d Sd S)a\ Delete the email recipients group for the usage statement subscription. :param str email_recipients_group_id: (required) The email recipient group OCID. :param str subscription_id: (required) The UsageStatement Subscription unique OCID. :param str compartment_id: (required) The compartment ID in which to list resources. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :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 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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. 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_email_recipients_group API. emailRecipientsGroupIdrW compartmentIdP/usageStatements/{subscriptionId}/emailRecipientsGroups/{emailRecipientsGroupId}rodelete_email_recipients_groupzdhttps://docs.oracle.com/iaas/api/#/en/usage/20200107/EmailRecipientsGroup/DeleteEmailRecipientsGrouprqcsg|]}|vr|qSr%r%r.r0r%r&r1 r2z@UsageapiClient.delete_email_recipients_group..z2delete_email_recipients_group got unknown kwargs: ryrWcSsi|]\}}|tur||qSr%r9r;r%r%r&r>r2z@UsageapiClient.delete_email_recipients_group..NrrZr[rzcSs&i|]\}}|tur|dur||qSr8r9r;r%r%r&r>r2r3r,rrrscSs&i|]\}}|tur|dur||qSr8r9r;r%r%r&r>'r2rr?r) rBrCr^ query_paramsrDrrGrHrIrur#email_recipients_group_idrccompartment_idr$rIrBrCrGrHrVr^r<r=r~rDrr%r0r&r|st,$     z,UsageapiClient.delete_email_recipients_groupc sndg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt d} dd t| D} |j j |d|j d} | rHt| t js"|j | | |j| j|j j||| | |d|||d S|j j||| | |d|||dSd S)a' Delete a saved query by the OCID. :param str query_id: (required) The query unique OCID. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :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 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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. 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_query API. queryId/queries/{queryId}ro delete_queryzFhttps://docs.oracle.com/iaas/api/#/en/usage/20200107/Query/DeleteQueryrqcsg|]}|vr|qSr%r%r.r0r%r&r1|r2z/UsageapiClient.delete_query..z!delete_query got unknown kwargs: cSsi|]\}}|tur||qSr%r9r;r%r%r&r>r2z/UsageapiClient.delete_query..NrrZr[r3r,rrrscSs&i|]\}}|tur|dur||qSr8r9r;r%r%r&r>r2rr?rrtrur#query_idr$rIrBrCrGrHrVr^r<r=rDrr%r0r&rIsh&$     zUsageapiClient.delete_queryc sndg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt d} dd t| D} |j j |d|j d} | rHt| t js"|j | | |j| j|j j||| | |d|||d S|j j||| | |d|||dSd S)a> Delete a saved scheduled report by the OCID. :param str schedule_id: (required) The schedule unique OCID. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :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 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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. 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_schedule API. scheduleId/schedules/{scheduleId}rodelete_schedulezLhttps://docs.oracle.com/iaas/api/#/en/usage/20200107/Schedule/DeleteSchedulerqcsg|]}|vr|qSr%r%r.r0r%r&r1r2z2UsageapiClient.delete_schedule..z$delete_schedule got unknown kwargs: cSsi|]\}}|tur||qSr%r9r;r%r%r&r>r2z2UsageapiClient.delete_schedule..NrrZr[r3r,rrrscSs&i|]\}}|tur|dur||qSr8r9r;r%r%r&r>r2rr?rrtrur# schedule_idr$rIrBrCrGrHrVr^r<r=rDrr%r0r&rsh&$     zUsageapiClient.delete_schedulec sndg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt d} dd t| D} |j j |d|j d} | rHt| t js"|j | | |j| j|j j||| | |d|||d S|j j||| | |d|||dSd S)a Delete a usage carbon emissions saved query by the OCID. :param str usage_carbon_emissions_query_id: (required) The query unique OCID. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :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 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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. 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_usage_carbon_emissions_query API. usageCarbonEmissionsQueryId:/usageCarbonEmissionsQueries/{usageCarbonEmissionsQueryId}ro#delete_usage_carbon_emissions_queryznhttps://docs.oracle.com/iaas/api/#/en/usage/20200107/UsageCarbonEmissionsQuery/DeleteUsageCarbonEmissionsQueryrqcsg|]}|vr|qSr%r%r.r0r%r&r1Lr2zFUsageapiClient.delete_usage_carbon_emissions_query..z8delete_usage_carbon_emissions_query got unknown kwargs: cSsi|]\}}|tur||qSr%r9r;r%r%r&r>Ur2zFUsageapiClient.delete_usage_carbon_emissions_query..NrrZr[r3r,rrrscSs&i|]\}}|tur|dur||qSr8r9r;r%r%r&r>ar2rr?rrtrur#usage_carbon_emissions_query_idr$rIrBrCrGrHrVr^r<r=rDrr%r0r&rsh&$     z2UsageapiClient.delete_usage_carbon_emissions_queryc shdg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt d} dd t| D} |j j |d|j d} | r@t| t js|j | | |j| j|j j||| | d|d|||d S|j j||| | d|d|||d Sd S)a Returns the saved custom table. :param str custom_table_id: (required) The custom table unique OCID. :param str opc_request_id: (optional) Unique Oracle-assigned 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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. 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.usage_api.models.CustomTable` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use get_custom_table API. rmrnGETget_custom_tablezOhttps://docs.oracle.com/iaas/api/#/en/usage/20200107/CustomTable/GetCustomTablerrr,csg|]}|vr|qSr%r%r.r0r%r&r1r2z3UsageapiClient.get_custom_table..z%get_custom_table got unknown kwargs: cSsi|]\}}|tur||qSr%r9r;r%r%r&r>r2z3UsageapiClient.get_custom_table..NrrZr[r3r,r5r6r7cSs&i|]\}}|tur|dur||qSr8r9r;r%r%r&r>r2rr?r@r rBrCr^rDrFrrGrHrIrurvr%r0r&rsj$    zUsageapiClient.get_custom_tablec sgd}d}d}d}d} gdfddt|D} | rJtd | ||d } d d t| D} t| D]<\} } | d ust| tjrrt| dkrrtd| dqrd|i}dd t|D}dd|dt d}dd t|D}|j j |d|j d}|rbt|t js8|j |||j|j|j j||| ||d|d|| |d S|j j||| ||d|d|| |d Sd S)a Return the saved usage statement email recipient group. :param str email_recipients_group_id: (required) The email recipient group OCID. :param str subscription_id: (required) The UsageStatement Subscription unique OCID. :param str compartment_id: (required) The compartment ID in which to list resources. :param str opc_request_id: (optional) Unique Oracle-assigned 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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. 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.usage_api.models.EmailRecipientsGroup` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use get_email_recipients_group API. rxr{rget_email_recipients_groupzahttps://docs.oracle.com/iaas/api/#/en/usage/20200107/EmailRecipientsGroup/GetEmailRecipientsGrouprcsg|]}|vr|qSr%r%r.r0r%r&r1r2z=UsageapiClient.get_email_recipients_group..z/get_email_recipients_group got unknown kwargs: r}cSsi|]\}}|tur||qSr%r9r;r%r%r&r>r2z=UsageapiClient.get_email_recipients_group..NrrZr[rzcSs&i|]\}}|tur|dur||qSr8r9r;r%r%r&r>&r2r3r,rcSs&i|]\}}|tur|dur||qSr8r9r;r%r%r&r>-r2rr?r\r rBrCr^r~rDrFrrGrHrIrurr%r0r&rsv%$    z)UsageapiClient.get_email_recipients_groupc shdg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt d} dd t| D} |j j |d|j d} | r@t| t js|j | | |j| j|j j||| | d|d|||d S|j j||| | d|d|||d Sd S)a Returns the saved query. :param str query_id: (required) The query unique OCID. :param str opc_request_id: (optional) Unique Oracle-assigned 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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. 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.usage_api.models.Query` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use get_query API. rrr get_queryzChttps://docs.oracle.com/iaas/api/#/en/usage/20200107/Query/GetQueryrcsg|]}|vr|qSr%r%r.r0r%r&r1|r2z,UsageapiClient.get_query..zget_query got unknown kwargs: cSsi|]\}}|tur||qSr%r9r;r%r%r&r>r2z,UsageapiClient.get_query..NrrZr[r3r,rcSs&i|]\}}|tur|dur||qSr8r9r;r%r%r&r>r2rr?rfrrrurr%r0r&rQsj$    zUsageapiClient.get_queryc shdg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt d} dd t| D} |j j |d|j d} | r@t| t js|j | | |j| j|j j||| | d|d|||d S|j j||| | d|d|||d Sd S)a Returns the saved schedule. :param str schedule_id: (required) The schedule unique OCID. :param str opc_request_id: (optional) Unique Oracle-assigned 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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. 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.usage_api.models.Schedule` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use get_schedule API. rrr get_schedulezIhttps://docs.oracle.com/iaas/api/#/en/usage/20200107/Schedule/GetSchedulercsg|]}|vr|qSr%r%r.r0r%r&r1r2z/UsageapiClient.get_schedule..z!get_schedule got unknown kwargs: cSsi|]\}}|tur||qSr%r9r;r%r%r&r>r2z/UsageapiClient.get_schedule..NrrZr[r3r,rcSs&i|]\}}|tur|dur||qSr8r9r;r%r%r&r>r2rr?rirrrurr%r0r&rsj$    zUsageapiClient.get_schedulec shdg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt d} dd t| D} |j j |d|j d} | r@t| t js|j | | |j| j|j j||| | d|d|||d S|j j||| | d|d|||d Sd S)a Returns the saved schedule run. :param str scheduled_run_id: (required) The scheduledRun unique OCID :param str opc_request_id: (optional) Unique Oracle-assigned 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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. 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.usage_api.models.ScheduledRun` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use get_scheduled_run API. ZscheduledRunIdz/scheduledRuns/{scheduledRunId}rget_scheduled_runzQhttps://docs.oracle.com/iaas/api/#/en/usage/20200107/ScheduledRun/GetScheduledRunrcsg|]}|vr|qSr%r%r.r0r%r&r1>r2z4UsageapiClient.get_scheduled_run..z&get_scheduled_run got unknown kwargs: cSsi|]\}}|tur||qSr%r9r;r%r%r&r>Gr2z4UsageapiClient.get_scheduled_run..NrrZr[r3r,rcSs&i|]\}}|tur|dur||qSr8r9r;r%r%r&r>Rr2rr?Z ScheduledRunrrru)r#Zscheduled_run_idr$rIrBrCrGrHrVr^r<r=rDrr%r0r&rsj$    z UsageapiClient.get_scheduled_runc shdg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt d} dd t| D} |j j |d|j d} | r@t| t js|j | | |j| j|j j||| | d|d|||d S|j j||| | d|d|||d Sd S)a Returns the usage carbon emissions saved query. :param str usage_carbon_emissions_query_id: (required) The query unique OCID. :param str opc_request_id: (optional) Unique Oracle-assigned 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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. 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.usage_api.models.UsageCarbonEmissionsQuery` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use get_usage_carbon_emissions_query API. rrr get_usage_carbon_emissions_queryzkhttps://docs.oracle.com/iaas/api/#/en/usage/20200107/UsageCarbonEmissionsQuery/GetUsageCarbonEmissionsQueryrcsg|]}|vr|qSr%r%r.r0r%r&r1r2zCUsageapiClient.get_usage_carbon_emissions_query..z5get_usage_carbon_emissions_query got unknown kwargs: cSsi|]\}}|tur||qSr%r9r;r%r%r&r>r2zCUsageapiClient.get_usage_carbon_emissions_query..NrrZr[r3r,rcSs&i|]\}}|tur|dur||qSr8r9r;r%r%r&r>r2rr?rlrrrurr%r0r&rtsj$    z/UsageapiClient.get_usage_carbon_emissions_queryc sddg}d}d}d}d}gdfdd t|D} | rJtd | d |vrrd g} |d | vrrtd | d|vrddg} |d| vrtd| |dt|dt|||d t|dtd} ddt| D} dd|dtd} ddt| D} |jj|d|jd}|rvt |t j sN|j | | |j|j|jj||| | d|d|||d S|jj||| | d|d|||d Sd S)!a Returns the saved custom table list. :param str compartment_id: (required) The compartment ID in which to list resources. :param str saved_report_id: (required) The saved report ID in which to list resources. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param int limit: (optional) The maximumimum number of items to return. :param str page: (optional) The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. :param str sort_by: (optional) The field to sort by. If not specified, the default is displayName. Allowed values are: "displayName" :param str sort_order: (optional) The sort order to use, whether 'asc' or 'desc'. Allowed values are: "ASC", "DESC" :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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. 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.usage_api.models.CustomTableCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_custom_tables API. rz savedReportIdr(rlist_custom_tableszQhttps://docs.oracle.com/iaas/api/#/en/usage/20200107/CustomTable/ListCustomTablesrrr,limitpagesort_by sort_ordercsg|]}|vr|qSr%r%r.r0r%r&r1r2z5UsageapiClient.list_custom_tables..z'list_custom_tables got unknown kwargs: r displayName,Invalid value for `sort_by`, must be one of rASCDESC/Invalid value for `sort_order`, must be one of rr)rrrzrsortBy sortOrdercSs&i|]\}}|tur|dur||qSr8r9r;r%r%r&r>3r2z5UsageapiClient.list_custom_tables..r3r,rcSs&i|]\}}|tur|dur||qSr8r9r;r%r%r&r>:r2rr?ZCustomTableCollectionr rBrCr~rDrFrrGrHrINrrKrLr!r:rMr"rNrrOrrPrRrSr rTrU)r#rZsaved_report_idr$rIrBrCrGrHrVsort_by_allowed_valuessort_order_allowed_valuesr~rDrr%r0r&rs3           z!UsageapiClient.list_custom_tablesc sddg}d}d}d}d}gdfdd t|D} | rJtd | d|i} d d t| D} t| D]<\} } | d ust| tjrpt| dkrptd| dqpd|vrdg} |d| vrtd| d|vrddg}|d|vrtd||dt |dt ||dt |dt d}dd t|D}dd|dt |dt d}d d t|D}|j j |d!|j d"}|rt|t js|j ||j |||j|j|j j||| ||d#|d$|||d% S|j j||| ||d#|d$|||d% Sd S)&a Return the saved usage statement email recipient group. :param str subscription_id: (required) The UsageStatement Subscription unique OCID. :param str compartment_id: (required) The compartment ID in which to list resources. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param int limit: (optional) The maximumimum number of items to return. :param str page: (optional) The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. :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 might be rejected. :param str sort_by: (optional) The field to sort by. If not specified, the default is displayName. Allowed values are: "displayName" :param str sort_order: (optional) The sort order to use, whether 'asc' or 'desc'. Allowed values are: "ASC", "DESC" :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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. 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.usage_api.models.EmailRecipientsGroupCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_email_recipients_groups API. rWrzrXrlist_email_recipients_groupszchttps://docs.oracle.com/iaas/api/#/en/usage/20200107/EmailRecipientsGroup/ListEmailRecipientsGroups)rrr,rrr-rrcsg|]}|vr|qSr%r%r.r0r%r&r1r2z?UsageapiClient.list_email_recipients_groups..z1list_email_recipients_groups got unknown kwargs: cSsi|]\}}|tur||qSr%r9r;r%r%r&r>r2z?UsageapiClient.list_email_recipients_groups..NrrZr[rrrrrrrrrrrrzrrcSs&i|]\}}|tur|dur||qSr8r9r;r%r%r&r>r2r3r,r-r4cSs&i|]\}}|tur|dur||qSr8r9r;r%r%r&r>r2rr?ZEmailRecipientsGroupCollectionrrr_)r#rcrr$rIrBrCrGrHrVr^r<r=rrr~rDrr%r0r&r\s: $            z+UsageapiClient.list_email_recipients_groupsc sdg}d}d}d}d}gdfddt|D}|rHtd |d |vrpd g} |d | vrptd | d |vrddg} |d | vrtd| |dt|dt||d t|d td} ddt| D} dd|dtd} ddt| D} |jj|d|jd} | rrt | t j sJ|j | | |j| j|jj||| | d|d|||d S|jj||| | d|d|||d SdS) a0 Returns the saved query list. :param str compartment_id: (required) The compartment ID in which to list resources. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param int limit: (optional) The maximumimum number of items to return. :param str page: (optional) The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. :param str sort_by: (optional) The field to sort by. If not specified, the default is displayName. Allowed values are: "displayName" :param str sort_order: (optional) The sort order to use, whether 'asc' or 'desc'. Allowed values are: "ASC", "DESC" :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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. 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.usage_api.models.QueryCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_queries API. rzrdr list_querieszFhttps://docs.oracle.com/iaas/api/#/en/usage/20200107/Query/ListQueriesrcsg|]}|vr|qSr%r%r.r0r%r&r18r2z/UsageapiClient.list_queries..z!list_queries got unknown kwargs: rrrrrrrrrrcSs&i|]\}}|tur|dur||qSr8r9r;r%r%r&r>Rr2z/UsageapiClient.list_queries..r3r,rcSs&i|]\}}|tur|dur||qSr8r9r;r%r%r&r>Yr2rr?ZQueryCollectionrrNrr#rr$rIrBrCrGrHrVrrr~rDrr%r0r&rs0           zUsageapiClient.list_queriesc sdg}d}d}d}d}gdfddt|D}|rHtd |d |vrpd g} |d | vrptd | d |vrddg} |d | vrtd| |dt|dt||d t|d td} ddt| D} dd|dtd} ddt| D} |jj|d|jd} | rrt | t j sJ|j | | |j| j|jj||| | d|d|||d S|jj||| | d|d|||d SdS) a1 Returns schedule history list. :param str schedule_id: (required) The unique ID of a schedule. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param str page: (optional) The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. :param int limit: (optional) The maximumimum number of items to return. :param str sort_by: (optional) The field to sort by. If not specified, the default is timeCreated. Allowed values are: "timeCreated" :param str sort_order: (optional) The sort order to use, whether 'asc' or 'desc'. Allowed values are: "ASC", "DESC" :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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. 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.usage_api.models.ScheduledRunCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_scheduled_runs API. rz/scheduledRunsrlist_scheduled_runszShttps://docs.oracle.com/iaas/api/#/en/usage/20200107/ScheduledRun/ListScheduledRuns)rrr,rrrrcsg|]}|vr|qSr%r%r.r0r%r&r1r2z6UsageapiClient.list_scheduled_runs..z(list_scheduled_runs got unknown kwargs: r timeCreatedrrrrrrr)rrrrrcSs&i|]\}}|tur|dur||qSr8r9r;r%r%r&r>r2z6UsageapiClient.list_scheduled_runs..r3r,rcSs&i|]\}}|tur|dur||qSr8r9r;r%r%r&r>r2rr?ZScheduledRunCollectionrrNr)r#rr$rIrBrCrGrHrVrrr~rDrr%r0r&r{s0           z"UsageapiClient.list_scheduled_runsc sdg}d}d}d}d}gdfddt|D}|rHtd |d |vrrd d g} |d | vrrtd | d|vrddg} |d| vrtd| ||dt|dt|d t|dt|d td} ddt| D} dd|dtd} ddt| D} |jj|d|jd} | r~t | t j sV|j | | |j| j|jj||| | d|d|||d S|jj||| | d|d|||d Sd S)!a Returns the saved schedule list. :param str compartment_id: (required) The compartment ID in which to list resources. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param str page: (optional) The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. :param int limit: (optional) The maximumimum number of items to return. :param str sort_by: (optional) The field to sort by. If not specified, the default is timeCreated. Allowed values are: "name", "timeCreated" :param str sort_order: (optional) The sort order to use, whether 'asc' or 'desc'. Allowed values are: "ASC", "DESC" :param str name: (optional) Query parameter for filtering by name :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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. 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.usage_api.models.ScheduleCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_schedules API. rzrgrlist_scheduleszKhttps://docs.oracle.com/iaas/api/#/en/usage/20200107/Schedule/ListSchedules)rrr,rrrrnamecsg|]}|vr|qSr%r%r.r0r%r&r1B r2z1UsageapiClient.list_schedules..z#list_schedules got unknown kwargs: rrrrrrrrrr)rzrrrrrcSs&i|]\}}|tur|dur||qSr8r9r;r%r%r&r>] r2z1UsageapiClient.list_schedules..r3r,rcSs&i|]\}}|tur|dur||qSr8r9r;r%r%r&r>d r2rr?ZScheduleCollectionrrNrrr%r0r&rs3            zUsageapiClient.list_schedulesc sdg}d}d}d}d}gdfddt|D}|rHtd |d |vrpd g} |d | vrptd | d |vrddg} |d | vrtd| |dt|dt||d t|d td} ddt| D} dd|dtd} ddt| D} |jj|d|jd} | rrt | t j sJ|j | | |j| j|jj||| | d|d|||d S|jj||| | d|d|||d SdS) a Returns the usage carbon emissions saved query list. :param str compartment_id: (required) The compartment ID in which to list resources. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param int limit: (optional) The maximumimum number of items to return. :param str page: (optional) The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. :param str sort_by: (optional) The field to sort by. If not specified, the default is displayName. Allowed values are: "displayName" :param str sort_order: (optional) The sort order to use, whether 'asc' or 'desc'. Allowed values are: "ASC", "DESC" :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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. 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.usage_api.models.UsageCarbonEmissionsQueryCollection` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use list_usage_carbon_emissions_queries API. rzrjr#list_usage_carbon_emissions_queriesznhttps://docs.oracle.com/iaas/api/#/en/usage/20200107/UsageCarbonEmissionsQuery/ListUsageCarbonEmissionsQueriesrcsg|]}|vr|qSr%r%r.r0r%r&r1 r2zFUsageapiClient.list_usage_carbon_emissions_queries..z8list_usage_carbon_emissions_queries got unknown kwargs: rrrrrrrrrrcSs&i|]\}}|tur|dur||qSr8r9r;r%r%r&r> r2zFUsageapiClient.list_usage_carbon_emissions_queries..r3r,rcSs&i|]\}}|tur|dur||qSr8r9r;r%r%r&r> r2rr?Z#UsageCarbonEmissionsQueryCollectionrrNrrr%r0r&r s0           z2UsageapiClient.list_usage_carbon_emissions_queriesc shdg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt d} dd t| D} |j j |d|j d} | r@t| t js|j | | |j| j|j j||| | d|d|||d S|j j||| | d|d|||d Sd S)a Returns the average carbon emissions summary by SKU. :param str sku_part_number: (required) The SKU part number. :param str opc_request_id: (optional) Unique Oracle-assigned 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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. 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.usage_api.models.AverageCarbonEmission` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use request_average_carbon_emission API. Z skuPartNumberz'/averageCarbonEmissions/{skuPartNumber}rrequest_average_carbon_emissionzghttps://docs.oracle.com/iaas/api/#/en/usage/20200107/AverageCarbonEmission/RequestAverageCarbonEmissionrcsg|]}|vr|qSr%r%r.r0r%r&r14 r2zBUsageapiClient.request_average_carbon_emission..z4request_average_carbon_emission got unknown kwargs: cSsi|]\}}|tur||qSr%r9r;r%r%r&r>= r2zBUsageapiClient.request_average_carbon_emission..NrrZr[r3r,rcSs&i|]\}}|tur|dur||qSr8r9r;r%r%r&r>H r2rr?ZAverageCarbonEmissionrrru)r#Zsku_part_numberr$rIrBrCrGrHrVr^r<r=rDrr%r0r&r sj$    z.UsageapiClient.request_average_carbon_emissionc sdg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqnd|dt i} dd t| D} dd|dt d} dd t| D} |j j |d|j d}|rft|t js<|j | ||j|j|j j||| | | d|d|||d S|j j||| | | d|d|||d Sd S)a' Returns the clean energy usage summary by region. :param str region: (required) The region. :param str ad: (optional) The availability domain. :param str opc_request_id: (optional) Unique Oracle-assigned 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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. 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.usage_api.models.CleanEnergyUsage` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use request_clean_energy_usage API. regionz/cleanEnergyUsages/{region}rrequest_clean_energy_usagez]https://docs.oracle.com/iaas/api/#/en/usage/20200107/CleanEnergyUsage/RequestCleanEnergyUsage)rradr,csg|]}|vr|qSr%r%r.r0r%r&r1 r2z=UsageapiClient.request_clean_energy_usage..z/request_clean_energy_usage got unknown kwargs: cSsi|]\}}|tur||qSr%r9r;r%r%r&r> r2z=UsageapiClient.request_clean_energy_usage..NrrZr[rcSs&i|]\}}|tur|dur||qSr8r9r;r%r%r&r> r2r3r,rcSs&i|]\}}|tur|dur||qSr8r9r;r%r%r&r> r2rr?ZCleanEnergyUsagerrru)r#rr$rIrBrCrGrHrVr^r<r=r~rDrr%r0r&rj st"$     z)UsageapiClient.request_clean_energy_usagec sdg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} d d |d td} dd t| D} |jj|d|jd} | rt | t j s|j | | |j| j|jj||| | d|d|||d S|jj||| | d|d|||d SdS)a Returns the configurations list for the UI drop-down list. :param str tenant_id: (required) tenant id :param str opc_request_id: (optional) Unique Oracle-assigned 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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. 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.usage_api.models.ConfigurationAggregation` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use request_summarized_configurations API. tenantIdz/configurationr!request_summarized_configurationszbhttps://docs.oracle.com/iaas/api/#/en/usage/20200107/Configuration/RequestSummarizedConfigurationsrcsg|]}|vr|qSr%r%r.r0r%r&r1 r2zDUsageapiClient.request_summarized_configurations..z6request_summarized_configurations got unknown kwargs: cSs&i|]\}}|tur|dur||qSr8r9r;r%r%r&r> r2zDUsageapiClient.request_summarized_configurations..r3r,rcSs&i|]\}}|tur|dur||qSr8r9r;r%r%r&r> r2rr?ConfigurationAggregationrrNrrKrLrMr!r:r"rNrrOrrPrRrSr rTrU r#Z tenant_idr$rIrBrCrGrHrVr~rDrr%r0r&r sd     z0UsageapiClient.request_summarized_configurationsc s2g}d}d}d}d}gdfddt|D}|rFtd||d t|d td } d d t| D} dd|dtd} dd t| D} |jj|d|jd} | rt | t j s|j | | |j| j|jj||| | |d|d|||d S|jj||| | |d|d|||d SdS)aU Returns usage for the given account. :param oci.usage_api.models.RequestSummarizedUsagesDetails request_summarized_usages_details: (required) getUsageRequest contains query inforamtion. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param str page: (optional) The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. :param int limit: (optional) The maximumimum number of items to return. :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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. 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.usage_api.models.UsageAggregation` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use request_summarized_usages API. z/usager)request_summarized_usageszYhttps://docs.oracle.com/iaas/api/#/en/usage/20200107/UsageSummary/RequestSummarizedUsagesrrr,rrcsg|]}|vr|qSr%r%r.r0r%r&r1f r2z.z.request_summarized_usages got unknown kwargs: rrrrcSs&i|]\}}|tur|dur||qSr8r9r;r%r%r&r>o r2z.r3r,rcSs&i|]\}}|tur|dur||qSr8r9r;r%r%r&r>v r2rr?ZUsageAggregationr rBrCr~rDrErFrrGrHrINr) r#Z!request_summarized_usages_detailsr$rIrBrCrGrHrVr~rDrr%r0r&r2 sj&       z(UsageapiClient.request_summarized_usagesc sdg}d}d}d}d}gdfddt|D}|rHtd |d|i} d d t| D} d d |d td} dd t| D} |jj|d|jd} | rt | t j s|j | | |j| j|jj||| | d|d|||d S|jj||| | d|d|||d SdS)a Returns the configuration list for the UI drop-down list of carbon emission console. :param str tenant_id: (required) tenant id :param str opc_request_id: (optional) Unique Oracle-assigned 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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. 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.usage_api.models.ConfigurationAggregation` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use request_usage_carbon_emission_config API. rz/usageCarbonEmissionsConfigr$request_usage_carbon_emission_configzchttps://docs.oracle.com/iaas/api/#/en/usage/20200107/Configuration/RequestUsageCarbonEmissionConfigrcsg|]}|vr|qSr%r%r.r0r%r&r1 r2zGUsageapiClient.request_usage_carbon_emission_config..z9request_usage_carbon_emission_config got unknown kwargs: cSs&i|]\}}|tur|dur||qSr8r9r;r%r%r&r> r2zGUsageapiClient.request_usage_carbon_emission_config..r3r,rcSs&i|]\}}|tur|dur||qSr8r9r;r%r%r&r> r2rr?rrrNrrr%r0r&r sd     z3UsageapiClient.request_usage_carbon_emission_configc s2g}d}d}d}d}gdfddt|D}|rFtd||d t|d td } d d t| D} dd|dtd} dd t| D} |jj|d|jd} | rt | t j s|j | | |j| j|jj||| | |d|d|||d S|jj||| | |d|d|||d SdS)a Returns usage carbon emission for the given account. :param oci.usage_api.models.RequestUsageCarbonEmissionsDetails request_usage_carbon_emissions_details: (required) getUsageCarbonEmissionRequest contains query inforamtion. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :param str page: (optional) The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. :param int limit: (optional) The maximumimum number of items to return. :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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. 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.usage_api.models.UsageCarbonEmissionAggregation` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use request_usage_carbon_emissions API. z/usageCarbonEmissionsr)request_usage_carbon_emissionszkhttps://docs.oracle.com/iaas/api/#/en/usage/20200107/UsageCarbonEmissionSummary/RequestUsageCarbonEmissionsrcsg|]}|vr|qSr%r%r.r0r%r&r1* r2zAUsageapiClient.request_usage_carbon_emissions..z3request_usage_carbon_emissions got unknown kwargs: rrrcSs&i|]\}}|tur|dur||qSr8r9r;r%r%r&r>3 r2zAUsageapiClient.request_usage_carbon_emissions..r3r,rcSs&i|]\}}|tur|dur||qSr8r9r;r%r%r&r>: r2rr?ZUsageCarbonEmissionAggregationrrNr) r#Z&request_usage_carbon_emissions_detailsr$rIrBrCrGrHrVr~rDrr%r0r&r sj&       z-UsageapiClient.request_usage_carbon_emissionsc svdg}d}d}d}d}gdfddt|D} | rHtd | d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt d} dd t| D} |j j |d|j d}|rLt|t js"|j | ||j|j|j j||| | |d|d|||d S|j j||| | |d|d|||d Sd S)a Update a saved custom table by table id. :param oci.usage_api.models.UpdateCustomTableDetails update_custom_table_details: (required) The information to be updated. :param str custom_table_id: (required) The custom table unique OCID. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :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 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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. 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.usage_api.models.CustomTable` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use update_custom_table API. rmrnPUTupdate_custom_tablezRhttps://docs.oracle.com/iaas/api/#/en/usage/20200107/CustomTable/UpdateCustomTablerqcsg|]}|vr|qSr%r%r.r0r%r&r1 r2z6UsageapiClient.update_custom_table..z(update_custom_table got unknown kwargs: cSsi|]\}}|tur||qSr%r9r;r%r%r&r> r2z6UsageapiClient.update_custom_table..NrrZr[r3r,rrrscSs&i|]\}}|tur|dur||qSr8r9r;r%r%r&r> r2rr?r@rr]ru)r#Zupdate_custom_table_detailsrwr$rIrBrCrGrHrVr^r<r=rDrr%r0r&r^ sp)$     z"UsageapiClient.update_custom_tablec sgd}d}d}d} d} gdfddt|D} | rJtd | ||d } d d t| D} t| D]<\} }|d ust|tjrrt|dkrrtd| dqrd|i}dd t|D}dd|dt |dt d}dd t|D}|j j |d|j d}|rnt|t jsB|j |||j|j|j j||| |||d|d| | |d S|j j||| |||d|d| | |d Sd S)a Update a saved email recipients group. :param oci.usage_api.models.UpdateEmailRecipientsGroupDetails update_email_recipients_group_details: (required) The information to be updated. :param str email_recipients_group_id: (required) The email recipient group OCID. :param str subscription_id: (required) The UsageStatement Subscription unique OCID. :param str compartment_id: (required) The compartment ID in which to list resources. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :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 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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. 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.usage_api.models.EmailRecipientsGroup` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use update_email_recipients_group API. rxr{rupdate_email_recipients_groupzdhttps://docs.oracle.com/iaas/api/#/en/usage/20200107/EmailRecipientsGroup/UpdateEmailRecipientsGrouprqcsg|]}|vr|qSr%r%r.r0r%r&r1 r2z@UsageapiClient.update_email_recipients_group..z2update_email_recipients_group got unknown kwargs: r}cSsi|]\}}|tur||qSr%r9r;r%r%r&r> r2z@UsageapiClient.update_email_recipients_group..NrrZr[rzcSs&i|]\}}|tur|dur||qSr8r9r;r%r%r&r> r2r3r,rrrscSs&i|]\}}|tur|dur||qSr8r9r;r%r%r&r>$ r2rr?r\r) rBrCr^r~rDrErFrrGrHrIru)r#Z%update_email_recipients_group_detailsrrcrr$rIrBrCrGrHrVr^r<r=r~rDrr%r0r&r s|/$    z,UsageapiClient.update_email_recipients_groupc svdg}d}d}d}d}gdfddt|D} | rHtd | d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt d} dd t| D} |j j |d|j d}|rLt|t js"|j | ||j|j|j j||| | |d|d|||d S|j j||| | |d|d|||d Sd S)a Update a saved query by the OCID. :param oci.usage_api.models.UpdateQueryDetails update_query_details: (required) The information to be updated. :param str query_id: (required) The query unique OCID. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :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 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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. 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.usage_api.models.Query` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use update_query API. rrr update_queryzFhttps://docs.oracle.com/iaas/api/#/en/usage/20200107/Query/UpdateQueryrqcsg|]}|vr|qSr%r%r.r0r%r&r1 r2z/UsageapiClient.update_query..z!update_query got unknown kwargs: cSsi|]\}}|tur||qSr%r9r;r%r%r&r> r2z/UsageapiClient.update_query..NrrZr[r3r,rrrscSs&i|]\}}|tur|dur||qSr8r9r;r%r%r&r> r2rr?rfrr]ru)r#Zupdate_query_detailsrr$rIrBrCrGrHrVr^r<r=rDrr%r0r&rJ sp)$     zUsageapiClient.update_queryc svdg}d}d}d}d}gdfddt|D} | rHtd | d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt d} dd t| D} |j j |d|j d}|rLt|t js"|j | ||j|j|j j||| | |d|d|||d S|j j||| | |d|d|||d Sd S)a Update a saved schedule :param oci.usage_api.models.UpdateScheduleDetails update_schedule_details: (required) The information to be updated. Currently supports only tags :param str schedule_id: (required) The schedule unique OCID. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :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 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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. 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.usage_api.models.Schedule` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use update_schedule API. rrrupdate_schedulezLhttps://docs.oracle.com/iaas/api/#/en/usage/20200107/Schedule/UpdateSchedulerqcsg|]}|vr|qSr%r%r.r0r%r&r1 r2z2UsageapiClient.update_schedule..z$update_schedule got unknown kwargs: cSsi|]\}}|tur||qSr%r9r;r%r%r&r> r2z2UsageapiClient.update_schedule..NrrZr[r3r,rrrscSs&i|]\}}|tur|dur||qSr8r9r;r%r%r&r>r2rr?rirr]ru)r#Zupdate_schedule_detailsrr$rIrBrCrGrHrVr^r<r=rDrr%r0r&r sp)$     zUsageapiClient.update_schedulec svdg}d}d}d}d}gdfddt|D} | rHtd | d|i} d d t| D} t| D]<\} } | d ust| tjrnt| d krntd| dqndd|dt |dt d} dd t| D} |j j |d|j d}|rLt|t js"|j | ||j|j|j j||| | |d|d|||d S|j j||| | |d|d|||d Sd S)af Update a usage carbon emissions saved query by the OCID. :param oci.usage_api.models.UpdateUsageCarbonEmissionsQueryDetails update_usage_carbon_emissions_query_details: (required) The information to be updated. :param str usage_carbon_emissions_query_id: (required) The query unique OCID. :param str opc_request_id: (optional) Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. :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 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 will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. 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.usage_api.models.UsageCarbonEmissionsQuery` :rtype: :class:`~oci.response.Response` :example: Click `here `__ to see an example of how to use update_usage_carbon_emissions_query API. rrr#update_usage_carbon_emissions_queryznhttps://docs.oracle.com/iaas/api/#/en/usage/20200107/UsageCarbonEmissionsQuery/UpdateUsageCarbonEmissionsQueryrqcsg|]}|vr|qSr%r%r.r0r%r&r1^r2zFUsageapiClient.update_usage_carbon_emissions_query..z8update_usage_carbon_emissions_query got unknown kwargs: cSsi|]\}}|tur||qSr%r9r;r%r%r&r>gr2zFUsageapiClient.update_usage_carbon_emissions_query..NrrZr[r3r,rrrscSs&i|]\}}|tur|dur||qSr8r9r;r%r%r&r>sr2rr?rlrr]ru)r#Z+update_usage_carbon_emissions_query_detailsrr$rIrBrCrGrHrVr^r<r=rDrr%r0r&r(sp)$     z2UsageapiClient.update_usage_carbon_emissions_queryN)&__name__ __module__ __qualname____doc__r'r*rYrerhrkrpr|rrrrrrrrrrrrrrrrrrrrrrrrrrr%r%r%r&rsR[apaaahvhhhaoaaaa al\h\ho}oorN)Z __future__rZ oci._vendorrrZocirrZoci.base_clientrZ oci.configrr Z oci.signerr Zoci.utilr r r Zoci.exceptionsrZ oci.alloyrZmodelsrr:objectrr%r%r%r&s