a fȇ@s8ddlmZmZmZddlmZeGdddeZdS))formatted_flat_dict NONE_SENTINEL#value_allowed_none_or_none_sentinel)init_model_state_from_kwargsc@seZdZdZdZdZdZddZeddZ e j d dZ ed d Z e j d d Z ed dZ e j ddZ eddZ e j ddZ eddZej ddZeddZej ddZeddZej ddZeddZej ddZedd Zej d!d Zed"d#Zej d$d#Zed%d&Zej d'd&Zed(d)Zej d*d)Zed+d,Zej d-d,Zed.d/Zej d0d/Zed1d2Zej d3d2Zed4d5Zej d6d5Zed7d8Zej d9d8Zed:d;Zej dZej d?d>Zed@dAZej dBdAZedCdDZej dEdDZedFdGZej dHdGZedIdJZ e j dKdJZ dLdMZ!dNdOZ"dPdQZ#dRS)SRulezk Rule resource. A unit that has a condition which on evaluation with input returns defined values. replaceupdatedeletecKsdddddddddddddddddddddd d d |_d d ddddddddddddddddddd d!d"d |_d#|_d#|_d#|_d#|_d#|_d#|_d#|_d#|_ d#|_ d#|_ d#|_ d#|_ d#|_d#|_d#|_d#|_d#|_d#|_d#|_d#|_d#|_d#|_d#|_d#S)$a Initializes a new Rule object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param id: The value to assign to the id property of this Rule. :type id: str :param ocid: The value to assign to the ocid property of this Rule. :type ocid: str :param schemas: The value to assign to the schemas property of this Rule. :type schemas: list[str] :param meta: The value to assign to the meta property of this Rule. :type meta: oci.identity_domains.models.Meta :param idcs_created_by: The value to assign to the idcs_created_by property of this Rule. :type idcs_created_by: oci.identity_domains.models.IdcsCreatedBy :param idcs_last_modified_by: The value to assign to the idcs_last_modified_by property of this Rule. :type idcs_last_modified_by: oci.identity_domains.models.IdcsLastModifiedBy :param idcs_prevented_operations: The value to assign to the idcs_prevented_operations property of this Rule. Allowed values for items in this list are: "replace", "update", "delete", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type idcs_prevented_operations: list[str] :param tags: The value to assign to the tags property of this Rule. :type tags: list[oci.identity_domains.models.Tags] :param delete_in_progress: The value to assign to the delete_in_progress property of this Rule. :type delete_in_progress: bool :param idcs_last_upgraded_in_release: The value to assign to the idcs_last_upgraded_in_release property of this Rule. :type idcs_last_upgraded_in_release: str :param domain_ocid: The value to assign to the domain_ocid property of this Rule. :type domain_ocid: str :param compartment_ocid: The value to assign to the compartment_ocid property of this Rule. :type compartment_ocid: str :param tenancy_ocid: The value to assign to the tenancy_ocid property of this Rule. :type tenancy_ocid: str :param external_id: The value to assign to the external_id property of this Rule. :type external_id: str :param name: The value to assign to the name property of this Rule. :type name: str :param description: The value to assign to the description property of this Rule. :type description: str :param active: The value to assign to the active property of this Rule. :type active: bool :param locked: The value to assign to the locked property of this Rule. :type locked: bool :param rule_groovy: The value to assign to the rule_groovy property of this Rule. :type rule_groovy: str :param condition: The value to assign to the condition property of this Rule. :type condition: str :param condition_group: The value to assign to the condition_group property of this Rule. :type condition_group: oci.identity_domains.models.RuleConditionGroup :param policy_type: The value to assign to the policy_type property of this Rule. :type policy_type: oci.identity_domains.models.RulePolicyType :param _return: The value to assign to the _return property of this Rule. :type _return: list[oci.identity_domains.models.RuleReturn] strz list[str]ZMetaZ IdcsCreatedByZIdcsLastModifiedByz list[Tags]boolZRuleConditionGroupZRulePolicyTypezlist[RuleReturn])idocidschemasmetaidcs_created_byidcs_last_modified_byidcs_prevented_operationstagsdelete_in_progressidcs_last_upgraded_in_release domain_ocidcompartment_ocid tenancy_ocid external_idname descriptionactivelocked rule_groovy conditioncondition_group policy_type_returnr r rrZ idcsCreatedByZidcsLastModifiedByZidcsPreventedOperationsrZdeleteInProgressZidcsLastUpgradedInReleaseZ domainOcidZcompartmentOcidZ tenancyOcidZ externalIdrrrrZ ruleGroovyrZconditionGroupZ policyTypereturnN)Z swagger_typesZ attribute_map_id_ocid_schemas_meta_idcs_created_by_idcs_last_modified_by_idcs_prevented_operations_tags_delete_in_progress_idcs_last_upgraded_in_release _domain_ocid_compartment_ocid _tenancy_ocid _external_id_name _description_active_locked _rule_groovy _condition_condition_group _policy_type _Rule__return)selfkwargsr=D/usr/lib/python3.9/site-packages/oci/identity_domains/models/rule.py__init__sez Rule.__init__cCs|jS)a Gets the id of this Rule. Unique identifier for the SCIM Resource as defined by the Service Provider. Each representation of the Resource MUST include a non-empty id value. This identifier MUST be unique across the Service Provider's entire set of Resources. It MUST be a stable, non-reassignable identifier that does not change when the same Resource is returned in subsequent requests. The value of the id attribute is always issued by the Service Provider and MUST never be specified by the Service Consumer. bulkId: is a reserved keyword and MUST NOT be used in the unique identifier. **SCIM++ Properties:** - caseExact: false - idcsSearchable: true - multiValued: false - mutability: readOnly - required: false - returned: always - type: string - uniqueness: global :return: The id of this Rule. :rtype: str r$r;r=r=r>r szRule.idcCs ||_dS)a Sets the id of this Rule. Unique identifier for the SCIM Resource as defined by the Service Provider. Each representation of the Resource MUST include a non-empty id value. This identifier MUST be unique across the Service Provider's entire set of Resources. It MUST be a stable, non-reassignable identifier that does not change when the same Resource is returned in subsequent requests. The value of the id attribute is always issued by the Service Provider and MUST never be specified by the Service Consumer. bulkId: is a reserved keyword and MUST NOT be used in the unique identifier. **SCIM++ Properties:** - caseExact: false - idcsSearchable: true - multiValued: false - mutability: readOnly - required: false - returned: always - type: string - uniqueness: global :param id: The id of this Rule. :type: str Nr@)r;r r=r=r>r scCs|jS)a Gets the ocid of this Rule. Unique OCI identifier for the SCIM Resource. **SCIM++ Properties:** - caseExact: true - idcsSearchable: true - multiValued: false - mutability: immutable - required: false - returned: default - type: string - uniqueness: global :return: The ocid of this Rule. :rtype: str r%rAr=r=r>r sz Rule.ocidcCs ||_dS)a Sets the ocid of this Rule. Unique OCI identifier for the SCIM Resource. **SCIM++ Properties:** - caseExact: true - idcsSearchable: true - multiValued: false - mutability: immutable - required: false - returned: default - type: string - uniqueness: global :param ocid: The ocid of this Rule. :type: str NrB)r;r r=r=r>r scCs|jS)a **[Required]** Gets the schemas of this Rule. REQUIRED. The schemas attribute is an array of Strings which allows introspection of the supported schema version for a SCIM representation as well any schema extensions supported by that representation. Each String value must be a unique URI. This specification defines URIs for User, Group, and a standard \"enterprise\" extension. All representations of SCIM schema MUST include a non-zero value array with value(s) of the URIs supported by that representation. Duplicate values MUST NOT be included. Value order is not specified and MUST not impact behavior. **SCIM++ Properties:** - caseExact: false - idcsSearchable: false - multiValued: true - mutability: readWrite - required: true - returned: default - type: string - uniqueness: none :return: The schemas of this Rule. :rtype: list[str] r&rAr=r=r>r&sz Rule.schemascCs ||_dS)a Sets the schemas of this Rule. REQUIRED. The schemas attribute is an array of Strings which allows introspection of the supported schema version for a SCIM representation as well any schema extensions supported by that representation. Each String value must be a unique URI. This specification defines URIs for User, Group, and a standard \"enterprise\" extension. All representations of SCIM schema MUST include a non-zero value array with value(s) of the URIs supported by that representation. Duplicate values MUST NOT be included. Value order is not specified and MUST not impact behavior. **SCIM++ Properties:** - caseExact: false - idcsSearchable: false - multiValued: true - mutability: readWrite - required: true - returned: default - type: string - uniqueness: none :param schemas: The schemas of this Rule. :type: list[str] NrC)r;rr=r=r>r<scCs|jS)z Gets the meta of this Rule. :return: The meta of this Rule. :rtype: oci.identity_domains.models.Meta r'rAr=r=r>rRsz Rule.metacCs ||_dS)z Sets the meta of this Rule. :param meta: The meta of this Rule. :type: oci.identity_domains.models.Meta NrD)r;rr=r=r>r\scCs|jS)z Gets the idcs_created_by of this Rule. :return: The idcs_created_by of this Rule. :rtype: oci.identity_domains.models.IdcsCreatedBy r(rAr=r=r>rfszRule.idcs_created_bycCs ||_dS)z Sets the idcs_created_by of this Rule. :param idcs_created_by: The idcs_created_by of this Rule. :type: oci.identity_domains.models.IdcsCreatedBy NrE)r;rr=r=r>rpscCs|jS)z Gets the idcs_last_modified_by of this Rule. :return: The idcs_last_modified_by of this Rule. :rtype: oci.identity_domains.models.IdcsLastModifiedBy r)rAr=r=r>rzszRule.idcs_last_modified_bycCs ||_dS)z Sets the idcs_last_modified_by of this Rule. :param idcs_last_modified_by: The idcs_last_modified_by of this Rule. :type: oci.identity_domains.models.IdcsLastModifiedBy NrF)r;rr=r=r>rscCs|jS)a Gets the idcs_prevented_operations of this Rule. Each value of this attribute specifies an operation that only an internal client may perform on this particular resource. **SCIM++ Properties:** - idcsSearchable: false - multiValued: true - mutability: readOnly - required: false - returned: request - type: string - uniqueness: none Allowed values for items in this list are: "replace", "update", "delete", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The idcs_prevented_operations of this Rule. :rtype: list[str] r*rAr=r=r>rszRule.idcs_prevented_operationscs0gd|r&fdd|D|dd<||_dS)a Sets the idcs_prevented_operations of this Rule. Each value of this attribute specifies an operation that only an internal client may perform on this particular resource. **SCIM++ Properties:** - idcsSearchable: false - multiValued: true - mutability: readOnly - required: false - returned: request - type: string - uniqueness: none :param idcs_prevented_operations: The idcs_prevented_operations of this Rule. :type: list[str] )rrr csg|]}t|sdn|qS)ZUNKNOWN_ENUM_VALUE)r).0xZallowed_valuesr=r> z2Rule.idcs_prevented_operations..NrG)r;rr=rJr>rscCs|jS)a Gets the tags of this Rule. A list of tags on this resource. **SCIM++ Properties:** - idcsCompositeKey: [key, value] - idcsSearchable: true - multiValued: true - mutability: readWrite - required: false - returned: request - type: complex - uniqueness: none :return: The tags of this Rule. :rtype: list[oci.identity_domains.models.Tags] r+rAr=r=r>rsz Rule.tagscCs ||_dS)a Sets the tags of this Rule. A list of tags on this resource. **SCIM++ Properties:** - idcsCompositeKey: [key, value] - idcsSearchable: true - multiValued: true - mutability: readWrite - required: false - returned: request - type: complex - uniqueness: none :param tags: The tags of this Rule. :type: list[oci.identity_domains.models.Tags] NrM)r;rr=r=r>rscCs|jS)a3 Gets the delete_in_progress of this Rule. A boolean flag indicating this resource in the process of being deleted. Usually set to true when synchronous deletion of the resource would take too long. **SCIM++ Properties:** - caseExact: false - idcsSearchable: true - multiValued: false - mutability: readOnly - required: false - returned: default - type: boolean - uniqueness: none :return: The delete_in_progress of this Rule. :rtype: bool r,rAr=r=r>rszRule.delete_in_progresscCs ||_dS)aD Sets the delete_in_progress of this Rule. A boolean flag indicating this resource in the process of being deleted. Usually set to true when synchronous deletion of the resource would take too long. **SCIM++ Properties:** - caseExact: false - idcsSearchable: true - multiValued: false - mutability: readOnly - required: false - returned: default - type: boolean - uniqueness: none :param delete_in_progress: The delete_in_progress of this Rule. :type: bool NrN)r;rr=r=r>rscCs|jS)a Gets the idcs_last_upgraded_in_release of this Rule. The release number when the resource was upgraded. **SCIM++ Properties:** - caseExact: false - idcsSearchable: false - multiValued: false - mutability: readOnly - required: false - returned: request - type: string - uniqueness: none :return: The idcs_last_upgraded_in_release of this Rule. :rtype: str r-rAr=r=r>rsz"Rule.idcs_last_upgraded_in_releasecCs ||_dS)a Sets the idcs_last_upgraded_in_release of this Rule. The release number when the resource was upgraded. **SCIM++ Properties:** - caseExact: false - idcsSearchable: false - multiValued: false - mutability: readOnly - required: false - returned: request - type: string - uniqueness: none :param idcs_last_upgraded_in_release: The idcs_last_upgraded_in_release of this Rule. :type: str NrO)r;rr=r=r>r,scCs|jS)a Gets the domain_ocid of this Rule. OCI Domain Id (ocid) in which the resource lives. **SCIM++ Properties:** - caseExact: false - idcsSearchable: false - multiValued: false - mutability: readOnly - required: false - returned: default - type: string - uniqueness: none :return: The domain_ocid of this Rule. :rtype: str r.rAr=r=r>rBszRule.domain_ocidcCs ||_dS)a Sets the domain_ocid of this Rule. OCI Domain Id (ocid) in which the resource lives. **SCIM++ Properties:** - caseExact: false - idcsSearchable: false - multiValued: false - mutability: readOnly - required: false - returned: default - type: string - uniqueness: none :param domain_ocid: The domain_ocid of this Rule. :type: str NrP)r;rr=r=r>rXscCs|jS)a Gets the compartment_ocid of this Rule. OCI Compartment Id (ocid) in which the resource lives. **SCIM++ Properties:** - caseExact: false - idcsSearchable: false - multiValued: false - mutability: readOnly - required: false - returned: default - type: string - uniqueness: none :return: The compartment_ocid of this Rule. :rtype: str r/rAr=r=r>rnszRule.compartment_ocidcCs ||_dS)a Sets the compartment_ocid of this Rule. OCI Compartment Id (ocid) in which the resource lives. **SCIM++ Properties:** - caseExact: false - idcsSearchable: false - multiValued: false - mutability: readOnly - required: false - returned: default - type: string - uniqueness: none :param compartment_ocid: The compartment_ocid of this Rule. :type: str NrQ)r;rr=r=r>rscCs|jS)a Gets the tenancy_ocid of this Rule. OCI Tenant Id (ocid) in which the resource lives. **SCIM++ Properties:** - caseExact: false - idcsSearchable: false - multiValued: false - mutability: readOnly - required: false - returned: default - type: string - uniqueness: none :return: The tenancy_ocid of this Rule. :rtype: str r0rAr=r=r>rszRule.tenancy_ocidcCs ||_dS)a Sets the tenancy_ocid of this Rule. OCI Tenant Id (ocid) in which the resource lives. **SCIM++ Properties:** - caseExact: false - idcsSearchable: false - multiValued: false - mutability: readOnly - required: false - returned: default - type: string - uniqueness: none :param tenancy_ocid: The tenancy_ocid of this Rule. :type: str NrR)r;rr=r=r>rscCs|jS)a+ Gets the external_id of this Rule. An identifier for the Resource as defined by the Service Consumer. The externalId may simplify identification of the Resource between Service Consumer and Service provider by allowing the Consumer to refer to the Resource with its own identifier, obviating the need to store a local mapping between the local identifier of the Resource and the identifier used by the Service Provider. Each Resource MAY include a non-empty externalId value. The value of the externalId attribute is always issued be the Service Consumer and can never be specified by the Service Provider. The Service Provider MUST always interpret the externalId as scoped to the Service Consumer's tenant. **SCIM++ Properties:** - caseExact: false - idcsSearchable: true - multiValued: false - mutability: readWrite - required: false - returned: default - type: string - uniqueness: none :return: The external_id of this Rule. :rtype: str r1rAr=r=r>rszRule.external_idcCs ||_dS)a5 Sets the external_id of this Rule. An identifier for the Resource as defined by the Service Consumer. The externalId may simplify identification of the Resource between Service Consumer and Service provider by allowing the Consumer to refer to the Resource with its own identifier, obviating the need to store a local mapping between the local identifier of the Resource and the identifier used by the Service Provider. Each Resource MAY include a non-empty externalId value. The value of the externalId attribute is always issued be the Service Consumer and can never be specified by the Service Provider. The Service Provider MUST always interpret the externalId as scoped to the Service Consumer's tenant. **SCIM++ Properties:** - caseExact: false - idcsSearchable: true - multiValued: false - mutability: readWrite - required: false - returned: default - type: string - uniqueness: none :param external_id: The external_id of this Rule. :type: str NrS)r;rr=r=r>rscCs|jS)a **[Required]** Gets the name of this Rule. Rule name **SCIM++ Properties:** - caseExact: true - idcsSearchable: true - multiValued: false - mutability: readWrite - required: true - returned: always - type: string - uniqueness: none :return: The name of this Rule. :rtype: str r2rAr=r=r>rsz Rule.namecCs ||_dS)a Sets the name of this Rule. Rule name **SCIM++ Properties:** - caseExact: true - idcsSearchable: true - multiValued: false - mutability: readWrite - required: true - returned: always - type: string - uniqueness: none :param name: The name of this Rule. :type: str NrT)r;rr=r=r>rscCs|jS)a~ Gets the description of this Rule. Rule Description **SCIM++ Properties:** - idcsSearchable: false - multiValued: false - mutability: readWrite - required: false - returned: default - type: string - uniqueness: none :return: The description of this Rule. :rtype: str r3rAr=r=r>rszRule.descriptioncCs ||_dS)a Sets the description of this Rule. Rule Description **SCIM++ Properties:** - idcsSearchable: false - multiValued: false - mutability: readWrite - required: false - returned: default - type: string - uniqueness: none :param description: The description of this Rule. :type: str NrU)r;rr=r=r>r3scCs|jS)a| Gets the active of this Rule. If true, rule is active **SCIM++ Properties:** - idcsSearchable: true - multiValued: false - mutability: readWrite - required: false - returned: default - type: boolean - uniqueness: none :return: The active of this Rule. :rtype: bool r4rAr=r=r>rHsz Rule.activecCs ||_dS)a Sets the active of this Rule. If true, rule is active **SCIM++ Properties:** - idcsSearchable: true - multiValued: false - mutability: readWrite - required: false - returned: default - type: boolean - uniqueness: none :param active: The active of this Rule. :type: bool NrV)r;rr=r=r>r]scCs|jS)a Gets the locked of this Rule. Shows if the rule is locked **SCIM++ Properties:** - idcsSearchable: true - multiValued: false - mutability: readWrite - required: false - returned: default - type: boolean - uniqueness: none :return: The locked of this Rule. :rtype: bool r5rAr=r=r>rrsz Rule.lockedcCs ||_dS)a Sets the locked of this Rule. Shows if the rule is locked **SCIM++ Properties:** - idcsSearchable: true - multiValued: false - mutability: readWrite - required: false - returned: default - type: boolean - uniqueness: none :param locked: The locked of this Rule. :type: bool NrW)r;rr=r=r>rscCs|jS)a Gets the rule_groovy of this Rule. The Groovy script that is run instead of the rule, if policy type allows the rule to be a Groovy script. **SCIM++ Properties:** - caseExact: true - idcsSearchable: false - multiValued: false - mutability: readWrite - required: false - returned: default - type: string - uniqueness: none :return: The rule_groovy of this Rule. :rtype: str r6rAr=r=r>rszRule.rule_groovycCs ||_dS)a Sets the rule_groovy of this Rule. The Groovy script that is run instead of the rule, if policy type allows the rule to be a Groovy script. **SCIM++ Properties:** - caseExact: true - idcsSearchable: false - multiValued: false - mutability: readWrite - required: false - returned: default - type: string - uniqueness: none :param rule_groovy: The rule_groovy of this Rule. :type: str NrX)r;rr=r=r>rscCs|jS)a **[Required]** Gets the condition of this Rule. SCIM filters **Deprecated Since: 17.3.4** **SCIM++ Properties:** - caseExact: true - idcsSearchable: false - multiValued: false - mutability: readWrite - required: true - returned: default - type: string - uniqueness: none :return: The condition of this Rule. :rtype: str r7rAr=r=r>rszRule.conditioncCs ||_dS)a Sets the condition of this Rule. SCIM filters **Deprecated Since: 17.3.4** **SCIM++ Properties:** - caseExact: true - idcsSearchable: false - multiValued: false - mutability: readWrite - required: true - returned: default - type: string - uniqueness: none :param condition: The condition of this Rule. :type: str NrY)r;rr=r=r>rscCs|jS)z Gets the condition_group of this Rule. :return: The condition_group of this Rule. :rtype: oci.identity_domains.models.RuleConditionGroup r8rAr=r=r>r szRule.condition_groupcCs ||_dS)z Sets the condition_group of this Rule. :param condition_group: The condition_group of this Rule. :type: oci.identity_domains.models.RuleConditionGroup NrZ)r;r r=r=r>r scCs|jS)z **[Required]** Gets the policy_type of this Rule. :return: The policy_type of this Rule. :rtype: oci.identity_domains.models.RulePolicyType r9rAr=r=r>r! szRule.policy_typecCs ||_dS)z Sets the policy_type of this Rule. :param policy_type: The policy_type of this Rule. :type: oci.identity_domains.models.RulePolicyType Nr[)r;r!r=r=r>r!scCs|jS)a **[Required]** Gets the _return of this Rule. The return values are the then portion of a Rule **SCIM++ Properties:** - idcsCompositeKey: [name] - idcsSearchable: false - multiValued: true - mutability: readWrite - required: true - returned: default - type: complex - uniqueness: none :return: The _return of this Rule. :rtype: list[oci.identity_domains.models.RuleReturn] r:rAr=r=r>r" sz Rule._returncCs ||_dS)a Sets the _return of this Rule. The return values are the then portion of a Rule **SCIM++ Properties:** - idcsCompositeKey: [name] - idcsSearchable: false - multiValued: true - mutability: readWrite - required: true - returned: default - type: complex - uniqueness: none :param _return: The _return of this Rule. :type: list[oci.identity_domains.models.RuleReturn] Nr\)r;r"r=r=r>r"6scCst|SN)rrAr=r=r>__repr__Lsz Rule.__repr__cCs|dur dS|j|jkS)NF)__dict__r;otherr=r=r>__eq__Osz Rule.__eq__cCs ||k Sr]r=r`r=r=r>__ne__Usz Rule.__ne__N)$__name__ __module__ __qualname____doc__Z!IDCS_PREVENTED_OPERATIONS_REPLACEZ IDCS_PREVENTED_OPERATIONS_UPDATEZ IDCS_PREVENTED_OPERATIONS_DELETEr?propertyr setterr rrrrrrrrrrrrrrrrrrr r!r"r^rbrcr=r=r=r>r s1                                              rN)Zoci.utilrrrZoci.decoratorsrobjectrr=r=r=r>s