Class: Google::Apis::CloudfunctionsV2::UpgradeInfo

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudfunctions_v2/classes.rb,
lib/google/apis/cloudfunctions_v2/representations.rb,
lib/google/apis/cloudfunctions_v2/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.



2077
2078
2079
# File 'lib/google/apis/cloudfunctions_v2/classes.rb', line 2077

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

Instance Attribute Details

#build_configGoogle::Apis::CloudfunctionsV2::BuildConfig

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



2059
2060
2061
# File 'lib/google/apis/cloudfunctions_v2/classes.rb', line 2059

def build_config
  @build_config
end

#event_triggerGoogle::Apis::CloudfunctionsV2::EventTrigger

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



2064
2065
2066
# File 'lib/google/apis/cloudfunctions_v2/classes.rb', line 2064

def event_trigger
  @event_trigger
end

#service_configGoogle::Apis::CloudfunctionsV2::ServiceConfig

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



2070
2071
2072
# File 'lib/google/apis/cloudfunctions_v2/classes.rb', line 2070

def service_config
  @service_config
end

#upgrade_stateString

UpgradeState of the function Corresponds to the JSON property upgradeState

Returns:

  • (String)


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

def upgrade_state
  @upgrade_state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2082
2083
2084
2085
2086
2087
# File 'lib/google/apis/cloudfunctions_v2/classes.rb', line 2082

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