Class: Google::Apis::ServiceuserV1::VisibilityRule
- Inherits:
-
Object
- Object
- Google::Apis::ServiceuserV1::VisibilityRule
- 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
A visibility rule provides visibility configuration for an individual API element.
Instance Attribute Summary collapse
-
#restriction ⇒ String
A comma-separated list of visibility labels that apply to the
selector
. -
#selector ⇒ String
Selects methods, messages, fields, enums, etc.
Instance Method Summary collapse
-
#initialize(**args) ⇒ VisibilityRule
constructor
A new instance of VisibilityRule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ VisibilityRule
Returns a new instance of VisibilityRule
3568 3569 3570 |
# File 'generated/google/apis/serviceuser_v1/classes.rb', line 3568 def initialize(**args) update!(**args) end |
Instance Attribute Details
#restriction ⇒ String
A comma-separated list of visibility labels that apply to the selector
.
Any of the listed labels can be used to grant the visibility.
If a rule has multiple labels, removing one of the labels but not all of
them can break clients.
Example:
visibility:
rules:
- selector: google.calendar.Calendar.EnhancedSearch
restriction: GOOGLE_INTERNAL, TRUSTED_TESTER
Removing GOOGLE_INTERNAL from this restriction will break clients that
rely on this method and only had access to it through GOOGLE_INTERNAL.
Corresponds to the JSON property
restriction
3560 3561 3562 |
# File 'generated/google/apis/serviceuser_v1/classes.rb', line 3560 def restriction @restriction end |
#selector ⇒ String
Selects methods, messages, fields, enums, etc. to which this rule applies.
Refer to selector for syntax details.
Corresponds to the JSON property selector
3566 3567 3568 |
# File 'generated/google/apis/serviceuser_v1/classes.rb', line 3566 def selector @selector end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3573 3574 3575 3576 |
# File 'generated/google/apis/serviceuser_v1/classes.rb', line 3573 def update!(**args) @restriction = args[:restriction] if args.key?(:restriction) @selector = args[:selector] if args.key?(:selector) end |