ruạṛ
a ���f� � @ s8 d dl mZmZmZ d dlmZ eG dd� de��ZdS )� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ s� e Zd ZdZdd� Zedd� �Zejdd� �Zedd� �Zejd d� �Zed d� �Z e jdd� �Z ed d� �Z e jdd� �Z edd� �Zejdd� �Zedd� �Zejdd� �Zdd� Z dd� Zdd� ZdS )�AuthorizationRequestz% AuthorizationRequest model. c K sP ddddddd�| _ ddddd d d�| _d| _d| _d| _d| _d| _d| _dS )a� Initializes a new AuthorizationRequest object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param request_id: The value to assign to the request_id property of this AuthorizationRequest. :type request_id: str :param user_principal: The value to assign to the user_principal property of this AuthorizationRequest. :type user_principal: oci.identity_data_plane.models.Principal :param svc_principal: The value to assign to the svc_principal property of this AuthorizationRequest. :type svc_principal: oci.identity_data_plane.models.Principal :param service_name: The value to assign to the service_name property of this AuthorizationRequest. :type service_name: str :param context: The value to assign to the context property of this AuthorizationRequest. :type context: list[oci.identity_data_plane.models.PermissionContext] :param policy_hash: The value to assign to the policy_hash property of this AuthorizationRequest. :type policy_hash: str �strZ Principalzlist[PermissionContext])� request_id�user_principal� svc_principal�service_name�context�policy_hashZ requestIdZ userPrincipalZsvcPrincipalZserviceNamer Z policyHashN)Z swagger_typesZ attribute_map�_request_id�_user_principal�_svc_principal� _service_name�_context�_policy_hash)�self�kwargs� r �X/usr/lib/python3.9/site-packages/oci/identity_data_plane/models/authorization_request.py�__init__ s( � � zAuthorizationRequest.__init__c C s | j S )z� **[Required]** Gets the request_id of this AuthorizationRequest. The id of this request. It is a GUID. :return: The request_id of this AuthorizationRequest. :rtype: str �r �r r r r r I s zAuthorizationRequest.request_idc C s || _ dS )z� Sets the request_id of this AuthorizationRequest. The id of this request. It is a GUID. :param request_id: The request_id of this AuthorizationRequest. :type: str Nr )r r r r r r U s c C s | j S )z� **[Required]** Gets the user_principal of this AuthorizationRequest. The user principal object :return: The user_principal of this AuthorizationRequest. :rtype: oci.identity_data_plane.models.Principal �r r r r r r a s z#AuthorizationRequest.user_principalc C s || _ dS )z� Sets the user_principal of this AuthorizationRequest. The user principal object :param user_principal: The user_principal of this AuthorizationRequest. :type: oci.identity_data_plane.models.Principal Nr )r r r r r r m s c C s | j S )a **[Required]** Gets the svc_principal of this AuthorizationRequest. The service principal object for service to service calls. :return: The svc_principal of this AuthorizationRequest. :rtype: oci.identity_data_plane.models.Principal �r r r r r r y s z"AuthorizationRequest.svc_principalc C s || _ dS )a Sets the svc_principal of this AuthorizationRequest. The service principal object for service to service calls. :param svc_principal: The svc_principal of this AuthorizationRequest. :type: oci.identity_data_plane.models.Principal Nr )r r r r r r � s c C s | j S )z� **[Required]** Gets the service_name of this AuthorizationRequest. The name of the service that is making this authorization request :return: The service_name of this AuthorizationRequest. :rtype: str �r r r r r r � s z!AuthorizationRequest.service_namec C s || _ dS )z� Sets the service_name of this AuthorizationRequest. The name of the service that is making this authorization request :param service_name: The service_name of this AuthorizationRequest. :type: str Nr )r r r r r r � s c C s | j S )z� **[Required]** Gets the context of this AuthorizationRequest. A set of permission contexts :return: The context of this AuthorizationRequest. :rtype: list[oci.identity_data_plane.models.PermissionContext] �r r r r r r � s zAuthorizationRequest.contextc C s || _ dS )z� Sets the context of this AuthorizationRequest. A set of permission contexts :param context: The context of this AuthorizationRequest. :type: list[oci.identity_data_plane.models.PermissionContext] Nr )r r r r r r � s c C s | j S )aK **[Required]** Gets the policy_hash of this AuthorizationRequest. The hash of cached policy on the caller service side. If this is different than what Identity has, it will send the most recent policy statements. :return: The policy_hash of this AuthorizationRequest. :rtype: str �r r r r r r � s z AuthorizationRequest.policy_hashc C s || _ dS )aF Sets the policy_hash of this AuthorizationRequest. The hash of cached policy on the caller service side. If this is different than what Identity has, it will send the most recent policy statements. :param policy_hash: The policy_hash of this AuthorizationRequest. :type: str Nr )r r r r r r � s c C s t | �S �N)r r r r r �__repr__� s zAuthorizationRequest.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__� s zAuthorizationRequest.__eq__c C s | |k S r r r# r r r �__ne__� s zAuthorizationRequest.__ne__N)�__name__� __module__�__qualname__�__doc__r �propertyr �setterr r r r r r! r% r&