Class: Google::Apis::ServiceuserV1::VisibilityRule

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

A visibility rule provides visibility configuration for an individual API element.

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) ⇒ 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

#restrictionString

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

Returns:

  • (String)


3560
3561
3562
# File 'generated/google/apis/serviceuser_v1/classes.rb', line 3560

def restriction
  @restriction
end

#selectorString

Selects methods, messages, fields, enums, etc. to which this rule applies. Refer to selector for syntax details. Corresponds to the JSON property selector

Returns:

  • (String)


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