CreateZprPolicyDetails

class oci.zpr.models.CreateZprPolicyDetails(**kwargs)

Bases: object

The data to create a ZprPolicy.

Methods:

__init__(**kwargs)

Initializes a new CreateZprPolicyDetails object with values from keyword arguments.

Attributes:

compartment_id

[Required] Gets the compartment_id of this CreateZprPolicyDetails.

defined_tags

Gets the defined_tags of this CreateZprPolicyDetails.

description

[Required] Gets the description of this CreateZprPolicyDetails.

freeform_tags

Gets the freeform_tags of this CreateZprPolicyDetails.

name

[Required] Gets the name of this CreateZprPolicyDetails.

statements

[Required] Gets the statements of this CreateZprPolicyDetails.

__init__(**kwargs)

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

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

  • description (str) – The value to assign to the description property of this CreateZprPolicyDetails.

  • name (str) – The value to assign to the name property of this CreateZprPolicyDetails.

  • statements (list[str]) – The value to assign to the statements property of this CreateZprPolicyDetails.

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

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

property compartment_id

[Required] Gets the compartment_id of this CreateZprPolicyDetails. The OCID of the compartment to create the ZprPolicy in.

Returns

The compartment_id of this CreateZprPolicyDetails.

Return type

str

property defined_tags

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

Return type

dict(str, dict(str, object))

property description

[Required] Gets the description of this CreateZprPolicyDetails. The description you assign to the ZprPolicy during creation. Does not have to be unique, and it’s changeable.

Returns

The description of this CreateZprPolicyDetails.

Return type

str

property freeform_tags

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

Return type

dict(str, str)

property name

[Required] Gets the name of this CreateZprPolicyDetails. The name you assign to the ZprPolicy during creation. The name must be unique across all ZPL policies in the tenancy.

Returns

The name of this CreateZprPolicyDetails.

Return type

str

property statements

[Required] Gets the statements of this CreateZprPolicyDetails. An array of ZprPolicy statements(up to 25 statements per ZprPolicy) written in the Zero Trust Packet Routing Policy Language.

Returns

The statements of this CreateZprPolicyDetails.

Return type

list[str]