Class: Google::Apis::AdminDirectoryV1::Group
- Inherits:
-
Object
- Object
- Google::Apis::AdminDirectoryV1::Group
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/admin_directory_v1/classes.rb,
lib/google/apis/admin_directory_v1/representations.rb,
lib/google/apis/admin_directory_v1/representations.rb
Overview
Google Groups provide your users the ability to send messages to groups of people using the group's email address. For more information about common tasks, see the Developer's Guide.
Instance Attribute Summary collapse
-
#admin_created ⇒ Boolean
(also: #admin_created?)
Value is
trueif this group was created by an administrator rather than a user. -
#aliases ⇒ Array<String>
List of a group's alias email addresses.
-
#description ⇒ String
An extended description to help users determine the purpose of a group.
-
#direct_members_count ⇒ Fixnum
The number of users that are direct members of the group.
-
#email ⇒ String
The group's email address.
-
#etag ⇒ String
ETag of the resource.
-
#id ⇒ String
The unique ID of a group.
-
#kind ⇒ String
The type of the API resource.
-
#name ⇒ String
The group's display name.
-
#non_editable_aliases ⇒ Array<String>
List of the group's non-editable alias email addresses that are outside of the account's primary domain or subdomains.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Group
constructor
A new instance of Group.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Group
Returns a new instance of Group.
1862 1863 1864 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1862 def initialize(**args) update!(**args) end |
Instance Attribute Details
#admin_created ⇒ Boolean Also known as: admin_created?
Value is true if this group was created by an administrator rather than a
user.
Corresponds to the JSON property adminCreated
1799 1800 1801 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1799 def admin_created @admin_created end |
#aliases ⇒ Array<String>
List of a group's alias email addresses.
Corresponds to the JSON property aliases
1805 1806 1807 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1805 def aliases @aliases end |
#description ⇒ String
An extended description to help users determine the purpose of a group. For
example, you can include information about who should join the group, the
types of messages to send to the group, links to FAQs about the group, or
related groups. Maximum length is 4,096 characters.
Corresponds to the JSON property description
1813 1814 1815 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1813 def description @description end |
#direct_members_count ⇒ Fixnum
The number of users that are direct members of the group. If a group is a
member (child) of this group (the parent), members of the child group are not
counted in the directMembersCount property of the parent group.
Corresponds to the JSON property directMembersCount
1820 1821 1822 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1820 def direct_members_count @direct_members_count end |
#email ⇒ String
The group's email address. If your account has multiple domains, select the
appropriate domain for the email address. The email must be unique. This
property is required when creating a group. Group email addresses are subject
to the same character usage rules as usernames, see the help center for details.
Corresponds to the JSON property email
1829 1830 1831 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1829 def email @email end |
#etag ⇒ String
ETag of the resource.
Corresponds to the JSON property etag
1834 1835 1836 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1834 def etag @etag end |
#id ⇒ String
The unique ID of a group. A group id can be used as a group request URI's
groupKey.
Corresponds to the JSON property id
1840 1841 1842 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1840 def id @id end |
#kind ⇒ String
The type of the API resource. For Groups resources, the value is admin#
directory#group.
Corresponds to the JSON property kind
1846 1847 1848 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1846 def kind @kind end |
#name ⇒ String
The group's display name.
Corresponds to the JSON property name
1851 1852 1853 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1851 def name @name end |
#non_editable_aliases ⇒ Array<String>
List of the group's non-editable alias email addresses that are outside of the
account's primary domain or subdomains. These are functioning email addresses
used by the group. This is a read-only property returned in the API's response
for a group. If edited in a group's POST or PUT request, the edit is ignored
by the API service.
Corresponds to the JSON property nonEditableAliases
1860 1861 1862 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1860 def non_editable_aliases @non_editable_aliases end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1867 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 |