Class: Azure::Network::Mgmt::V2020_03_01::Models::BastionActiveSession

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2020-03-01/generated/azure_mgmt_network/models/bastion_active_session.rb

Overview

The session detail for a target.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#protocolBastionConnectProtocol

target. Possible values include: 'SSH', 'RDP'

Returns:


41
42
43
# File 'lib/2020-03-01/generated/azure_mgmt_network/models/bastion_active_session.rb', line 41

def protocol
  @protocol
end

#resource_typeString

Returns The type of the resource.

Returns:

  • (String)

    The type of the resource.


25
26
27
# File 'lib/2020-03-01/generated/azure_mgmt_network/models/bastion_active_session.rb', line 25

def resource_type
  @resource_type
end

#session_duration_in_minsFloat

Returns Duration in mins the session has been active.

Returns:

  • (Float)

    Duration in mins the session has been active.


47
48
49
# File 'lib/2020-03-01/generated/azure_mgmt_network/models/bastion_active_session.rb', line 47

def session_duration_in_mins
  @session_duration_in_mins
end

#session_idString

Returns A unique id for the session.

Returns:

  • (String)

    A unique id for the session.


16
17
18
# File 'lib/2020-03-01/generated/azure_mgmt_network/models/bastion_active_session.rb', line 16

def session_id
  @session_id
end

#start_timeObject

Returns The time when the session started.

Returns:

  • The time when the session started.


19
20
21
# File 'lib/2020-03-01/generated/azure_mgmt_network/models/bastion_active_session.rb', line 19

def start_time
  @start_time
end

#target_host_nameString

Returns The host name of the target.

Returns:

  • (String)

    The host name of the target.


28
29
30
# File 'lib/2020-03-01/generated/azure_mgmt_network/models/bastion_active_session.rb', line 28

def target_host_name
  @target_host_name
end

#target_ip_addressString

Returns The IP Address of the target.

Returns:

  • (String)

    The IP Address of the target.


37
38
39
# File 'lib/2020-03-01/generated/azure_mgmt_network/models/bastion_active_session.rb', line 37

def target_ip_address
  @target_ip_address
end

#target_resource_groupString

Returns The resource group of the target.

Returns:

  • (String)

    The resource group of the target.


31
32
33
# File 'lib/2020-03-01/generated/azure_mgmt_network/models/bastion_active_session.rb', line 31

def target_resource_group
  @target_resource_group
end

#target_resource_idString

Returns The resource id of the target.

Returns:

  • (String)

    The resource id of the target.


44
45
46
# File 'lib/2020-03-01/generated/azure_mgmt_network/models/bastion_active_session.rb', line 44

def target_resource_id
  @target_resource_id
end

#target_subscription_idString

Returns The subscription id for the target virtual machine.

Returns:

  • (String)

    The subscription id for the target virtual machine.


22
23
24
# File 'lib/2020-03-01/generated/azure_mgmt_network/models/bastion_active_session.rb', line 22

def target_subscription_id
  @target_subscription_id
end

#user_nameString

Returns The user name who is active on this session.

Returns:

  • (String)

    The user name who is active on this session.


34
35
36
# File 'lib/2020-03-01/generated/azure_mgmt_network/models/bastion_active_session.rb', line 34

def user_name
  @user_name
end

Class Method Details

.mapperObject

Mapper for BastionActiveSession class as Ruby Hash. This will be used for serialization/deserialization.


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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
# File 'lib/2020-03-01/generated/azure_mgmt_network/models/bastion_active_session.rb', line 54

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'BastionActiveSession',
    type: {
      name: 'Composite',
      class_name: 'BastionActiveSession',
      model_properties: {
        session_id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'sessionId',
          type: {
            name: 'String'
          }
        },
        start_time: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'startTime',
          type: {
            name: 'Object'
          }
        },
        target_subscription_id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'targetSubscriptionId',
          type: {
            name: 'String'
          }
        },
        resource_type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'resourceType',
          type: {
            name: 'String'
          }
        },
        target_host_name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'targetHostName',
          type: {
            name: 'String'
          }
        },
        target_resource_group: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'targetResourceGroup',
          type: {
            name: 'String'
          }
        },
        user_name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'userName',
          type: {
            name: 'String'
          }
        },
        target_ip_address: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'targetIpAddress',
          type: {
            name: 'String'
          }
        },
        protocol: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'protocol',
          type: {
            name: 'String'
          }
        },
        target_resource_id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'targetResourceId',
          type: {
            name: 'String'
          }
        },
        session_duration_in_mins: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'sessionDurationInMins',
          type: {
            name: 'Double'
          }
        }
      }
    }
  }
end