Class: Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaAccessStateDiff

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

Overview

A summary and comparison of the principal's access under the current (baseline) policies and the proposed (simulated) policies for a single access tuple.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudPolicysimulatorV1alphaAccessStateDiff

Returns a new instance of GoogleCloudPolicysimulatorV1alphaAccessStateDiff.



540
541
542
# File 'lib/google/apis/policysimulator_v1alpha/classes.rb', line 540

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

Instance Attribute Details

#access_changeString

How the principal's access, specified in the AccessState field, changed between the current (baseline) policies and proposed (simulated) policies. Corresponds to the JSON property accessChange

Returns:

  • (String)


526
527
528
# File 'lib/google/apis/policysimulator_v1alpha/classes.rb', line 526

def access_change
  @access_change
end

#baselineGoogle::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaExplainedAccess

Details about how a set of policies, listed in ExplainedPolicy, resulted in a certain AccessState when replaying an access tuple. Corresponds to the JSON property baseline



532
533
534
# File 'lib/google/apis/policysimulator_v1alpha/classes.rb', line 532

def baseline
  @baseline
end

#simulatedGoogle::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaExplainedAccess

Details about how a set of policies, listed in ExplainedPolicy, resulted in a certain AccessState when replaying an access tuple. Corresponds to the JSON property simulated



538
539
540
# File 'lib/google/apis/policysimulator_v1alpha/classes.rb', line 538

def simulated
  @simulated
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



545
546
547
548
549
# File 'lib/google/apis/policysimulator_v1alpha/classes.rb', line 545

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