Class: Google::Apis::CloudcontrolspartnerV1::AccessApprovalRequest

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#nameString

Identifier. Format: organizations/organization/locations/location/ customers/customer/workloads/workload/accessApprovalRequests/ access_approval_request` Corresponds to the JSON propertyname`

Returns:

  • (String)


34
35
36
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 34

def name
  @name
end

#request_timeString

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

Returns:

  • (String)


39
40
41
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 39

def request_time
  @request_time
end

#requested_expiration_timeString

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

Returns:

  • (String)


45
46
47
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 45

def requested_expiration_time
  @requested_expiration_time
end

#requested_reasonGoogle::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