CurrencyValue Class
A currency value element.
New in version 2023-07-31: The code property.
- Inheritance
-
builtins.objectCurrencyValue
Constructor
CurrencyValue(**kwargs: Any)
Methods
from_dict |
Converts a dict in the shape of a CurrencyValue to the model itself. |
to_dict |
Returns a dict representation of CurrencyValue. |
from_dict
Converts a dict in the shape of a CurrencyValue to the model itself.
from_dict(data: Dict) -> CurrencyValue
Parameters
Name | Description |
---|---|
data
Required
|
A dictionary in the shape of CurrencyValue. |
Returns
Type | Description |
---|---|
CurrencyValue |
to_dict
Returns a dict representation of CurrencyValue.
to_dict() -> Dict
Returns
Type | Description |
---|---|
dict |
Attributes
amount
The currency amount.
amount: float
code
Resolved currency code (ISO 4217), if any.
code: str | None
symbol
The currency symbol, if found.
symbol: str | None
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure SDK for Python