Class: Google::Apis::SecuritycenterV1beta2::Agent
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1beta2::Agent
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/securitycenter_v1beta2/classes.rb,
lib/google/apis/securitycenter_v1beta2/representations.rb,
lib/google/apis/securitycenter_v1beta2/representations.rb
Instance Attribute Summary collapse
-
#display_name ⇒ String
Corresponds to the JSON property
displayName. -
#id ⇒ String
Corresponds to the JSON property
id.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Agent
constructor
A new instance of Agent.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Agent
Returns a new instance of Agent.
274 275 276 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 274 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_name ⇒ String
Corresponds to the JSON property displayName
267 268 269 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 267 def display_name @display_name end |
#id ⇒ String
Corresponds to the JSON property id
272 273 274 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 272 def id @id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
279 280 281 282 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 279 def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @id = args[:id] if args.key?(:id) end |