Show / Hide Table of Contents

Class LocationsResource

The "locations" collection of methods.

Inheritance
System.Object
LocationsResource
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.MyBusinessBusinessInformation.v1
Assembly: Google.Apis.MyBusinessBusinessInformation.v1.dll
Syntax
public class LocationsResource

Constructors

LocationsResource(IClientService)

Constructs a new resource.

Declaration
public LocationsResource(IClientService service)
Parameters
Type Name Description
Google.Apis.Services.IClientService service

Properties

Attributes

Gets the Attributes resource.

Declaration
public virtual LocationsResource.AttributesResource Attributes { get; }
Property Value
Type Description
LocationsResource.AttributesResource

Methods

Associate(AssociateLocationRequest, String)

Associates a location to a place ID. Any previous association is overwritten. This operation is only valid if the location is unverified. The association must be valid, that is, it appears in the list of SearchGoogleLocations.

Declaration
public virtual LocationsResource.AssociateRequest Associate(AssociateLocationRequest body, string name)
Parameters
Type Name Description
AssociateLocationRequest body

The body of the request.

System.String name

Required. The resource name of the location to associate.

Returns
Type Description
LocationsResource.AssociateRequest

ClearLocationAssociation(ClearLocationAssociationRequest, String)

Clears an association between a location and its place ID. This operation is only valid if the location is unverified.

Declaration
public virtual LocationsResource.ClearLocationAssociationRequest ClearLocationAssociation(ClearLocationAssociationRequest body, string name)
Parameters
Type Name Description
ClearLocationAssociationRequest body

The body of the request.

System.String name

Required. The resource name of the location to disassociate.

Returns
Type Description
LocationsResource.ClearLocationAssociationRequest

Delete(String)

Deletes a location. If this location cannot be deleted using the API and it is marked so in the google.mybusiness.businessinformation.v1.LocationState, use the Google Business Profile website.

Declaration
public virtual LocationsResource.DeleteRequest Delete(string name)
Parameters
Type Name Description
System.String name

Required. The name of the location to delete.

Returns
Type Description
LocationsResource.DeleteRequest

Get(String)

Returns the specified location.

Declaration
public virtual LocationsResource.GetRequest Get(string name)
Parameters
Type Name Description
System.String name

Required. The name of the location to fetch.

Returns
Type Description
LocationsResource.GetRequest

GetAttributes(String)

Looks up all the attributes set for a given location.

Declaration
public virtual LocationsResource.GetAttributesRequest GetAttributes(string name)
Parameters
Type Name Description
System.String name

Required. Google identifier for this location in the form of locations/{location_id}/attributes.

Returns
Type Description
LocationsResource.GetAttributesRequest

GetGoogleUpdated(String)

Gets the Google-updated version of the specified location.

Declaration
public virtual LocationsResource.GetGoogleUpdatedRequest GetGoogleUpdated(string name)
Parameters
Type Name Description
System.String name

Required. The name of the location to fetch.

Returns
Type Description
LocationsResource.GetGoogleUpdatedRequest

Patch(Location, String)

Updates the specified location.

Declaration
public virtual LocationsResource.PatchRequest Patch(Location body, string name)
Parameters
Type Name Description
Location body

The body of the request.

System.String name

Google identifier for this location in the form: locations/{location_id}.

Returns
Type Description
LocationsResource.PatchRequest

UpdateAttributes(Attributes, String)

Update attributes for a given location.

Declaration
public virtual LocationsResource.UpdateAttributesRequest UpdateAttributes(Attributes body, string name)
Parameters
Type Name Description
Attributes body

The body of the request.

System.String name

Required. Google identifier for this location in the form of locations/{location_id}/attributes.

Returns
Type Description
LocationsResource.UpdateAttributesRequest
In This Article
Back to top