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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudSecuritycenterV2SecurityPolicy

Returns a new instance of GoogleCloudSecuritycenterV2SecurityPolicy.



9315
9316
9317
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9315

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

Instance Attribute Details

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


9302
9303
9304
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9302

def name
  @name
end

#previewBoolean Also known as: preview?

Corresponds to the JSON property preview

Returns:

  • (Boolean)


9307
9308
9309
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9307

def preview
  @preview
end

#typeString

Corresponds to the JSON property type

Returns:

  • (String)


9313
9314
9315
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9313

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9320
9321
9322
9323
9324
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9320

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