Class: Google::Apis::PolicyanalyzerV1beta1::GoogleCloudPolicyanalyzerV1beta1Activity
- Inherits:
-
Object
- Object
- Google::Apis::PolicyanalyzerV1beta1::GoogleCloudPolicyanalyzerV1beta1Activity
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/policyanalyzer_v1beta1/classes.rb,
lib/google/apis/policyanalyzer_v1beta1/representations.rb,
lib/google/apis/policyanalyzer_v1beta1/representations.rb
Overview
Represents Activity on a GCP resource over specific observation period.
Instance Attribute Summary collapse
-
#activity ⇒ Hash<String,Object>
A struct of custom fields to explain the activity.
-
#activity_type ⇒ String
The type of the activity.
-
#full_resource_name ⇒ String
The full resource name that identifies the resource.
-
#observation_period ⇒ Google::Apis::PolicyanalyzerV1beta1::GoogleCloudPolicyanalyzerV1beta1ObservationPeriod
Represents data observation period.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudPolicyanalyzerV1beta1Activity
constructor
A new instance of GoogleCloudPolicyanalyzerV1beta1Activity.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudPolicyanalyzerV1beta1Activity
Returns a new instance of GoogleCloudPolicyanalyzerV1beta1Activity.
51 52 53 |
# File 'lib/google/apis/policyanalyzer_v1beta1/classes.rb', line 51 def initialize(**args) update!(**args) end |
Instance Attribute Details
#activity ⇒ Hash<String,Object>
A struct of custom fields to explain the activity.
Corresponds to the JSON property activity
32 33 34 |
# File 'lib/google/apis/policyanalyzer_v1beta1/classes.rb', line 32 def activity @activity end |
#activity_type ⇒ String
The type of the activity.
Corresponds to the JSON property activityType
37 38 39 |
# File 'lib/google/apis/policyanalyzer_v1beta1/classes.rb', line 37 def activity_type @activity_type end |
#full_resource_name ⇒ String
The full resource name that identifies the resource. For examples of full
resource names for Google Cloud services, see https://cloud.google.com/iam/
help/troubleshooter/full-resource-names.
Corresponds to the JSON property fullResourceName
44 45 46 |
# File 'lib/google/apis/policyanalyzer_v1beta1/classes.rb', line 44 def full_resource_name @full_resource_name end |
#observation_period ⇒ Google::Apis::PolicyanalyzerV1beta1::GoogleCloudPolicyanalyzerV1beta1ObservationPeriod
Represents data observation period.
Corresponds to the JSON property observationPeriod
49 50 51 |
# File 'lib/google/apis/policyanalyzer_v1beta1/classes.rb', line 49 def observation_period @observation_period end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
56 57 58 59 60 61 |
# File 'lib/google/apis/policyanalyzer_v1beta1/classes.rb', line 56 def update!(**args) @activity = args[:activity] if args.key?(:activity) @activity_type = args[:activity_type] if args.key?(:activity_type) @full_resource_name = args[:full_resource_name] if args.key?(:full_resource_name) @observation_period = args[:observation_period] if args.key?(:observation_period) end |