Class: Google::Apis::AppengineV1::ProjectEvent

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

Overview

The request sent to CLHs during project events.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ProjectEvent

Returns a new instance of ProjectEvent.



2158
2159
2160
# File 'lib/google/apis/appengine_v1/classes.rb', line 2158

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

Instance Attribute Details

#event_idString

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

Returns:

  • (String)


2137
2138
2139
# File 'lib/google/apis/appengine_v1/classes.rb', line 2137

def event_id
  @event_id
end

#phaseString

Corresponds to the JSON property phase

Returns:

  • (String)


2142
2143
2144
# File 'lib/google/apis/appengine_v1/classes.rb', line 2142

def phase
  @phase
end

#project_metadataGoogle::Apis::AppengineV1::ProjectsMetadata

ProjectsMetadata is the metadata CCFE stores about the all the relevant projects (tenant, consumer, producer). Corresponds to the JSON property projectMetadata



2148
2149
2150
# File 'lib/google/apis/appengine_v1/classes.rb', line 2148

def 
  @project_metadata
end

#stateGoogle::Apis::AppengineV1::ProjectState

ProjectState contains the externally-visible project 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 project state. Corresponds to the JSON property state



2156
2157
2158
# File 'lib/google/apis/appengine_v1/classes.rb', line 2156

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2163
2164
2165
2166
2167
2168
# File 'lib/google/apis/appengine_v1/classes.rb', line 2163

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