Reference documentation and code samples for the Access Approval V1 API class Google::Cloud::AccessApproval::V1::ApprovalRequest.
A request for the customer to approve access to a resource.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#approve
def approve() -> ::Google::Cloud::AccessApproval::V1::ApproveDecision-
(::Google::Cloud::AccessApproval::V1::ApproveDecision) — Access was approved.
Note: The following fields are mutually exclusive:
approve,dismiss. If a field in that set is populated, all other fields in the set will automatically be cleared.
#approve=
def approve=(value) -> ::Google::Cloud::AccessApproval::V1::ApproveDecision-
value (::Google::Cloud::AccessApproval::V1::ApproveDecision) — Access was approved.
Note: The following fields are mutually exclusive:
approve,dismiss. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::AccessApproval::V1::ApproveDecision) — Access was approved.
Note: The following fields are mutually exclusive:
approve,dismiss. If a field in that set is populated, all other fields in the set will automatically be cleared.
#dismiss
def dismiss() -> ::Google::Cloud::AccessApproval::V1::DismissDecision-
(::Google::Cloud::AccessApproval::V1::DismissDecision) — The request was dismissed.
Note: The following fields are mutually exclusive:
dismiss,approve. If a field in that set is populated, all other fields in the set will automatically be cleared.
#dismiss=
def dismiss=(value) -> ::Google::Cloud::AccessApproval::V1::DismissDecision-
value (::Google::Cloud::AccessApproval::V1::DismissDecision) — The request was dismissed.
Note: The following fields are mutually exclusive:
dismiss,approve. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::AccessApproval::V1::DismissDecision) — The request was dismissed.
Note: The following fields are mutually exclusive:
dismiss,approve. If a field in that set is populated, all other fields in the set will automatically be cleared.
#name
def name() -> ::String- (::String) — The resource name of the request. Format is "{projects|folders|organizations}/{id}/approvalRequests/{approval_request}".
#name=
def name=(value) -> ::String- value (::String) — The resource name of the request. Format is "{projects|folders|organizations}/{id}/approvalRequests/{approval_request}".
- (::String) — The resource name of the request. Format is "{projects|folders|organizations}/{id}/approvalRequests/{approval_request}".
#request_time
def request_time() -> ::Google::Protobuf::Timestamp- (::Google::Protobuf::Timestamp) — The time at which approval was requested.
#request_time=
def request_time=(value) -> ::Google::Protobuf::Timestamp- value (::Google::Protobuf::Timestamp) — The time at which approval was requested.
- (::Google::Protobuf::Timestamp) — The time at which approval was requested.
#requested_expiration
def requested_expiration() -> ::Google::Protobuf::Timestamp- (::Google::Protobuf::Timestamp) — The requested expiration for the approval. If the request is approved, access will be granted from the time of approval until the expiration time.
#requested_expiration=
def requested_expiration=(value) -> ::Google::Protobuf::Timestamp- value (::Google::Protobuf::Timestamp) — The requested expiration for the approval. If the request is approved, access will be granted from the time of approval until the expiration time.
- (::Google::Protobuf::Timestamp) — The requested expiration for the approval. If the request is approved, access will be granted from the time of approval until the expiration time.
#requested_locations
def requested_locations() -> ::Google::Cloud::AccessApproval::V1::AccessLocations- (::Google::Cloud::AccessApproval::V1::AccessLocations) — The locations for which approval is being requested.
#requested_locations=
def requested_locations=(value) -> ::Google::Cloud::AccessApproval::V1::AccessLocations- value (::Google::Cloud::AccessApproval::V1::AccessLocations) — The locations for which approval is being requested.
- (::Google::Cloud::AccessApproval::V1::AccessLocations) — The locations for which approval is being requested.
#requested_reason
def requested_reason() -> ::Google::Cloud::AccessApproval::V1::AccessReason- (::Google::Cloud::AccessApproval::V1::AccessReason) — The justification for which approval is being requested.
#requested_reason=
def requested_reason=(value) -> ::Google::Cloud::AccessApproval::V1::AccessReason- value (::Google::Cloud::AccessApproval::V1::AccessReason) — The justification for which approval is being requested.
- (::Google::Cloud::AccessApproval::V1::AccessReason) — The justification for which approval is being requested.
#requested_resource_name
def requested_resource_name() -> ::String- (::String) — The resource for which approval is being requested. The format of the resource name is defined at https://cloud.google.com/apis/design/resource_names. The resource name here may either be a "full" resource name (e.g. "//library.googleapis.com/shelves/shelf1/books/book2") or a "relative" resource name (e.g. "shelves/shelf1/books/book2") as described in the resource name specification.
#requested_resource_name=
def requested_resource_name=(value) -> ::String- value (::String) — The resource for which approval is being requested. The format of the resource name is defined at https://cloud.google.com/apis/design/resource_names. The resource name here may either be a "full" resource name (e.g. "//library.googleapis.com/shelves/shelf1/books/book2") or a "relative" resource name (e.g. "shelves/shelf1/books/book2") as described in the resource name specification.
- (::String) — The resource for which approval is being requested. The format of the resource name is defined at https://cloud.google.com/apis/design/resource_names. The resource name here may either be a "full" resource name (e.g. "//library.googleapis.com/shelves/shelf1/books/book2") or a "relative" resource name (e.g. "shelves/shelf1/books/book2") as described in the resource name specification.
#requested_resource_properties
def requested_resource_properties() -> ::Google::Cloud::AccessApproval::V1::ResourceProperties- (::Google::Cloud::AccessApproval::V1::ResourceProperties) — Properties related to the resource represented by requested_resource_name.
#requested_resource_properties=
def requested_resource_properties=(value) -> ::Google::Cloud::AccessApproval::V1::ResourceProperties- value (::Google::Cloud::AccessApproval::V1::ResourceProperties) — Properties related to the resource represented by requested_resource_name.
- (::Google::Cloud::AccessApproval::V1::ResourceProperties) — Properties related to the resource represented by requested_resource_name.