File manager - Edit - /usr/lib/mysqlsh/lib/python3.9/site-packages/oci/generative_ai_inference/models/video_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 VideoUrl(object): """ The base64 encoded video data or a video uri if it's supported. """ #: A constant which can be used with the detail property of a VideoUrl. #: This constant has a value of "AUTO" DETAIL_AUTO = "AUTO" #: A constant which can be used with the detail property of a VideoUrl. #: This constant has a value of "HIGH" DETAIL_HIGH = "HIGH" #: A constant which can be used with the detail property of a VideoUrl. #: This constant has a value of "LOW" DETAIL_LOW = "LOW" def __init__(self, **kwargs): """ Initializes a new VideoUrl 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 VideoUrl. :type url: str :param detail: The value to assign to the detail property of this VideoUrl. 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 VideoUrl. The base64 encoded video data or a video uri if it's supported. Example for an mp4 video: `{ \"type\": \"VIDEO\", \"videoUrl\": { \"url\": \"data:video/mp4;base64,<base64 encoded video content>\" } }` Example with a video uri: `{ \"type\": \"VIDEO\", \"videoUrl\": { \"url\": \"data:video/mp4;uri,<video uri>\" } }` :return: The url of this VideoUrl. :rtype: str """ return self._url @url.setter def url(self, url): """ Sets the url of this VideoUrl. The base64 encoded video data or a video uri if it's supported. Example for an mp4 video: `{ \"type\": \"VIDEO\", \"videoUrl\": { \"url\": \"data:video/mp4;base64,<base64 encoded video content>\" } }` Example with a video uri: `{ \"type\": \"VIDEO\", \"videoUrl\": { \"url\": \"data:video/mp4;uri,<video uri>\" } }` :param url: The url of this VideoUrl. :type: str """ self._url = url @property def detail(self): """ Gets the detail of this VideoUrl. The default value is AUTO and only AUTO is supported. This option controls how to convert the base64 encoded video 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 VideoUrl. :rtype: str """ return self._detail @detail.setter def detail(self, detail): """ Sets the detail of this VideoUrl. The default value is AUTO and only AUTO is supported. This option controls how to convert the base64 encoded video to tokens. :param detail: The detail of this VideoUrl. :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