Class: Google::Apis::TrafficdirectorV3::SemanticVersion

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

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SemanticVersion

Returns a new instance of SemanticVersion.



1331
1332
1333
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1331

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

Instance Attribute Details

#major_numberFixnum

Corresponds to the JSON property majorNumber

Returns:

  • (Fixnum)


1319
1320
1321
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1319

def major_number
  @major_number
end

#minor_numberFixnum

Corresponds to the JSON property minorNumber

Returns:

  • (Fixnum)


1324
1325
1326
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1324

def minor_number
  @minor_number
end

#patchFixnum

Corresponds to the JSON property patch

Returns:

  • (Fixnum)


1329
1330
1331
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1329

def patch
  @patch
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1336
1337
1338
1339
1340
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1336

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