Class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2SecurityPolicy
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2SecurityPolicy
- 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) ⇒ GoogleCloudSecuritycenterV2SecurityPolicy
constructor
A new instance of GoogleCloudSecuritycenterV2SecurityPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudSecuritycenterV2SecurityPolicy
Returns a new instance of GoogleCloudSecuritycenterV2SecurityPolicy.
10220 10221 10222 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 10220 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Corresponds to the JSON property name
10207 10208 10209 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 10207 def name @name end |
#preview ⇒ Boolean Also known as: preview?
Corresponds to the JSON property preview
10212 10213 10214 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 10212 def preview @preview end |
#type ⇒ String
Corresponds to the JSON property type
10218 10219 10220 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 10218 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10225 10226 10227 10228 10229 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 10225 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 |