Class: Google::Apis::SecuritycenterV1beta1::Policy

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Policy

Returns a new instance of Policy.



11520
11521
11522
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 11520

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

Instance Attribute Details

#audit_configsArray<Google::Apis::SecuritycenterV1beta1::AuditConfig>

Corresponds to the JSON property auditConfigs



11502
11503
11504
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 11502

def audit_configs
  @audit_configs
end

#bindingsArray<Google::Apis::SecuritycenterV1beta1::Binding>

Corresponds to the JSON property bindings



11507
11508
11509
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 11507

def bindings
  @bindings
end

#etagString

Corresponds to the JSON property etag NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


11513
11514
11515
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 11513

def etag
  @etag
end

#versionFixnum

Corresponds to the JSON property version

Returns:

  • (Fixnum)


11518
11519
11520
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 11518

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11525
11526
11527
11528
11529
11530
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 11525

def update!(**args)
  @audit_configs = args[:audit_configs] if args.key?(:audit_configs)
  @bindings = args[:bindings] if args.key?(:bindings)
  @etag = args[:etag] if args.key?(:etag)
  @version = args[:version] if args.key?(:version)
end