Class: Google::Apis::CloudfunctionsV2::Runtime
- Inherits:
-
Object
- Object
- Google::Apis::CloudfunctionsV2::Runtime
- 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
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.
1534 1535 1536 |
# File 'lib/google/apis/cloudfunctions_v2/classes.rb', line 1534 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
1512 1513 1514 |
# File 'lib/google/apis/cloudfunctions_v2/classes.rb', line 1512 def display_name @display_name end |
#environment ⇒ String
The environment for the runtime.
Corresponds to the JSON property environment
1517 1518 1519 |
# File 'lib/google/apis/cloudfunctions_v2/classes.rb', line 1517 def environment @environment end |
#name ⇒ String
The name of the runtime, e.g., 'go113', 'nodejs12', etc.
Corresponds to the JSON property name
1522 1523 1524 |
# File 'lib/google/apis/cloudfunctions_v2/classes.rb', line 1522 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
1527 1528 1529 |
# File 'lib/google/apis/cloudfunctions_v2/classes.rb', line 1527 def stage @stage end |
#warnings ⇒ Array<String>
Warning messages, e.g., a deprecation warning.
Corresponds to the JSON property warnings
1532 1533 1534 |
# File 'lib/google/apis/cloudfunctions_v2/classes.rb', line 1532 def warnings @warnings end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1539 1540 1541 1542 1543 1544 1545 |
# File 'lib/google/apis/cloudfunctions_v2/classes.rb', line 1539 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 |