Class ProjectsResource.SitesResource.VersionsResource.PatchRequest
Updates the specified metadata for the specified version. This method will fail with
FAILED_PRECONDITION
in the event of an invalid state transition. The supported
state transitions for a version are from CREATED
to
FINALIZED
. Use DeleteVersion
to set the status of a version to DELETED
.
Inheritance
Inherited Members
Namespace: Google.Apis.FirebaseHosting.v1beta1
Assembly: Google.Apis.FirebaseHosting.v1beta1.dll
Syntax
public class ProjectsResource.SitesResource.VersionsResource.PatchRequest : FirebaseHostingBaseServiceRequest<Version>, IClientServiceRequest<Version>, IClientServiceRequest
Constructors
PatchRequest(IClientService, Version, string)
Constructs a new Patch request.
Declaration
public PatchRequest(IClientService service, Version body, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
Version | 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
The fully-qualified resource name for the version, in the format: sites/
SITE_ID/versions/VERSION_ID This name is provided in the response body when you call
CreateVersion
.
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
A set of field names from your version that you want to update. A field
will be overwritten if, and only if, it's in the mask. If a mask is not provided then a default
mask of only status
will be used.
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()