Class: Google::Apis::CloudfunctionsV2alpha::UpgradeInfo

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

Overview

Information related to: * A function's eligibility for 1st Gen to 2nd Gen migration * Current state of migration for function undergoing migration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UpgradeInfo

Returns a new instance of UpgradeInfo.



2434
2435
2436
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 2434

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

Instance Attribute Details

#build_configGoogle::Apis::CloudfunctionsV2alpha::BuildConfig

Describes the Build step of the function that builds a container from the given source. Corresponds to the JSON property buildConfig



2416
2417
2418
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 2416

def build_config
  @build_config
end

#event_triggerGoogle::Apis::CloudfunctionsV2alpha::EventTrigger

Describes EventTrigger, used to request events to be sent from another service. Corresponds to the JSON property eventTrigger



2421
2422
2423
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 2421

def event_trigger
  @event_trigger
end

#service_configGoogle::Apis::CloudfunctionsV2alpha::ServiceConfig

Describes the Service being deployed. Currently Supported : Cloud Run (fully managed). Corresponds to the JSON property serviceConfig



2427
2428
2429
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 2427

def service_config
  @service_config
end

#upgrade_stateString

UpgradeState of the function Corresponds to the JSON property upgradeState

Returns:

  • (String)


2432
2433
2434
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 2432

def upgrade_state
  @upgrade_state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2439
2440
2441
2442
2443
2444
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 2439

def update!(**args)
  @build_config = args[:build_config] if args.key?(:build_config)
  @event_trigger = args[:event_trigger] if args.key?(:event_trigger)
  @service_config = args[:service_config] if args.key?(:service_config)
  @upgrade_state = args[:upgrade_state] if args.key?(:upgrade_state)
end