Class: Google::Apis::SecuritycenterV1::SimulatedResource
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1::SimulatedResource
- 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
-
#iam_policy_data ⇒ Google::Apis::SecuritycenterV1::Policy
Corresponds to the JSON property
iamPolicyData. -
#resource_data ⇒ Hash<String,Object>
Corresponds to the JSON property
resourceData. -
#resource_type ⇒ String
Corresponds to the JSON property
resourceType.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SimulatedResource
constructor
A new instance of SimulatedResource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SimulatedResource
Returns a new instance of SimulatedResource.
12940 12941 12942 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12940 def initialize(**args) update!(**args) end |
Instance Attribute Details
#iam_policy_data ⇒ Google::Apis::SecuritycenterV1::Policy
Corresponds to the JSON property iamPolicyData
12928 12929 12930 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12928 def iam_policy_data @iam_policy_data end |
#resource_data ⇒ Hash<String,Object>
Corresponds to the JSON property resourceData
12933 12934 12935 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12933 def resource_data @resource_data end |
#resource_type ⇒ String
Corresponds to the JSON property resourceType
12938 12939 12940 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12938 def resource_type @resource_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
12945 12946 12947 12948 12949 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12945 def update!(**args) @iam_policy_data = args[:iam_policy_data] if args.key?(:iam_policy_data) @resource_data = args[:resource_data] if args.key?(:resource_data) @resource_type = args[:resource_type] if args.key?(:resource_type) end |