Class: Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaBindingExplanationAnnotatedMembership

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

Details about whether the binding includes the principal.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudPolicysimulatorV1alphaBindingExplanationAnnotatedMembership

Returns a new instance of GoogleCloudPolicysimulatorV1alphaBindingExplanationAnnotatedMembership.



700
701
702
# File 'lib/google/apis/policysimulator_v1alpha/classes.rb', line 700

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

Instance Attribute Details

#membershipString

Indicates whether the binding includes the principal. Corresponds to the JSON property membership

Returns:

  • (String)


692
693
694
# File 'lib/google/apis/policysimulator_v1alpha/classes.rb', line 692

def membership
  @membership
end

#relevanceString

The relevance of the principal's status to the overall determination for the binding. Corresponds to the JSON property relevance

Returns:

  • (String)


698
699
700
# File 'lib/google/apis/policysimulator_v1alpha/classes.rb', line 698

def relevance
  @relevance
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



705
706
707
708
# File 'lib/google/apis/policysimulator_v1alpha/classes.rb', line 705

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