Class: Google::Apis::AppengineV1alpha::ResourceEvent

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/appengine_v1alpha/classes.rb,
lib/google/apis/appengine_v1alpha/representations.rb,
lib/google/apis/appengine_v1alpha/representations.rb
more...

Overview

The request that is passed to CLH during per-resource events. The request will be sent with update semantics in all cases except for data governance purge events. These events will be sent with delete semantics and the CLH is expected to delete the resource receiving this event.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ResourceEvent

Returns a new instance of ResourceEvent.

[View source]

1077
1078
1079
# File 'lib/google/apis/appengine_v1alpha/classes.rb', line 1077

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

Instance Attribute Details

#event_idString

The unique ID for this per-resource event. CLHs can use this value to dedup repeated calls. required Corresponds to the JSON property eventId

Returns:

  • (String)

1062
1063
1064
# File 'lib/google/apis/appengine_v1alpha/classes.rb', line 1062

def event_id
  @event_id
end

#nameString

The name of the resource for which this event is. required Corresponds to the JSON property name

Returns:

  • (String)

1067
1068
1069
# File 'lib/google/apis/appengine_v1alpha/classes.rb', line 1067

def name
  @name
end

#stateGoogle::Apis::AppengineV1alpha::ContainerState

ContainerState contains the externally-visible container state that is used to communicate the state and reasoning for that state to the CLH. This data is not persisted by CCFE, but is instead derived from CCFE's internal representation of the container state. Corresponds to the JSON property state


1075
1076
1077
# File 'lib/google/apis/appengine_v1alpha/classes.rb', line 1075

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object

[View source]

1082
1083
1084
1085
1086
# File 'lib/google/apis/appengine_v1alpha/classes.rb', line 1082

def update!(**args)
  @event_id = args[:event_id] if args.key?(:event_id)
  @name = args[:name] if args.key?(:name)
  @state = args[:state] if args.key?(:state)
end