class Azure::Network::Mgmt::V2020_05_01::Models::BastionActiveSession

The session detail for a target.

Attributes

protocol[RW]

@return [BastionConnectProtocol] The protocol used to connect to the target. Possible values include: 'SSH', 'RDP'

resource_type[RW]

@return [String] The type of the resource.

session_duration_in_mins[RW]

@return [Float] Duration in mins the session has been active.

session_id[RW]

@return [String] A unique id for the session.

start_time[RW]

@return The time when the session started.

target_host_name[RW]

@return [String] The host name of the target.

target_ip_address[RW]

@return [String] The IP Address of the target.

target_resource_group[RW]

@return [String] The resource group of the target.

target_resource_id[RW]

@return [String] The resource id of the target.

target_subscription_id[RW]

@return [String] The subscription id for the target virtual machine.

user_name[RW]

@return [String] The user name who is active on this session.

Public Class Methods

mapper() click to toggle source

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

# 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