Class: Google::Apis::OndemandscanningV1::PackageVersion
- Inherits:
-
Object
- Object
- Google::Apis::OndemandscanningV1::PackageVersion
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/ondemandscanning_v1/classes.rb,
lib/google/apis/ondemandscanning_v1/representations.rb,
lib/google/apis/ondemandscanning_v1/representations.rb
Instance Attribute Summary collapse
-
#name ⇒ String
Corresponds to the JSON property
name. -
#version ⇒ String
Corresponds to the JSON property
version.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PackageVersion
constructor
A new instance of PackageVersion.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PackageVersion
Returns a new instance of PackageVersion.
2442 2443 2444 |
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 2442 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Corresponds to the JSON property name
2435 2436 2437 |
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 2435 def name @name end |
#version ⇒ String
Corresponds to the JSON property version
2440 2441 2442 |
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 2440 def version @version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2447 2448 2449 2450 |
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 2447 def update!(**args) @name = args[:name] if args.key?(:name) @version = args[:version] if args.key?(:version) end |