Class: Google::Apis::CloudresourcemanagerV3::Capability

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#nameString

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`

Returns:

  • (String)


207
208
209
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 207

def name
  @name
end

#valueBoolean Also known as: value?

Required. The configured value of the capability at the given parent resource. Corresponds to the JSON property value

Returns:

  • (Boolean)


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