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



3683
3684
3685
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 3683

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)


3675
3676
3677
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 3675

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)


3681
3682
3683
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 3681

def selector
  @selector
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3688
3689
3690
3691
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 3688

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