Class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2SecurityPolicy

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

Information about the Google Cloud Armor security policy relevant to the finding.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudSecuritycenterV2SecurityPolicy

Returns a new instance of GoogleCloudSecuritycenterV2SecurityPolicy.



7751
7752
7753
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7751

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

Instance Attribute Details

#nameString

The name of the Google Cloud Armor security policy, for example, "my-security- policy". Corresponds to the JSON property name

Returns:

  • (String)


7736
7737
7738
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7736

def name
  @name
end

#previewBoolean Also known as: preview?

Whether or not the associated rule or policy is in preview mode. Corresponds to the JSON property preview

Returns:

  • (Boolean)


7741
7742
7743
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7741

def preview
  @preview
end

#typeString

The type of Google Cloud Armor security policy for example, 'backend security policy', 'edge security policy', 'network edge security policy', or 'always-on DDoS protection'. Corresponds to the JSON property type

Returns:

  • (String)


7749
7750
7751
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7749

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7756
7757
7758
7759
7760
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7756

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