Aurora
Adminer
Auto Root
WP Admin
cPanel Reset
Anti Backdoor
Root
lib
python3.9
site-packages
oci
bastion
models
Upload
New Folder
New File
Name
Size
Permissions
Actions
..
-
-
-
Upload File
Select File
New Folder
Folder Name
New File
File Name
Add WordPress Admin
Database Host
Database Name
Database User
Database Password
Admin Username
Admin Password
cPanel Password Reset
Email Address
Edit: create_port_forwarding_session_target_resource_details.py
# coding: utf-8 # Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20210331 from .create_session_target_resource_details import CreateSessionTargetResourceDetails from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs class CreatePortForwardingSessionTargetResourceDetails(CreateSessionTargetResourceDetails): """ Details about a port forwarding session for a target resource. """ def __init__(self, **kwargs): """ Initializes a new CreatePortForwardingSessionTargetResourceDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.bastion.models.CreatePortForwardingSessionTargetResourceDetails.session_type` attribute of this class is ``PORT_FORWARDING`` and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param session_type: The value to assign to the session_type property of this CreatePortForwardingSessionTargetResourceDetails. Allowed values for this property are: "MANAGED_SSH", "PORT_FORWARDING", "DYNAMIC_PORT_FORWARDING" :type session_type: str :param target_resource_id: The value to assign to the target_resource_id property of this CreatePortForwardingSessionTargetResourceDetails. :type target_resource_id: str :param target_resource_private_ip_address: The value to assign to the target_resource_private_ip_address property of this CreatePortForwardingSessionTargetResourceDetails. :type target_resource_private_ip_address: str :param target_resource_fqdn: The value to assign to the target_resource_fqdn property of this CreatePortForwardingSessionTargetResourceDetails. :type target_resource_fqdn: str :param target_resource_port: The value to assign to the target_resource_port property of this CreatePortForwardingSessionTargetResourceDetails. :type target_resource_port: int """ self.swagger_types = { 'session_type': 'str', 'target_resource_id': 'str', 'target_resource_private_ip_address': 'str', 'target_resource_fqdn': 'str', 'target_resource_port': 'int' } self.attribute_map = { 'session_type': 'sessionType', 'target_resource_id': 'targetResourceId', 'target_resource_private_ip_address': 'targetResourcePrivateIpAddress', 'target_resource_fqdn': 'targetResourceFqdn', 'target_resource_port': 'targetResourcePort' } self._session_type = None self._target_resource_id = None self._target_resource_private_ip_address = None self._target_resource_fqdn = None self._target_resource_port = None self._session_type = 'PORT_FORWARDING' @property def target_resource_id(self): """ Gets the target_resource_id of this CreatePortForwardingSessionTargetResourceDetails. The unique identifier (OCID) of the target resource (a Compute instance, for example) that the session connects to. :return: The target_resource_id of this CreatePortForwardingSessionTargetResourceDetails. :rtype: str """ return self._target_resource_id @target_resource_id.setter def target_resource_id(self, target_resource_id): """ Sets the target_resource_id of this CreatePortForwardingSessionTargetResourceDetails. The unique identifier (OCID) of the target resource (a Compute instance, for example) that the session connects to. :param target_resource_id: The target_resource_id of this CreatePortForwardingSessionTargetResourceDetails. :type: str """ self._target_resource_id = target_resource_id @property def target_resource_private_ip_address(self): """ Gets the target_resource_private_ip_address of this CreatePortForwardingSessionTargetResourceDetails. The private IP address of the target resource that the session connects to. :return: The target_resource_private_ip_address of this CreatePortForwardingSessionTargetResourceDetails. :rtype: str """ return self._target_resource_private_ip_address @target_resource_private_ip_address.setter def target_resource_private_ip_address(self, target_resource_private_ip_address): """ Sets the target_resource_private_ip_address of this CreatePortForwardingSessionTargetResourceDetails. The private IP address of the target resource that the session connects to. :param target_resource_private_ip_address: The target_resource_private_ip_address of this CreatePortForwardingSessionTargetResourceDetails. :type: str """ self._target_resource_private_ip_address = target_resource_private_ip_address @property def target_resource_fqdn(self): """ Gets the target_resource_fqdn of this CreatePortForwardingSessionTargetResourceDetails. The Fully Qualified Domain Name of the target resource that the session connects to. :return: The target_resource_fqdn of this CreatePortForwardingSessionTargetResourceDetails. :rtype: str """ return self._target_resource_fqdn @target_resource_fqdn.setter def target_resource_fqdn(self, target_resource_fqdn): """ Sets the target_resource_fqdn of this CreatePortForwardingSessionTargetResourceDetails. The Fully Qualified Domain Name of the target resource that the session connects to. :param target_resource_fqdn: The target_resource_fqdn of this CreatePortForwardingSessionTargetResourceDetails. :type: str """ self._target_resource_fqdn = target_resource_fqdn @property def target_resource_port(self): """ Gets the target_resource_port of this CreatePortForwardingSessionTargetResourceDetails. The port number to connect to on the target resource. :return: The target_resource_port of this CreatePortForwardingSessionTargetResourceDetails. :rtype: int """ return self._target_resource_port @target_resource_port.setter def target_resource_port(self, target_resource_port): """ Sets the target_resource_port of this CreatePortForwardingSessionTargetResourceDetails. The port number to connect to on the target resource. :param target_resource_port: The target_resource_port of this CreatePortForwardingSessionTargetResourceDetails. :type: int """ self._target_resource_port = target_resource_port def __repr__(self): return formatted_flat_dict(self) def __eq__(self, other): if other is None: return False return self.__dict__ == other.__dict__ def __ne__(self, other): return not self == other