Class ProjectsResource.LocationsResource.FunctionsResource.CreateRequest
Creates a new function. If a function with the given name already exists in the specified project,
the long running operation will return ALREADY_EXISTS
error.
Inheritance
ProjectsResource.LocationsResource.FunctionsResource.CreateRequest
Inherited Members
Namespace: Google.Apis.CloudFunctions.v1
Assembly: Google.Apis.CloudFunctions.v1.dll
Syntax
public class ProjectsResource.LocationsResource.FunctionsResource.CreateRequest : CloudFunctionsBaseServiceRequest<Operation>, IClientServiceRequest<Operation>, IClientServiceRequest
Constructors
CreateRequest(IClientService, CloudFunction, string)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, CloudFunction body, string location)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
CloudFunction | body | |
string | location |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Location
Required. The project and location in which the function should be created, specified in the
format projects/*/locations/*
Declaration
[RequestParameter("location", RequestParameterType.Path)]
public virtual string Location { get; }
Property Value
Type | Description |
---|---|
string |
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
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()