1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
|
# 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
class SearchSchemaValue(Model):
"""Value object for schema results.
All required parameters must be populated in order to send to Azure.
:param name: The name of the schema.
:type name: str
:param display_name: The display name of the schema.
:type display_name: str
:param type: The type.
:type type: str
:param indexed: Required. The boolean that indicates the field is
searchable as free text.
:type indexed: bool
:param stored: Required. The boolean that indicates whether or not the
field is stored.
:type stored: bool
:param facet: Required. The boolean that indicates whether or not the
field is a facet.
:type facet: bool
:param owner_type: The array of workflows containing the field.
:type owner_type: list[str]
"""
_validation = {
'indexed': {'required': True},
'stored': {'required': True},
'facet': {'required': True},
}
_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'display_name': {'key': 'displayName', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'indexed': {'key': 'indexed', 'type': 'bool'},
'stored': {'key': 'stored', 'type': 'bool'},
'facet': {'key': 'facet', 'type': 'bool'},
'owner_type': {'key': 'ownerType', 'type': '[str]'},
}
def __init__(self, *, indexed: bool, stored: bool, facet: bool, name: str=None, display_name: str=None, type: str=None, owner_type=None, **kwargs) -> None:
super(SearchSchemaValue, self).__init__(**kwargs)
self.name = name
self.display_name = display_name
self.type = type
self.indexed = indexed
self.stored = stored
self.facet = facet
self.owner_type = owner_type
|