Class: Google::Apis::NetworkservicesV1::ProducerExtensionExtensionSettings

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/networkservices_v1/classes.rb,
lib/google/apis/networkservices_v1/representations.rb,
lib/google/apis/networkservices_v1/representations.rb

Overview

The configuration for the service that this ProducerExtension offers.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ProducerExtensionExtensionSettings

Returns a new instance of ProducerExtensionExtensionSettings.



5019
5020
5021
# File 'lib/google/apis/networkservices_v1/classes.rb', line 5019

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#authorityString

Optional. The :authority header in the request sent to the extension service. Corresponds to the JSON property authority

Returns:

  • (String)


5001
5002
5003
# File 'lib/google/apis/networkservices_v1/classes.rb', line 5001

def authority
  @authority
end

#observability_modeBoolean Also known as: observability_mode?

Optional. Whether the extension should function in observability mode. Corresponds to the JSON property observabilityMode

Returns:

  • (Boolean)


5006
5007
5008
# File 'lib/google/apis/networkservices_v1/classes.rb', line 5006

def observability_mode
  @observability_mode
end

#serviceString

Required. URI of the PSC attachment. Corresponds to the JSON property service

Returns:

  • (String)


5012
5013
5014
# File 'lib/google/apis/networkservices_v1/classes.rb', line 5012

def service
  @service
end

#supported_eventsArray<String>

Required. The event types supported by the extension. Corresponds to the JSON property supportedEvents

Returns:

  • (Array<String>)


5017
5018
5019
# File 'lib/google/apis/networkservices_v1/classes.rb', line 5017

def supported_events
  @supported_events
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5024
5025
5026
5027
5028
5029
# File 'lib/google/apis/networkservices_v1/classes.rb', line 5024

def update!(**args)
  @authority = args[:authority] if args.key?(:authority)
  @observability_mode = args[:observability_mode] if args.key?(:observability_mode)
  @service = args[:service] if args.key?(:service)
  @supported_events = args[:supported_events] if args.key?(:supported_events)
end