Class: Google::Apis::TrafficdirectorV2::Extension

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

Overview

Version and identification for an Envoy extension. [#next-free-field: 6]

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Extension

Returns a new instance of Extension.



469
470
471
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 469

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

Instance Attribute Details

#categoryString

Category of the extension. Extension category names use reverse DNS notation. For instance "envoy.filters.listener" for Envoy's built-in listener filters or "com.acme.filters.http" for HTTP filters from acme.com vendor. [#comment: Corresponds to the JSON property category

Returns:

  • (String)


442
443
444
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 442

def category
  @category
end

#disabledBoolean Also known as: disabled?

Indicates that the extension is present but was disabled via dynamic configuration. Corresponds to the JSON property disabled

Returns:

  • (Boolean)


448
449
450
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 448

def disabled
  @disabled
end

#nameString

This is the name of the Envoy filter as specified in the Envoy configuration, e.g. envoy.filters.http.router, com.acme.widget. Corresponds to the JSON property name

Returns:

  • (String)


455
456
457
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 455

def name
  @name
end

#type_descriptorString

[#not-implemented-hide:] Type descriptor of extension configuration proto. [# comment: Corresponds to the JSON property typeDescriptor

Returns:

  • (String)


461
462
463
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 461

def type_descriptor
  @type_descriptor
end

#versionGoogle::Apis::TrafficdirectorV2::BuildVersion

BuildVersion combines SemVer version of extension with free-form build information (i.e. 'alpha', 'private-build') as a set of strings. Corresponds to the JSON property version



467
468
469
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 467

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



474
475
476
477
478
479
480
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 474

def update!(**args)
  @category = args[:category] if args.key?(:category)
  @disabled = args[:disabled] if args.key?(:disabled)
  @name = args[:name] if args.key?(:name)
  @type_descriptor = args[:type_descriptor] if args.key?(:type_descriptor)
  @version = args[:version] if args.key?(:version)
end