Class: Google::Apis::CloudbuildV2::ParamValue

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudbuild_v2/classes.rb,
lib/google/apis/cloudbuild_v2/representations.rb,
lib/google/apis/cloudbuild_v2/representations.rb

Overview

Parameter value.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ParamValue

Returns a new instance of ParamValue.



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

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

Instance Attribute Details

#array_valArray<String>

Value of the parameter if type is array. Corresponds to the JSON property arrayVal

Returns:

  • (Array<String>)


1290
1291
1292
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1290

def array_val
  @array_val
end

#string_valString

Value of the parameter if type is string. Corresponds to the JSON property stringVal

Returns:

  • (String)


1295
1296
1297
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1295

def string_val
  @string_val
end

#typeString

Type of parameter. Corresponds to the JSON property type

Returns:

  • (String)


1300
1301
1302
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1300

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1307
1308
1309
1310
1311
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1307

def update!(**args)
  @array_val = args[:array_val] if args.key?(:array_val)
  @string_val = args[:string_val] if args.key?(:string_val)
  @type = args[:type] if args.key?(:type)
end