Class: Google::Apis::SecuritycenterV1beta2::Subscription

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Subscription

Returns a new instance of Subscription.



11339
11340
11341
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 11339

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

Instance Attribute Details

#detailsGoogle::Apis::SecuritycenterV1beta2::Details

Corresponds to the JSON property details



11327
11328
11329
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 11327

def details
  @details
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


11332
11333
11334
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 11332

def name
  @name
end

#tierString

Corresponds to the JSON property tier

Returns:

  • (String)


11337
11338
11339
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 11337

def tier
  @tier
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11344
11345
11346
11347
11348
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 11344

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