Class: Google::Apis::CloudcontrolspartnerV1::AccessApprovalRequest
- Inherits:
-
Object
- Object
- Google::Apis::CloudcontrolspartnerV1::AccessApprovalRequest
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudcontrolspartner_v1/classes.rb,
lib/google/apis/cloudcontrolspartner_v1/representations.rb,
lib/google/apis/cloudcontrolspartner_v1/representations.rb
Overview
Details about the Access request.
Instance Attribute Summary collapse
-
#name ⇒ String
Identifier.
-
#request_time ⇒ String
The time at which approval was requested.
-
#requested_expiration_time ⇒ String
The requested expiration for the approval.
-
#requested_reason ⇒ Google::Apis::CloudcontrolspartnerV1::AccessReason
Reason for the access.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AccessApprovalRequest
constructor
A new instance of AccessApprovalRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AccessApprovalRequest
Returns a new instance of AccessApprovalRequest.
52 53 54 |
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 52 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Identifier. Format: organizations/
organization/locations/
location/
customers/
customer/workloads/
workload/accessApprovalRequests/
access_approval_request`
Corresponds to the JSON property
name`
34 35 36 |
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 34 def name @name end |
#request_time ⇒ String
The time at which approval was requested.
Corresponds to the JSON property requestTime
39 40 41 |
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 39 def request_time @request_time end |
#requested_expiration_time ⇒ String
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 requestedExpirationTime
45 46 47 |
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 45 def requested_expiration_time @requested_expiration_time end |
#requested_reason ⇒ Google::Apis::CloudcontrolspartnerV1::AccessReason
Reason for the access.
Corresponds to the JSON property requestedReason
50 51 52 |
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 50 def requested_reason @requested_reason end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
57 58 59 60 61 62 |
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 57 def update!(**args) @name = args[:name] if args.key?(:name) @request_time = args[:request_time] if args.key?(:request_time) @requested_expiration_time = args[:requested_expiration_time] if args.key?(:requested_expiration_time) @requested_reason = args[:requested_reason] if args.key?(:requested_reason) end |