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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/toolresults_v1beta3/classes.rb,
generated/google/apis/toolresults_v1beta3/representations.rb,
generated/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.



3744
3745
3746
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 3744

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)


3736
3737
3738
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 3736

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)


3742
3743
3744
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 3742

def upgrade_to_version
  @upgrade_to_version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3749
3750
3751
3752
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 3749

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