ruạṛ
a ���fLn � @ s8 d dl mZmZmZ d dlmZ eG dd� de��ZdS )� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ s� e Zd ZdZdZdZdZdZdZdZ dZ d Zd ZdZ dZd ZdZdZdZdd� Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd � �Zejd!d � �Zed"d#� �Zejd$d#� �Zed%d&� �Zejd'd&� �Zed(d)� �Zejd*d)� �Zed+d,� �Zejd-d,� �Zed.d/� �Zejd0d/� �Zed1d2� �Z e jd3d2� �Z ed4d5� �Z!e!jd6d5� �Z!ed7d8� �Z"e"jd9d8� �Z"ed:d;� �Z#e#jd<d;� �Z#ed=d>� �Z$e$jd?d>� �Z$ed@dA� �Z%e%jdBdA� �Z%edCdD� �Z&e&jdEdD� �Z&edFdG� �Z'e'jdHdG� �Z'edIdJ� �Z(e(jdKdJ� �Z(edLdM� �Z)e)jdNdM� �Z)edOdP� �Z*e*jdQdP� �Z*edRdS� �Z+e+jdTdS� �Z+edUdV� �Z,e,jdWdV� �Z,edXdY� �Z-e-jdZdY� �Z-ed[d\� �Z.e.jd]d\� �Z.d^d_� Z/d`da� Z0dbdc� Z1ddS )e� ComputedUsagez' Computed Usage Summary object � PROMOTION�DO_NOT_BILL�USAGE�COMMIT�OVERAGE� PAY_AS_YOU_GO�MONTHLY_MINIMUM�DELAYED_USAGE_INVOICE_TIMING�DELAYED_USAGE_COMMITMENT_EXP�ON_ACCOUNT_CREDIT�SERVICE_CREDIT�COMMITMENT_EXPIRATION�FUNDED_ALLOCATION�!DONOT_BILL_USAGE_POST_TERMINATION�DELAYED_USAGE_POST_TERMINATIONc K s dddddddddddddddddddddddddd�| _ dddd d ddd dddddddddddddddddd�| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _d| _ d| _d| _d| _d| _d| _d| _d| _d| _d| _d| _d| _d| _d| _dS ) at Initializes a new ComputedUsage object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param time_created: The value to assign to the time_created property of this ComputedUsage. :type time_created: datetime :param time_updated: The value to assign to the time_updated property of this ComputedUsage. :type time_updated: datetime :param parent_subscribed_service_id: The value to assign to the parent_subscribed_service_id property of this ComputedUsage. :type parent_subscribed_service_id: str :param parent_product: The value to assign to the parent_product property of this ComputedUsage. :type parent_product: oci.osub_usage.models.Product :param plan_number: The value to assign to the plan_number property of this ComputedUsage. :type plan_number: str :param currency_code: The value to assign to the currency_code property of this ComputedUsage. :type currency_code: str :param rate_card_tierd_id: The value to assign to the rate_card_tierd_id property of this ComputedUsage. :type rate_card_tierd_id: str :param rate_card_id: The value to assign to the rate_card_id property of this ComputedUsage. :type rate_card_id: str :param compute_source: The value to assign to the compute_source property of this ComputedUsage. :type compute_source: str :param data_center: The value to assign to the data_center property of this ComputedUsage. :type data_center: str :param mqs_message_id: The value to assign to the mqs_message_id property of this ComputedUsage. :type mqs_message_id: str :param id: The value to assign to the id property of this ComputedUsage. :type id: str :param quantity: The value to assign to the quantity property of this ComputedUsage. :type quantity: str :param usage_number: The value to assign to the usage_number property of this ComputedUsage. :type usage_number: str :param original_usage_number: The value to assign to the original_usage_number property of this ComputedUsage. :type original_usage_number: str :param commitment_service_id: The value to assign to the commitment_service_id property of this ComputedUsage. :type commitment_service_id: str :param is_invoiced: The value to assign to the is_invoiced property of this ComputedUsage. :type is_invoiced: bool :param type: The value to assign to the type property of this ComputedUsage. Allowed values for this property are: "PROMOTION", "DO_NOT_BILL", "USAGE", "COMMIT", "OVERAGE", "PAY_AS_YOU_GO", "MONTHLY_MINIMUM", "DELAYED_USAGE_INVOICE_TIMING", "DELAYED_USAGE_COMMITMENT_EXP", "ON_ACCOUNT_CREDIT", "SERVICE_CREDIT", "COMMITMENT_EXPIRATION", "FUNDED_ALLOCATION", "DONOT_BILL_USAGE_POST_TERMINATION", "DELAYED_USAGE_POST_TERMINATION", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type type: str :param time_of_arrival: The value to assign to the time_of_arrival property of this ComputedUsage. :type time_of_arrival: datetime :param time_metered_on: The value to assign to the time_metered_on property of this ComputedUsage. :type time_metered_on: datetime :param net_unit_price: The value to assign to the net_unit_price property of this ComputedUsage. :type net_unit_price: str :param cost_rounded: The value to assign to the cost_rounded property of this ComputedUsage. :type cost_rounded: str :param cost: The value to assign to the cost property of this ComputedUsage. :type cost: str :param product: The value to assign to the product property of this ComputedUsage. :type product: oci.osub_usage.models.Product :param unit_of_measure: The value to assign to the unit_of_measure property of this ComputedUsage. :type unit_of_measure: str Zdatetime�strZProduct�bool)�time_created�time_updated�parent_subscribed_service_id�parent_product�plan_number� currency_code�rate_card_tierd_id�rate_card_id�compute_source�data_center�mqs_message_id�id�quantity�usage_number�original_usage_number�commitment_service_id�is_invoiced�type�time_of_arrival�time_metered_on�net_unit_price�cost_rounded�cost�product�unit_of_measureZtimeCreatedZtimeUpdatedZparentSubscribedServiceIdZ parentProductZ planNumberZcurrencyCodeZrateCardTierdIdZ rateCardIdZ computeSourceZ dataCenterZmqsMessageIdr# r$ ZusageNumberZoriginalUsageNumberZcommitmentServiceIdZ isInvoicedr) Z timeOfArrivalZ timeMeteredOnZnetUnitPriceZcostRoundedr. r/ Z unitOfMeasureN)Z swagger_typesZ attribute_map� _time_created� _time_updated�_parent_subscribed_service_id�_parent_product�_plan_number�_currency_code�_rate_card_tierd_id� _rate_card_id�_compute_source�_data_center�_mqs_message_id�_id� _quantity� _usage_number�_original_usage_number�_commitment_service_id�_is_invoiced�_type�_time_of_arrival�_time_metered_on�_net_unit_price� _cost_rounded�_cost�_product�_unit_of_measure)�self�kwargs� rL �H/usr/lib/python3.9/site-packages/oci/osub_usage/models/computed_usage.py�__init__N s� m��zComputedUsage.__init__c C s | j S )z� Gets the time_created of this ComputedUsage. Computed Usage created time, expressed in RFC 3339 timestamp format. :return: The time_created of this ComputedUsage. :rtype: datetime �r1 �rJ rL rL rM r s zComputedUsage.time_createdc C s || _ dS )z� Sets the time_created of this ComputedUsage. Computed Usage created time, expressed in RFC 3339 timestamp format. :param time_created: The time_created of this ComputedUsage. :type: datetime NrO )rJ r rL rL rM r s c C s | j S )z� Gets the time_updated of this ComputedUsage. Computed Usage updated time, expressed in RFC 3339 timestamp format. :return: The time_updated of this ComputedUsage. :rtype: datetime �r2 rP rL rL rM r $ s zComputedUsage.time_updatedc C s || _ dS )z� Sets the time_updated of this ComputedUsage. Computed Usage updated time, expressed in RFC 3339 timestamp format. :param time_updated: The time_updated of this ComputedUsage. :type: datetime NrQ )rJ r rL rL rM r 0 s c C s | j S )z� Gets the parent_subscribed_service_id of this ComputedUsage. Subscribed service line parent id :return: The parent_subscribed_service_id of this ComputedUsage. :rtype: str �r3 rP rL rL rM r < s z*ComputedUsage.parent_subscribed_service_idc C s || _ dS )z� Sets the parent_subscribed_service_id of this ComputedUsage. Subscribed service line parent id :param parent_subscribed_service_id: The parent_subscribed_service_id of this ComputedUsage. :type: str NrR )rJ r rL rL rM r H s c C s | j S )z� Gets the parent_product of this ComputedUsage. :return: The parent_product of this ComputedUsage. :rtype: oci.osub_usage.models.Product �r4 rP rL rL rM r T s zComputedUsage.parent_productc C s || _ dS )z� Sets the parent_product of this ComputedUsage. :param parent_product: The parent_product of this ComputedUsage. :type: oci.osub_usage.models.Product NrS )rJ r rL rL rM r ^ s c C s | j S )z� Gets the plan_number of this ComputedUsage. Subscription plan number :return: The plan_number of this ComputedUsage. :rtype: str �r5 rP rL rL rM r h s zComputedUsage.plan_numberc C s || _ dS )z� Sets the plan_number of this ComputedUsage. Subscription plan number :param plan_number: The plan_number of this ComputedUsage. :type: str NrT )rJ r rL rL rM r t s c C s | j S )z� Gets the currency_code of this ComputedUsage. Currency code :return: The currency_code of this ComputedUsage. :rtype: str �r6 rP rL rL rM r � s zComputedUsage.currency_codec C s || _ dS )z� Sets the currency_code of this ComputedUsage. Currency code :param currency_code: The currency_code of this ComputedUsage. :type: str NrU )rJ r rL rL rM r � s c C s | j S )ab Gets the rate_card_tierd_id of this ComputedUsage. References the tier in the ratecard for that usage (OCI will be using the same reference to cross-reference for correctness on the usage csv report), comes from Entity OBSCNTR_IPT_PRODUCTTIER. :return: The rate_card_tierd_id of this ComputedUsage. :rtype: str �r7 rP rL rL rM r � s z ComputedUsage.rate_card_tierd_idc C s || _ dS )as Sets the rate_card_tierd_id of this ComputedUsage. References the tier in the ratecard for that usage (OCI will be using the same reference to cross-reference for correctness on the usage csv report), comes from Entity OBSCNTR_IPT_PRODUCTTIER. :param rate_card_tierd_id: The rate_card_tierd_id of this ComputedUsage. :type: str NrV )rJ r rL rL rM r � s c C s | j S )z� Gets the rate_card_id of this ComputedUsage. Ratecard Id at subscribed service level :return: The rate_card_id of this ComputedUsage. :rtype: str �r8 rP rL rL rM r � s zComputedUsage.rate_card_idc C s || _ dS )z� Sets the rate_card_id of this ComputedUsage. Ratecard Id at subscribed service level :param rate_card_id: The rate_card_id of this ComputedUsage. :type: str NrW )rJ r rL rL rM r � s c C s | j S )z� Gets the compute_source of this ComputedUsage. SPM Internal compute records source . :return: The compute_source of this ComputedUsage. :rtype: str �r9 rP rL rL rM r � s zComputedUsage.compute_sourcec C s || _ dS )z� Sets the compute_source of this ComputedUsage. SPM Internal compute records source . :param compute_source: The compute_source of this ComputedUsage. :type: str NrX )rJ r rL rL rM r � s c C s | j S )z� Gets the data_center of this ComputedUsage. Data Center Attribute as sent by MQS to SPM. :return: The data_center of this ComputedUsage. :rtype: str �r: rP rL rL rM r! � s zComputedUsage.data_centerc C s || _ dS )z� Sets the data_center of this ComputedUsage. Data Center Attribute as sent by MQS to SPM. :param data_center: The data_center of this ComputedUsage. :type: str NrY )rJ r! rL rL rM r! � s c C s | j S )z� Gets the mqs_message_id of this ComputedUsage. MQS Identfier send to SPM , SPM does not transform this attribute and is received as is. :return: The mqs_message_id of this ComputedUsage. :rtype: str �r; rP rL rL rM r"