Class: Google::Apis::PolicyanalyzerV1beta1::GoogleCloudPolicyanalyzerV1beta1Activity

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

Instance Method Summary collapse

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

#activityHash<String,Object>

A struct of custom fields to explain the activity. Corresponds to the JSON property activity

Returns:

  • (Hash<String,Object>)


32
33
34
# File 'lib/google/apis/policyanalyzer_v1beta1/classes.rb', line 32

def activity
  @activity
end

#activity_typeString

The type of the activity. Corresponds to the JSON property activityType

Returns:

  • (String)


37
38
39
# File 'lib/google/apis/policyanalyzer_v1beta1/classes.rb', line 37

def activity_type
  @activity_type
end

#full_resource_nameString

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

Returns:

  • (String)


44
45
46
# File 'lib/google/apis/policyanalyzer_v1beta1/classes.rb', line 44

def full_resource_name
  @full_resource_name
end

#observation_periodGoogle::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