Class LocationsResource.PlaceActionLinksResource.PatchRequest
Updates the specified place action link and returns it.
Inheritance
Inherited Members
Namespace: Google.Apis.MyBusinessPlaceActions.v1
Assembly: Google.Apis.MyBusinessPlaceActions.v1.dll
Syntax
public class LocationsResource.PlaceActionLinksResource.PatchRequest : MyBusinessPlaceActionsBaseServiceRequest<PlaceActionLink>, IClientServiceRequest<PlaceActionLink>, IClientServiceRequest
Constructors
PatchRequest(IClientService, PlaceActionLink, string)
Constructs a new Patch request.
Declaration
public PatchRequest(IClientService service, PlaceActionLink body, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
PlaceActionLink | body | |
string | name |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Name
Optional. The resource name, in the format
locations/{location_id}/placeActionLinks/{place_action_link_id}
. The name field will only be
considered in UpdatePlaceActionLink and DeletePlaceActionLink requests for updating and deleting
links respectively. However, it will be ignored in CreatePlaceActionLink request, where
place_action_link_id
will be assigned by the server on successful creation of a new link and
returned as part of the response.
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
UpdateMask
Required. The specific fields to update. The only editable fields are uri
, place_action_type
and
is_preferred
. If the updated link already exists at the same location with the same
place_action_type
and uri
, fails with an ALREADY_EXISTS
error.
Declaration
[RequestParameter("updateMask", RequestParameterType.Query)]
public virtual object UpdateMask { get; set; }
Property Value
Type | Description |
---|---|
object |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Patch parameter list.
Declaration
protected override void InitParameters()