Class: Google::Apis::ContainerV1::UpgradeEvent

Inherits:
Object
  • Object
show all
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

UpgradeEvent is a notification sent to customers by the cluster server when a resource is upgrading.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UpgradeEvent

Returns a new instance of UpgradeEvent.



6180
6181
6182
# File 'lib/google/apis/container_v1/classes.rb', line 6180

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

Instance Attribute Details

#current_versionString

The current version before the upgrade. Corresponds to the JSON property currentVersion

Returns:

  • (String)


6152
6153
6154
# File 'lib/google/apis/container_v1/classes.rb', line 6152

def current_version
  @current_version
end

#operationString

The operation associated with this upgrade. Corresponds to the JSON property operation

Returns:

  • (String)


6157
6158
6159
# File 'lib/google/apis/container_v1/classes.rb', line 6157

def operation
  @operation
end

#operation_start_timeString

The time when the operation was started. Corresponds to the JSON property operationStartTime

Returns:

  • (String)


6162
6163
6164
# File 'lib/google/apis/container_v1/classes.rb', line 6162

def operation_start_time
  @operation_start_time
end

#resourceString

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

Returns:

  • (String)


6168
6169
6170
# File 'lib/google/apis/container_v1/classes.rb', line 6168

def resource
  @resource
end

#resource_typeString

The resource type that is upgrading. Corresponds to the JSON property resourceType

Returns:

  • (String)


6173
6174
6175
# File 'lib/google/apis/container_v1/classes.rb', line 6173

def resource_type
  @resource_type
end

#target_versionString

The target version for the upgrade. Corresponds to the JSON property targetVersion

Returns:

  • (String)


6178
6179
6180
# File 'lib/google/apis/container_v1/classes.rb', line 6178

def target_version
  @target_version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6185
6186
6187
6188
6189
6190
6191
6192
# File 'lib/google/apis/container_v1/classes.rb', line 6185

def update!(**args)
  @current_version = args[:current_version] if args.key?(:current_version)
  @operation = args[:operation] if args.key?(:operation)
  @operation_start_time = args[:operation_start_time] if args.key?(:operation_start_time)
  @resource = args[:resource] if args.key?(:resource)
  @resource_type = args[:resource_type] if args.key?(:resource_type)
  @target_version = args[:target_version] if args.key?(:target_version)
end