Class: Google::Apis::ContainerV1::UpgradeInfoEvent

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

UpgradeInfoEvent is a notification sent to customers about the upgrade information of a resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_versionString

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

Returns:

  • (String)


7948
7949
7950
# File 'lib/google/apis/container_v1/classes.rb', line 7948

def current_version
  @current_version
end

#descriptionString

A brief description of the event. Corresponds to the JSON property description

Returns:

  • (String)


7953
7954
7955
# File 'lib/google/apis/container_v1/classes.rb', line 7953

def description
  @description
end

#end_timeString

The time when the operation ended. Corresponds to the JSON property endTime

Returns:

  • (String)


7958
7959
7960
# File 'lib/google/apis/container_v1/classes.rb', line 7958

def end_time
  @end_time
end

#operationString

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

Returns:

  • (String)


7963
7964
7965
# File 'lib/google/apis/container_v1/classes.rb', line 7963

def operation
  @operation
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)


7969
7970
7971
# File 'lib/google/apis/container_v1/classes.rb', line 7969

def resource
  @resource
end

#resource_typeString

The resource type associated with the upgrade. Corresponds to the JSON property resourceType

Returns:

  • (String)


7974
7975
7976
# File 'lib/google/apis/container_v1/classes.rb', line 7974

def resource_type
  @resource_type
end

#start_timeString

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

Returns:

  • (String)


7979
7980
7981
# File 'lib/google/apis/container_v1/classes.rb', line 7979

def start_time
  @start_time
end

#stateString

Output only. The state of the upgrade. Corresponds to the JSON property state

Returns:

  • (String)


7984
7985
7986
# File 'lib/google/apis/container_v1/classes.rb', line 7984

def state
  @state
end

#target_versionString

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

Returns:

  • (String)


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