Class: Google::Apis::CloudfunctionsV2beta::OnDeployUpdatePolicy

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

Security patches are only applied when a function is redeployed.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OnDeployUpdatePolicy

Returns a new instance of OnDeployUpdatePolicy.



1490
1491
1492
# File 'lib/google/apis/cloudfunctions_v2beta/classes.rb', line 1490

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

Instance Attribute Details

#runtime_versionString

Output only. contains the runtime version which was used during latest function deployment. Corresponds to the JSON property runtimeVersion

Returns:

  • (String)


1488
1489
1490
# File 'lib/google/apis/cloudfunctions_v2beta/classes.rb', line 1488

def runtime_version
  @runtime_version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1495
1496
1497
# File 'lib/google/apis/cloudfunctions_v2beta/classes.rb', line 1495

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