UpdateServiceGatewayDetails¶
-
class
oci.core.models.
UpdateServiceGatewayDetails
(**kwargs)¶ Bases:
object
UpdateServiceGatewayDetails model.
Methods
__init__
(**kwargs)Initializes a new UpdateServiceGatewayDetails object with values from keyword arguments. Attributes
block_traffic
Gets the block_traffic of this UpdateServiceGatewayDetails. defined_tags
Gets the defined_tags of this UpdateServiceGatewayDetails. display_name
Gets the display_name of this UpdateServiceGatewayDetails. freeform_tags
Gets the freeform_tags of this UpdateServiceGatewayDetails. route_table_id
Gets the route_table_id of this UpdateServiceGatewayDetails. services
Gets the services of this UpdateServiceGatewayDetails. -
__init__
(**kwargs)¶ Initializes a new UpdateServiceGatewayDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - block_traffic (bool) – The value to assign to the block_traffic property of this UpdateServiceGatewayDetails.
- defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this UpdateServiceGatewayDetails.
- display_name (str) – The value to assign to the display_name property of this UpdateServiceGatewayDetails.
- freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this UpdateServiceGatewayDetails.
- route_table_id (str) – The value to assign to the route_table_id property of this UpdateServiceGatewayDetails.
- services (list[oci.core.models.ServiceIdRequestDetails]) – The value to assign to the services property of this UpdateServiceGatewayDetails.
-
block_traffic
¶ Gets the block_traffic of this UpdateServiceGatewayDetails. Whether the service gateway blocks all traffic through it. The default is false. When this is true, traffic is not routed to any services, regardless of route rules.
Example: true
Returns: The block_traffic of this UpdateServiceGatewayDetails. Return type: bool
Gets the defined_tags of this UpdateServiceGatewayDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
Example: {“Operations”: {“CostCenter”: “42”}}
Returns: The defined_tags of this UpdateServiceGatewayDetails. Return type: dict(str, dict(str, object))
-
display_name
¶ Gets the display_name of this UpdateServiceGatewayDetails. A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.
Returns: The display_name of this UpdateServiceGatewayDetails. Return type: str
Gets the freeform_tags of this UpdateServiceGatewayDetails. Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
Example: {“Department”: “Finance”}
Returns: The freeform_tags of this UpdateServiceGatewayDetails. Return type: dict(str, str)
-
route_table_id
¶ Gets the route_table_id of this UpdateServiceGatewayDetails. The OCID of the route table the service gateway will use. For information about why you would associate a route table with a service gateway, see Transit Routing: Private Access to Oracle Services.
Returns: The route_table_id of this UpdateServiceGatewayDetails. Return type: str
-
services
¶ Gets the services of this UpdateServiceGatewayDetails. List of all the Service objects you want enabled on this service gateway. Sending an empty list means you want to disable all services. Omitting this parameter entirely keeps the existing list of services intact.
You can also enable or disable a particular Service by using
attach_service_id()
ordetach_service_id()
.For each enabled Service, make sure there’s a route rule with the Service object’s cidrBlock as the rule’s destination and the service gateway as the rule’s target. See
RouteTable
.Returns: The services of this UpdateServiceGatewayDetails. Return type: list[oci.core.models.ServiceIdRequestDetails]
-