Class: Google::Apis::SecuritycenterV1::NotificationConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/securitycenter_v1/classes.rb,
lib/google/apis/securitycenter_v1/representations.rb,
lib/google/apis/securitycenter_v1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NotificationConfig

Returns a new instance of NotificationConfig.



11684
11685
11686
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 11684

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

Instance Attribute Details

#descriptionString

Corresponds to the JSON property description

Returns:

  • (String)


11662
11663
11664
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 11662

def description
  @description
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


11667
11668
11669
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 11667

def name
  @name
end

#pubsub_topicString

Corresponds to the JSON property pubsubTopic

Returns:

  • (String)


11672
11673
11674
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 11672

def pubsub_topic
  @pubsub_topic
end

#service_accountString

Corresponds to the JSON property serviceAccount

Returns:

  • (String)


11677
11678
11679
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 11677

def 
  @service_account
end

#streaming_configGoogle::Apis::SecuritycenterV1::StreamingConfig

Corresponds to the JSON property streamingConfig



11682
11683
11684
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 11682

def streaming_config
  @streaming_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11689
11690
11691
11692
11693
11694
11695
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 11689

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @name = args[:name] if args.key?(:name)
  @pubsub_topic = args[:pubsub_topic] if args.key?(:pubsub_topic)
  @service_account = args[:service_account] if args.key?(:service_account)
  @streaming_config = args[:streaming_config] if args.key?(:streaming_config)
end