ZoneSummary

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

Bases: object

A DNS zone.

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

Attributes

LIFECYCLE_STATE_ACTIVE A constant which can be used with the lifecycle_state property of a ZoneSummary.
LIFECYCLE_STATE_CREATING A constant which can be used with the lifecycle_state property of a ZoneSummary.
LIFECYCLE_STATE_DELETED A constant which can be used with the lifecycle_state property of a ZoneSummary.
LIFECYCLE_STATE_DELETING A constant which can be used with the lifecycle_state property of a ZoneSummary.
LIFECYCLE_STATE_FAILED A constant which can be used with the lifecycle_state property of a ZoneSummary.
LIFECYCLE_STATE_UPDATING A constant which can be used with the lifecycle_state property of a ZoneSummary.
SCOPE_GLOBAL A constant which can be used with the scope property of a ZoneSummary.
SCOPE_PRIVATE A constant which can be used with the scope property of a ZoneSummary.
ZONE_TYPE_PRIMARY A constant which can be used with the zone_type property of a ZoneSummary.
ZONE_TYPE_SECONDARY A constant which can be used with the zone_type property of a ZoneSummary.
compartment_id [Required] Gets the compartment_id of this ZoneSummary.
defined_tags [Required] Gets the defined_tags of this ZoneSummary.
freeform_tags [Required] Gets the freeform_tags of this ZoneSummary.
id [Required] Gets the id of this ZoneSummary.
is_protected [Required] Gets the is_protected of this ZoneSummary.
lifecycle_state [Required] Gets the lifecycle_state of this ZoneSummary.
name [Required] Gets the name of this ZoneSummary.
scope [Required] Gets the scope of this ZoneSummary.
self_uri [Required] Gets the self_uri of this ZoneSummary.
serial [Required] Gets the serial of this ZoneSummary.
time_created [Required] Gets the time_created of this ZoneSummary.
version [Required] Gets the version of this ZoneSummary.
view_id Gets the view_id of this ZoneSummary.
zone_type [Required] Gets the zone_type of this ZoneSummary.

Methods

__init__(**kwargs) Initializes a new ZoneSummary object with values from keyword arguments.
LIFECYCLE_STATE_ACTIVE = 'ACTIVE'

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

LIFECYCLE_STATE_CREATING = 'CREATING'

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

LIFECYCLE_STATE_DELETED = 'DELETED'

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

LIFECYCLE_STATE_DELETING = 'DELETING'

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

LIFECYCLE_STATE_FAILED = 'FAILED'

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

LIFECYCLE_STATE_UPDATING = 'UPDATING'

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

SCOPE_GLOBAL = 'GLOBAL'

A constant which can be used with the scope property of a ZoneSummary. This constant has a value of “GLOBAL”

SCOPE_PRIVATE = 'PRIVATE'

A constant which can be used with the scope property of a ZoneSummary. This constant has a value of “PRIVATE”

ZONE_TYPE_PRIMARY = 'PRIMARY'

A constant which can be used with the zone_type property of a ZoneSummary. This constant has a value of “PRIMARY”

ZONE_TYPE_SECONDARY = 'SECONDARY'

A constant which can be used with the zone_type property of a ZoneSummary. This constant has a value of “SECONDARY”

__init__(**kwargs)

Initializes a new ZoneSummary object with values from keyword arguments. 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 ZoneSummary.
  • zone_type (str) – The value to assign to the zone_type property of this ZoneSummary. Allowed values for this property are: “PRIMARY”, “SECONDARY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • compartment_id (str) – The value to assign to the compartment_id property of this ZoneSummary.
  • view_id (str) – The value to assign to the view_id property of this ZoneSummary.
  • scope (str) – The value to assign to the scope property of this ZoneSummary. Allowed values for this property are: “GLOBAL”, “PRIVATE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this ZoneSummary.
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this ZoneSummary.
  • self_uri (str) – The value to assign to the self_uri property of this ZoneSummary.
  • id (str) – The value to assign to the id property of this ZoneSummary.
  • time_created (datetime) – The value to assign to the time_created property of this ZoneSummary.
  • version (str) – The value to assign to the version property of this ZoneSummary.
  • serial (int) – The value to assign to the serial property of this ZoneSummary.
  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this ZoneSummary. 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’.
  • is_protected (bool) – The value to assign to the is_protected property of this ZoneSummary.
compartment_id

[Required] Gets the compartment_id of this ZoneSummary. The OCID of the compartment containing the zone.

Returns:The compartment_id of this ZoneSummary.
Return type:str
defined_tags

[Required] Gets the defined_tags of this ZoneSummary. 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 ZoneSummary.
Return type:dict(str, dict(str, object))
freeform_tags

[Required] Gets the freeform_tags of this ZoneSummary. 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 ZoneSummary.
Return type:dict(str, str)
id

[Required] Gets the id of this ZoneSummary. The OCID of the zone.

Returns:The id of this ZoneSummary.
Return type:str
is_protected

[Required] Gets the is_protected of this ZoneSummary. A Boolean flag indicating whether or not parts of the resource are unable to be explicitly managed.

Returns:The is_protected of this ZoneSummary.
Return type:bool
lifecycle_state

[Required] Gets the lifecycle_state of this ZoneSummary. The current state of the zone 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 ZoneSummary.
Return type:str
name

[Required] Gets the name of this ZoneSummary. The name of the zone.

Returns:The name of this ZoneSummary.
Return type:str
scope

[Required] Gets the scope of this ZoneSummary. The scope of the zone.

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

Returns:The scope of this ZoneSummary.
Return type:str
self_uri

[Required] Gets the self_uri of this ZoneSummary. The canonical absolute URL of the resource.

Returns:The self_uri of this ZoneSummary.
Return type:str
serial

[Required] Gets the serial of this ZoneSummary. The current serial of the zone. As seen in the zone’s SOA record.

Returns:The serial of this ZoneSummary.
Return type:int
time_created

[Required] Gets the time_created of this ZoneSummary. 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 ZoneSummary.
Return type:datetime
version

[Required] Gets the version of this ZoneSummary. Version is the never-repeating, totally-orderable, version of the zone, from which the serial field of the zone’s SOA record is derived.

Returns:The version of this ZoneSummary.
Return type:str
view_id

Gets the view_id of this ZoneSummary. The OCID of the private view containing the zone. This value will be null for zones in the global DNS, which are publicly resolvable and not part of a private view.

Returns:The view_id of this ZoneSummary.
Return type:str
zone_type

[Required] Gets the zone_type of this ZoneSummary. The type of the zone. Must be either PRIMARY or SECONDARY. SECONDARY is only supported for GLOBAL zones.

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

Returns:The zone_type of this ZoneSummary.
Return type:str