Class: Google::Apis::ContainerV1::UpgradeInfoEvent
- Inherits:
-
Object
- Object
- Google::Apis::ContainerV1::UpgradeInfoEvent
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/container_v1/classes.rb,
lib/google/apis/container_v1/representations.rb,
lib/google/apis/container_v1/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.
7991 7992 7993 |
# File 'lib/google/apis/container_v1/classes.rb', line 7991 def initialize(**args) update!(**args) end |
Instance Attribute Details
#current_version ⇒ String
The current version before the upgrade.
Corresponds to the JSON property currentVersion
7948 7949 7950 |
# File 'lib/google/apis/container_v1/classes.rb', line 7948 def current_version @current_version end |
#description ⇒ String
A brief description of the event.
Corresponds to the JSON property description
7953 7954 7955 |
# File 'lib/google/apis/container_v1/classes.rb', line 7953 def description @description end |
#end_time ⇒ String
The time when the operation ended.
Corresponds to the JSON property endTime
7958 7959 7960 |
# File 'lib/google/apis/container_v1/classes.rb', line 7958 def end_time @end_time end |
#operation ⇒ String
The operation associated with this upgrade.
Corresponds to the JSON property operation
7963 7964 7965 |
# File 'lib/google/apis/container_v1/classes.rb', line 7963 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
7969 7970 7971 |
# File 'lib/google/apis/container_v1/classes.rb', line 7969 def resource @resource end |
#resource_type ⇒ String
The resource type associated with the upgrade.
Corresponds to the JSON property resourceType
7974 7975 7976 |
# File 'lib/google/apis/container_v1/classes.rb', line 7974 def resource_type @resource_type end |
#start_time ⇒ String
The time when the operation was started.
Corresponds to the JSON property startTime
7979 7980 7981 |
# File 'lib/google/apis/container_v1/classes.rb', line 7979 def start_time @start_time end |
#state ⇒ String
Output only. The state of the upgrade.
Corresponds to the JSON property state
7984 7985 7986 |
# File 'lib/google/apis/container_v1/classes.rb', line 7984 def state @state end |
#target_version ⇒ String
The target version for the upgrade.
Corresponds to the JSON property targetVersion
7989 7990 7991 |
# File 'lib/google/apis/container_v1/classes.rb', line 7989 def target_version @target_version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 |
# File 'lib/google/apis/container_v1/classes.rb', line 7996 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 |