class Google::Apis::CloudresourcemanagerV3::Project

A project is a high-level Google Cloud entity. It is a container for ACLs, APIs, App Engine Apps, VMs, and other Google Cloud Platform resources.

Attributes

create_time[RW]

Output only. Creation time. Corresponds to the JSON property `createTime` @return [String]

delete_time[RW]

Output only. The time at which this resource was requested for deletion. Corresponds to the JSON property `deleteTime` @return [String]

display_name[RW]

Optional. A 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` Corresponds to the JSON property `displayName` @return [String]

etag[RW]

Output only. A checksum computed by the server based on the current value of the Project resource. This may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. Corresponds to the JSON property `etag` @return [String]

labels[RW]

Optional. 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]([-a-z0-9]*[a-z0-9])?. Label values must be between 0 and 63 characters long and must conform to the regular expression ([a-z]([-a-z0-9] *[a-z0-9])?)?. 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: `“ myBusinessDimension” : “businessValue”` Corresponds to the JSON property `labels` @return [Hash<String,String>]

name[RW]

Output only. The unique resource name of the project. It is an int64 generated number prefixed by “projects/”. Example: `projects/415104041262` Corresponds to the JSON property `name` @return [String]

parent[RW]

Optional. A reference to a parent Resource. eg., `organizations/123` or ` folders/876`. Corresponds to the JSON property `parent` @return [String]

project_id[RW]

Immutable. The unique, user-assigned id of the project. It must be 6 to 30 lowercase ASCII letters, digits, or hyphens. It must start with a letter. Trailing hyphens are prohibited. Example: `tokyo-rain-123` Corresponds to the JSON property `projectId` @return [String]

state[RW]

Output only. The project lifecycle state. Corresponds to the JSON property `state` @return [String]

update_time[RW]

Output only. The most recent time this resource was modified. Corresponds to the JSON property `updateTime` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/cloudresourcemanager_v3/classes.rb, line 1278
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/cloudresourcemanager_v3/classes.rb, line 1283
def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @delete_time = args[:delete_time] if args.key?(:delete_time)
  @display_name = args[:display_name] if args.key?(:display_name)
  @etag = args[:etag] if args.key?(:etag)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @parent = args[:parent] if args.key?(:parent)
  @project_id = args[:project_id] if args.key?(:project_id)
  @state = args[:state] if args.key?(:state)
  @update_time = args[:update_time] if args.key?(:update_time)
end