Class: Google::Apis::AccessapprovalV1beta1::ApprovalRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/accessapproval_v1beta1/classes.rb,
generated/google/apis/accessapproval_v1beta1/representations.rb,
generated/google/apis/accessapproval_v1beta1/representations.rb

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ApprovalRequest

Returns a new instance of ApprovalRequest.



219
220
221
# File 'generated/google/apis/accessapproval_v1beta1/classes.rb', line 219

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#approveGoogle::Apis::AccessapprovalV1beta1::ApproveDecision

A decision that has been made to approve access to a resource. Corresponds to the JSON property approve



169
170
171
# File 'generated/google/apis/accessapproval_v1beta1/classes.rb', line 169

def approve
  @approve
end

#dismissGoogle::Apis::AccessapprovalV1beta1::DismissDecision

A decision that has been made to dismiss an approval request. Corresponds to the JSON property dismiss



174
175
176
# File 'generated/google/apis/accessapproval_v1beta1/classes.rb', line 174

def dismiss
  @dismiss
end

#nameString

The resource name of the request. Format is "projects|folders|organizations/id/approvalRequests/approval_request_id". Corresponds to the JSON property name

Returns:

  • (String)


180
181
182
# File 'generated/google/apis/accessapproval_v1beta1/classes.rb', line 180

def name
  @name
end

#request_timeString

The time at which approval was requested. Corresponds to the JSON property requestTime

Returns:

  • (String)


185
186
187
# File 'generated/google/apis/accessapproval_v1beta1/classes.rb', line 185

def request_time
  @request_time
end

#requested_expirationString

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

Returns:

  • (String)


191
192
193
# File 'generated/google/apis/accessapproval_v1beta1/classes.rb', line 191

def requested_expiration
  @requested_expiration
end

#requested_locationsGoogle::Apis::AccessapprovalV1beta1::AccessLocations

Home office and physical location of the principal. Corresponds to the JSON property requestedLocations



196
197
198
# File 'generated/google/apis/accessapproval_v1beta1/classes.rb', line 196

def requested_locations
  @requested_locations
end

#requested_reasonGoogle::Apis::AccessapprovalV1beta1::AccessReason

The justification for which approval is being requested. Corresponds to the JSON property requestedReason



201
202
203
# File 'generated/google/apis/accessapproval_v1beta1/classes.rb', line 201

def requested_reason
  @requested_reason
end

#requested_resource_nameString

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. Corresponds to the JSON property requestedResourceName

Returns:

  • (String)


212
213
214
# File 'generated/google/apis/accessapproval_v1beta1/classes.rb', line 212

def requested_resource_name
  @requested_resource_name
end

#requested_resource_propertiesGoogle::Apis::AccessapprovalV1beta1::ResourceProperties

The properties associated with the resource of the request. Corresponds to the JSON property requestedResourceProperties



217
218
219
# File 'generated/google/apis/accessapproval_v1beta1/classes.rb', line 217

def requested_resource_properties
  @requested_resource_properties
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



224
225
226
227
228
229
230
231
232
233
234
# File 'generated/google/apis/accessapproval_v1beta1/classes.rb', line 224

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