VirtualDeploymentTrafficRuleTargetDetails

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

Bases: oci.service_mesh.models.traffic_rule_target_details.TrafficRuleTargetDetails

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 VirtualDeploymentTrafficRuleTargetDetails.
type [Required] Gets the type of this TrafficRuleTargetDetails.
virtual_deployment_id [Required] Gets the virtual_deployment_id of this VirtualDeploymentTrafficRuleTargetDetails.
weight [Required] Gets the weight of this VirtualDeploymentTrafficRuleTargetDetails.

Methods

__init__(**kwargs) Initializes a new VirtualDeploymentTrafficRuleTargetDetails 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 VirtualDeploymentTrafficRuleTargetDetails 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 VirtualDeploymentTrafficRuleTargetDetails. Allowed values for this property are: “VIRTUAL_DEPLOYMENT”, “VIRTUAL_SERVICE”
  • virtual_deployment_id (str) – The value to assign to the virtual_deployment_id property of this VirtualDeploymentTrafficRuleTargetDetails.
  • port (int) – The value to assign to the port property of this VirtualDeploymentTrafficRuleTargetDetails.
  • weight (int) – The value to assign to the weight property of this VirtualDeploymentTrafficRuleTargetDetails.
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 VirtualDeploymentTrafficRuleTargetDetails. 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 VirtualDeploymentTrafficRuleTargetDetails.
Return type:int
type

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

Allowed values for this property are: “VIRTUAL_DEPLOYMENT”, “VIRTUAL_SERVICE”

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

[Required] Gets the virtual_deployment_id of this VirtualDeploymentTrafficRuleTargetDetails. The OCID of the virtual deployment where the request will be routed.

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

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

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