Class: Google::Apis::CloudfunctionsV2beta::UpgradeInfo

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UpgradeInfo

Returns a new instance of UpgradeInfo.



2075
2076
2077
# File 'lib/google/apis/cloudfunctions_v2beta/classes.rb', line 2075

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

Instance Attribute Details

#build_configGoogle::Apis::CloudfunctionsV2beta::BuildConfig

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



2057
2058
2059
# File 'lib/google/apis/cloudfunctions_v2beta/classes.rb', line 2057

def build_config
  @build_config
end

#event_triggerGoogle::Apis::CloudfunctionsV2beta::EventTrigger

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



2062
2063
2064
# File 'lib/google/apis/cloudfunctions_v2beta/classes.rb', line 2062

def event_trigger
  @event_trigger
end

#service_configGoogle::Apis::CloudfunctionsV2beta::ServiceConfig

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



2068
2069
2070
# File 'lib/google/apis/cloudfunctions_v2beta/classes.rb', line 2068

def service_config
  @service_config
end

#upgrade_stateString

UpgradeState of the function Corresponds to the JSON property upgradeState

Returns:

  • (String)


2073
2074
2075
# File 'lib/google/apis/cloudfunctions_v2beta/classes.rb', line 2073

def upgrade_state
  @upgrade_state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2080
2081
2082
2083
2084
2085
# File 'lib/google/apis/cloudfunctions_v2beta/classes.rb', line 2080

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