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

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

__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 Organziation, 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 Organziation, 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 Organziation, the parent will be set to that Organization.

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