# coding=utf-8
# --------------------------------------------------------------------------
# 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 AdiEmsWebApiV2DtoSchemaUpdate(Model):
    """Represents the options used to make up an update.

    All required parameters must be populated in order to send to Azure.

    :param update_columns: Required. An array specifying the fields to update
     (and their values).
    :type update_columns: list[~emsapi.models.AdiEmsWebApiV2DtoSchemaColumn]
    :param filter: A filter used to narrow the update results.
    :type filter: ~emsapi.models.AdiEmsWebApiV2DtoSchemaFilter
    """

    _validation = {
        'update_columns': {'required': True},
    }

    _attribute_map = {
        'update_columns': {'key': 'updateColumns', 'type': '[AdiEmsWebApiV2DtoSchemaColumn]'},
        'filter': {'key': 'filter', 'type': 'AdiEmsWebApiV2DtoSchemaFilter'},
    }

    def __init__(self, **kwargs):
        super(AdiEmsWebApiV2DtoSchemaUpdate, self).__init__(**kwargs)
        self.update_columns = kwargs.get('update_columns', None)
        self.filter = kwargs.get('filter', None)
