Class: Google::Apis::CloudbuildV2::TaskResult

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

TaskResult is used to describe the results of a task.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TaskResult

Returns a new instance of TaskResult.



2881
2882
2883
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2881

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

Instance Attribute Details

#descriptionString

Description of the result. Corresponds to the JSON property description

Returns:

  • (String)


2858
2859
2860
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2858

def description
  @description
end

#nameString

Name of the result. Corresponds to the JSON property name

Returns:

  • (String)


2863
2864
2865
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2863

def name
  @name
end

#propertiesHash<String,Google::Apis::CloudbuildV2::PropertySpec>

When type is OBJECT, this map holds the names of fields inside that object along with the type of data each field holds. Corresponds to the JSON property properties



2869
2870
2871
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2869

def properties
  @properties
end

#typeString

The type of data that the result holds. Corresponds to the JSON property type

Returns:

  • (String)


2874
2875
2876
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2874

def type
  @type
end

#valueGoogle::Apis::CloudbuildV2::ParamValue

Parameter value. Corresponds to the JSON property value



2879
2880
2881
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2879

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2886
2887
2888
2889
2890
2891
2892
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2886

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