Class: Google::Apis::DriveactivityV2::Domain

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

Overview

Information about a domain.

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

Returns a new instance of Domain



455
456
457
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 455

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

Instance Attribute Details

#legacy_idString

An opaque string used to identify this domain. Corresponds to the JSON property legacyId

Returns:

  • (String)


448
449
450
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 448

def legacy_id
  @legacy_id
end

#nameString

The name of the domain, e.g. "google.com". Corresponds to the JSON property name

Returns:

  • (String)


453
454
455
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 453

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



460
461
462
463
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 460

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