Class: Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaBindingExplanationAnnotatedMembership

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

Overview

Details about whether the binding includes the principal.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudPolicysimulatorV1betaBindingExplanationAnnotatedMembership

Returns a new instance of GoogleCloudPolicysimulatorV1betaBindingExplanationAnnotatedMembership.



930
931
932
# File 'lib/google/apis/policysimulator_v1beta/classes.rb', line 930

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)


922
923
924
# File 'lib/google/apis/policysimulator_v1beta/classes.rb', line 922

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)


928
929
930
# File 'lib/google/apis/policysimulator_v1beta/classes.rb', line 928

def relevance
  @relevance
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



935
936
937
938
# File 'lib/google/apis/policysimulator_v1beta/classes.rb', line 935

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