Class: Google::Apis::SecuritycenterV1::IamPolicy

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/securitycenter_v1/classes.rb,
generated/google/apis/securitycenter_v1/representations.rb,
generated/google/apis/securitycenter_v1/representations.rb

Overview

IAM Policy information associated with the GCP resource described by the Cloud SCC asset. This information is managed and defined by the GCP resource and cannot be modified by the user.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ IamPolicy

Returns a new instance of IamPolicy.



1356
1357
1358
# File 'generated/google/apis/securitycenter_v1/classes.rb', line 1356

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

Instance Attribute Details

#policy_blobString

The JSON representation of the Policy associated with the asset. See https://cloud.google.com/iam/reference/rest/v1/Policy for format details. Corresponds to the JSON property policyBlob

Returns:

  • (String)


1354
1355
1356
# File 'generated/google/apis/securitycenter_v1/classes.rb', line 1354

def policy_blob
  @policy_blob
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1361
1362
1363
# File 'generated/google/apis/securitycenter_v1/classes.rb', line 1361

def update!(**args)
  @policy_blob = args[:policy_blob] if args.key?(:policy_blob)
end