File: gateway_status.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 (126 lines) | stat: -rw-r--r-- 7,000 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
# 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 GatewayStatus(Model):
    """Expanded gateway status information.

    :param available_memory_mbyte: The available memory on the gateway host
     machine in megabytes.
    :type available_memory_mbyte: float
    :param gateway_cpu_utilization_percent: The CPU utilization of the gateway
     process (numeric value between 0 and 100).
    :type gateway_cpu_utilization_percent: float
    :param total_cpu_utilization_percent: CPU Utilization of the whole system.
    :type total_cpu_utilization_percent: float
    :param gateway_version: The version of the gateway that is installed on
     the system.
    :type gateway_version: str
    :param friendly_os_name: The Plaintext description of the OS on the
     gateway.
    :type friendly_os_name: str
    :param installed_date: The date the gateway was installed.
    :type installed_date: datetime
    :param logical_processor_count: Number of logical processors in the
     gateway system.
    :type logical_processor_count: int
    :param name: The computer name of the gateway system.
    :type name: str
    :param gateway_id: The gateway resource ID.
    :type gateway_id: str
    :param gateway_working_set_mbyte: The working set size of the gateway
     process in megabytes.
    :type gateway_working_set_mbyte: float
    :param status_updated: UTC date and time when gateway status was last
     updated.
    :type status_updated: datetime
    :param group_policy_error: The group policy error.
    :type group_policy_error: str
    :param allow_gateway_group_policy_status: Status of the
     allowGatewayGroupPolicy setting.
    :type allow_gateway_group_policy_status: bool
    :param require_mfa_group_policy_status: Status of the
     requireMfaGroupPolicy setting.
    :type require_mfa_group_policy_status: bool
    :param encryption_certificate_thumbprint: Thumbprint of the encryption
     certificate.
    :type encryption_certificate_thumbprint: str
    :param secondary_encryption_certificate_thumbprint: Secondary thumbprint
     of the encryption certificate.
    :type secondary_encryption_certificate_thumbprint: str
    :param encryption_jwk: The encryption certificate key.
    :type encryption_jwk:
     ~azure.mgmt.servermanager.models.EncryptionJwkResource
    :param secondary_encryption_jwk: The secondary encryption certificate key.
    :type secondary_encryption_jwk:
     ~azure.mgmt.servermanager.models.EncryptionJwkResource
    :param active_message_count: Active message count.
    :type active_message_count: int
    :param latest_published_msi_version: Latest published version of the
     gateway install MSI.
    :type latest_published_msi_version: str
    :param published_time_utc: Gateway install MSI published time.
    :type published_time_utc: datetime
    """

    _validation = {
        'gateway_cpu_utilization_percent': {'maximum': 100, 'minimum': 0},
    }

    _attribute_map = {
        'available_memory_mbyte': {'key': 'availableMemoryMByte', 'type': 'float'},
        'gateway_cpu_utilization_percent': {'key': 'gatewayCpuUtilizationPercent', 'type': 'float'},
        'total_cpu_utilization_percent': {'key': 'totalCpuUtilizationPercent', 'type': 'float'},
        'gateway_version': {'key': 'gatewayVersion', 'type': 'str'},
        'friendly_os_name': {'key': 'friendlyOsName', 'type': 'str'},
        'installed_date': {'key': 'installedDate', 'type': 'iso-8601'},
        'logical_processor_count': {'key': 'logicalProcessorCount', 'type': 'int'},
        'name': {'key': 'name', 'type': 'str'},
        'gateway_id': {'key': 'gatewayId', 'type': 'str'},
        'gateway_working_set_mbyte': {'key': 'gatewayWorkingSetMByte', 'type': 'float'},
        'status_updated': {'key': 'statusUpdated', 'type': 'iso-8601'},
        'group_policy_error': {'key': 'groupPolicyError', 'type': 'str'},
        'allow_gateway_group_policy_status': {'key': 'allowGatewayGroupPolicyStatus', 'type': 'bool'},
        'require_mfa_group_policy_status': {'key': 'requireMfaGroupPolicyStatus', 'type': 'bool'},
        'encryption_certificate_thumbprint': {'key': 'encryptionCertificateThumbprint', 'type': 'str'},
        'secondary_encryption_certificate_thumbprint': {'key': 'secondaryEncryptionCertificateThumbprint', 'type': 'str'},
        'encryption_jwk': {'key': 'encryptionJwk', 'type': 'EncryptionJwkResource'},
        'secondary_encryption_jwk': {'key': 'secondaryEncryptionJwk', 'type': 'EncryptionJwkResource'},
        'active_message_count': {'key': 'activeMessageCount', 'type': 'int'},
        'latest_published_msi_version': {'key': 'latestPublishedMsiVersion', 'type': 'str'},
        'published_time_utc': {'key': 'publishedTimeUtc', 'type': 'iso-8601'},
    }

    def __init__(self, **kwargs):
        super(GatewayStatus, self).__init__(**kwargs)
        self.available_memory_mbyte = kwargs.get('available_memory_mbyte', None)
        self.gateway_cpu_utilization_percent = kwargs.get('gateway_cpu_utilization_percent', None)
        self.total_cpu_utilization_percent = kwargs.get('total_cpu_utilization_percent', None)
        self.gateway_version = kwargs.get('gateway_version', None)
        self.friendly_os_name = kwargs.get('friendly_os_name', None)
        self.installed_date = kwargs.get('installed_date', None)
        self.logical_processor_count = kwargs.get('logical_processor_count', None)
        self.name = kwargs.get('name', None)
        self.gateway_id = kwargs.get('gateway_id', None)
        self.gateway_working_set_mbyte = kwargs.get('gateway_working_set_mbyte', None)
        self.status_updated = kwargs.get('status_updated', None)
        self.group_policy_error = kwargs.get('group_policy_error', None)
        self.allow_gateway_group_policy_status = kwargs.get('allow_gateway_group_policy_status', None)
        self.require_mfa_group_policy_status = kwargs.get('require_mfa_group_policy_status', None)
        self.encryption_certificate_thumbprint = kwargs.get('encryption_certificate_thumbprint', None)
        self.secondary_encryption_certificate_thumbprint = kwargs.get('secondary_encryption_certificate_thumbprint', None)
        self.encryption_jwk = kwargs.get('encryption_jwk', None)
        self.secondary_encryption_jwk = kwargs.get('secondary_encryption_jwk', None)
        self.active_message_count = kwargs.get('active_message_count', None)
        self.latest_published_msi_version = kwargs.get('latest_published_msi_version', None)
        self.published_time_utc = kwargs.get('published_time_utc', None)