Class: Google::Apis::DriveV3::GeneratedIds

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

Overview

A list of generated file IDs which can be provided in create requests.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GeneratedIds

Returns a new instance of GeneratedIds



1364
1365
1366
# File 'generated/google/apis/drive_v3/classes.rb', line 1364

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

Instance Attribute Details

#idsArray<String>

The IDs generated for the requesting user in the specified space. Corresponds to the JSON property ids

Returns:

  • (Array<String>)


1351
1352
1353
# File 'generated/google/apis/drive_v3/classes.rb', line 1351

def ids
  @ids
end

#kindString

Identifies what kind of resource this is. Value: the fixed string "drive# generatedIds". Corresponds to the JSON property kind

Returns:

  • (String)


1357
1358
1359
# File 'generated/google/apis/drive_v3/classes.rb', line 1357

def kind
  @kind
end

#spaceString

The type of file that can be created with these IDs. Corresponds to the JSON property space

Returns:

  • (String)


1362
1363
1364
# File 'generated/google/apis/drive_v3/classes.rb', line 1362

def space
  @space
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1369
1370
1371
1372
1373
# File 'generated/google/apis/drive_v3/classes.rb', line 1369

def update!(**args)
  @ids = args[:ids] if args.key?(:ids)
  @kind = args[:kind] if args.key?(:kind)
  @space = args[:space] if args.key?(:space)
end