Class: Google::Apis::TrafficdirectorV3::SemanticVersion
- Inherits:
-
Object
- Object
- Google::Apis::TrafficdirectorV3::SemanticVersion
- 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
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.
Instance Attribute Summary collapse
-
#major_number ⇒ Fixnum
Corresponds to the JSON property
majorNumber
. -
#minor_number ⇒ Fixnum
Corresponds to the JSON property
minorNumber
. -
#patch ⇒ Fixnum
Corresponds to the JSON property
patch
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SemanticVersion
constructor
A new instance of SemanticVersion.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SemanticVersion
Returns a new instance of SemanticVersion.
1358 1359 1360 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1358 def initialize(**args) update!(**args) end |
Instance Attribute Details
#major_number ⇒ Fixnum
Corresponds to the JSON property majorNumber
1346 1347 1348 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1346 def major_number @major_number end |
#minor_number ⇒ Fixnum
Corresponds to the JSON property minorNumber
1351 1352 1353 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1351 def minor_number @minor_number end |
#patch ⇒ Fixnum
Corresponds to the JSON property patch
1356 1357 1358 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1356 def patch @patch end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1363 1364 1365 1366 1367 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1363 def update!(**args) @major_number = args[:major_number] if args.key?(:major_number) @minor_number = args[:minor_number] if args.key?(:minor_number) @patch = args[:patch] if args.key?(:patch) end |