CreateDrgAttachmentDetails

class oci.core.models.CreateDrgAttachmentDetails(**kwargs)

Bases: object

CreateDrgAttachmentDetails model.

Methods

__init__(**kwargs) Initializes a new CreateDrgAttachmentDetails object with values from keyword arguments.

Attributes

defined_tags Gets the defined_tags of this CreateDrgAttachmentDetails.
display_name Gets the display_name of this CreateDrgAttachmentDetails.
does_preserve_original_routes_with_nat Gets the does_preserve_original_routes_with_nat of this CreateDrgAttachmentDetails.
drg_id [Required] Gets the drg_id of this CreateDrgAttachmentDetails.
drg_nat_policy_id Gets the drg_nat_policy_id of this CreateDrgAttachmentDetails.
drg_route_table_id Gets the drg_route_table_id of this CreateDrgAttachmentDetails.
freeform_tags Gets the freeform_tags of this CreateDrgAttachmentDetails.
network_details Gets the network_details of this CreateDrgAttachmentDetails.
route_table_id Gets the route_table_id of this CreateDrgAttachmentDetails.
vcn_id Gets the vcn_id of this CreateDrgAttachmentDetails.
__init__(**kwargs)

Initializes a new CreateDrgAttachmentDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • display_name (str) – The value to assign to the display_name property of this CreateDrgAttachmentDetails.
  • drg_id (str) – The value to assign to the drg_id property of this CreateDrgAttachmentDetails.
  • drg_route_table_id (str) – The value to assign to the drg_route_table_id property of this CreateDrgAttachmentDetails.
  • network_details (oci.core.models.DrgAttachmentNetworkCreateDetails) – The value to assign to the network_details property of this CreateDrgAttachmentDetails.
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this CreateDrgAttachmentDetails.
  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this CreateDrgAttachmentDetails.
  • route_table_id (str) – The value to assign to the route_table_id property of this CreateDrgAttachmentDetails.
  • vcn_id (str) – The value to assign to the vcn_id property of this CreateDrgAttachmentDetails.
  • drg_nat_policy_id (str) – The value to assign to the drg_nat_policy_id property of this CreateDrgAttachmentDetails.
  • does_preserve_original_routes_with_nat (bool) – The value to assign to the does_preserve_original_routes_with_nat property of this CreateDrgAttachmentDetails.
defined_tags

Gets the defined_tags of this CreateDrgAttachmentDetails. 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 CreateDrgAttachmentDetails.
Return type:dict(str, dict(str, object))
display_name

Gets the display_name of this CreateDrgAttachmentDetails. A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.

Returns:The display_name of this CreateDrgAttachmentDetails.
Return type:str
does_preserve_original_routes_with_nat

Gets the does_preserve_original_routes_with_nat of this CreateDrgAttachmentDetails. By default, only translated DrgNatRule CIDRs are imported into the DrgRouteTable to prevent routing complications. Enable this option to also preserve original CIDRs. The original source CIDRs is not advertised if this value is set to false, else it is advertised. default: false

Returns:The does_preserve_original_routes_with_nat of this CreateDrgAttachmentDetails.
Return type:bool
drg_id

[Required] Gets the drg_id of this CreateDrgAttachmentDetails. The OCID of the DRG.

Returns:The drg_id of this CreateDrgAttachmentDetails.
Return type:str
drg_nat_policy_id

Gets the drg_nat_policy_id of this CreateDrgAttachmentDetails. The OCID of the DRG attachment’s DRG NAT policy.

Returns:The drg_nat_policy_id of this CreateDrgAttachmentDetails.
Return type:str
drg_route_table_id

Gets the drg_route_table_id of this CreateDrgAttachmentDetails. The OCID of the DRG route table that is assigned to this attachment.

The DRG route table manages traffic inside the DRG.

Returns:The drg_route_table_id of this CreateDrgAttachmentDetails.
Return type:str
freeform_tags

Gets the freeform_tags of this CreateDrgAttachmentDetails. 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 CreateDrgAttachmentDetails.
Return type:dict(str, str)
network_details

Gets the network_details of this CreateDrgAttachmentDetails.

Returns:The network_details of this CreateDrgAttachmentDetails.
Return type:oci.core.models.DrgAttachmentNetworkCreateDetails
route_table_id

Gets the route_table_id of this CreateDrgAttachmentDetails. The OCID of the route table used by the DRG attachment.

If you don’t specify a route table here, the DRG attachment is created without an associated route table. The Networking service does NOT automatically associate the attached VCN’s default route table with the DRG attachment. For information about why you would associate a route table with a DRG attachment, see:

This field is deprecated. Instead, use the networkDetails field to specify the VCN route table for this attachment.

Returns:The route_table_id of this CreateDrgAttachmentDetails.
Return type:str
vcn_id

Gets the vcn_id of this CreateDrgAttachmentDetails. The OCID of the VCN. This field is deprecated. Instead, use the networkDetails field to specify the OCID of the attached resource.

Returns:The vcn_id of this CreateDrgAttachmentDetails.
Return type:str