Class: Google::Apis::CloudresourcemanagerV1::Project

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudresourcemanager_v1/classes.rb,
lib/google/apis/cloudresourcemanager_v1/representations.rb,
lib/google/apis/cloudresourcemanager_v1/representations.rb

Overview

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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Project

Returns a new instance of Project.



1690
1691
1692
# File 'lib/google/apis/cloudresourcemanager_v1/classes.rb', line 1690

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#create_timeString

Creation time. Read-only. Corresponds to the JSON property createTime

Returns:

  • (String)


1636
1637
1638
# File 'lib/google/apis/cloudresourcemanager_v1/classes.rb', line 1636

def create_time
  @create_time
end

#labelsHash<String,String>

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-z0,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

Returns:

  • (Hash<String,String>)


1647
1648
1649
# File 'lib/google/apis/cloudresourcemanager_v1/classes.rb', line 1647

def labels
  @labels
end

#lifecycle_stateString

The Project lifecycle state. Read-only. Corresponds to the JSON property lifecycleState

Returns:

  • (String)


1652
1653
1654
# File 'lib/google/apis/cloudresourcemanager_v1/classes.rb', line 1652

def lifecycle_state
  @lifecycle_state
end

#nameString

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

Returns:

  • (String)


1660
1661
1662
# File 'lib/google/apis/cloudresourcemanager_v1/classes.rb', line 1660

def name
  @name
end

#parentGoogle::Apis::CloudresourcemanagerV1::ResourceId

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



1668
1669
1670
# File 'lib/google/apis/cloudresourcemanager_v1/classes.rb', line 1668

def parent
  @parent
end

#project_idString

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

Returns:

  • (String)


1675
1676
1677
# File 'lib/google/apis/cloudresourcemanager_v1/classes.rb', line 1675

def project_id
  @project_id
end

#project_numberFixnum

The number uniquely identifying the project. Example: 415104041262 Read-only. Corresponds to the JSON property projectNumber

Returns:

  • (Fixnum)


1680
1681
1682
# File 'lib/google/apis/cloudresourcemanager_v1/classes.rb', line 1680

def project_number
  @project_number
end

#tagsHash<String,String>

Optional. Input only. Immutable. Tag keys/values directly bound to this project. Each item in the map must be expressed as " : ". For example: "123/ environment" : "production", "123/costCenter" : "marketing" Note: Currently this field is in Preview. Corresponds to the JSON property tags

Returns:

  • (Hash<String,String>)


1688
1689
1690
# File 'lib/google/apis/cloudresourcemanager_v1/classes.rb', line 1688

def tags
  @tags
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
# File 'lib/google/apis/cloudresourcemanager_v1/classes.rb', line 1695

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)
  @tags = args[:tags] if args.key?(:tags)
end