Class: Google::Apis::SecuritycenterV1beta1::SecurityPolicy
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1beta1::SecurityPolicy
- 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
-
#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.
11809 11810 11811 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 11809 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Corresponds to the JSON property name
11796 11797 11798 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 11796 def name @name end |
#preview ⇒ Boolean Also known as: preview?
Corresponds to the JSON property preview
11801 11802 11803 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 11801 def preview @preview end |
#type ⇒ String
Corresponds to the JSON property type
11807 11808 11809 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 11807 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11814 11815 11816 11817 11818 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 11814 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 |