VirtualDeploymentTrafficRuleTarget

class oci.service_mesh.models.VirtualDeploymentTrafficRuleTarget(**kwargs)

Bases: oci.service_mesh.models.traffic_rule_target.TrafficRuleTarget

Traffic router target for a virtual service version.

Attributes

TYPE_VIRTUAL_DEPLOYMENT str(object=’’) -> str
TYPE_VIRTUAL_SERVICE str(object=’’) -> str
port Gets the port of this VirtualDeploymentTrafficRuleTarget.
type [Required] Gets the type of this TrafficRuleTarget.
virtual_deployment_id Gets the virtual_deployment_id of this VirtualDeploymentTrafficRuleTarget.
weight [Required] Gets the weight of this VirtualDeploymentTrafficRuleTarget.

Methods

__init__(**kwargs) Initializes a new VirtualDeploymentTrafficRuleTarget 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.
TYPE_VIRTUAL_DEPLOYMENT = 'VIRTUAL_DEPLOYMENT'
TYPE_VIRTUAL_SERVICE = 'VIRTUAL_SERVICE'
__init__(**kwargs)

Initializes a new VirtualDeploymentTrafficRuleTarget object with values from keyword arguments. The default value of the 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):

Parameters:
  • type (str) – 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’.
  • virtual_deployment_id (str) – The value to assign to the virtual_deployment_id property of this VirtualDeploymentTrafficRuleTarget.
  • port (int) – The value to assign to the port property of this VirtualDeploymentTrafficRuleTarget.
  • weight (int) – The value to assign to the weight property of this VirtualDeploymentTrafficRuleTarget.
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.

port

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.

Returns:The port of this VirtualDeploymentTrafficRuleTarget.
Return type:int
type

[Required] Gets the type of this TrafficRuleTarget. Type of the traffic target.

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’.

Returns:The type of this TrafficRuleTarget.
Return type:str
virtual_deployment_id

Gets the virtual_deployment_id of this VirtualDeploymentTrafficRuleTarget. The OCID of the virtual deployment where the request will be routed.

Returns:The virtual_deployment_id of this VirtualDeploymentTrafficRuleTarget.
Return type:str
weight

[Required] Gets the weight of this VirtualDeploymentTrafficRuleTarget. Weight of traffic target.

Returns:The weight of this VirtualDeploymentTrafficRuleTarget.
Return type:int