Class ProjectsResource.LocationsResource.FunctionsResource.CommitFunctionUpgradeAsGen2Request
Commits a function upgrade from GCF Gen1 to GCF Gen2. This action deletes the Gen1 function, leaving the Gen2 function active and manageable by the GCFv2 API.
Inheritance
ProjectsResource.LocationsResource.FunctionsResource.CommitFunctionUpgradeAsGen2Request
Inherited Members
Namespace: Google.Apis.CloudFunctions.v2beta
Assembly: Google.Apis.CloudFunctions.v2beta.dll
Syntax
public class ProjectsResource.LocationsResource.FunctionsResource.CommitFunctionUpgradeAsGen2Request : CloudFunctionsBaseServiceRequest<Operation>, IClientServiceRequest<Operation>, IClientServiceRequest
Constructors
CommitFunctionUpgradeAsGen2Request(IClientService, CommitFunctionUpgradeAsGen2Request, string)
Constructs a new CommitFunctionUpgradeAsGen2 request.
Declaration
public CommitFunctionUpgradeAsGen2Request(IClientService service, CommitFunctionUpgradeAsGen2Request body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| CommitFunctionUpgradeAsGen2Request | 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
Required. The name of the function for which upgrade should be committed to Gen2.
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
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
| Type | Description |
|---|---|
| object |
Overrides
InitParameters()
Initializes CommitFunctionUpgradeAsGen2 parameter list.
Declaration
protected override void InitParameters()