Class ContactGroupsResource
The "contactGroups" collection of methods.
Inherited Members
Namespace: Google.Apis.PeopleService.v1
Assembly: Google.Apis.PeopleService.v1.dll
Syntax
public class ContactGroupsResource
Constructors
ContactGroupsResource(IClientService)
Constructs a new resource.
Declaration
public ContactGroupsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Properties
Members
Gets the Members resource.
Declaration
public virtual ContactGroupsResource.MembersResource Members { get; }
Property Value
Type | Description |
---|---|
ContactGroupsResource.MembersResource |
Methods
BatchGet()
Get a list of contact groups owned by the authenticated user by specifying a list of contact group resource names.
Declaration
public virtual ContactGroupsResource.BatchGetRequest BatchGet()
Returns
Type | Description |
---|---|
ContactGroupsResource.BatchGetRequest |
Create(CreateContactGroupRequest)
Create a new contact group owned by the authenticated user. Created contact group names must be unique to the users contact groups. Attempting to create a group with a duplicate name will return a HTTP 409 error. Mutate requests for the same user should be sent sequentially to avoid increased latency and failures.
Declaration
public virtual ContactGroupsResource.CreateRequest Create(CreateContactGroupRequest body)
Parameters
Type | Name | Description |
---|---|---|
CreateContactGroupRequest | body | The body of the request. |
Returns
Type | Description |
---|---|
ContactGroupsResource.CreateRequest |
Delete(string)
Delete an existing contact group owned by the authenticated user by specifying a contact group resource name. Mutate requests for the same user should be sent sequentially to avoid increased latency and failures.
Declaration
public virtual ContactGroupsResource.DeleteRequest Delete(string resourceName)
Parameters
Type | Name | Description |
---|---|---|
string | resourceName | Required. The resource name of the contact group to delete. |
Returns
Type | Description |
---|---|
ContactGroupsResource.DeleteRequest |
Get(string)
Get a specific contact group owned by the authenticated user by specifying a contact group resource name.
Declaration
public virtual ContactGroupsResource.GetRequest Get(string resourceName)
Parameters
Type | Name | Description |
---|---|---|
string | resourceName | Required. The resource name of the contact group to get. |
Returns
Type | Description |
---|---|
ContactGroupsResource.GetRequest |
List()
List all contact groups owned by the authenticated user. Members of the contact groups are not populated.
Declaration
public virtual ContactGroupsResource.ListRequest List()
Returns
Type | Description |
---|---|
ContactGroupsResource.ListRequest |
Update(UpdateContactGroupRequest, string)
Update the name of an existing contact group owned by the authenticated user. Updated contact group names must be unique to the users contact groups. Attempting to create a group with a duplicate name will return a HTTP 409 error. Mutate requests for the same user should be sent sequentially to avoid increased latency and failures.
Declaration
public virtual ContactGroupsResource.UpdateRequest Update(UpdateContactGroupRequest body, string resourceName)
Parameters
Type | Name | Description |
---|---|---|
UpdateContactGroupRequest | body | The body of the request. |
string | resourceName | The resource name for the contact group, assigned by the server. An ASCII string, in the form of
|
Returns
Type | Description |
---|---|
ContactGroupsResource.UpdateRequest |