Class: Google::Apis::AdminReportsV1::Activity::Event

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

Defined Under Namespace

Classes: Parameter

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) ⇒ Event

Returns a new instance of Event.


195
196
197
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 195

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

Instance Attribute Details

#nameString

Name of the event. This is the specific name of the activity reported by the API. And each eventName is related to a specific G Suite service or feature which the API organizes into types of events. For eventName request parameters in general: - If no eventName is given, the report returns all possible instances of an eventName. - When you request an eventName, the API's response returns all activities which contain that eventName. It is possible that the returned activities will have other eventName properties in addition to the one requested. For more information about eventName properties, see the list of event names for various applications above in applicationName. Corresponds to the JSON property name

Returns:

  • (String)

178
179
180
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 178

def name
  @name
end

#parametersArray<Google::Apis::AdminReportsV1::Activity::Event::Parameter>

Parameter value pairs for various applications. For more information about eventName parameters, see the list of event names for various applications above in applicationName. Corresponds to the JSON property parameters


185
186
187
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 185

def parameters
  @parameters
end

#typeString

Type of event. The G Suite service or feature that an administrator changes is identified in the type property which identifies an event using the eventName property. For a full list of the API's type categories, see the list of event names for various applications above in applicationName. Corresponds to the JSON property type

Returns:

  • (String)

193
194
195
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 193

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


200
201
202
203
204
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 200

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