Class: Google::Apis::SecuritycenterV1beta2::SecurityCenterSettings

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

Overview

Resource capturing the settings for Security Center.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SecurityCenterSettings

Returns a new instance of SecurityCenterSettings.



978
979
980
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 978

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

Instance Attribute Details

#log_sink_projectString

The resource name of the project to send logs to. This project must be part of the organization this resource resides in. The format is projects/project_id . An empty value disables logging. This value is only referenced by services that support log sink. Please refer to the documentation for an updated list of compatible services. Corresponds to the JSON property logSinkProject

Returns:

  • (String)


964
965
966
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 964

def log_sink_project
  @log_sink_project
end

#nameString

The resource name of the SecurityCenterSettings. Format: organizations/ organization/securityCenterSettings Corresponds to the JSON property name

Returns:

  • (String)


970
971
972
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 970

def name
  @name
end

#org_service_accountString

The organization level service account to be used for security center components. Corresponds to the JSON property orgServiceAccount

Returns:

  • (String)


976
977
978
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 976

def 
  @org_service_account
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



983
984
985
986
987
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 983

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