Class: Google::Apis::AdminDirectoryV1::Group

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

STEPLADDER: Generated unstable field number for field 'kind'. (See http://go/ stepladder-help#fieldNumber) STEPLADDER: Generated unstable field number for field 'etag'. (See http://go/stepladder-help#fieldNumber)

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

Returns a new instance of Group.


1704
1705
1706
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1704

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

Instance Attribute Details

#admin_createdBoolean Also known as: admin_created?

Is the group created by admin (Read-only) * Corresponds to the JSON property adminCreated

Returns:

  • (Boolean)

1656
1657
1658
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1656

def admin_created
  @admin_created
end

#aliasesArray<String>

List of aliases (Read-only) Corresponds to the JSON property aliases

Returns:

  • (Array<String>)

1662
1663
1664
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1662

def aliases
  @aliases
end

#descriptionString

Description of the group Corresponds to the JSON property description

Returns:

  • (String)

1667
1668
1669
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1667

def description
  @description
end

#direct_members_countFixnum

Group direct members count Corresponds to the JSON property directMembersCount

Returns:

  • (Fixnum)

1672
1673
1674
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1672

def direct_members_count
  @direct_members_count
end

#emailString

Email of Group Corresponds to the JSON property email

Returns:

  • (String)

1677
1678
1679
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1677

def email
  @email
end

#etagString

ETag of the resource. Corresponds to the JSON property etag

Returns:

  • (String)

1682
1683
1684
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1682

def etag
  @etag
end

#idString

Unique identifier of Group (Read-only) Corresponds to the JSON property id

Returns:

  • (String)

1687
1688
1689
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1687

def id
  @id
end

#kindString

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

Returns:

  • (String)

1692
1693
1694
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1692

def kind
  @kind
end

#nameString

Group name Corresponds to the JSON property name

Returns:

  • (String)

1697
1698
1699
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1697

def name
  @name
end

#non_editable_aliasesArray<String>

List of non editable aliases (Read-only) Corresponds to the JSON property nonEditableAliases

Returns:

  • (Array<String>)

1702
1703
1704
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1702

def non_editable_aliases
  @non_editable_aliases
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1709

def update!(**args)
  @admin_created = args[:admin_created] if args.key?(:admin_created)
  @aliases = args[:aliases] if args.key?(:aliases)
  @description = args[:description] if args.key?(:description)
  @direct_members_count = args[:direct_members_count] if args.key?(:direct_members_count)
  @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)
  @name = args[:name] if args.key?(:name)
  @non_editable_aliases = args[:non_editable_aliases] if args.key?(:non_editable_aliases)
end