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

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.


1972
1973
1974
# File 'generated/google/apis/drive_v2/classes.rb', line 1972

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

1960
1961
1962
# File 'generated/google/apis/drive_v2/classes.rb', line 1960

def ids
  @ids
end

#kindString

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

Returns:

  • (String)

1965
1966
1967
# File 'generated/google/apis/drive_v2/classes.rb', line 1965

def kind
  @kind
end

#spaceString

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

Returns:

  • (String)

1970
1971
1972
# File 'generated/google/apis/drive_v2/classes.rb', line 1970

def space
  @space
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1977
1978
1979
1980
1981
# File 'generated/google/apis/drive_v2/classes.rb', line 1977

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