Class: Google::Apis::SecuritycenterV1::SecurityPolicy
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1::SecurityPolicy
- 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
-
#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.
12691 12692 12693 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12691 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Corresponds to the JSON property name
12678 12679 12680 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12678 def name @name end |
#preview ⇒ Boolean Also known as: preview?
Corresponds to the JSON property preview
12683 12684 12685 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12683 def preview @preview end |
#type ⇒ String
Corresponds to the JSON property type
12689 12690 12691 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12689 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
12696 12697 12698 12699 12700 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12696 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 |