class Google::Apis::CloudresourcemanagerV1beta1::Project

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

Attributes

create_time[RW]

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

labels[RW]

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. Corresponds to the JSON property `labels` @return [Hash<String,String>]

lifecycle_state[RW]

The Project lifecycle state. Read-only. Corresponds to the JSON property `lifecycleState` @return [String]

name[RW]

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

parent[RW]

A container to reference an id for any resource type. A `resource` in Google Cloud Platform is a generic term for something you (a developer) may want to interact with through one of our API's. Some examples are an App Engine app, a Compute Engine instance, a Cloud SQL database, and so on. Corresponds to the JSON property `parent` @return [Google::Apis::CloudresourcemanagerV1beta1::ResourceId]

project_id[RW]

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

project_number[RW]

The number uniquely identifying the project. Example: `415104041262` Read-only. Corresponds to the JSON property `projectNumber` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/cloudresourcemanager_v1beta1/classes.rb, line 987
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_v1beta1/classes.rb, line 992
def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @labels = args[:labels] if args.key?(:labels)
  @lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
  @name = args[:name] if args.key?(:name)
  @parent = args[:parent] if args.key?(:parent)
  @project_id = args[:project_id] if args.key?(:project_id)
  @project_number = args[:project_number] if args.key?(:project_number)
end