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.



1324
1325
1326
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 1324

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)


1302
1303
1304
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 1302

def display_name
  @display_name
end

#environmentString

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

Returns:

  • (String)


1307
1308
1309
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 1307

def environment
  @environment
end

#nameString

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

Returns:

  • (String)


1312
1313
1314
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 1312

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)


1317
1318
1319
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 1317

def stage
  @stage
end

#warningsArray<String>

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

Returns:

  • (Array<String>)


1322
1323
1324
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 1322

def warnings
  @warnings
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1329
1330
1331
1332
1333
1334
1335
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 1329

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