Class: Google::Apis::CloudfunctionsV2alpha::Runtime
- Inherits:
-
Object
- Object
- Google::Apis::CloudfunctionsV2alpha::Runtime
- 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
Describes a runtime and any special information (e.g., deprecation status) related to it.
Instance Attribute Summary collapse
-
#display_name ⇒ String
The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
-
#environment ⇒ String
The environment for the runtime.
-
#name ⇒ String
The name of the runtime, e.g., 'go113', 'nodejs12', etc.
-
#stage ⇒ String
The stage of life this runtime is in, e.g., BETA, GA, etc.
-
#warnings ⇒ Array<String>
Warning messages, e.g., a deprecation warning.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Runtime
constructor
A new instance of Runtime.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Runtime
Returns a new instance of Runtime.
1585 1586 1587 |
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 1585 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_name ⇒ String
The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
Corresponds to the JSON property displayName
1563 1564 1565 |
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 1563 def display_name @display_name end |
#environment ⇒ String
The environment for the runtime.
Corresponds to the JSON property environment
1568 1569 1570 |
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 1568 def environment @environment end |
#name ⇒ String
The name of the runtime, e.g., 'go113', 'nodejs12', etc.
Corresponds to the JSON property name
1573 1574 1575 |
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 1573 def name @name end |
#stage ⇒ String
The stage of life this runtime is in, e.g., BETA, GA, etc.
Corresponds to the JSON property stage
1578 1579 1580 |
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 1578 def stage @stage end |
#warnings ⇒ Array<String>
Warning messages, e.g., a deprecation warning.
Corresponds to the JSON property warnings
1583 1584 1585 |
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 1583 def warnings @warnings end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1590 1591 1592 1593 1594 1595 1596 |
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 1590 def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @environment = args[:environment] if args.key?(:environment) @name = args[:name] if args.key?(:name) @stage = args[:stage] if args.key?(:stage) @warnings = args[:warnings] if args.key?(:warnings) end |