class Google::Apis::ServicenetworkingV1::ContextRule

A context rule provides information about the context for an individual API element.

Attributes

allowed_request_extensions[RW]

A list of full type names or extension IDs of extensions allowed in grpc side channel from client to backend. Corresponds to the JSON property `allowedRequestExtensions` @return [Array<String>]

allowed_response_extensions[RW]

A list of full type names or extension IDs of extensions allowed in grpc side channel from backend to client. Corresponds to the JSON property `allowedResponseExtensions` @return [Array<String>]

provided[RW]

A list of full type names of provided contexts. Corresponds to the JSON property `provided` @return [Array<String>]

requested[RW]

A list of full type names of requested contexts. Corresponds to the JSON property `requested` @return [Array<String>]

selector[RW]

Selects the methods to which this rule applies. Refer to selector for syntax details. Corresponds to the JSON property `selector` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/servicenetworking_v1/classes.rb, line 1022
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/servicenetworking_v1/classes.rb, line 1027
def update!(**args)
  @allowed_request_extensions = args[:allowed_request_extensions] if args.key?(:allowed_request_extensions)
  @allowed_response_extensions = args[:allowed_response_extensions] if args.key?(:allowed_response_extensions)
  @provided = args[:provided] if args.key?(:provided)
  @requested = args[:requested] if args.key?(:requested)
  @selector = args[:selector] if args.key?(:selector)
end