Class: Google::Apis::CloudbuildV2::PropertySpec

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

PropertySpec holds information about a property in an object.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PropertySpec

Returns a new instance of PropertySpec.



2075
2076
2077
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2075

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

Instance Attribute Details

#typeString

A type for the object. Corresponds to the JSON property type

Returns:

  • (String)


2073
2074
2075
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2073

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2080
2081
2082
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2080

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