Class: Google::Apis::CloudfunctionsV2::UpgradeInfo
- Inherits:
-
Object
- Object
- Google::Apis::CloudfunctionsV2::UpgradeInfo
- 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 * Current state of migration for function undergoing migration.
Instance Attribute Summary collapse
-
#build_config ⇒ Google::Apis::CloudfunctionsV2::BuildConfig
Describes the Build step of the function that builds a container from the given source.
-
#event_trigger ⇒ Google::Apis::CloudfunctionsV2::EventTrigger
Describes EventTrigger, used to request events to be sent from another service.
-
#service_config ⇒ Google::Apis::CloudfunctionsV2::ServiceConfig
Describes the Service being deployed.
-
#upgrade_state ⇒ String
UpgradeState of the function Corresponds to the JSON property
upgradeState
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UpgradeInfo
constructor
A new instance of UpgradeInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ UpgradeInfo
Returns a new instance of UpgradeInfo.
2453 2454 2455 |
# File 'lib/google/apis/cloudfunctions_v2/classes.rb', line 2453 def initialize(**args) update!(**args) end |
Instance Attribute Details
#build_config ⇒ Google::Apis::CloudfunctionsV2::BuildConfig
Describes the Build step of the function that builds a container from the
given source.
Corresponds to the JSON property buildConfig
2435 2436 2437 |
# File 'lib/google/apis/cloudfunctions_v2/classes.rb', line 2435 def build_config @build_config end |
#event_trigger ⇒ Google::Apis::CloudfunctionsV2::EventTrigger
Describes EventTrigger, used to request events to be sent from another service.
Corresponds to the JSON property eventTrigger
2440 2441 2442 |
# File 'lib/google/apis/cloudfunctions_v2/classes.rb', line 2440 def event_trigger @event_trigger end |
#service_config ⇒ Google::Apis::CloudfunctionsV2::ServiceConfig
Describes the Service being deployed. Currently Supported : Cloud Run (fully
managed).
Corresponds to the JSON property serviceConfig
2446 2447 2448 |
# File 'lib/google/apis/cloudfunctions_v2/classes.rb', line 2446 def service_config @service_config end |
#upgrade_state ⇒ String
UpgradeState of the function
Corresponds to the JSON property upgradeState
2451 2452 2453 |
# File 'lib/google/apis/cloudfunctions_v2/classes.rb', line 2451 def upgrade_state @upgrade_state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2458 2459 2460 2461 2462 2463 |
# File 'lib/google/apis/cloudfunctions_v2/classes.rb', line 2458 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 |