Class: Google::Apis::TrafficdirectorV2::SemanticVersion

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

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.



1005
1006
1007
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 1005

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

Instance Attribute Details

#major_numberFixnum

Corresponds to the JSON property majorNumber

Returns:

  • (Fixnum)


993
994
995
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 993

def major_number
  @major_number
end

#minor_numberFixnum

Corresponds to the JSON property minorNumber

Returns:

  • (Fixnum)


998
999
1000
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 998

def minor_number
  @minor_number
end

#patchFixnum

Corresponds to the JSON property patch

Returns:

  • (Fixnum)


1003
1004
1005
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 1003

def patch
  @patch
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1010
1011
1012
1013
1014
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 1010

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