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
-
#decommission_date ⇒ Google::Apis::CloudfunctionsV2alpha::Date
Represents a whole or partial calendar date, such as a birthday.
-
#deprecation_date ⇒ Google::Apis::CloudfunctionsV2alpha::Date
Represents a whole or partial calendar date, such as a birthday.
-
#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.
1795 1796 1797 |
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 1795 def initialize(**args) update!(**args) end |
Instance Attribute Details
#decommission_date ⇒ Google::Apis::CloudfunctionsV2alpha::Date
Represents a whole or partial calendar date, such as a birthday. The time of
day and time zone are either specified elsewhere or are insignificant. The
date is relative to the Gregorian Calendar. This can represent one of the
following: * A full date, with non-zero year, month, and day values. * A month
and day, with a zero year (for example, an anniversary). * A year on its own,
with a zero month and a zero day. * A year and month, with a zero day (for
example, a credit card expiration date). Related types: * google.type.
TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
Corresponds to the JSON property decommissionDate
1756 1757 1758 |
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 1756 def decommission_date @decommission_date end |
#deprecation_date ⇒ Google::Apis::CloudfunctionsV2alpha::Date
Represents a whole or partial calendar date, such as a birthday. The time of
day and time zone are either specified elsewhere or are insignificant. The
date is relative to the Gregorian Calendar. This can represent one of the
following: * A full date, with non-zero year, month, and day values. * A month
and day, with a zero year (for example, an anniversary). * A year on its own,
with a zero month and a zero day. * A year and month, with a zero day (for
example, a credit card expiration date). Related types: * google.type.
TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
Corresponds to the JSON property deprecationDate
1768 1769 1770 |
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 1768 def deprecation_date @deprecation_date end |
#display_name ⇒ String
The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
Corresponds to the JSON property displayName
1773 1774 1775 |
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 1773 def display_name @display_name end |
#environment ⇒ String
The environment for the runtime.
Corresponds to the JSON property environment
1778 1779 1780 |
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 1778 def environment @environment end |
#name ⇒ String
The name of the runtime, e.g., 'go113', 'nodejs12', etc.
Corresponds to the JSON property name
1783 1784 1785 |
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 1783 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
1788 1789 1790 |
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 1788 def stage @stage end |
#warnings ⇒ Array<String>
Warning messages, e.g., a deprecation warning.
Corresponds to the JSON property warnings
1793 1794 1795 |
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 1793 def warnings @warnings end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1800 1801 1802 1803 1804 1805 1806 1807 1808 |
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 1800 def update!(**args) @decommission_date = args[:decommission_date] if args.key?(:decommission_date) @deprecation_date = args[:deprecation_date] if args.key?(:deprecation_date) @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 |