Class: Google::Apis::ServicemanagementV1::Visibility

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/servicemanagement_v1/classes.rb,
generated/google/apis/servicemanagement_v1/representations.rb,
generated/google/apis/servicemanagement_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



3748
3749
3750
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 3748

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

Instance Attribute Details

#rulesArray<Google::Apis::ServicemanagementV1::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



3746
3747
3748
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 3746

def rules
  @rules
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3753
3754
3755
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 3753

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