Class: Google::Apis::ToolresultsV1beta3::UpgradeInsight

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

Overview

This insight is a recommendation to upgrade a given library to the specified version, in order to avoid dependencies on non-SDK APIs.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UpgradeInsight

Returns a new instance of UpgradeInsight.



3784
3785
3786
# File 'lib/google/apis/toolresults_v1beta3/classes.rb', line 3784

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

Instance Attribute Details

#package_nameString

The name of the package to be upgraded. Corresponds to the JSON property packageName

Returns:

  • (String)


3776
3777
3778
# File 'lib/google/apis/toolresults_v1beta3/classes.rb', line 3776

def package_name
  @package_name
end

#upgrade_to_versionString

The suggested version to upgrade to. Optional: In case we are not sure which version solves this problem Corresponds to the JSON property upgradeToVersion

Returns:

  • (String)


3782
3783
3784
# File 'lib/google/apis/toolresults_v1beta3/classes.rb', line 3782

def upgrade_to_version
  @upgrade_to_version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3789
3790
3791
3792
# File 'lib/google/apis/toolresults_v1beta3/classes.rb', line 3789

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