CreateSessionTargetResourceDetails¶
- class oci.bastion.models.CreateSessionTargetResourceDetails(**kwargs)¶
Bases:
objectDetails about a bastion session’s target resource.
Attributes:
A constant which can be used with the session_type property of a CreateSessionTargetResourceDetails.
A constant which can be used with the session_type property of a CreateSessionTargetResourceDetails.
A constant which can be used with the session_type property of a CreateSessionTargetResourceDetails.
[Required] Gets the session_type of this CreateSessionTargetResourceDetails.
Methods:
__init__(**kwargs)Initializes a new CreateSessionTargetResourceDetails object with values from keyword arguments.
get_subtype(object_dictionary)Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
- SESSION_TYPE_DYNAMIC_PORT_FORWARDING = 'DYNAMIC_PORT_FORWARDING'¶
A constant which can be used with the session_type property of a CreateSessionTargetResourceDetails. This constant has a value of “DYNAMIC_PORT_FORWARDING”
- SESSION_TYPE_MANAGED_SSH = 'MANAGED_SSH'¶
A constant which can be used with the session_type property of a CreateSessionTargetResourceDetails. This constant has a value of “MANAGED_SSH”
- SESSION_TYPE_PORT_FORWARDING = 'PORT_FORWARDING'¶
A constant which can be used with the session_type property of a CreateSessionTargetResourceDetails. This constant has a value of “PORT_FORWARDING”
- __init__(**kwargs)¶
Initializes a new CreateSessionTargetResourceDetails object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class:
The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
session_type (str) – The value to assign to the session_type property of this CreateSessionTargetResourceDetails. Allowed values for this property are: “MANAGED_SSH”, “PORT_FORWARDING”, “DYNAMIC_PORT_FORWARDING”
- static get_subtype(object_dictionary)¶
Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
- property session_type¶
[Required] Gets the session_type of this CreateSessionTargetResourceDetails. The session type.
Allowed values for this property are: “MANAGED_SSH”, “PORT_FORWARDING”, “DYNAMIC_PORT_FORWARDING”
- Returns
The session_type of this CreateSessionTargetResourceDetails.
- Return type
str