Class: Google::Apis::SecuritycenterV1::SecurityPolicy

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) ⇒ SecurityPolicy

Returns a new instance of SecurityPolicy.



13101
13102
13103
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13101

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

Instance Attribute Details

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


13088
13089
13090
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13088

def name
  @name
end

#previewBoolean Also known as: preview?

Corresponds to the JSON property preview

Returns:

  • (Boolean)


13093
13094
13095
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13093

def preview
  @preview
end

#typeString

Corresponds to the JSON property type

Returns:

  • (String)


13099
13100
13101
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13099

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13106
13107
13108
13109
13110
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 13106

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