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.



3196
3197
3198
# File 'lib/google/apis/drive_v2/classes.rb', line 3196

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


3184
3185
3186
# File 'lib/google/apis/drive_v2/classes.rb', line 3184

def ids
  @ids
end

#kindString

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

Returns:

  • (String)


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

def kind
  @kind
end

#spaceString

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

Returns:

  • (String)


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

def space
  @space
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3201
3202
3203
3204
3205
# File 'lib/google/apis/drive_v2/classes.rb', line 3201

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