CreateAccessPolicyDetails

class oci.service_mesh.models.CreateAccessPolicyDetails(**kwargs)

Bases: object

The information about a new access policy.

Methods

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

Attributes

compartment_id [Required] Gets the compartment_id of this CreateAccessPolicyDetails.
defined_tags Gets the defined_tags of this CreateAccessPolicyDetails.
description Gets the description of this CreateAccessPolicyDetails.
freeform_tags Gets the freeform_tags of this CreateAccessPolicyDetails.
mesh_id [Required] Gets the mesh_id of this CreateAccessPolicyDetails.
name [Required] Gets the name of this CreateAccessPolicyDetails.
rules [Required] Gets the rules of this CreateAccessPolicyDetails.
__init__(**kwargs)

Initializes a new CreateAccessPolicyDetails 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 CreateAccessPolicyDetails.
  • description (str) – The value to assign to the description property of this CreateAccessPolicyDetails.
  • mesh_id (str) – The value to assign to the mesh_id property of this CreateAccessPolicyDetails.
  • compartment_id (str) – The value to assign to the compartment_id property of this CreateAccessPolicyDetails.
  • rules (list[oci.service_mesh.models.AccessPolicyRuleDetails]) – The value to assign to the rules property of this CreateAccessPolicyDetails.
  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this CreateAccessPolicyDetails.
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this CreateAccessPolicyDetails.
compartment_id

[Required] Gets the compartment_id of this CreateAccessPolicyDetails. The OCID of the compartment.

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

Gets the defined_tags of this CreateAccessPolicyDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}

Returns:The defined_tags of this CreateAccessPolicyDetails.
Return type:dict(str, dict(str, object))
description

Gets the description of this CreateAccessPolicyDetails. Description of the resource. It can be changed after creation. Avoid entering confidential information.

Example: This is my new resource

Returns:The description of this CreateAccessPolicyDetails.
Return type:str
freeform_tags

Gets the freeform_tags of this CreateAccessPolicyDetails. Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {“bar-key”: “value”}

Returns:The freeform_tags of this CreateAccessPolicyDetails.
Return type:dict(str, str)
mesh_id

[Required] Gets the mesh_id of this CreateAccessPolicyDetails. The OCID of the service mesh in which this access policy is created.

Returns:The mesh_id of this CreateAccessPolicyDetails.
Return type:str
name

[Required] Gets the name of this CreateAccessPolicyDetails. A user-friendly name. The name has to be unique within the same service mesh and cannot be changed after creation. Avoid entering confidential information.

Example: My unique resource name

Returns:The name of this CreateAccessPolicyDetails.
Return type:str
rules

[Required] Gets the rules of this CreateAccessPolicyDetails. List of applicable rules

Returns:The rules of this CreateAccessPolicyDetails.
Return type:list[oci.service_mesh.models.AccessPolicyRuleDetails]