Class: Google::Apis::CloudbuildV2::ParamSpec
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV2::ParamSpec
- 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
-
#default ⇒ Google::Apis::CloudbuildV2::ParamValue
Parameter value.
-
#description ⇒ String
Description of the ParamSpec Corresponds to the JSON property
description
. -
#name ⇒ String
Name of the ParamSpec Corresponds to the JSON property
name
. -
#type ⇒ String
Type of ParamSpec Corresponds to the JSON property
type
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ParamSpec
constructor
A new instance of ParamSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ParamSpec
Returns a new instance of ParamSpec.
1529 1530 1531 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1529 def initialize(**args) update!(**args) end |
Instance Attribute Details
#default ⇒ Google::Apis::CloudbuildV2::ParamValue
Parameter value.
Corresponds to the JSON property default
1512 1513 1514 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1512 def default @default end |
#description ⇒ String
Description of the ParamSpec
Corresponds to the JSON property description
1517 1518 1519 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1517 def description @description end |
#name ⇒ String
Name of the ParamSpec
Corresponds to the JSON property name
1522 1523 1524 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1522 def name @name end |
#type ⇒ String
Type of ParamSpec
Corresponds to the JSON property type
1527 1528 1529 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1527 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1534 1535 1536 1537 1538 1539 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1534 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 |