Class: Google::Apis::CloudbuildV2::ParamSpec

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

ParamSpec defines parameters needed beyond typed inputs (such as resources). Parameter values are provided by users as inputs on a TaskRun or PipelineRun.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ParamSpec

Returns a new instance of ParamSpec.



1270
1271
1272
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1270

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

Instance Attribute Details

#defaultGoogle::Apis::CloudbuildV2::ParamValue

Parameter value. Corresponds to the JSON property default



1253
1254
1255
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1253

def default
  @default
end

#descriptionString

Description of the ParamSpec Corresponds to the JSON property description

Returns:

  • (String)


1258
1259
1260
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1258

def description
  @description
end

#nameString

Name of the ParamSpec Corresponds to the JSON property name

Returns:

  • (String)


1263
1264
1265
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1263

def name
  @name
end

#typeString

Type of ParamSpec Corresponds to the JSON property type

Returns:

  • (String)


1268
1269
1270
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1268

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1275
1276
1277
1278
1279
1280
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1275

def update!(**args)
  @default = args[:default] if args.key?(:default)
  @description = args[:description] if args.key?(:description)
  @name = args[:name] if args.key?(:name)
  @type = args[:type] if args.key?(:type)
end