Class: Google::Apis::ServicemanagementV1::VisibilityRule

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

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



4580
4581
4582
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 4580

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)


4572
4573
4574
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 4572

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)


4578
4579
4580
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 4578

def selector
  @selector
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4585
4586
4587
4588
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 4585

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