Class: Google::Apis::CloudfunctionsV2::Runtime

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Runtime

Returns a new instance of Runtime.



1522
1523
1524
# File 'lib/google/apis/cloudfunctions_v2/classes.rb', line 1522

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

Instance Attribute Details

#display_nameString

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

Returns:

  • (String)


1500
1501
1502
# File 'lib/google/apis/cloudfunctions_v2/classes.rb', line 1500

def display_name
  @display_name
end

#environmentString

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

Returns:

  • (String)


1505
1506
1507
# File 'lib/google/apis/cloudfunctions_v2/classes.rb', line 1505

def environment
  @environment
end

#nameString

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

Returns:

  • (String)


1510
1511
1512
# File 'lib/google/apis/cloudfunctions_v2/classes.rb', line 1510

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)


1515
1516
1517
# File 'lib/google/apis/cloudfunctions_v2/classes.rb', line 1515

def stage
  @stage
end

#warningsArray<String>

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

Returns:

  • (Array<String>)


1520
1521
1522
# File 'lib/google/apis/cloudfunctions_v2/classes.rb', line 1520

def warnings
  @warnings
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1527
1528
1529
1530
1531
1532
1533
# File 'lib/google/apis/cloudfunctions_v2/classes.rb', line 1527

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