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.



1413
1414
1415
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1413

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

Instance Attribute Details

#defaultGoogle::Apis::CloudbuildV2::ParamValue

Parameter value. Corresponds to the JSON property default



1396
1397
1398
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1396

def default
  @default
end

#descriptionString

Description of the ParamSpec Corresponds to the JSON property description

Returns:

  • (String)


1401
1402
1403
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1401

def description
  @description
end

#nameString

Name of the ParamSpec Corresponds to the JSON property name

Returns:

  • (String)


1406
1407
1408
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1406

def name
  @name
end

#typeString

Type of ParamSpec Corresponds to the JSON property type

Returns:

  • (String)


1411
1412
1413
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1411

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1418
1419
1420
1421
1422
1423
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1418

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