class Google::Apis::AccessapprovalV1::ApprovalRequest

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

Attributes

approve[RW]

A decision that has been made to approve access to a resource. Corresponds to the JSON property `approve` @return [Google::Apis::AccessapprovalV1::ApproveDecision]

dismiss[RW]

A decision that has been made to dismiss an approval request. Corresponds to the JSON property `dismiss` @return [Google::Apis::AccessapprovalV1::DismissDecision]

name[RW]

The resource name of the request. Format is “`projects|folders|organizations`/` id`/approvalRequests/`approval_request`”. Corresponds to the JSON property `name` @return [String]

request_time[RW]

The time at which approval was requested. Corresponds to the JSON property `requestTime` @return [String]

requested_expiration[RW]

The requested expiration for the approval. If the request is approved, access will be granted from the time of approval until the expiration time. Corresponds to the JSON property `requestedExpiration` @return [String]

requested_locations[RW]

Home office and physical location of the principal. Corresponds to the JSON property `requestedLocations` @return [Google::Apis::AccessapprovalV1::AccessLocations]

requested_reason[RW]

The justification for which approval is being requested. Corresponds to the JSON property `requestedReason` @return [Google::Apis::AccessapprovalV1::AccessReason]

requested_resource_name[RW]

The resource for which approval is being requested. The format of the resource name is defined at 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. Corresponds to the JSON property `requestedResourceName` @return [String]

requested_resource_properties[RW]

The properties associated with the resource of the request. Corresponds to the JSON property `requestedResourceProperties` @return [Google::Apis::AccessapprovalV1::ResourceProperties]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/accessapproval_v1/classes.rb, line 195
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/accessapproval_v1/classes.rb, line 200
def update!(**args)
  @approve = args[:approve] if args.key?(:approve)
  @dismiss = args[:dismiss] if args.key?(:dismiss)
  @name = args[:name] if args.key?(:name)
  @request_time = args[:request_time] if args.key?(:request_time)
  @requested_expiration = args[:requested_expiration] if args.key?(:requested_expiration)
  @requested_locations = args[:requested_locations] if args.key?(:requested_locations)
  @requested_reason = args[:requested_reason] if args.key?(:requested_reason)
  @requested_resource_name = args[:requested_resource_name] if args.key?(:requested_resource_name)
  @requested_resource_properties = args[:requested_resource_properties] if args.key?(:requested_resource_properties)
end