File manager - Edit - /usr/lib/mysqlsh/lib/python3.9/site-packages/oci/generative_ai_inference/models/audio_url.py
Back
# coding: utf-8 # Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20231130 from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs class AudioUrl(object): """ Provide a base64 encoded audio or an audio uri if it's supported. """ #: A constant which can be used with the detail property of a AudioUrl. #: This constant has a value of "AUTO" DETAIL_AUTO = "AUTO" #: A constant which can be used with the detail property of a AudioUrl. #: This constant has a value of "HIGH" DETAIL_HIGH = "HIGH" #: A constant which can be used with the detail property of a AudioUrl. #: This constant has a value of "LOW" DETAIL_LOW = "LOW" def __init__(self, **kwargs): """ Initializes a new AudioUrl object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param url: The value to assign to the url property of this AudioUrl. :type url: str :param detail: The value to assign to the detail property of this AudioUrl. Allowed values for this property are: "AUTO", "HIGH", "LOW", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type detail: str """ self.swagger_types = { 'url': 'str', 'detail': 'str' } self.attribute_map = { 'url': 'url', 'detail': 'detail' } self._url = None self._detail = None @property def url(self): """ **[Required]** Gets the url of this AudioUrl. The base64 encoded audio data or an audio uri if it's supported. Example for an mp3 audio: `{ \"type\": \"AUDIO\", \"audioUrl\": { \"url\": \"data:audio/mp3;base64,<base64 encoded audio content>\" } }` Example with an audio uri: `{ \"type\": \"AUDIO\", \"audioUrl\": { \"url\": \"data:audio/mp3;uri,<audio uri>\" } }` :return: The url of this AudioUrl. :rtype: str """ return self._url @url.setter def url(self, url): """ Sets the url of this AudioUrl. The base64 encoded audio data or an audio uri if it's supported. Example for an mp3 audio: `{ \"type\": \"AUDIO\", \"audioUrl\": { \"url\": \"data:audio/mp3;base64,<base64 encoded audio content>\" } }` Example with an audio uri: `{ \"type\": \"AUDIO\", \"audioUrl\": { \"url\": \"data:audio/mp3;uri,<audio uri>\" } }` :param url: The url of this AudioUrl. :type: str """ self._url = url @property def detail(self): """ Gets the detail of this AudioUrl. The default value is AUTO and only AUTO is supported. This option controls how to convert the base64 encoded audio to tokens. Allowed values for this property are: "AUTO", "HIGH", "LOW", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The detail of this AudioUrl. :rtype: str """ return self._detail @detail.setter def detail(self, detail): """ Sets the detail of this AudioUrl. The default value is AUTO and only AUTO is supported. This option controls how to convert the base64 encoded audio to tokens. :param detail: The detail of this AudioUrl. :type: str """ allowed_values = ["AUTO", "HIGH", "LOW"] if not value_allowed_none_or_none_sentinel(detail, allowed_values): detail = 'UNKNOWN_ENUM_VALUE' self._detail = detail def __repr__(self): return formatted_flat_dict(self) def __eq__(self, other): if other is None: return False return self.__dict__ == other.__dict__ def __ne__(self, other): return not self == other
| ver. 1.4 |
Github
|
.
| PHP 8.2.32 | Generation time: 0.06 |
proxy
|
phpinfo
|
Settings