Class: Google::Apis::AppengineV1::ProjectState

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

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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ProjectState

Returns a new instance of ProjectState.



2227
2228
2229
# File 'lib/google/apis/appengine_v1/classes.rb', line 2227

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

Instance Attribute Details

#current_reasonsGoogle::Apis::AppengineV1::Reasons

Projects transition between and within states based on reasons sent from various systems. CCFE will provide the CLH with reasons for the current state per system.The current systems that CCFE supports are: Service Management ( Inception) Data Governance (Wipeout) Abuse (Ares) Billing (Internal Cloud Billing API) Corresponds to the JSON property currentReasons



2210
2211
2212
# File 'lib/google/apis/appengine_v1/classes.rb', line 2210

def current_reasons
  @current_reasons
end

#previous_reasonsGoogle::Apis::AppengineV1::Reasons

Projects transition between and within states based on reasons sent from various systems. CCFE will provide the CLH with reasons for the current state per system.The current systems that CCFE supports are: Service Management ( Inception) Data Governance (Wipeout) Abuse (Ares) Billing (Internal Cloud Billing API) Corresponds to the JSON property previousReasons



2219
2220
2221
# File 'lib/google/apis/appengine_v1/classes.rb', line 2219

def previous_reasons
  @previous_reasons
end

#stateString

The current state of the project. This state is the culmination of all of the opinions from external systems that CCFE knows about of the project. Corresponds to the JSON property state

Returns:

  • (String)


2225
2226
2227
# File 'lib/google/apis/appengine_v1/classes.rb', line 2225

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2232
2233
2234
2235
2236
# File 'lib/google/apis/appengine_v1/classes.rb', line 2232

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