Class: Google::Apis::CloudresourcemanagerV1::FolderOperation

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

Overview

Metadata describing a long running folder operation

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ FolderOperation

Returns a new instance of FolderOperation.


442
443
444
# File 'generated/google/apis/cloudresourcemanager_v1/classes.rb', line 442

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

Instance Attribute Details

#destination_parentString

The resource name of the folder or organization we are either creating the folder under or moving the folder to. Corresponds to the JSON property destinationParent

Returns:

  • (String)

424
425
426
# File 'generated/google/apis/cloudresourcemanager_v1/classes.rb', line 424

def destination_parent
  @destination_parent
end

#display_nameString

The display name of the folder. Corresponds to the JSON property displayName

Returns:

  • (String)

429
430
431
# File 'generated/google/apis/cloudresourcemanager_v1/classes.rb', line 429

def display_name
  @display_name
end

#operation_typeString

The type of this operation. Corresponds to the JSON property operationType

Returns:

  • (String)

434
435
436
# File 'generated/google/apis/cloudresourcemanager_v1/classes.rb', line 434

def operation_type
  @operation_type
end

#source_parentString

The resource name of the folder's parent. Only applicable when the operation_type is MOVE. Corresponds to the JSON property sourceParent

Returns:

  • (String)

440
441
442
# File 'generated/google/apis/cloudresourcemanager_v1/classes.rb', line 440

def source_parent
  @source_parent
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


447
448
449
450
451
452
# File 'generated/google/apis/cloudresourcemanager_v1/classes.rb', line 447

def update!(**args)
  @destination_parent = args[:destination_parent] if args.key?(:destination_parent)
  @display_name = args[:display_name] if args.key?(:display_name)
  @operation_type = args[:operation_type] if args.key?(:operation_type)
  @source_parent = args[:source_parent] if args.key?(:source_parent)
end