Class: Google::Apis::TrafficdirectorV2::BuildVersion

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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BuildVersion

Returns a new instance of BuildVersion.



70
71
72
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 70

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

Instance Attribute Details

#metadataHash<String,Object>

Free-form build information. Envoy defines several well known keys in the source/common/version/version.h file Corresponds to the JSON property metadata

Returns:

  • (Hash<String,Object>)


61
62
63
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 61

def 
  @metadata
end

#versionGoogle::Apis::TrafficdirectorV2::SemanticVersion

Envoy uses SemVer (https://semver.org/). Major/minor versions indicate expected behaviors and APIs, the patch version field is used only for security fixes and can be generally ignored. Corresponds to the JSON property version



68
69
70
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 68

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



75
76
77
78
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 75

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