Class: Google::Apis::DriveV2::GeneratedIds

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

Overview

A list of generated IDs which can be provided in insert requests

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GeneratedIds

Returns a new instance of GeneratedIds.



3200
3201
3202
# File 'lib/google/apis/drive_v2/classes.rb', line 3200

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


3188
3189
3190
# File 'lib/google/apis/drive_v2/classes.rb', line 3188

def ids
  @ids
end

#kindString

This is always drive#generatedIds Corresponds to the JSON property kind

Returns:

  • (String)


3193
3194
3195
# File 'lib/google/apis/drive_v2/classes.rb', line 3193

def kind
  @kind
end

#spaceString

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

Returns:

  • (String)


3198
3199
3200
# File 'lib/google/apis/drive_v2/classes.rb', line 3198

def space
  @space
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3205
3206
3207
3208
3209
# File 'lib/google/apis/drive_v2/classes.rb', line 3205

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