Class: Google::Apis::OndemandscanningV1beta1::PackageVersion

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PackageVersion

Returns a new instance of PackageVersion.



2281
2282
2283
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 2281

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

Instance Attribute Details

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


2274
2275
2276
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 2274

def name
  @name
end

#versionString

Corresponds to the JSON property version

Returns:

  • (String)


2279
2280
2281
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 2279

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2286
2287
2288
2289
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 2286

def update!(**args)
  @name = args[:name] if args.key?(:name)
  @version = args[:version] if args.key?(:version)
end