Aurora
Adminer
Auto Root
WP Admin
cPanel Reset
Anti Backdoor
Root
lib
python3.9
site-packages
oci
disaster_recovery
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: compute_instance_vnic_mapping.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: 20220125 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 ComputeInstanceVnicMapping(object): """ Deprecated. Source VNIC to destination subnet mapping for a compute instance. """ def __init__(self, **kwargs): """ Initializes a new ComputeInstanceVnicMapping object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param source_vnic_id: The value to assign to the source_vnic_id property of this ComputeInstanceVnicMapping. :type source_vnic_id: str :param destination_subnet_id: The value to assign to the destination_subnet_id property of this ComputeInstanceVnicMapping. :type destination_subnet_id: str :param destination_nsg_id_list: The value to assign to the destination_nsg_id_list property of this ComputeInstanceVnicMapping. :type destination_nsg_id_list: list[str] """ self.swagger_types = { 'source_vnic_id': 'str', 'destination_subnet_id': 'str', 'destination_nsg_id_list': 'list[str]' } self.attribute_map = { 'source_vnic_id': 'sourceVnicId', 'destination_subnet_id': 'destinationSubnetId', 'destination_nsg_id_list': 'destinationNsgIdList' } self._source_vnic_id = None self._destination_subnet_id = None self._destination_nsg_id_list = None @property def source_vnic_id(self): """ **[Required]** Gets the source_vnic_id of this ComputeInstanceVnicMapping. The OCID of the VNIC. Example: `ocid1.vnic.oc1..uniqueID` :return: The source_vnic_id of this ComputeInstanceVnicMapping. :rtype: str """ return self._source_vnic_id @source_vnic_id.setter def source_vnic_id(self, source_vnic_id): """ Sets the source_vnic_id of this ComputeInstanceVnicMapping. The OCID of the VNIC. Example: `ocid1.vnic.oc1..uniqueID` :param source_vnic_id: The source_vnic_id of this ComputeInstanceVnicMapping. :type: str """ self._source_vnic_id = source_vnic_id @property def destination_subnet_id(self): """ **[Required]** Gets the destination_subnet_id of this ComputeInstanceVnicMapping. The OCID of the destination subnet to which the source VNIC should connect. Example: `ocid1.subnet.oc1..uniqueID` :return: The destination_subnet_id of this ComputeInstanceVnicMapping. :rtype: str """ return self._destination_subnet_id @destination_subnet_id.setter def destination_subnet_id(self, destination_subnet_id): """ Sets the destination_subnet_id of this ComputeInstanceVnicMapping. The OCID of the destination subnet to which the source VNIC should connect. Example: `ocid1.subnet.oc1..uniqueID` :param destination_subnet_id: The destination_subnet_id of this ComputeInstanceVnicMapping. :type: str """ self._destination_subnet_id = destination_subnet_id @property def destination_nsg_id_list(self): """ Gets the destination_nsg_id_list of this ComputeInstanceVnicMapping. A list of OCIDs of network security groups (NSG) in the destination region which should be assigned to the source VNIC. Example: `[ ocid1.networksecuritygroup.oc1..uniqueID1, ocid1.networksecuritygroup.oc1..uniqueID2 ]` :return: The destination_nsg_id_list of this ComputeInstanceVnicMapping. :rtype: list[str] """ return self._destination_nsg_id_list @destination_nsg_id_list.setter def destination_nsg_id_list(self, destination_nsg_id_list): """ Sets the destination_nsg_id_list of this ComputeInstanceVnicMapping. A list of OCIDs of network security groups (NSG) in the destination region which should be assigned to the source VNIC. Example: `[ ocid1.networksecuritygroup.oc1..uniqueID1, ocid1.networksecuritygroup.oc1..uniqueID2 ]` :param destination_nsg_id_list: The destination_nsg_id_list of this ComputeInstanceVnicMapping. :type: list[str] """ self._destination_nsg_id_list = destination_nsg_id_list 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