Class: Google::Apis::AdminDirectoryV1::Member

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

Overview

JSON template for Member resource in Directory API.

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

Returns a new instance of Member



1566
1567
1568
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1566

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

Instance Attribute Details

#emailString

Email of member (Read-only) Corresponds to the JSON property email

Returns:

  • (String)


1533
1534
1535
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1533

def email
  @email
end

#etagString

ETag of the resource. Corresponds to the JSON property etag

Returns:

  • (String)


1538
1539
1540
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1538

def etag
  @etag
end

#idString

Unique identifier of customer member (Read-only) Unique identifier of group ( Read-only) Unique identifier of member (Read-only) Corresponds to the JSON property id

Returns:

  • (String)


1544
1545
1546
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1544

def id
  @id
end

#kindString

Kind of resource this is. Corresponds to the JSON property kind

Returns:

  • (String)


1549
1550
1551
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1549

def kind
  @kind
end

#roleString

Role of member Corresponds to the JSON property role

Returns:

  • (String)


1554
1555
1556
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1554

def role
  @role
end

#statusString

Status of member (Immutable) Corresponds to the JSON property status

Returns:

  • (String)


1559
1560
1561
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1559

def status
  @status
end

#typeString

Type of member (Immutable) Corresponds to the JSON property type

Returns:

  • (String)


1564
1565
1566
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1564

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1571
1572
1573
1574
1575
1576
1577
1578
1579
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1571

def update!(**args)
  @email = args[:email] if args.key?(:email)
  @etag = args[:etag] if args.key?(:etag)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @role = args[:role] if args.key?(:role)
  @status = args[:status] if args.key?(:status)
  @type = args[:type] if args.key?(:type)
end