Class: Google::Apis::SecuritycenterV1beta1::SecurityPolicy

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SecurityPolicy

Returns a new instance of SecurityPolicy.



11709
11710
11711
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 11709

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

Instance Attribute Details

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


11696
11697
11698
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 11696

def name
  @name
end

#previewBoolean Also known as: preview?

Corresponds to the JSON property preview

Returns:

  • (Boolean)


11701
11702
11703
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 11701

def preview
  @preview
end

#typeString

Corresponds to the JSON property type

Returns:

  • (String)


11707
11708
11709
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 11707

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11714
11715
11716
11717
11718
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 11714

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