Class: Google::Apis::ContainerV1::UpgradeAvailableEvent

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

UpgradeAvailableEvent is a notification sent to customers when a new available version is released.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UpgradeAvailableEvent

Returns a new instance of UpgradeAvailableEvent.



6205
6206
6207
# File 'lib/google/apis/container_v1/classes.rb', line 6205

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

Instance Attribute Details

#release_channelGoogle::Apis::ContainerV1::ReleaseChannel

ReleaseChannel indicates which release channel a cluster is subscribed to. Release channels are arranged in order of risk. When a cluster is subscribed to a release channel, Google maintains both the master version and the node version. Node auto-upgrade defaults to true and cannot be disabled. Corresponds to the JSON property releaseChannel



6187
6188
6189
# File 'lib/google/apis/container_v1/classes.rb', line 6187

def release_channel
  @release_channel
end

#resourceString

Optional relative path to the resource. For example, the relative path of the node pool. Corresponds to the JSON property resource

Returns:

  • (String)


6193
6194
6195
# File 'lib/google/apis/container_v1/classes.rb', line 6193

def resource
  @resource
end

#resource_typeString

The resource type of the release version. Corresponds to the JSON property resourceType

Returns:

  • (String)


6198
6199
6200
# File 'lib/google/apis/container_v1/classes.rb', line 6198

def resource_type
  @resource_type
end

#versionString

The release version available for upgrade. Corresponds to the JSON property version

Returns:

  • (String)


6203
6204
6205
# File 'lib/google/apis/container_v1/classes.rb', line 6203

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6210
6211
6212
6213
6214
6215
# File 'lib/google/apis/container_v1/classes.rb', line 6210

def update!(**args)
  @release_channel = args[:release_channel] if args.key?(:release_channel)
  @resource = args[:resource] if args.key?(:resource)
  @resource_type = args[:resource_type] if args.key?(:resource_type)
  @version = args[:version] if args.key?(:version)
end