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

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

Namespace

Google \ Cloud \ ResourceManager \ V3

Methods

__construct

Constructor.

Parameters
Name Description
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
Type Description
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
Name Description
var Google\Cloud\ResourceManager\V3\Project
Returns
Type Description
$this

static::build

Parameter
Name Description
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
Type Description
Google\Cloud\ResourceManager\V3\CreateProjectRequest