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.


1103
1104
1105
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1103

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

Instance Attribute Details

#emailString

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

Returns:

  • (String)

1070
1071
1072
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1070

def email
  @email
end

#etagString

ETag of the resource. Corresponds to the JSON property etag

Returns:

  • (String)

1075
1076
1077
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1075

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)

1081
1082
1083
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1081

def id
  @id
end

#kindString

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

Returns:

  • (String)

1086
1087
1088
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1086

def kind
  @kind
end

#roleString

Role of member Corresponds to the JSON property role

Returns:

  • (String)

1091
1092
1093
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1091

def role
  @role
end

#statusString

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

Returns:

  • (String)

1096
1097
1098
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1096

def status
  @status
end

#typeString

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

Returns:

  • (String)

1101
1102
1103
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1101

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1108
1109
1110
1111
1112
1113
1114
1115
1116
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1108

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