Class: Google::Apis::RemotebuildexecutionV2::BuildBazelSemverSemVer
- Inherits:
-
Object
- Object
- Google::Apis::RemotebuildexecutionV2::BuildBazelSemverSemVer
- 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
-
#major ⇒ Fixnum
The major version, e.g 10 for 10.2.3.
-
#minor ⇒ Fixnum
The minor version, e.g.
-
#patch ⇒ Fixnum
The patch version, e.g 3 for 10.2.3.
-
#prerelease ⇒ String
The pre-release version.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BuildBazelSemverSemVer
constructor
A new instance of BuildBazelSemverSemVer.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ BuildBazelSemverSemVer
Returns a new instance of BuildBazelSemverSemVer
2191 2192 2193 |
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 2191 def initialize(**args) update!(**args) end |
Instance Attribute Details
#major ⇒ Fixnum
The major version, e.g 10 for 10.2.3.
Corresponds to the JSON property major
2172 2173 2174 |
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 2172 def major @major end |
#minor ⇒ Fixnum
The minor version, e.g. 2 for 10.2.3.
Corresponds to the JSON property minor
2177 2178 2179 |
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 2177 def minor @minor end |
#patch ⇒ Fixnum
The patch version, e.g 3 for 10.2.3.
Corresponds to the JSON property patch
2182 2183 2184 |
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 2182 def patch @patch end |
#prerelease ⇒ String
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
2189 2190 2191 |
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 2189 def prerelease @prerelease end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2196 2197 2198 2199 2200 2201 |
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 2196 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 |