Class: Google::Apis::ServiceuserV1::Visibility

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

Overview

Visibility defines restrictions for the visibility of service elements. Restrictions are specified using visibility labels (e.g., TRUSTED_TESTER) that are elsewhere linked to users and projects. Users and projects can have access to more than one visibility label. The effective visibility for multiple labels is the union of each label's elements, plus any unrestricted elements. If an element and its parents have no restrictions, visibility is unconditionally granted. Example: visibility: rules:

  • selector: google.calendar.Calendar.EnhancedSearch restriction: TRUSTED_TESTER
  • selector: google.calendar.Calendar.Delegate restriction: GOOGLE_INTERNAL Here, all methods are publicly visible except for the restricted methods EnhancedSearch and Delegate.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Visibility

Returns a new instance of Visibility



3566
3567
3568
# File 'generated/google/apis/serviceuser_v1/classes.rb', line 3566

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

Instance Attribute Details

#rulesArray<Google::Apis::ServiceuserV1::VisibilityRule>

A list of visibility rules that apply to individual API elements. NOTE: All service configuration rules follow "last one wins" order. Corresponds to the JSON property rules



3564
3565
3566
# File 'generated/google/apis/serviceuser_v1/classes.rb', line 3564

def rules
  @rules
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3571
3572
3573
# File 'generated/google/apis/serviceuser_v1/classes.rb', line 3571

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