Class: Google::Apis::AccessapprovalV1::ApprovalRequest
- Inherits:
-
Object
- Object
- Google::Apis::AccessapprovalV1::ApprovalRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/accessapproval_v1/classes.rb,
lib/google/apis/accessapproval_v1/representations.rb,
lib/google/apis/accessapproval_v1/representations.rb
Overview
A request for the customer to approve access to a resource.
Instance Attribute Summary collapse
-
#approve ⇒ Google::Apis::AccessapprovalV1::ApproveDecision
A decision that has been made to approve access to a resource.
-
#dismiss ⇒ Google::Apis::AccessapprovalV1::DismissDecision
A decision that has been made to dismiss an approval request.
-
#name ⇒ String
The resource name of the request.
-
#request_time ⇒ String
The time at which approval was requested.
-
#requested_augmented_info ⇒ Google::Apis::AccessapprovalV1::AugmentedInfo
This field contains the augmented information of the request.
-
#requested_duration ⇒ String
The requested access duration.
-
#requested_expiration ⇒ String
The original requested expiration for the approval.
-
#requested_locations ⇒ Google::Apis::AccessapprovalV1::AccessLocations
Home office and physical location of the principal.
-
#requested_reason ⇒ Google::Apis::AccessapprovalV1::AccessReason
The justification for which approval is being requested.
-
#requested_resource_name ⇒ String
The resource for which approval is being requested.
-
#requested_resource_properties ⇒ Google::Apis::AccessapprovalV1::ResourceProperties
The properties associated with the resource of the request.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ApprovalRequest
constructor
A new instance of ApprovalRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ApprovalRequest
Returns a new instance of ApprovalRequest.
303 304 305 |
# File 'lib/google/apis/accessapproval_v1/classes.rb', line 303 def initialize(**args) update!(**args) end |
Instance Attribute Details
#approve ⇒ Google::Apis::AccessapprovalV1::ApproveDecision
A decision that has been made to approve access to a resource.
Corresponds to the JSON property approve
245 246 247 |
# File 'lib/google/apis/accessapproval_v1/classes.rb', line 245 def approve @approve end |
#dismiss ⇒ Google::Apis::AccessapprovalV1::DismissDecision
A decision that has been made to dismiss an approval request.
Corresponds to the JSON property dismiss
250 251 252 |
# File 'lib/google/apis/accessapproval_v1/classes.rb', line 250 def dismiss @dismiss end |
#name ⇒ String
The resource name of the request. Format is "projects|folders|organizations
/
id
/approvalRequests/approval_request
".
Corresponds to the JSON property name
256 257 258 |
# File 'lib/google/apis/accessapproval_v1/classes.rb', line 256 def name @name end |
#request_time ⇒ String
The time at which approval was requested.
Corresponds to the JSON property requestTime
261 262 263 |
# File 'lib/google/apis/accessapproval_v1/classes.rb', line 261 def request_time @request_time end |
#requested_augmented_info ⇒ Google::Apis::AccessapprovalV1::AugmentedInfo
This field contains the augmented information of the request.
Corresponds to the JSON property requestedAugmentedInfo
266 267 268 |
# File 'lib/google/apis/accessapproval_v1/classes.rb', line 266 def requested_augmented_info @requested_augmented_info end |
#requested_duration ⇒ String
The requested access duration.
Corresponds to the JSON property requestedDuration
271 272 273 |
# File 'lib/google/apis/accessapproval_v1/classes.rb', line 271 def requested_duration @requested_duration end |
#requested_expiration ⇒ String
The original requested expiration for the approval. Calculated by adding the
requested_duration to the request_time.
Corresponds to the JSON property requestedExpiration
277 278 279 |
# File 'lib/google/apis/accessapproval_v1/classes.rb', line 277 def requested_expiration @requested_expiration end |
#requested_locations ⇒ Google::Apis::AccessapprovalV1::AccessLocations
Home office and physical location of the principal.
Corresponds to the JSON property requestedLocations
282 283 284 |
# File 'lib/google/apis/accessapproval_v1/classes.rb', line 282 def requested_locations @requested_locations end |
#requested_reason ⇒ Google::Apis::AccessapprovalV1::AccessReason
The justification for which approval is being requested.
Corresponds to the JSON property requestedReason
287 288 289 |
# File 'lib/google/apis/accessapproval_v1/classes.rb', line 287 def requested_reason @requested_reason end |
#requested_resource_name ⇒ 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.
Corresponds to the JSON property requestedResourceName
296 297 298 |
# File 'lib/google/apis/accessapproval_v1/classes.rb', line 296 def requested_resource_name @requested_resource_name end |
#requested_resource_properties ⇒ Google::Apis::AccessapprovalV1::ResourceProperties
The properties associated with the resource of the request.
Corresponds to the JSON property requestedResourceProperties
301 302 303 |
# File 'lib/google/apis/accessapproval_v1/classes.rb', line 301 def requested_resource_properties @requested_resource_properties end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
308 309 310 311 312 313 314 315 316 317 318 319 320 |
# File 'lib/google/apis/accessapproval_v1/classes.rb', line 308 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_augmented_info = args[:requested_augmented_info] if args.key?(:requested_augmented_info) @requested_duration = args[:requested_duration] if args.key?(:requested_duration) @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 |