ProjectArgs

data class ProjectArgs(val createTime: Output<String>? = null, val labels: Output<Map<String, String>>? = null, val lifecycleState: Output<ProjectLifecycleState>? = null, val name: Output<String>? = null, val parent: Output<ResourceIdArgs>? = null, val projectId: Output<String>? = null, val projectNumber: Output<String>? = null, val useLegacyStack: Output<Boolean>? = null) : ConvertibleToJava<ProjectArgs>

Creates a Project resource. Initially, the Project resource is owned by its creator exclusively. The creator can later grant permission to others to read or update the Project. Several APIs are activated automatically for the Project, including Google Cloud Storage. The parent is identified by a specified ResourceId, which must include both an ID and a type, such as project, folder, or organization. This method does not associate the new project with a billing account. You can set or update the billing account associated with a project using the `projects.updateBillingInfo` (/billing/reference/rest/v1/projects/updateBillingInfo) method.

Constructors

Link copied to clipboard
fun ProjectArgs(createTime: Output<String>? = null, labels: Output<Map<String, String>>? = null, lifecycleState: Output<ProjectLifecycleState>? = null, name: Output<String>? = null, parent: Output<ResourceIdArgs>? = null, projectId: Output<String>? = null, projectNumber: Output<String>? = null, useLegacyStack: Output<Boolean>? = null)

Functions

Link copied to clipboard
open override fun toJava(): ProjectArgs

Properties

Link copied to clipboard
val createTime: Output<String>? = null

Creation time. Read-only.

Link copied to clipboard
val labels: Output<Map<String, String>>? = null

The labels associated with this Project. Label keys must be between 1 and 63 characters long and must conform to the following regular expression: a-z{0,62}. Label values must be between 0 and 63 characters long and must conform to the regular expression a-z0-9_-{0,63}. A label value can be empty. No more than 256 labels can be associated with a given resource. Clients should store labels in a representation such as JSON that does not depend on specific characters being disallowed. Example: "environment" : "dev" Read-write.

Link copied to clipboard

The Project lifecycle state. Read-only.

Link copied to clipboard
val name: Output<String>? = null

The optional user-assigned display name of the Project. When present it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, single-quote, double-quote, space, and exclamation point. Example: My Project Read-write.

Link copied to clipboard
val parent: Output<ResourceIdArgs>? = null

An optional reference to a parent Resource. Supported parent types include "organization" and "folder". Once set, the parent cannot be cleared. The parent can be set on creation or using the UpdateProject method; the end user must have the resourcemanager.projects.create permission on the parent. Read-write.

Link copied to clipboard
val projectId: Output<String>? = null

The unique, user-assigned ID of the Project. It must be 6 to 30 lowercase letters, digits, or hyphens. It must start with a letter. Trailing hyphens are prohibited. Example: tokyo-rain-123 Read-only after creation.

Link copied to clipboard
val projectNumber: Output<String>? = null

The number uniquely identifying the project. Example: 415104041262 Read-only.

Link copied to clipboard
val useLegacyStack: Output<Boolean>? = null

A now unused experiment opt-out option.