Show / Hide Table of Contents

Class LocationsResource.AdminsResource

The "admins" collection of methods.

Inheritance
object
LocationsResource.AdminsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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. locations/{location_id}/admins.

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. locations/{location_id}/admins.

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: accounts/{account_id}/admins/{admin_id} For location admins, this is in the form: locations/{location_id}/admins/{admin_id} This field will be ignored if set during admin creation.

Returns
Type Description
LocationsResource.AdminsResource.PatchRequest
In this article
Back to top Generated by DocFX