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 | |
---|---|
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 |
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 | |
---|---|
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 Organziation, the parent
will be set to that Organization.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\ResourceManager\V3\Project
|
Returns | |
---|---|
Type | Description |
$this |