Show / Hide Table of Contents

Class LocationsResource

The "locations" collection of methods.

Inheritance
object
LocationsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
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
IClientService service

Properties

Attributes

Gets the Attributes resource.

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

Methods

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
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
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
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
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.

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.

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 Generated by DocFX