Class AccountsResource.LocationsResource
The "locations" collection of methods.
Inherited Members
Namespace: Google.Apis.MyBusinessBusinessInformation.v1
Assembly: Google.Apis.MyBusinessBusinessInformation.v1.dll
Syntax
public class AccountsResource.LocationsResource
Constructors
LocationsResource(IClientService)
Constructs a new resource.
Declaration
public LocationsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Create(Location, string)
Creates a new Location that will be owned by the logged in user.
Declaration
public virtual AccountsResource.LocationsResource.CreateRequest Create(Location body, string parent)
Parameters
Type | Name | Description |
---|---|---|
Location | body | The body of the request. |
string | parent | Required. The name of the account in which to create this location. |
Returns
Type | Description |
---|---|
AccountsResource.LocationsResource.CreateRequest |
List(string)
Lists the locations for the specified account.
Declaration
public virtual AccountsResource.LocationsResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The name of the account to fetch locations from. If the parent Account is of AccountType PERSONAL, only Locations that are directly owned by the Account are returned, otherwise it will return all accessible locations from the Account, either directly or indirectly. |
Returns
Type | Description |
---|---|
AccountsResource.LocationsResource.ListRequest |