Class: Google::Apis::CloudfunctionsV2alpha::Runtime

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Runtime

Returns a new instance of Runtime.



1681
1682
1683
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 1681

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

Instance Attribute Details

#decommission_dateGoogle::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



1642
1643
1644
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 1642

def decommission_date
  @decommission_date
end

#deprecation_dateGoogle::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



1654
1655
1656
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 1654

def deprecation_date
  @deprecation_date
end

#display_nameString

The user facing name, eg 'Go 1.13', 'Node.js 12', etc. Corresponds to the JSON property displayName

Returns:

  • (String)


1659
1660
1661
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 1659

def display_name
  @display_name
end

#environmentString

The environment for the runtime. Corresponds to the JSON property environment

Returns:

  • (String)


1664
1665
1666
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 1664

def environment
  @environment
end

#nameString

The name of the runtime, e.g., 'go113', 'nodejs12', etc. Corresponds to the JSON property name

Returns:

  • (String)


1669
1670
1671
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 1669

def name
  @name
end

#stageString

The stage of life this runtime is in, e.g., BETA, GA, etc. Corresponds to the JSON property stage

Returns:

  • (String)


1674
1675
1676
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 1674

def stage
  @stage
end

#warningsArray<String>

Warning messages, e.g., a deprecation warning. Corresponds to the JSON property warnings

Returns:

  • (Array<String>)


1679
1680
1681
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 1679

def warnings
  @warnings
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1686
1687
1688
1689
1690
1691
1692
1693
1694
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 1686

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