Class: Google::Apis::CloudbuildV2::PropertySpec
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV2::PropertySpec
- 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
-
#type ⇒ String
A type for the object.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PropertySpec
constructor
A new instance of PropertySpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PropertySpec
Returns a new instance of PropertySpec.
2164 2165 2166 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2164 def initialize(**args) update!(**args) end |
Instance Attribute Details
#type ⇒ String
A type for the object.
Corresponds to the JSON property type
2162 2163 2164 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2162 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2169 2170 2171 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2169 def update!(**args) @type = args[:type] if args.key?(:type) end |