Byoasn

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

Bases: object

Oracle offers the ability to Bring Your Own Autonomous System Number (BYOASN), importing AS Numbers you currently own to Oracle Cloud Infrastructure. A Byoasn resource is a record of the imported AS Number and also some associated metadata. The process used to Bring Your Own ASN is explained in the documentation.

Attributes:

LIFECYCLE_STATE_ACTIVE

A constant which can be used with the lifecycle_state property of a Byoasn.

LIFECYCLE_STATE_CREATING

A constant which can be used with the lifecycle_state property of a Byoasn.

LIFECYCLE_STATE_DELETED

A constant which can be used with the lifecycle_state property of a Byoasn.

LIFECYCLE_STATE_FAILED

A constant which can be used with the lifecycle_state property of a Byoasn.

LIFECYCLE_STATE_UPDATING

A constant which can be used with the lifecycle_state property of a Byoasn.

asn

[Required] Gets the asn of this Byoasn.

byoip_ranges

Gets the byoip_ranges of this Byoasn.

compartment_id

[Required] Gets the compartment_id of this Byoasn.

defined_tags

Gets the defined_tags of this Byoasn.

display_name

Gets the display_name of this Byoasn.

freeform_tags

Gets the freeform_tags of this Byoasn.

id

[Required] Gets the id of this Byoasn.

lifecycle_state

[Required] Gets the lifecycle_state of this Byoasn.

time_created

[Required] Gets the time_created of this Byoasn.

time_updated

Gets the time_updated of this Byoasn.

time_validated

Gets the time_validated of this Byoasn.

validation_token

[Required] Gets the validation_token of this Byoasn.

Methods:

__init__(**kwargs)

Initializes a new Byoasn object with values from keyword arguments.

LIFECYCLE_STATE_ACTIVE = 'ACTIVE'

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

LIFECYCLE_STATE_CREATING = 'CREATING'

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

LIFECYCLE_STATE_DELETED = 'DELETED'

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

LIFECYCLE_STATE_FAILED = 'FAILED'

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

LIFECYCLE_STATE_UPDATING = 'UPDATING'

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

__init__(**kwargs)

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

Parameters
  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this Byoasn. Allowed values for this property are: “UPDATING”, “ACTIVE”, “DELETED”, “FAILED”, “CREATING”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this Byoasn.

  • display_name (str) – The value to assign to the display_name property of this Byoasn.

  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this Byoasn.

  • id (str) – The value to assign to the id property of this Byoasn.

  • asn (int) – The value to assign to the asn property of this Byoasn.

  • compartment_id (str) – The value to assign to the compartment_id property of this Byoasn.

  • time_validated (datetime) – The value to assign to the time_validated property of this Byoasn.

  • validation_token (str) – The value to assign to the validation_token property of this Byoasn.

  • time_created (datetime) – The value to assign to the time_created property of this Byoasn.

  • time_updated (datetime) – The value to assign to the time_updated property of this Byoasn.

  • byoip_ranges (list[oci.core.models.ByoasnByoipRange]) – The value to assign to the byoip_ranges property of this Byoasn.

property asn

[Required] Gets the asn of this Byoasn. The Autonomous System Number (ASN) you are importing to the Oracle cloud.

Returns

The asn of this Byoasn.

Return type

int

property byoip_ranges

Gets the byoip_ranges of this Byoasn. The BYOIP Ranges that has the Byoasn as origin.

Returns

The byoip_ranges of this Byoasn.

Return type

list[oci.core.models.ByoasnByoipRange]

property compartment_id

[Required] Gets the compartment_id of this Byoasn. The OCID of the compartment containing the Byoasn resource.

Returns

The compartment_id of this Byoasn.

Return type

str

property defined_tags

Gets the defined_tags of this Byoasn. 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 Byoasn.

Return type

dict(str, dict(str, object))

property display_name

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

Returns

The display_name of this Byoasn.

Return type

str

property freeform_tags

Gets the freeform_tags of this Byoasn. 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 Byoasn.

Return type

dict(str, str)

property id

[Required] Gets the id of this Byoasn. The OCID of the Byoasn resource.

Returns

The id of this Byoasn.

Return type

str

property lifecycle_state

[Required] Gets the lifecycle_state of this Byoasn. The Byoasn resource’s current state.

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

Returns

The lifecycle_state of this Byoasn.

Return type

str

property time_created

[Required] Gets the time_created of this Byoasn. The date and time the Byoasn resource was created, in the format defined by RFC3339.

Example: 2016-08-25T21:10:29.600Z

Returns

The time_created of this Byoasn.

Return type

datetime

property time_updated

Gets the time_updated of this Byoasn. The date and time the Byoasn resource was last updated, in the format defined by RFC3339.

Example: 2016-08-25T21:10:29.600Z

Returns

The time_updated of this Byoasn.

Return type

datetime

property time_validated

Gets the time_validated of this Byoasn. The date and time the Byoasn resource was validated, in the format defined by RFC3339.

Example: 2016-08-25T21:10:29.600Z

Returns

The time_validated of this Byoasn.

Return type

datetime

property validation_token

[Required] Gets the validation_token of this Byoasn. The validation token is an internally-generated ASCII string used in the validation process. See Importing a Byoasn for details.

Returns

The validation_token of this Byoasn.

Return type

str