Class LocationsResource.AdminsResource
The "admins" collection of methods.
Inherited Members
Namespace: Google.Apis.MyBusinessAccountManagement.v1
Assembly: Google.Apis.MyBusinessAccountManagement.v1.dll
Syntax
public class LocationsResource.AdminsResource
Constructors
AdminsResource(IClientService)
Constructs a new resource.
Declaration
public AdminsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Create(Admin, string)
Invites the specified user to become an administrator for the specified location. The invitee must accept the invitation in order to be granted access to the location. See AcceptInvitation to programmatically accept an invitation.
Declaration
public virtual LocationsResource.AdminsResource.CreateRequest Create(Admin body, string parent)
Parameters
Type | Name | Description |
---|---|---|
Admin | body | The body of the request. |
string | parent | Required. The resource name of the location this admin is created for. |
Returns
Type | Description |
---|---|
LocationsResource.AdminsResource.CreateRequest |
Delete(string)
Removes the specified admin as a manager of the specified location.
Declaration
public virtual LocationsResource.AdminsResource.DeleteRequest Delete(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The resource name of the admin to remove from the location. |
Returns
Type | Description |
---|---|
LocationsResource.AdminsResource.DeleteRequest |
List(string)
Lists all of the admins for the specified location.
Declaration
public virtual LocationsResource.AdminsResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The name of the location to list admins of. |
Returns
Type | Description |
---|---|
LocationsResource.AdminsResource.ListRequest |
Patch(Admin, string)
Updates the Admin for the specified location. Only the AdminRole of the Admin can be updated.
Declaration
public virtual LocationsResource.AdminsResource.PatchRequest Patch(Admin body, string name)
Parameters
Type | Name | Description |
---|---|---|
Admin | body | The body of the request. |
string | name | Immutable. The resource name. For account admins, this is in the form:
|
Returns
Type | Description |
---|---|
LocationsResource.AdminsResource.PatchRequest |