Class: Google::Apis::ContainerV1beta1::UpgradeInfoEvent
- Inherits:
-
Object
- Object
- Google::Apis::ContainerV1beta1::UpgradeInfoEvent
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/container_v1beta1/classes.rb,
lib/google/apis/container_v1beta1/representations.rb,
lib/google/apis/container_v1beta1/representations.rb
Overview
UpgradeInfoEvent is a notification sent to customers about the upgrade information of a resource.
Instance Attribute Summary collapse
-
#current_version ⇒ String
The current version before the upgrade.
-
#description ⇒ String
A brief description of the event.
-
#end_time ⇒ String
The time when the operation ended.
-
#operation ⇒ String
The operation associated with this upgrade.
-
#resource ⇒ String
Optional relative path to the resource.
-
#resource_type ⇒ String
The resource type associated with the upgrade.
-
#start_time ⇒ String
The time when the operation was started.
-
#state ⇒ String
Output only.
-
#target_version ⇒ String
The target version for the upgrade.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UpgradeInfoEvent
constructor
A new instance of UpgradeInfoEvent.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ UpgradeInfoEvent
Returns a new instance of UpgradeInfoEvent.
8870 8871 8872 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 8870 def initialize(**args) update!(**args) end |
Instance Attribute Details
#current_version ⇒ String
The current version before the upgrade.
Corresponds to the JSON property currentVersion
8827 8828 8829 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 8827 def current_version @current_version end |
#description ⇒ String
A brief description of the event.
Corresponds to the JSON property description
8832 8833 8834 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 8832 def description @description end |
#end_time ⇒ String
The time when the operation ended.
Corresponds to the JSON property endTime
8837 8838 8839 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 8837 def end_time @end_time end |
#operation ⇒ String
The operation associated with this upgrade.
Corresponds to the JSON property operation
8842 8843 8844 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 8842 def operation @operation end |
#resource ⇒ String
Optional relative path to the resource. For example in node pool upgrades, the
relative path of the node pool.
Corresponds to the JSON property resource
8848 8849 8850 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 8848 def resource @resource end |
#resource_type ⇒ String
The resource type associated with the upgrade.
Corresponds to the JSON property resourceType
8853 8854 8855 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 8853 def resource_type @resource_type end |
#start_time ⇒ String
The time when the operation was started.
Corresponds to the JSON property startTime
8858 8859 8860 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 8858 def start_time @start_time end |
#state ⇒ String
Output only. The state of the upgrade.
Corresponds to the JSON property state
8863 8864 8865 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 8863 def state @state end |
#target_version ⇒ String
The target version for the upgrade.
Corresponds to the JSON property targetVersion
8868 8869 8870 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 8868 def target_version @target_version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 8875 def update!(**args) @current_version = args[:current_version] if args.key?(:current_version) @description = args[:description] if args.key?(:description) @end_time = args[:end_time] if args.key?(:end_time) @operation = args[:operation] if args.key?(:operation) @resource = args[:resource] if args.key?(:resource) @resource_type = args[:resource_type] if args.key?(:resource_type) @start_time = args[:start_time] if args.key?(:start_time) @state = args[:state] if args.key?(:state) @target_version = args[:target_version] if args.key?(:target_version) end |