Class ProjectsResource.AddFirebaseRequest
Adds Firebase resources to the specified existing [Google Cloud Platform (GCP) Project
]
(https://cloud.google.com/resource-manager/reference/rest/v1/projects). Since a FirebaseProject is actually
also a GCP Project
, a FirebaseProject
has the same underlying GCP identifiers (projectNumber
and
projectId
). This allows for easy interop with Google APIs. The result of this call is an
Operation
. Poll the Operation
to track the provisioning process by calling
GetOperation until done
is true
. When done
is
true
, the Operation
has either succeeded or failed. If the Operation
succeeded, its
response
is set to a FirebaseProject; if the
Operation
failed, its error
is set to a
google.rpc.Status. The Operation
is automatically deleted after completion, so there is no need to call
DeleteOperation. This method does not modify any billing account information on the underlying GCP
Project
. To call AddFirebase
, a project member or service account must have the following permissions
(the IAM roles of Editor and Owner contain these permissions): firebase.projects.update
,
resourcemanager.projects.get
, serviceusage.services.enable
, and serviceusage.services.get
.
Inheritance
Inherited Members
Namespace: Google.Apis.FirebaseManagement.v1beta1
Assembly: Google.Apis.FirebaseManagement.v1beta1.dll
Syntax
public class ProjectsResource.AddFirebaseRequest : FirebaseManagementBaseServiceRequest<Operation>, IClientServiceRequest<Operation>, IClientServiceRequest
Constructors
AddFirebaseRequest(IClientService, AddFirebaseRequest, string)
Constructs a new AddFirebase request.
Declaration
public AddFirebaseRequest(IClientService service, AddFirebaseRequest body, string project)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
AddFirebaseRequest | body | |
string | project |
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
Project
The resource name of the GCP Project
to which Firebase resources will be added, in the format:
projects/PROJECT_IDENTIFIER Refer to the FirebaseProject
name
field for details about PROJECT_IDENTIFIER values.
After calling AddFirebase
, the unique Project identifiers (
projectNumber
and
projectId
)
of the underlying GCP Project
are also the identifiers of the FirebaseProject.
Declaration
[RequestParameter("project", RequestParameterType.Path)]
public virtual string Project { 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 AddFirebase parameter list.
Declaration
protected override void InitParameters()