Class: Google::Apis::TrafficdirectorV3::Extension

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Extension

Returns a new instance of Extension.



697
698
699
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 697

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)


665
666
667
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 665

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)


671
672
673
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 671

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)


678
679
680
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 678

def name
  @name
end

#type_descriptorString

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

Returns:

  • (String)


684
685
686
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 684

def type_descriptor
  @type_descriptor
end

#type_urlsArray<String>

Type URLs of extension configuration protos. Corresponds to the JSON property typeUrls

Returns:

  • (Array<String>)


689
690
691
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 689

def type_urls
  @type_urls
end

#versionGoogle::Apis::TrafficdirectorV3::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



695
696
697
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 695

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



702
703
704
705
706
707
708
709
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 702

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)
  @type_urls = args[:type_urls] if args.key?(:type_urls)
  @version = args[:version] if args.key?(:version)
end