Class: Google::Apis::RemotebuildexecutionV2::BuildBazelSemverSemVer

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/remotebuildexecution_v2/classes.rb,
generated/google/apis/remotebuildexecution_v2/representations.rb,
generated/google/apis/remotebuildexecution_v2/representations.rb

Overview

The full version of a given tool.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ BuildBazelSemverSemVer

Returns a new instance of BuildBazelSemverSemVer.



2273
2274
2275
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 2273

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

Instance Attribute Details

#majorFixnum

The major version, e.g 10 for 10.2.3. Corresponds to the JSON property major

Returns:

  • (Fixnum)


2254
2255
2256
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 2254

def major
  @major
end

#minorFixnum

The minor version, e.g. 2 for 10.2.3. Corresponds to the JSON property minor

Returns:

  • (Fixnum)


2259
2260
2261
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 2259

def minor
  @minor
end

#patchFixnum

The patch version, e.g 3 for 10.2.3. Corresponds to the JSON property patch

Returns:

  • (Fixnum)


2264
2265
2266
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 2264

def patch
  @patch
end

#prereleaseString

The pre-release version. Either this field or major/minor/patch fields must be filled. They are mutually exclusive. Pre-release versions are assumed to be earlier than any released versions. Corresponds to the JSON property prerelease

Returns:

  • (String)


2271
2272
2273
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 2271

def prerelease
  @prerelease
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2278
2279
2280
2281
2282
2283
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 2278

def update!(**args)
  @major = args[:major] if args.key?(:major)
  @minor = args[:minor] if args.key?(:minor)
  @patch = args[:patch] if args.key?(:patch)
  @prerelease = args[:prerelease] if args.key?(:prerelease)
end