Class ProjectsResource.SitesResource.CreateRequest
Creates a new Hosting Site in the specified parent Firebase project. Note that Hosting sites can take several minutes to propagate through Firebase systems.
Inheritance
Inherited Members
Namespace: Google.Apis.FirebaseHosting.v1beta1
Assembly: Google.Apis.FirebaseHosting.v1beta1.dll
Syntax
public class ProjectsResource.SitesResource.CreateRequest : FirebaseHostingBaseServiceRequest<Site>, IClientServiceRequest<Site>, IClientServiceRequest
Constructors
CreateRequest(IClientService, Site, string)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, Site body, string parent)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
Site | 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 Firebase project in which to create a Hosting site, in the format:
projects/PROJECT_IDENTIFIER Refer to the Site
name
field for
details about PROJECT_IDENTIFIER values.
Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
SiteId
Required. Immutable. A globally unique identifier for the Hosting site. This identifier is used to construct the Firebase-provisioned subdomains for the site, so it must also be a valid domain name label.
Declaration
[RequestParameter("siteId", RequestParameterType.Query)]
public virtual string SiteId { get; set; }
Property Value
Type | Description |
---|---|
string |
ValidateOnly
Optional. If set, validates that the site_id is available and that the request would succeed, returning the expected resulting site or error.
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()