Class: Google::Apis::CloudresourcemanagerV1::Project
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::CloudresourcemanagerV1::Project
 
- Defined in:
- generated/google/apis/cloudresourcemanager_v1/classes.rb,
 generated/google/apis/cloudresourcemanager_v1/representations.rb,
 generated/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
- 
  
    
      #create_time  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Creation time. 
- 
  
    
      #labels  ⇒ Hash<String,String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The labels associated with this Project. 
- 
  
    
      #lifecycle_state  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The Project lifecycle state. 
- 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The user-assigned display name of the Project. 
- 
  
    
      #parent  ⇒ Google::Apis::CloudresourcemanagerV1::ResourceId 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A container to reference an id for any resource type. 
- 
  
    
      #project_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The unique, user-assigned ID of the Project. 
- 
  
    
      #project_number  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The number uniquely identifying the project. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Project 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Project. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ Project
Returns a new instance of Project
| 1348 1349 1350 | # File 'generated/google/apis/cloudresourcemanager_v1/classes.rb', line 1348 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#create_time ⇒ String
Creation time.
Read-only.
Corresponds to the JSON property createTime
| 1291 1292 1293 | # File 'generated/google/apis/cloudresourcemanager_v1/classes.rb', line 1291 def create_time @create_time end | 
#labels ⇒ Hash<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-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: "environment" : "dev"
Read-write.
Corresponds to the JSON property labels
| 1305 1306 1307 | # File 'generated/google/apis/cloudresourcemanager_v1/classes.rb', line 1305 def labels @labels end | 
#lifecycle_state ⇒ String
The Project lifecycle state.
Read-only.
Corresponds to the JSON property lifecycleState
| 1311 1312 1313 | # File 'generated/google/apis/cloudresourcemanager_v1/classes.rb', line 1311 def lifecycle_state @lifecycle_state end | 
#name ⇒ String
The user-assigned display name of the Project.
It must be 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
| 1321 1322 1323 | # File 'generated/google/apis/cloudresourcemanager_v1/classes.rb', line 1321 def name @name end | 
#parent ⇒ Google::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
| 1329 1330 1331 | # File 'generated/google/apis/cloudresourcemanager_v1/classes.rb', line 1329 def parent @parent end | 
#project_id ⇒ String
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
| 1339 1340 1341 | # File 'generated/google/apis/cloudresourcemanager_v1/classes.rb', line 1339 def project_id @project_id end | 
#project_number ⇒ Fixnum
The number uniquely identifying the project.
Example: 415104041262
Read-only.
Corresponds to the JSON property projectNumber
| 1346 1347 1348 | # File 'generated/google/apis/cloudresourcemanager_v1/classes.rb', line 1346 def project_number @project_number end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 1353 1354 1355 1356 1357 1358 1359 1360 1361 | # File 'generated/google/apis/cloudresourcemanager_v1/classes.rb', line 1353 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 |