Class: Google::Apis::ServiceuserV1::Visibility
- Inherits:
-
Object
- Object
- Google::Apis::ServiceuserV1::Visibility
- 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
-
#rules ⇒ Array<Google::Apis::ServiceuserV1::VisibilityRule>
A list of visibility rules that apply to individual API elements.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Visibility
constructor
A new instance of Visibility.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Visibility
Returns a new instance of Visibility
3599 3600 3601 |
# File 'generated/google/apis/serviceuser_v1/classes.rb', line 3599 def initialize(**args) update!(**args) end |
Instance Attribute Details
#rules ⇒ Array<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
3597 3598 3599 |
# File 'generated/google/apis/serviceuser_v1/classes.rb', line 3597 def rules @rules end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3604 3605 3606 |
# File 'generated/google/apis/serviceuser_v1/classes.rb', line 3604 def update!(**args) @rules = args[:rules] if args.key?(:rules) end |