Class: Azure::Network::Mgmt::V2020_05_01::Models::BastionActiveSession
- Inherits:
-
Object
- Object
- Azure::Network::Mgmt::V2020_05_01::Models::BastionActiveSession
- Includes:
- MsRestAzure
- Defined in:
- lib/2020-05-01/generated/azure_mgmt_network/models/bastion_active_session.rb
Overview
The session detail for a target.
Instance Attribute Summary collapse
-
#protocol ⇒ BastionConnectProtocol
target.
-
#resource_type ⇒ String
The type of the resource.
-
#session_duration_in_mins ⇒ Float
Duration in mins the session has been active.
-
#session_id ⇒ String
A unique id for the session.
-
#start_time ⇒ Object
The time when the session started.
-
#target_host_name ⇒ String
The host name of the target.
-
#target_ip_address ⇒ String
The IP Address of the target.
-
#target_resource_group ⇒ String
The resource group of the target.
-
#target_resource_id ⇒ String
The resource id of the target.
-
#target_subscription_id ⇒ String
The subscription id for the target virtual machine.
-
#user_name ⇒ String
The user name who is active on this session.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for BastionActiveSession class as Ruby Hash.
Instance Attribute Details
#protocol ⇒ BastionConnectProtocol
target. Possible values include: ‘SSH’, ‘RDP’
41 42 43 |
# File 'lib/2020-05-01/generated/azure_mgmt_network/models/bastion_active_session.rb', line 41 def protocol @protocol end |
#resource_type ⇒ String
Returns The type of the resource.
25 26 27 |
# File 'lib/2020-05-01/generated/azure_mgmt_network/models/bastion_active_session.rb', line 25 def resource_type @resource_type end |
#session_duration_in_mins ⇒ Float
Returns Duration in mins the session has been active.
47 48 49 |
# File 'lib/2020-05-01/generated/azure_mgmt_network/models/bastion_active_session.rb', line 47 def session_duration_in_mins @session_duration_in_mins end |
#session_id ⇒ String
Returns A unique id for the session.
16 17 18 |
# File 'lib/2020-05-01/generated/azure_mgmt_network/models/bastion_active_session.rb', line 16 def session_id @session_id end |
#start_time ⇒ Object
Returns The time when the session started.
19 20 21 |
# File 'lib/2020-05-01/generated/azure_mgmt_network/models/bastion_active_session.rb', line 19 def start_time @start_time end |
#target_host_name ⇒ String
Returns The host name of the target.
28 29 30 |
# File 'lib/2020-05-01/generated/azure_mgmt_network/models/bastion_active_session.rb', line 28 def target_host_name @target_host_name end |
#target_ip_address ⇒ String
Returns The IP Address of the target.
37 38 39 |
# File 'lib/2020-05-01/generated/azure_mgmt_network/models/bastion_active_session.rb', line 37 def target_ip_address @target_ip_address end |
#target_resource_group ⇒ String
Returns The resource group of the target.
31 32 33 |
# File 'lib/2020-05-01/generated/azure_mgmt_network/models/bastion_active_session.rb', line 31 def target_resource_group @target_resource_group end |
#target_resource_id ⇒ String
Returns The resource id of the target.
44 45 46 |
# File 'lib/2020-05-01/generated/azure_mgmt_network/models/bastion_active_session.rb', line 44 def target_resource_id @target_resource_id end |
#target_subscription_id ⇒ String
Returns The subscription id for the target virtual machine.
22 23 24 |
# File 'lib/2020-05-01/generated/azure_mgmt_network/models/bastion_active_session.rb', line 22 def target_subscription_id @target_subscription_id end |
#user_name ⇒ String
Returns The user name who is active on this session.
34 35 36 |
# File 'lib/2020-05-01/generated/azure_mgmt_network/models/bastion_active_session.rb', line 34 def user_name @user_name end |
Class Method Details
.mapper ⇒ Object
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-05-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 |