Class: Google::Apis::CloudresourcemanagerV3::Capability
- Inherits:
-
Object
- Object
- Google::Apis::CloudresourcemanagerV3::Capability
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudresourcemanager_v3/classes.rb,
lib/google/apis/cloudresourcemanager_v3/representations.rb,
lib/google/apis/cloudresourcemanager_v3/representations.rb
Overview
Representation of a Capability.
Instance Attribute Summary collapse
-
#name ⇒ String
Immutable.
-
#value ⇒ Boolean
(also: #value?)
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Capability
constructor
A new instance of Capability.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Capability
Returns a new instance of Capability.
215 216 217 |
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 215 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Immutable. Identifier. The resource name of the capability. Must be in the
following form: * folders/folder_id/capabilities/capability_name`For
example,folders/123/capabilities/app-managementFollowing are the allowed
capability_namevalues: *app-management
Corresponds to the JSON propertyname`
207 208 209 |
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 207 def name @name end |
#value ⇒ Boolean Also known as: value?
Required. The configured value of the capability at the given parent resource.
Corresponds to the JSON property value
212 213 214 |
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 212 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
220 221 222 223 |
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 220 def update!(**args) @name = args[:name] if args.key?(:name) @value = args[:value] if args.key?(:value) end |