Class: Google::Apis::GkeonpremV1::UpgradeDependency
- Inherits:
-
Object
- Object
- Google::Apis::GkeonpremV1::UpgradeDependency
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gkeonprem_v1/classes.rb,
lib/google/apis/gkeonprem_v1/representations.rb,
lib/google/apis/gkeonprem_v1/representations.rb
Overview
UpgradeDependency represents a dependency when upgrading a resource.
Instance Attribute Summary collapse
-
#current_version ⇒ String
Current version of the dependency e.g.
-
#local_name ⇒ String
Local name of the dependency.
-
#resource_name ⇒ String
Resource name of the dependency.
-
#target_version ⇒ String
Target version of the dependency e.g.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UpgradeDependency
constructor
A new instance of UpgradeDependency.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ UpgradeDependency
Returns a new instance of UpgradeDependency.
3395 3396 3397 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3395 def initialize(**args) update!(**args) end |
Instance Attribute Details
#current_version ⇒ String
Current version of the dependency e.g. 1.15.0.
Corresponds to the JSON property currentVersion
3377 3378 3379 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3377 def current_version @current_version end |
#local_name ⇒ String
Local name of the dependency.
Corresponds to the JSON property localName
3382 3383 3384 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3382 def local_name @local_name end |
#resource_name ⇒ String
Resource name of the dependency.
Corresponds to the JSON property resourceName
3387 3388 3389 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3387 def resource_name @resource_name end |
#target_version ⇒ String
Target version of the dependency e.g. 1.16.1. This is the version the
dependency needs to be upgraded to before a resource can be upgraded.
Corresponds to the JSON property targetVersion
3393 3394 3395 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3393 def target_version @target_version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3400 3401 3402 3403 3404 3405 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 3400 def update!(**args) @current_version = args[:current_version] if args.key?(:current_version) @local_name = args[:local_name] if args.key?(:local_name) @resource_name = args[:resource_name] if args.key?(:resource_name) @target_version = args[:target_version] if args.key?(:target_version) end |