Class: Google::Apis::TrafficdirectorV3::BuildVersion
- Inherits:
-
Object
- Object
- Google::Apis::TrafficdirectorV3::BuildVersion
- 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
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
-
#metadata ⇒ Hash<String,Object>
Free-form build information.
-
#version ⇒ Google::Apis::TrafficdirectorV3::SemanticVersion
Envoy uses SemVer (https://semver.org/).
Instance Method Summary collapse
-
#initialize(**args) ⇒ BuildVersion
constructor
A new instance of BuildVersion.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BuildVersion
Returns a new instance of BuildVersion.
76 77 78 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 76 def initialize(**args) update!(**args) end |
Instance Attribute Details
#metadata ⇒ Hash<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
67 68 69 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 67 def @metadata end |
#version ⇒ Google::Apis::TrafficdirectorV3::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
74 75 76 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 74 def version @version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
81 82 83 84 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 81 def update!(**args) @metadata = args[:metadata] if args.key?(:metadata) @version = args[:version] if args.key?(:version) end |