ResolverEndpoint

class oci.dns.models.ResolverEndpoint(**kwargs)

Bases: object

An OCI DNS resolver endpoint.

Warning: Oracle recommends that you avoid using any confidential information when you supply string values using the API.

Attributes

ENDPOINT_TYPE_VNIC A constant which can be used with the endpoint_type property of a ResolverEndpoint.
LIFECYCLE_STATE_ACTIVE A constant which can be used with the lifecycle_state property of a ResolverEndpoint.
LIFECYCLE_STATE_CREATING A constant which can be used with the lifecycle_state property of a ResolverEndpoint.
LIFECYCLE_STATE_DELETED A constant which can be used with the lifecycle_state property of a ResolverEndpoint.
LIFECYCLE_STATE_DELETING A constant which can be used with the lifecycle_state property of a ResolverEndpoint.
LIFECYCLE_STATE_FAILED A constant which can be used with the lifecycle_state property of a ResolverEndpoint.
LIFECYCLE_STATE_UPDATING A constant which can be used with the lifecycle_state property of a ResolverEndpoint.
compartment_id [Required] Gets the compartment_id of this ResolverEndpoint.
endpoint_type Gets the endpoint_type of this ResolverEndpoint.
forwarding_address Gets the forwarding_address of this ResolverEndpoint.
is_forwarding [Required] Gets the is_forwarding of this ResolverEndpoint.
is_listening [Required] Gets the is_listening of this ResolverEndpoint.
lifecycle_state [Required] Gets the lifecycle_state of this ResolverEndpoint.
listening_address Gets the listening_address of this ResolverEndpoint.
name [Required] Gets the name of this ResolverEndpoint.
time_created [Required] Gets the time_created of this ResolverEndpoint.
time_updated [Required] Gets the time_updated of this ResolverEndpoint.

Methods

__init__(**kwargs) Initializes a new ResolverEndpoint 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.
ENDPOINT_TYPE_VNIC = 'VNIC'

A constant which can be used with the endpoint_type property of a ResolverEndpoint. This constant has a value of “VNIC”

LIFECYCLE_STATE_ACTIVE = 'ACTIVE'

A constant which can be used with the lifecycle_state property of a ResolverEndpoint. This constant has a value of “ACTIVE”

LIFECYCLE_STATE_CREATING = 'CREATING'

A constant which can be used with the lifecycle_state property of a ResolverEndpoint. This constant has a value of “CREATING”

LIFECYCLE_STATE_DELETED = 'DELETED'

A constant which can be used with the lifecycle_state property of a ResolverEndpoint. This constant has a value of “DELETED”

LIFECYCLE_STATE_DELETING = 'DELETING'

A constant which can be used with the lifecycle_state property of a ResolverEndpoint. This constant has a value of “DELETING”

LIFECYCLE_STATE_FAILED = 'FAILED'

A constant which can be used with the lifecycle_state property of a ResolverEndpoint. This constant has a value of “FAILED”

LIFECYCLE_STATE_UPDATING = 'UPDATING'

A constant which can be used with the lifecycle_state property of a ResolverEndpoint. This constant has a value of “UPDATING”

__init__(**kwargs)

Initializes a new ResolverEndpoint object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class:

The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • name (str) – The value to assign to the name property of this ResolverEndpoint.
  • endpoint_type (str) – The value to assign to the endpoint_type property of this ResolverEndpoint. Allowed values for this property are: “VNIC”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • forwarding_address (str) – The value to assign to the forwarding_address property of this ResolverEndpoint.
  • is_forwarding (bool) – The value to assign to the is_forwarding property of this ResolverEndpoint.
  • is_listening (bool) – The value to assign to the is_listening property of this ResolverEndpoint.
  • listening_address (str) – The value to assign to the listening_address property of this ResolverEndpoint.
  • compartment_id (str) – The value to assign to the compartment_id property of this ResolverEndpoint.
  • time_created (datetime) – The value to assign to the time_created property of this ResolverEndpoint.
  • time_updated (datetime) – The value to assign to the time_updated property of this ResolverEndpoint.
  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this ResolverEndpoint. Allowed values for this property are: “ACTIVE”, “CREATING”, “DELETED”, “DELETING”, “FAILED”, “UPDATING”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • _self (str) – The value to assign to the _self property of this ResolverEndpoint.
compartment_id

[Required] Gets the compartment_id of this ResolverEndpoint. The OCID of the owning compartment. This will match the resolver that the resolver endpoint is under and will be updated if the resolver’s compartment is changed.

Returns:The compartment_id of this ResolverEndpoint.
Return type:str
endpoint_type

Gets the endpoint_type of this ResolverEndpoint. The type of resolver endpoint. VNIC is currently the only supported type.

Allowed values for this property are: “VNIC”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The endpoint_type of this ResolverEndpoint.
Return type:str
forwarding_address

Gets the forwarding_address of this ResolverEndpoint. An IP address from which forwarded queries may be sent. For VNIC endpoints, this IP address must be part of the subnet and will be assigned by the system if unspecified when isForwarding is true.

Returns:The forwarding_address of this ResolverEndpoint.
Return type:str
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.

is_forwarding

[Required] Gets the is_forwarding of this ResolverEndpoint. A Boolean flag indicating whether or not the resolver endpoint is for forwarding.

Returns:The is_forwarding of this ResolverEndpoint.
Return type:bool
is_listening

[Required] Gets the is_listening of this ResolverEndpoint. A Boolean flag indicating whether or not the resolver endpoint is for listening.

Returns:The is_listening of this ResolverEndpoint.
Return type:bool
lifecycle_state

[Required] Gets the lifecycle_state of this ResolverEndpoint. The current state of the resource.

Allowed values for this property are: “ACTIVE”, “CREATING”, “DELETED”, “DELETING”, “FAILED”, “UPDATING”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The lifecycle_state of this ResolverEndpoint.
Return type:str
listening_address

Gets the listening_address of this ResolverEndpoint. An IP address to listen to queries on. For VNIC endpoints this IP address must be part of the subnet and will be assigned by the system if unspecified when isListening is true.

Returns:The listening_address of this ResolverEndpoint.
Return type:str
name

[Required] Gets the name of this ResolverEndpoint. The name of the resolver endpoint. Must be unique, case-insensitive, within the resolver.

Returns:The name of this ResolverEndpoint.
Return type:str
time_created

[Required] Gets the time_created of this ResolverEndpoint. The date and time the resource was created in “YYYY-MM-ddThh:mm:ssZ” format with a Z offset, as defined by RFC 3339.

Example: 2016-07-22T17:23:59:60Z

Returns:The time_created of this ResolverEndpoint.
Return type:datetime
time_updated

[Required] Gets the time_updated of this ResolverEndpoint. The date and time the resource was last updated in “YYYY-MM-ddThh:mm:ssZ” format with a Z offset, as defined by RFC 3339.

Example: 2016-07-22T17:23:59:60Z

Returns:The time_updated of this ResolverEndpoint.
Return type:datetime