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.



1128
1129
1130
# File 'generated/google/apis/drive_v3/classes.rb', line 1128

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


1116
1117
1118
# File 'generated/google/apis/drive_v3/classes.rb', line 1116

def ids
  @ids
end

#kindString

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

Returns:

  • (String)


1121
1122
1123
# File 'generated/google/apis/drive_v3/classes.rb', line 1121

def kind
  @kind
end

#spaceString

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

Returns:

  • (String)


1126
1127
1128
# File 'generated/google/apis/drive_v3/classes.rb', line 1126

def space
  @space
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1133
1134
1135
1136
1137
# File 'generated/google/apis/drive_v3/classes.rb', line 1133

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