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

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



2969
2970
2971
# File 'generated/google/apis/drive_v2/classes.rb', line 2969

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


2957
2958
2959
# File 'generated/google/apis/drive_v2/classes.rb', line 2957

def ids
  @ids
end

#kindString

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

Returns:

  • (String)


2962
2963
2964
# File 'generated/google/apis/drive_v2/classes.rb', line 2962

def kind
  @kind
end

#spaceString

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

Returns:

  • (String)


2967
2968
2969
# File 'generated/google/apis/drive_v2/classes.rb', line 2967

def space
  @space
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2974
2975
2976
2977
2978
# File 'generated/google/apis/drive_v2/classes.rb', line 2974

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