Class: Google::Apis::SecuritycenterV1beta2::SecurityPolicy
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1beta2::SecurityPolicy
- 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
-
#name ⇒ String
Corresponds to the JSON property
name. -
#preview ⇒ Boolean
(also: #preview?)
Corresponds to the JSON property
preview. -
#type ⇒ String
Corresponds to the JSON property
type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SecurityPolicy
constructor
A new instance of SecurityPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SecurityPolicy
Returns a new instance of SecurityPolicy.
11147 11148 11149 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 11147 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Corresponds to the JSON property name
11134 11135 11136 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 11134 def name @name end |
#preview ⇒ Boolean Also known as: preview?
Corresponds to the JSON property preview
11139 11140 11141 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 11139 def preview @preview end |
#type ⇒ String
Corresponds to the JSON property type
11145 11146 11147 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 11145 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11152 11153 11154 11155 11156 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 11152 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 |