Class: Google::Apis::CloudresourcemanagerV2::CreateProjectMetadata

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

Overview

A status object which is used as the metadata field for the Operation returned by CreateProject. It provides insight for when significant phases of Project creation have completed.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CreateProjectMetadata

Returns a new instance of CreateProjectMetadata.



298
299
300
# File 'lib/google/apis/cloudresourcemanager_v2/classes.rb', line 298

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

Instance Attribute Details

#create_timeString

Creation time of the project creation workflow. Corresponds to the JSON property createTime

Returns:

  • (String)


283
284
285
# File 'lib/google/apis/cloudresourcemanager_v2/classes.rb', line 283

def create_time
  @create_time
end

#gettableBoolean Also known as: gettable?

True if the project can be retrieved using GetProject. No other operations on the project are guaranteed to work until the project creation is complete. Corresponds to the JSON property gettable

Returns:

  • (Boolean)


289
290
291
# File 'lib/google/apis/cloudresourcemanager_v2/classes.rb', line 289

def gettable
  @gettable
end

#readyBoolean Also known as: ready?

True if the project creation process is complete. Corresponds to the JSON property ready

Returns:

  • (Boolean)


295
296
297
# File 'lib/google/apis/cloudresourcemanager_v2/classes.rb', line 295

def ready
  @ready
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



303
304
305
306
307
# File 'lib/google/apis/cloudresourcemanager_v2/classes.rb', line 303

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @gettable = args[:gettable] if args.key?(:gettable)
  @ready = args[:ready] if args.key?(:ready)
end