Class AccountsResource.LocationsResource.CreateRequest
Creates a new Location that will be owned by the logged in user.
Inheritance
AccountsResource.LocationsResource.CreateRequest
Inherited Members
Namespace: Google.Apis.MyBusinessBusinessInformation.v1
Assembly: Google.Apis.MyBusinessBusinessInformation.v1.dll
Syntax
public class AccountsResource.LocationsResource.CreateRequest : MyBusinessBusinessInformationBaseServiceRequest<Location>, IClientServiceRequest<Location>, IClientServiceRequest
Constructors
CreateRequest(IClientService, Location, string)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, Location body, string parent)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
Location | body | |
string | parent |
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
Parent
Required. The name of the account in which to create this location.
Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { get; }
Property Value
Type | Description |
---|---|
string |
RequestId
Optional. A unique request ID for the server to detect duplicated requests. We recommend using UUIDs. Max length is 50 characters.
Declaration
[RequestParameter("requestId", RequestParameterType.Query)]
public virtual string RequestId { get; set; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
ValidateOnly
Optional. If true, the request is validated without actually creating the location.
Declaration
[RequestParameter("validateOnly", RequestParameterType.Query)]
public virtual bool? ValidateOnly { get; set; }
Property Value
Type | Description |
---|---|
bool? |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Create parameter list.
Declaration
protected override void InitParameters()