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
|
# 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 .resource import Resource
class PowerShellSessionResource(Resource):
"""A PowerShell session resource (practically equivalent to a runspace
instance).
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar id: Resource Manager Resource ID.
:vartype id: str
:ivar type: Resource Manager Resource Type.
:vartype type: str
:ivar name: Resource Manager Resource Name.
:vartype name: str
:ivar location: Resource Manager Resource Location.
:vartype location: str
:param tags: Resource Manager Resource Tags.
:type tags: dict[str, str]
:param etag:
:type etag: str
:param session_id: The PowerShell Session ID.
:type session_id: str
:param state: The runspace state.
:type state: str
:param runspace_availability: The availability of the runspace.
:type runspace_availability: str
:param disconnected_on: Timestamp of last time the service disconnected
from the runspace.
:type disconnected_on: datetime
:param expires_on: Timestamp when the runspace expires.
:type expires_on: datetime
:param version:
:type version: ~azure.mgmt.servermanager.models.Version
:param power_shell_session_resource_name: Name of the runspace.
:type power_shell_session_resource_name: str
"""
_validation = {
'id': {'readonly': True},
'type': {'readonly': True},
'name': {'readonly': True},
'location': {'readonly': True},
}
_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'location': {'key': 'location', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'etag': {'key': 'etag', 'type': 'str'},
'session_id': {'key': 'properties.sessionId', 'type': 'str'},
'state': {'key': 'properties.state', 'type': 'str'},
'runspace_availability': {'key': 'properties.runspaceAvailability', 'type': 'str'},
'disconnected_on': {'key': 'properties.disconnectedOn', 'type': 'iso-8601'},
'expires_on': {'key': 'properties.expiresOn', 'type': 'iso-8601'},
'version': {'key': 'properties.version', 'type': 'Version'},
'power_shell_session_resource_name': {'key': 'properties.name', 'type': 'str'},
}
def __init__(self, **kwargs):
super(PowerShellSessionResource, self).__init__(**kwargs)
self.session_id = kwargs.get('session_id', None)
self.state = kwargs.get('state', None)
self.runspace_availability = kwargs.get('runspace_availability', None)
self.disconnected_on = kwargs.get('disconnected_on', None)
self.expires_on = kwargs.get('expires_on', None)
self.version = kwargs.get('version', None)
self.power_shell_session_resource_name = kwargs.get('power_shell_session_resource_name', None)
|