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.



1413
1414
1415
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1413

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

Instance Attribute Details

#create_timeString

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

Returns:

  • (String)


1350
1351
1352
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1350

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)


1355
1356
1357
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1355

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)


1363
1364
1365
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1363

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)


1370
1371
1372
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1370

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 64 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>)


1382
1383
1384
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1382

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)


1388
1389
1390
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1388

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)


1394
1395
1396
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1394

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)


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

def project_id
  @project_id
end

#stateString

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

Returns:

  • (String)


1406
1407
1408
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1406

def state
  @state
end

#update_timeString

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

Returns:

  • (String)


1411
1412
1413
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1411

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1418

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