File: events_client_info.py

package info (click to toggle)
python-azure 20181112%2Bgit-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 407,300 kB
  • sloc: python: 717,190; makefile: 201; sh: 76
file content (56 lines) | stat: -rw-r--r-- 2,109 bytes parent folder | download | duplicates (3)
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
# 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 EventsClientInfo(Model):
    """Client info for an event result.

    :param model: Model of the client
    :type model: str
    :param os: Operating system of the client
    :type os: str
    :param type: Type of the client
    :type type: str
    :param browser: Browser of the client
    :type browser: str
    :param ip: IP address of the client
    :type ip: str
    :param city: City of the client
    :type city: str
    :param state_or_province: State or province of the client
    :type state_or_province: str
    :param country_or_region: Country or region of the client
    :type country_or_region: str
    """

    _attribute_map = {
        'model': {'key': 'model', 'type': 'str'},
        'os': {'key': 'os', 'type': 'str'},
        'type': {'key': 'type', 'type': 'str'},
        'browser': {'key': 'browser', 'type': 'str'},
        'ip': {'key': 'ip', 'type': 'str'},
        'city': {'key': 'city', 'type': 'str'},
        'state_or_province': {'key': 'stateOrProvince', 'type': 'str'},
        'country_or_region': {'key': 'countryOrRegion', 'type': 'str'},
    }

    def __init__(self, **kwargs):
        super(EventsClientInfo, self).__init__(**kwargs)
        self.model = kwargs.get('model', None)
        self.os = kwargs.get('os', None)
        self.type = kwargs.get('type', None)
        self.browser = kwargs.get('browser', None)
        self.ip = kwargs.get('ip', None)
        self.city = kwargs.get('city', None)
        self.state_or_province = kwargs.get('state_or_province', None)
        self.country_or_region = kwargs.get('country_or_region', None)