📂 Advanced File Manager
Multi-Root Navigation System
⚡ Quick Jump
Server (/)
Home (/home)
Var_www (/var/www)
Current (/home4/shelley/public_html/shelleycutler.com/wp-content/mu-plugins)
📍 Go
⬆ Ke Atas
🏠 Root Server
🏠 Root App
🔄 Refresh
📀 /
›
usr
›
lib
›
python3.9
›
site-packages
›
oci
›
service_mesh
›
models
›
📁 __pycache__
📍
Lokasi:
/usr/lib/python3.9/site-packages/oci/service_mesh/models/__pycache__
💾
Free:
45.8 GB
⚠️ Direktori ini
tidak writable
.
✏️ Mengedit: virtual_deployment_traffic_rule_target.cpython-39.pyc
a ���f � @ sD d dl mZ ddlmZmZmZ ddlmZ eG dd� de��ZdS )� )�TrafficRuleTarget� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ s~ e Zd ZdZdd� Zedd� �Zejdd� �Zedd� �Zejd d� �Zed d� �Z e jdd� �Z d d� Z dd� Zdd� ZdS )�"VirtualDeploymentTrafficRuleTargetz> Traffic router target for a virtual service version. c K sB ddddd�| _ ddddd�| _d| _d| _d| _d| _d | _dS ) a� Initializes a new VirtualDeploymentTrafficRuleTarget object with values from keyword arguments. The default value of the :py:attr:`~oci.service_mesh.models.VirtualDeploymentTrafficRuleTarget.type` attribute of this class is ``VIRTUAL_DEPLOYMENT`` and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param type: The value to assign to the type property of this VirtualDeploymentTrafficRuleTarget. Allowed values for this property are: "VIRTUAL_DEPLOYMENT", "VIRTUAL_SERVICE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type type: str :param virtual_deployment_id: The value to assign to the virtual_deployment_id property of this VirtualDeploymentTrafficRuleTarget. :type virtual_deployment_id: str :param port: The value to assign to the port property of this VirtualDeploymentTrafficRuleTarget. :type port: int :param weight: The value to assign to the weight property of this VirtualDeploymentTrafficRuleTarget. :type weight: int �str�int)�type�virtual_deployment_id�port�weightr ZvirtualDeploymentIdr r NZVIRTUAL_DEPLOYMENT)Z swagger_typesZ attribute_mapZ_type�_virtual_deployment_id�_port�_weight)�self�kwargs� r �b/usr/lib/python3.9/site-packages/oci/service_mesh/models/virtual_deployment_traffic_rule_target.py�__init__ s ��z+VirtualDeploymentTrafficRuleTarget.__init__c C s | j S )a Gets the virtual_deployment_id of this VirtualDeploymentTrafficRuleTarget. The OCID of the virtual deployment where the request will be routed. :return: The virtual_deployment_id of this VirtualDeploymentTrafficRuleTarget. :rtype: str �r �r r r r r ? s z8VirtualDeploymentTrafficRuleTarget.virtual_deployment_idc C s || _ dS )a* Sets the virtual_deployment_id of this VirtualDeploymentTrafficRuleTarget. The OCID of the virtual deployment where the request will be routed. :param virtual_deployment_id: The virtual_deployment_id of this VirtualDeploymentTrafficRuleTarget. :type: str Nr )r r r r r r K s c C s | j S )a+ Gets the port of this VirtualDeploymentTrafficRuleTarget. Port on virtual deployment to target. If port is missing, the rule will target all ports on the virtual deployment. :return: The port of this VirtualDeploymentTrafficRuleTarget. :rtype: int �r r r r r r W s z'VirtualDeploymentTrafficRuleTarget.portc C s || _ dS )a. Sets the port of this VirtualDeploymentTrafficRuleTarget. Port on virtual deployment to target. If port is missing, the rule will target all ports on the virtual deployment. :param port: The port of this VirtualDeploymentTrafficRuleTarget. :type: int Nr )r r r r r r d s c C s | j S )z� **[Required]** Gets the weight of this VirtualDeploymentTrafficRuleTarget. Weight of traffic target. :return: The weight of this VirtualDeploymentTrafficRuleTarget. :rtype: int �r r r r r r q s z)VirtualDeploymentTrafficRuleTarget.weightc C s || _ dS )z� Sets the weight of this VirtualDeploymentTrafficRuleTarget. Weight of traffic target. :param weight: The weight of this VirtualDeploymentTrafficRuleTarget. :type: int Nr )r r r r r r } s c C s t | �S �N)r r r r r �__repr__� s z+VirtualDeploymentTrafficRuleTarget.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__� s z)VirtualDeploymentTrafficRuleTarget.__eq__c C s | |k S r r r r r r �__ne__� s z)VirtualDeploymentTrafficRuleTarget.__ne__N) �__name__� __module__�__qualname__�__doc__r �propertyr �setterr r r r r! r r r r r s"