REST Resource: projects

Resource: Project

Metadata and configurations for a Google Cloud project in the service.

JSON representation
{
  "name": string,
  "createTime": string,
  "provisionCompletionTime": string,
  "serviceTermsMap": {
    string: {
      object (ServiceTerms)
    },
    ...
  }
}
Fields
name

string

Output only. Full resource name of the project, for example projects/{project}. Note that when making requests, project number and project id are both acceptable, but the server will always respond in project number.

createTime

string (Timestamp format)

Output only. The timestamp when this project is created.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

provisionCompletionTime

string (Timestamp format)

Output only. The timestamp when this project is successfully provisioned. Empty value means this project is still provisioning and is not ready for use.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

serviceTermsMap

map (key: string, value: object (ServiceTerms))

Output only. A map of terms of services. The key is the id of ServiceTerms.

ServiceTerms

metadata about the terms of service.

JSON representation
{
  "id": string,
  "version": string,
  "state": enum (State),
  "acceptTime": string,
  "declineTime": string
}
Fields
id

string

The unique identifier of this terms of service. Available terms:

version

string

The version string of the terms of service. For acceptable values, see the comments for id above.

state

enum (State)

Whether the project has accepted/rejected the service terms or it is still pending.

acceptTime

string (Timestamp format)

The last time when the project agreed to the terms of service.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

declineTime

string (Timestamp format)

The last time when the project declined or revoked the agreement to terms of service.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

State

The agreement states this terms of service.

Enums
STATE_UNSPECIFIED The default value of the enum. This value is not actually used.
TERMS_ACCEPTED The project has given consent to the terms of service.
TERMS_PENDING The project is pending to review and accept the terms of service.
TERMS_DECLINED The project has declined or revoked the agreement to terms of service.

Methods

get

Gets a Project.

provision

Provisions the project resource.

reportConsentChange

Updates service terms for this project.