Source code for azure.servicefabric.models.property_metadata_py3
# 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 PropertyMetadata(Model):
"""The metadata associated with a property, including the property's name.
:param type_id: The kind of property, determined by the type of data.
Following are the possible values. Possible values include: 'Invalid',
'Binary', 'Int64', 'Double', 'String', 'Guid'
:type type_id: str or ~azure.servicefabric.models.PropertyValueKind
:param custom_type_id: The property's custom type ID.
:type custom_type_id: str
:param parent: The name of the parent Service Fabric Name for the
property. It could be thought of as the name-space/table under which the
property exists.
:type parent: str
:param size_in_bytes: The length of the serialized property value.
:type size_in_bytes: int
:param last_modified_utc_timestamp: Represents when the Property was last
modified. Only write operations will cause this field to be updated.
:type last_modified_utc_timestamp: datetime
:param sequence_number: The version of the property. Every time a property
is modified, its sequence number is increased.
:type sequence_number: str
"""
_attribute_map = {
'type_id': {'key': 'TypeId', 'type': 'str'},
'custom_type_id': {'key': 'CustomTypeId', 'type': 'str'},
'parent': {'key': 'Parent', 'type': 'str'},
'size_in_bytes': {'key': 'SizeInBytes', 'type': 'int'},
'last_modified_utc_timestamp': {'key': 'LastModifiedUtcTimestamp', 'type': 'iso-8601'},
'sequence_number': {'key': 'SequenceNumber', 'type': 'str'},
}
def __init__(self, *, type_id=None, custom_type_id: str=None, parent: str=None, size_in_bytes: int=None, last_modified_utc_timestamp=None, sequence_number: str=None, **kwargs) -> None:
super(PropertyMetadata, self).__init__(**kwargs)
self.type_id = type_id
self.custom_type_id = custom_type_id
self.parent = parent
self.size_in_bytes = size_in_bytes
self.last_modified_utc_timestamp = last_modified_utc_timestamp
self.sequence_number = sequence_number