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

Constructor Details

#initialize(**args) ⇒ GeneratedIds

Returns a new instance of GeneratedIds.



2063
2064
2065
# File 'generated/google/apis/drive_v3/classes.rb', line 2063

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


2050
2051
2052
# File 'generated/google/apis/drive_v3/classes.rb', line 2050

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)


2056
2057
2058
# File 'generated/google/apis/drive_v3/classes.rb', line 2056

def kind
  @kind
end

#spaceString

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

Returns:

  • (String)


2061
2062
2063
# File 'generated/google/apis/drive_v3/classes.rb', line 2061

def space
  @space
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2068
2069
2070
2071
2072
# File 'generated/google/apis/drive_v3/classes.rb', line 2068

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