# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
[docs]class TrendingVideosCategory(Model):
"""TrendingVideosCategory.
All required parameters must be populated in order to send to Azure.
:param title: Required.
:type title: str
:param subcategories: Required.
:type subcategories:
list[~azure.cognitiveservices.search.videosearch.models.TrendingVideosSubcategory]
"""
_validation = {
'title': {'required': True},
'subcategories': {'required': True},
}
_attribute_map = {
'title': {'key': 'title', 'type': 'str'},
'subcategories': {'key': 'subcategories', 'type': '[TrendingVideosSubcategory]'},
}
def __init__(self, *, title: str, subcategories, **kwargs) -> None:
super(TrendingVideosCategory, self).__init__(**kwargs)
self.title = title
self.subcategories = subcategories