Class: Google::Apis::TrafficdirectorV2::BuildVersion
- Inherits:
-
Object
- Object
- Google::Apis::TrafficdirectorV2::BuildVersion
- 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
-
#metadata ⇒ Hash<String,Object>
Free-form build information.
-
#version ⇒ Google::Apis::TrafficdirectorV2::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.
70 71 72 |
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 70 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
61 62 63 |
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 61 def @metadata end |
#version ⇒ Google::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 |