Class: Azure::Network::Mgmt::V2020_03_01::Models::BastionSessionState

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

Overview

The session state detail for a target.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#messageString

Returns Used for extra information.

Returns:

  • (String)

    Used for extra information.


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

def message
  @message
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_session_state.rb', line 16

def session_id
  @session_id
end

#stateString

Disconnected/Failed/NotFound.

Returns:

  • (String)

    The state of the session.


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

def state
  @state
end

Class Method Details

.mapperObject

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


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
# File 'lib/2020-03-01/generated/azure_mgmt_network/models/bastion_session_state.rb', line 30

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'BastionSessionState',
    type: {
      name: 'Composite',
      class_name: 'BastionSessionState',
      model_properties: {
        session_id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'sessionId',
          type: {
            name: 'String'
          }
        },
        message: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'message',
          type: {
            name: 'String'
          }
        },
        state: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'state',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end