REST Resource: projects.approvalRequests

Resource: ApprovalRequest

A request for the customer to approve access to a resource.

JSON representation
{
  "name": string,
  "requestedResourceName": string,
  "requestedResourceProperties": {
    object (ResourceProperties)
  },
  "requestedReason": {
    object (AccessReason)
  },
  "requestedLocations": {
    object (AccessLocations)
  },
  "requestTime": string,
  "requestedExpiration": string,

  // Union field decision can be only one of the following:
  "approve": {
    object (ApproveDecision)
  },
  "dismiss": {
    object (DismissDecision)
  }
  // End of list of possible types for union field decision.
}
Fields
name

string

The resource name of the request. Format is "{projects|folders|organizations}/{id}/approvalRequests/{approval_request_id}".

requestedResourceName

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.

requestedResourceProperties

object (ResourceProperties)

Properties related to the resource represented by requestedResourceName.

requestedReason

object (AccessReason)

The justification for which approval is being requested.

requestedLocations

object (AccessLocations)

The locations for which approval is being requested.

requestTime

string (Timestamp format)

The time at which approval was requested.

A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

requestedExpiration

string (Timestamp format)

The requested expiration for the approval. If the request is approved, access will be granted from the time of approval until the expiration time.

A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

Union field decision. The current decision on the approval request. decision can be only one of the following:
approve

object (ApproveDecision)

Access was approved.

dismiss

object (DismissDecision)

The request was dismissed.

Methods

approve

Approves a request and returns the updated ApprovalRequest.

dismiss

Dismisses a request.

get

Gets an approval request.

list

Lists approval requests associated with a project, folder, or organization.
Hai trovato utile questa pagina? Facci sapere cosa ne pensi:

Invia feedback per...

Access Approval