Class: Google::Apis::DriveV3::LabelField
- Inherits:
-
Object
- Object
- Google::Apis::DriveV3::LabelField
- 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
Representation of a label field.
Instance Attribute Summary collapse
-
#date_string ⇒ Array<Date>
Only present if valueType is dateString.
-
#id ⇒ String
The identifier of this field.
-
#integer ⇒ Array<Fixnum>
Only present if valueType is integer.
-
#kind ⇒ String
This is always drive#labelField.
-
#selection ⇒ Array<String>
Only present if valueType is selection.
-
#text ⇒ Array<String>
Only present if valueType is text.
-
#user ⇒ Array<Google::Apis::DriveV3::User>
Only present if valueType is user.
-
#value_type ⇒ String
The field type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LabelField
constructor
A new instance of LabelField.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LabelField
Returns a new instance of LabelField.
2298 2299 2300 |
# File 'lib/google/apis/drive_v3/classes.rb', line 2298 def initialize(**args) update!(**args) end |
Instance Attribute Details
#date_string ⇒ Array<Date>
Only present if valueType is dateString. RFC 3339 formatted date: YYYY-MM-DD.
Corresponds to the JSON property dateString
2255 2256 2257 |
# File 'lib/google/apis/drive_v3/classes.rb', line 2255 def date_string @date_string end |
#id ⇒ String
The identifier of this field.
Corresponds to the JSON property id
2260 2261 2262 |
# File 'lib/google/apis/drive_v3/classes.rb', line 2260 def id @id end |
#integer ⇒ Array<Fixnum>
Only present if valueType is integer.
Corresponds to the JSON property integer
2265 2266 2267 |
# File 'lib/google/apis/drive_v3/classes.rb', line 2265 def integer @integer end |
#kind ⇒ String
This is always drive#labelField.
Corresponds to the JSON property kind
2270 2271 2272 |
# File 'lib/google/apis/drive_v3/classes.rb', line 2270 def kind @kind end |
#selection ⇒ Array<String>
Only present if valueType is selection.
Corresponds to the JSON property selection
2275 2276 2277 |
# File 'lib/google/apis/drive_v3/classes.rb', line 2275 def selection @selection end |
#text ⇒ Array<String>
Only present if valueType is text.
Corresponds to the JSON property text
2280 2281 2282 |
# File 'lib/google/apis/drive_v3/classes.rb', line 2280 def text @text end |
#user ⇒ Array<Google::Apis::DriveV3::User>
Only present if valueType is user.
Corresponds to the JSON property user
2285 2286 2287 |
# File 'lib/google/apis/drive_v3/classes.rb', line 2285 def user @user end |
#value_type ⇒ String
The field type. While new values may be supported in the future, the following are currently allowed:
- dateString
- integer
- selection
- text
- user
Corresponds to the JSON property
valueType
2296 2297 2298 |
# File 'lib/google/apis/drive_v3/classes.rb', line 2296 def value_type @value_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 |
# File 'lib/google/apis/drive_v3/classes.rb', line 2303 def update!(**args) @date_string = args[:date_string] if args.key?(:date_string) @id = args[:id] if args.key?(:id) @integer = args[:integer] if args.key?(:integer) @kind = args[:kind] if args.key?(:kind) @selection = args[:selection] if args.key?(:selection) @text = args[:text] if args.key?(:text) @user = args[:user] if args.key?(:user) @value_type = args[:value_type] if args.key?(:value_type) end |