Reference documentation and code samples for the Compute V1 Client class Project.
Represents a Project resource. A project is used to organize resources in a Google Cloud Platform environment. For more information, read about the Resource Hierarchy.
Generated from protobuf message google.cloud.compute.v1.Project
Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ common_instance_metadata
Google\Cloud\Compute\V1\Metadata
Metadata key/value pairs available to all instances contained in this project. See Custom metadata for more information.
↳ creation_timestamp
string
[Output Only] Creation timestamp in RFC3339 text format.
↳ default_network_tier
string
This signifies the default network tier used for configuring resources of the project and can only take the following values: PREMIUM, STANDARD. Initially the default network tier is PREMIUM. Check the DefaultNetworkTier enum for the list of possible values.
↳ default_service_account
string
[Output Only] Default service account used by VMs running in this project.
↳ description
string
An optional textual description of the resource.
↳ enabled_features
array
Restricted features enabled for use on this project.
↳ id
int|string
[Output Only] The unique identifier for the resource. This identifier is defined by the server. This is not the project ID, and is just a unique ID used by Compute Engine to identify resources.
↳ kind
string
[Output Only] Type of the resource. Always compute#project for projects.
↳ name
string
The project ID. For example: my-example-project. Use the project ID to make requests to Compute Engine.
↳ quotas
↳ self_link
string
[Output Only] Server-defined URL for the resource.
↳ usage_export_location
Google\Cloud\Compute\V1\UsageExportLocation
The naming prefix for daily usage reports and the Google Cloud Storage bucket where they are stored.
↳ xpn_project_status
string
[Output Only] The role this project has in a shared VPC configuration. Currently, only projects with the host role, which is specified by the value HOST, are differentiated. Check the XpnProjectStatus enum for the list of possible values.
getCommonInstanceMetadata
Metadata key/value pairs available to all instances contained in this project. See Custom metadata for more information.
Generated from protobuf field optional .google.cloud.compute.v1.Metadata common_instance_metadata = 185794117;
hasCommonInstanceMetadata
clearCommonInstanceMetadata
setCommonInstanceMetadata
Metadata key/value pairs available to all instances contained in this project. See Custom metadata for more information.
Generated from protobuf field optional .google.cloud.compute.v1.Metadata common_instance_metadata = 185794117;
$this
getCreationTimestamp
[Output Only] Creation timestamp in RFC3339 text format.
Generated from protobuf field optional string creation_timestamp = 30525366;
string
hasCreationTimestamp
clearCreationTimestamp
setCreationTimestamp
[Output Only] Creation timestamp in RFC3339 text format.
Generated from protobuf field optional string creation_timestamp = 30525366;
var
string
$this
getDefaultNetworkTier
This signifies the default network tier used for configuring resources of the project and can only take the following values: PREMIUM, STANDARD. Initially the default network tier is PREMIUM.
Check the DefaultNetworkTier enum for the list of possible values.
Generated from protobuf field optional string default_network_tier = 471753361;
string
hasDefaultNetworkTier
clearDefaultNetworkTier
setDefaultNetworkTier
This signifies the default network tier used for configuring resources of the project and can only take the following values: PREMIUM, STANDARD. Initially the default network tier is PREMIUM.
Check the DefaultNetworkTier enum for the list of possible values.
Generated from protobuf field optional string default_network_tier = 471753361;
var
string
$this
getDefaultServiceAccount
[Output Only] Default service account used by VMs running in this project.
Generated from protobuf field optional string default_service_account = 298712229;
string
hasDefaultServiceAccount
clearDefaultServiceAccount
setDefaultServiceAccount
[Output Only] Default service account used by VMs running in this project.
Generated from protobuf field optional string default_service_account = 298712229;
var
string
$this
getDescription
An optional textual description of the resource.
Generated from protobuf field optional string description = 422937596;
string
hasDescription
clearDescription
setDescription
An optional textual description of the resource.
Generated from protobuf field optional string description = 422937596;
var
string
$this
getEnabledFeatures
Restricted features enabled for use on this project.
Generated from protobuf field repeated string enabled_features = 469017467;
Google\Protobuf\Internal\RepeatedField
setEnabledFeatures
Restricted features enabled for use on this project.
Generated from protobuf field repeated string enabled_features = 469017467;
var
string[]
$this
getId
[Output Only] The unique identifier for the resource. This identifier is defined by the server. This is not the project ID, and is just a unique ID used by Compute Engine to identify resources.
Generated from protobuf field optional uint64 id = 3355;
int|string
hasId
clearId
setId
[Output Only] The unique identifier for the resource. This identifier is defined by the server. This is not the project ID, and is just a unique ID used by Compute Engine to identify resources.
Generated from protobuf field optional uint64 id = 3355;
var
int|string
$this
getKind
[Output Only] Type of the resource. Always compute#project for projects.
Generated from protobuf field optional string kind = 3292052;
string
hasKind
clearKind
setKind
[Output Only] Type of the resource. Always compute#project for projects.
Generated from protobuf field optional string kind = 3292052;
var
string
$this
getName
The project ID. For example: my-example-project. Use the project ID to make requests to Compute Engine.
Generated from protobuf field optional string name = 3373707;
string
hasName
clearName
setName
The project ID. For example: my-example-project. Use the project ID to make requests to Compute Engine.
Generated from protobuf field optional string name = 3373707;
var
string
$this
getQuotas
[Output Only] Quotas assigned to this project.
Generated from protobuf field repeated .google.cloud.compute.v1.Quota quotas = 125341947;
Google\Protobuf\Internal\RepeatedField
setQuotas
[Output Only] Quotas assigned to this project.
Generated from protobuf field repeated .google.cloud.compute.v1.Quota quotas = 125341947;
$this
getSelfLink
[Output Only] Server-defined URL for the resource.
Generated from protobuf field optional string self_link = 456214797;
string
hasSelfLink
clearSelfLink
setSelfLink
[Output Only] Server-defined URL for the resource.
Generated from protobuf field optional string self_link = 456214797;
var
string
$this
getUsageExportLocation
The naming prefix for daily usage reports and the Google Cloud Storage bucket where they are stored.
Generated from protobuf field optional .google.cloud.compute.v1.UsageExportLocation usage_export_location = 347543874;
hasUsageExportLocation
clearUsageExportLocation
setUsageExportLocation
The naming prefix for daily usage reports and the Google Cloud Storage bucket where they are stored.
Generated from protobuf field optional .google.cloud.compute.v1.UsageExportLocation usage_export_location = 347543874;
$this
getXpnProjectStatus
[Output Only] The role this project has in a shared VPC configuration. Currently, only projects with the host role, which is specified by the value HOST, are differentiated.
Check the XpnProjectStatus enum for the list of possible values.
Generated from protobuf field optional string xpn_project_status = 228419265;
string
hasXpnProjectStatus
clearXpnProjectStatus
setXpnProjectStatus
[Output Only] The role this project has in a shared VPC configuration. Currently, only projects with the host role, which is specified by the value HOST, are differentiated.
Check the XpnProjectStatus enum for the list of possible values.
Generated from protobuf field optional string xpn_project_status = 228419265;
var
string
$this

