Class: Google::Apis::CloudassetV1::ConditionContext

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudasset_v1/classes.rb,
lib/google/apis/cloudasset_v1/representations.rb,
lib/google/apis/cloudasset_v1/representations.rb

Overview

The IAM conditions context.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ConditionContext

Returns a new instance of ConditionContext.



857
858
859
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 857

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

Instance Attribute Details

#access_timeString

The hypothetical access timestamp to evaluate IAM conditions. Note that this value must not be earlier than the current time; otherwise, an INVALID_ARGUMENT error will be returned. Corresponds to the JSON property accessTime

Returns:

  • (String)


855
856
857
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 855

def access_time
  @access_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



862
863
864
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 862

def update!(**args)
  @access_time = args[:access_time] if args.key?(:access_time)
end