Google Cloud Resource Manager V3 Client - Class CreateProjectRequest (0.5.0)

Reference documentation and code samples for the Google Cloud Resource Manager V3 Client class CreateProjectRequest.

The request sent to the CreateProject method.

Generated from protobuf message google.cloud.resourcemanager.v3.CreateProjectRequest

Methods

build

Parameter
NameDescription
project Google\Cloud\ResourceManager\V3\Project

Required. The Project to create.

Project ID is required. If the requested ID is unavailable, the request fails.

If the parent field is set, the resourcemanager.projects.create permission is checked on the parent resource. If no parent is set and the authorization credentials belong to an Organization, the parent will be set to that Organization.

Returns
TypeDescription
Google\Cloud\ResourceManager\V3\CreateProjectRequest

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ project Google\Cloud\ResourceManager\V3\Project

Required. The Project to create. Project ID is required. If the requested ID is unavailable, the request fails. If the parent field is set, the resourcemanager.projects.create permission is checked on the parent resource. If no parent is set and the authorization credentials belong to an Organization, the parent will be set to that Organization.

getProject

Required. The Project to create.

Project ID is required. If the requested ID is unavailable, the request fails. If the parent field is set, the resourcemanager.projects.create permission is checked on the parent resource. If no parent is set and the authorization credentials belong to an Organization, the parent will be set to that Organization.

Returns
TypeDescription
Google\Cloud\ResourceManager\V3\Project|null

hasProject

clearProject

setProject

Required. The Project to create.

Project ID is required. If the requested ID is unavailable, the request fails. If the parent field is set, the resourcemanager.projects.create permission is checked on the parent resource. If no parent is set and the authorization credentials belong to an Organization, the parent will be set to that Organization.

Parameter
NameDescription
var Google\Cloud\ResourceManager\V3\Project
Returns
TypeDescription
$this