Class: Google::Apis::ServiceconsumermanagementV1::Visibility

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



3897
3898
3899
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 3897

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

Instance Attribute Details

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



3895
3896
3897
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 3895

def rules
  @rules
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3902
3903
3904
# File 'generated/google/apis/serviceconsumermanagement_v1/classes.rb', line 3902

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