UserResource¶
- pydantic model openapi_client.models.user_resource.UserResource¶
One access-request record. User-wide lists enrich ResourceName (and Domain for datasets). Resource-scoped lists return DynamoDB request rows and may omit ResourceName.
- Fields:
- field requested_by: Optional[StrictStr] = None (alias 'RequestedBy')¶
User ID that raised the access request.
- field resource_id: Optional[StrictStr] = None (alias 'ResourceId')¶
ID of the resource access is requested for.
- field resource_name: Optional[StrictStr] = None (alias 'ResourceName')¶
Display name; set on user-wide list enrichment.
- field access_type: Optional[StrictStr] = None (alias 'AccessType')¶
Access level requested (owner, editor, read-only).
- field last_modified: Optional[StrictStr] = None (alias 'LastModified')¶
When the request was last updated.
- field last_modified_by: Optional[StrictStr] = None (alias 'LastModifiedBy')¶
User ID that last updated the request.
- field requesters_comment: Optional[StrictStr] = None (alias 'RequestersComment')¶
Comment provided by the requester (POST Comment).
- field request_id: Optional[StrictStr] = None (alias 'RequestId')¶
Unique ID of the access request.
- field request_status: Optional[StrictStr] = None (alias 'RequestStatus')¶
requested, approved, denied, or revoked.
- field resource_type: Optional[StrictStr] = None (alias 'ResourceType')¶
Resource type key (for example datasets, jobs).
- field expiry_time: Optional[StrictStr] = None (alias 'ExpiryTime')¶
Expiry time recorded on the access request.
- field domain: Optional[StrictStr] = None (alias 'Domain')¶
Dataset domain on user-wide dataset requests.
- field additional_params: Optional[Dict[str, Any]] = None (alias 'AdditionalParams')¶
Extra flags such as IsDomainAccessRequested, IsDatasetLevelAccessRequested, IsTenantAccessRequested.
- field approvers_comment: Optional[StrictStr] = None (alias 'ApproversComment')¶
Approver/denier comment after the request is handled.
- to_str()¶
Returns the string representation of the model using alias
- Return type:
str
- to_json()¶
Returns the JSON representation of the model using alias
- Return type:
str
- classmethod from_json(json_str)¶
Create an instance of UserResource from a JSON string
- Return type:
Optional[Self]
- to_dict()¶
Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic’s self.model_dump(by_alias=True):
None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.
- Return type:
Dict[str,Any]
- classmethod from_dict(obj)¶
Create an instance of UserResource from a dict
- Return type:
Optional[Self]