Class: Google::Apis::CloudresourcemanagerV3::Project

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

Overview

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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Project

Returns a new instance of Project.



1403
1404
1405
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1403

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

Instance Attribute Details

#create_timeString

Output only. Creation time. Corresponds to the JSON property createTime

Returns:

  • (String)


1340
1341
1342
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1340

def create_time
  @create_time
end

#delete_timeString

Output only. The time at which this resource was requested for deletion. Corresponds to the JSON property deleteTime

Returns:

  • (String)


1345
1346
1347
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1345

def delete_time
  @delete_time
end

#display_nameString

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

Returns:

  • (String)


1353
1354
1355
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1353

def display_name
  @display_name
end

#etagString

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

Returns:

  • (String)


1360
1361
1362
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1360

def etag
  @etag
end

#labelsHash<String,String>

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

Returns:

  • (Hash<String,String>)


1372
1373
1374
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1372

def labels
  @labels
end

#nameString

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

Returns:

  • (String)


1378
1379
1380
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1378

def name
  @name
end

#parentString

Optional. A reference to a parent Resource. eg., organizations/123 or folders/876. Corresponds to the JSON property parent

Returns:

  • (String)


1384
1385
1386
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1384

def parent
  @parent
end

#project_idString

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

Returns:

  • (String)


1391
1392
1393
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1391

def project_id
  @project_id
end

#stateString

Output only. The project lifecycle state. Corresponds to the JSON property state

Returns:

  • (String)


1396
1397
1398
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1396

def state
  @state
end

#update_timeString

Output only. The most recent time this resource was modified. Corresponds to the JSON property updateTime

Returns:

  • (String)


1401
1402
1403
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1401

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1408

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