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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/drive_v3/classes.rb,
lib/google/apis/drive_v3/representations.rb,
lib/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

Constructor Details

#initialize(**args) ⇒ GeneratedIds

Returns a new instance of GeneratedIds.



2218
2219
2220
# File 'lib/google/apis/drive_v3/classes.rb', line 2218

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


2205
2206
2207
# File 'lib/google/apis/drive_v3/classes.rb', line 2205

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)


2211
2212
2213
# File 'lib/google/apis/drive_v3/classes.rb', line 2211

def kind
  @kind
end

#spaceString

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

Returns:

  • (String)


2216
2217
2218
# File 'lib/google/apis/drive_v3/classes.rb', line 2216

def space
  @space
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2223
2224
2225
2226
2227
# File 'lib/google/apis/drive_v3/classes.rb', line 2223

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