Class ProjectsResource.LocationsResource.FunctionsResource.RollbackFunctionUpgradeTrafficRequest
Reverts the traffic target of a function from the 2nd Gen copy to the original 1st Gen function. After this operation, all new traffic would be served by the 1st Gen.
Inheritance
ProjectsResource.LocationsResource.FunctionsResource.RollbackFunctionUpgradeTrafficRequest
Inherited Members
Namespace: Google.Apis.CloudFunctions.v2beta
Assembly: Google.Apis.CloudFunctions.v2beta.dll
Syntax
public class ProjectsResource.LocationsResource.FunctionsResource.RollbackFunctionUpgradeTrafficRequest : CloudFunctionsBaseServiceRequest<Operation>, IClientServiceRequest<Operation>, IClientServiceRequest
Constructors
RollbackFunctionUpgradeTrafficRequest(IClientService, RollbackFunctionUpgradeTrafficRequest, string)
Constructs a new RollbackFunctionUpgradeTraffic request.
Declaration
public RollbackFunctionUpgradeTrafficRequest(IClientService service, RollbackFunctionUpgradeTrafficRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
RollbackFunctionUpgradeTrafficRequest | 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 traffic target should be changed back to 1st Gen from 2nd Gen.
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 RollbackFunctionUpgradeTraffic parameter list.
Declaration
protected override void InitParameters()